/* 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;  /* 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;
    width: 100%;
    height: 350px;
    gap: 20px;  /* Increased gap for better spacing */
    background-color: rgba(56, 56, 56, 0.8);
    border-radius: 12px;  /* More rounded corners for a card effect */
    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 {
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;  /* Crops the image to the largest square possible */
    border-radius: 5px;
    border: 2px solid rgb(90, 90, 90); /* Added border style */
}

.officer > .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 */
}


/* 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;  /* 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 */
    }
}
