:root {
    --olive-dark: #1a1f0e;
    --olive: #2d3319;
    --olive-light: #3d4a22;
    --khaki: #5c6b3a;
    --khaki-light: #7a8c4f;
    --gold: #c9a84c;
    --gold-bright: #e6c35c;
    --red: #8b1a1a;
    --red-bright: #b22222;
    --cream: #f5f0e1;
    --sand: #d4c5a0;
    --dark: #0d0f08;
    --text: #e8e0cc;
    --text-muted: #a09880;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
}

/* ===== CAMOUFLAGE PATTERN ===== */
.camo-bg {
    background-color: var(--olive-dark);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(60,80,30,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(40,50,20,0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(90,70,40,0.2) 0%, transparent 50%);
}

/* ===== TOP STRIP ===== */
.top-strip {
    background: var(--red);
    height: 4px;
}

/* ===== TOP INFO BAR ===== */
.top-bar {
    background: linear-gradient(180deg, #111408 0%, var(--olive-dark) 100%);
    border-bottom: 1px solid rgba(201,168,76,0.2);
    padding: 8px 0;
    font-size: 11px;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: var(--gold); text-decoration: none; }

/* ===== HEADER ===== */
header {
    background: linear-gradient(180deg, rgba(26,31,14,0.92) 0%, rgba(21,26,12,0.95) 100%);
    border-bottom: 2px solid var(--gold);
    position: relative;
}
header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.header-inner {
    display: flex;
    align-items: center;
    padding: 25px 0;
    position: relative;
    z-index: 1;
}

/* ===== EMBLEM ===== */
.emblem-wrap {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    position: relative;
}
.emblem-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.6));
    border-radius: 4px;
}

.header-text {
    margin-left: 30px;
}
.header-text .pre-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 5px;
}
.header-text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.15;
    color: var(--cream);
}
.header-text h1 .accent { color: var(--gold-bright); }
.header-text .subtitle {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 1px;
}
.header-text .motto {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    color: var(--red-bright);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

/* ===== NAVIGATION ===== */
nav {
    background: linear-gradient(180deg, #1e2412 0%, var(--olive) 100%);
    border-top: 1px solid rgba(201,168,76,0.3);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}
nav ul li a {
    display: block;
    padding: 15px 28px;
    color: var(--sand);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    border-left: 1px solid rgba(201,168,76,0.1);
    position: relative;
}
nav ul li:last-child a { border-right: 1px solid rgba(201,168,76,0.1); }
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--gold);
    transition: all 0.3s;
    transform: translateX(-50%);
}
nav ul li a:hover, nav ul li a.active {
    background: rgba(201,168,76,0.1);
    color: var(--gold-bright);
}
nav ul li a:hover::after, nav ul li a.active::after {
    width: 80%;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== MAIN LAYOUT ===== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    padding: 30px 0;
}
.main-content.full-width {
    grid-template-columns: 1fr;
}

/* ===== CARDS ===== */
.card {
    background: linear-gradient(180deg, #1a1f0e 0%, #151a0c 100%);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 2px;
    margin-bottom: 25px;
    overflow: hidden;
}
.card-header {
    background: linear-gradient(180deg, var(--olive-light) 0%, var(--olive) 100%);
    padding: 14px 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-header .icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}
.card-header.red { border-bottom-color: var(--red-bright); }
.card-header.red { color: var(--red-bright); }
.card-body { padding: 20px; }

/* ===== SECTION DIVIDER ===== */
.section-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0 20px;
}
.section-divider::before, .section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.section-divider .star { color: var(--gold); font-size: 10px; }

/* ===== ABOUT TEXT ===== */
.about-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}
.about-text p { margin-bottom: 15px; }
.about-text strong { color: var(--gold-bright); font-weight: 500; }
.about-text ul, .about-text ol { margin: 10px 0 15px 20px; line-height: 2; }
.about-text li { margin-bottom: 4px; color: var(--text-muted); }
.about-text p + ul, .about-text p + ol { margin-top: 5px; }

/* ===== QUOTE ===== */
.mil-quote {
    background: rgba(139,26,26,0.1);
    border-left: 3px solid var(--red-bright);
    padding: 18px 22px;
    margin: 20px 0;
    font-style: italic;
    font-size: 14px;
    color: var(--sand);
    line-height: 1.7;
}
.mil-quote a { color: var(--gold); text-decoration: none; font-weight: 500; }
.mil-quote a:hover { color: var(--gold-bright); text-decoration: underline; }
.mil-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 35px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), var(--khaki), var(--gold));
}
.tl-item {
    position: relative;
    margin-bottom: 28px;
}
.tl-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--gold);
    transform: rotate(45deg);
    border: 2px solid var(--olive-dark);
}
.tl-date {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
}
.tl-title {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--cream);
    margin: 4px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tl-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== INFO TABLE ===== */
.mil-table {
    width: 100%;
    border-collapse: collapse;
}
.mil-table tr { border-bottom: 1px solid rgba(201,168,76,0.1); }
.mil-table tr:last-child { border-bottom: none; }
.mil-table td {
    padding: 10px 12px;
    font-size: 13px;
    vertical-align: top;
}
.mil-table td:first-child {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    width: 45%;
    white-space: nowrap;
}
.mil-table td:last-child { color: var(--text); }

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}
.badge-guards {
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: var(--dark);
}
.badge-active {
    background: var(--olive-light);
    color: var(--gold);
    border: 1px solid var(--gold);
}

/* ===== EQUIPMENT BARS ===== */
.equip-item {
    margin-bottom: 14px;
}
.equip-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
}
.equip-label span:first-child {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.equip-label span:last-child { color: var(--text-muted); font-size: 11px; }
.equip-bar {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 1px;
    overflow: hidden;
}
.equip-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--olive-light), var(--gold));
    transition: width 1.2s ease-out;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.gallery-item {
    aspect-ratio: 4/3;
    border: 1px solid rgba(201,168,76,0.15);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover { border-color: var(--gold); box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
.gallery-item .caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 25px 10px 8px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sand);
}

/* ===== NEWS CARDS ===== */
.news-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    transition: background 0.2s;
}
.news-card:last-child { border-bottom: none; }
.news-card:hover { background: rgba(201,168,76,0.03); }
.news-card .news-img {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 4px;
}
.news-card .news-body h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: var(--cream);
    margin-bottom: 4px;
    line-height: 1.3;
}
.news-card .news-body h4 a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.2s;
}
.news-card .news-body h4 a:hover { color: var(--gold); }
.news-card .news-body .news-meta {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.news-card .news-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.btn-gold {
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: var(--dark);
    border: 1px solid var(--gold-bright);
}
.btn-gold:hover {
    background: linear-gradient(180deg, #f0d070, var(--gold-bright));
    box-shadow: 0 0 20px rgba(201,168,76,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.btn-outline:hover {
    background: rgba(201,168,76,0.1);
}

/* ===== SIDEBAR ===== */
.sidebar-link {
    display: block;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid rgba(201,168,76,0.08);
    transition: all 0.2s;
    font-family: 'Roboto Condensed', sans-serif;
}
.sidebar-link:hover {
    background: rgba(201,168,76,0.05);
    color: var(--gold);
    padding-left: 18px;
}
.sidebar-link:last-child { border-bottom: none; }

/* ===== DIVISION BOX ===== */
.div-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.div-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;

}
.div-text h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.div-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ===== TAGS ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    padding: 4px 10px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(201,168,76,0.2);
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
}
.tag:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,168,76,0.05);
}

/* ===== COMMAND SECTION ===== */
.command-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 4px;
    margin-bottom: 15px;
}
.command-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--olive-light), var(--olive));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: var(--gold);
    flex-shrink: 0;
    border: 2px solid var(--gold);
}
.command-avatar.command-photo {
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}
.command-avatar.command-photo:hover {
    border-color: var(--gold-bright);
    box-shadow: 0 0 15px rgba(201,168,76,0.3);
}
.command-avatar.command-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.command-info h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.command-info .callsign {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 8px;
}
.command-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== HEROES SECTION ===== */
.hero-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: 4px;
    margin-bottom: 12px;
    transition: all 0.2s;
}
.hero-card:hover {
    border-color: rgba(201,168,76,0.3);
    background: rgba(201,168,76,0.03);
}
.hero-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--red), var(--red-bright));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    color: var(--gold);
    flex-shrink: 0;
}
.hero-info h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: var(--cream);
    margin-bottom: 3px;
}
.hero-info .hero-callsign {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 5px;
}
.hero-info p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}
.hero-info .awards {
    margin-top: 5px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.award-badge {
    padding: 2px 8px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 3px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
}

/* ===== EXPANDED NEWS ===== */
.news-full {
    padding: 20px;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}
.news-full:last-child { border-bottom: none; }
.news-full .news-date {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 6px;
}
.news-full h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: var(--cream);
    margin-bottom: 8px;
    line-height: 1.3;
}
.news-full h4 a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.2s;
}
.news-full h4 a:hover { color: var(--gold); }
.news-full p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}
.news-full .news-source {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.news-full .news-source a {
    color: var(--khaki-light);
    text-decoration: none;
}
.news-full .news-source a:hover { color: var(--gold); }


/* ===== CONTRACT SECTIONS ===== */
.contract-section {
    padding: 20px;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}
.contract-section:last-child { border-bottom: none; }
.contract-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 12px;
}
.contract-section .about-text {
    margin-bottom: 0;
}
/* ===== GALLERY TABS ===== */
.gallery-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}
.gallery-tab {
    padding: 10px 18px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.gallery-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
.gallery-tab:hover { color: var(--gold); }
.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(180deg, #0d0f08 0%, #080a05 100%);
    border-top: 2px solid var(--gold);
    padding: 35px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 25px;
}
.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}
.footer-col p, .footer-col div, .footer-col ul, .footer-col li, .footer-col span, .footer-col a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.8;
}
.footer-col ul { padding-left: 16px; margin: 4px 0; }
.footer-col li { margin-bottom: 2px; }
.footer-col strong, .footer-col b { color: var(--cream); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(201,168,76,0.1);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--olive);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 16px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: all 0.3s;
}
.scroll-top:hover {
    background: var(--gold);
    color: var(--dark);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease-out forwards; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 24px 0 12px;
    flex-wrap: wrap;
}
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 2px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s;
    position: relative;
}
.pagination .page-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,168,76,0.06);
    box-shadow: 0 0 8px rgba(201,168,76,0.1);
}
.pagination .page-link.active {
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: var(--dark);
    border-color: var(--gold-bright);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(201,168,76,0.25);
}
.pagination .page-link.nav-arrow {
    font-size: 15px;
    letter-spacing: 0;
    color: var(--gold);
    background: transparent;
    border-color: transparent;
}
.pagination .page-link.nav-arrow:hover {
    background: rgba(201,168,76,0.08);
    border-color: rgba(201,168,76,0.2);
}
.pagination .page-ellipsis {
    color: #444;
    padding: 0 4px;
    font-size: 14px;
}

/* ===== PAGE TRANSITION OVERLAY ===== */
.page-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.page-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.page-overlay .progress-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.page-overlay .progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    border-radius: 2px;
    transition: width 0.55s ease-out;
}
.page-overlay.active .progress-fill {
    width: 100%;
}

/* ===== PAGE CONTENT FADE ===== */
.page-content {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.page-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAV ACTIVE INDICATOR ===== */
nav ul li a {
    position: relative;
}
nav ul li a::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
nav ul li a.active::before,
nav ul li a:hover::before {
    transform: scaleX(1);
}


/* ===== ANIMATED TAG CLOUD ===== */
.tag-cloud-animated {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    min-height: 80px;
}
.tag-float {
    display: inline-block;
    padding: 6px 14px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(201,168,76,0.2);
    color: #a09880;
    border-radius: 2px;
    cursor: default;
    transition: all 0.3s ease;
    animation: tagFloat 5s ease-in-out infinite;
}
.tag-float:hover {
    border-color: #c9a84c;
    color: #c9a84c;
    background: rgba(201,168,76,0.08);
    transform: scale(1.08);
    animation-play-state: paused;
}
@keyframes tagFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.85; }
    25% { transform: translateY(-4px) rotate(0.5deg); opacity: 1; }
    50% { transform: translateY(-2px) rotate(-0.3deg); opacity: 0.9; }
    75% { transform: translateY(-6px) rotate(0.2deg); opacity: 1; }
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 900px) {
    .main-content { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; text-align: center; }
    .header-text { margin-left: 0; margin-top: 20px; }
    .header-text h1 { font-size: 24px; }
    .stats-row { flex-direction: column; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.2); }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 4px; }
    nav ul li a { padding: 8px 12px; font-size: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .card { margin-bottom: 12px; }
    .card-body { padding: 16px; }
    .container { padding: 0 12px; }
    .mil-table td { padding: 8px; font-size: 12px; }
    .mil-table td:first-child { font-size: 10px; }
}

/* Mobile */
@media (max-width: 600px) {
    /* Header */
    .header-text h1 { font-size: 20px; letter-spacing: 1px; }
    .header-text .pre-title { font-size: 10px; letter-spacing: 2px; }
    .header-text .subtitle { font-size: 12px; }
    .header-text .motto { font-size: 13px; }
    .emblem-wrap img { width: 80px; height: 80px; }
    .header-inner { padding: 15px 0; }

    /* Navigation - horizontal scroll */
    nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding: 0 4px;
        gap: 2px;
    }
    nav ul::-webkit-scrollbar { display: none; }
    nav ul li { flex-shrink: 0; }
    nav ul li a {
        padding: 8px 10px;
        font-size: 11px;
        letter-spacing: 0;
        white-space: nowrap;
    }

    /* Top bar */
    .top-bar { font-size: 10px; padding: 6px 0; }
    .top-bar .container { flex-direction: column; gap: 2px; text-align: center; }

    /* Cards */
    .card-body { padding: 14px; }
    .card-header { padding: 12px 14px; font-size: 13px; }

    /* About text */
    .about-text { font-size: 13px; line-height: 1.7; }

    /* Timeline */
    .timeline-item { padding: 12px 14px; }
    .timeline-date { font-size: 10px; }
    .timeline-item h4 { font-size: 14px; }
    .timeline-item p { font-size: 13px; }

    /* Equipment bars */
    .equip-bar { height: 18px; }
    .equip-name { font-size: 11px; }
    .equip-fill { font-size: 10px; }

    /* Command cards */
    .cmd-card { flex-direction: column; text-align: center; }
    .cmd-photo { margin: 0 auto 12px; }
    .cmd-card h4 { font-size: 15px; }

    /* Heroes table */
    .data-table { font-size: 12px; }
    .data-table th { font-size: 10px; padding: 8px 6px; }
    .data-table td { padding: 8px 6px; }

    /* News */
    .news-full { padding: 14px; }
    .news-full h4 { font-size: 14px; }
    .news-full p { font-size: 13px; }

    /* Contract sections */
    .contract-section { padding: 14px; }
    .contract-label { font-size: 10px; }

    /* Memory page */
    .memory-hero { padding: 30px 14px 20px; }
    .memory-hero h2 { font-size: 20px; letter-spacing: 3px; }
    .memory-hero .sub { font-size: 11px; }
    .memorial-block { padding: 16px; }
    .memorial-block h3 { font-size: 15px; }
    .memorial-block p { font-size: 13px; }
    .poem-section { padding: 16px; }
    .poem-section h3 { font-size: 14px; }
    .poem-section .poem-text { font-size: 13px; line-height: 1.8; max-width: 100%; }

    /* Mil quote */
    .mil-quote { padding: 12px 14px; font-size: 13px; }

    /* Badges */
    .award-badge { font-size: 9px; padding: 2px 6px; }

    /* Sidebar */
    .sidebar { padding: 14px; }
    .sidebar .card { margin-bottom: 12px; }

    /* Pagination */
    .pagination { gap: 4px; }
    .page-link { padding: 6px 10px; font-size: 12px; }

    /* Footer */
    .footer-grid { gap: 16px; }
    .footer-col h4 { font-size: 12px; letter-spacing: 2px; }
    .footer-col p, .footer-col div, .footer-col a { font-size: 12px; line-height: 1.6; }
    .footer-bottom { font-size: 11px; }

    /* Scroll top button */
    .scroll-top { width: 36px; height: 36px; font-size: 16px; bottom: 15px; right: 15px; }

    /* Div box */
    .div-box { padding: 12px; }
    .div-icon { width: 60px; height: 60px; }
    .div-text h4 { font-size: 13px; }
}

/* Small mobile */
@media (max-width: 380px) {
    .header-text h1 { font-size: 17px; }
    .emblem-wrap img { width: 65px; height: 65px; }
    nav ul li a { padding: 6px 8px; font-size: 10px; }
    .card-body { padding: 10px; }
    .container { padding: 0 8px; }
}

/* ===== NEWS EDITOR CONTENT STYLES ===== */
.news-full blockquote {
    margin: 12px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--gold, #c9a84c);
    background: rgba(201,168,76,0.06);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: var(--text-muted, #aaa);
}
.news-full blockquote p {
    margin: 0;
}
.news-full b, .news-full strong {
    color: var(--cream, #eee);
    font-weight: 600;
}
.news-full i, .news-full em {
    font-style: italic;
}
.news-full u {
    text-decoration: underline;
}
.news-full s {
    text-decoration: line-through;
    opacity: 0.6;
}
.news-full a {
    color: var(--gold, #c9a84c);
    text-decoration: underline;
}
.news-full a:hover {
    color: var(--cream, #eee);
}
.news-full ul, .news-full ol {
    margin: 8px 0;
    padding-left: 24px;
    color: var(--text-muted, #aaa);
}
.news-full li {
    margin-bottom: 4px;
}
.news-full h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    color: var(--cream, #eee);
    margin: 16px 0 8px;
}
.news-full h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    color: var(--cream, #eee);
    margin: 12px 0 6px;
}
.news-full div {
    margin-bottom: 4px;
}
.news-full img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
}

.news-content {
    font-size: 14px;
    color: var(--text-muted, #aaa);
    line-height: 1.7;
    margin-bottom: 8px;
}
.news-content p {
    margin: 0 0 8px;
}
