:root {
    --primary-dark: color-mix(in srgb, var(--primary-color) 78%, black);
    --surface: #ffffff;
    --background: #f5f7fa;
    --soft-background: #eef1f5;
    --text: #20242a;
    --muted: #667085;
    --border: #e4e7ec;
    --radius-sm: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 8px 24px rgba(16, 24, 40, .08);
    --shadow-lg: 0 18px 45px rgba(16, 24, 40, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}
a { color: inherit; }
main { min-height: 55vh; }

.site-navbar {
    background: color-mix(in srgb, var(--secondary-color) 94%, transparent) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
    padding: .75rem 0;
    backdrop-filter: blur(10px);
}
.site-logo { width: 58px; height: 58px; object-fit: contain; }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
}
.brand-text { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.navbar .nav-link {
    position: relative;
    color: rgba(255,255,255,.82) !important;
    font-weight: 600;
    padding: .65rem .8rem !important;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: #fff !important; }
.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: .8rem;
    right: .8rem;
    bottom: .25rem;
    height: 3px;
    border-radius: 99px;
    background: var(--primary-color);
}
.btn-admin {
    border: 1px solid rgba(255,255,255,.34);
    color: #fff;
    border-radius: 999px;
    padding: .55rem 1rem;
    font-weight: 700;
}
.btn-admin:hover { background: #fff; color: var(--secondary-color); }
.flash-container { position: relative; z-index: 5; margin-top: 1rem; }

.hero-banner {
    min-height: 660px;
    display: flex;
    align-items: center;
    color: #fff;
    background-image: linear-gradient(90deg, rgba(10,10,10,.82), rgba(10,10,10,.38)), url("../images/wing-night.jpg");
    background-position: center;
    background-size: cover;
}
.hero-content { max-width: 760px; padding: 6rem 0; }
.hero-content h1 {
    max-width: 850px;
    margin: .55rem 0 1rem;
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -.055em;
    text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.hero-content p { max-width: 660px; margin: 0; font-size: clamp(1.1rem, 2vw, 1.45rem); color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; font-weight: 800; }
.text-primary-custom { color: var(--primary-color); }

.btn-fire {
    border: 0;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    padding: .85rem 1.5rem;
    font-weight: 800;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary-color) 34%, transparent);
}
.btn-fire:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.hero-actions .btn-outline-light { border-radius: 999px; padding: .85rem 1.5rem; font-weight: 800; }

.section-space { padding: 5.5rem 0; }
.bg-soft { background: var(--soft-background); }
.section-heading { max-width: 760px; }
.section-heading h2,
.section-header-row h2 { margin: .35rem 0 .7rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 850; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); font-size: 1.1rem; }
.section-header-row { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-link { color: var(--primary-color); text-decoration: none; font-weight: 800; white-space: nowrap; }
.section-link:hover { color: var(--primary-dark); }

.service-card,
.contact-card,
.content-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.service-card { height: 100%; padding: 2rem; text-align: center; }
.service-card h3 { font-size: 1.3rem; font-weight: 800; margin: 1rem 0 .5rem; }
.service-card p { margin: 0; color: var(--muted); }
.service-icon {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--primary-color) 12%, white);
    color: var(--primary-color);
    font-size: 1.65rem;
}
.content-card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.content-card .card-body { padding: 2rem; }
.content-card h3,
.content-card h2 { font-weight: 850; letter-spacing: -.025em; }
.content-card p { color: var(--muted); }
.card-meta { color: var(--primary-color); font-size: .86rem; font-weight: 800; margin-bottom: .75rem; }
.preserve-lines { white-space: pre-line; }
.empty-state { padding: 2.5rem; border: 1px dashed #c8ced8; border-radius: var(--radius-lg); background: rgba(255,255,255,.55); color: var(--muted); text-align: center; }

.date-badge {
    flex: 0 0 66px;
    height: 76px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--secondary-color);
    color: white;
    text-align: center;
}
.date-badge span { display: block; padding: .28rem; background: var(--primary-color); text-transform: uppercase; font-size: .75rem; font-weight: 900; }
.date-badge strong { display: block; font-size: 1.75rem; line-height: 2.1rem; }
.event-detail { margin-top: .35rem; color: #4d5767; font-weight: 650; }
.event-detail i { width: 1.25rem; color: var(--primary-color); }

.cta-section { padding: 0 0 5.5rem; background: var(--soft-background); }
.cta-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.cta-panel h2 { margin: .35rem 0 .45rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.cta-panel p { margin: 0; color: rgba(255,255,255,.88); }
.cta-panel .btn { border-radius: 999px; font-weight: 800; white-space: nowrap; }

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card i { font-size: 1.8rem; color: var(--primary-color); margin-bottom: .75rem; }
.contact-card span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.contact-card strong { margin-top: .35rem; font-size: 1.05rem; overflow-wrap: anywhere; }

.page-hero {
    padding: 5rem 0;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary-color), color-mix(in srgb, var(--secondary-color) 78%, black));
}
.page-hero h1 { margin: .35rem 0 .5rem; font-size: clamp(2.7rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -.045em; }
.page-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.15rem; }
.emergency-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-left: 5px solid #c62828;
    border-radius: var(--radius-sm);
    background: #fff1f1;
    color: #7b1b1b;
}
.emergency-notice i { font-size: 1.6rem; }
.emergency-notice strong,
.emergency-notice span { display: block; }

.site-footer { margin-top: 0; padding: 4.5rem 0 0; background: var(--secondary-color); color: rgba(255,255,255,.82); }
.footer-brand { color: #fff; font-size: 1.45rem; font-weight: 850; }
.footer-copy { max-width: 520px; }
.footer-heading { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 850; }
.footer-links li { margin: .45rem 0; }
.footer-links a,
.footer-contact a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-links a:hover,
.footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: .7rem; margin: .55rem 0; }
.footer-contact i { color: var(--primary-color); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }

.form-control:focus,
.form-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--primary-color) 22%, transparent); }
.card-header { background: var(--primary-color); color: #fff; }
.settings-card { max-width: 950px; margin: auto; border: none; border-radius: var(--radius-lg); overflow: hidden; }
.settings-card .card-header { padding: 1.5rem 2rem; }
.settings-card .card-body { padding: 2rem; }
.section-title { color: var(--primary-color); font-weight: 800; border-left: 5px solid var(--primary-color); padding-left: .8rem; }
.form-control-color { width: 70px; height: 50px; cursor: pointer; }
.gallery-image { width: 100%; height: 250px; object-fit: cover; border-radius: var(--radius-sm); }

@media (max-width: 991.98px) {
    .navbar-collapse { padding: 1rem 0 .5rem; }
    .navbar .nav-link.active::after { display: none; }
    .hero-banner { min-height: 560px; }
    .cta-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767.98px) {
    .brand-text { max-width: 220px; font-size: 1rem; }
    .site-logo { width: 46px; height: 46px; }
    .hero-banner { min-height: 500px; background-position: 62% center; }
    .hero-content { padding: 4.5rem 0; }
    .section-space { padding: 4rem 0; }
    .section-header-row { align-items: flex-start; flex-direction: column; gap: .5rem; }
    .cta-panel { padding: 2rem; }
    .footer-bottom { flex-direction: column; }
}

/* Photo gallery */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-bottom: 2rem;
}
.gallery-filter {
    padding: .55rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 750;
    text-decoration: none;
}
.gallery-filter:hover,
.gallery-filter.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.gallery-tile {
    position: relative;
    min-height: 330px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-lg);
    background: #111;
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.gallery-tile img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}
.gallery-tile:hover img,
.gallery-tile:focus-visible img {
    transform: scale(1.045);
    opacity: .78;
}
.gallery-overlay {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: .25rem;
    padding: 4.5rem 1.35rem 1.25rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.86));
}
.gallery-overlay strong { font-size: 1.08rem; }
.gallery-overlay i { position: absolute; right: 1.25rem; bottom: 1.25rem; font-size: 1.2rem; }
.gallery-category { font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: #5c4800;
    font-size: .74rem;
    font-weight: 850;
}
.gallery-modal .modal-content { overflow: hidden; border: 0; border-radius: var(--radius-lg); background: #090909; }
.gallery-modal img { display: block; width: 100%; max-height: 82vh; object-fit: contain; }
.gallery-modal-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; padding: .7rem; background-color: rgba(0,0,0,.55); border-radius: 50%; }
.gallery-modal-caption { padding: 1rem 1.25rem; color: #fff; text-align: center; font-weight: 700; }
.admin-photo-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-photo-card > img { width: 100%; height: 240px; object-fit: cover; }
.admin-photo-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.gallery-edit-preview { display: block; width: 100%; max-height: 440px; object-fit: contain; border-radius: var(--radius-sm); background: var(--soft-background); }

@media (max-width: 991.98px) {
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-tile,
    .gallery-tile img { min-height: 280px; }
}

/* Apparatus */
.apparatus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.apparatus-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.apparatus-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.apparatus-image-wrap { position: relative; display: block; height: 260px; overflow: hidden; background: #181818; }
.apparatus-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.apparatus-card:hover .apparatus-image-wrap img { transform: scale(1.04); }
.apparatus-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 260px; background: linear-gradient(135deg, #272b31, #111); color: rgba(255,255,255,.5); font-size: 4rem; }
.apparatus-featured { position: absolute; top: 1rem; left: 1rem; padding: .4rem .75rem; border-radius: 999px; background: rgba(255,255,255,.94); color: #5c4800; font-size: .75rem; font-weight: 850; }
.apparatus-card-body { padding: 1.5rem; }
.apparatus-card-body h2 { margin: .35rem 0 .5rem; font-size: 1.55rem; font-weight: 850; }
.apparatus-card-body p { color: var(--muted); }
.apparatus-type { color: var(--primary-color); font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.unit-badge { padding: .35rem .6rem; border-radius: 999px; background: var(--secondary-color); color: #fff; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.apparatus-build { font-weight: 700; color: #444 !important; }
.back-link { display: inline-flex; gap: .45rem; align-items: center; margin-bottom: 1.5rem; color: rgba(255,255,255,.8); text-decoration: none; font-weight: 750; }
.back-link:hover { color: #fff; }
.apparatus-detail-image { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.apparatus-detail-placeholder { min-height: 480px; border-radius: var(--radius-lg); }
.apparatus-spec-card { padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.apparatus-spec-card h2 { margin-bottom: 1.25rem; font-weight: 850; }
.apparatus-specs { margin: 0; }
.apparatus-specs > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.apparatus-specs > div:last-child { border-bottom: 0; }
.apparatus-specs dt { color: var(--muted); font-weight: 700; }
.apparatus-specs dd { margin: 0; text-align: right; font-weight: 800; }
.apparatus-description { max-width: 900px; }
.apparatus-description h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 850; }
.apparatus-description p { color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.admin-apparatus-placeholder { min-height: 240px; }

@media (max-width: 991.98px) {
    .apparatus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .apparatus-grid { grid-template-columns: 1fr; }
    .apparatus-image-wrap { height: 230px; }
    .apparatus-specs > div { grid-template-columns: 1fr; gap: .2rem; }
    .apparatus-specs dd { text-align: left; }
}

/* =========================
   Admin Login
========================= */

.login-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 80px 20px;
    background:
        linear-gradient(
            rgba(18, 18, 18, 0.72),
            rgba(18, 18, 18, 0.82)
        ),
        url("../uploads/ltvfcimg1.jpg");

    background-size: cover;
    background-position: center;
}

.login-section .container {
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.login-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(179, 0, 0, 0.1);
    color: var(--primary-color);
    font-size: 2rem;
}

.login-heading {
    text-align: center;
    margin-bottom: 35px;
}

.login-heading h1 {
    margin-bottom: 10px;
    font-weight: 700;
}

.login-heading p {
    margin-bottom: 0;
    color: #6c757d;
}

.login-form .form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.login-form .input-group-text {
    background: #f5f6f7;
    border-right: 0;
    padding-left: 16px;
    padding-right: 16px;
}

.login-form .form-control {
    border-left: 0;
    min-height: 54px;
}

.login-form .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.login-form .input-group:focus-within {
    border-radius: 8px;
    box-shadow: 0 0 0 0.2rem rgba(179, 0, 0, 0.15);
}

.login-button {
    width: 100%;
    min-height: 54px;
    font-weight: 600;
    font-size: 1.05rem;
}

.login-notice {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    color: #6c757d;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .login-section {
        padding: 45px 15px;
        min-height: 65vh;
    }

    .login-card {
        padding: 30px 22px;
        border-radius: 16px;
    }
}

/* Wing Night banner */

.coming-soon-banner {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 20px;
    text-align: center;

    background: rgba(0, 0, 0, 0.65);
    color: white;

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

.coming-soon-banner h1 {
    margin-bottom: 20px;
    font-size: 3rem;
    font-weight: 700;
}

.coming-soon-banner p {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.6;
}