/* CSS Reset & Variables */
:root {
    --bg-color: #2D323E;
    --base-color: #1B1E28;
    --highlight-color: #B8EF72;
    --accent-color: #9374DC;
    --text-color: #FFFFFF;

    --font-primary: 'Kanit', sans-serif;

    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    /* Changed to white */
    margin-bottom: var(--spacing-md);
}

.section-title {
    text-align: center;
    position: relative;
    display: inline-block;
}

/* Highlight class for the green text and brush underline */
.highlight-text {
    color: var(--highlight-color);
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    /* Adjust as needed */
    left: 0;
    width: 100%;
    height: 15px;
    /* Height of the brush stroke */
    z-index: -1;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    /* Simple SVG Brush Stroke Simulation */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 20' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5,15 Q50,20 90,12 T190,8' stroke='%23B8EF72' stroke-width='5' fill='none' stroke-linecap='round' /%3E%3C/svg%3E");
}

p {
    font-weight: 400;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Header & Navigation */
/* Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 15px 5%;
    background: rgba(27, 30, 40, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    /* Limit content width on very large screens */
    margin: 0 auto;
}

.brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.clg-logo {
    border-radius: 50%;
}

/* Nav Container - Reset floating styles */
.floating-nav {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.floating-nav:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.floating-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.floating-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.floating-nav a:hover {
    color: var(--highlight-color);
}

.nav-cta {
    background-color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 20px;
    color: white !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background-color: #7a5bc5;
    /* Slightly darker purple */
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered visually for impact */
    text-align: center;
    background-image: url('IMG-20250825-WA0075.jpg');
    /* Using the larger PNG */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fallback/Overlay if image is busy */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 50, 62, 0.85) 0%, rgba(27, 30, 40, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background-color: var(--highlight-color);
    color: var(--base-color);
    /* Dark text on lime green */
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(184, 239, 114, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #a3d965;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(184, 239, 114, 0.6);
    color: var(--base-color);
}

/* Content Sections */
.content-section {
    padding: var(--spacing-xl) 20px;
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-text {
    max-width: 800px;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background-color: var(--base-color);
    padding: var(--spacing-lg) 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--highlight-color);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* Responsive Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #main-header {
        padding: 10px 20px;
    }

    .header-container {
        justify-content: space-between;
        /* Ensure specific items aligned correctly */
    }

    /* Reorder for Mobile: Logo(1) - College(2) - Menu(3) */
    .idc-logo {
        order: 1;
        border-radius: 50px;
    }

    .clg-logo {
        order: 2;
        margin-right: 60px;
        /* Reduced from 600px to prevent pushing off-screen */
        margin-left: 15px;
        height: 50px;
        border-radius: 50px;
        /* Increased from 40px for better visibility */
    }

    /* Push toggle to far right */
    .floating-nav {
        order: 3;
    }

    .brand-logo {
        height: 40px;
        /* Slightly smaller logos on mobile */
    }

    .menu-toggle {
        display: flex;
    }

    /* Hide the list by default on mobile */
    .floating-nav .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        /* Fixed to viewport */
        top: 70px;
        /* Below fixed header */
        left: 0;
        width: 100%;
        background: rgba(27, 30, 40, 0.98);
        backdrop-filter: blur(15px);
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1001;
        /* Ensure it's above everything */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        max-width: none;
        /* Reset max-width */
        border-radius: 0;
        /* Full width means no corners usually */
        transform: none;
        /* Reset center transform */
    }

    .floating-nav .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .floating-nav .nav-menu.active {
        display: flex;
        animation: slideDownMobile 0.3s ease forwards;
    }

    @keyframes slideDownMobile {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu li:last-child {
        border-bottom: none;
        padding-top: 20px;
    }

    /* Hamburger Animation when Active */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Members Section */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.member-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--highlight-color);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--highlight-color);
    background-color: var(--base-color);
}

.member-name {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.member-role {
    color: var(--highlight-color);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Members Table (Full List) */
.table-container {
    overflow-x: auto;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    /* Removed min-width to prevent overflow/cutting off on mobile */
}

.members-table th,
.members-table td {
    text-align: left;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    word-wrap: break-word;
    /* Ensure long titles wrap */
}

.members-table th {
    color: var(--highlight-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    width: 50%;
    /* Distribute width roughly equally */
}

@media (max-width: 768px) {

    .members-table th,
    .members-table td {
        padding: 12px 10px;
        /* Reduce padding on mobile */
        font-size: 0.9rem;
    }
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.event-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Happenings / Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.members-table tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.members-table tr:last-child td {
    border-bottom: none;
}

.page-header {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--bg-color);
}