/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================================================== */
:root {
    /* Brand Color Palette from Logo */
    --brand-rust: #c68553;
    /* Terracotta / Rust Orange (from 'Citra' and 'C' curve) */
    --brand-rust-hover: #b07242;

    --brand-teal: #688e84;
    /* Soft Sage/Teal (from background shape) */
    --brand-teal-hover: #56786f;
    --brand-teal-light: #f0f5f3;
    /* Soft cool gesso teal background */

    --brand-slate: #5b7987;
    /* Slate Blue (from 'Griya' and draft lines) */

    /* Core UI Colors matching the Logo */
    --primary: var(--brand-rust);
    --primary-hover: var(--brand-rust-hover);
    --primary-light: var(--brand-teal-light);

    --bg-dark: #1e1c1a;
    /* Warm Deep Charcoal (from logo text 'ARSITEKTUR') */
    --bg-card-dark: #2a2826;
    --bg-light: #f5f3ee;
    /* Gesso/Paper Textured Cream matching the logo background exactly */
    --bg-card-light: #ffffff;
    --navbar-bg: rgba(245, 243, 238, 0.92);
    /* Semi-transparent cream matching logo background */

    --text-dark: #3a3631;
    /* Dark Warm Grey for readable premium typography */
    --text-muted: #726c65;
    /* Warm Muted Grey */
    --text-light: #fbfaf8;
    --text-muted-light: #c1bbb2;

    --border-light: #e5dfd5;
    /* Soft warm grey borders */
    --border-dark: #3e3a35;

    --success: #3c7d6c;
    /* Muted teal-green for success instead of bright green */
    --error: #c95d5d;
    /* Muted rust-red for error instead of bright red */
    --whatsapp: #25d366;
    --whatsapp-hover: #20ba5a;

    /* Layout & Styling Tokens */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(28, 26, 23, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);

    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

@media (min-width: 992px) {
    body {
        font-size: 17px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Common Section Spacing */
.section-padding {
    padding: 60px 8%;
}

.section-padding-top {
    padding-top: 60px;
}

/* Reduce gap between fixed header and first content block of any tab */
.tab-section > .section-padding:first-child {
    padding-top: 24px;
}

.alt-bg {
    background-color: var(--primary-light);
}

.center-btn {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   BUTTONS STYLING
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--text-dark);
    color: var(--bg-light);
    border: 1px solid var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-accent-whatsapp {
    background-color: var(--whatsapp);
    color: white;
    border: none;
}

.btn-accent-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 24px 8%;
    background-color: transparent;
}

.main-header.scrolled,
.main-header.solid-header {
    padding: 16px 8%;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.logo-accent {
    color: var(--primary);
    margin-right: 2px;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
    transition: var(--transition-smooth);
    margin-right: 12px;
}

.main-header.scrolled .logo-img,
.main-header.solid-header .logo-img {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    color: var(--text-muted);
}

/* Hover line effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-dark);
    font-weight: 600;
}

.nav-admin-btn {
    border: 1px solid var(--primary);
    padding: 6px 14px !important;
    border-radius: var(--radius-sm);
    color: var(--primary) !important;
    font-weight: 600;
}

.nav-admin-btn:hover {
    background-color: var(--primary);
    color: var(--text-dark) !important;
}

.nav-admin-btn.active {
    background-color: var(--primary);
    color: var(--text-dark) !important;
}

.nav-admin-btn::after {
    display: none !important;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition-fast);
}

/* Hamburger Active Animation */
.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Public Nav Mobile Overlay & Off-Canvas Drawer */
.public-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99980;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.public-nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: none;
}

/* Responsive Header */
@media (max-width: 900px) {
    .main-header {
        z-index: 99970 !important;
    }

    .mobile-toggle {
        display: flex;
        z-index: 99975 !important;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.06);
        border: 1px solid rgba(15, 23, 42, 0.15);
        border-radius: 10px;
        padding: 8px;
    }

    .main-header.scrolled .mobile-toggle,
    .main-header.solid-header .mobile-toggle {
        background: rgba(15, 23, 42, 0.08);
        border-color: rgba(15, 23, 42, 0.15);
    }

    .mobile-toggle .bar {
        background-color: #0f172a !important;
    }

    .mobile-nav-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 16px !important;
        margin-bottom: 12px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
    }

    .mobile-nav-title {
        font-family: var(--font-heading) !important;
        font-weight: 800 !important;
        font-size: 1.15rem !important;
        color: #ffffff !important;
        letter-spacing: 0.5px !important;
    }

    .mobile-nav-title span {
        color: #b87333 !important;
    }

    .mobile-nav-close-btn {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        font-size: 1.3rem !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
        line-height: 1 !important;
    }

    .mobile-nav-close-btn:hover {
        background: #ef4444 !important;
        border-color: #ef4444 !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        max-width: 85vw !important;
        height: 100vh !important; height: 100dvh !important;
        height: 100dvh !important;
        background: #0f172a !important;
        /* Solid sleek dark navy background */
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 20px 18px 40px 18px !important;
        gap: 10px !important;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6) !important;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 99990 !important;
        overflow-y: auto !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-menu .nav-link {
        display: flex !important;
        align-items: center !important;
        padding: 14px 18px !important;
        border-radius: 12px !important;
        font-size: 0.98rem !important;
        font-weight: 600 !important;
        color: #f1f5f9 !important;
        /* High contrast crisp white-slate text */
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        transition: all 0.2s ease !important;
        margin: 0 !important;
    }
    
    .nav-menu .nav-link.hidden {
        display: none !important;
    }

    .nav-menu .nav-link::after {
        display: none !important;
        /* Remove desktop underline */
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: linear-gradient(135deg, #b87333 0%, #965a26 100%) !important;
        color: #ffffff !important;
        border-color: #b87333 !important;
        box-shadow: 0 4px 14px rgba(184, 115, 51, 0.35) !important;
        transform: translateX(4px);
    }

    .nav-menu .nav-admin-btn {
        margin-top: 14px !important;
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
        border: 1px solid rgba(184, 115, 51, 0.4) !important;
        color: #f59e0b !important;
    }

    .main-header {
        background-color: var(--bg-light) !important;
        
        padding: 12px 5%;
    }
}

/* ==========================================================================
   TAB VIEW ROUTER TRANSITIONS
   ========================================================================== */
.content-wrapper {
    margin-top: 80px;
    /* Offset fixed header */
    min-height: calc(100vh - 350px);
}

.tab-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SECTION HEADER STANDARD
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.1rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ==========================================================================
   1. BERANDA (HOME) - HERO SECTION & FEATURES
   ========================================================================== */
.hero-container {
    position: relative;
    height: 80vh;
    min-height: 550px;
    background-image: url('assets/hero.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8%;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.85) 0%, rgba(18, 18, 18, 0.4) 60%, rgba(18, 18, 18, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(245, 242, 235, 0.85);
    margin-bottom: 40px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cta-group .btn-secondary {
    color: white;
    border-color: white;
}

.hero-cta-group .btn-secondary:hover {
    background-color: white;
    color: var(--text-dark);
}

/* Floating Stats Badge */
.hero-stats {
    position: absolute;
    bottom: -50px;
    right: 8%;
    z-index: 5;
    background-color: var(--bg-card-light);
    display: flex;
    align-items: center;
    padding: 30px 48px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    display: block;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-light);
    margin: 0 40px;
}

/* Features Grid */
.video-showcase-section { text-align: center; }
.video-iframe-wrapper { position: relative; max-width: 900px; margin: 0 auto; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 4px solid var(--border-light); background: #000; }
.video-iframe-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.feature-card {
    background-color: var(--bg-card-light);
    padding: 40px 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-light), #fbfaf8);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(198, 133, 83, 0.25);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Showcase Highlights Grid on Home */
.showcase-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* CTA Banner Block */
.cta-banner {
    background-image: linear-gradient(rgba(30, 28, 26, 0.85), rgba(30, 28, 26, 0.85)), url('assets/hero.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px 8%;
    text-align: center;
    border-top: 4px solid var(--primary);
    position: relative;
    z-index: 1;
}

.cta-banner-content {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-banner-content h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-banner-content p {
    color: var(--text-muted-light);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* Desktop Medium Screens Overlap Fix */
@media (max-width: 1200px) and (min-width: 769px) {
    .hero-stats {
        bottom: -80px;
        right: 4%;
        padding: 20px 32px;
    }
}

/* Responsive Home Hero */
@media (max-width: 768px) {
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        min-height: 100vh;
        padding: 120px 6% 80px 6%;
        text-align: center;
        justify-content: center;
        background-attachment: scroll;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(18, 18, 18, 0.8) 0%, rgba(18, 18, 18, 0.6) 100%);
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.25;
        margin-bottom: 16px;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 32px;
        color: rgba(245, 242, 235, 0.9);
    }

    .hero-cta-group {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }

    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        position: static;
        margin-top: 40px;
        flex-direction: row;
        justify-content: space-around;
        padding: 20px 16px;
        width: 100%;
        gap: 10px;
        background-color: rgba(245, 243, 238, 0.95);
        border: 1px solid rgba(198, 133, 83, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: var(--shadow-sm);
        border-radius: var(--radius-sm);
    }

    .stat-item {
        flex: 1;
        text-align: center;
    }

    .stat-number {
        font-size: 1.5rem;
        color: var(--primary);
    }

    .stat-label {
        font-size: 0.75rem;
        color: var(--text-dark);
        font-weight: 600;
        display: block;
        margin-top: 2px;
    }

    .stat-divider {
        width: 1px;
        height: 30px;
        background-color: rgba(198, 133, 83, 0.15);
        margin: 0;
    }
}

/* ==========================================================================
   2. PORTOFOLIO - FILTERS & GRID
   ========================================================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--border-light);
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
    color: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* Project Card Item */
.project-card {
    background-color: var(--bg-card-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.project-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.06);
}

.project-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(28, 26, 23, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.project-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-meta-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

.project-meta-info span:not(:last-child)::after {
    content: '|';
    margin-left: 12px;
    color: var(--border-light);
}

.project-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-footer {
    display: flex;
    justify-content: flex-start;
}

.project-link-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-link-btn:hover {
    color: var(--primary);
}

/* ==========================================================================
   BEFORE-AFTER SLIDER STYLING (RENOVATION HIGHLIGHT)
   ========================================================================== */
.before-after-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.section-header.small-header {
    margin-bottom: 30px;
}

.section-header.small-header h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.ba-slider-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 3px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    user-select: none;
    -webkit-user-select: none;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-before {
    z-index: 1;
}

.ba-resize-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.ba-after {
    width: 100%;
    /* Keeps dimensions matching container */
    max-width: none;
}

/* Slider Bar Handle */
.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: white;
    cursor: ew-resize;
    z-index: 3;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Handle circle selector */
.ba-handle::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: white;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-light);
    z-index: 4;
}

/* Arrow indicators on handle */
.ba-arrow-left,
.ba-arrow-right {
    position: absolute;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    z-index: 5;
}

.ba-arrow-left {
    border-right: 8px solid var(--text-dark);
    margin-left: -22px;
}

.ba-arrow-right {
    border-left: 8px solid var(--text-dark);
    margin-left: 22px;
}

@media (max-width: 600px) {
    .ba-slider-wrapper {
        height: 300px;
    }
}

/* ==========================================================================
   3. LAYANAN (SERVICES) - DETAILED GRID
   ========================================================================== */
.services-large-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-detail-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.service-img-placeholder {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-img-placeholder::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
}

.service-num {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    line-height: 1;
}

.service-detail-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-detail-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-dark);
}

.service-detail-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.service-list {
    list-style: none;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed var(--border-light);
}

.service-list li {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
}

@media (max-width: 1200px) {
    .services-large-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .services-large-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   4. ESTIMATOR BIAYA - LAYOUT & CALCULATOR CARD
   ========================================================================== */
.calc-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.calc-card-form {
    background-color: var(--bg-card-light);
    padding: 48px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.calc-card-form h3 {
    font-size: 1.6rem;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-light);
}

/* Form Groups styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    background-color: #fcfbfa;
    color: var(--text-dark);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.input-helper {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* Custom Styled Radio Button for Material */
.material-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.material-radio-btn input[type="radio"] {
    display: none;
    /* Hide native */
}

.radio-card {
    border: 1.5px solid var(--border-light);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.radio-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.material-radio-btn input[type="radio"]:checked+.radio-card {
    border-color: var(--text-dark);
    background-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(28, 26, 23, 0.05);
}

.quality-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.quality-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.quality-price {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Results Display Box Card */
.calc-card-results {
    background-color: var(--text-dark);
    color: white;
    padding: 48px;
    border-radius: var(--radius-sm);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: 120px;
}

.calc-card-results h3 {
    color: white;
}

/* Empty State Styling */
.results-empty {
    text-align: center;
    color: var(--text-muted-light);
}

.empty-icon {
    color: var(--primary);
    margin-bottom: 20px;
}

.results-empty h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.results-empty p {
    font-size: 0.95rem;
}

/* Active Results Styling */
.results-content h3 {
    font-size: 1.5rem;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 16px;
}

.result-range-box {
    background-color: var(--border-dark);
    padding: 24px;
    border-radius: var(--radius-sm);
    text-align: center;
    border-left: 4px solid var(--primary);
    margin-bottom: 32px;
}

.range-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted-light);
    display: block;
    margin-bottom: 6px;
}

.range-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    display: block;
}

.results-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-dark);
}

.bd-label {
    font-size: 0.9rem;
    color: var(--text-muted-light);
}

.bd-value {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.results-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted-light);
    margin-bottom: 32px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .calc-layout-grid {
        grid-template-columns: 1fr;
    }

    .calc-card-results {
        position: static;
        min-height: auto;
        padding: 32px 24px;
    }

    .calc-card-form {
        padding: 32px 24px;
    }
}

/* ==========================================================================
   COMPANY HISTORY & TIMELINE SECTION (BEAUTIFUL ALTERNATING TIMELINE)
   ========================================================================== */
.company-history-section {
    position: relative;
    overflow: hidden;
}

.history-timeline-wrapper {
    position: relative;
    max-width: 960px;
    margin: 48px auto 0;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
    transform: translateX(-50%);
    border-radius: 3px;
    z-index: 1;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.timeline-row {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.timeline-row.left {
    justify-content: flex-end;
    padding-right: calc(50% + 32px);
}

.timeline-row.right {
    justify-content: flex-start;
    padding-left: calc(50% + 32px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface);
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.1);
    z-index: 3;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.timeline-row:hover .timeline-dot {
    transform: translate(-50%, -50%) scale(1.3);
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(212, 160, 23, 0.2);
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-row.left .timeline-content {
    text-align: right;
}

.timeline-row.right .timeline-content {
    text-align: left;
}

.timeline-row:hover .timeline-content {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.milestone-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(10, 37, 64, 0.06);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
        transform: none;
    }

    .timeline-row.left,
    .timeline-row.right {
        padding-left: 52px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-row.left .timeline-content,
    .timeline-row.right .timeline-content {
        text-align: left;
    }

    .timeline-dot {
        left: 20px;
        top: 36px;
        transform: translate(-50%, -50%);
    }

    .timeline-row:hover .timeline-dot {
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* ==========================================================================
   5. ARTIKEL (BLOG) - SEARCH & FILTER PILLS
   ========================================================================== */
.blog-filters-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    max-width: 400px;
    width: 100%;
}

.search-box input {
    flex-grow: 1;
    padding: 10px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 0.95rem;
}

.search-box input:focus {
    border-color: var(--primary);
}

.search-btn {
    background-color: var(--text-dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.search-btn:hover {
    background-color: var(--primary);
    color: var(--text-dark);
}

.article-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.art-cat-pill {
    background-color: var(--bg-card-light);
    border: 1px solid var(--border-light);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-muted);
}

.art-cat-pill:hover,
.art-cat-pill.active {
    background-color: var(--primary-light);
    color: var(--text-dark);
    border-color: var(--primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* Article Card */
.article-card {
    background-color: var(--bg-card-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.article-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-card:hover .article-img-wrapper img {
    transform: scale(1.06);
}

.article-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-info-row {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.article-cat-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-read-btn:hover {
    color: var(--primary);
}

/* ==========================================================================
   6. ADMIN PANEL - DASHBOARD, TABLES & LOGIN
   ========================================================================== */
.admin-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Login Card styling */
.admin-login-card {
    background-color: var(--bg-card-light);
    max-width: 420px;
    width: 100%;
    margin: 40px auto;
    padding: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.admin-login-card h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    text-align: center;
}

.login-subtext {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.admin-login-info {
    background-color: var(--primary-light);
    border: 1px solid var(--border-light);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 24px;
    text-align: center;
}

.login-error-msg {
    color: var(--error);
    font-size: 0.85rem;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
}

/* Admin Dashboard Panel */
.admin-dashboard-container {
    background-color: var(--bg-card-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.admin-header-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-header-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.admin-header-panel p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.admin-tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1.5px solid var(--border-light);
    margin-bottom: 32px;
}

.admin-tab-btn {
    background-color: transparent;
    border: none;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
}

.admin-tab-btn:hover {
    color: var(--text-dark);
}

.admin-tab-btn.active {
    color: var(--text-dark);
}

.admin-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.admin-subtab-content {
    display: none;
}

.admin-subtab-content.active {
    display: block;
}

.admin-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-actions-bar h3 {
    font-size: 1.3rem;
}

/* Tables styling */
.admin-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 32px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.admin-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    background-color: var(--primary-light);
    color: var(--text-dark);
}

.admin-table tbody tr:hover {
    background-color: #faf9f6;
}

/* Actions buttons in Admin table */
.admin-action-btn-group {
    display: flex;
    gap: 8px;
}

.admin-btn {
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-btn-edit {
    background-color: var(--primary-light);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.admin-btn-edit:hover {
    background-color: var(--primary);
}

.admin-btn-delete {
    background-color: #ffebee;
    color: var(--error);
    border: 1px solid #ffcdd2;
}

.admin-btn-delete:hover {
    background-color: var(--error);
    color: white;
}

/* Badges */
.status-pill {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.status-pill.published {
    background-color: #e8f5e9;
    color: var(--success);
}

.status-pill.draft {
    background-color: #eceff1;
    color: #546e7a;
}

.status-pill.featured {
    background-color: #fff8e1;
    color: #ff8f00;
    border: 1px solid #ffe082;
}

/* Database Restore Section */
.database-restore-section {
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Form structure rows in Admin Edit form */
.form-row {
    display: flex;
    gap: 20px;
}

.col-12 {
    width: 100%;
    flex: 0 0 100%;
}

.col-6 {
    width: 50%;
    flex: 0 0 calc(50% - 10px);
}

.col-4 {
    width: 33.33%;
    flex: 0 0 calc(33.333% - 10px);
}

.check-group {
    margin: 16px 0 24px 0;
}

/* Custom Checkbox */
.check-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    user-select: none;
}

.check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 3px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fcfbfa;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.check-container:hover input~.checkmark {
    border-color: var(--primary);
}

.check-container input:checked~.checkmark {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.check-container input:checked~.checkmark::after {
    display: block;
}

.check-container .checkmark::after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.admin-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1.5px solid var(--primary-light);
    padding-top: 24px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .col-6,
    .col-4 {
        width: 100%;
    }
}

/* ==========================================================================
   MODAL OVERLAYS STANDARD STYLING
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(18, 18, 18, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    /* Controlled via JS */
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 32px;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 205;
}

.modal-close-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Lightbox Modal Content */
.lightbox-content-wrapper {
    max-width: 90%;
    max-height: 85%;
}

.lightbox-content-wrapper img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.1);
    max-height: 80vh;
    object-fit: contain;
}

/* Project Detail Modal Container */
.project-modal-container {
    background-color: var(--bg-light);
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: modalScaleUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

@keyframes modalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.project-modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.project-modal-gallery {
    padding: 32px;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.main-modal-img-container {
    height: 380px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.main-modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-img-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.modal-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.modal-thumb.active,
.modal-thumb:hover {
    border-color: var(--primary);
    opacity: 0.85;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-info-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.project-modal-info h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.project-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}

.spec-tile {
    display: flex;
    flex-direction: column;
}

.spec-tile-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.spec-tile-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.project-modal-desc {
    margin-bottom: 32px;
    flex-grow: 1;
}

.project-modal-desc h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.project-modal-desc p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .project-modal-grid {
        grid-template-columns: 1fr;
    }

    .project-modal-info {
        padding: 32px 24px;
    }

    .main-modal-img-container {
        height: 240px;
    }
}

/* Article Reading Modal Container */
.article-modal-container {
    background-color: var(--bg-card-light);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: modalScaleUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-modal-content {
    padding: 48px;
}

.article-modal-header {
    margin-bottom: 32px;
}

.article-modal-header h1 {
    font-size: 2.2rem;
    margin-top: 8px;
    margin-bottom: 12px;
}

.article-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-modal-cover {
    height: 380px;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 32px;
}

.article-modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-modal-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-modal-body p {
    margin-bottom: 24px;
    color: #2c2a27;
}

@media (max-width: 768px) {
    .article-modal-content {
        padding: 32px 20px;
    }

    .article-modal-header h1 {
        font-size: 1.7rem;
    }

    .article-modal-cover {
        height: 220px;
    }
}

/* Admin Form Container */
.admin-form-container {
    background-color: var(--bg-card-light);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    overflow-y: auto;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: modalScaleUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.admin-form-container h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 12px;
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
.main-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 80px 8% 40px 8%;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    color: white;
}

.main-footer .logo-img {
    mix-blend-mode: normal;
}

.footer-desc {
    color: var(--text-muted-light);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 440px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: var(--border-dark);
    color: var(--text-muted-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted-light);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    font-size: 0.9rem;
    color: var(--text-muted-light);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.contact-item svg {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 30px;
    display: flex;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted-light);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   TESTIMONIALS SECTION STYLING
   ========================================================================== */
.testimonials-section {
    background-color: var(--primary-light);
    /* Soft sage/teal light background */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.testimonial-card {
    background-color: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.testimonial-stars {
    color: var(--primary);
    /* Rust Orange stars */
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.author-project {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

/* ==========================================================================
   HISTORY GRID SECTION STYLING
   ========================================================================== */
.history-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.history-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.history-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.history-year {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 8px;
    line-height: 1;
}

.history-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.history-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: auto;
}

/* ==========================================================================
   CONTACT SECTION STYLING
   ========================================================================== */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.contact-info-card {
    background-color: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.detail-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-text strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.detail-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-social-info {
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
}

.contact-social-info h4 {
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.contact-map-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.map-container {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    height: 280px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-message-form {
    background-color: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.contact-message-form h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

/* ==========================================================================
   MOBILE RESPONSIVE & FOOTER QUICK LINKS HIDING
   ========================================================================== */
@media (max-width: 768px) {
    .footer-links {
        display: none !important;
    }

    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-info-card,
    .contact-message-form {
        padding: 32px 24px;
    }

    .whatsapp-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-floating-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON STYLING
   ========================================================================== */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    z-index: 9999;
    text-decoration: none;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
    background-color: #20ba5a;
    color: white;
}

.whatsapp-floating-btn svg {
    transition: var(--transition-smooth);
    display: block;
}

.whatsapp-floating-btn:hover svg {
    transform: rotate(15deg);
}

.required-star {
    color: #dc2626;
    margin-left: 2px;
    font-weight: 700;
}

/* ==========================================================================
   UNIFIED FORM CONTROLS STYLING (SERAGAM DI SEMUA TEMPAT)
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.01em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea,
.admin-form-fields input,
.admin-form-fields select,
.admin-form-fields textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus,
.admin-form-fields input:focus,
.admin-form-fields select:focus,
.admin-form-fields textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.admin-form-fields input::placeholder,
.admin-form-fields textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.65;
}

.form-group select,
.admin-form-fields select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* ==========================================================================
   ADMIN SITE SETTINGS STYLING
   ========================================================================== */
.settings-group-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.settings-group-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 1.5px solid rgba(198, 133, 83, 0.2);
    padding-bottom: 8px;
}

.settings-sub-card {
    background-color: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.settings-sub-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

/* ==========================================================================
   ADMIN SIDEBAR DASHBOARD & NESTED TABULATION LAYOUT
   ========================================================================== */
.admin-dashboard-layout {
    display: flex;
    min-height: 85vh;
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 20px;
}

/* Sidebar */
.admin-sidebar {
    width: 270px;
    background-color: #121212;
    color: white;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    overflow-y: auto;
    max-height: 100vh;
    box-sizing: border-box;
}

.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-brand {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    padding-left: 4px;
}

.sidebar-brand .logo-accent {
    color: var(--primary);
}

.sidebar-brand .admin-badge {
    font-size: 0.6rem;
    font-weight: 700;
    background-color: var(--primary);
    color: var(--text-dark);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

/* Tree Menu Accordion Styling */
.tree-menu-group {
    display: flex;
    flex-direction: column;
}

.tree-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.tree-group-header:hover {
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(255, 255, 255, 0.04);
}

.tree-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tree-header-title svg {
    color: var(--primary);
    opacity: 0.85;
}

.tree-chevron {
    transition: transform 0.25s ease;
}

.tree-menu-group.collapsed .tree-group-children {
    display: none;
}

.tree-menu-group.collapsed .tree-chevron {
    transform: rotate(-90deg);
}

.tree-group-children {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 4px;
    padding-left: 6px;
    border-left: 1px dashed rgba(255, 255, 255, 0.12);
    margin-left: 12px;
    margin-top: 2px;
}

.sidebar-nav-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.sidebar-nav-btn svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.sidebar-nav-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.06);
}

.sidebar-nav-btn.active {
    color: var(--text-dark);
    background-color: var(--primary);
    font-weight: 700;
}

.sidebar-nav-btn.active svg {
    color: var(--text-dark);
    opacity: 1;
}

/* Category Type Subtabs */
.category-type-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 24px;
    padding-bottom: 2px;
}

.category-type-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -4px;
}

.category-type-tab-btn:hover {
    color: var(--primary);
}

.category-type-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.category-section-panel.hidden {
    display: none !important;
}

.sidebar-nav-btn.active {
    color: var(--text-dark);
    background-color: var(--primary);
}

.sidebar-nav-btn.active svg {
    color: var(--text-dark);
    opacity: 1;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-user-info .user-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.admin-user-info .user-meta {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    line-height: 1.3;
}

.admin-user-info .user-meta strong {
    color: white;
}

.admin-user-info .user-meta span {
    color: rgba(255, 255, 255, 0.4);
}

.admin-sidebar .btn-logout {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: var(--radius-sm);
    width: 100%;
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-sidebar .btn-logout svg {
    width: 14px;
    height: 14px;
}

.admin-sidebar .btn-logout:hover {
    background-color: #dc3545;
    color: white;
}

/* Main Content Area */
.admin-main-content {
    flex-grow: 1;
    padding: 40px;
    background-color: var(--bg-card-light);
    overflow-y: auto;
    max-height: 85vh;
}

.admin-content-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
    text-align: left;
}

.admin-content-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.admin-content-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Settings Nested Tab Navigation */
.settings-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.settings-tab-btn {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

.settings-tab-btn:hover {
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.settings-tab-btn.active {
    color: white;
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}

.settings-group-panel {
    display: none;
    animation: adminFadeIn 0.3s ease-out;
}

.settings-group-panel.active {
    display: block;
}

.settings-submit-bar {
    margin-top: 32px;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    display: flex;
    justify-content: flex-end;
}

@keyframes adminFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Public Nav Backdrop */
.public-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.public-nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Close Button Default (Hidden on Desktop) */
.sidebar-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-close-btn:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

/* Responsive Sidebar Styling: Off-Canvas Mobile Drawer (<= 992px) */
@media (max-width: 992px) {
    .admin-dashboard-layout {
        position: relative;
        flex-direction: column;
        min-height: auto;
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 99980;
        background: rgba(18, 18, 18, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .mobile-sidebar-open .admin-sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important; height: 100dvh !important;
        z-index: 99990 !important;
        background-color: #141312 !important;
        padding: 24px 16px !important;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.4) !important;
        display: flex !important;
        flex-direction: column !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .mobile-sidebar-open .admin-sidebar {
        transform: translateX(0) !important;
    }

    .sidebar-brand {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-bottom: 24px !important;
    }

    .sidebar-close-btn {
        display: flex !important;
    }

    .sidebar-nav {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
    }

    .sidebar-nav-btn {
        width: 100% !important;
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
        justify-content: flex-start !important;
    }

    .sidebar-nav-btn svg {
        margin-right: 10px !important;
        font-size: 1rem !important;
    }

    .admin-content-wrapper {
        width: 100% !important;
    }

    .admin-main-content {
        padding: 16px 12px 100px !important;
        max-height: calc(100vh - 57px) !important; max-height: calc(100dvh - 57px) !important;
        overflow-y: auto !important;
    }

    .admin-top-navbar {
        padding: 10px 14px !important;
    }

    .navbar-user-card .user-greeting {
        display: none !important;
    }

    .navbar-link {
        font-size: 0.8rem !important;
        padding: 4px 8px !important;
    }

    /* Form Rows on Mobile */
    .form-row .col-6,
    .form-row .col-4,
    .form-row .col-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Internal Tab Navigation Bars (Settings & Categories) */
    .settings-tab-nav,
    .category-type-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
    }

    .settings-tab-nav::-webkit-scrollbar,
    .category-type-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .settings-tab-btn,
    .category-type-tab-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   ADMIN FULLSCREEN OVERRIDES & TOP NAVBAR
   ========================================================================== */

/* Hide public layout elements in admin mode */
body.admin-body-mode #mainHeader,
body.admin-body-mode .main-footer,
body.admin-body-mode .whatsapp-floating-btn {
    display: none !important;
}

/* Reset page structure in admin mode */
body.admin-body-mode {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    height: 100vh !important; height: 100dvh !important;
    width: 100vw !important;
}

body.admin-body-mode main.content-wrapper {
    margin-top: 0 !important;
    padding: 0 !important;
    height: 100vh !important; height: 100dvh !important;
    max-height: 100vh !important; max-height: 100dvh !important; height: 100dvh !important;
    overflow: hidden !important;
}

body.admin-body-mode section#section-admin,
body.admin-body-mode .tab-section {
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

body.admin-body-mode .section-padding {
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

body.admin-body-mode #adminWrapper,
body.admin-body-mode .admin-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Fullscreen Admin Layout */
body.admin-body-mode .admin-dashboard-layout {
    height: 100vh !important; height: 100dvh !important;
    min-height: 100vh !important; min-height: 100dvh !important; height: 100dvh !important;
    margin-top: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100vw !important;
    display: flex !important;
    overflow: hidden !important;
}

/* Content Wrapper */
.admin-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    height: 100%;
}

/* Admin Top Navbar */
.admin-top-navbar {
    height: 57px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.admin-top-navbar .navbar-left,
.admin-top-navbar .navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Toggle button style */
.navbar-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.navbar-toggle-btn:hover {
    background-color: var(--bg-light);
}

.admin-top-navbar .navbar-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.admin-top-navbar .navbar-link:hover {
    color: var(--primary);
}

.admin-top-navbar .user-greeting {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-top-navbar .user-greeting strong {
    color: var(--text-dark);
}

.btn-logout-nav {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.btn-logout-nav:hover {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Main Content Area adjustments */
body.admin-body-mode .admin-main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px !important;
    background-color: #f4f6f9 !important;
    max-height: calc(100vh - 57px) !important; max-height: calc(100dvh - 57px) !important;
}

/* Sidebar transition and collapse rules */
.admin-sidebar {
    transition: width 0.3s ease, padding 0.3s ease !important;
}

/* Collapsed Sidebar State */
.sidebar-collapsed .admin-sidebar {
    width: 70px !important;
    padding: 30px 10px !important;
}

/* Brand text hiding */
.sidebar-collapsed .admin-sidebar .sidebar-brand {
    font-size: 0 !important;
    justify-content: center !important;
    margin-bottom: 30px !important;
}

.sidebar-collapsed .admin-sidebar .sidebar-brand .logo-accent {
    display: none !important;
}

.sidebar-collapsed .admin-sidebar .sidebar-brand .admin-badge {
    font-size: 0.5rem !important;
    padding: 1px 3px !important;
    display: inline-block !important;
}

/* Nav Button text hiding */
.sidebar-collapsed .admin-sidebar .sidebar-nav-btn {
    font-size: 0 !important;
    justify-content: center !important;
    padding: 12px 0 !important;
    gap: 0 !important;
}

.sidebar-collapsed .admin-sidebar .sidebar-nav-btn svg {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
}

/* User Info hiding */
.sidebar-collapsed .admin-sidebar .admin-user-info {
    display: none !important;
}

/* Logout Button text hiding */
.sidebar-collapsed .admin-sidebar .btn-logout {
    font-size: 0 !important;
    justify-content: center !important;
    padding: 10px 0 !important;
}

.sidebar-collapsed .admin-sidebar .btn-logout svg {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
}

/* WhatsApp CTA Button Styling */
.btn-accent-whatsapp {
    background-color: #25d366 !important;
    color: white !important;
    border: none !important;
    font-weight: 700;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
}

.btn-accent-whatsapp:hover {
    background-color: #20ba5a !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   APP LOADING OVERLAY (Firebase Firestore Initial Fetch)
   ========================================================================== */
#appLoadingOverlay {
    position: fixed;
    inset: 0;
    background: var(--bg-light);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#appLoadingOverlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.app-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(198, 133, 83, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinLoader 0.9s linear infinite;
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

.app-loading-inner p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   ADMIN PROFIL PAGE
   ========================================================================== */
.profile-page-wrapper {
    max-width: 900px;
    padding: 0 0 48px;
}

/* ── Account Card (banner atas) ── */
.profile-account-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #b07242 100%);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.profile-account-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.profile-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.profile-account-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}

.profile-account-info>p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 10px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
}

.profile-last-update {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0 0 !important;
}

/* ── Forms Grid ── */
.profile-forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 760px) {
    .profile-forms-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Form Card ── */
.profile-form-card {
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px;
    transition: box-shadow 0.2s;
}

.profile-form-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.profile-form-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}

.profile-form-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-form-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 3px;
}

.profile-form-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Password Input with Toggle Button ── */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 44px;
    width: 100%;
}

.toggle-pass-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.2s;
    border-radius: 4px;
}

.toggle-pass-btn:hover {
    color: var(--primary);
}

/* ── Password Strength Bar ── */
.password-strength-bar {
    height: 4px;
    background: var(--bg-light);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    min-height: 1.2em;
    transition: color 0.3s;
}

/* ── Password Match Label ── */
.match-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
    min-height: 1.2em;
}

/* ── Read-only input style ── */
.input-readonly {
    background: var(--bg-light) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    border-color: var(--border-light) !important;
}

/* ── Save Button ── */
.profile-save-btn {
    width: 100%;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
}

/* ── Feedback Message ── */
.profile-feedback-msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    transition: all 0.25s;
}

.profile-feedback-msg.success {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.profile-feedback-msg.error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* ==========================================================================
   ADMIN BACKUP & RESTORE PAGE
   ========================================================================== */
.backup-page-wrapper {
    max-width: 960px;
    padding-bottom: 48px;
}

.backup-intro-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.backup-intro-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.backup-intro-banner h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.backup-intro-banner p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Backup Cards Grid ── */
.backup-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.backup-card {
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px;
    transition: box-shadow 0.2s;
}

.backup-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.backup-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.backup-card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.export-icon {
    background: #eff6ff;
    color: #2563eb;
}

.import-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.danger-icon {
    background: #fef2f2;
    color: #dc2626;
}

.backup-card-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 3px;
    color: var(--text-dark);
}

.backup-card-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.backup-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.backup-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-select-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    font-size: 0.88rem;
    color: var(--text-dark);
    cursor: pointer;
}

.file-select-input:hover {
    border-color: var(--primary);
}

/* ── Danger Zone Card ── */
.danger-card {
    border-color: #fecaca !important;
    background: #fff8f8 !important;
}

.text-danger {
    color: #dc2626 !important;
}

.danger-alert-box {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 18px;
    color: #991b1b;
    font-size: 0.85rem;
}

.danger-alert-box strong {
    display: block;
    margin-bottom: 4px;
}

.danger-alert-box p {
    margin: 0;
    color: #991b1b;
}

/* ── Danger Button ── */
.btn-danger {
    background: #dc2626;
    color: #fff;
    border: 1px solid #dc2626;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ── Admin Top Navbar Administrator Card ── */
.navbar-user-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 37, 64, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 4px 14px 4px 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    margin-right: 12px;
}

.navbar-user-card:hover {
    background: rgba(10, 37, 64, 0.1);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Password Input Wrapper & Eye Toggle Button ── */
.password-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 42px !important;
}

.btn-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}

.btn-toggle-password:hover {
    color: var(--primary);
    background: rgba(10, 37, 64, 0.05);
}

.forgot-pass-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    width: 100%;
}

.forgot-pass-link {
    font-size: 0.84rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
    background: transparent;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.forgot-pass-link:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

/* ── Forgot Password Modal Styling ── */
.forgot-info-card {
    text-align: center;
    padding: 10px 0;
}

.forgot-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.forgot-info-card h4 {
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: var(--text-dark);
}

.forgot-info-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.recovery-methods {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.method-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.method-item p {
    font-size: 0.82rem;
    margin: 0;
}

.modal-action-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Universal Confirmation Modal Styling ── */
.confirm-modal-box {
    max-width: 440px !important;
    padding: 28px !important;
    text-align: center;
    border-radius: var(--radius);
}

.confirm-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confirm-modal-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 16px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.confirm-modal-icon.warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.confirm-modal-icon.primary {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.confirm-modal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-dark);
}

.confirm-modal-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 24px;
    line-height: 1.5;
}

.confirm-modal-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.confirm-modal-buttons .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ── Universal Modal Pop-Up Overlay (Fixed Centered Screen) ── */
.admin-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important; height: 100dvh !important;
    background-color: rgba(10, 25, 47, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    animation: modalFadeIn 0.25s ease-out !important;
}

@media (max-width: 768px) {
    .admin-modal-overlay {
        align-items: flex-start !important;
        padding: 20px 10px !important;
        overflow-y: auto !important;
    }
}

.admin-modal-overlay.hidden {
    display: none !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.admin-modal-box {
    background: #ffffff !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
    width: 100% !important;
    max-width: 500px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    margin: auto !important;
}

@media (max-width: 768px) {
    .admin-modal-box {
        margin: 0 auto !important;
        max-height: none !important;
        height: auto !important;
    }
}

.admin-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.admin-modal-header h3 {
    margin: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
}

.modal-close-btn {
    background: transparent !important;
    border: none !important;
    font-size: 1.6rem !important;
    line-height: 1 !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    transition: color 0.2s ease !important;
}

.modal-close-btn:hover {
    color: var(--text-dark) !important;
}

.admin-modal-body {
    padding: 24px !important;
}

/* ==========================================================================
   PUBLIC SECTION: TEAM MEMBERS & LEGALITY CERTIFICATES
   ========================================================================== */

/* Team Cards Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.team-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(184, 115, 51, 0.15);
    border-color: var(--primary);
}

.team-avatar-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 18px;
    border: 3px solid var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-avatar-wrap img {
    transform: scale(1.08);
}

.team-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.team-role-badge {
    display: inline-block;
    background: rgba(184, 115, 51, 0.12);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.team-bio {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
}

.team-socials {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.team-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.team-social-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Legals Cards Grid */
.legals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.legal-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
}

.legal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.legal-thumb-wrap {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.legal-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.legal-card:hover .legal-thumb-wrap img {
    transform: scale(1.05);
}

.legal-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.legal-card:hover .legal-zoom-overlay {
    opacity: 1;
}

.legal-body {
    padding: 20px;
}

.legal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.legal-doc-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-family: monospace;
}

.legal-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Legal Preview Modal Lightbox */
.legal-preview-box {
    max-width: 640px !important;
    width: 90% !important;
}

.legal-doc-badge-wrap {
    text-align: center;
    margin-bottom: 14px;
}

.legal-preview-image-wrap {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-preview-image-wrap img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.legal-preview-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

/* ==========================================================================
   CONTACT SECTION LAYOUT & GOOGLE MAPS CARD
   ========================================================================== */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .contact-layout-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-card,
    .contact-map-card {
        padding: 16px;
    }
    .contact-info-card h3,
    .contact-map-card h3 {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .contact-card-intro {
        font-size: 0.75rem;
        margin-bottom: 16px;
    }
    .contact-info-item-link,
    .contact-info-item-static {
        gap: 12px;
        padding: 10px 0;
    }
    .contact-info-item-link p,
    .contact-info-item-static p {
        font-size: 0.9rem;
        word-break: break-word;
    }
    #setting-phone,
    #setting-email,
    #setting-hours {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: clamp(0.5rem, 4vw, 0.75rem);
    }
    .contact-info-item-link strong,
    .contact-info-item-static strong {
        font-size: 0.65rem;
    }
    .contact-info-item-link .info-icon,
    .contact-info-item-static .info-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 8px;
    }
}

.contact-info-card,
.contact-map-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.contact-info-card h3,
.contact-map-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.contact-card-intro {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.4;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-info-item-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: inherit;
    border-bottom: 1px solid var(--border-light);
}

.contact-info-item-link:last-child {
    border-bottom: none;
}

.contact-info-item-link:hover {
    transform: translateX(4px);
}

.contact-info-item-link .info-icon {
    font-size: 1.4rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item-link > div:nth-child(2) {
    flex: 1;
}

.contact-info-item-link strong {
    font-size: 0.85rem;
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

.contact-info-item-link p {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.link-arrow-icon {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: bold;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
}

.contact-info-item-link:hover .link-arrow-icon {
    color: var(--primary);
    transform: translate(3px, -3px);
}

.contact-info-item-static {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.contact-info-item-static:last-child {
    border-bottom: none;
}

.contact-info-item-static > div:nth-child(2) {
    flex: 1;
}

.contact-info-item-static .info-icon {
    font-size: 1.4rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item-static strong {
    font-size: 0.85rem;
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

.contact-info-item-static p {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.contact-social-icons-wrap {
    padding-top: 16px;
    border-top: 1px dashed var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
}

.contact-social-icons {
    display: flex;
    gap: 10px;
}

.contact-social-icons a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.contact-social-icons a:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.map-iframe-wrapper {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-height: 280px;
    display: flex;
}

.map-iframe-wrapper iframe {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
    flex: 1;
}

/* ==========================================================================
   IMAGE UPLOAD WIDGET & YOUTUBE VIDEO STYLES
   ========================================================================== */

/* Universal Image Upload Controls */
.image-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.image-upload-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.btn-upload-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-upload-file:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-upload-file:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.image-upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 6px;
}

.image-upload-dropzone:hover,
.image-upload-dropzone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1e40af;
}

.img-preview-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 6px;
}

.img-preview-thumb {
    width: 55px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #e2e8f0;
}

.img-preview-info {
    flex: 1;
    font-size: 0.78rem;
    color: #334155;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.img-preview-remove {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.img-preview-remove:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Responsive Article Youtube Player & Badges */
.article-modal-video {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    background: #0f172a;
    margin: 20px 0;
}

.article-modal-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-video-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 6px;
}

.article-video-badge svg {
    flex-shrink: 0;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-item.toast-success {
    border-left: 4px solid #10b981;
}

.toast-item.toast-success .toast-icon {
    color: #10b981;
}

.toast-item.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-item.toast-error .toast-icon {
    color: #ef4444;
}

.toast-item.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-item.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-item.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-item.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #ffffff;
}

/* ==========================================================================
   DEDICATED DETAIL VIEWS (PORTFOLIO & ARTICLES)
   ========================================================================== */
.dedicated-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 110px;
    padding-bottom: 80px;
}

.dedicated-detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.back-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.back-link-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateX(-4px);
}

.breadcrumb-nav {
    font-size: 0.88rem;
    color: #64748b;
}

.breadcrumb-nav a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: #0f172a;
}

.breadcrumb-nav span {
    color: #0f172a;
    font-weight: 600;
}

.dedicated-header {
    margin-bottom: 28px;
}

.dedicated-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 10px;
    margin-bottom: 12px;
    color: #0f172a;
}

.dedicated-gallery-wrap {
    margin-bottom: 32px;
}

.dedicated-main-img-container {
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.dedicated-main-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dedicated-article-cover-wrap {
    max-height: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.dedicated-article-cover-wrap img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.dedicated-content-box {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

.dedicated-content-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #0f172a;
}

.dedicated-content-box p {
    line-height: 1.8;
    color: #475569;
    font-size: 1.05rem;
}

.dedicated-article-body {
    background: #ffffff;
    padding: 36px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 36px;
    font-size: 1.08rem;
    line-height: 1.85;
    color: #1e293b;
}

.dedicated-article-body p {
    margin-bottom: 20px;
}

/* PREV / NEXT NAVIGATION BUTTONS */
.prev-next-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.nav-prev-btn,
.nav-next-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
}

.nav-next-btn {
    text-align: right;
    justify-content: flex-end;
}

.nav-prev-btn:hover:not(.disabled),
.nav-next-btn:hover:not(.disabled) {
    border-color: #0f172a;
    background: #f8fafc;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.nav-prev-btn.disabled,
.nav-next-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-text-wrap {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 2px;
}

.nav-title {
    font-size: 0.5rem;
    font-weight: 500;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   COMPACT RELATED CARDS (3 IN A ROW FOR DEDICATED DETAIL VIEWS)
   ========================================================================== */
.related-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .related-grid-compact {
        grid-template-columns: repeat(1, 1fr);
    }
}

.compact-related-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.compact-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.compact-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #0f172a;
}

.compact-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.compact-related-card:hover .compact-card-img-wrapper img {
    transform: scale(1.06);
}

.compact-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    backdrop-filter: blur(4px);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-card-video-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    align-items: center;
}

.compact-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.compact-related-card:hover .compact-card-title {
    color: #2563eb;
}


/* ==========================================================================
   DYNAMIC POPUP — Overlay, Card, Animations
   ========================================================================== */

.dynamic-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(20, 18, 15, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.dynamic-popup-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.dynamic-popup-box {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.30), 0 4px 16px rgba(198, 133, 83, 0.18);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.88) translateY(24px);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.dynamic-popup-overlay.is-visible .dynamic-popup-box {
    transform: scale(1) translateY(0);
}

/* Close Button */
.dynamic-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(60, 54, 49, 0.12);
    color: #5b5047;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dynamic-popup-close:hover {
    background: var(--primary);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Image Section */
.dynamic-popup-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.dynamic-popup-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.dynamic-popup-image-wrap img:hover {
    transform: scale(1.03);
}

/* Body Content */
.dynamic-popup-body {
    padding: 24px 28px 28px;
    overflow-y: auto;
    flex: 1;
}

.dynamic-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fef3e9, #fde8d4);
    color: var(--primary);
    border: 1px solid rgba(198, 133, 83, 0.25);
    border-radius: 100px;
    padding: 4px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.dynamic-popup-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0 0 10px;
}

.dynamic-popup-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 20px;
}

/* WhatsApp Action Button */
.dynamic-popup-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #25d366 0%, #128c4f 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
    letter-spacing: 0.01em;
}

.dynamic-popup-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
    filter: brightness(1.06);
}

.dynamic-popup-wa-btn svg {
    flex-shrink: 0;
}

/* Dismiss Link */
.dynamic-popup-dismiss {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.dynamic-popup-dismiss:hover {
    color: var(--text-dark);
}

/* Text-only mode: No image, extra top padding */
.dynamic-popup-box.text-only .dynamic-popup-body {
    padding-top: 42px;
}

/* Image mode: Hide text, title, and badge */
.dynamic-popup-box.image-mode .dynamic-popup-badge,
.dynamic-popup-box.image-mode .dynamic-popup-title,
.dynamic-popup-box.image-mode .dynamic-popup-desc {
    display: none;
}

/* Decorative accent bar */
.dynamic-popup-accent-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--brand-teal) 100%);
    border-radius: 20px 20px 0 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .dynamic-popup-box {
        border-radius: 16px;
        max-height: 95vh;
    }

    .dynamic-popup-image-wrap {
        border-radius: 16px 16px 0 0;
    }

    .dynamic-popup-body {
        padding: 20px 20px 24px;
    }

    .dynamic-popup-title {
        font-size: 1.15rem;
    }
}

/* Admin Popup Toggle Preview Badge */
.popup-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.popup-status-badge.active {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.popup-status-badge.inactive {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}


/* ==========================================================================
   TESTIMONIALS SLIDER / CAROUSEL (3 cards desktop, 1 card mobile)
   ========================================================================== */
.testimonials-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.testimonials-slider-track-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 4px 24px;
}

.testimonials-slider-track-container::-webkit-scrollbar {
    display: none;
}

.testimonials-grid.slider-track {
    display: flex !important;
    gap: 24px !important;
    grid-template-columns: none !important;
    transition: transform 0.4s ease;
}

.testimonials-grid.slider-track .testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    scroll-snap-align: start;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials-grid.slider-track .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: #ffffff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.slider-arrow:hover:not(:disabled) {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.08);
}

.slider-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    width: 28px;
    border-radius: 100px;
    background: var(--primary);
}

@media (max-width: 991px) {
    .testimonials-grid.slider-track .testimonial-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .testimonials-grid.slider-track .testimonial-card {
        flex: 0 0 100%;
    }

    .testimonials-slider-wrapper {
        display: block; /* Removes flex gap space */
        position: relative;
    }
    
    .testimonials-slider-track-container {
        width: 100%;
    }

    .slider-arrow {
        display: none !important;
    }
}


/* ==========================================================================
   SOCIAL MEDIA SHARE BUTTONS (Portofolio & Artikel)
   ========================================================================== */
.detail-social-share-wrapper {
    margin-top: 36px;
    padding: 20px 24px;
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.social-share-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.social-share-header svg {
    color: var(--primary);
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.share-btn svg {
    flex-shrink: 0;
}

.share-btn.share-wa {
    background-color: #25d366;
}

.share-btn.share-fb {
    background-color: #1877f2;
}

.share-btn.share-tw {
    background-color: #1da1f2;
}

.share-btn.share-li {
    background-color: #0a66c2;
}

.share-btn.share-tg {
    background-color: #229ed9;
}

.share-btn.share-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-btn.share-copy {
    background-color: #475569;
}

/* Compact Quick-Share on Cards */
.card-share-trigger {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.card-share-trigger:hover {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.1);
}


/* ==========================================================================
   MOBILE LAYOUT: 2 COLUMNS PER ROW ON MOBILE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

    .portfolio-grid,
    .articles-grid,
    .features-grid,
    .services-large-grid,
    #publicTeamsGrid,
    #publicLegalsGrid,
    .showcase-highlight-grid,
    .related-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    /* Project Cards Mobile Adjustments */
    .project-img-wrapper {
        height: 120px !important;
    }

    .project-card-body {
        padding: 10px !important;
    }

    .project-card-title,
    .project-card h3 {
        font-size: 0.88rem !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }

    .project-card-desc,
    .project-card p {
        display: none !important;
    }

    .project-card-tag {
        top: 8px !important;
        left: 8px !important;
        padding: 2px 8px !important;
        font-size: 0.65rem !important;
    }

    /* Article Cards Mobile Adjustments */
    .article-img-wrapper {
        height: 110px !important;
    }

    .article-card-body {
        padding: 10px !important;
    }

    .article-card-body h3 {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        margin: 4px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .article-card-body p {
        display: none !important;
    }

    .article-info-row {
        font-size: 0.7rem !important;
        margin-bottom: 4px !important;
    }

    .article-read-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        margin-top: 6px !important;
    }

    /* Why Feature / Features Mobile 2-col */
    .feature-card,
    .why-card {
        padding: 12px 10px !important;
    }

    .feature-icon,
    .why-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .feature-card h3,
    .why-card h3 {
        font-size: 0.88rem !important;
    }

    .feature-card p,
    .why-card p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }

    /* Service Cards Mobile 2-col */
    .service-card {
        padding: 12px 10px !important;
    }

    .service-card-img {
        height: 100px !important;
    }

    .service-card h3 {
        font-size: 0.88rem !important;
    }

    .service-card p {
        font-size: 0.75rem !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Team & Legal Cards Mobile 2-col */
    .team-card,
    .legal-card {
        padding: 12px 10px !important;
    }

    .team-avatar-wrap img {
        width: 60px !important;
        height: 60px !important;
    }

    .team-name,
    .legal-title {
        font-size: 0.85rem !important;
    }

    .team-role-badge,
    .legal-doc-badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }

    .team-bio,
    .legal-desc {
        display: none !important;
    }

    .legal-thumb-wrap {
        height: 100px !important;
    }

    /* Detail Social Share Mobile */
    .detail-social-share-wrapper {
        padding: 14px 16px !important;
    }

    .share-btn {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
    }
}


/* ==========================================================================
   CENTERED GRID CARDS (Rata Tengah untuk Baris Terakhir Sisa 1 Card)
   ========================================================================== */
.portfolio-grid,
.articles-grid,
.features-grid,
.services-large-grid,
.teams-grid,
.legals-grid,
.showcase-highlight-grid,
.related-grid-compact,
.video-gallery-grid {
    justify-content: center !important;
}

.project-card,
.article-card,
.feature-card,
.service-card,
.team-card,
.legal-card,
.video-card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}


/* ==========================================================================
   INTERACTIVE SCROLL REVEAL ANIMATIONS (Fade & Slide-Up on Scroll)
   ========================================================================== */
.section-header,
.project-card,
.article-card,
.feature-card,
.why-card,
.service-card,
.team-card,
.legal-card,
.testimonial-card,
.calc-card-form,
.calc-card-results,
.timeline-row,
.compact-related-card,
.contact-card,
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.is-revealed,
.section-header.is-revealed,
.project-card.is-revealed,
.article-card.is-revealed,
.feature-card.is-revealed,
.why-card.is-revealed,
.service-card.is-revealed,
.team-card.is-revealed,
.legal-card.is-revealed,
.testimonial-card.is-revealed,
.calc-card-form.is-revealed,
.calc-card-results.is-revealed,
.timeline-row.is-revealed,
.compact-related-card.is-revealed,
.contact-card.is-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Reveal Variations */
.reveal-fade {
    transform: none !important;
}

.reveal-left {
    transform: translateX(-24px);
}

.reveal-left.is-revealed {
    transform: translateX(0) !important;
}

.reveal-right {
    transform: translateX(24px);
}

.reveal-right.is-revealed {
    transform: translateX(0) !important;
}

.reveal-scale {
    transform: scale(0.94);
}

.reveal-scale.is-revealed {
    transform: scale(1) !important;
}

/* Staggered Delay Utilities */
.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}

.reveal-delay-5 {
    transition-delay: 0.40s;
}

/* Accessibility fallback for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

    .section-header,
    .project-card,
    .article-card,
    .feature-card,
    .why-card,
    .service-card,
    .team-card,
    .legal-card,
    .testimonial-card,
    .calc-card-form,
    .calc-card-results,
    .timeline-row,
    .compact-related-card,
    .contact-card,
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   DETAIL VIEW POLISH — CATEGORY OVER IMAGE + COMPACT PREV/NEXT
   ========================================================================== */
.dedicated-main-img-container,
.dedicated-article-cover-wrap {
    position: relative;
}

.detail-image-category {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    max-width: calc(100% - 32px);
    white-space: nowrap;
    box-sizing: border-box;
}

.dedicated-article-cover-wrap .article-cat-tag {
    background: rgba(28, 26, 23, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.dedicated-main-img-container .project-card-tag {
    margin: 0;
}

/* Prevent long navigation titles from creating horizontal overflow. */
.prev-next-nav {
    min-width: 0;
    align-items: stretch;
}

.nav-prev-btn,
.nav-next-btn {
    min-width: 0;
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
}

.nav-text-wrap {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.nav-label {
    font-size: 0.68rem;
    line-height: 1.2;
}

.nav-title {
    font-size: 0.82rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nav-prev-btn svg,
.nav-next-btn svg {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .prev-next-nav {
        flex-direction: column;
        gap: 10px;
        margin-top: 24px;
        padding-top: 18px;
    }

    .nav-prev-btn,
    .nav-next-btn {
        width: 100%;
        flex: 0 0 auto;
        padding: 11px 12px;
    }

    .nav-next-btn {
        justify-content: flex-end;
    }

    .nav-label {
        font-size: 0.62rem;
    }

    .nav-title {
        font-size: 0.78rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .detail-image-category {
        top: 10px !important;
        left: 10px !important;
        max-width: calc(100% - 20px);
    }

    .dedicated-main-img-container .project-card-tag,
    .dedicated-article-cover-wrap .article-cat-tag {
        padding: 3px 9px;
        font-size: 0.64rem;
        letter-spacing: 0.7px;
    }
}

.dedicated-detail-container,
.dedicated-gallery-wrap,
.dedicated-article-cover-wrap,
.prev-next-nav {
    max-width: 100%;
    min-width: 0;
}
\n
/* ==========================================================================
   VIDEO GALLERY STYLES
   ========================================================================== */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
@media (max-width: 991px) {
    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }
}
.video-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.video-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}
.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-info {
    padding: 20px;
}
.video-info h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--dark-text);
    font-weight: 700;
}
.video-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.5;
}

/* RELATED PRODUCTS GRID */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 991px) {
    .related-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .related-products-grid { grid-template-columns: 1fr; }
}
.related-product-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.related-product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-product-meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* HOW IT WORKS GRID */
.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
@media (max-width: 991px) {
    .hiw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hiw-grid { grid-template-columns: 1fr; }
}

/* Video Thumbnail & Modal */
.video-card { cursor: pointer; transition: transform 0.3s ease; }
.video-card:hover { transform: translateY(-5px); }
.video-thumbnail-container { position: relative; width: 100%; padding-top: 56.25%; background-size: cover; background-position: center; border-radius: 8px 8px 0 0; overflow: hidden; }
.play-button-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.video-card:hover .play-button-overlay { background: rgba(0,0,0,0.5); }
.play-button-overlay svg { width: 60px; height: 60px; fill: white; opacity: 0.8; transition: transform 0.3s; }
.video-card:hover .play-button-overlay svg { transform: scale(1.1); opacity: 1; }
.video-modal-container { position: relative; width: 90%; max-width: 1000px; margin: auto; background: #000; border-radius: 12px; overflow: hidden; }
.video-modal-iframe-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-modal-iframe-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Embedded Video Card in Articles */
.article-embedded-video-card-wrap {
    float: left;
    max-width: 420px;
    width: 100%;
    margin: 5px 25px 20px 0;
}
@media (max-width: 768px) {
    .article-embedded-video-card-wrap {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
}

/* Custom override for Video Gallery to ensure 3 per row with precise gaps */
.video-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100%;
}
.video-gallery-grid .video-card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}
@media (max-width: 991px) {
    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .video-gallery-grid {
        grid-template-columns: 1fr !important;
    }
}
/* ==========================================================================
   ADMIN GUIDE ACCORDION STYLES
   ========================================================================== */
.guide-wrapper {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.guide-item {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.guide-item summary {
    padding: 16px 20px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    background: white;
    list-style: none; /* Hide default arrow */
    position: relative;
    user-select: none;
    transition: background var(--transition-fast);
}
.guide-item summary::-webkit-details-marker {
    display: none;
}
.guide-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-muted);
}
.guide-item[open] summary::after {
    content: '-';
}
.guide-item summary:hover {
    background: var(--surface-light);
}
.guide-content {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}
.guide-content p {
    margin-bottom: 12px;
}
.guide-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
    list-style-type: disc;
}
.guide-content li {
    margin-bottom: 6px;
}
.guide-content code {
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

