:root {
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --primary-light: #818CF8;
    --bg-body: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #0F172A;
    --text-body: #475569;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --danger: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    --radius: 12px;
    --radius-xl: 20px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Top Navbar ── */
.top-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.top-navbar .container {
    height: 70px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* ── LOGO STYLE ── */
.brand-logo {
    height: 44px;
    width: auto;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.btn-nav {
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nav-login {
    background: var(--primary);
    color: #fff;
}

.btn-nav-login:hover {
    background: var(--primary-dark);
}

/* ── Hero Section ── */
.hero-section {
    padding: 2.5rem 0 1rem;
    text-align: center;
}

.hero-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* ── MINIMALIST HORIZONTAL STATS (RESPONSIVE FIX) ── */
.stats-grid {
    margin-bottom: 2rem;
}

.stats-grid .stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: border-color 0.2s;
    height: 100%;
}

.stats-grid .stat-card:hover {
    border-color: var(--primary);
}

.stats-grid .stat-icon-mini {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.bg-soft-danger {
    background: #FEF2F2;
    color: #DC2626;
}

.bg-soft-success {
    background: #ECFDF5;
    color: #059669;
}

.bg-soft-primary {
    background: #EEF2FF;
    color: #4F46E5;
}

.bg-soft-warning {
    background: #FFFBEB;
    color: #D97706;
}

.stats-grid .stat-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.stats-grid .stat-value {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.stats-grid .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── MOBILE STATS FIX (Vertical Layout) ── */
@media (max-width: 768px) {
    .stats-grid .stat-card {
        flex-direction: column;
        /* Stack Vertically on Mobile */
        align-items: center;
        text-align: center;
        justify-content: center;
        padding: 1rem 0.5rem;
    }

    .stats-grid .stat-icon-mini {
        margin-bottom: 0.5rem;
    }

    .stats-grid .stat-info {
        flex-direction: column;
        /* Stack Value and Label */
        align-items: center;
        gap: 0.15rem;
    }

    .stats-grid .stat-value {
        font-size: 1.5rem;
        /* Bigger number for impact on mobile */
    }

    .stats-grid .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
        /* Tighter line height for long text */
    }
}

/* ── SLIDER SECTION (LANDSCAPE SPLIT) ── */
.slider-section {
    padding-bottom: 3rem;
}

.slider-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.carousel-main .carousel-inner {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.officer-card-split {
    display: flex;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    min-height: 450px;
}

.card-image-col {
    flex: 0 0 58%;
    position: relative;
    background: #f1f5f9;
    overflow: hidden;
}

.card-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.officer-card-split:hover .card-image-col img {
    transform: scale(1.03);
}

.status-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--danger);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-content-col {
    flex: 1;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border-color);
}

.officer-meta-wrapper {
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.officer-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.officer-nip-box {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
    background: #F8FAFC;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-value i {
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

.action-area {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
}

.btn-action {
    flex: 1;
    padding: 0.55rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary-solid {
    background: var(--text-dark);
    color: white;
}

.btn-primary-solid:hover {
    background: #000;
}

.btn-outline-soft {
    background: #fff;
    border-color: var(--border-color);
    color: var(--text-body);
}

.btn-outline-soft:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

/* ── CONTROLS: OUTSIDE SLIDER AREA ── */
.carousel-main .carousel-control-prev,
.carousel-main .carousel-control-next {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    /* Hidden by default */
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Show on hover */
.slider-wrapper:hover .carousel-main .carousel-control-prev,
.slider-wrapper:hover .carousel-main .carousel-control-next {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Push OUTSIDE_THE card (Negative Margin) */
.carousel-main .carousel-control-prev {
    left: -35px;
}

.carousel-main .carousel-control-next {
    right: -35px;
}

/* Dark Arrows (better for outside background) */
.carousel-main .carousel-control-prev-icon,
.carousel-main .carousel-control-next-icon {
    background-image: none;
    font-size: 2rem;
    color: var(--text-dark);
    /* Dark color */
    text-shadow: none;
    /* No shadow needed */
    width: auto;
    height: auto;
    transform: none !important;
}

.carousel-main .carousel-control-prev-icon::before {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.carousel-main .carousel-control-next-icon::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* ── NEW SLIDE COUNTER STYLE (Replacing Indicators) ── */
.slide-counter {
    position: absolute;
    bottom: -2.5rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    z-index: 5;
}

.slide-counter .current-num {
    color: var(--text-dark);
}

.slide-counter .separator {
    color: #CBD5E1;
    font-weight: 300;
    margin: 0 0.25rem;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    bottom: 0;
    z-index: 1020;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    font-weight: 500;
}

/* Login Modal */
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.form-control {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.05);
}

.btn-full {
    width: 100%;
    background: var(--text-dark);
    color: white;
    border: none;
    padding: 0.65rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-full:hover {
    background: #000;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.anim {
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-d1 {
    animation-delay: 0.1s;
}

.anim-d2 {
    animation-delay: 0.2s;
}

.anim-d3 {
    animation-delay: 0.3s;
}

/* Responsive Slider */
@media (max-width: 991px) {
    .officer-card-split {
        flex-direction: column;
        min-height: auto;
    }

    .card-image-col {
        flex: none;
        height: 260px;
        width: 100%;
    }

    .card-content-col {
        padding: 1.5rem;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .officer-name {
        font-size: 1.4rem;
    }

    .carousel-main .carousel-control-prev {
        left: 0.5rem;
    }

    .carousel-main .carousel-control-next {
        right: 0.5rem;
    }

    /* On mobile, make them white again because they are over image */
    .carousel-main .carousel-control-prev-icon,
    .carousel-main .carousel-control-next-icon {
        color: white;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
}
