/* Navbar branding: logo + text */
nav.navbar .navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 35px;
    /* keep space between logo/text and nav links */
    user-select: none;
    text-decoration: none;
}
nav.navbar .navbar-brand img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
    border-radius: 8px;
    background: transparent;
}
nav.navbar .navbar-brand span {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0,0,0,0.16);
    vertical-align: middle;
}

@media (max-width: 768px) {
    nav.navbar .navbar-brand {
        margin: 0 0 15px 0;
        padding: 10px 0 0 15px;
        /* left align in side menu */
    }
    nav.navbar .navbar-brand img {
        height: 32px;
        width: 32px;
        margin-right: 8px;
    }
    nav.navbar .navbar-brand span {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    nav.navbar .navbar-brand {
        padding: 7px 0 0 10px;
    }
    nav.navbar .navbar-brand img {
        height: 28px;
        width: 28px;
        margin-right: 7px;
    }
    nav.navbar .navbar-brand span {
        font-size: 1rem;
    }
}
body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            line-height: 1.6;
            background-color: #c4f0ed; /* lighter, softer blue/green */
            padding-top: 60px; /* space for fixed navbar */
            overflow-x: hidden;
        }

        /* Navbar styles */
        nav.navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: #2a9d8f;
            box-shadow: 0 2px 8px rgba(0,0,0,0.4);
            z-index: 1000;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }

        nav.navbar ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        nav.navbar li {
            position: relative;
        }

        nav.navbar > ul > li {
            margin: 0 20px;
        }

        nav.navbar a {
            display: block;
            padding: 18px 15px;
            color: white;
            text-decoration: none;
            transition: background-color 0.3s ease;
            text-shadow: 0 0 5px rgba(0,0,0,0.7);
        }

        nav.navbar a:hover,
        nav.navbar a:focus {
            background-color: #38b6ff;
            outline: none;
        }

        /* Dropdown styles */
        nav.navbar li ul.dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background-color: rgba(42, 157, 143, 0.95);
            min-width: 180px;
            display: none;
            flex-direction: column;
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
            border-radius: 0 0 8px 8px;
            z-index: 1001;
        }

        nav.navbar li:hover > ul.dropdown,
        nav.navbar li:focus-within > ul.dropdown {
            display: flex;
        }

        nav.navbar li ul.dropdown li {
            margin: 0;
        }

        nav.navbar li ul.dropdown a {
            padding: 12px 20px;
            font-weight: 500;
            color: white;
            text-shadow: 0 0 3px rgba(0,0,0,0.6);
        }

        nav.navbar li ul.dropdown a:hover,
        nav.navbar li ul.dropdown a:focus {
            background-color: #38b6ff;
        }

        /* Hamburger button */
        .hamburger {
            display: none;
            position: fixed;
            left: 15px;
            width: 30px;
            height: 30px;
            flex-direction: column;
            justify-content: center;
            cursor: pointer;
            z-index: 1101;
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 0;
            margin: 0;
            align-self: center;
        }

        .hamburger img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: transparent;
            border: none;
            display: block;
        }

        /* Side menu styles for mobile */
        @media (max-width: 768px) {
            body {
                padding-top: 50px;
            }
            nav.navbar {
                position: fixed;
                top: 50px;
                left: 0;
                height: calc(100vh - 50px);
                width: 250px;
                max-width: 80vw;
                background-color: #2a9d8f;
                box-shadow: 2px 0 8px rgba(0,0,0,0.4);
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: flex-start;
                padding-top: 0;
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                overflow-y: auto;
                z-index: 1100;
                color: white;
            }
            nav.navbar.open {
                transform: translateX(0);
            }
            nav.navbar ul {
                flex-direction: column;
                width: 100%;
                align-items: flex-start;
                justify-content: flex-start;
            }
            nav.navbar > ul > li {
                margin: 0;
                border-top: 1px solid rgba(255,255,255,0.3);
                width: 100%;
            }
            nav.navbar a {
                padding: 15px 20px;
                width: 100%;
                box-sizing: border-box;
                color: white;
                text-shadow: 0 0 5px rgba(0,0,0,0.7);
            }
            nav.navbar li ul.dropdown {
                position: static;
                box-shadow: none;
                border-radius: 0;
                display: none;
                background-color: #2a9d8f;
                flex-direction: column;
                padding-left: 15px;
                justify-content: flex-start;
                align-items: flex-start;
            }
            nav.navbar li.open > ul.dropdown {
                display: flex;
            }
            nav.navbar li:hover > ul.dropdown,
            nav.navbar li:focus-within > ul.dropdown {
                display: none;
            }
            nav.navbar li ul.dropdown a {
                padding: 12px 20px;
                color: white;
                text-shadow: 0 0 3px rgba(0,0,0,0.6);
            }
            nav.navbar li ul.dropdown a:hover,
            nav.navbar li ul.dropdown a:focus {
                background-color: #38b6ff;
            }
            .hamburger {
                display: flex;
                background-color: #2a9d8f;
                border: none;
                box-shadow: none;
                justify-content: center;
                align-items: center;
                position: fixed;
                left: 15px;
                width: 30px;
                height: 30px;
                top: 10px;
                margin: 0;
                padding: 0;
                transform: none;
            }
            /* Added fixed top bar behind hamburger and menu */
            body::before {
                content: "";
                position: fixed;
                top: 0;
                left: 0;
                height: 50px;
                width: 100%;
                
                background-color: #2a9d8f;
                z-index: 1100;
            }
            header {
                padding-top: 50px; /* space for fixed top bar */
            }
        }

        header, section {
            padding: 40px 20px;
            
            text-align: center;
            background-color: #c0e7e1;
        }

        header {
            position: relative;
            background: url("/images/lamar.png") no-repeat center center;
            background-size: cover;
            color: white;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            padding: 200px 20px 200px;
            z-index: 0;
        }

        header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.4);
            z-index: 1;
            pointer-events: none;
        }

        header > * {
            position: relative;
            z-index: 2;
        }

        h1, h2 {
            margin-bottom: 20px;
        }

        .schedule-button {
            display: inline-block;
            background-color: #38b6ff;
            color: white;
            font-size: 1.25rem;
            font-weight: 600;
            padding: 15px 40px;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            text-decoration: none;
            transition: background-color 0.3s ease;
            margin-top: 20px;
        }

        .schedule-button:hover,
        .schedule-button:focus {
            background-color: #1f7a7a;
            outline: none;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 20px;
        }
        .social-links a {
            display: inline-block;
            padding: 0;
            margin: 0;
            background: none;
            border: none;
            box-shadow: none;
            width: auto;
            height: auto;
            text-decoration: none;
        }
        .social-links a img {
            width: 50px;
            height: 50px;
            border-radius: 15%;
            vertical-align: middle;
            transition: filter 0.3s ease;
            display: block;
        }
        .social-links a:hover img,
        .social-links a:focus img {
            filter: brightness(0.7);
        }

        /* Responsive Styles */
        @media (max-width: 768px) {
            header, section {
                padding: 30px 15px;
            }
            h1 {
                font-size: 1.8rem;
            }
            h2 {
                font-size: 1.4rem;
            }
            .schedule-button {
                font-size: 1.1rem;
                padding: 12px 30px;
            }
            .social-links a {
                font-size: 0.9rem;
                margin: 0 8px;
            }
            .social-links a img {
                width: 50px;
                height: 50px;
                border-radius: 15%;
            }
        }

        @media (max-width: 480px) {
            header, section {
                padding: 20px 10px;
            }
            h1 {
                font-size: 1.5rem;
            }
            h2 {
                font-size: 1.2rem;
            }
            .schedule-button {
                font-size: 1rem;
                padding: 10px 25px;
                width: 80%;
                box-sizing: border-box;
                border-radius: 25px;
            }
            .social-links {
                flex-direction: row;
                align-items: center;
                gap: 16px;
                margin-top: 10px;
            }
            .social-links a {
                padding: 0;
                margin: 0;
                background: none;
                border: none;
                box-shadow: none;
                width: auto;
                height: auto;
            }
            .social-links a img {
                width: 50px;
                height: 50px;
                border-radius: 15%;
            }
        }
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            line-height: 1.6;
            background-color: #e0f7f4;
            padding-top: 60px; /* space for fixed navbar */
            overflow-x: hidden;
        }

        

        /* New styles for contest sections */
        #current-contest, #contest-history {
            max-width: 900px;
            margin: 40px auto;
            background: #c0e7e1;
            padding: 20px 25px;
            border-radius: 12px;
            box-shadow: 0 4px 8px rgba(42,157,143,0.15);
            color: #1f7a7a;
            text-align: left;
        }

        #current-contest h2, #contest-history h2 {
            text-align: center;
            color: #2a9d8f;
            margin-bottom: 25px;
        }

        /* Current Contest card/table style */
        #current-contest .contest-card {
            background-color: #c0e7e1;
            border: 1px solid #2a9d8f;
            border-radius: 10px;
            padding: 15px 20px;
            box-shadow: 0 2px 6px rgba(42,157,143,0.18);
            margin-bottom: 20px;
        }
        #current-contest .contest-card h3 {
            margin-top: 0;
            color: #1f7a7a;
        }
        #current-contest .contest-details {
            margin-top: 10px;
            font-size: 1rem;
            line-height: 1.4;
        }
        #current-contest .contest-details strong {
            color: #1f7a7a;
        }

        /* Contest History table style */
        #contest-history table {
            width: 100%;
            border-collapse: collapse;
            font-size: 1rem;
        }
        #contest-history th, #contest-history td {
            border: 1px solid #2a9d8f;
            padding: 10px 12px;
            text-align: left;
            color: #1f7a7a;
        }
        #contest-history th {
            background-color: #2a9d8f;
            color: white;
            font-weight: 600;
        }
        #contest-history tbody tr:nth-child(even) {
            background-color: #c0e7e1;
        }

        /* Responsive for contest sections */
        @media (max-width: 768px) {
            #current-contest, #contest-history {
                margin: 20px 15px;
                padding: 15px 15px;
            }
            #current-contest .contest-card {
                padding: 12px 15px;
            }
            #contest-history th, #contest-history td {
                padding: 8px 10px;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {
            #current-contest .contest-details {
                font-size: 0.9rem;
            }
            /* Make contest history table fully responsive and fit screen */
            #contest-history table,
            #contest-history thead,
            #contest-history tbody,
            #contest-history th,
            #contest-history td,
            #contest-history tr {
                display: block;
                width: 100%;
                box-sizing: border-box;
            }
            #contest-history thead tr {
                position: absolute;
                top: -9999px;
                left: -9999px;
            }
            #contest-history tr {
                margin-bottom: 12px;
                border: 1px solid #2a9d8f;
                border-radius: 8px;
                padding: 7px 0 7px 0;
                background-color: #c0e7e1;
            }
            #contest-history td {
                border: none;
                position: relative;
                padding: 8px 8px 8px 42%;
                text-align: left;
                font-size: 0.95rem;
                min-height: 36px;
                box-sizing: border-box;
                word-break: break-word;
            }
            #contest-history td:before {
                position: absolute;
                top: 8px;
                left: 10px;
                width: 38%;
                min-width: 90px;
                max-width: 48vw;
                padding-right: 4px;
                white-space: nowrap;
                font-weight: 600;
                color: #1f7a7a;
                font-size: 0.93rem;
                box-sizing: border-box;
                text-align: left;
            }
            #contest-history td:nth-of-type(1):before { content: "Contest Name"; }
            #contest-history td:nth-of-type(2):before { content: "Date"; }
            #contest-history td:nth-of-type(3):before { content: "Winner(s)"; }
        }
.members {
            background-color: #c0e7e1;
            padding: 40px 20px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto 40px auto;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(42,157,143,0.13);
        }

        .member-card {
            background-color: #2a9d8f;
            color: white;
            border-radius: 15px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            width: 220px;
            padding: 20px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: background-color 0.3s ease;
        }

        .member-card:hover,
        .member-card:focus-within {
            background-color: #38b6ff;
            outline: none;
        }

        .member-card img {
            width: 120px;
            height: 120px;
            object-fit: cover;
            border-radius: 15%;
            margin-bottom: 15px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }

        .member-name {
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 8px;
        }

        .member-role {
            font-weight: 500;
            font-size: 1rem;
            opacity: 0.85;
        }

        @media (max-width: 768px) {
            .members {
                padding: 30px 15px;
                gap: 20px;
            }
            .member-card {
                width: 45%;
                padding: 15px;
            }
            .member-card img {
                width: 100px;
                height: 100px;
                margin-bottom: 12px;
            }
            .member-name {
                font-size: 1.1rem;
            }
            .member-role {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {
            .members {
                padding: 20px 10px;
                gap: 15px;
            }
            .member-card {
                width: 100%;
                padding: 15px;
            }
            .member-card img {
                width: 90px;
                height: 90px;
                margin-bottom: 10px;
            }
            .member-name {
                font-size: 1rem;
            }
            .member-role {
                font-size: 0.85rem;
            }
        }