@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Quicksand:wght@400;700&display=swap');

:root {
    --color-red: #FFB3BA;
    --color-orange: #FFDFBA;
    --color-yellow: #FFFFBA;
    --color-green: #BAFFC9;
    --color-blue: #BAE1FF;
    --color-indigo: #E2C4FF;
    --color-violet: #FFC4E1;
    --text-main: #5d5d5d;
    --bg-color: #f9f9f9;
}

/* Global Background */
body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(-45deg,
            var(--color-red),
            var(--color-orange),
            var(--color-yellow),
            var(--color-green),
            var(--color-blue),
            var(--color-indigo),
            var(--color-violet));
    background-size: 400% 400%;
    animation: rainbow-shift 15s ease infinite;
    background-attachment: fixed;
    /* Keeps it static while scrolling */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Quicksand', sans-serif;
}

/* Animations */
@keyframes rainbow-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    margin-bottom: 4rem;
}

h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-red), var(--color-violet));
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    /* Slightly opaque white */
    backdrop-filter: blur(10px);
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    h2.section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

/* Navigation Bar */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(to right, var(--color-red), var(--color-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: opacity 0.3s;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #333;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--color-red), var(--color-blue));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a:active::after {
    width: 100%;
}

/* Page Hero (for subpages) */
.page-hero {
    text-align: center;
    padding: 6rem 1rem 4rem;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-hero p {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.9;
}


/* --- Reusable Components (Moved from home.css) --- */

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.member-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.member-card:hover {
    transform: translateY(-10px);
    /* Use the member color variable for the shadow glow */
    box-shadow: 0 10px 20px -5px var(--member-color);
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--member-color);
}

.member-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: #ddd;
    display: block;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.news-date {
    font-weight: bold;
    color: var(--color-text-main);
    background: var(--color-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-right: 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.news-content {
    color: var(--text-main);
    flex: 1;
}

/* Hamburger Menu Button */
.nav-toggle {
    display: none !important;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--color-red), var(--color-violet));
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle span:last-child {
    margin-bottom: 0;
}

/* Hamburger Animation when active */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Responsive adjustments for moved components */
@media (max-width: 768px) {
    .nav-toggle {
        display: block !important;
        /* Show hamburger on mobile */
    }

    .nav-links {
        /* display: none; Removed simple hiding */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-date {
        margin-right: 0;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

/* --- Home Page Hero Section --- */
.home-hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* color: white; Removed to let text gradient show */
    position: relative;
}

.hero-content {
    background: rgba(255, 255, 255, 0.731);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 3rem 5rem;
    animation: float 6s ease-in-out infinite;
}

/* Keyframes for rainbow glow/shadow (Darker for contrast) */
@keyframes rainbow-glow {
    0% {
        text-shadow: 0 0 10px #ff6b6b, 0 0 20px #ff6b6b, 0 0 40px #ff6b6b;
    }

    14% {
        text-shadow: 0 0 10px #ff9f43, 0 0 20px #ff9f43, 0 0 40px #ff9f43;
    }

    28% {
        text-shadow: 0 0 10px #feca57, 0 0 20px #feca57, 0 0 40px #feca57;
    }

    42% {
        text-shadow: 0 0 10px #1dd1a1, 0 0 20px #1dd1a1, 0 0 40px #1dd1a1;
    }

    57% {
        text-shadow: 0 0 10px #54a0ff, 0 0 20px #54a0ff, 0 0 40px #54a0ff;
    }

    71% {
        text-shadow: 0 0 10px #5f27cd, 0 0 20px #5f27cd, 0 0 40px #5f27cd;
    }

    85% {
        text-shadow: 0 0 10px #9b59b6, 0 0 20px #9b59b6, 0 0 40px #9b59b6;
    }

    100% {
        text-shadow: 0 0 10px #ff6b6b, 0 0 20px #ff6b6b, 0 0 40px #ff6b6b;
    }
}

.home-hero h1 {
    font-size: 4rem;
    margin: 0;
    color: white;
    animation: rainbow-glow 10s linear infinite;
}

.home-hero p {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: white;
    animation: rainbow-glow 10s linear infinite;
    font-weight: bold;
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1rem;
        width: 90%;
        box-sizing: border-box;
    }

    .home-hero h1 {
        font-size: 2.2rem;
    }

    .home-hero p {
        font-size: 1rem;
    }
}



/* Ad Container */
.ad-container {
    margin: 0;
    padding: 1.5rem 0;
    width: 100%;
    /* Full width for background */
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Background styles (like Header/Footer) */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Ensure ad images/iframes don't overflow and are scaled down */
.ad-container>* {
    max-width: 100%;
    height: auto;
    /* Scale down the ad as requested (85%) */
    transform: scale(0.85);
    transform-origin: center;
}