:root {
    --primary-color: #4a9eff;
    --secondary-color: #ffd700;
    --dark-bg: #0a0e1a;
    --darker-bg: #050810;
    --card-bg: #1a1f35;
    --text-light: #e0e6f0;
    --text-muted: #8892b0;
    --accent-blue: #64ffda;
    --accent-gold: #ffd700;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-gold: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--darker-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.guild-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-blue);
}

/* Ensure nav links (including Contact) are vertically centered */
.nav-menu .nav-link {
    display: inline-flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-blue);
    transition: all 0.3s ease;
}

/* Nav login button matching site CTA but compact for header */
.nav-login {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.20rem 0.6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.72rem;
    border-radius: 8px;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.12);
    align-self: center;
    text-transform: none;
    white-space: nowrap;
}

.nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.nav-login .button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-right: 0.6rem;
}

.nav-login .discord-icon {
    width: 10px;
    height: 10px;
    display: inline-block;
    vertical-align: middle;
}

.nav-login .login-text {
    display: inline;
}

@media (max-width: 480px) {
    .nav-login {
        width: 24px;
        height: 24px;
        padding: 0;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.18);
    }

    .nav-login .button-icon {
        margin-right: 0;
        font-size: 1.25rem;
    }

    .nav-login .discord-icon {
        width: 12px;
        height: 12px;
    }

    .nav-login .login-text {
        display: none;
    }

    /* ensure nav-menu spacing doesn't break when login becomes circular */
    .navbar .container {
        gap: 0.5rem;
    }
}

/* Stronger override for nav login to beat .cta-button defaults */
a.nav-login.cta-button {
    padding: 0.12rem 0.28rem;
    font-size: 0.68rem;
    line-height: 1;
    border-radius: 8px;
    height: auto;
    min-height: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

a.nav-login.cta-button .discord-icon {
    width: 10px;
    height: 10px;
}


/* Position the login button to the far right of the navbar */
a.nav-login {
    margin-left: auto !important;
    margin-right: 0.4rem !important;
}

/* Add spacing to the Contact link so it doesn't collide with the login button */
a.nav-link[href="#contact"] {
    margin-right: 1.2rem;
}


/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 100%);
    overflow: hidden;
    padding-top: 80px;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 8s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-color), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.8)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-blue);
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    background: var(--dark-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Members Section */
.members-section {
    background: var(--darker-bg);
}

.members-grid {
    margin-top: 3rem;
}

.members-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Table styles for members CSV view */
.members-table-wrapper {
    background: transparent;
    border-radius: 12px;
    padding: 0.5rem;
    overflow: auto;
}
.members-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.members-table th,
.members-table td {
    padding: 0.85rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid rgba(100, 255, 218, 0.06);
}
.members-table thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, rgba(26,31,53,0.9), rgba(26,31,53,0.85));
    color: var(--accent-blue);
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
}
.members-table tbody td {
    background: var(--card-bg);
    color: var(--text-light);
}
.members-table tbody tr:hover td {
    background: rgba(100,255,218,0.02);
}
.th-sort-indicator {
    float: right;
    opacity: 0.75;
    font-size: 0.9rem;
    margin-left: 0.6rem;
}

/* Improve link contrast and focus for table links */
.members-table a {
    color: var(--accent-gold);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.12s ease;
}
.members-table a:visited { color: rgba(255, 215, 0, 0.9); }
.members-table a:hover,
.members-table a:focus {
    color: var(--accent-blue);
    text-decoration: underline;
}
.members-table a:focus {
    outline: 2px solid rgba(100,255,218,0.12);
    outline-offset: 2px;
    border-radius: 4px;
}

.member-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.member-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.member-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.member-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.member-role {
    color: var(--accent-gold);
    font-weight: 600;
}

.member-placeholder {
    background: var(--card-bg);
    padding: 3rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed rgba(100, 255, 218, 0.3);
}

.member-placeholder p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.placeholder-note {
    font-size: 0.95rem !important;
    color: var(--text-muted);
    opacity: 0.7;
}

.member-section {
    margin-bottom: 2.5rem;
}

.member-section-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    padding-bottom: 0.5rem;
}

.member-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.member-detail {
    margin-top: 2rem;
}

.member-detail-card {
    background: var(--card-bg);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.member-detail-header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.member-detail-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.member-detail-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.member-detail-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.08);
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    display: block;
    font-weight: 800;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.detail-subsection {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.05);
}

.detail-subtitle {
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.35rem;
}

.detail-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.4;
}

.gl-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gl-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #1b2a4a 0%, #1f364f 60%, #244b63 100%);
    color: #e8f0ff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.gl-chip img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #0f1a2b;
}

.member-detail-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Stats Section */
.stats-section {
    background: var(--dark-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-lg);
}

.tw-recent {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.tw-recent .placeholder-note { color: var(--text-muted); }

/* Territory War item states */
.tw-item {
    padding: 0.45rem 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    background: rgba(255,255,255,0.02);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tw-item.win { background: rgba(40, 167, 69, 0.08); color: #9ff3b1; border-left: 4px solid rgba(40,167,69,0.9); }
.tw-item.loss { background: rgba(220, 53, 69, 0.06); color: #ffb3b8; border-left: 4px solid rgba(220,53,69,0.9); }
.tw-item.draw { background: rgba(255, 193, 7, 0.06); color: #ffe69a; border-left: 4px solid rgba(255,193,7,0.9); }

/* Make TW Record card visuals larger and more prominent */
#tw-stats .stat-card .large-stat {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
}
#tw-record {
    font-size: 3.25rem;
    line-height: 1;
    font-weight: 900;
    color: var(--accent-blue);
}
#tw-winrate {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 700;
}
#tw-summary-text {
    margin-top: 0.6rem;
    font-size: 0.98rem;
    color: var(--text-light);
}

/* Increase TW list item size for readability */
.tw-recent .tw-item {
    font-size: 1rem;
    padding: 0.65rem 0.75rem;
}

/* TW card visuals aligned with site-wide stat-card */
#tw-stats .stat-card {
    /* keep layout adjustments but match core card styling */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 220px;
    border-radius: 15px;
    background: var(--card-bg);
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: var(--shadow-md);
}

#tw-stats .stat-card .large-stat {
    gap: 1rem;
}

#tw-record {
    font-size: 4.8rem;
    line-height: 1;
    font-weight: 900;
    color: var(--accent-blue);
    letter-spacing: -1px;
}

#tw-winrate {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 700;
}

#tw-summary-text {
    margin-top: 0.5rem;
    font-size: 1.02rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* TW recent list improvements */
.tw-recent {
    /* allow the list to expand so there's no scrollbar */
    max-height: none;
    overflow: visible;
    padding-right: 6px;
}
.tw-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tw-item .tw-date { color: var(--text-muted); font-weight:600; margin-right: .6rem; }
.tw-item .tw-score { font-weight:900; color: inherit; }

/* Make Recent Wars card taller so it can host all rows without scrolling */
#tw-stats .stats-grid .stat-card:nth-child(2) {
    min-height: 480px;
    align-items: flex-start;
}

/* Increase h3 size inside TW cards so 'Record' title matches Recent Wars title */
#tw-stats .stat-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.tw-item .tw-date { color: var(--text-muted); font-weight:600; margin-right: .6rem; }
.tw-item .tw-score { font-weight:900; color: inherit; }


.tw-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(100, 255, 218, 0.08);
    font-weight: 700;
}

.tw-row .tw-date {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.tw-order {
    color: var(--accent-blue);
    font-weight: 800;
    margin-right: 0.6rem;
}

.tw-win {
    box-shadow: inset 0 0 0 1px rgba(100, 255, 218, 0.2);
}

.tw-loss {
    box-shadow: inset 0 0 0 1px rgba(255, 99, 132, 0.25);
    background: linear-gradient(135deg, rgba(50, 8, 8, 0.4), rgba(30, 12, 12, 0.35));
}

.tw-draw {
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.25);
    background: linear-gradient(135deg, rgba(50, 50, 0, 0.35), rgba(35, 35, 10, 0.35));
}

.tb-status {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.35rem;
    text-align: left;
    color: var(--text-light);
}

.tb-label {
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 0.35rem;
}

.stat-card h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.large-stat {
    margin: 1.5rem 0;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-blue);
    font-family: 'Orbitron', sans-serif;
    display: block;
}

.stat-unit {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight {
    color: var(--accent-blue);
    font-weight: 700;
}

/* Recruitment Section */
.recruitment-section {
    background: var(--darker-bg);
}

.recruitment-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.requirements, .benefits {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.requirements h3, .benefits h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
}

.requirements-list, .benefits-list {
    list-style: none;
}

.requirements-list li, .benefits-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.requirements-list li:last-child, .benefits-list li:last-child {
    border-bottom: none;
}

.requirement-icon, .benefit-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

/* Contact Section */
.contact-section {
    background: var(--dark-bg);
}

.contact-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-button.discord {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: white;
}

.contact-button.swgoh {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.button-icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer p {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 26, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .recruitment-content {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Ensure the login text never wraps on larger viewports */
.nav-login .login-text {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .about-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
}
