/* Website Desa Digital - Modern Vanilla CSS Design System */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap");

:root {
    --primary-color: #0b663e;
    --primary-hover: #074e2f;
    --primary-light: #f0fdf4;
    --secondary-color: #0b2216;
    --accent-color: #10b981;
    --accent-hover: #059669;
    --accent-light: #ecfdf5;

    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-navbar: linear-gradient(135deg, #0b2518 0%, #064e3b 50%, #047857 100%);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    --border-color: #e2e8f0;
    --border-glass: rgba(255, 255, 255, 0.4);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md:
        0 10px 25px -5px rgba(15, 23, 42, 0.08),
        0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);

    --font-heading: "Outfit", sans-serif;
    --font-body: "Plus Jakarta Sans", sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Base Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.4s ease, border-bottom-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

.navbar.navbar-scrolled {
    background: linear-gradient(135deg, #0b2518 0%, #064e3b 50%, #047857 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.page-header-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(6, 30, 19, 0.35) 0%, rgba(4, 50, 33, 0.40) 100%), url('../images/bg-banner-batik.png') repeat center/500px auto;
    padding: 110px 0 32px;
    color: #ffffff;
    overflow: hidden;
}

.page-header-banner > .container {
    position: relative;
    z-index: 2;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-logo span {
    color: var(--text-white);
    -webkit-text-fill-color: var(--text-white);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-link {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
}

.navbar-link:hover,
.navbar-link.active {
    color: #ffffff;
    font-weight: 700;
}

.navbar-link.active {
    border-color: #10b981;
}

/* Dropdown Navigation Menu */
.navbar-dropdown {
    position: relative;
}

.navbar-dropdown .arrow {
    font-size: 11px;
    margin-left: 4px;
    display: inline-block;
    transition: transform var(--transition-fast);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0b2518;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    min-width: 230px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    display: none;
    list-style: none;
    padding: 8px 0;
    z-index: 1100;
    backdrop-filter: blur(12px);
}

/* triangle indicator */
.dropdown-menu::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #0b2518;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #f1f5f9;
    font-weight: 600;
    transition: var(--transition-fast);
    text-align: left;
    border-bottom: none !important;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    color: #ffffff;
    background-color: #15803d;
    font-weight: 700;
    padding-left: 24px;
}

/* Hover behaviors for desktops */
@media (min-width: 993px) {
    .navbar-dropdown:hover .dropdown-menu {
        display: block;
        animation: navFadeIn 0.2s ease;
    }

    .navbar-dropdown:hover .arrow {
        transform: rotate(180deg);
    }
}

@keyframes navFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.btn-nav-portal {
    background-color: var(--primary-color);
    color: var(--text-white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-nav-portal:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Section Divider Ornament */
.section-divider-ornament {
    height: 32px;
    width: 100%;
    background: url('../images/border-divider-ornament.png') repeat-x center;
    background-size: auto 32px;
    margin: 40px 0;
    opacity: 0.85;
}

/* Section Batik Accent Background */
.section-batik-bg {
    position: relative;
    background-color: #f1f5f9;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.section-batik-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/bg-pattern-motif.png') repeat;
    background-size: 380px auto;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.section-batik-bg > .container {
    position: relative;
    z-index: 1;
}

/* Card Motif Light Background */
.card-motif-bg {
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
}

.card-motif-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/bg-motif-light.png') repeat;
    background-size: 380px auto;
    opacity: 0.80;
    pointer-events: none;
    z-index: 0;
}

.card-motif-bg > * {
    position: relative;
    z-index: 1;
}

/* Footer Section */
.footer {
    position: relative;
    background: #090d16 url('../images/bg-footer-dark.png') no-repeat center/cover;
    color: var(--text-light);
    padding: 64px 0 24px;
    border-top: 1px solid #1e293b;
    margin-top: 80px;
}

.footer::before {
    content: "";
    position: absolute;
    top: -42px;
    left: 0;
    right: 0;
    height: 42px;
    background: url('../images/footer-border-pucuk-rebung.png') repeat-x bottom center;
    background-size: auto 42px;
    z-index: 5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.2fr 2.3fr;
    gap: 32px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    color: var(--text-white);
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    max-width: 320px;
    line-height: 1.7;
}

.footer-title {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-link {
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
}

.footer-link:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(59, 130, 246, 0.08) 0%,
            transparent 60%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(16, 185, 129, 0.05) 0%,
            transparent 50%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--secondary-color), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--text-white);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-main);
    transform: translateY(-2px);
}

.hero-image-container {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--text-white);
}

.hero-stats-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.hero-stats-card h4 {
    font-size: 20px;
    color: var(--primary-color);
}

.hero-stats-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Glassmorphism Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.15);
}

/* Quick Statistics Summary on Home */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: -48px;
    position: relative;
    z-index: 10;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.stat-item:hover .stat-icon {
    background-color: var(--primary-color);
    color: #ffffff;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 2px;
    line-height: 1.1;
}

.stat-info p {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Common Styling */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all var(--transition-fast);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: rotate(5deg) scale(1.05);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* News/Post Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.news-card:hover .news-card-image {
    transform: scale(1.03);
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--secondary-color);
    transition: color var(--transition-fast);
}

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.news-card-more:hover {
    color: var(--primary-hover);
    gap: 10px;
}

/* Kades Greeting (Sambutan) Styling */
.kades-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: center;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.kades-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.kades-profile {
    text-align: center;
    border-right: 1px solid var(--border-color);
    padding-right: 48px;
}

.kades-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 16px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(11, 102, 62, 0.15);
    overflow: hidden;
}

.kades-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kades-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.kades-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kades-message-title {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-weight: 800;
}

.kades-message-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

@media (max-width: 992px) {
    .kades-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }
    .kades-profile {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 32px;
    }
}

/* Gallery Layout */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background-color: var(--text-white);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: var(--transition-normal);
}

.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    padding: 24px;
    color: var(--text-white);
}

.gallery-overlay h4 {
    color: var(--text-white);
    font-size: 16px;
    margin-bottom: 4px;
}

.gallery-overlay span {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
}

/* Multi-Step Forms for Letters */
.form-card {
    max-width: 760px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-fast);
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #d1fae5;
}

/* Tracking Page Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.stepper::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    width: 120px;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--text-white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
    transition: var(--transition-normal);
}

.step-item.active .step-circle {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.step-item.completed .step-circle {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

.step-item.rejected .step-circle {
    background-color: #ef4444;
    border-color: #ef4444;
    color: var(--text-white);
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
}

.step-item.active .step-label {
    color: var(--primary-color);
}

.step-item.completed .step-label {
    color: var(--secondary-color);
}

.tracking-result {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.detail-list {
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    width: 200px;
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-value {
    flex-grow: 1;
    color: var(--secondary-color);
}

/* Statistics Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    height: 380px;
    position: relative;
}

.chart-container-wide {
    grid-column: span 2;
    height: 400px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

/* Profile Layout */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 40px;
    margin-bottom: 64px;
}

.profile-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-md);
    text-align: center;
    height: fit-content;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 24px;
    border: 3px solid var(--border-color);
}

.profile-avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    border: 3px solid var(--border-color);
}

.profile-sidebar h3 {
    margin-bottom: 4px;
}

.profile-sidebar span {
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-info-mini {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: left;
}

.profile-info-row {
    font-size: 13px;
    margin-bottom: 12px;
}

.profile-info-row strong {
    display: block;
    color: var(--text-secondary);
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wysiwyg-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-item {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: var(--text-white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.pagination-item.active,
.pagination-item:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

/* Navbar toggle default styling */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.navbar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-brand {
        grid-column: span 2;
    }
    .features-grid,
    .news-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .chart-container-wide {
        grid-column: span 1;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .navbar-toggle {
        display: flex;
    }
    .navbar.mobile-menu-open,
    .navbar-transparent.mobile-menu-open {
        background: linear-gradient(135deg, #0b2518 0%, #064e3b 50%, #047857 100%) !important;
        backdrop-filter: blur(12px) !important;
    }
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #0b2518 !important;
        background-color: #0b2518 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-bottom: 2px solid #047857;
        padding: 20px 24px;
        gap: 16px;
        align-items: flex-start;
        z-index: 1001;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .navbar-menu.show {
        display: flex;
    }
    .navbar-menu li {
        width: 100%;
    }
    .navbar-link {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    .btn-nav-portal {
        display: block;
        text-align: center;
        margin-top: 8px;
        width: 100%;
    }

    .navbar-dropdown {
        width: 100%;
    }

    .navbar-dropdown .arrow {
        float: right;
        margin-top: 4px;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        display: none;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius-sm);
        box-shadow: none;
        margin-top: 8px;
        padding: 8px 14px;
    }

    .dropdown-menu::before {
        display: none;
    }

    .navbar-dropdown.active .dropdown-menu {
        display: block;
    }

    .navbar-dropdown.active .arrow {
        transform: rotate(180deg);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .quick-stats {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding-top: 40px;
    }
    .features-grid,
    .news-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .features-grid .card {
        padding: 14px 12px !important;
        text-align: center !important;
        justify-content: space-between !important;
    }
    .features-grid .card h3 {
        font-size: 13px !important;
        line-height: 1.35 !important;
        margin-bottom: 12px !important;
        margin-top: 0 !important;
    }
    .features-grid .card p {
        display: none !important;
    }
    .features-grid .card .btn {
        padding: 8px 10px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .stepper {
        flex-direction: column;
        gap: 20px;
    }
    .stepper::before {
        display: none;
    }
    .step-item {
        flex-direction: row;
        width: 100%;
        gap: 16px;
    }
    .step-circle {
        margin-bottom: 0;
    }
    .step-label {
        text-align: left;
    }
}

/* Workflow Grid (Alur Pengajuan) styling */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
}

@media (min-width: 769px) {
    .workflow-grid::before {
        content: "";
        position: absolute;
        top: 24px; /* Half of circle height */
        left: 10%;
        right: 10%;
        height: 2px;
        background-color: var(--primary-color);
        z-index: 1;
        opacity: 0.35;
    }
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 8px;
    text-align: center;
}

.workflow-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-light);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(11, 102, 62, 0.1);
    transition: all var(--transition-fast);
}

.workflow-step:hover .workflow-circle {
    transform: scale(1.08);
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 6px 15px rgba(11, 102, 62, 0.25);
}

.workflow-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 6px;
    line-height: 1.3;
}

.workflow-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .workflow-grid {
        gap: 16px;
    }
    .workflow-title {
        font-size: 13px;
    }
    .workflow-desc {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-left: 8px;
    }

    .workflow-grid::before {
        content: "";
        position: absolute;
        top: 22px;
        bottom: 22px;
        left: 30px; /* Half of circle width plus padding-left */
        width: 2px;
        background-color: var(--border-color);
        z-index: 1;
    }

    .workflow-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 0;
        gap: 20px;
    }

    .workflow-circle {
        margin-bottom: 0;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
    }

    .workflow-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 2px;
    }

    .workflow-title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .workflow-desc {
        font-size: 12px;
        max-width: 100%;
    }
}

/* ==========================================
   RESPONSIVE LAYOUT SYSTEM & UTILITY CLASSES
   ========================================== */

.profile-layout-grid {
    display: block;
    width: 100%;
}

.home-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bpd-org-level-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 640px;
    margin: 0 auto 28px;
}

.bpd-org-level-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.potensi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

/* Tablet Breakpoint (<= 992px) */
@media (max-width: 992px) {
    .profile-layout-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .home-main-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .profile-sidebar-nav {
        position: static !important;
    }
}

/* Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
    .navbar-logo img {
        height: 34px !important;
    }
    .navbar-logo span {
        font-size: 14px !important;
    }
    .home-news-grid,
    .potensi-grid,
    .bpd-org-level-2,
    .bpd-org-level-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .news-card-image,
    .home-news-grid img {
        height: 120px !important;
    }
    .news-card-content,
    .home-news-grid .card > div:last-child {
        padding: 10px !important;
    }
    .news-card-title,
    .home-news-grid h3 {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }
    .news-card-excerpt,
    .home-news-grid p {
        font-size: 11px !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin-bottom: 8px !important;
    }
    .news-card-more,
    .home-news-grid a {
        font-size: 11px !important;
    }
    .card {
        padding: 20px 14px !important;
    }
    .hero-section {
        padding: 110px 0 72px !important;
        text-align: center !important;
    }
    .hero-title {
        font-size: 26px !important;
        margin-bottom: 12px !important;
    }
    .hero-subtitle {
        font-size: 14px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 24px !important;
    }
    .hero-badge {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 16px !important;
    }
    .hero-btns {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .btn-hero-gold,
    .btn-hero-pill {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
    }
    .hero-kades-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 24px 18px !important;
    }
}
