/* General Styles */
body {
    font-family: 'Work Sans', sans-serif;
    margin: 0;
    background-color: #1c1c1c;
    color: #ecd687;
    line-height: 1.6;
    position: relative;
    overflow: scroll;
}

/* Honeycomb Background */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgb(40,40,40)' viewBox='0 0 100 169.5'%3E%3Cpolygon points='50,34.75 93.5,59.75 93.5,109.75 50,134.75 6.5,109.75 6.5,59.75'%3E%3C/polygon%3E%3Cpolygon points='0,-50 43.5,-25 43.5,25 0,50 -43.5,25 -43.5,-25'%3E%3C/polygon%3E%3Cpolygon points='100,-50 143.5,-25 143.5,25 100,50 56.5,25 56.5,-25'%3E%3C/polygon%3E%3Cpolygon points='0,119.5 43.5,144.5 43.5,194.5 0,219.5 -43.5,194.5 -43.5,144.5'%3E%3C/polygon%3E%3Cpolygon points='100,119.5 143.5,144.5 143.5,194.5 100,219.5 56.5,194.5 56.5,144.5'%3E%3C/polygon%3E%3C/svg%3E");
    background-size: 50px;
    background-repeat: repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    opacity: 0.3; /* Honeycomb opacity */
    z-index: -2; /* Keeps it behind everything */
}

.nav::-webkit-scrollbar {
    display: none; /* Hide the scrollbar */
}

/* For the entire body if it has overflow */
body::-webkit-scrollbar {
    display: none; /* Hide the scrollbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.title {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ecd687;
    margin: 0;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.1rem;
    color: #ecd687;
    text-decoration: none;
    margin-right: 15px;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ecd687;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hamburger Icon (Initially Hidden on Larger Screens) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px; /* Add padding for the background */
    background-color: rgba(28, 28, 28, 0.8); /* Semi-transparent background */
    border-radius: 5px; /* Rounded corners */
    z-index: 20; /* Ensure it stays above the menu */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.hamburger:hover {
    background-color: rgba(44, 44, 44, 0.9); /* Darker background on hover */
}

.bar {
    width: 30px;
    height: 4px;
    background-color: #ecd687;
}

/* Main Content */
.main-content {
    padding: 40px 20px;
}

/* Logo and team info */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center align logo and text */
    margin-bottom: 30px;
}

.logo-image {
    margin-right: 20px; /* Adds space between the logo and the text */
}

.team-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left; /* Align text to the left */
}

.team-number {
    font-family: 'DM Sans', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.team-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin: -40px 0 0 0;  /* Adjust margin to bring the elements closer */
    color: #ecd687;
}

/* Links */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.link {
    background-color: rgba(56, 56, 56, 0.8);
    padding: 20px;  /* Increased padding to give more space inside the card */
    padding-bottom: 40px;  /* Adjust bottom padding for more balance */
    border-radius: 12px;  /* More rounded corners for a card effect */
    border: 2px solid rgb(90, 90, 90); /* Slightly darker border */
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);  /* Add subtle shadow for depth */
}

.link:hover {
    background-color: #4a4a4a;
    transform: translateY(-10px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.6); /* Darker shadow on hover */
}

.link h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ecd687;
}

.link p {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    color: #ddd;
}

/* Responsive Design: Logo on top of text */
@media (max-width: 1200px) {
    .logo-container {
        flex-direction: column; /* Stack the logo and text vertically */
        align-items: center; /* Center the items */
    }

    .logo-image {
        margin-right: 0; /* Remove space between logo and text */
        margin-bottom: 20px; /* Add space below the logo */
    }

    .team-info {
        text-align: center; /* Center align the text */
    }

    /* Show Hamburger Icon */
    .hamburger {
        display: flex;
    }

    /* Hide Links on Mobile */
    .nav {
        display: none;
        width: 100%;
        justify-content: center;
        gap: 0;
        flex-direction: column;
        padding: 10px 0;
        position: absolute;
        top: 60px;
        right: 0;
        z-index: 10;
    }

    /* Show Links when Hamburger is Active */
    .nav.active {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: rgba(28, 28, 28, 0.95); /* Semi-transparent background for menu */
        z-index: 10;
        padding: 20px 0;
        overflow-y: auto; /* Enable vertical scrolling */
        max-height: calc(100vh - 60px); /* Prevent menu from going beyond the viewport */
    }

    .nav-link {
        margin: 15px 0;
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.title {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ecd687;
    margin: 0;
}

/* Main Content */
.main-content {
    padding: 40px 20px;
}

h3 {
    font-family: 'DM Sans', sans-serif;
}

.section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ecd687;
    margin-bottom: 20px;
}

.team-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.division {
    margin-bottom: 20px;
}

.division-inner {
    display: grid;  /* Set display to grid */
    grid-template-columns: 1fr 1fr 1fr;  /* Two equal-width columns */
    gap: 20px;  /* Adds space between grid items */
}

.division-inner > * {
    box-sizing: border-box;  /* Ensure padding and borders are included in the width/height */
    overflow: hidden;  /* Prevent overflow in grid items */
    padding: 10px;  /* Optional: Add padding to items */
}

.division-inner > .team-member.captain {
    grid-column: 2 / 3;  /* Make the captain take the full width of the grid */
}

.division h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ecd687;
    margin-bottom: 30px;
}

.team-member {
    display: flex;
    align-items: center;
    justify-content: center;  /* This centers the image horizontally */
    text-align: center; /* Ensures text stays centered */
    width: 100%;
    height: 350px;
    gap: 20px;  
    background-color: rgba(56, 56, 56, 0.8);
    border-radius: 12px;
    border: 2px solid rgb(90, 90, 90);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
}


.officer {
    background-color: rgba(56, 56, 56, 0.8);
    border-radius: 12px;  /* More rounded corners for a card effect */
    border: 2px solid #ecd687af;
}

.team-member:hover {
    background-color: #4a4a4a;
    transform: translateY(-10px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.6); /* Darker shadow on hover */
}

.team-member-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #ecd687;
}

.team-member-info p {
    font-size: 1rem;
    color: #ddd;
}


.section-title {
    font-size: 2rem;
    font-family: 'DM Sans', sans-serif;
}

.team-member-image {
    display: block;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid rgb(90, 90, 90);
}

.platinum {
    background-color: rgba(56, 56, 56, 0.8);
    border-radius: 12px;  /* More rounded corners for a card effect */
    border: 2px solid #ffffffaf;
}


.platinum > .team-member-image {
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;  /* Crops the image to the largest square possible */
    border-radius: 5px;
    border: 2px solid #ffffffaf; /* Added border style */
}

.gold {
    background-color: rgba(56, 56, 56, 0.8);
    border-radius: 12px;  /* More rounded corners for a card effect */
    border: 2px solid #ecd687af;
}

.gold > .team-member-image {
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;  /* Crops the image to the largest square possible */
    border-radius: 5px;
    border: 2px solid #ecd687af; /* Added border style */
}

.silver {
    background-color: rgba(56, 56, 56, 0.8);
    border-radius: 12px;  /* More rounded corners for a card effect */
    border: 2px solid #cbcbcbaf;
}

.silver > .team-member-image {
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;  /* Crops the image to the largest square possible */
    border-radius: 5px;
    border: 2px solid #cbcbcbaf; /* Added border style */
}

.bronze {
    background-color: rgba(56, 56, 56, 0.8);
    border-radius: 12px;  /* More rounded corners for a card effect */
    border: 2px solid #CD7F32af;
}

.bronze > .team-member-image {
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;  /* Crops the image to the largest square possible */
    border-radius: 5px;
    border: 2px solid #CD7F32af; /* Added border style */
}

/* Responsive Design */
@media (max-width: 1200px) {
    .team-section {
        padding: 0 20px;
    }
}

@media (max-width: 1100px) {
    .division-inner {
        display: grid;  /* Set display to grid */
        grid-template-columns: 1fr 1fr;  /* Two equal-width columns */
        gap: 20px;  /* Adds space between grid items */
    }
    
    .division-inner > * {
        box-sizing: border-box;  /* Ensure padding and borders are included in the width/height */
        overflow: hidden;  /* Prevent overflow in grid items */
        padding: 10px;  /* Optional: Add padding to items */
    }
    
    .division-inner > .team-member.captain {
        grid-column: 1 / 1;  /* Make the captain take the full width of the grid */
    }
}

@media (max-width: 700px) {
    .division-inner {
        display: grid;  /* Set display to grid */
        grid-template-columns: 1fr;  /* Two equal-width columns */
        gap: 20px;  /* Adds space between grid items */
    }
    
    .division-inner > * {
        box-sizing: border-box;  /* Ensure padding and borders are included in the width/height */
        overflow: hidden;  /* Prevent overflow in grid items */
        padding: 10px;  /* Optional: Add padding to items */
    }
    
    .division-inner > .team-member.captain {
        grid-column: 1 / 1;  /* Make the captain take the full width of the grid */
    }
}

/* Sponsor feature: large image(s) on left, description on right */
.sponsor-feature {
    display: grid;
    grid-template-columns: 1.6fr 1fr; /* image area larger than description */
    gap: 28px;
    align-items: center;
    margin: 30px 0;
}

.sponsor-images {
    width: 50vw;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
    padding: 14px;
    border-radius: 12px;
    border: 2px solid rgba(90,90,90,0.6);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.sponsor-images .gallery {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.sponsor-images .gallery::-webkit-scrollbar,
.sponsor-images::-webkit-scrollbar {
    display: none; /* hide scrollbar to keep the look clean */
}

.sponsor-images .image-card {
    flex: 0 0 500px; /* main image takes most of the visible width */
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 2px solid rgba(255,255,255,0.03);
}

.sponsor-images .image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.6);
}

.sponsor-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sponsor-thumbnail-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: center;
}

.sponsor-thumbnail-row img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sponsor-thumbnail-row img:hover {
    transform: translateY(-4px);
    opacity: 0.95;
}

.sponsor-description {
    width: 30vw;
    height: 300px;
    background-color: rgba(28,28,28,0.6);
    padding: 22px;
    border-radius: 12px;
    border: 2px solid rgba(236,214,135,0.06);
    color: #e9d9a2;
    min-height: 220px;
}

.sponsor-description h3 {
    font-size: 1.6rem;
    margin-top: 0;
    color: #ecd687;
}

.sponsor-description p {
    color: #ddd;
    line-height: 1.5;
}

/* Event stats and summary */
.event-stats {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 10px 0 12px 0;
    justify-content: center;
}

.impact {
    background: rgba(236,214,135,0.06);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(236,214,135,0.06);
}

.impact-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.impact-label {
    display: block;
    font-size: 0.85rem;
    color: #ecd687;
}

.markers { display: flex; gap: 8px; align-items: center; }
.marker {
    background: rgba(255,255,255,0.03);
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.85rem;
    color: #ddd;
    border: 1px solid rgba(255,255,255,0.03);
}

.event-summary {
    color: #ddd;
    font-weight: 600;
    margin: 8px 0 0 0;
}

/* Modal for detailed event info */
.event-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.event-modal.open {
    display: flex;
}

.event-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6,6,6,0.7);
}

.event-modal .modal-panel {
    position: relative;
    max-width: 1100px;
    width: calc(100% - 48px);
    background: linear-gradient(180deg, rgba(28,28,28,0.98), rgba(20,20,20,0.98));
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.6);
    color: #e9d9a2;
    z-index: 65;
}

.event-modal .modal-panel .modal-media {
    width: 100%;
    height: 420px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
}

.event-modal .modal-panel img { width: 100%; height: 100%; object-fit: cover; display: block; }

.event-modal .modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    color: #ecd687;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* small badge / CTA */
.sponsor-cta {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 14px;
    background: linear-gradient(90deg, rgba(236,214,135,0.12), rgba(236,214,135,0.06));
    color: #ecd687;
    border-radius: 8px;
    border: 1px solid rgba(236,214,135,0.12);
    text-decoration: none;
    font-weight: 700;
}

/* Responsive: stack on smaller screens */
@media (max-width: 900px) {
    .sponsor-feature {
        grid-template-columns: 1fr;
    }

    .sponsor-images .image-card {
        flex: 0 0 92%;
        height: 320px;
    }

    .sponsor-description {
        order: 2;
    }
}

@media (max-width: 520px) {
    .sponsor-images .image-card {
        height: 260px;
    }

    .sponsor-thumbnail-row img {
        width: 56px;
        height: 56px;
    }
}

/* Active thumbnail state */
.sponsor-thumbnail-row img.active-thumb {
    box-shadow: 0 8px 20px rgba(236,214,135,0.12);
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(236,214,135,0.18);
    opacity: 1;
}
