:root {
    --navy-900: #061427;
    --navy-800: #0b1d36;
    --navy-700: #122a4d;
    --navy-100: #f0f4f8;
    --yellow:   #f5c542;
    --yellow-light: #ffd95e;
    --text:     #1b2430;
    --text-muted: #5a6b80;
    --slate:    #334155;
    --white:    #ffffff;
    --off-white: #f8f9fb;
    --border:   rgba(245, 197, 66, 0.22);

    --shadow-sm: 0 4px 12px rgba(11, 29, 54, 0.06);
    --shadow-md: 0 8px 24px rgba(11, 29, 54, 0.10);
    --shadow-lg: 0 16px 40px rgba(11, 29, 54, 0.15);

    --transition: 0.3s ease;
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:    'Inter',   -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    background-image:
        linear-gradient(rgba(245, 197, 66, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 197, 66, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow-x: hidden;
}

a { color: var(--yellow); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--yellow-light); }

/* HEADER*/
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(11, 29, 54, 0);
    padding: 20px 0;
    z-index: 1000;
    transition: background var(--transition), padding var(--transition);
}

header.scrolled {
    background: rgba(11, 29, 54, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 14px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-number {
    color: var(--yellow);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-top: 4px;
}

nav { display: flex; gap: 28px; align-items: center; }

nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 4px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--yellow);
    transition: width var(--transition);
}

nav a:hover { color: var(--yellow); }
nav a:hover::after { width: 100%; }

.menu-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--white);
    z-index: 100000
}

.menu-toggle svg line {
    transition: transform 0.2s ease,
                opacity 0.2s ease;
    transform-origin: center;
}

.menu-toggle.active svg line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active svg line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active svg line:nth-child(3) {
    transform: translateY(-2.5px) rotate(-45deg);
}

/*HERO*/
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.hero-content { animation: fadeInDown 1s ease-out; }

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(245, 197, 66, 0.15);
    border: 1px solid var(--yellow);
    border-radius: 999px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(56px, 10vw, 120px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: -3px;
    line-height: 1;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(16px, 2.5vw, 22px);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    letter-spacing: 0.5px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2.5s ease-in-out infinite;
    z-index: 20;
    opacity: 0.7;
    color: var(--white);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}


.hero-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

/* Dark gradient overlay so white hero text stays legible on any image */
.hero-overlay-tint {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(6, 20, 39, 0.65) 0%, rgba(11, 29, 54, 0.55) 100%),
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Pause/play button */
.hero-pause {
    position: absolute;
    bottom: 28px;
    right: 28px;
    z-index: 25;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(11, 29, 54, 0.5);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: background var(--transition), border-color var(--transition), transform 0.15s ease;
}

.hero-pause:hover {
    background: rgba(11, 29, 54, 0.75);
    border-color: var(--yellow);
    color: var(--yellow);
    transform: scale(1.05);
}

.hero-pause:active {
    transform: scale(0.95);
}

/* Show pause icon when playing (default), play icon when paused */
.hero-pause .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }

@media (max-width: 600px) {
    .hero-pause {
        bottom: 18px;
        right: 18px;
        width: 38px;
        height: 38px;
    }
}

.hero-1 {
    background-image: url('/static/images/hero/hero-1.jpg');
}

.hero-2 {
    background-image: url('/static/images/hero/hero-2.jpg');
}

.hero-3 {
    background-image: url('/static/images/hero/hero-3.jpg');
}

.hero-4 {
    background-image: url('/static/images/hero/hero-4.jpg');
}

/*MOTTO*/
.motto-section {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    padding: 70px 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.motto-section h2 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.motto-section p {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: -1px;
}

/*SHARED STYLING*/
.section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--navy-800);
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px; height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--yellow-light));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 17px;
}

.description-box {
    background: var(--white);
    padding: 25px 50px 60px;
    border-radius: 16px;
    text-align: center;
    margin-top: 50px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.description-box p {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--slate);
    margin-bottom: 18px;
}

.description-box p.lead {
    font-size: 17px;
    color: var(--yellow);
    font-weight: 700;
    margin-bottom: 26px;
}

.description-box p:last-child { margin-bottom: 0; }

/*TEAM*/
.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    margin-top: 20px;
}
.teamCardSize {
    width: 200px;
}
.teamRow {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
}
.team-member-card {
    flex: 0 0 200px;
    width: 200px;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(245, 197, 66, 0.22);
}

.team-member-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 1px;
}

.team-member-name {
    padding: 18px 16px 6px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--navy-800);
}

.team-member-role {
    text-align: center;
    padding: 0 16px 20px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.teamMemberID {
    font-size: 20px;
    padding:20px 10px;
    font-family: var(--font-display);
    font-weight: 550;
    
}
/*DEPARTMENTS*/
.departments-section {
    padding: 100px 0;
    background: var(--white);
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.department-card {
    background: var(--white);
    padding: 44px 32px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border-top: 4px solid transparent;
}

.department-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(245, 197, 66, 0.22);
    border-top-color: var(--yellow);
}

.department-icon {
    font-size: 44px;
    margin-bottom: 18px;
}

.department-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 16px;
}

.department-card p {
    font-size: 14.5px;
    color: var(--slate);
    line-height: 1.75;
}

/*SPONSORS*/
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.sponsor-card {
    background: var(--white);
    border-radius: 12px;
    aspect-ratio: 6 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
    max-width: 200px;
}

.sponsor-card.placeholder:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

/*CONTACT*/
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.contact-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

.contact-card:hover { transform: translateY(-4px); }

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.contact-card a, .contact-card p {
    color: var(--navy-800);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.6;
}

.contact-card a:hover { color: var(--yellow); }

/*FOOTER*/
footer {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: var(--white);
    padding: 70px 40px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footerSection {
    transition: transform 0.25s ease;
}
.footerSection:hover {
    transform: translateY(-2px);
}

.footerSection h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.footerSection p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.footerSection a { color: var(--yellow); }
.footerSection a:hover { color: var(--yellow-light); }

.footerLinks {
    text-align: left;
    padding: 0px;
    list-style-type: none;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/*RESPONSIVE*/
@media (max-width: 860px) {
    .header-container { padding: 0 20px; }

    .menu-toggle { display: flex; }

    nav {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--navy-900);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 18px;
        transition: right var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    nav.open { right: 0; }
    nav a { font-size: 18px; width: 100%; }

    .section, .section-inner { padding-left: 20px; padding-right: 20px; }
    .description-box { padding: 40px 24px; }
    .team-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
    .team-member-image { font-size: 36px; }
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/*CTA button (links to /contact form page) */
.contact-cta {
    text-align: center;
    margin-top: 50px;
}

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: var(--navy-800);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 10px;
    transition: background var(--transition), transform 0.15s ease;
}

.cta-button:hover {
    background: var(--navy-700);
    color: var(--white);
    transform: translateY(-2px);
}

body:not(.page-home) #header,
body:not(.page-home) #header.scrolled {
    background: rgba(11, 29, 54, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 14px 0;
}

/*404 page*/
.error-page{
    min-height: calc(100vh - 200px);
    padding: 120px 24px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
    	radial-gradient(circle at 50% 30%, rgba(245,197,66,0.08) 0%, transparent 50%),
	var(--off-white);
}

.error-page-inner {
    max-width: 560px;
    text-align: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(80px, 18vw, 160px);
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
    letter-spacing: -6px;
    margin-bottom: 8px;
    text-shadow: 0 6px 30px rgba(245, 197, 66, 0.2);
}

.error-page .section-title {
    margin-bottom:24px;
}

.error-message {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 16px;
    word-break: break-word;
}

.error-path {
    background: rgba(11, 29, 54, 0.08);
    color: var(--navy-800);
    padding: 3px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.92em;
}

.error-help {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.error-actions {
    margin-top: 24px;
}
/*base page styling*/
.page {
    min-height: calc(100vh - 200px);
    padding: 120px 24px 80px;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 197, 66, 0.08) 0%, transparent 40%),
        var(--off-white);
}

.page .section-title {
    text-align: center;
    margin-bottom: 16px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 44px;
    max-width: 540px;
}
