/* =========== GLOBAL VARIABLES & UTILITIES =========== */
:root {
    /* Color Palette */
    --primary-color: #7f5af0;
    --primary-color-rgb: 127, 90, 240;
    --secondary-color: #3e268a;
    --fg: #d2d2d2; /* Foreground text color */
    --bg: #110c1c; /* Background color */
    --card: #1c142c; /* Card background color */
    --border: #2c253d; /* Border and subtle lines */
    --text-muted: #8b8893;
    --nav-bg: #191428;
    --nav-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    --command-highlight-bg: #2b1f48;
    --command-highlight-text: #b698e9;
    --hero-bg-gradient: linear-gradient(180deg, rgba(17, 12, 28, 1) 0%, rgba(28, 20, 44, 1) 100%);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --hover-card-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Fonts */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

[data-theme="light"] {
    --primary-color: #5c38c8;
    --primary-color-rgb: 92, 56, 200;
    --secondary-color: #7f5af0;
    --fg: #2c2c2c;
    --bg: #f5f5f5;
    --card: #ffffff;
    --border: #e0e0e0;
    --text-muted: #6b6b6b;
    --nav-bg: #ffffff;
    --nav-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    --command-highlight-bg: #e8e6f1;
    --command-highlight-text: #5c38c8;
    --hero-bg-gradient: linear-gradient(180deg, rgba(245, 245, 245, 1) 0%, rgba(255, 255, 255, 1) 100%);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-card-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Reusable Components */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--card);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--fg);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

/* --- Navbar --- */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--heading-color);
}

.brand img {
    height: 40px;
    margin-right: 0.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-invite-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.theme-toggle-btn:hover {
    color: var(--primary-color);
}

/* Dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.dropbtn:hover {
    color: var(--primary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
    margin-top: 1rem;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: normal;
}

.dropdown-content a:hover {
    background-color: var(--border-color);
    color: var(--primary-color);
}

/* Hamburger for Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.35rem;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Nav Menu */
.mobile-nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav-menu.active {
    transform: translateX(0);
}

.mobile-nav-menu a {
    padding: 1rem 0;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu a:last-child {
    border-bottom: none;
}

.mobile-nav-menu .btn {
    margin-top: 1rem;
}

.mobile-dropdown {
    position: relative;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-dropbtn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-content {
    display: none;
    padding-left: 1rem;
}

.mobile-dropdown-content.show {
    display: block;
}

.mobile-dropdown-content a {
    border: none;
    padding: 0.5rem 0;
}

/* --- Hero Section & Chat Mockup --- */
.hero-section {
    display: flex;
    flex-direction: row; /* Desktop layout */
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5%;
    gap: 4rem;
    min-height: 80vh;
}

@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column; /* Mobile layout */
        text-align: center;
        padding: 6rem 5% 4rem;
    }
}

.hero-content {
    max-width: 600px;
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-btn, .hero-btn-secondary {
    font-size: 1.1rem;
    padding: 0.9rem 2.25rem;
}
@media (max-width: 1024px) {
    .hero-buttons {
        justify-content: center;
    }
}

/* Chat Mockup Styling */
.hero-chat-mockup {
    background-color: var(--chat-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mockup-header img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

.mockup-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mockup-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

/* FIXED: PFP styling */
.message .message-avatar {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    display: flex;
    flex-direction: column;
}

.message-content p {
    background-color: var(--message-bg);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.message.user-message {
    flex-direction: row-reverse;
}

.message.user-message .message-content p {
    background-color: var(--user-message-bg);
    color: var(--user-message-color);
}

.msg-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color-faded);
    margin-bottom: 0.25rem;
}

.msg-time {
    font-weight: normal;
    font-size: 0.8rem;
    color: var(--text-color-faded);
    margin-left: 0.5rem;
}

.command-highlight {
    font-family: monospace;
    color: var(--command-color);
    background-color: var(--command-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 0.5rem;
}

/* =========== FEATURES SECTION (HOME PAGE) =========== */
.features-overview {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-overview .section-title {
    margin-bottom: 1rem;
}

.features-overview .section-description {
    margin-bottom: 3rem;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    background-color: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--heading-color);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.learn-more i {
    transition: transform 0.3s ease;
}

.learn-more:hover {
    color: var(--primary-color-hover);
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* --- Reusable Chat Mockup (Used in Features.html) --- */
.feature-chat-mockup {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
    background-color: var(--chat-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mockup-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mockup-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.mockup-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.msg-item img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.msg-content {
    display: flex;
    flex-direction: column;
}

.msg-content p, .mockup-tip {
    background-color: var(--message-bg);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.msg-content .msg-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color-faded);
    margin-bottom: 0.25rem;
}

.msg-content .msg-author .msg-time {
    font-weight: normal;
    font-size: 0.8rem;
    color: var(--text-color-faded);
    margin-left: 0.5rem;
}

.mockup-command-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.mockup-command-list li {
    margin-bottom: 0.25rem;
}

.mockup-tip {
    font-style: italic;
    font-size: 0.85rem;
    background: none;
    padding: 0;
    margin-top: 0.5rem;
    color: var(--primary-color);
}

.features-page-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.features-page-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.features-page-cta p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-page-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.feature-cta-btn {
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
}

.feature-cta-btn-secondary {
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
}

/* ==================================
   === RESPONSIVE STYLES (FEATURES PAGE ONLY) ===
   ================================== */
@media (max-width: 992px) {
    .features-page-main {
        padding: 2.5rem 1.5rem;
    }
    .features-intro h1 {
        font-size: 2.5rem;
    }
    .features-intro p {
        font-size: 1.05rem;
    }
    .feature-detail-section {
        flex-direction: column !important;
        gap: 2rem;
        padding: 2rem;
        margin-bottom: 3rem;
    }
    .feature-content-left {
        text-align: center;
        min-width: unset;
        width: 100%;
    }
    .feature-icon-circle {
        margin: 0 auto 1.5rem;
    }
    .feature-list {
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
        padding-left: 0;
    }
    .feature-chat-mockup {
        width: 100%;
        max-width: 500px;
        min-width: unset;
    }
    .features-page-cta {
        padding: 2.5rem 1.5rem;
        margin-top: 3rem;
    }
    .features-page-cta h2 {
        font-size: 2rem;
    }
    .features-page-cta p {
        font-size: 1rem;
    }
    .features-page-cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .feature-cta-btn, .feature-cta-btn-secondary {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .features-page-main {
        padding: 2rem 1rem;
    }
    .features-intro h1 {
        font-size: 2rem;
    }
    .features-intro p {
        font-size: 0.95rem;
    }
    .feature-detail-section {
        padding: 1.5rem;
        margin-bottom: 2.5rem;
    }
    .feature-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .feature-detail-section h2 {
        font-size: 1.6rem;
    }
    .feature-detail-section p {
        font-size: 0.9rem;
    }
    .feature-list li {
        font-size: 0.9rem;
    }
    .features-page-cta {
        padding: 2rem 1rem;
        margin-top: 2.5rem;
    }
    .features-page-cta h2 {
        font-size: 1.6rem;
    }
    .features-page-cta p {
        font-size: 0.95rem;
    }
}

/* =========== FOOTER CTA (HOME PAGE) =========== */
.footer-cta-section {
    max-width: 900px;
    margin: 4rem auto;
    padding: 3.5rem 2rem;
    text-align: center;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    width: 100%;
}

.footer-cta-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--fg);
}

.footer-cta-section p {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.footer-btn { /* Uses global .btn */
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
}

.footer-btn-secondary { /* Uses global .btn-secondary */
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
}

/* RESPONSIVE FOOTER CTA */
@media (max-width: 992px) {
    .footer-cta-section {
        padding: 2.5rem 1.5rem;
        margin: 3rem auto;
    }
    .footer-cta-section h2 {
        font-size: 1.8rem;
    }
    .footer-cta-section p {
        font-size: 1rem;
    }
    .footer-cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .footer-btn, .footer-btn-secondary {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .footer-cta-section {
        padding: 2rem 1rem;
        margin: 2rem auto;
    }
    .footer-cta-section h2 {
        font-size: 1.6rem;
    }
    .footer-cta-section p {
        font-size: 0.95rem;
    }
    .footer-btn, .footer-btn-secondary {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
}

/* ==================================
   === NEW HOMEPAGE SECTIONS CSS ===
   ================================== */
.announcements-section {
    padding: 6rem 3rem;
    text-align: center;
}

.announcements-container {
    max-width: 1200px;
    margin: 0 auto;
}

.announcements-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.announcements-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.header-options {
    display: flex;
    gap: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.25rem;
    background: var(--card-bg);
}

.option-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.option-btn.active {
    color: #fff;
    background-color: var(--primary-color);
}

.announcement-content {
    display: none;
}

.announcement-content.active {
    display: block;
}

.events-grid, .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.event-card, .news-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    text-align: left;
}

.event-card:hover, .news-card:hover {
    transform: translateY(-5px);
}

.event-cover, .news-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-details, .news-details {
    padding: 1.5rem;
}

.event-title, .news-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-date, .news-date {
    font-size: 0.9rem;
    color: var(--text-color-faded);
    margin-bottom: 1rem;
}

.view-more-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.view-more-btn:hover {
    background-color: var(--primary-color-hover);
}

.news-snippet {
    font-size: 1rem;
    color: var(--text-color-faded);
}


/* Secondary Info Section (Stats, Servers, Staff) */
.secondary-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-container h2, .top-servers-container h2, .staff-container h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color-faded);
    display: block;
}

.servers-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.server-item:hover {
    background: var(--border-color);
}

.server-item img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

.server-name {
    font-weight: 600;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.staff-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.staff-item img {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.staff-details {
    display: flex;
    flex-direction: column;
}

.staff-name {
    font-weight: 600;
}

.staff-discord {
    font-size: 0.9rem;
    color: var(--text-color-faded);
}

/* Modal */
.event-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.event-modal-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal-btn:hover {
    color: var(--primary-color);
}

.modal-event-image-container {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 0.75rem;
}

#modalEventImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-modal-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-event-date-time {
    color: var(--text-color-faded);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.modal-event-date-time i {
    margin-right: 0.5rem;
}

#modalEventDescription {
    color: var(--text-color);
    line-height: 1.6;
}
/* =========== GLOBAL SITE FOOTER =========== */
.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 3rem 2.5rem 1.5rem; /* Adjusted padding */
    margin-top: auto;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 2rem;
    gap: 2.5rem; /* Adjusted gap */
}

.footer-brand {
    flex: 1 1 300px;
    max-width: 350px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.footer-brand p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4rem;
    flex: 2 1 400px;
    justify-content: space-around;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--fg);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    color: var(--fg);
    text-decoration: none;
    opacity: 0.85;
    font-size: 0.9rem;
    transition: color 0.2s ease-in-out;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.social-links a {
    color: var(--fg);
    font-size: 1.2rem;
    margin-left: 1.2rem;
    transition: color 0.2s ease-in-out;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* RESPONSIVE FOOTER */
@media (max-width: 992px) {
    .site-footer {
        padding: 2.5rem 1.5rem 1rem;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links {
        width: 100%;
        justify-content: center;
        margin-top: 2rem;
        gap: 1.5rem 2rem;
    }
    .footer-column {
        flex: 1 1 auto;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    .social-links a {
        margin: 0 .8rem;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 2rem 1rem 1rem;
    }
    .footer-brand {
        margin-bottom: 1.5rem;
    }
    .footer-column h3 {
        font-size: 1rem;
    }
    .footer-column a {
        font-size: 0.85rem;
    }
    .footer-links {
        gap: 1rem;
    }
    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* =========== FEATURES PAGE SPECIFIC STYLES =========== */
.features-page-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    width: 100%;
}

.features-intro {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1.5rem;
}

.features-intro h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--heading-color);
    line-height: 1.2;
}

.features-intro h1 span {
    color: var(--primary-color);
}

.features-intro p {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.feature-detail-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-detail-section:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-content-left {
    flex: 1;
    min-width: 300px;
}

.feature-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.feature-detail-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--heading-color);
}

.feature-detail-section p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-color-faded);
}

.feature-list .check-icon {
    color: #4CAF50;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.feature-chat-mockup {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
}

.features-page-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.features-page-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.features-page-cta p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-page-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.feature-cta-btn {
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
}

.feature-cta-btn-secondary {
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
}

/* RESPONSIVE FOR FEATURES PAGE */
@media (max-width: 992px) {
    .features-page-main {
        padding: 2.5rem 1.5rem;
    }
    .features-intro h1 {
        font-size: 2.5rem;
    }
    .features-intro p {
        font-size: 1.05rem;
    }
    .feature-detail-section {
        flex-direction: column !important;
        gap: 2rem;
        padding: 2rem;
        margin-bottom: 3rem;
    }
    .feature-content-left {
        text-align: center;
        min-width: unset;
        width: 100%;
    }
    .feature-icon-circle {
        margin: 0 auto 1.5rem;
    }
    .feature-list {
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
        padding-left: 0;
    }
    .feature-chat-mockup {
        width: 100%;
        max-width: 500px;
        min-width: unset;
    }
    .features-page-cta {
        padding: 2.5rem 1.5rem;
        margin-top: 3rem;
    }
    .features-page-cta h2 {
        font-size: 2rem;
    }
    .features-page-cta p {
        font-size: 1rem;
    }
    .features-page-cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .feature-cta-btn, .feature-cta-btn-secondary {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .features-page-main {
        padding: 2rem 1rem;
    }
    .features-intro h1 {
        font-size: 2rem;
    }
    .features-intro p {
        font-size: 0.95rem;
    }
    .feature-detail-section {
        padding: 1.5rem;
        margin-bottom: 2.5rem;
    }
    .feature-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .feature-detail-section h2 {
        font-size: 1.6rem;
    }
    .feature-detail-section p {
        font-size: 0.9rem;
    }
    .feature-list li {
        font-size: 0.9rem;
    }
    .features-page-cta {
        padding: 2rem 1rem;
        margin-top: 2.5rem;
    }
    .features-page-cta h2 {
        font-size: 1.6rem;
    }
    .features-page-cta p {
        font-size: 0.95rem;
    }
}
/* =========== DOCS PAGE SPECIFIC STYLES =========== */
.docs-container {
    display: flex;
    min-height: calc(100vh - 80px - 100px); /* Adjust based on navbar/footer */
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
    gap: 2rem; /* Use gap for spacing between sidebar and content */
    width: 100%;
}

.docs-sidebar {
    flex-shrink: 0;
    width: 280px;
    padding: 1.5rem;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    align-self: flex-start; /* Align to top */
    position: sticky;
    top: calc(80px + 1rem); /* Stick below navbar with some margin */
    max-height: calc(100vh - (80px + 1rem) - 2rem); /* Adjusted max-height to fit viewport */
    overflow-y: auto;
    box-shadow: var(--card-shadow);
}

.sidebar-search {
    display: flex;
    align-items: center;
    background: var(--chat-bg);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.sidebar-search i {
    color: var(--text-muted);
    margin-right: 0.8rem;
}

.sidebar-search input {
    background: none;
    border: none;
    color: var(--fg);
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}

.sidebar-search input::placeholder {
    color: var(--text-muted);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-category {
    margin-bottom: 0.5rem;
}

.sidebar-category .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--fg);
    border-radius: 8px;
    transition: background 0.2s ease-in-out;
}

.sidebar-category .category-header:hover {
    background: var(--border);
}

.sidebar-category.active .category-header {
    background: var(--primary-color);
    color: var(--card); /* Text color from card for contrast */
}

.sidebar-category.active .category-header:hover {
    background: var(--secondary-color); /* Consistency */
}

.sidebar-category.active .category-header i {
    color: var(--card); /* Icon color from card for contrast */
}

.sidebar-category .category-links {
    list-style: none;
    padding-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.sidebar-category .category-links.expanded {
    max-height: 500px; /* Sufficient height for expansion */
    padding-top: 0.5rem;
}

.sidebar-category .category-links li {
    margin-bottom: 0.4rem;
}

.sidebar-category .category-links a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.sidebar-category .category-links a:hover {
    background: var(--border);
    color: var(--fg);
}

.sidebar-category .category-links li.active-link a {
    background: var(--primary-color);
    color: var(--card); /* Text color from card for contrast */
}

.sidebar-category .category-links li.active-link a:hover {
    background: var(--secondary-color); /* Consistency */
}

.docs-content {
    flex-grow: 1;
    padding: 1.5rem 2rem;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    min-width: 600px; /* Maintain minimum width for desktop */
    box-shadow: var(--card-shadow);
}

.docs-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--fg);
}

.docs-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--fg);
}

.docs-content p, .docs-content li {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.docs-content ul, .docs-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.docs-content ul li {
    list-style: disc;
}

.docs-content ol li {
    list-style: decimal;
}

.docs-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.docs-content a:hover {
    color: var(--secondary-color); /* Consistency */
}

.docs-content code {
    background: var(--command-highlight-bg);
    color: var(--command-highlight-text);
    padding: .25rem .5rem;
    border-radius: 6px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.9rem;
}

/* RESPONSIVE FOR DOCS PAGE */
@media (max-width: 992px) {
    .docs-container {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .docs-sidebar {
        width: 100%;
        position: static; /* Remove sticky behavior on mobile */
        max-height: none; /* Allow full height on mobile */
        overflow-y: visible;
    }
    .docs-content {
        min-width: unset;
        width: 100%;
        padding: 1.5rem;
    }
    .docs-content h1 {
        font-size: 2.2rem;
    }
    .docs-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .docs-sidebar {
        padding: 1rem;
    }
    .sidebar-search input {
        font-size: 0.85rem;
    }
    .sidebar-category .category-header {
        font-size: 0.9rem;
    }
    .sidebar-category .category-links a {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .docs-content {
        padding: 1rem;
    }
    .docs-content h1 {
        font-size: 1.8rem;
    }
    .docs-content h2 {
        font-size: 1.4rem;
    }
    .docs-content p, .docs-content li {
        font-size: 0.9rem;
    }
}

/* =========== SUPPORT PAGE SPECIFIC STYLES =========== */
.support-page-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    width: 100%;
}

.support-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.support-intro h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--fg);
}

.support-intro h1 span {
    color: var(--primary-color);
}

.support-intro p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Section (Accordion) */
.faq-section {
    margin-bottom: 4rem;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--fg);
}

.accordion {
    max-width: 700px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: var(--card-shadow);
}

.accordion-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.2);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg);
    transition: background 0.2s ease-in-out;
}

.accordion-header:hover {
    background: var(--border);
}

.faq-icon {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.accordion-arrow {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.3s ease-in-out;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    padding: 0 1.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion-content p {
    padding-bottom: 1.2rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Get Support Section */
.get-support-section {
    margin-bottom: 4rem;
}

.get-support-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--fg);
}

.support-cards-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.support-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-card-shadow);
}

.support-card .card-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--fg);
    margin-bottom: 1.5rem;
}

.support-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--fg);
}

.support-card p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.support-card-btn { /* Uses global .btn */
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 40px;
    margin-top: auto;
}

.support-card-btn-secondary { /* Uses global .btn-secondary */
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 40px;
    margin-top: auto;
}

/* Additional Resources Section */
.additional-resources {
    margin-bottom: 4rem;
}

.additional-resources h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--fg);
}

.resource-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.resource-video,
.resource-issues {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.resource-video h3,
.resource-issues h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--fg);
}

.resource-video p,
.resource-issues p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.video-thumbnail-placeholder {
    background: var(--chat-bg);
    border: 1px dashed var(--border);
    border-radius: 8px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.1rem;
}

.issue-list {
    list-style: none;
    padding-left: 0;
}

.issue-item {
    background: var(--chat-bg);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.issue-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--fg);
}

.issue-item p {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 0;
}

/* RESPONSIVE FOR SUPPORT PAGE */
@media (max-width: 992px) {
    .support-page-main {
        padding: 2.5rem 1.5rem;
    }
    .support-intro h1, .faq-section h2, .get-support-section h2, .additional-resources h2 {
        font-size: 2.2rem;
    }
    .support-intro p {
        font-size: 1.05rem;
    }
    .support-cards-grid, .resource-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 2rem;
    }
    .support-card, .resource-video, .resource-issues {
        padding: 1.8rem;
    }
}

@media (max-width: 600px) {
    .support-page-main {
        padding: 2rem 1rem;
    }
    .support-intro h1 {
        font-size: 2rem;
    }
    .support-intro p {
        font-size: 0.95rem;
    }
    .faq-section h2, .get-support-section h2, .additional-resources h2 {
        font-size: 1.8rem;
    }
    .accordion-header {
        font-size: 0.95rem;
        padding: 1rem 1.2rem;
    }
    .accordion-content p {
        font-size: 0.85rem;
    }
    .support-cards-grid, .resource-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .support-card, .resource-video, .resource-issues {
        padding: 1.5rem;
    }
    .support-card h3, .resource-video h3, .resource-issues h3 {
        font-size: 1.2rem;
    }
    .support-card p, .resource-video p, .resource-issues p {
        font-size: 0.85rem;
    }
    .support-card .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    .issue-item h4 {
        font-size: 1rem;
    }
}

/* =========== CONTACT PAGE SPECIFIC STYLES ===========  */
.contact-page-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    width: 100%;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--fg);
}

.contact-intro h1 span {
    color: var(--primary-color);
}

.contact-intro p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

.contact-methods-form-section {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.contact-methods-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 280px;
}

.contact-form-column {
    flex: 2;
    min-width: 400px;
}

.contact-method-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.contact-method-card .card-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--fg);
    margin-bottom: 1.5rem;
}

.contact-method-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--fg);
}

.contact-method-card p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.contact-method-btn { /* Uses global .btn */
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 40px;
    margin-top: auto;
}

.email-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    margin-top: auto;
    transition: color 0.2s ease-in-out;
}

.email-link:hover {
    color: var(--secondary-color);
}

.contact-form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.contact-form-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--fg);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--fg);
    opacity: 0.9;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--chat-bg);
    color: var(--fg);
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-agreement {
    display: flex;
    align-items: flex-start;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.form-agreement input[type="checkbox"] {
    margin-right: 0.8rem;
    margin-top: 0.2rem;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.form-agreement label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-agreement label a:hover {
    text-decoration: underline;
}

.send-message-btn { /* Uses global .btn */
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

/* Other Ways to Connect Section */
.other-connect-section {
    margin-bottom: 4rem;
}

.other-connect-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--fg);
}

.other-links-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.social-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-card-shadow);
}

.social-card .card-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--fg);
    margin-bottom: 1.5rem;
}

.social-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--fg);
}

.social-card p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.social-btn { /* Uses global .btn */
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 40px;
    margin-top: auto;
}

/* RESPONSIVE FOR CONTACT PAGE */
@media (max-width: 992px) {
    .contact-page-main {
        padding: 2.5rem 1.5rem;
    }
    .contact-intro h1 {
        font-size: 2.5rem;
    }
    .contact-intro p {
        font-size: 1.05rem;
    }
    .contact-methods-form-section {
        flex-direction: column;
        gap: 2rem;
    }
    .contact-methods-column, .contact-form-column {
        min-width: unset;
        width: 100%;
    }
    .contact-methods-column {
        flex-direction: row; /* Keep horizontal for 2-column layout if possible */
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    .contact-method-card {
        flex: 1 1 280px;
        max-width: 400px;
        padding: 1.8rem;
    }
    .contact-form-card {
        padding: 2rem;
    }
    .contact-form-card h2, .other-connect-section h2 {
        font-size: 2rem;
    }
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    .other-links-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .contact-page-main {
        padding: 2rem 1rem;
    }
    .contact-intro h1 {
        font-size: 2rem;
    }
    .contact-intro p {
        font-size: 0.95rem;
    }
    .contact-methods-column {
        flex-direction: column;
    }
    .contact-method-card {
        padding: 1.5rem;
    }
    .contact-method-card h3 {
        font-size: 1.2rem;
    }
    .contact-form-card {
        padding: 1.5rem;
    }
    .contact-form-card h2, .other-connect-section h2 {
        font-size: 1.8rem;
    }
    .form-group label, .form-agreement {
        font-size: 0.85rem;
    }
    .form-group input, .form-group select, .form-group textarea {
        font-size: 0.9rem;
        padding: 0.7rem 0.9rem;
    }
    .send-message-btn, .social-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    .social-card {
        padding: 1.5rem;
    }
    .social-card h3 {
        font-size: 1.2rem;
    }
}

/* =========== EVENTS SECTION (ADVANCED - Wuthering Waves Inspired) =========== */
.events-section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 3rem 1.5rem;
    text-align: center;
    width: 100%;
    /* No direct background/border here, it's handled by inner cards now */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.events-section .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--fg);
    line-height: 1.2;
}

.events-section .section-description {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.events-content-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column for mobile */
    gap: 2rem;
    width: 100%;
    max-width: 1000px; /* Max width for the grid */
}

@media (min-width: 992px) { /* Two columns on larger screens */
    .events-content-grid {
        grid-template-columns: 2fr 1fr; /* Left column wider for Announcements/Events, right for News */
    }
}

.event-card-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensure content stays within bounds */
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.event-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0; /* Override default margin */
}

.event-card-header .header-buttons {
    display: flex;
    gap: 0.5rem;
}

.event-card-header .header-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-card-header .header-btn:hover {
    color: var(--fg);
    background: var(--border);
}

.event-card-header .header-btn.active {
    background: var(--primary-color);
    color: var(--card);
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.2);
}

/* Specific styling for the filter buttons in the main Events card */
.event-filters {
    display: flex;
    justify-content: center; /* Center the buttons within their container */
    gap: 0.5rem; /* Smaller gap for compact look */
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px; /* Pill shape */
    padding: 0.3rem; /* Smaller padding */
    box-shadow: inset 0 1px 3px rgba(0,0,0,.08); /* Subtle inner shadow */
    max-width: 300px; /* Keep it compact */
    width: 100%; /* Full width within its max-width */
    margin: 0 auto; /* Center the filter group */
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1rem; /* Adjusted padding for smaller buttons */
    border-radius: 40px;
    font-size: 0.85rem; /* Smaller font size */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--card);
    box-shadow: 0 3px 12px rgba(var(--primary-color-rgb), 0.3);
}

.filter-btn:hover {
    color: var(--fg);
}

/* Content scrollable area within the card */
.event-card-content-scroll {
    flex-grow: 1;
    max-height: 400px; /* Fixed height for scrolling, adjust as needed */
    overflow-y: auto;
    padding-right: 0.5rem; /* Space for scrollbar */
}

/* Custom Scrollbar for event-card-content-scroll */
.event-card-content-scroll::-webkit-scrollbar {
    width: 8px;
}
.event-card-content-scroll::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 10px;
}
.event-card-content-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
.event-card-content-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Individual Event Item in Summary List (inside the scrollable content) */
.event-summary-item {
    background: var(--bg); /* Use background for individual items */
    border: 1px solid var(--border);
    border-radius: 8px; /* Slightly less rounded */
    margin-bottom: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem; /* Adjusted padding */
    transition: all 0.2s ease;
    box-shadow: 0 1px 5px rgba(0,0,0,0.03); /* Lighter shadow */
}

.event-summary-item:last-child {
    margin-bottom: 0;
}

.event-summary-item:hover {
    background: var(--border); /* Subtle background change on hover */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.event-summary-item .event-thumbnail {
    width: 80px; /* Fixed thumbnail width */
    height: 50px; /* Fixed thumbnail height */
    flex-shrink: 0;
    border-radius: 4px; /* Slightly less rounded */
    overflow: hidden;
    background-color: var(--chat-bg); /* Placeholder background */
}

.event-summary-item .event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-summary-item .event-info {
    flex-grow: 1;
    text-align: left;
}

.event-summary-item h4 { /* Changed to h4 for hierarchical consistency */
    font-size: 1rem; /* Smaller title for summary list */
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.2rem; /* Reduced margin */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-summary-item .event-date {
    font-size: 0.75rem; /* Smaller date font */
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-summary-item .event-date i {
    font-size: 0.8em;
    color: var(--primary-color);
}

/* Event Detail Modal */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensure it's on top of everything */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.event-modal.open {
    opacity: 1;
    visibility: visible;
}

.event-modal-content {
    background: var(--modal-bg);
    border-radius: 18px;
    padding: 2.5rem;
    max-width: 800px; /* Max width for content */
    width: 90%; /* Responsive width */
    max-height: 90vh; /* Max height to fit screen, enable scroll */
    overflow-y: auto; /* Scroll content if too long */
    position: relative;
    box-shadow: var(--modal-shadow);
    transform: translateY(20px); /* Slide up effect */
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Spacing between elements */
}

.event-modal.open .event-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-modal-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 2010; /* Ensure close button is clickable */
}

.close-modal-btn:hover {
    color: var(--fg);
    transform: rotate(90deg);
}

.modal-event-image-container {
    width: 100%;
    max-height: 300px; /* Max height for image */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background-color: var(--border); /* Placeholder background */
}

#modalEventImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#modalEventTitle {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modal-event-date-time {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.modal-event-date-time i {
    font-size: 1.1em;
    color: var(--secondary-color);
}

#modalEventDescription {
    font-size: 1.05rem;
    color: var(--fg);
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
    white-space: pre-wrap; /* Preserve line breaks from API */
    word-break: break-word; /* Break long words */
}

.modal-event-link {
    align-self: flex-start; /* Align button to the start */
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
}

/* RESPONSIVE EVENTS SECTION */
@media (max-width: 992px) {
    .events-section {
        padding: 2.5rem 1.5rem;
        margin: 4rem auto;
    }
    .events-section .section-title {
        font-size: 2.2rem;
    }
    .events-section .section-description {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    .event-card-container {
        padding: 1.2rem;
    }
    .event-card-header {
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
    }
    .event-card-header h3 {
        font-size: 1.3rem;
    }
    .event-card-header .header-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .event-filters {
        flex-direction: row; /* Keep row for 3 buttons if space allows */
        max-width: 350px; /* Adjust max-width */
        padding: 0.3rem;
        gap: 0.4rem;
    }
    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    .filter-btn.active {
        box-shadow: 0 3px 12px rgba(var(--primary-color-rgb), 0.3);
    }
    .filter-btn:hover {
        color: var(--fg);
    }
    .event-card-content-scroll {
        max-height: 350px; /* Adjust height for smaller screens */
        padding-right: 0.3rem;
    }
    .event-summary-item {
        padding: 0.7rem;
        margin-bottom: 0.6rem;
        gap: 0.6rem;
    }
    .event-summary-item .event-thumbnail {
        width: 70px;
        height: 45px;
    }
    .event-summary-item h4 {
        font-size: 0.9rem;
    }
    .event-summary-item .event-date {
        font-size: 0.7rem;
    }
    .event-modal-content {
        padding: 2rem;
        width: 95%;
    }
    .close-modal-btn {
        font-size: 1.5rem;
        top: 1rem;
        right: 1rem;
    }
    .modal-event-image-container {
        max-height: 250px;
    }
    #modalEventTitle {
        font-size: 1.8rem;
    }
    .modal-event-date-time {
        font-size: 0.95rem;
    }
    #modalEventDescription {
        font-size: 1rem;
    }
    .modal-event-link {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 600px) {
    .events-section {
        padding: 2rem 1rem;
        margin: 3rem auto;
    }
    .events-section .section-title {
        font-size: 1.8rem;
    }
    .events-section .section-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .events-content-grid {
        grid-template-columns: 1fr; /* Force single column on very small screens */
        gap: 1.5rem;
    }
    .event-card-container {
        padding: 1rem;
    }
    .event-card-header h3 {
        font-size: 1.2rem;
    }
    .event-card-header .header-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    .event-filters {
        flex-direction: column; /* Stack filter buttons vertically on very small screens */
        max-width: 200px; /* Make it even narrower */
        padding: 0;
        border-radius: 8px;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    .filter-btn {
        border-radius: 6px;
        margin: 0.15rem 0;
        font-size: 0.8rem;
        border: 1px solid var(--border);
        background: var(--bg);
    }
    .filter-btn.active {
        box-shadow: 0 1px 5px rgba(var(--primary-color-rgb), 0.15);
    }
    .event-card-content-scroll {
        max-height: 300px; /* Further reduce height */
        padding-right: 0.2rem;
    }
    .event-summary-item {
        padding: 0.6rem;
        margin-bottom: 0.4rem;
        flex-direction: column; /* Stack image and text vertically */
        align-items: flex-start;
        gap: 0.5rem;
    }
    .event-summary-item .event-thumbnail {
        width: 100%; /* Full width image on mobile */
        height: 100px; /* Taller image on mobile */
    }
    .event-summary-item h4 {
        font-size: 0.9rem;
        white-space: normal; /* Allow title to wrap */
        overflow: visible;
        text-overflow: clip;
    }
    .event-summary-item .event-date {
        font-size: 0.7rem;
    }
    .event-modal-content {
        padding: 1.2rem;
        border-radius: 10px;
        gap: 0.8rem;
    }
    .close-modal-btn {
        font-size: 1.2rem;
        top: 0.6rem;
        right: 0.6rem;
    }
    .modal-event-image-container {
        max-height: 150px;
        margin-bottom: 0.8rem;
    }
    #modalEventTitle {
        font-size: 1.4rem;
    }
    .modal-event-date-time {
        font-size: 0.85rem;
        margin-bottom: 0.8rem; /* Adjusted margin */
    }
    #modalEventDescription {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    .modal-event-link {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
}

/* --- Stats Section --- */
.stats-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 4rem 5%;
    background-color: var(--section-bg);
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 1rem 2rem;
}

.stat-item .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-item .stat-label {
    display: block;
    font-size: 1rem;
    color: var(--text-color-faded);
    margin-top: 0.25rem;
}

/* ==================================
   === HEALTH PAGE SPECIFIC STYLES ===
   ================================== */
.health-page-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    width: 100%;
}

.health-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.health-intro h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--heading-color);
    line-height: 1.2;
}

.health-intro h1 span {
    color: var(--primary-color);
}

.health-intro p {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.health-dashboard-section {
    padding: 2rem 0;
}

.health-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.health-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    text-align: left;
}

.health-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.health-card-header .health-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.health-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.health-status-indicator {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.loading { background-color: gray; }
.status-dot.up { background-color: #28a745; } /* Green */
.status-dot.down { background-color: #dc3545; } /* Red */
.status-dot.degraded { background-color: #ffc107; } /* Yellow */

.health-details p {
    font-size: 0.95rem;
    color: var(--text-color-faded);
    margin-bottom: 0.5rem;
}

.health-api-services {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-color);
}

.service-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.service-dot.loading { background-color: gray; }
.service-dot.up { background-color: #28a745; }
.service-dot.down { background-color: #dc3545; }
.service-dot.degraded { background-color: #ffc107; }

.health-metrics-section {
    padding: 4rem 0;
    text-align: center;
}

.health-metrics-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--heading-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-color-faded);
}

/* --- Responsive Styles for Health Page --- */
@media (max-width: 992px) {
    .health-intro h1 {
        font-size: 2.5rem;
    }
    .health-intro p {
        font-size: 1.05rem;
    }
    .health-dashboard-section {
        padding: 1.5rem 0;
    }
    .health-card {
        padding: 1.5rem;
    }
    .health-metrics-section h2 {
        font-size: 1.8rem;
    }
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 600px) {
    .health-intro h1 {
        font-size: 2rem;
    }
    .health-intro p {
        font-size: 0.95rem;
    }
    .health-dashboard-section {
        padding: 1rem 0;
    }
    .health-status-grid {
        grid-template-columns: 1fr;
    }
    .health-card {
        padding: 1rem;
    }
    .health-card-header h3 {
        font-size: 1.2rem;
    }
    .health-status-indicator {
        font-size: 1rem;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   === HOME PAGE ADVANCED SECTIONS ===
   ==================================== */

/* Live Stats Section */
.live-stats-section {
    padding: 6rem 1rem;
    text-align: center;
}

.stats-header {
    margin-bottom: 3rem;
}

.stats-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.stats-title span {
    color: var(--primary-color);
}

.stats-subtitle {
    font-size: 1.25rem;
    color: var(--text-color-faded);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color-faded);
    font-weight: 500;
}


/* Servers on the Rise Section */
.servers-section {
    padding: 6rem 1rem;
    background: var(--bg-color-secondary);
    text-align: center;
}

.servers-header {
    margin-bottom: 3rem;
}

.servers-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--heading-color);
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.server-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.server-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-color); /* Placeholder background */
}

.server-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
}

.server-details p {
    font-size: 0.95rem;
    color: var(--text-color-faded);
    margin: 0;
}

/* Staff Section (new) */
.staff-section {
    padding: 6rem 1rem;
    text-align: center;
}

.staff-section .section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--heading-color);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.staff-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.staff-item:hover {
    transform: scale(1.03);
}

.staff-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.staff-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.staff-details .staff-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--heading-color);
}

.staff-details .staff-discord {
    font-size: 0.9rem;
    color: var(--text-color-faded);
}


/* Responsive styles */
@media (max-width: 768px) {
    .live-stats-section, .servers-section, .staff-section {
        padding: 4rem 1rem;
    }
    .stats-title, .servers-title, .staff-section .section-title {
        font-size: 2.2rem;
    }
    .stats-subtitle {
        font-size: 1rem;
    }
    .stats-grid, .servers-grid, .staff-grid {
        grid-template-columns: 1fr;
    }
}