/* ==========================================================================
   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: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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: 100px 8%;
}

.section-padding-top {
    padding-top: 100px;
}

.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);
    border-bottom: 1px solid var(--border-light);
    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);
}

/* Responsive Header */
@media (max-width: 900px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-card-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px;
        gap: 24px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        right: 0;
    }

    .main-header {
        background-color: var(--bg-light) !important;
        border-bottom: 1px solid var(--border-light);
        padding: 16px 8%;
    }
}

/* ==========================================================================
   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: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   1. BERANDA (HOME) - HERO SECTION & FEATURES
   ========================================================================== */
.hero-container {
    position: relative;
    height: 80vh;
    min-height: 550px;
    background-image: url('assets/hero_villa.png');
    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 */
.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_villa.png');
    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.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.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: flex;
    flex-direction: column;
    gap: 60px;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-card-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.service-detail-card.reverse {
    direction: rtl; /* Flip elements */
}

.service-detail-card.reverse .service-detail-content {
    direction: ltr; /* Reset text direction */
}

.service-img-placeholder {
    background-size: cover;
    background-position: center;
    min-height: 350px;
}

.service-detail-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-light);
    -webkit-text-stroke: 1.5px var(--primary);
    display: block;
    margin-bottom: 16px;
}

.service-detail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-detail-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
}

.service-list {
    list-style: none;
}

.service-list li {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 1.5px;
    background-color: var(--primary);
}

@media (max-width: 900px) {
    .service-detail-card {
        grid-template-columns: 1fr;
    }
    .service-detail-card.reverse {
        direction: ltr;
    }
    .service-detail-content {
        padding: 40px 24px;
    }
    .service-img-placeholder {
        min-height: 250px;
    }
}

/* ==========================================================================
   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.2rem;
    margin-bottom: 12px;
    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-6 {
    width: 50%;
}

.col-4 {
    width: 33.33%;
}

.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;
}

.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;
}

/* ==========================================================================
   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); }
}

/* Responsive sidebar styling */
@media (max-width: 992px) {
    .admin-dashboard-layout {
        flex-direction: column;
        min-height: auto;
    }
    
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 20px;
    }
    
    .sidebar-brand {
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        margin-bottom: 16px;
    }
    
    .sidebar-nav-btn {
        width: auto;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .sidebar-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 0;
        padding-top: 16px;
    }
    
    .admin-user-info {
        margin-bottom: 0;
    }
    
    .admin-sidebar .btn-logout {
        width: auto;
    }
    
    .admin-main-content {
        padding: 24px;
        max-height: none;
    }
}

/* ==========================================================================
   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;
    width: 100vw !important;
}

body.admin-body-mode main.content-wrapper {
    margin-top: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    max-height: 100vh !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;
    min-height: 100vh !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;
}

/* 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;
    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;
}

.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;
}

.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;
}

