/* Ethnocentric Font */
@font-face {
    font-family: 'Ethnocentric';
    src: url('../assets/fonts/Ethnocentric-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Root Colors */
:root {
    --dark-blue: #0a1f36;
    --bright-orange: #707070;
    --military-green: #2d5016;
    --light-green: #3a6b1f;
    --cream: #F5E6D3;
    --white: #FFFFFF;
    --text-light: #E8E8E8;
    --text-dark: #1a1a1a;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-light);
    background-color: #222;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #4a4a4a;
    padding: 0 2rem;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 35px;
    width: 35px;
    object-fit: contain;
}

.header-title {
    color: #F5E6D3;
    font-family: 'Ethnocentric', 'Segoe UI', Tahoma, sans-serif;
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-style: italic;
}

.header-title-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.header-title-link:hover .header-title {
    color: #D4A843;
}

.header-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-right: 0.2rem;
}

/* Login Button */
.login-btn {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #1a1a1a;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: inherit;
}

.login-btn:hover {
    background: #1a1a1a;
    color: #FFFFFF;
}

/* Login Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: #1f2226;
    border: 1px solid #3a3f45;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
}

.modal-header {
    background: #2a2d32;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3f45;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-logo {
    height: 28px;
    width: 28px;
    object-fit: contain;
}

.modal-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.modal-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 28px 28px 24px;
}

.modal-subtitle {
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-form label {
    display: block;
    color: #ccc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.login-form input {
    width: 100%;
    background: #12151a;
    border: 1px solid #3a3f45;
    color: #fff;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.login-form input:focus {
    border-color: #FFFFFF;
}

.login-form input::placeholder {
    color: #1a1a1a;
}

.form-actions {
    margin-top: 24px;
}

.login-submit-btn {
    width: 100%;
    background: #FFFFFF;
    color: #1a1d22;
    border: none;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.login-submit-btn:hover {
    background: var(--military-green);
}

.login-note {
    color: #555;
    font-size: 0.72rem;
    text-align: center;
    margin-top: 14px;
    letter-spacing: 0.5px;
}

.login-error {
    color: #ff4d4d;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 12px;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 8px 12px;
}

.login-btn.logged-in {
    background: #a0aab4;
    color: #fff;
    border-color: #a0aab4;
    font-size: 0.75rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-link {
    color: #F5E6D3;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.header-link:hover {
    color: var(--text-dark);
}

/* Page Navigation */
.page-section {
    display: none !important;
}

.page-section.active {
    display: block !important;
}

#home {
    display: block !important;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(34, 34, 34, 0.6), rgba(34, 34, 34, 0.6)), url('../assets/Backend pics/20260506190637_1.jpg') center/cover no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: auto;
}

.hero-title {
    font-size: 4rem;
    color: #fff;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    font-style: italic;
}

.hero-subtitle {
    font-size: 2.2rem;
    color: #F5E6D3;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hero-tagline {
    font-size: 1.3rem;
    color: #fff;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    max-width: 600px;
}

/* Navigation */
.navbar {
    background: rgba(85, 85, 85, 0.98);
    padding: 1rem 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    color: #fff;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-text {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    background: transparent;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    display: block;
    transition: color 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Contact Section */
.contact {
    background: var(--military-green);
    color: var(--cream);
    padding: 3rem 1rem;
}

.pilot-page,
.about-page {
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    padding: 4rem 1rem;
    background-color: #1a1a1a;
}

/* Unit Awards */
.unit-awards {
    background-color: #141414;
    padding: 3rem 1rem;
    border-top: 1px solid #2a2a2a;
}
.unit-awards h2 {
    font-size: 2.3rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
    text-decoration: underline;
    font-style: italic;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
}
.awards-list {
    display: flex;
    flex-direction: column;
    max-width: 800px;
}
.award-row {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #222;
}
.award-row:first-child {
    border-top: 1px solid #222;
}
.award-row-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 240px;
}
.award-row-recipient {
    font-size: 0.9rem;
    color: #bbb;
    flex: 1;
}
.award-row-event {
    font-size: 0.82rem;
    color: #666;
    white-space: nowrap;
}
.awards-empty {
    color: #555;
    font-style: italic;
    font-size: 0.9rem;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}

.about-page h2 {
    font-size: 2.3rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
    text-decoration: underline;
    font-style :italic;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5));
}

.contact > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 2rem;
}

.contact-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    flex: 1;
    font-size: 1rem;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--cream);
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

.contact-form input, .contact-form textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #fff;
    border-radius: 6px;
    background: #1a1a1a;
    color: var(--gold);
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #999;
}

.contact-form button {
    background: grey;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form button:hover {
    background: var(--military-green);
    color: var(--primary-blue);
}

/* About Section */
.about {
    background: var(--military-green);
    color: var(--cream);
    padding: 3rem 1rem;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-text {
    flex: 1;
    font-size: 1.6rem;
    line-height: 1.9;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--cream);
}

.about-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo img {
    height: 280px;
    width: auto;
    max-width: 100%;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--gold);
    padding: 3rem 0 1.5rem 0;
    border-top: 4px solid #4a4a4a;
    font-size: 1.08rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto 1.5rem auto;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-section h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--military-green);
}

.gmb-footer-list {
    list-style: disc;
    margin-left: 1.2rem;
    color: var(--white);
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--military-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--military-green);
}

.footer-bottom {
    text-align: center;
    color: var(--cream);
    font-size: 1rem;
    margin-top: 1.2rem;
}

/* ── Partner Logos Bar ── */
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 1.2rem 1rem;
    background-color: #222;
    flex-wrap: wrap;
}

.partner-logos a {
    display: flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 0;
}

.partner-logos img {
    height: 70px;
    max-height: 70px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.2s;
}

.partner-logos img:hover {
    filter: brightness(1.15);
}

/* ── Roster Page ── */
.roster-page {
    height: calc(100vh - 70px);
    margin-top: 70px;
    overflow: hidden;
    background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('../assets/Homepage/20260423161555_1.jpg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
}

.roster-page > .container {
    flex: 1;
    overflow-y: auto;
    padding: 3rem 2rem 4rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.roster-page > .container::-webkit-scrollbar {
    display: none;
}

.roster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3a3a3a;
}

.roster-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.roster-header p {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.roster-section {
    margin-bottom: 3rem;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    overflow: hidden;
}

.roster-section-header {
    padding: 1rem 1.5rem;
    background: #2d2d2d;
}

.roster-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.roster-section-wing  { border-left: 4px solid #5a8fc4; }
.roster-section-134   { border-left: 4px solid #4a9e6b; }
.roster-section-315   { border-left: 4px solid #c4875a; }

.roster-flight-title {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a0a0a0;
    background: #222;
    border-top: 1px solid #2e2e2e;
}

.flight-letter {
    color: #ffffff;
    font-weight: 800;
}

.roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05rem;
}

.roster-table thead tr {
    background: #1e1e1e;
}

.roster-table thead th {
    padding: 0.9rem 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    border-bottom: 1px solid #2e2e2e;
}

.roster-table tbody tr {
    background: #252525;
    border-bottom: 1px solid #2e2e2e;
    transition: background 0.15s;
}

.roster-table tbody tr:hover {
    background: #2e2e2e;
}

.roster-row-leader {
    background: #212121 !important;
}

.roster-table td {
    padding: 1rem 1.5rem;
    color: #cccccc;
    vertical-align: middle;
}

.roster-position {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: #333;
    color: #cccccc;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 3px;
    border: 1px solid #444;
}

.roster-callsign {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
}

.roster-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
}

.badge-active {
    background: transparent;
    color: #4caf50;
    border: 1.5px solid #4caf50;
}

.badge-inactive {
    background: transparent;
    color: #888;
    border: 1.5px solid #555;
}

.vatsim-link {
    color: #7ab3d4;
    text-decoration: none;
}

.vatsim-link:hover {
    text-decoration: underline;
}

.roster-count {
    margin-top: 1.5rem;
    text-align: right;
    color: #666;
    font-size: 0.85rem;
}

.roster-count-num {
    color: #aaa;
    font-weight: 600;
}

/* ── News Page ── */
.news-page {
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    padding: 4rem 1rem;
    background-color: #1a1a1a;
}

.news-page h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
    text-decoration: underline;
}

/* News carousel */
.news-carousel {
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.news-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.news-carousel-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.news-carousel-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

.news-carousel-track {
    display: flex;
    transition: transform 0.9s ease;
}

/* Image tile cards */
.news-tile {
    position: relative;
    display: block;
    flex-shrink: 0;
    /* width set dynamically by JS to match carousel container */
    height: 440px;
    background-color: #1e2a35;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
    transition: box-shadow 0.25s ease;
}

.news-tile:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

.news-tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
}

.news-tile-date {
    font-size: 0.7rem;
    color: #aaaaaa;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.news-tile-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 0.85rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.news-tile-link {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.2s, letter-spacing 0.2s;
}

.news-tile:hover .news-tile-link {
    opacity: 1;
    letter-spacing: 2.5px;
}

.news-empty {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 4rem 0;
    grid-column: 1 / -1;
}

/* Archived Stories */
.news-archived-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.news-archived-section h3 {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1.5rem;
}

.news-archived-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.news-archived-grid .news-tile {
    flex: 0 0 280px;
    height: 180px;
}

/* Article Modal */
.article-modal-container {
    position: relative;
    background: #1a1a1a;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.85);
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
}

.article-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 20;
    background: rgba(0,0,0,0.55);
    border: none;
    color: #ccc;
    font-size: 1.8rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.article-modal-close:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Gallery */
.article-gallery {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #111;
}

.article-gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.gallery-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.article-gallery-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.gallery-dot.active {
    background: #ffffff;
    transform: scale(1.25);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.45);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-arrow:hover { background: rgba(0,0,0,0.75); }
.gallery-arrow-left  { left: 12px; }
.gallery-arrow-right { right: 12px; }

.article-modal-body {
    padding: 2rem 2.5rem 2.5rem;
}

.article-modal-date {
    font-size: 0.72rem;
    color: #888;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.article-modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0.6rem 0 1.2rem;
    line-height: 1.3;
}

.article-modal-content p {
    color: #cccccc;
    font-size: 0.97rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.article-modal-content .article-byline {
    font-size: 0.78rem;
    font-style: italic;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 1.4rem;
}

.article-modal-content .article-quote {
    border-left: 3px solid #7b6fff;
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    color: #aaa;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .article-gallery { height: 240px; }
    .article-modal-body { padding: 1.25rem 1.25rem 2rem; }
}

/* Responsive Design */
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    .contact-content, .about-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .hero-tagline {
        font-size: 1rem;
    }
    .nav-menu {
        display: none;
    }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        background: #555555;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    .hamburger {
        display: flex;
    }
    .contact-content, .about-content {
        flex-direction: column !important;
    }
}

/* ── Pilot Application Form ─────────────────────────────── */
.pilot-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

.pilot-form input,
.pilot-form textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #3a3f45;
    border-radius: 6px;
    background: #12151a;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.2s;
}

.pilot-form input:focus,
.pilot-form textarea:focus {
    outline: none;
    border-color: #fff;
}

.pilot-form input::placeholder,
.pilot-form textarea::placeholder {
    color: #888;
}

.pilot-form button {
    background: #4a4a4a;
    color: #F5E6D3;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pilot-form button:hover {
    background: #666;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — v158th FW Public Site
   Optimised for iPhone 17 Pro Max (430 px) and similar
   ═══════════════════════════════════════════════════════════ */

/* ── Public-header hamburger button (hidden on desktop) ── */
.header-hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    align-self: center;
}
.header-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #F5E6D3;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {

    /* ── Public header ── */
    .header {
        padding: 0 1rem;
        height: 60px;
    }
    .header-logo { height: 28px; width: 28px; }
    .header-title { font-size: 0.65rem; letter-spacing: 0; }
    .header-hamburger { display: flex; }

    .header-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #4a4a4a;
        padding: 0.5rem 0 1rem;
        z-index: 1999;
        box-shadow: 0 6px 20px rgba(0,0,0,0.7);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        gap: 0;
    }
    .header-nav.mobile-open { display: flex; }

    .header-link {
        display: block;
        width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .header-nav .login-btn {
        display: block;
        margin: 0.75rem 1.5rem 0;
        width: calc(100% - 3rem);
        text-align: center;
        max-width: none;
    }
    .header-nav .login-btn.logged-in {
        max-width: none;
    }

    /* ── Hero ── */
    .hero { margin-top: 60px; min-height: calc(100vh - 60px); }
    .hero-bg { background-attachment: scroll; }
    .hero-title { font-size: 1.8rem; letter-spacing: 1px; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-tagline { font-size: 0.88rem; }

    /* ── About page ── */
    .about-page { margin-top: 60px; padding: 2rem 1rem; }
    .about-page h2 { font-size: 1.5rem; }
    .about-content { flex-direction: column; gap: 1.5rem; }
    .about-text { font-size: 1rem; line-height: 1.7; }
    .about-logo img { width: 100% !important; max-width: 260px !important; height: auto !important; }

    /* ── Pilot page ── */
    .pilot-page { margin-top: 60px; padding: 2rem 1rem; }
    .contact h2 { font-size: 1.5rem; }
    .contact-content { flex-direction: column; gap: 1.5rem; }
    .contact-info { font-size: 1rem !important; }
    .pilot-form { max-width: 100%; }

    /* ── News page ── */
    .news-page { margin-top: 60px; padding: 2rem 1rem; }
    .news-page h2 { font-size: 1.5rem; }
    .news-tile { height: 240px; }
    .news-tile-title { font-size: 0.95rem; }
    .article-modal-title { font-size: 1.2rem; }
    .article-modal-body { padding: 1.25rem; }

    /* ── Roster page ── */
    html, .roster-page, .roster-page > .container { overflow-x: hidden; }
    .roster-page {
        height: auto;
        min-height: calc(100vh - 60px);
        margin-top: 60px;
        overflow-x: hidden;
        overflow-y: visible;
        background-image: none !important;
        background-color: #111;
        max-width: 100vw;
    }
    .roster-page > .container {
        overflow-x: hidden;
        overflow-y: visible;
        padding: 1.5rem 0.75rem 3rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    .roster-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        overflow: hidden;
    }
    .roster-header h1 { font-size: 1.5rem; letter-spacing: 1px; }
    .roster-section { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
    .roster-table { font-size: 0.8rem; min-width: 360px; width: 100%; }
    .roster-table thead th { padding: 0.5rem 0.5rem; font-size: 0.66rem; }
    .roster-table td { padding: 0.6rem 0.5rem; }

    /* ── Footer ── */
    .footer { padding: 2rem 0 1rem; font-size: 0.93rem; }
    .footer-content { padding: 0 1rem; gap: 1.5rem; }
    .footer-section { width: 100%; }
    .footer-bottom { font-size: 0.82rem; padding: 0 1rem; }

    /* ── Partner logos ── */
    .partner-logos { gap: 1.5rem; padding: 0.9rem 1rem; }
    .partner-logos img { height: 46px; max-height: 46px; max-width: 140px; }

    /* ── Login modal ── */
    .modal-overlay { align-items: flex-start; padding-top: 60px; }
    .modal-container { max-width: calc(100vw - 2rem); }
    .modal-body { padding: 20px 16px; }

    /* ── General container ── */
    .container { padding: 0 1rem; }
}
