/* ================================================================
   PG Degree College Patti â€” Premium Design System v4.0 (Maroon Edition)
   Color Palette: Deep Maroon + Heritage Gold + Silk White
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Mukta:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@1,600&display=swap');

/* ================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ================================================================ */
:root {
    /* Primary Palette - Maroon (UPC Reference) */
    --primary:       #8B1A2D;
    --primary-dark:  #5e0f1d;
    --primary-light: #b02a41;
    --maroon:        #8B1A2D; /* alias for --primary â€” fixes broken references */
    
    /* Branding Accent - Gold */
    --accent:        #f0a500;
    --accent-dark:   #c7880a;
    --accent-light:  #ffd060;
    
    /* Secondary & Utility */
    --navy:          #002060;
    --navy-light:    #1a3a8f;
    --green:         #1a7a45;
    --saffron:       #FF6B00;

    /* Neutrals */
    --dark:          #0d1117;
    --dark-2:        #161b22;
    --gray-900:      #1c2028;
    --gray-700:      #374151;
    --gray-600:      #4b5563; /* was missing â€” used by faculty/gallery */
    --gray-500:      #6b7280;
    --gray-300:      #d1d5db;
    --gray-200:      #e5e7eb; /* was missing â€” used by nb-footer border */
    --gray-100:      #f3f4f6;
    --white:         #ffffff;

    /* Gradients */
    --grad-primary:    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    --grad-accent:     linear-gradient(135deg, var(--accent-dark), var(--accent), var(--accent-light));
    --grad-gold-shine: linear-gradient(90deg, transparent 0%, rgba(240,165,0,0.15) 50%, transparent 100%);
    
    /* Shadows */
    --shadow-sm:   0 2px 8px rgba(139,26,45,0.08);
    --shadow-md:   0 8px 25px rgba(139,26,45,0.14);
    --shadow-lg:   0 20px 60px rgba(139,26,45,0.18);
    --shadow-glow: 0 0 25px rgba(240,165,0,0.3);
    
    /* Spacing */
    --section-py: 40px;
    --card-radius: 14px;
    --btn-radius:  8px;
    
    /* Transitions */
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fonts - Premium Outfit & Mukta */
    --font-en: 'Outfit', sans-serif;
    --font-hi: 'Mukta', sans-serif;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-en);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}
.hindi-font, [lang="hi"], .hi { font-family: var(--font-hi) !important; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--primary); }
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--primary);
    position: relative;
    padding-bottom: 16px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 60px; height: 4px;
    background: var(--grad-accent);
    border-radius: 2px;
}
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }
.section-subtitle { color: var(--gray-500); font-size: 1rem; margin-top: 10px; }

/* ================================================================
   TOP BAR
   ================================================================ */
.topbar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 7px 0;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 2px solid var(--accent);
    position: relative;
    z-index: 3000;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--accent); }
/* Topbar inner flex - fix layout */
.topbar > .container > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar .topbar-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.topbar .social-links-top {
    display: flex;
    gap: 14px;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 14px;
    flex-shrink: 0;
}
.topbar .social-links-top a {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    transition: var(--transition);
}
.topbar .social-links-top a:hover { color: var(--accent); }
.topbar .ticker-label {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240,165,0,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(240,165,0,0); }
}
.ticker-wrap { overflow: hidden; flex: 1; min-width: 0; }
.ticker-text {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}
@keyframes ticker-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
/* Topbar right action links */
.topbar-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.topbar-links a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
    white-space: nowrap;
}
.topbar-links a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}
.topbar-links .btn-student-login {
    background: var(--accent);
    color: var(--primary-dark) !important;
    font-weight: 700;
    border-color: var(--accent);
}
.topbar .social-links a {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 12px;
}

/* Mobile Topbar Specifics */
.btn-student-login-mobile {
    background: var(--accent);
    color: var(--primary-dark) !important;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-student-portal-desktop {
    background: var(--accent);
    color: var(--primary-dark) !important;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--accent);
}

/* ================================================================
   HEADER
   ================================================================ */
.college-header {
    background: var(--white);
    position: relative;
    z-index: 3000;
    transition: var(--transition);
}

.header-logo {
    height: clamp(60px, 12vw, 85px);
    width: auto;
    transition: var(--transition);
}

.logo-container, .uni-logo-container {
    padding: 2px;
    background: var(--white);
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.header-content .college-name-hindi {
    font-size: clamp(1rem, 4.2vw, 1.85rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.header-content .college-name-en {
    font-size: clamp(0.7rem, 2.5vw, 1.1rem);
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.affiliation-badge {
    font-family: var(--font-hi);
    font-size: clamp(0.7rem, 2.2vw, 1.05rem);
    font-weight: 600;
    color: var(--gray-600);
    border: 1px dashed var(--gray-300);
    padding: 3px 15px;
    display: inline-block;
    border-radius: 30px;
    background: var(--gray-100);
}

.header-uni-logo {
    height: 75px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

@media (max-width: 991px) {
    .header-logo { height: 55px; }
    .header-uni-logo { height: 55px; }
    .affiliation-badge { padding: 2px 10px; border-style: solid; box-shadow: none; }
}

@media (max-width: 576px) {
    .header-logo, .header-uni-logo { height: 45px; }
    .header-content .college-name-hindi { font-weight: 700; }
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.main-nav {
    background: var(--primary); /* Deep Maroon */
    box-shadow: var(--shadow-sm);
    z-index: 1100; /* Increased to be above header (1050) */
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.main-nav .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.main-nav ul.navbar-nav {
    display: flex;
    flex-direction: row; /* FORCE HORIZONTAL */
    margin: 0;
    padding: 0;
}
.main-nav ul.navbar-nav > li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav .nav-item {
    position: relative;
    padding: 0;
}
.main-nav .nav-item > a {
    display: block;
    padding: 20px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.main-nav .nav-item:hover > a,
.main-nav .nav-item.active > a {
    background: var(--primary-dark);
    color: var(--accent);
}

/* Dropdown */
.main-nav .dropdown { position: relative; }
.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    display: block !important; /* OVERRIDE BOOTSTRAP DISPLAY NONE */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 10px 10px;
    z-index: 1050;
    padding: 0;
}
.main-nav .dropdown:hover > .dropdown-menu,
.main-nav .dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-nav .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}
.main-nav .dropdown-menu a:hover {
    background: var(--primary);
    color: var(--white);
    padding-left: 28px;
}
.main-nav .dropdown-menu a i { width: 18px; color: var(--accent); }
.main-nav .dropdown-menu a:hover i { color: var(--accent-light); }

/* ================================================================
   HERO SLIDER
   ================================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
}
.hero-slider .slide {
    position: relative;
    height: 520px;
}
.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 40%, transparent 100%);
    display: flex;
    align-items: flex-end; /* Move text to bottom */
    padding-bottom: 50px;
}
.hero-slider .slide-content {
    max-width: 600px;
    color: var(--white);
    padding: 0 40px;
    animation: slideInLeft 0.8s ease;
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
.hero-slider .slide-badge {
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hero-slider .slide-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem); /* Smaller font */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: var(--white);
}
.hero-slider .slide-subtitle {
    font-size: 0.9rem; /* Smaller sub-font */
    opacity: 0.9;
    margin-bottom: 20px;
}
.hero-slider .slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 12px 28px;
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(240,165,0,0.3);
    transition: var(--transition);
}
.hero-slider .slide-cta:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(240,165,0,0.4);
}
.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(240,165,0,0.8) !important;
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
    width: auto !important;
    margin: 0 15px;
}
.carousel-indicators [data-bs-target] {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.5;
}
.carousel-indicators .active { opacity: 1; }

/* ================================================================
   NOTICE BOARD PANEL
   ================================================================ */
.noticeboard-panel {
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    height: 480px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}
.noticeboard-panel .nb-header {
    background: var(--grad-primary);
    color: var(--white);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
}
.noticeboard-panel .nb-header .nb-icon {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 16px;
}
.noticeboard-panel .nb-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-100);
    background: var(--gray-100);
}
.noticeboard-panel .nb-tab {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.noticeboard-panel .nb-tab.active {
    background: var(--white);
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    margin-bottom: -2px;
}
.noticeboard-panel .nb-content {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}
.noticeboard-panel .nb-content::-webkit-scrollbar { width: 4px; }
.noticeboard-panel .nb-content::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.notice-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: pointer;
}
.notice-item:hover { background: var(--gray-100); }
.notice-item:last-child { border-bottom: none; }
.notice-item .notice-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.notice-item .ni-urgent { background: rgba(220,53,69,0.1); color: #dc3545; }
.notice-item .ni-exam { background: rgba(0,32,96,0.1); color: var(--primary); }
.notice-item .ni-result { background: rgba(26,122,69,0.1); color: var(--green); }
.notice-item .ni-admission { background: rgba(240,165,0,0.1); color: var(--accent-dark); }
.notice-item .ni-general { background: rgba(107,114,128,0.1); color: var(--gray-500); }
.notice-item .notice-body { flex: 1; min-width: 0; }
.notice-item .notice-title {
    font-family: var(--font-hi);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notice-item .notice-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--gray-500);
}
.badge-urgent { background: #dc3545; color: white; font-size: 9px; padding: 2px 7px; border-radius: 30px; font-weight: 700; }
.badge-new { background: var(--accent); color: var(--primary-dark); font-size: 9px; padding: 2px 7px; border-radius: 30px; font-weight: 700; animation: blink-new 1.5s infinite; }
@keyframes blink-new { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.nb-footer {
    padding: 12px 18px;
    background: var(--gray-100);
    text-align: center;
    border-top: 1px solid var(--gray-200);
}
.nb-footer a {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nb-footer a:hover { color: var(--accent-dark); }

/* ================================================================
   PORTAL CARDS
   ================================================================ */
.portals-section {
    padding: 20px 0 30px;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}
.portal-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.portal-card {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.portal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-accent);
    transform: scaleX(0);
    transition: var(--transition);
}
.portal-card:hover::before { transform: scaleX(1); }
.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.portal-card .pc-icon {
    width: 70px; height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: var(--transition);
}
.portal-card:hover .pc-icon { transform: scale(1.1) rotate(-5deg); }
.pc-blue  { background: rgba(0,32,96,0.08); color: var(--primary); }
.pc-gold  { background: rgba(240,165,0,0.12); color: var(--accent-dark); }
.pc-green { background: rgba(26,122,69,0.1); color: var(--green); }
.pc-red   { background: rgba(139,26,45,0.1); color: var(--maroon); }
.portal-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.portal-card p {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 18px;
    line-height: 1.5;
}
.btn-portal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--btn-radius);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid;
}
.btn-portal-primary {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-portal-primary:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-portal-gold {
    border-color: var(--accent);
    color: var(--accent-dark);
}
.btn-portal-gold:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

/* ================================================================
   MESSAGES SECTION
   ================================================================ */
.messages-section {
    padding: var(--section-py) 0;
    background: var(--white);
}
/* LEADERSHIP MESSAGES (UPC Style) */
.messages-section { background: #f9f9f9; padding: 70px 0; border-top: 1px solid #eee; }
.message-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    height: 100%;
    transition: var(--transition);
}
.message-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.message-card .person-photo {
    width: 140px;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    border: 5px solid var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.message-card .designation-badge {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.message-card h5 { font-weight: 800; font-size: 1.15rem; color: var(--primary); }
.message-card blockquote {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    border-left: 2px solid var(--accent);
    padding-left: 20px;
    margin: 20px 0;
}
.btn-readmore {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-readmore:hover { color: var(--accent-dark); gap: 12px; }

/* ================================================================
   STATS COUNTER
   ================================================================ */
.stats-section {
    background: var(--grad-primary);
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(240,165,0,0.1) 0%, transparent 60%);
    border-radius: 50%;
}
.stat-card {
    text-align: center;
    color: var(--white);
    padding: 10px 15px;
}
.stat-card .stat-number {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
    display: block;
}
.stat-card .stat-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    font-family: var(--font-hi);
}
.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.15;
    position: absolute;
    top: 10px; right: 20px;
}
.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.2);
    margin: 10px 0;
}

/* ================================================================
   GALLERY SECTION
   ================================================================ */
.gallery-section {
    padding: var(--section-py) 0;
    background: var(--gray-100);
}
.gallery-section { padding: var(--section-py) 0; background: var(--white); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 15px;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,32,96,0.9) 0%, rgba(0,32,96,0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: 0.4s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-caption {
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: translateY(10px);
    transition: 0.4s;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ================================================================
   FACULTY SECTION
   ================================================================ */
/* background of faculty section */
.faculty-section { padding: var(--section-py) 0; background: #eef0f5; }
.faculty-grid-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}
.faculty-card-platinum {
    background: #fff;
    border-radius: 20px;
    padding: 18px 16px 16px;
    text-align: center;
    box-shadow: 0 6px 22px rgba(139,26,45,0.08);
    border: 1px solid rgba(139,26,45,0.07);
    border-top: 3px solid #8b1a2d;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.faculty-card-platinum:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(139,26,45,0.14);
    border-top-color: #f0a500;
}
.fcp-photo-wrap { position: relative; width: 90px; height: 90px; margin: 0 auto 12px; }
.fcp-photo-wrap img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(139,26,45,0.18); transition: transform 0.4s ease; }
.faculty-card-platinum:hover .fcp-photo-wrap img { transform: scale(1.06); }
.fcp-verified { position: absolute; bottom: 2px; right: 2px; width: 22px; height: 22px; background: linear-gradient(135deg,#8b1a2d,#c0392b); border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; }
.fcp-name { font-size: 1rem; font-weight: 800; color: #8b1a2d; margin-bottom: 3px; line-height: 1.3; }
.fcp-designation { font-size: 11px; color: #64748b; font-weight: 500; margin-bottom: 10px; }
.fcp-divider { height: 1px; background: linear-gradient(to right, #f0a500, rgba(240,165,0,0.1)); margin: 0 0 10px; }
.fcp-contacts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; text-align: left; min-height: 68px; }
.fcp-contact-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #374151; }
.fcp-contact-icon { width: 26px; height: 26px; border-radius: 7px; background: rgba(139,26,45,0.08); color: #8b1a2d; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.fcp-contact-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.fcp-socials { display: flex; gap: 6px; justify-content: flex-start; margin-bottom: 12px; }
.fcp-social-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; text-decoration: none; transition: transform 0.25s, opacity 0.25s; }
.fcp-social-icon.ln  { background: #e8f4fc; color: #0077b5; }
.fcp-social-icon.tw  { background: #e7f5fd; color: #1da1f2; }
.fcp-social-icon.fb  { background: #eef2ff; color: #1877f2; }
.fcp-social-icon.ig  { background: #fce7f3; color: #e1306c; }
.fcp-social-icon:hover { transform: scale(1.15); opacity: 0.85; }
.fcp-cv-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 10px; border-radius: 12px; background: linear-gradient(135deg, #8b1a2d 0%, #b02a41 100%); color: #fff; font-weight: 700; font-size: 12px; border: none; transition: all 0.3s ease; text-decoration: none; cursor: pointer; margin-top: auto; letter-spacing: 0.3px; }
.fcp-cv-btn:hover { background: linear-gradient(135deg, #6e0f20 0%, #8b1a2d 100%); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(139,26,45,0.4); }
.fcp-cv-btn.disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; pointer-events: none; border: 1px solid #e2e8f0; }
@media (max-width: 1199px) { .faculty-grid-premium { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px)  { .faculty-grid-premium { grid-template-columns: 1fr; } }



/* ================================================================
   QUICK LINKS GRID
   ================================================================ */
.quick-links-section {
    padding: 50px 0;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 10px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.quick-link-card .ql-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}
.quick-link-card:hover .ql-icon { transform: scale(1.15); }
.quick-link-card .ql-title {
    font-family: var(--font-hi);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--gray-700);
    line-height: 1.3;
}

/* ================================================================
   EVENTS SECTION
   ================================================================ */
.events-section {
    padding: var(--section-py) 0;
    background: var(--gray-100);
}
.event-card {
    display: flex;
    gap: 16px;
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-left: 3px solid var(--accent); }
.event-card .event-date-box {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.event-card .event-date-box .day { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.event-card .event-date-box .month { font-size: 10px; text-transform: uppercase; opacity: 0.8; }
.event-card .event-body { flex: 1; }
.event-card .event-title { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.event-card .event-meta { font-size: 11px; color: var(--gray-500); display: flex; gap: 12px; flex-wrap: wrap; }
.event-card .event-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 30px; }
.badge-academic { background: rgba(0,32,96,0.1); color: var(--primary); }
.badge-cultural  { background: rgba(139,26,45,0.1); color: var(--maroon); }
.badge-sports    { background: rgba(26,122,69,0.1); color: var(--green); }

/* ================================================================
   DOWNLOADS SECTION
   ================================================================ */
.downloads-section {
    padding: var(--section-py) 0;
    background: var(--white);
}
.download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 10px;
}
.download-item:hover { background: var(--gray-100); border-color: var(--accent); }
.download-item .dl-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: rgba(220,53,69,0.1);
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.download-item .dl-icon.pdf   { background: rgba(220,53,69,0.1); color: #dc3545; }
.download-item .dl-icon.doc   { background: rgba(0,120,212,0.1); color: #0078d4; }
.download-item .dl-icon.other { background: rgba(0,32,96,0.1);   color: var(--primary); }
.download-item .dl-title {
    font-family: var(--font-hi);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    flex: 1;
}
.download-item .dl-size { font-size: 11px; color: var(--gray-500); }
.download-item .dl-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--transition);
}
.download-item:hover .dl-btn { background: var(--accent); color: var(--primary-dark); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.footer-brand .logo { width: 60px; margin-bottom: 16px; }
.footer-brand .college-name {
    font-family: var(--font-hi);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-widget h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--accent);
}
.footer-links li + li { margin-top: 8px; }
.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.footer-links a i { font-size: 10px; color: var(--accent); }
.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    align-items: flex-start;
}
.footer-contact-item i {
    width: 30px; height: 30px;
    background: rgba(240,165,0,0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 13px;
    flex-shrink: 0;
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
}
.footer-social a:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    margin-top: 40px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
}

/* Visitor Counter Card */
.vc-card {
    background: rgba(0,0,0,0.4); 
    border-radius: 15px; 
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1); 
    text-align: center;
}
.vc-label { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 1px; margin-bottom: 12px; font-weight: 700; }
.vc-grid { display: flex; gap: 5px; justify-content: center; margin-bottom: 12px; }
.vc-digit {
    background: linear-gradient(to bottom, #444, #111);
    color: #fff; width: 30px; height: 42px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 900; font-family: monospace;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.1), 0 5px 15px rgba(0,0,0,0.5);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.vc-status { font-size: 10px; color: #28a745; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pulse-dot { width: 8px; height: 8px; background: #28a745; border-radius: 50%; box-shadow: 0 0 10px #28a745; animation: vcPulse 1.5s infinite; }
@keyframes vcPulse { 0% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.3; } }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn { border-radius: var(--btn-radius); font-weight: 600; transition: var(--transition); }
.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border: none;
}
.btn-primary-custom:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 10px 24px;
    border: none;
    font-weight: 700;
}
.btn-accent:hover { background: var(--accent-light); box-shadow: var(--shadow-glow); }
.btn-outline-primary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 22px;
    background: transparent;
}
.btn-outline-primary-custom:hover { background: var(--primary); color: var(--white); }
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 0;
    border: none;
    background: none;
}
.btn-view-all:hover { color: var(--accent-dark); gap: 12px; }

/* ================================================================
   BREADCRUMBS
   ================================================================ */
.pgdc-breadcrumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 40px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.pgdc-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px; height: 100%;
    background: url('data:image/svg+xml,...') no-repeat right center;
    opacity: 0.05;
}
.pgdc-breadcrumb h1 { color: var(--white); font-size: 1.8rem; margin-bottom: 8px; }
.pgdc-breadcrumb .breadcrumb { background: none; padding: 0; margin: 0; }
.pgdc-breadcrumb .breadcrumb-item { color: rgba(255,255,255,0.7); font-size: 13px; }
.pgdc-breadcrumb .breadcrumb-item.active { color: var(--accent); }
.pgdc-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ================================================================
   UTILITIES
   ================================================================ */
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-maroon { color: var(--maroon) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.bg-accent { background: var(--accent) !important; }
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent), var(--primary-light));
    border: none;
    border-radius: 2px;
    margin: 0;
}
.preloader {
    position: fixed; inset: 0;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-spinner {
    width: 50px; height: 50px;
    border: 4px solid rgba(240,165,0,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    border: 2px solid var(--accent);
    font-size: 16px;
}
.scroll-to-top.show { opacity: 1; transform: translateY(0); }
.scroll-to-top:hover { background: var(--accent); color: var(--primary-dark); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
.shine-effect {
    position: relative;
    overflow: hidden;
}
.shine-effect::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--grad-gold-shine);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1199px) {
    .portal-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-links-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    /* Navbar Mobile Trigger Button */
    .navbar-toggler {
        border: none;
        background: var(--accent);
        color: var(--primary-dark);
        padding: 8px 15px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 800;
        font-size: 13px;
        box-shadow: 0 4px 15px rgba(240,165,0,0.3);
        transition: var(--transition);
        margin: 10px 0;
    }
    .navbar-toggler:active { transform: scale(0.95); }
    .navbar-toggler i { font-size: 18px; }

    /* Mobile Menu Drawer */
    .main-nav ul.navbar-nav {
        display: block !important;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        z-index: 2000;
        padding: 160px 0 30px; /* Increased padding to start below header */
        overflow-y: auto;
        transition: all 0.4s cubic-bezier(0.85, 0, 0.15, 1);
        box-shadow: 20px 0 50px rgba(0,0,0,0.3);
    }
    .main-nav ul.navbar-nav.open { left: 0; }
    
    /* Backdrop Overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        backdrop-filter: blur(4px);
    }
    .nav-overlay.active { opacity: 1; visibility: visible; }

    .main-nav ul.navbar-nav > li { border-bottom: 1px solid var(--gray-100); }
    .main-nav ul.navbar-nav > li > a {
        color: var(--gray-800);
        padding: 15px 25px;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .main-nav ul.navbar-nav > li:hover > a,
    .main-nav ul.navbar-nav > li.active > a {
        background: var(--gray-100);
        color: var(--primary);
    }

    /* Submenus on Mobile */
    .main-nav .dropdown-menu {
        position: static;
        display: none !important;
        background: var(--gray-50);
        padding: 0;
        min-width: 100%;
        box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
        border-top: 1px solid var(--gray-200);
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .main-nav .dropdown.open > .dropdown-menu,
    .main-nav .dropdown-submenu.open > .dropdown-menu { display: block !important; }
    .main-nav .dropdown-menu a {
        padding: 12px 25px 12px 45px;
        color: var(--gray-600);
        font-size: 13px;
    }
    
    /* Dropdown Toggle Icon */
    .main-nav .dropdown > a::after,
    .main-nav .dropdown-submenu > a::after {
        content: '\f107';
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        transition: 0.3s;
        margin-left: 10px;
    }
    .main-nav .dropdown.open > a::after,
    .main-nav .dropdown-submenu.open > a::after { transform: rotate(180deg); color: var(--accent-dark); }

    /* Mobile Menu Drawer Header & Close */
    .menu-drawer-header {
        background: var(--primary);
        margin-bottom: 10px;
    }
    .btn-close-menu {
        background: rgba(255,255,255,0.15);
        border: none;
        color: var(--white);
        width: 40px; height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        transition: 0.3s;
    }
    .btn-close-menu:hover { background: var(--accent); color: var(--primary-dark); }
    
    .navbar-toggler { display: flex !important; }
    
    .hero-slider .slide { height: 350px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.large { grid-column: span 1; grid-row: span 1; }

    /* FOOTER MOBILE REFINEMENTS */
    .site-footer { padding: 30px 0 0; }
    .footer-brand { margin-bottom: 25px; text-align: center; display: flex; flex-direction: column; align-items: center; }
    .footer-logo-img { width: 70px !important; margin-bottom: 15px; }
    .footer-brand .college-name { font-size: 1.1rem !important; }
    .footer-brand p { font-size: 13px !important; opacity: 0.8; }
    
    .footer-contact { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 20px; }
    .footer-contact-item { 
        justify-content: center; 
        width: 100%; 
        max-width: 280px; 
        background: rgba(255,255,255,0.05); 
        padding: 10px 15px; 
        border-radius: 8px;
        margin-bottom: 10px;
        gap: 15px !important;
    }
    .footer-contact-item i { background: transparent; width: auto; height: auto; font-size: 16px; opacity: 0.6; }

    .footer-widget { margin-bottom: 30px; text-align: center; }
    .footer-widget h5 { margin-bottom: 15px; display: inline-block; }
    .footer-widget h5::after { left: 50%; transform: translateX(-50%); width: 30px; }
    .footer-links { padding: 0; display: inline-block; }
    .footer-links li { margin: 0; padding: 5px 0; }
    .footer-links a { justify-content: center; }
    
    .footer-bottom { text-align: center; padding: 20px 0; }
}
@media (max-width: 767px) {
    :root { --section-py: 40px; }
    .portal-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .quick-links-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .hero-slider .slide { height: 260px; }
    .hero-slider .slide-overlay { display: none; }
    .stats-section .row > div { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .college-header { padding: 10px 0 !important; }
    .college-header h1.college-name-hindi { font-size: 1.1rem !important; }
}
@media (max-width: 480px) {
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-link-card .ql-icon { width: 40px; height: 40px; font-size: 16px; }
    .portal-cards-grid { grid-template-columns: 1fr; }
    .college-header h1.college-name-hindi { font-size: 1rem !important; }
}
.leadership-widget {
    height: 520px;
    display: flex;
    flex-direction: column;
}
.leader-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* ================================================================
   NESTED DROPDOWNS (SUBMENUS)
   ================================================================ */
.dropdown-submenu { position: relative; }

/* Desktop Hover Support */
@media (min-width: 992px) {
    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -5px;
        margin-left: 0;
        border-radius: 0 10px 10px 10px;
        border-top: none;
        border-left: 3px solid var(--accent);
        transform: translateX(10px);
        opacity: 0;
        visibility: hidden;
        display: block !important;
        transition: all 0.3s ease;
    }
    .dropdown-submenu:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    /* Shift left if near right edge (optional/basic) */
    .dropdown-submenu.submenu-left > .dropdown-menu {
        left: auto;
        right: 100%;
        border-left: none;
        border-right: 3px solid var(--accent);
        border-radius: 10px 0 10px 10px;
        transform: translateX(-10px);
    }
    .dropdown-submenu.submenu-left:hover > .dropdown-menu {
        transform: translateX(0);
    }
}

/* Mobile Toggle Support (handled via .open class in JS) */
@media (max-width: 991px) {
    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        display: none !important;
        width: 100%;
        box-shadow: none;
        border-left: 2px dashed var(--accent);
        margin-left: 20px;
        background: rgba(0,0,0,0.02);
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .dropdown-submenu.open > .dropdown-menu {
        display: block !important;
    }
    .dropdown-submenu > .dropdown-toggle::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        float: right;
        transition: transform 0.3s;
    }
    .dropdown-submenu.open > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

