/* ===================================
   HEADER STYLES - PROFESSIONAL DESIGN
   Improved: Larger Logos, Better Fonts, Sticky Nav Bar Only
   =================================== */

:root {
    /* Brand Colors */
    --primary-color: #f58200;
    --primary-dark: #d67300;
    --primary-light: #ff9933;
    
    /* Text Colors */
    --text-primary: #2c2c2c;
    --text-secondary: #555555;
    --text-muted: #888888;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #2c2c2c;
    
    /* Border Colors */
    --border-light: #e0e0e0;
    --border-medium: #cccccc;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Typography - Best Devanagari Fonts */
    --font-primary: 'Mukta', 'Hind', sans-serif;
    --font-display: 'Tiro Devanagari Hindi', 'Mukta', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Layout */
    --container-max-width: 1280px;
    --header-height: 75px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   HEADER
   =================================== */

.site-header {
    position: relative;
    background: var(--bg-white);
}

/* Header Top Section (Not Sticky) */
.header-top {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    position: relative;
}

.top-content {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: var(--spacing-lg);
    align-items: center;
}

/* Two-logo groups on each side */
.logos-left,
.logos-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logos-right {
    justify-content: flex-end;
    align-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-height: 120px;
    max-width: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

/* PART 3: Ensure both logos-right items share identical sizing/vertical alignment */
.logos-right .logo-item {
    height: 120px;
    align-items: center;
    justify-content: center;
}

.logos-right .logo-item img {
    height: 110px;
    max-height: 110px;
    max-width: 110px;
    width: auto;
    object-fit: contain;
}

.logo-item img:hover {
    transform: scale(1.05);
}

.header-center {
    text-align: center;
}

/* Organizer, Collaboration, Occasion - Upper Lines */
.organizer,
.collaboration,
.occasion {
    font-family: var(--font-primary);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
    color: var(--bg-white);
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ── 3-LEVEL TITLE HIERARCHY ── */

/* Line 1 — Organisational context */
.title-line-1 {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    letter-spacing: 0.02em;
    margin-bottom: 0.45rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* Line 2 — Medium, bold, maroon/red highlight */
.title-line-2 {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.9vw, 1.3rem);
    font-weight: 800;
    color: #7B1111;
    line-height: 1.4;
    letter-spacing: 0.015em;
    margin-bottom: 0.35rem;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Line 3 — Large, bold, deep blue main event title */
.title-line-3 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.6vw, 1.9rem);
    font-weight: 900;
    color: #0D2860;
    line-height: 1.35;
    letter-spacing: 0.01em;
    margin: 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Navigation Bar (STICKY ON SCROLL) */
.main-nav {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

/* Add shadow when scrolled */
.main-nav.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: rgba(245, 130, 0, 0.2);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--spacing-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    font-weight: 800;
    color: var(--text-primary);
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.nav-brand:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(245, 130, 0, 0.25);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.brand-text {
    font-size: 1rem;
    font-weight: 900;
    white-space: nowrap;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.975rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-primary);
}

.nav-link:hover {
    background: rgba(245, 130, 0, 0.08);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(245, 130, 0, 0.15), rgba(245, 130, 0, 0.08));
    color: var(--primary-color);
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(245, 130, 0, 0.15);
}

.nav-link .material-icons {
    font-size: 19px;
    transition: transform 0.3s ease;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    min-width: 300px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.65rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.85rem 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.975rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(245, 130, 0, 0.12), rgba(245, 130, 0, 0.06));
    color: var(--primary-color);
    transform: translateX(6px);
    font-weight: 900;
}

.nav-dropdown:hover .dropdown-toggle .material-icons,
.nav-dropdown.active .dropdown-toggle .material-icons {
    transform: rotate(180deg);
}

/* Register Button */
.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 900;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 130, 0, 0.25);
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--primary-dark), #b85f00);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 130, 0, 0.35);
}

.btn-register .material-icons {
    font-size: 21px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--border-medium);
    border-radius: 10px;
    cursor: pointer;
    padding: 9px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    border-color: var(--primary-color);
    background: rgba(245, 130, 0, 0.08);
}

.hamburger {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-toggle.active .hamburger {
    background: var(--primary-color);
}

.mobile-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: right 0.35s ease;
    z-index: 1001;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 2px solid var(--border-light);
    background: var(--bg-light);
}

.mobile-menu-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
    transform: rotate(90deg);
}

.mobile-menu-content {
    padding: var(--spacing-md);
}

.mobile-register {
    width: 100%;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list > li {
    margin-bottom: 0.65rem;
}

.mobile-nav-list > li > a {
    display: block;
    padding: 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 10px;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.mobile-nav-list > li > a:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Mobile Dropdown */
.mobile-dropdown {
    margin-bottom: 0.65rem;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.15rem;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.mobile-dropdown-toggle:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-dropdown-toggle .material-icons {
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle {
    background: linear-gradient(135deg, rgba(245, 130, 0, 0.12), rgba(245, 130, 0, 0.06));
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-dropdown.active .mobile-dropdown-toggle .material-icons {
    transform: rotate(45deg);
}

.mobile-dropdown-content {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 1200px;
    padding-top: 0.65rem;
}

.mobile-dropdown-content li {
    margin-bottom: 0.65rem;
}

.mobile-dropdown-content a {
    display: block;
    padding: 1rem 1.15rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    margin-left: 1.15rem;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.mobile-dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(245, 130, 0, 0.12), rgba(245, 130, 0, 0.06));
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(6px);
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .btn-register {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Switch to flex-column so we can reorder children */
    .top-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-sm);
    }

    /* All 4 logos appear in ONE horizontal row at the top */
    .logos-left,
    .logos-right {
        display: flex;
        order: 1;           /* both logo groups render before the title */
        flex: 0 0 auto;
        justify-content: center;
        gap: 10px;
    }

    /* Put logos-left and logos-right side-by-side by giving them the same row */
    .logos-left  { margin-right: 6px; }
    .logos-right { margin-left:  6px; }

    /* Title renders below the logo row */
    .header-center {
        order: 2;
        width: 100%;
    }

    .logos-right { display: none; }
    .logos-left .logo-item:nth-child(2) { display: none; }

    .logos-left .logo-item:first-child img {
        max-height: 100px;
        max-width: 100px;
    }

    .logo-item img {
        max-height: 72px;
        max-width: 72px;
    }

    .organizer,
    .collaboration,
    .occasion {
        font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    }
    
    .title-line-1 {
        font-size: clamp(1rem, 3vw, 1.15rem);
    }

    .title-line-2 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .title-line-3 {
        font-size: clamp(1.1rem, 3.5vw, 1.55rem);
    }
    
    .nav-brand .brand-text {
        font-size: 0.925rem;
    }
    
    :root {
        --header-height: 65px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-top {
        padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
    }
    
    .logo-item img {
        max-height: 52px;
        max-width: 52px;
    }

    .organizer,
    .collaboration,
    .occasion {
        font-size: clamp(0.9rem, 2.2vw, 1.05rem);
        margin-bottom: 0.3rem;
    }
    
    .main-title {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        margin-top: 0.6rem;
    }
    
    .nav-brand {
        padding: 0.55rem 0.85rem;
    }
    
    .brand-text {
        font-size: 0.875rem;
    }
    
    :root {
        --header-height: 60px;
    }
}

/* Print Styles */
@media print {
    .mobile-toggle,
    .mobile-menu,
    .btn-register {
        display: none;
    }
    
    .main-nav {
        position: relative;
    }
}