@import url("../../vendor/sweetalert2/sweetalert2.min.css");

:root {
    --army-green: #415f2a;
    --army-deep: #1f3016;
    --army-dark: #13200f;
    --army-sand: #c9b57c;
    --army-surface: #f7f8f2;
    --army-card: #ffffff;
    --text-main: #1d2518;
    --text-soft: #5e6b53;
    --ring-soft: rgba(201, 181, 124, 0.35);
    --shadow-soft: 0 10px 30px rgba(19, 32, 15, 0.08);
    --shadow-lift: 0 18px 38px rgba(19, 32, 15, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", "Tahoma", "Trebuchet MS", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 80% -10%, rgba(201, 181, 124, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 0% 35%, rgba(65, 95, 42, 0.12) 0%, transparent 40%),
        var(--army-surface);
}

.navbar ul,
.navbar ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.army-navbar {
    background: linear-gradient(120deg, rgba(19, 32, 15, 0.96), rgba(51, 78, 34, 0.95));
    border-bottom: 0;
    backdrop-filter: blur(8px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: none;
}

.army-navbar .container-xl.navbar-shell {
    display: block;
}

.navbar-top-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0.28rem;
}

.navbar-social-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.navbar-social-inline a {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    text-decoration: none;
    color: rgba(232, 225, 196, 0.82);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.navbar-social-inline a:hover,
.navbar-social-inline a:focus {
    color: rgba(247, 241, 218, 0.98);
}

.social-mini {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.5rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(241, 235, 210, 0.95);
}

.navbar-main-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-right: 0;
    padding-right: 0.95rem;
}

.navbar-main-row .navbar-collapse {
    flex-grow: 1;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 10px;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.brand-title {
    color: #f8f3de;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.03em;
}

.brand-subtitle {
    color: rgba(241, 229, 187, 0.86);
    font-size: 0.62rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.navbar-brand {
    min-width: 255px;
}

.army-toggler {
    border-color: rgba(201, 181, 124, 0.55);
}

.army-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(201, 181, 124, 0.25);
}

.army-navbar .nav-link {
    color: rgba(242, 238, 218, 0.9);
    font-weight: 600;
    border-radius: 12px;
    padding: 0.45rem 0.8rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.army-navbar .nav-link:hover {
    color: #f4efd5;
    background: rgba(255, 255, 255, 0.08);
}

.army-navbar .nav-link.active {
    color: #1c260f;
    background: linear-gradient(135deg, #d5c28f, #e8ddbc);
    box-shadow: none;
}

.navbar-menu-row {
    row-gap: 0.18rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

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

.army-dropdown {
    min-width: 220px;
    border: 1px solid rgba(201, 181, 124, 0.35);
    border-radius: 14px;
    background: #22341a;
    padding: 0.45rem;
}

.army-dropdown .dropdown-item {
    color: #f1f3e8;
    border-radius: 9px;
    font-weight: 500;
    padding: 0.55rem 0.7rem;
}

.army-dropdown .dropdown-item:hover,
.army-dropdown .dropdown-item.active {
    color: #19220f;
    background: linear-gradient(135deg, var(--army-sand), #e2d2a2);
}

.hero-section {
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid rgba(201, 181, 124, 0.8);
    background:
        linear-gradient(120deg, rgba(19, 32, 15, 0.94), rgba(65, 95, 42, 0.9)),
        repeating-linear-gradient(130deg, rgba(201, 181, 124, 0.12), rgba(201, 181, 124, 0.12) 13px, transparent 13px, transparent 26px);
}

.hero-section::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(201, 181, 124, 0.34), transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(201, 181, 124, 0.22);
    border: 1px solid rgba(201, 181, 124, 0.45);
}

.hero-lead {
    max-width: 760px;
    color: rgba(241, 245, 226, 0.92);
    font-size: 1.05rem;
}

.page-content {
    margin-top: -0.7rem;
}

.themed-card {
    background: var(--army-card);
    border-radius: 18px;
    border: 1px solid rgba(65, 95, 42, 0.12);
    box-shadow: var(--shadow-soft);
}

.section-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #324423;
    background: rgba(65, 95, 42, 0.11);
    border: 1px solid rgba(65, 95, 42, 0.18);
}

.home-stats .info-card {
    background: var(--army-card);
    border: 1px solid rgba(65, 95, 42, 0.14);
    border-radius: 16px;
    padding: 1.15rem 1.2rem;
    box-shadow: var(--shadow-soft);
}

.info-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #607056;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.info-value {
    font-size: 2rem;
    font-weight: 800;
    color: #24331a;
    margin-bottom: 0.2rem;
}

.info-note {
    color: #617158;
    font-size: 0.9rem;
}

.info-area-list {
    color: #334429;
    font-size: 0.86rem;
    line-height: 1.45;
}

.point-list {
    display: grid;
    gap: 0.9rem;
    max-height: 485px;
    overflow: auto;
    padding-right: 0.35rem;
}

.point-item {
    border: 1px solid rgba(65, 95, 42, 0.12);
    background: rgba(65, 95, 42, 0.04);
    border-radius: 12px;
    padding: 0.75rem 0.8rem;
}

.point-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #22311a;
}

.point-meta {
    color: #51614a;
    font-size: 0.86rem;
}

#map {
    height: 460px;
    width: 100%;
    border: 1px solid rgba(65, 95, 42, 0.14);
}

#bridge-map {
    height: 420px;
    width: 100%;
    border: 1px solid rgba(65, 95, 42, 0.14);
}

#bridge-detail-map {
    height: 420px;
    width: 100%;
    border: 1px solid rgba(65, 95, 42, 0.14);
}

.video-item {
    background: linear-gradient(150deg, #1d2d14 0%, #344d23 100%);
    color: #f7f7f2;
    border: 1px solid rgba(201, 181, 124, 0.38);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.video-item video {
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.video-cta-wrap {
    border-top: 1px solid rgba(201, 181, 124, 0.34);
}

.video-cta-btn {
    min-width: 240px;
    min-height: 42px;
    border-radius: 999px;
    padding: 0.56rem 1.3rem;
    font-weight: 700;
    color: #1e2d14;
    border: 1px solid rgba(201, 181, 124, 0.9);
    background: linear-gradient(135deg, #c9b57c, #e4d4a6);
    box-shadow: 0 8px 18px rgba(19, 32, 15, 0.14);
    transition: all 0.2s ease;
}

.video-cta-btn:hover,
.video-cta-btn:focus {
    color: #16220f;
    border-color: #d7c08a;
    background: linear-gradient(135deg, #d8c58f, #ecdfbc);
    transform: translateY(-1px);
}

.video-cta-btn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(201, 181, 124, 0.35);
}

.video-pager-nav {
    display: inline-flex;
    justify-content: center;
    width: 100%;
}

.video-pager-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 999px;
    background: rgba(65, 95, 42, 0.08);
    border: 1px solid rgba(65, 95, 42, 0.18);
}

.video-pager-link {
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(65, 95, 42, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #2b3b21;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-pagination {
    border-top: 1px solid rgba(201, 181, 124, 0.28);
    padding-top: 1rem;
}

.video-pagination-meta {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #5d6d53;
}

.video-pager-item:not(.is-active):not(.is-disabled) .video-pager-link:hover {
    background: #f3ecd2;
    border-color: rgba(201, 181, 124, 0.6);
    color: #1d2b15;
}

.video-pager-item.is-active .video-pager-link {
    color: #1a260f;
    border-color: rgba(201, 181, 124, 0.72);
    background: linear-gradient(135deg, #c9b57c, #e5d6aa);
    box-shadow: 0 6px 14px rgba(19, 32, 15, 0.14);
}

.video-pager-item.is-disabled .video-pager-link {
    color: #8e9b85;
    border-color: rgba(65, 95, 42, 0.12);
    background: rgba(239, 242, 231, 0.85);
    pointer-events: none;
}

.mission-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.mission-list li {
    position: relative;
    padding: 0.8rem 0.9rem 0.8rem 2.1rem;
    background: rgba(65, 95, 42, 0.06);
    border: 1px solid rgba(65, 95, 42, 0.12);
    border-radius: 12px;
}

.mission-list li::before {
    content: "";
    position: absolute;
    left: 0.82rem;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--army-green);
    box-shadow: 0 0 0 4px rgba(65, 95, 42, 0.16);
}

.table-modern {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.table-modern thead th {
    background: linear-gradient(120deg, #22341a, #3a5527);
    color: #f8f3de;
    font-weight: 700;
    border: 0;
}

.table-modern td {
    border-color: rgba(65, 95, 42, 0.14);
}

.table-modern tbody tr:nth-child(odd) {
    background: rgba(65, 95, 42, 0.03);
}

.bridge-item {
    background: linear-gradient(160deg, #eef2e3 0%, #e3ebd1 100%);
    border: 1px solid rgba(65, 95, 42, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bridge-photo {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #dde5cf;
}

.bridge-photo-lg {
    max-height: 560px;
}

.bridge-minimal-list {
    display: grid;
    gap: 0.65rem;
    max-height: 640px;
    overflow: auto;
    padding-right: 0.2rem;
}

.bridge-minimal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(65, 95, 42, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.bridge-minimal-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f2b17;
}

.bridge-list-card {
    border-radius: 14px;
    border: 1px solid rgba(65, 95, 42, 0.14);
    background: rgba(255, 255, 255, 0.82);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bridge-list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.bridge-list-photo {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #dde5cf;
}

.bridge-list-content {
    padding: 0.8rem 0.9rem 0.95rem;
}

.bridge-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.profile-paragraph {
    line-height: 1.8;
    color: #2a3423;
    text-align: justify;
}

.dashboard-body {
    background:
        radial-gradient(circle at 100% -15%, rgba(201, 181, 124, 0.16) 0%, transparent 44%),
        radial-gradient(circle at -10% 40%, rgba(65, 95, 42, 0.1) 0%, transparent 36%),
        var(--army-surface);
}

.dashboard-login-body {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(19, 32, 15, 0.95), rgba(52, 77, 35, 0.92)),
        radial-gradient(circle at 20% 20%, rgba(201, 181, 124, 0.22), transparent 55%);
}

.dashboard-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.dashboard-login-card {
    width: min(520px, 100%);
    background: rgba(248, 249, 241, 0.97);
    border-radius: 20px;
    padding: 1.35rem;
    border: 1px solid rgba(201, 181, 124, 0.38);
    box-shadow: 0 18px 45px rgba(7, 14, 6, 0.35);
}

.dashboard-nav-card {
    top: 88px;
}

.dashboard-pills .nav-link {
    text-align: left;
    font-weight: 700;
    color: #2a3b20;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    border: 1px solid transparent;
}

.dashboard-pills .nav-link:not(.active):hover {
    background: rgba(65, 95, 42, 0.08);
    border-color: rgba(65, 95, 42, 0.12);
}

.dashboard-pills .nav-link.active {
    color: #18220f;
    background: linear-gradient(135deg, #c9b57c, #e2d2a2);
    border-color: rgba(201, 181, 124, 0.62);
}

.dashboard-form-block {
    background: rgba(65, 95, 42, 0.04);
    border: 1px solid rgba(65, 95, 42, 0.12);
    border-radius: 14px;
    padding: 0.9rem;
}

.dashboard-accordion .accordion-item {
    border: 1px solid rgba(65, 95, 42, 0.14);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.65rem;
    background: rgba(255, 255, 255, 0.9);
}

.dashboard-accordion .accordion-button {
    background: rgba(65, 95, 42, 0.06);
    color: #203118;
    font-weight: 700;
    box-shadow: none;
}

.dashboard-accordion .accordion-button:not(.collapsed) {
    background: rgba(65, 95, 42, 0.1);
    color: #1b2b13;
}

.dashboard-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(201, 181, 124, 0.25);
}

.custom-map-pin {
    background: transparent !important;
    border: 0 !important;
}

.custom-map-pin span {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: radial-gradient(circle at 35% 30%, #ff8f4c 0%, #e4502e 65%, #b9341f 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(125, 30, 20, 0.28), 0 8px 16px rgba(0, 0, 0, 0.28);
}

.custom-map-pin span::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(185, 58, 37, 0.2);
}

.custom-map-pin span::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 8px;
    top: 8px;
    transform: rotate(45deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232f4a21' d='M2 18h20v2H2zm1-2h2v-6H3zm16 0h2v-6h-2zM7 16h2V9H7zm8 0h2V9h-2zm-4 0h2V8h-2zM4 8h16v1H4zM6 7a6 6 0 0 1 12 0h-2a4 4 0 0 0-8 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.site-footer {
    margin-top: 2rem;
    padding: 1.4rem 0 1rem;
    border-top: 1px solid rgba(201, 181, 124, 0.34);
    background: linear-gradient(120deg, rgba(19, 32, 15, 0.96), rgba(45, 69, 30, 0.96));
    color: #ecf0de;
}

.footer-brand {
    min-height: 56px;
}

.footer-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.footer-title {
    font-size: 1.04rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #f6f3e0;
}

.footer-subtitle {
    font-size: 0.86rem;
    color: rgba(236, 240, 222, 0.84);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: flex-start;
}

.footer-nav a {
    color: rgba(246, 243, 224, 0.92);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-social-block {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.social-links-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-width: 108px;
    padding: 0.42rem 0.74rem;
    border: 1px solid rgba(201, 181, 124, 0.3);
    border-radius: 999px;
    text-decoration: none;
    color: rgba(244, 238, 214, 0.94);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1;
    transition: all 0.2s ease;
}

.footer-social-block .social-label {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(222, 212, 174, 0.92);
    font-weight: 700;
}

.social-links-footer a:hover,
.social-links-footer a:focus {
    color: #1f2d14;
    background: linear-gradient(135deg, #cfbc87, #e7d9b2);
    border-color: rgba(201, 181, 124, 0.78);
    transform: translateY(-1px);
}

.footer-social-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 800;
    background: rgba(245, 238, 214, 0.2);
    color: rgba(248, 243, 224, 0.96);
}

.footer-nav a:hover {
    color: var(--army-sand);
}

.footer-bottom {
    margin-top: 0.95rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(201, 181, 124, 0.22);
    color: rgba(236, 240, 222, 0.78);
}

.reveal-up {
    animation: revealUp 0.55s ease both;
}

.delay-1 {
    animation-delay: 0.1s;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .army-navbar .navbar-collapse {
        background: rgba(19, 32, 15, 0.96);
        margin-top: 0.6rem;
        border: 0;
        border-radius: 12px;
        padding: 0.62rem;
    }

    .army-navbar .nav-link {
        width: 100%;
        text-align: left;
    }

    .navbar-main-row {
        flex-wrap: wrap;
        gap: 0.5rem;
        border-right: 0;
        padding-right: 0;
    }

    .navbar-top-row {
        justify-content: flex-start;
        margin-bottom: 0.4rem;
    }

    .navbar-main-row .navbar-brand {
        margin-right: 0;
        min-width: 0;
    }

    .navbar-main-row .navbar-toggler {
        margin-left: auto;
    }

    .navbar-main-row .navbar-nav {
        width: 100%;
        gap: 0.12rem;
        border-radius: 10px;
    }

    .army-dropdown {
        border-radius: 10px;
        margin-top: 0.35rem;
    }

    .footer-nav {
        margin-top: 0.25rem;
    }

    .social-links-footer a {
        min-width: 100px;
        font-size: 0.8rem;
    }

    .dashboard-nav-card {
        top: 0;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .navbar-social-inline a {
        font-size: 0.68rem;
    }

    .hero-lead {
        font-size: 0.95rem;
    }

    .info-value {
        font-size: 1.6rem;
    }

    #map {
        height: 320px;
    }

    #bridge-map {
        height: 320px;
    }

    #bridge-detail-map {
        height: 320px;
    }

    .bridge-minimal-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .themed-card {
        border-radius: 14px;
    }

    .video-pager-list {
        gap: 0.32rem;
        padding: 0.28rem;
    }

    .video-pager-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.82rem;
        padding: 0 0.62rem;
    }

    .video-cta-btn {
        width: 100%;
        max-width: 320px;
    }
}

.btn-success {
    background: linear-gradient(135deg, #2f4a21, #3e612b);
    border-color: #2f4a21;
    color: #f6f8ee;
    font-weight: 700;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active {
    background: linear-gradient(135deg, #253c1a, #334f24);
    border-color: #253c1a;
    color: #ffffff;
}

.btn-success:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(65, 95, 42, 0.28);
}

.btn-outline-success {
    color: #2f4a21;
    border-color: rgba(47, 74, 33, 0.55);
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    background: rgba(47, 74, 33, 0.1);
    border-color: #2f4a21;
    color: #1f3216;
}
