/* =========================================================
   UnderX Django Website
   Main Stylesheet
========================================================= */


/* =========================================================
   1. RESET / GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    background: #f4f6f8;
    color: #1f2937;
}

img {
    max-width: 100%;
}

a {
    transition: 0.2s ease;
}

main {
    min-height: 60vh;
}

.container {
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   2. HEADER / NAVIGATION
========================================================= */

.site-header {
    position: relative;
    z-index: 1000;

    background: #111827;

    border-bottom: 1px solid
        rgba(255, 255, 255, 0.08);
}

.nav-container {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.site-logo {
    flex-shrink: 0;

    color: #ffffff;

    font-size: 24px;
    font-weight: 700;

    text-decoration: none;
}

.site-logo:hover {
    opacity: 0.85;
}


/* Desktop Navigation */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 18px;
}

.main-nav a {
    position: relative;

    padding: 26px 0 21px;

    color: #d1d5db;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
}

.main-nav a:hover {
    color: #ffffff;
}


/* Active Navigation */

.main-nav a.active {
    color: #ffffff;
    font-weight: 700;
}

.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 14px;

    width: 100%;
    height: 2px;

    background: #ffffff;

    border-radius: 2px;
}


/* Mobile Menu Button */

.mobile-menu-button {
    display: none;

    padding: 6px;

    background: transparent;
    border: 0;

    color: #ffffff;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   3. GENERAL TYPOGRAPHY / SHARED SECTIONS
========================================================= */

.section-heading {
    max-width: 700px;
    margin-bottom: 42px;
}

.section-heading h2 {
    margin: 0 0 12px;

    font-size: 36px;
    line-height: 1.2;
}

.section-heading p {
    margin: 0;

    color: #6b7280;

    line-height: 1.7;
}

.section-label,
.hero-label,
.service-label {
    display: inline-block;

    margin: 0;

    color: #6b7280;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.hero-label {
    color: #9ca3af;
}


/* =========================================================
   4. HOMEPAGE HERO
========================================================= */

.hero {
    padding: 110px 0;

    background:
        linear-gradient(
            135deg,
            #111827 0%,
            #1f2937 55%,
            #0f172a 100%
        );

    color: #ffffff;
}

.hero h1 {
    max-width: 760px;

    margin: 16px 0 24px;

    font-size: 58px;
    line-height: 1.05;
}

.hero-description {
    max-width: 680px;

    margin: 0;

    color: #d1d5db;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   5. GENERAL PAGE HEADER
========================================================= */

.page-header {
    padding: 85px 0;

    background:
        linear-gradient(
            135deg,
            #111827 0%,
            #1f2937 100%
        );

    color: #ffffff;
}

.page-header h1 {
    max-width: 780px;

    margin: 12px 0 18px;

    font-size: 48px;
    line-height: 1.1;
}

.page-header-description {
    max-width: 680px;

    margin: 0;

    color: #cbd5e1;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   6. HOMEPAGE - WELCOME / FEATURE CARDS
========================================================= */

.welcome-section {
    padding: 85px 0;

    background: #ffffff;
}

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.feature-card {
    padding: 32px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.08);
}

.feature-number {
    display: inline-block;

    margin-bottom: 18px;

    color: #6b7280;

    font-size: 12px;
    font-weight: 700;
}

.feature-card h3 {
    margin: 0 0 15px;

    font-size: 24px;
}

.feature-card p {
    color: #6b7280;

    line-height: 1.7;
}

.feature-card a {
    display: inline-block;

    margin-top: 12px;

    color: #111827;

    font-weight: 700;

    text-decoration: none;
}

.feature-card a:hover {
    opacity: 0.65;
}

.feature-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 18px;
}


/* =========================================================
   7. HOMEPAGE - QUICK LINKS
========================================================= */

.quick-links-section {
    padding: 75px 0;

    background: #eef1f5;
}

.quick-links-section h2 {
    margin: 0 0 22px;

    font-size: 36px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}

.quick-links a {
    padding: 13px 18px;

    background: #ffffff;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    color: #1f2937;

    font-weight: 600;

    text-decoration: none;
}

.quick-links a:hover {
    background: #111827;
    color: #ffffff;
}


/* =========================================================
   8. SHARED HELP / DARK CTA SECTION
========================================================= */

.help-section {
    padding: 85px 0;

    background: #111827;
    color: #ffffff;

    text-align: center;
}

.help-section .section-label {
    color: #9ca3af;
}

.help-section h2 {
    margin: 8px 0 14px;

    font-size: 36px;
}

.help-section p {
    max-width: 650px;

    margin: 0 auto;

    color: #cbd5e1;

    line-height: 1.7;
}

.help-email {
    display: inline-block;

    margin-top: 18px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 700;
}


/* =========================================================
   9. SERVICES PAGE
========================================================= */

.services-section {
    padding: 85px 0;

    background: #ffffff;
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.service-card {
    padding: 30px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.07);
}

.service-card .service-label {
    margin-bottom: 14px;
}

.service-card h3 {
    margin: 0 0 12px;

    font-size: 23px;
}

.service-card p {
    margin: 0 0 18px;

    color: #6b7280;

    line-height: 1.7;
}

.service-card a {
    color: #111827;

    font-weight: 700;

    text-decoration: none;
}


/* Popular Links */

.popular-section {
    padding: 65px 0;

    background: #eef1f5;
}

.popular-links {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 20px;
}

.popular-links a {
    padding: 12px 17px;

    background: #ffffff;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    color: #1f2937;

    font-weight: 600;

    text-decoration: none;
}

.popular-links a:hover {
    background: #111827;
    color: #ffffff;
}


/* =========================================================
   10. COMMITTEES PAGE
========================================================= */

.committees-section {
    padding: 85px 0;

    background: #ffffff;
}

.committee-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.committee-card {
    padding: 32px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.committee-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.07);
}

.committee-card .service-label {
    margin-bottom: 14px;
}

.committee-card h3 {
    margin: 0 0 12px;

    font-size: 24px;
}

.committee-card p {
    margin: 0 0 18px;

    color: #6b7280;

    line-height: 1.7;
}

.committee-card a {
    color: #111827;

    font-weight: 700;

    text-decoration: none;
}


/* Contribution Section */

.contribute-section {
    padding: 80px 0;

    background: #eef1f5;
}

.contribute-layout {
    display: grid;

    grid-template-columns: 1fr 2fr;

    gap: 50px;
}

.contribute-layout h2 {
    margin: 8px 0 0;

    font-size: 36px;
}

.contribute-steps {
    display: grid;

    gap: 14px;
}

.contribute-step {
    display: flex;
    align-items: flex-start;

    gap: 20px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #dfe3e8;
    border-radius: 10px;
}

.contribute-step span {
    color: #6b7280;

    font-size: 13px;
    font-weight: 700;
}

.contribute-step p {
    margin: 0;

    color: #4b5563;

    line-height: 1.6;
}


/* =========================================================
   11. CHANNEL SERVICE PAGE
========================================================= */

.channel-service-section {
    padding: 85px 0;

    background: #ffffff;
}

.channel-service-layout {
    display: grid;

    grid-template-columns: 1.4fr 0.8fr;

    gap: 50px;

    align-items: start;
}

.channel-service-info h2,
.channel-service-portal h2,
.channel-help-box h2 {
    margin: 8px 0 16px;

    font-size: 34px;
}

.channel-service-info > p,
.channel-service-portal p,
.channel-help-box p {
    color: #6b7280;

    line-height: 1.7;
}

.channel-features {
    display: grid;

    gap: 14px;

    margin-top: 32px;
}

.channel-feature {
    display: flex;

    gap: 20px;

    padding: 22px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.channel-feature > span {
    color: #6b7280;

    font-size: 12px;
    font-weight: 700;
}

.channel-feature h3 {
    margin: 0 0 7px;

    font-size: 18px;
}

.channel-feature p {
    margin: 0;

    color: #6b7280;

    line-height: 1.6;
}


/* Portal Box */

.channel-service-portal {
    position: sticky;
    top: 30px;

    padding: 32px;

    background: #111827;
    color: #ffffff;

    border-radius: 14px;
}

.channel-service-portal .section-label {
    color: #9ca3af;
}

.channel-service-portal p {
    color: #cbd5e1;
}

.primary-action {
    display: inline-block;

    margin-top: 15px;
    padding: 13px 19px;

    background: #ffffff;
    color: #111827;

    border-radius: 8px;

    font-weight: 700;

    text-decoration: none;
}

.primary-action:hover {
    transform: translateY(-2px);
}

.external-note {
    margin-top: 12px;

    font-size: 12px;
}


/* Channel Help Box */

.channel-help-section,
.chat-fallback-section,
.forum-fallback-section {
    padding: 70px 0;

    background: #eef1f5;
}

.channel-help-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 35px;

    background: #ffffff;

    border: 1px solid #dfe3e8;
    border-radius: 14px;
}

.channel-help-box > div {
    max-width: 700px;
}

.secondary-action {
    display: inline-block;

    padding: 12px 18px;

    border: 1px solid #111827;
    border-radius: 8px;

    color: #111827;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}

.secondary-action:hover {
    background: #111827;
    color: #ffffff;
}


/* =========================================================
   12. WEBCHAT PAGE
========================================================= */

.webchat-section {
    padding: 80px 0;

    background: #ffffff;
}

.webchat-layout {
    display: grid;

    grid-template-columns: 2fr 0.8fr;

    gap: 32px;

    align-items: start;
}

.webchat-frame {
    overflow: hidden;

    min-height: 650px;

    background: #f3f4f6;

    border: 1px solid #dfe3e8;
    border-radius: 14px;
}

.webchat-frame iframe {
    display: block;

    width: 100%;
    height: 650px;

    border: 0;
}

.webchat-sidebar {
    padding: 30px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.webchat-sidebar h2 {
    margin: 8px 0 25px;

    font-size: 28px;
}

.chat-step {
    display: flex;

    gap: 15px;

    padding: 18px 0;

    border-bottom: 1px solid #e5e7eb;
}

.chat-step:last-child {
    border-bottom: 0;
}

.chat-step > span {
    color: #6b7280;

    font-size: 12px;
    font-weight: 700;
}

.chat-step h3 {
    margin: 0 0 6px;

    font-size: 17px;
}

.chat-step p {
    margin: 0;

    color: #6b7280;

    line-height: 1.6;
}


/* =========================================================
   13. FORUM PAGE
========================================================= */

.forum-section {
    padding: 80px 0;

    background: #ffffff;
}

.forum-intro {
    max-width: 720px;

    margin-bottom: 32px;
}

.forum-intro h2 {
    margin: 8px 0 14px;

    font-size: 34px;
}

.forum-intro p {
    color: #6b7280;

    line-height: 1.7;
}

.forum-frame {
    overflow: hidden;

    min-height: 700px;

    background: #f3f4f6;

    border: 1px solid #dfe3e8;
    border-radius: 14px;
}

.forum-frame iframe {
    display: block;

    width: 100%;
    height: 700px;

    border: 0;
}


/* =========================================================
   14. SERVERS PAGE
========================================================= */

.servers-section {
    padding: 80px 0;

    background: #ffffff;
}

.server-highlight {
    margin-bottom: 60px;
    padding: 32px;

    background: #111827;
    color: #ffffff;

    border-radius: 14px;
}

.server-highlight .section-label {
    color: #9ca3af;
}

.server-highlight h2 {
    margin: 8px 0 10px;

    font-size: 32px;
}

.server-highlight p {
    color: #cbd5e1;
}

.connection-details {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 20px;
}

.connection-details span {
    padding: 9px 13px;

    background:
        rgba(255, 255, 255, 0.08);

    border-radius: 7px;

    font-size: 14px;
}


/* Server Table */

.server-table-wrapper {
    overflow-x: auto;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.server-table {
    width: 100%;

    border-collapse: collapse;
}

.server-table th,
.server-table td {
    padding: 16px 18px;

    text-align: left;

    border-bottom: 1px solid #e5e7eb;
}

.server-table th {
    background: #f3f4f6;

    color: #4b5563;

    font-size: 13px;
    text-transform: uppercase;
}

.server-table tr:last-child td {
    border-bottom: 0;
}

.server-table tbody tr:hover {
    background: #f9fafb;
}

.server-table a {
    color: #111827;

    font-weight: 600;
}


/* =========================================================
   15. LINKS / CONTACTS PAGE
========================================================= */

.links-section,
.contacts-section {
    padding: 80px 0;
}

.links-section {
    background: #ffffff;
}

.contacts-section {
    background: #f3f4f6;
}


/* Resource Cards */

.resource-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.resource-card {
    padding: 30px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.resource-card .service-label {
    margin-bottom: 14px;
}

.resource-card h3 {
    margin: 0 0 10px;

    font-size: 23px;
}

.resource-card p {
    color: #6b7280;

    line-height: 1.7;
}

.resource-card a {
    color: #111827;

    font-weight: 700;

    text-decoration: none;
}

.irc-channel {
    display: block;

    margin-top: 14px;

    color: #6b7280;

    font-size: 13px;
    font-weight: 700;
}


/* Contact Cards */

.contact-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.contact-card {
    padding: 25px;

    background: #ffffff;

    border: 1px solid #dfe3e8;
    border-radius: 12px;
}

.contact-card h3 {
    margin: 0 0 10px;

    font-size: 19px;
}

.contact-card p {
    color: #6b7280;

    line-height: 1.6;
}

.contact-card a {
    color: #111827;

    font-weight: 700;

    text-decoration: none;
}


/* Email Guidelines */

.email-guidelines {
    padding: 75px 0;

    background: #111827;
    color: #ffffff;
}

.email-guidelines .section-label {
    color: #9ca3af;
}

.email-guidelines h2 {
    margin: 8px 0 30px;

    font-size: 34px;
}

.guideline-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.guideline-grid > div {
    padding: 22px;

    background:
        rgba(255, 255, 255, 0.06);

    border-radius: 10px;
}

.guideline-grid strong {
    color: #9ca3af;

    font-size: 12px;
}

.guideline-grid p {
    margin-bottom: 0;

    color: #d1d5db;

    line-height: 1.6;
}


/* =========================================================
   16. NEWS PAGE
========================================================= */

.news-section {
    padding: 80px 0;

    background: #ffffff;
}

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.news-card {
    padding: 30px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.07);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 18px;

    color: #6b7280;

    font-size: 12px;
}

.news-category {
    font-weight: 700;

    text-transform: uppercase;
}

.news-card h2 {
    margin: 0 0 14px;

    font-size: 24px;
}

.news-card p {
    color: #6b7280;

    line-height: 1.7;
}

.news-card a {
    display: inline-block;

    margin-top: 10px;

    color: #111827;

    font-weight: 700;

    text-decoration: none;
}


/* Empty State */

.empty-state {
    grid-column: 1 / -1;

    padding: 50px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    text-align: center;
}

.empty-state h2,
.empty-state h3 {
    margin-top: 0;
}

.empty-state p {
    color: #6b7280;
}


/* =========================================================
   17. NEWS DETAIL PAGE
========================================================= */

.news-detail-section {
    padding: 80px 0;

    background: #ffffff;
}

.news-detail {
    max-width: 850px;

    margin: 0 auto;
}

.back-link {
    display: inline-block;

    margin-bottom: 35px;

    color: #111827;

    font-weight: 700;

    text-decoration: none;
}

.news-detail-summary {
    margin-bottom: 35px;

    color: #4b5563;

    font-size: 21px;
    line-height: 1.7;
}

.news-detail-content {
    color: #374151;

    font-size: 17px;
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 22px;
}


/* =========================================================
   18. HOMEPAGE NEWS
========================================================= */

.home-news-section {
    padding: 80px 0;

    background: #ffffff;
}

.home-news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
}

.home-news-header h2 {
    margin: 8px 0 0;

    font-size: 36px;
}

.home-news-header > a {
    color: #111827;

    font-weight: 700;

    text-decoration: none;
}

.home-news-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.home-news-card {
    padding: 28px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.home-news-card h3 {
    margin: 0 0 12px;

    font-size: 22px;
}

.home-news-card p {
    color: #6b7280;

    line-height: 1.7;
}

.home-news-card > a {
    display: inline-block;

    margin-top: 8px;

    color: #111827;

    font-weight: 700;

    text-decoration: none;
}


/* =========================================================
   19. HELP / FAQ PAGE
========================================================= */

.help-page-section {
    padding: 80px 0;

    background: #ffffff;
}

.help-page-layout {
    display: grid;

    grid-template-columns: 1.5fr 0.7fr;

    gap: 50px;

    align-items: start;
}


/* FAQ */

.faq-list {
    display: grid;

    gap: 14px;
}

.faq-item {
    overflow: hidden;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 22px;

    font-weight: 700;

    cursor: pointer;

    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    color: #6b7280;

    font-size: 20px;
}

.faq-answer {
    padding: 0 22px 20px;

    color: #6b7280;

    line-height: 1.7;
}

.faq-answer p {
    margin-top: 0;
}


/* Help Sidebar */

.help-sidebar {
    padding: 30px;

    background: #111827;
    color: #ffffff;

    border-radius: 14px;
}

.help-sidebar .section-label {
    color: #9ca3af;
}

.help-sidebar h2 {
    margin: 8px 0 14px;

    font-size: 28px;
}

.help-sidebar p {
    color: #cbd5e1;

    line-height: 1.7;
}

.help-sidebar .primary-action {
    background: #ffffff;
    color: #111827;
}

.help-contact-link {
    display: block;

    margin-top: 20px;

    color: #ffffff;

    font-weight: 700;
}


/* =========================================================
   20. DOCUMENTS PAGE
========================================================= */

.documents-section {
    padding: 80px 0;

    background: #ffffff;
}

.documents-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.document-card {
    padding: 30px;

    background: #f9fafb;

    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.document-card .service-label {
    margin-bottom: 14px;
}

.document-card h2 {
    margin: 0 0 12px;

    font-size: 23px;
}

.document-card p {
    color: #6b7280;

    line-height: 1.7;
}

.document-card a {
    display: inline-block;

    margin-top: 10px;

    color: #111827;

    font-weight: 700;

    text-decoration: none;
}

.document-unavailable {
    display: inline-block;

    margin-top: 10px;

    color: #9ca3af;

    font-size: 13px;
}


/* =========================================================
   21. FOOTER
========================================================= */

.site-footer {
    padding: 28px 0;

    background: #0b1120;
    color: #9ca3af;

    font-size: 14px;
}

.site-footer p {
    margin: 0;
}


/* =========================================================
   22. TABLET RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 12px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .channel-service-layout,
    .webchat-layout,
    .help-page-layout {
        grid-template-columns: 1fr;
    }

    .channel-service-portal {
        position: static;
    }

    .home-news-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .guideline-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   23. MOBILE RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    /* General */

    .container {
        width: calc(100% - 32px);
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2,
    .quick-links-section h2,
    .home-news-header h2,
    .help-section h2 {
        font-size: 30px;
    }


    /* Header */

    .nav-container {
        position: relative;

        min-height: 68px;

        padding: 0;

        gap: 20px;
    }

    .site-logo {
        font-size: 22px;
    }

    .mobile-menu-button {
        display: block;
    }

    .main-nav {
        display: none;

        position: absolute;

        top: 68px;
        left: 0;
        right: 0;

        z-index: 2000;

        width: 100%;

        padding: 12px;

        background: #111827;

        border-top: 1px solid
            rgba(255, 255, 255, 0.08);

        border-radius: 0 0 10px 10px;

        box-shadow:
            0 16px 30px
            rgba(0, 0, 0, 0.2);
    }

    .main-nav.menu-open {
        display: flex;

        flex-direction: column;
        align-items: stretch;

        gap: 2px;
    }

    .main-nav a {
        width: 100%;

        padding: 11px 10px;

        font-size: 15px;
    }

    .main-nav a.active::after {
        position: static;

        display: block;

        width: 30px;
        height: 2px;

        margin-top: 5px;
    }


    /* Hero */

    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-description {
        font-size: 17px;
    }


    /* Page Headers */

    .page-header {
        padding: 65px 0;
    }

    .page-header h1 {
        font-size: 38px;
    }

    .page-header-description {
        font-size: 17px;
    }


    /* Grid Sections */

    .feature-grid,
    .services-grid,
    .committee-grid,
    .resource-grid,
    .contact-grid,
    .news-grid,
    .home-news-grid,
    .documents-grid,
    .guideline-grid {
        grid-template-columns: 1fr;
    }


    /* Contribution */

    .contribute-layout {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    /* Channel Service */

    .channel-service-layout {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .channel-service-portal {
        position: static;
    }

    .channel-help-box {
        flex-direction: column;
        align-items: flex-start;

        gap: 20px;

        padding: 28px;
    }


    /* WebChat */

    .webchat-layout {
        grid-template-columns: 1fr;
    }

    .webchat-frame {
        min-height: 550px;
    }

    .webchat-frame iframe {
        height: 550px;
    }


    /* Forum */

    .forum-frame {
        min-height: 550px;
    }

    .forum-frame iframe {
        height: 550px;
    }


    /* Homepage News */

    .home-news-header {
        flex-direction: column;
        align-items: flex-start;

        gap: 15px;
    }


    /* Help */

    .help-page-layout {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    /* Server Table */

    .server-table {
        min-width: 750px;
    }


    /* Spacing */

    .welcome-section,
    .services-section,
    .committees-section,
    .channel-service-section,
    .webchat-section,
    .forum-section,
    .servers-section,
    .links-section,
    .contacts-section,
    .news-section,
    .news-detail-section,
    .home-news-section,
    .help-page-section,
    .documents-section {
        padding: 60px 0;
    }

}


/* =========================================================
   24. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .hero h1 {
        font-size: 34px;
    }

    .page-header h1 {
        font-size: 33px;
    }

    .feature-card,
    .service-card,
    .committee-card,
    .resource-card,
    .contact-card,
    .news-card,
    .home-news-card,
    .document-card {
        padding: 24px;
    }

    .channel-feature {
        padding: 18px;
    }

    .server-highlight {
        padding: 25px;
    }

    .quick-links {
        flex-direction: column;
    }

    .quick-links a {
        width: 100%;
    }

    .feature-actions {
        flex-direction: column;

        gap: 6px;
    }

    .webchat-frame {
        min-height: 500px;
    }

    .webchat-frame iframe {
        height: 500px;
    }

    .forum-frame {
        min-height: 500px;
    }

    .forum-frame iframe {
        height: 500px;
    }

}
/* =========================================================
   EXTERNAL LINK MODAL
========================================================= */

body.modal-open {
    overflow: hidden;
}

.external-modal {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 9999;
}

.external-modal.is-open {
    display: flex;

    align-items: center;
    justify-content: center;
}

.external-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(3, 7, 18, 0.8);

    backdrop-filter: blur(5px);
}

.external-modal-dialog {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    width: min(1200px, 94%);
    height: min(820px, 90vh);

    overflow: hidden;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.35);
}

.external-modal-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 22px;

    background: #111827;
    color: #ffffff;
}

.external-modal-label {
    margin: 0 0 4px;

    color: #9ca3af;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.external-modal-header h2 {
    margin: 0;

    font-size: 19px;
}

.external-modal-close {
    width: 40px;
    height: 40px;

    padding: 0;

    background: rgba(
        255,
        255,
        255,
        0.08
    );

    border: 0;
    border-radius: 8px;

    color: #ffffff;

    font-size: 26px;

    cursor: pointer;
}

.external-modal-close:hover {
    background: rgba(
        255,
        255,
        255,
        0.15
    );
}

.external-modal-content {
    flex: 1;

    min-height: 0;

    background: #f3f4f6;
}

.external-modal-content iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

.external-modal-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 14px 22px;

    background: #ffffff;

    border-top: 1px solid #e5e7eb;
}

.external-modal-footer p {
    margin: 0;

    color: #6b7280;

    font-size: 13px;
}

.external-modal-footer a {
    flex-shrink: 0;

    color: #111827;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}


@media (max-width: 768px) {

    .external-modal-dialog {
        width: 96%;
        height: 92vh;

        border-radius: 12px;
    }

    .external-modal-footer {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }

}