@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 227 100% 29%;
    --primary-foreground: 210 40% 98%;
    --secondary: 199 89% 48%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.75rem;

    --ribm-blue: #002094;
    --ribm-cyan: #0ea5e9;
    --ribm-blue-gradient: linear-gradient(135deg, #002094 0%, #004AAD 100%);
    --ribm-cyan-gradient: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    --ribm-accent: #0ea5e9;
    --ribm-light: #f0f9ff;
    --ribm-dark: #0f172a;
    --gradient-primary: var(--ribm-blue-gradient);
    --gradient-secondary: var(--ribm-cyan-gradient);
    --gradient-hero: linear-gradient(to bottom, rgba(0, 32, 148, 0.7), rgba(0, 0, 0, 0.8));

    --transition: all 0.3s ease;
    --white: #ffffff;
    --text: #0f172a;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mulish', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ANIMATIONS & KEYFRAMES
   ======================================== */

/* RIBM Utility Classes */
.ribm-blue-bg {
    background: var(--ribm-blue-gradient);
}

.ribm-cyan-bg {
    background: var(--ribm-cyan-gradient);
}

.ribm-blue-text {
    color: var(--ribm-blue);
}

.gsmc-btn {
    background: var(--ribm-blue-gradient);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition, all 0.3s ease);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.gsmc-btn:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.gsmc-btn-outline {
    border: 2px solid var(--ribm-cyan);
    color: var(--ribm-cyan);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition, all 0.3s ease);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
}

.gsmc-btn-outline:hover {
    background: var(--ribm-cyan);
    color: white;
}

.gsmc-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.gsmc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.1);
}

.modern-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: justify;
    hyphens: auto;
}

.rich-text-content {
    text-align: justify;
    line-height: 1.8;
    color: #334155;
    hyphens: auto;
}

.rich-text-content p {
    margin-bottom: 1.5rem;
}

.rich-text-content ul,
.rich-text-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.rich-text-content li {
    margin-bottom: 0.5rem;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.h-divider {
    position: relative;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--ribm-cyan), transparent);
    margin: 1.5rem 0;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

/* --- Level 1: News Strip --- */
.news-strip {
    background: var(--ribm-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--ribm-cyan);
}

.news-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-ticker {
    display: flex;
    align-items: center;
    overflow: hidden;
    flex: 1;
}

.news-label {
    background: var(--ribm-cyan);
    color: white;
    padding: 2px 10px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-right: 15px;
    border-radius: 4px;
    flex-shrink: 0;
}

.ticker-content {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* --- Level 2: Branding Header --- */
.branding-header {
    background: var(--white);
    padding: 25px 0;
    border-bottom: 1px solid rgba(0, 32, 148, 0.05);
}

.branding-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact-info {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    background: rgba(0, 119, 192, 0.05);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item div span {
    display: block;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

/* Main Branding Header responsiveness */
@media (max-width: 991px) {
    .branding-header {
        padding: 15px 0;
    }

    .logo-text h1 {
        font-size: 1.3rem;
        max-width: 100%;
    }

    .logo-text p {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .logo-wrapper {
        width: 55px;
        height: 55px;
        padding: 4px;
    }
}

.contact-item:hover i {
    transform: rotate(15deg) scale(1.1);
    background: var(--ribm-blue-gradient);
    color: white;
}

.nav-strip {
    background: var(--ribm-blue-gradient);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 32, 148, 0.1);
    border-bottom: 3px solid var(--ribm-cyan);
}

.nav-strip .container {
    padding: 0;
}

.nav-links {
    display: flex;
    justify-content: flex-start;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--white);
    padding: 15px 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--ribm-cyan);
    color: white;
}

.nav-links a i {
    font-size: 0.9rem;
    color: inherit;
}

/* --- Level 2: Branding Header (Horizontal GSMC Style) --- */
.branding-header {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 32, 148, 0.05);
    position: relative;
}

.branding-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-area-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.logo-wrapper-horizontal {
    width: 95px;
    height: 95px;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 32, 148, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-primary);
    background-origin: border-box;
    background-clip: content-box, border-box;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-area-horizontal:hover .logo-wrapper-horizontal {
    transform: rotate(5deg) scale(1.05);
}

.branding-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center text group contents */
}

.college-name-brand {
    font-family: 'Mulish', sans-serif;
    font-size: 1.85rem;
    color: var(--ribm-blue);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

.branding-motto {
    font-size: 0.85rem;
    color: var(--ribm-cyan);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    margin-top: 8px;
    font-style: italic;
    opacity: 0.9;
}

/* Mobile Menu Toggle in Horizontal Header */
.branding-header .mobile-menu-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    transition: var(--transition);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
    background: var(--secondary);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
    background: var(--secondary);
}

.logo-area:hover .logo-text p {
    letter-spacing: 2px;
    opacity: 1;
}

/* Navigation & Branding responsiveness to prevent overlap */
@media (max-width: 1400px) {
    .logo-text h1 {
        font-size: 1.4rem;
        max-width: 350px;
    }

    .logo-wrapper {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 1280px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .logo-text h1 {
        font-size: 1.2rem;
        max-width: 300px;
    }

    .logo-area {
        gap: 12px;
    }
}

@media (max-width: 1150px) {
    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .logo-text p {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
}

/* Remove old sticky nav links and desktop nav references */
.desktop-nav {
    display: block;
}

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile App-Style Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.98) 0%, rgba(0, 77, 153, 0.98) 100%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-logo img {
    height: 45px;
    width: auto;
}

.mobile-menu-logo span {
    font-family: 'Mulish', sans-serif;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-menu-close {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Mobile Navigation Links */
.mobile-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: rgba(255, 204, 0, 0.15);
    padding-left: 35px;
}

.mobile-nav-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.2) 0%, rgba(255, 215, 0, 0.3) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--secondary);
    flex-shrink: 0;
    transition: var(--transition);
}

.mobile-nav-links a:hover .mobile-nav-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-secondary);
    color: var(--primary);
}

.mobile-nav-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mobile-nav-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
}

.mobile-nav-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.mobile-nav-arrow {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.mobile-nav-links a:hover .mobile-nav-arrow {
    color: var(--secondary);
    transform: translateX(5px);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 25px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-menu-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.mobile-menu-contact-item i {
    width: 30px;
    height: 30px;
    background: rgba(255, 204, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 0.9rem;
}

.mobile-menu-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-social a:hover {
    background: var(--gradient-secondary);
    color: var(--primary);
    transform: translateY(-3px);
    border-color: var(--secondary);
}

/* ========================================
   MOBILE APP BOTTOM NAVIGATION - ENHANCED
   ======================================== */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    padding: 10px 5px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0, 32, 148, 0.06);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
    color: #777;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    gap: 4px;
    min-height: 56px;
}

.bottom-nav-item i {
    font-size: 1.35rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

/* Active state for bottom nav */
.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: translateY(-3px) scale(1.12);
    color: var(--secondary);
    filter: drop-shadow(0 4px 8px rgba(0, 119, 192, 0.25));
}

.bottom-nav-item.active span {
    color: var(--primary);
    font-weight: 800;
}

/* Subtle indicator */
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 0 0 10px 10px;
}

/* Floating Action Button (FAB) - Center Menu Button */
.bottom-nav-fab {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(0, 32, 148, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 8px;
    margin-top: -25px;
    border: 4px solid white;
    position: relative;
}

.bottom-nav-fab:active {
    transform: scale(0.92);
    box-shadow: 0 4px 12px rgba(0, 32, 148, 0.25);
}

.bottom-nav-fab:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 119, 192, 0.35);
}

/* Touch feedback */
.bottom-nav-item:active {
    transform: scale(0.95);
}

/* Show bottom nav only on mobile */
@media (max-width: 767px) {
    .bottom-nav {
        display: block;
    }

    /* Add padding to body to prevent content from being hidden behind bottom nav */
    body {
        padding-bottom: 75px !important;
    }

    main {
        min-height: calc(100vh - 75px);
    }
}


/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.4);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 204, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ========================================
   SECTIONS
   ======================================== */

section {
    padding: 50px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h6 {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.75rem;
}

.section-title h2 {
    font-family: 'Mulish', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    font-weight: 800;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-secondary);
    border-radius: 3px;
}

/* ========================================
   HERO SLIDER
   ======================================== */

.hero-slider {
    position: relative;
    height: 450px;
    background: #000;
    overflow: hidden;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
    pointer-events: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.5s ease-in-out;
}

.slide img {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.slide-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.slide-content h2 {
    font-family: 'Mulish', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.1;
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    font-weight: 400;
    line-height: 1.5;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
    opacity: 0.8;
}

/* ========================================
   CARDS & CONTENT
   ======================================== */

.program-card,
.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.program-card::before,
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.program-card:hover,
.news-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.program-card:hover::before,
.news-card:hover::before {
    opacity: 0.03;
}

.program-card img,
.news-card img {
    transition: var(--transition);
}

.program-card:hover img,
.news-card:hover img {
    transform: scale(1.08);
}

/* Value Cards */
.value-card {
    text-align: center;
    padding: 30px 25px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.value-card:hover::before {
    opacity: 0.05;
}

.value-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--light) 0%, #e8e9ea 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.value-card:hover .icon-wrapper {
    transform: rotateY(360deg) scale(1.1);
    background: var(--gradient-secondary);
}

.value-card i {
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.value-card:hover i {
    color: var(--primary);
    animation: pulse 1s ease-in-out;
}

/* Vision & Mission Cards */
.vision-mission-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.vision-mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--gradient-secondary);
    transition: width 0.4s;
}

.vision-mission-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.vision-mission-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

/* About Image Effects */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 35px;
}

.about-image img {
    transition: var(--transition);
    filter: brightness(0.95);
}

.about-image:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.about-image .badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 45px;
    border-radius: 25px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.about-image:hover .badge {
    transform: scale(1.05) rotate(-2deg);
}

/* ========================================
   STATISTICS COUNTER SECTION
   ======================================== */

.stats-section {
    background: var(--gradient-primary);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(0,198,255,0.15)"/></svg>');
    opacity: 0.5;
}

.stat-card {
    text-align: center;
    padding: 25px 15px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: 'Mulish', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 10px;
    display: block;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    opacity: 0.9;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
    background: var(--light);
    padding: 50px 0;
    position: relative;
}

.testimonial-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 8rem;
    font-family: 'Mulish', sans-serif;
    color: var(--secondary);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--secondary);
    object-fit: cover;
}

.testimonial-info h4 {
    font-family: 'Mulish', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-info p {
    color: #888;
    font-size: 0.95rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: var(--gradient-primary);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: 'Mulish', sans-serif;
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 18px;
    font-weight: 900;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #ccc;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 18px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    color: #ccc;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 15px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--gradient-secondary);
    color: var(--primary);
    transform: translateY(-5px) rotate(360deg);
    border-color: var(--secondary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.4);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .slide-content h2 {
        font-size: 3.5rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .slide-content h2 {
        font-size: 3rem;
    }

    .hero-slider {
        height: 600px;
    }

    section {
        padding: 70px 0;
    }

    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* ========================================
   RESPONSIVE DESIGN
   ======================================== */

    /* Tablet and Below (1024px) */
    @media (max-width: 1024px) {

        /* Hide desktop navigation on tablets and mobile */
        .desktop-nav {
            display: none;
        }

        /* Show mobile menu toggle */
        .mobile-menu-toggle {
            display: flex;
        }

        .top-bar {
            font-size: 0.85rem;
            padding: 8px 0;
        }

        .top-bar .contact-info span {
            display: none;
        }

        .top-bar .contact-info span:first-child {
            display: inline;
        }

        .footer-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }

        section {
            padding: 40px 0;
        }

        .hero-slider {
            height: 400px;
        }

        .slide-content h2 {
            font-size: 2.2rem;
        }

        .slide-content p {
            font-size: 1rem;
        }

        .section-title h2 {
            font-size: 1.8rem;
        }

        .section-title h6 {
            font-size: 0.7rem;
        }

        .logo-text h1 {
            font-size: 1.3rem;
        }

        .logo-text p {
            font-size: 0.7rem;
        }

        .logo-area img {
            height: 55px;
        }
    }

    /* Mobile Landscape (768px) */
    @media (max-width: 768px) {
        .top-bar {
            display: none;
        }

        .header {
            padding: 12px 0;
        }

        .header.scrolled {
            padding: 10px 0;
        }

        /* GSMC Style Side-by-Side Branding for Tablets and Mobile */
        @media (max-width: 1024px) {
            .branding-header {
                padding: 25px 0;
            }

            .logo-area-horizontal {
                gap: 20px;
            }

            .logo-wrapper-horizontal {
                width: 75px;
                height: 75px;
                padding: 6px;
            }

            .college-name-brand {
                font-size: 1.6rem;
            }

            .branding-motto {
                font-size: 0.75rem;
                letter-spacing: 2px;
            }
        }

        @media (max-width: 768px) {
            .logo-area-horizontal {
                gap: 15px;
                max-width: 90%;
            }

            .logo-wrapper-horizontal {
                width: 60px;
                height: 60px;
                padding: 5px;
                flex-shrink: 0;
            }

            .college-name-brand {
                font-size: 1.25rem;
            }

            .branding-motto {
                font-size: 0.65rem;
                letter-spacing: 1px;
                margin-top: 5px;
            }

            .branding-header .mobile-menu-toggle {
                right: 15px;
                top: 50%;
            }
        }

        @media (max-width: 480px) {
            .logo-area-horizontal {
                gap: 12px;
            }

            .college-name-brand {
                font-size: 1rem;
            }

            .branding-motto {
                font-size: 0.55rem;
                letter-spacing: 0.5px;
            }
        }

        .logo-area {
            flex-direction: column;
            gap: 12px;
            max-width: 100%;
            margin: 0 auto;
        }

        .logo-text h1 {
            font-size: 1.15rem;
            line-height: 1.2;
        }

        .logo-text p {
            display: block;
            font-size: 0.65rem;
            letter-spacing: 0.5px;
            margin-top: 2px;
        }

        .logo-wrapper {
            width: 60px;
            height: 60px;
            padding: 5px;
            margin: 0 auto;
        }

        .header-contact-info {
            display: none !important;
        }

        .mobile-menu-toggle {
            position: absolute;
            top: 20px;
            right: 20px;
        }

        .hero-slider {
            height: 350px;
        }

        .slide-content h2 {
            font-size: 1.8rem;
            margin-bottom: 12px;
        }

        .slide-content p {
            font-size: 0.95rem;
            margin-bottom: 20px;
        }

        .slide-content h6 {
            font-size: 0.7rem;
            letter-spacing: 1.5px;
            margin-bottom: 12px;
        }

        section {
            padding: 35px 0;
        }

        .section-title {
            margin-bottom: 25px;
        }

        .section-title h2 {
            font-size: 1.6rem;
            padding-bottom: 10px;
        }

        .section-title h6 {
            font-size: 0.65rem;
            margin-bottom: 8px;
        }

        .footer-grid {
            grid-template-columns: 1fr;
            gap: 35px;
        }

        footer {
            padding: 45px 0 25px;
        }

        .btn {
            padding: 10px 22px;
            font-size: 0.85rem;
        }

        /* Fix grid layouts */
        [style*="grid-template-columns: repeat(auto-fit"],
        [style*="grid-template-columns: repeat(auto-fill"] {
            grid-template-columns: 1fr !important;
        }

        /* Program and news cards */
        .program-card,
        .news-card {
            margin: 0 auto;
            max-width: 500px;
        }

        /* Value cards */
        .value-card {
            padding: 25px 20px;
        }

        .value-card .icon-wrapper {
            width: 60px;
            height: 60px;
            margin: 0 auto 15px;
        }

        .value-card i {
            font-size: 1.5rem;
        }

        /* Vision/Mission cards */
        .vision-mission-card {
            padding: 25px;
        }

        /* Stats section */
        .stats-section {
            padding: 35px 0;
        }

        .stat-card {
            padding: 20px 12px;
        }

        .stat-number {
            font-size: 2rem;
            margin-bottom: 8px;
        }

        .stat-label {
            font-size: 0.75rem;
            letter-spacing: 1px;
        }

        /* Testimonials */
        .testimonials-section {
            padding: 35px 0;
        }

        .testimonial-card {
            padding: 28px 22px;
        }

        .testimonial-text {
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        /* CTA section */
        .cta-section {
            padding: 45px 0;
        }

        .cta-content h2 {
            font-size: 1.8rem;
            margin-bottom: 15px;
        }

        .cta-content p {
            font-size: 0.95rem;
            margin-bottom: 22px;
        }

        .cta-buttons {
            flex-direction: column;
            gap: 12px;
        }

        .cta-buttons .btn {
            width: 100%;
            max-width: 280px;
        }

        /* Back to top button */
        .back-to-top {
            width: 45px;
            height: 45px;
            bottom: 20px;
            right: 20px;
        }
    }

    /* Mobile Portrait (480px) */
    @media (max-width: 480px) {
        .container {
            padding: 0 15px;
        }

        .header {
            padding: 10px 0;
        }

        .logo-text h1 {
            font-size: 0.95rem;
        }

        .logo-area img {
            height: 38px;
        }

        .hero-slider {
            height: 300px;
        }

        .slide-content h2 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .slide-content p {
            font-size: 0.85rem;
            margin-bottom: 15px;
        }

        .slide-content h6 {
            font-size: 0.6rem;
            letter-spacing: 1px;
            margin-bottom: 10px;
        }

        .scroll-indicator {
            width: 28px;
            height: 40px;
        }

        section {
            padding: 30px 0;
        }

        .section-title h2 {
            font-size: 1.4rem;
        }

        .section-title h6 {
            font-size: 0.6rem;
        }

        .btn {
            padding: 9px 20px;
            font-size: 0.8rem;
        }

        /* Reduce all padding and margins */
        .program-card,
        .news-card,
        .value-card,
        .vision-mission-card {
            border-radius: 15px;
        }

        .value-card {
            padding: 20px 15px;
        }

        .value-card .icon-wrapper {
            width: 55px;
            height: 55px;
            margin: 0 auto 12px;
        }

        .value-card i {
            font-size: 1.3rem;
        }

        .vision-mission-card {
            padding: 20px;
        }

        .stat-number {
            font-size: 1.8rem;
        }

        .stat-label {
            font-size: 0.7rem;
        }

        .testimonial-card {
            padding: 22px 18px;
        }

        .testimonial-text {
            font-size: 0.9rem;
        }

        .cta-content h2 {
            font-size: 1.5rem;
        }

        .cta-content p {
            font-size: 0.9rem;
        }

        footer {
            padding: 35px 0 20px;
        }

        .footer-grid {
            gap: 25px;
        }

        .back-to-top {
            width: 40px;
            height: 40px;
            font-size: 1.1rem;
        }

        /* Fix inline grid styles */
        [style*="minmax(380px"],
        [style*="minmax(400px"],
        [style*="minmax(350px"] {
            grid-template-columns: 1fr !important;
        }

        /* Specific page fixes */
        .mobile-nav-icon {
            width: 45px;
            height: 45px;
            font-size: 1.1rem;
        }

        .mobile-nav-title {
            font-size: 0.95rem;
        }

        .mobile-nav-subtitle {
            font-size: 0.75rem;
        }

        .mobile-menu-contact-item {
            font-size: 0.85rem;
        }
    }

    /* Mobile App Content Styling */
    @media (max-width: 768px) {

        /* App-like container with padding */
        .container {
            padding: 0 12px;
        }

        /* Make sections look like app screens */
        section {
            background: #f8f9fa;
            margin: 0;
        }

        section:nth-child(even) {
            background: white;
        }

        /* Card-based content layout */
        .program-card,
        .news-card,
        .value-card,
        .vision-mission-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            margin-bottom: 16px;
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        /* Tap effect for cards */
        .program-card:active,
        .news-card:active,
        .value-card:active,
        .vision-mission-card:active {
            transform: scale(0.98);
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
        }

        /* App-like headers */
        .section-title {
            padding: 0 4px;
            margin-bottom: 18px;
        }

        .section-title h2 {
            font-weight: 800;
            letter-spacing: -0.5px;
        }

        /* List-style content */
        .content ul,
        .content ol {
            background: white;
            border-radius: 12px;
            padding: 18px 18px 18px 36px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            margin: 12px 0;
        }

        .content li {
            padding: 8px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .content li:last-child {
            border-bottom: none;
        }

        /* App-like buttons */
        .btn {
            border-radius: 12px;
            font-weight: 700;
            box-shadow: 0 3px 12px rgba(0, 51, 102, 0.2);
            text-transform: none;
        }

        .btn:active {
            transform: scale(0.96);
        }

        /* Stats with app-style cards */
        .stat-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        /* Footer as app footer */
        footer {
            background: #1a1a1a;
            border-radius: 24px 24px 0 0;
            margin-top: 30px;
            padding-bottom: 75px !important;
        }

        /* Hero with app-style */
        .hero-slider {
            border-radius: 0;
            margin: 0;
        }

        .slide-content {
            text-align: center;
        }

        /* Navigation breadcrumbs */
        .breadcrumb {
            background: white;
            padding: 12px 16px;
            border-radius: 12px;
            margin: 12px 0;
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
            font-size: 0.8rem;
        }

        /* Generic page content */
        .content {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
            line-height: 1.7;
        }

        .content h1,
        .content h2,
        .content h3,
        .content h4 {
            margin-top: 24px;
            margin-bottom: 12px;
            font-weight: 800;
            letter-spacing: -0.3px;
        }

        .content h1:first-child,
        .content h2:first-child,
        .content h3:first-child {
            margin-top: 0;
        }

        .content p {
            margin-bottom: 16px;
        }

        .content img {
            border-radius: 12px;
            margin: 16px 0;
        }

        /* Image gallery grid with app style */
        .gallery-item {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        /* Downloads with list style */
        .download-item {
            background: white;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.2s ease;
        }

        .download-item:active {
            transform: scale(0.98);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        }

        /* News cards with app style */
        .news-card {
            border-radius: 16px;
            overflow: hidden;
        }

        .news-card img {
            aspect-ratio: 16/9;
            object-fit: cover;
        }

        .news-card .content {
            padding: 16px;
            border-radius: 0;
            box-shadow: none;
        }

        /* Pull-to-refresh visual hint */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--gradient-secondary);
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        /* Fixed Bottom Nav Styles (Ensure it's here) */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            display: flex;
            justify-content: space-around;
            padding: 10px 5px calc(10px + env(safe-area-inset-bottom));
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
            z-index: 2000;
            border-top: 1px solid rgba(0, 51, 102, 0.08);
        }

        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #777;
            text-decoration: none;
            flex: 1;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            gap: 4px;
        }

        .bottom-nav-item i {
            font-size: 1.3rem;
            transition: transform 0.3s ease;
        }

        .bottom-nav-item span {
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .bottom-nav-item.active {
            color: var(--primary);
        }

        .bottom-nav-item.active i {
            transform: translateY(-3px) scale(1.1);
            filter: drop-shadow(0 4px 8px rgba(0, 32, 148, 0.2));
        }

        .bottom-nav-item:active i {
            transform: scale(0.9);
        }
    }

    /* Utility Classes */
    .text-gradient {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .glassmorphism {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Gallery Grid */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    @media (max-width: 768px) {
        .gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 18px;
        }
    }

    @media (max-width: 480px) {
        .gallery-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }
    }
}

/* ========================================
   RICH TEXT CONTENT & INSTITUTIONAL DESIGN
   ======================================== */
.rich-text-content {
    color: #475569;
    line-height: 1.8;
}

/* Automatic Lead Paragraph Styling */
.rich-text-content>p:first-of-type {
    font-size: 1.25rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.rich-text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Consistent Vertical Spacing (Space-y-6 equivalent) */
.rich-text-content>*+* {
    margin-top: 1.5rem;
}

.rich-text-content h2 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: var(--ribm-blue);
    font-family: 'Mulish', sans-serif;
    position: relative;
    line-height: 1.2;
}

/* Heading Accents */
.rich-text-content h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background: #B38728;
}

.rich-text-content h3 {
    font-size: 1.75rem;
    font-weight: 900;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: #002094;
    font-family: 'Mulish', sans-serif;
}

/* Premium Lists */
.rich-text-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.rich-text-content ul:not([class*='space-y']) li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    color: #475569;
    font-size: 1.05rem;
}

.rich-text-content ul:not([class*='space-y']) li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #B38728;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Featured Blockquotes */
.rich-text-content blockquote {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-left: 6px solid var(--ribm-blue);
    padding: 2.5rem 3rem;
    border-radius: 0 2rem 2rem 0;
    font-style: italic;
    font-size: 1.25rem;
    margin: 3rem 0;
    color: #1e293b;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Tables */
.rich-text-content table {
    width: 100%;
    margin: 3rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.rich-text-content table th {
    background: var(--ribm-blue);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    padding: 1rem 1.25rem;
    font-weight: 800;
    text-align: left;
}

.rich-text-content table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 0.95rem;
}

.rich-text-content table tr:last-child td {
    border-bottom: none;
}

.rich-text-content table tr:nth-child(even) {
    background: #f8fafc;
}

.rich-text-content table tr:hover {
    background: #f1f5f9;
    transition: background 0.3s ease;
}

/* Images */
.rich-text-content img {
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 32, 148, 0.1);
    margin: 3rem 0;
    max-width: 100%;
}