/* ============================================================
   PUPUK DISTRIBUTOR THEME - Main Stylesheet
   Premium WordPress Theme for Fertilizer Distributor
   ============================================================ */

/* ─── CSS VARIABLES ────────────────────────────────────────── */
:root {
    --primary: #1B5E20;
    --primary-light: #2E7D32;
    --primary-dark: #0D3B12;
    --primary-rgb: 27, 94, 32;
    --gold: #C9A94E;
    --gold-light: #D4BA6A;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --text: #2D2D2D;
    --text-light: #666666;
    --text-muted: #999999;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow: 0 4px 15px rgba(0, 0, 0, .08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, .1);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, .12);
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, .15);
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all .3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1200px;
}

/* ─── RESET & BASE ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--gray-900);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* ─── SECTION HEADERS ──────────────────────────────────────── */
.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(var(--primary-rgb), .08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 50px;
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
    text-align: center;
    justify-content: center;
}

.btn-lg {
    padding: 15px 36px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), .35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-wa {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}

.btn-wa:hover {
    background: #1DA851;
    border-color: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, .35);
}

.btn-cta {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    font-size: 18px;
    padding: 18px 48px;
    border-radius: var(--radius-lg);
}

.btn-cta:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ─── HEADER ───────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 8px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

.header-brand a,
.site-title-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    height: 100%;
}

.scrolled .header-brand a,
.scrolled .site-title-link {
    color: var(--primary);
}

.header-logo-icon {
    font-size: 28px;
    color: var(--gold);
}

.header-brand img,
.custom-logo {
    max-height: 45px;
    width: auto;
}

.scrolled .header-brand img,
.scrolled .custom-logo {
    max-height: 40px;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increase gap for better spacing */
    margin: 0;
}

/* ─── NEW PRODUCT STYLES (5 Columns & Simple Card) ─── */

/* 5 Column Grid */
.produk-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .produk-grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .produk-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .produk-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .produk-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* Simplified Product Card */
.produk-card-simple {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.produk-card-simple .produk-card-img {
    aspect-ratio: 3/4;
    /* Semi-portrait */
    position: relative;
    overflow: hidden;
}

.produk-card-simple .produk-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.produk-card-simple:hover .produk-card-img img {
    transform: scale(1.1);
}

.produk-card-simple .produk-card-body {
    padding: 15px;
    text-align: center;
    background: var(--white);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.produk-card-simple .produk-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.produk-card-simple .produk-card-title a {
    color: var(--gray-800);
}

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

/* Beautiful Filter Bar */
.product-filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    background: transparent;
    border: none;
    padding: 8px 20px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background: rgba(var(--primary-rgb), .1);
    color: var(--primary);
    font-weight: 600;
}

.filter-search {
    position: relative;
    width: 250px;
}

.filter-search input {
    width: 100%;
    padding: 10px 40px 10px 20px;
    border: 1px solid var(--gray-300);
    border-radius: 25px;
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.filter-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1);
}

.filter-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.nav-menu li a {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    background: rgba(255, 255, 255, .15);
    color: var(--white);
}

.scrolled .nav-menu li a {
    color: var(--text);
}

.scrolled .nav-menu li a:hover,
.scrolled .nav-menu li.current-menu-item a {
    color: var(--primary);
    background: rgba(var(--primary-rgb), .08);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #25D366;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    white-space: nowrap;
}

.header-cta:hover {
    background: #1DA851;
    transform: translateY(-1px);
    color: var(--white);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.scrolled .hamburger-line {
    background: var(--gray-800);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, .7) 0%, rgba(var(--primary-rgb), .5) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
}

.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    animation: float-up 8s infinite ease-in-out;
}

.hero-particles span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.hero-particles span:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 12s;
    width: 6px;
    height: 6px;
}

.hero-particles span:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 8s;
}

.hero-particles span:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 11s;
    width: 5px;
    height: 5px;
}

.hero-particles span:nth-child(5) {
    left: 90%;
    animation-delay: 3s;
    animation-duration: 9s;
}

@keyframes float-up {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(30px);
    }
}

.hero-inner {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 120px 20px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(var(--primary-rgb), .3);
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 54px;
    font-weight: 900;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 19px;
    color: rgba(255, 255, 255, .85);
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-section .btn-primary {
    background: var(--gold);
    border-color: var(--gold);
}

.hero-section .btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    box-shadow: 0 6px 20px rgba(201, 169, 78, .4);
}

.hero-section .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, .5);
}

.hero-section .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.hero-trust {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    font-weight: 500;
}

.trust-item i {
    color: var(--gold);
    font-size: 16px;
}

/* ─── ABOUT ────────────────────────────────────────────────── */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-img-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
}

.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-img-wrap:hover img {
    transform: scale(1.05);
}

.about-img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 32px;
}

.about-content .section-badge {
    margin-bottom: 8px;
}

.about-content .section-title {
    text-align: left;
    font-size: 34px;
}

.about-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-features {
    margin-bottom: 28px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--text);
}

.about-features li i {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

/* ─── JENIS PUPUK ──────────────────────────────────────────── */
.jenis-section {
    background: var(--gray-50);
}

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

.jenis-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.jenis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    opacity: 0;
    transition: var(--transition);
}

.jenis-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.jenis-card:hover::before {
    opacity: 1;
}

.jenis-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(var(--primary-rgb), .08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.jenis-icon i {
    font-size: 26px;
    color: var(--primary);
    transition: var(--transition);
}

.jenis-card:hover .jenis-icon {
    background: var(--primary);
}

.jenis-card:hover .jenis-icon i {
    color: var(--white);
}

.jenis-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.jenis-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ─── KEUNGGULAN ───────────────────────────────────────────── */
.keunggulan-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

.keunggulan-section .section-badge {
    background: rgba(255, 255, 255, .15);
    color: var(--gold-light);
}

.keunggulan-section .section-title {
    color: var(--white);
}

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

.keunggulan-card {
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.keunggulan-card:hover {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-4px);
}

.keunggulan-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: rgba(var(--primary-rgb), .5);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.keunggulan-icon i {
    font-size: 24px;
    color: var(--gold);
}

.keunggulan-card h3 {
    font-size: 17px;
    color: var(--white);
    margin-bottom: 8px;
}

.keunggulan-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.6;
}

/* ─── PRODUK ───────────────────────────────────────────────── */
.produk-section {
    background: var(--white);
}

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

.produk-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.produk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.produk-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
}

.produk-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.produk-card:hover .produk-card-img img {
    transform: scale(1.05);
}

.produk-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-400);
    font-size: 40px;
}

.produk-no-img.large {
    min-height: 400px;
    font-size: 60px;
}

.produk-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.produk-card-body {
    padding: 20px;
}

.produk-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.produk-card-title a {
    color: var(--gray-900);
}

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

.produk-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.price-value,
.price-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.produk-min {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.produk-min i {
    margin-right: 4px;
    color: var(--gold);
}

.produk-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
}

.produk-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.produk-card-actions .btn {
    flex: 1;
    font-size: 13px;
}

.no-produk {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-produk i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--gray-300);
    display: block;
}

/* ─── SKEMA PEMBELIAN ──────────────────────────────────────── */
.skema-section {
    background: var(--gray-50);
}

.skema-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.skema-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.skema-box:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.skema-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-100);
}

.skema-icon {
    width: 56px;
    height: 56px;
    background: rgba(var(--primary-rgb), .08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skema-icon i {
    font-size: 24px;
    color: var(--primary);
}

.skema-header h3 {
    font-size: 22px;
}

.skema-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-light);
}

/* ─── PRODUSEN LOGO CAROUSEL ──────────────────────────────── */
.produsen-section {
    background: var(--white);
}

.logo-carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.logo-carousel::before,
.logo-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.logo-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.logo-track {
    display: flex;
    gap: 40px;
    animation: scroll-logos 30s linear infinite;
    width: max-content;
}

.logo-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-slide {
    flex-shrink: 0;
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.logo-slide img {
    max-height: 60px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .6;
    transition: var(--transition);
}

.logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--gray-400);
    font-size: 12px;
    text-align: center;
    transition: var(--transition);
}

.logo-placeholder i {
    font-size: 28px;
    color: var(--gray-300);
}

.logo-slide:hover .logo-placeholder {
    color: var(--primary);
}

.logo-slide:hover .logo-placeholder i {
    color: var(--primary);
}

/* ─── AKTIVITAS ────────────────────────────────────────────── */
.aktivitas-section {
    background: var(--gray-50);
}

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

.aktivitas-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.aktivitas-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.aktivitas-item:hover img {
    transform: scale(1.08);
}

.aktivitas-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.aktivitas-item:hover .aktivitas-overlay {
    transform: translateY(0);
}

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

.aktivitas-overlay span {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}

.aktivitas-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 40px;
}

/* ─── STATISTIK COUNTER ────────────────────────────────────── */
.statistik-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 60px 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 20px;
    color: var(--gold);
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    display: inline;
}

.stat-suffix {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    display: inline;
}

.stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, .7);
    margin-top: 4px;
}

/* ─── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
    background: var(--primary);
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.cta-bg-pattern {
    position: absolute;
    
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, .05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, .05) 0%, transparent 50%);
}

.cta-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon i {
    font-size: 36px;
    color: var(--white);
}

.cta-title {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 32px;
}

/* ─── PAGE HERO ────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 120px 0 50px;
    text-align: center;
    color: var(--white);
}

.page-hero-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
}

.page-hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
}

.breadcrumb a {
    color: rgba(255, 255, 255, .8);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb .sep {
    font-size: 10px;
}

/* ─── FILTER TABS ──────────────────────────────────────────── */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 8px 20px;
    background: var(--gray-100);
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    background: var(--gray-200);
}

.filter-tab.active {
    background: var(--primary);
    color: var(--white);
}

/* ─── SINGLE PRODUK ────────────────────────────────────────── */
.single-produk-section {
    background: var(--white);
}

.single-produk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    margin-bottom: 12px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produk-categories {
    margin-bottom: 12px;
}

.produk-cat-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(var(--primary-rgb), .08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 6px;
}

.produk-detail-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.produk-detail-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.produk-detail-price .price-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.produk-detail-price .price-amount {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
}

.produk-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.meta-item i {
    font-size: 18px;
    color: var(--primary);
    margin-top: 3px;
}

.meta-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.meta-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.produk-description {
    margin-bottom: 24px;
}

.produk-description h3 {
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
}

.produk-kandungan {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.produk-kandungan h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--primary);
}

.produk-kandungan h3 i {
    margin-right: 6px;
}

.kandungan-content {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.produk-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.produk-actions .btn {
    flex: 1;
    min-width: 200px;
}

.related-produk {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-200);
}

.related-title {
    font-size: 24px;
    margin-bottom: 24px;
}

/* ─── KONTAK PAGE ──────────────────────────────────────────── */
.kontak-section {
    background: var(--white);
}

.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: start;
}

.kontak-info h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.kontak-info>p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(var(--primary-rgb), .1);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-card-icon.wa {
    background: rgba(37, 211, 102, .1);
    color: #25D366;
}

.contact-card h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-card a {
    color: var(--primary);
}

.kontak-hours {
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.kontak-hours h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.kontak-hours h4 i {
    margin-right: 6px;
    color: var(--primary);
}

.kontak-hours ul li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--gray-200);
}

.kontak-hours ul li:last-child {
    border-bottom: none;
}

.kontak-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.kontak-form h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.kontak-form h2 i {
    color: var(--primary);
    margin-right: 6px;
}

.kontak-form>p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ─── ORDER FORM ───────────────────────────────────────────── */
.pupuk-order-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-group.full-width {
    margin-bottom: 16px;
}

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

.form-group label i {
    color: var(--primary);
    margin-right: 4px;
    width: 16px;
}

.required {
    color: #E53935;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-submit {
    text-align: center;
    padding-top: 12px;
}

.form-submit .btn {
    width: 100%;
    font-size: 16px;
}

.form-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ─── ARCHIVE LIST ─────────────────────────────────────────── */
.archive-produk-section {
    padding: 60px 0 80px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.nav-links .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--text);
    transition: var(--transition);
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background: var(--primary);
    color: var(--white);
}

/* ─── FOOTER ───────────────────────────────────────────────── */
.site-footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, .7);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand i {
    color: var(--gold);
    font-size: 24px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .7);
    border-radius: 50%;
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--gold);
    margin-top: 4px;
    width: 16px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, .6);
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, .4);
}

/* ─── FLOATING WHATSAPP ────────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .4);
    z-index: 999;
    transition: var(--transition);
    animation: wa-pulse 2s infinite;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, .5);
    color: var(--white);
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ─── FORM FEEDBACK ────────────────────────────────────────── */
.form-loading {
    pointer-events: none;
    opacity: .7;
}

.form-success {
    padding: 20px;
    background: rgba(var(--primary-rgb), .08);
    color: var(--primary);
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
}

.form-error {
    padding: 12px 16px;
    background: #FFEBEE;
    color: #C62828;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
}

/* ─── PRODUK SIMPLE GRID (Homepage) ────────────────────────── */
.produk-simple-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.produk-simple-card {
    display: block;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    text-decoration: none;
}

.produk-simple-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.produk-simple-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

.produk-simple-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.produk-simple-card:hover .produk-simple-img img {
    transform: scale(1.05);
}

.produk-simple-title {
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
}

.produk-simple-card:hover .produk-simple-title {
    color: var(--primary);
}

/* ─── SKEMA NOTE & CTA ────────────────────────────────────── */
.skema-note {
    margin-top: 28px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
}

.skema-note h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.skema-note h5 i {
    color: var(--gold);
    margin-right: 6px;
}

.skema-note ul {
    list-style: none;
    padding: 0;
}

.skema-note ul li {
    position: relative;
    padding: 5px 0 5px 20px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.skema-note ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--primary);
    font-weight: 700;
}

.skema-cta {
    margin-top: 24px;
    text-align: center;
}

.skema-cta .btn {
    width: 100%;
}

/* ─── GALLERY SECTION ──────────────────────────────────────── */
.gallery-section {
    background: var(--white);
}

.gallery-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.gallery-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--gray-100);
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-tab:hover {
    background: var(--gray-200);
}

.gallery-tab.active {
    background: var(--primary);
    color: var(--white);
}

.gallery-panel {
    display: none;
}

.gallery-panel.active {
    display: block;
}

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

.gallery-video-grid {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    font-size: 24px;
}

.gallery-item-overlay span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 0 12px;
}

.gallery-video-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.gallery-video-item:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-title {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

/* ─── BLOG / ARTIKEL SECTION ──────────────────────────────── */
.blog-section {
    background: var(--gray-50);
}

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

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.blog-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-card-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    color: var(--gray-300);
    font-size: 48px;
}

.blog-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--gray-900);
}

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

.blog-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

.blog-read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-read-more:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* ─── ANIMATIONS ───────────────────────────────────────────── */
.fade-in {
    
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
    
    transform: translateY(0);
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 44px;
    }

    .jenis-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .produk-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .section-title {
        font-size: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-images {
        order: 2;
    }

    .about-content {
        order: 1;
        text-align: center;
    }

    .about-features {
        display: inline-block;
        text-align: left;
    }

    .jenis-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .keunggulan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .produk-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .skema-grid {
        grid-template-columns: 1fr;
    }

    .produk-simple-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid,
    .gallery-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-produk-grid {
        grid-template-columns: 1fr;
    }

    .kontak-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* Mobile Nav */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 24px 24px;
        transition: right .35s ease;
        z-index: 999;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-menu li a {
        color: var(--text) !important;
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid var(--gray-100);
        border-radius: 0;
        font-size: 16px;
    }

    .nav-menu li a:hover {
        background: var(--gray-50) !important;
        color: var(--primary) !important;
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }

    .section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-inner {
        padding: 100px 16px 60px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-desc {
        font-size: 15px;
    }

    .jenis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .jenis-card {
        padding: 24px 16px;
    }

    .keunggulan-grid {
        grid-template-columns: 1fr;
    }

    .produk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .aktivitas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .produk-simple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-grid,
    .gallery-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .page-hero {
        padding: 100px 0 40px;
    }

    .page-hero-title {
        font-size: 30px;
    }

    .pupuk-order-form .form-row {
        grid-template-columns: 1fr;
    }

    .kontak-form {
        padding: 24px 20px;
    }

    .produk-meta-grid {
        grid-template-columns: 1fr;
    }

    .produk-actions {
        flex-direction: column;
    }

    .produk-actions .btn {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }

    .jenis-grid {
        grid-template-columns: 1fr 1fr;
    }

    .produk-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 32px;
    }

    .aktivitas-grid {
        grid-template-columns: 1fr;
    }

    .produk-simple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-grid,
    .gallery-video-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 26px;
    }

    .btn-cta {
        padding: 14px 32px;
        font-size: 16px;
    }
}

/* Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: 100%;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-body {
    text-align: center;
}

.lightbox-body img {
    max-width: 100%;
    max-height: 80vh;
    display: inline-block;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-trigger {
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
}

.lightbox-trigger:hover {
    transform: scale(1.02);
    z-index: 2;
}


/* Fired from Task: Fix Gallery Tabs & Beautify Grid */

/* Tab Switching Fix */
.gallery-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-panel.active {
    display: block;
    opacity: 1;
    animation: fadeInPanel 0.5s ease forwards;
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Bento Grid System */
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 16px;
    grid-auto-flow: dense;
}

.gallery-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: auto;
}

.gallery-item {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.05);
}

/* Bento Spans */
.gallery-item.span-2 {
    grid-column: span 2;
}

.gallery-item.span-row-2 {
    grid-row: span 2;
}

.gallery-item.span-2-row-2 {
    grid-column: span 2;
    grid-row: span 2;
}

/* Mobile fallback */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 150px;
    }

    .gallery-item.span-2-row-2,
    .gallery-item.span-2 {
        grid-column: span 1;
        /* Reset on very small screens if needed, or keep for bento feel */
        grid-column: span 2;
        /* Keep bento on mobile too if 2 cols exist */
    }
}


/* Fired from Task: Gallery Enhancements */

.hidden-item {
    display: none !important;
}

/* Lightbox Navigation */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-btn:hover {
    background: rgba(201, 169, 78, 0.8);
    /* Gold */
    border-color: var(--gold);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Load More Button */
/* ─── UI REFINEMENTS (Horizontal Scroll, Soft Tabs, Admin Bar) ─── */

/* Admin Bar Fix */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Section Header Row (Title Left - Link Right) */
.section-header-row {
    display: flex;
    align-items: flex-end;
    /* Align bottom */
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    flex: 1;
    min-width: 200px;
}

/* Removed header-center as it's not used in current design */

.header-right {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 5px;
    /* Slight adjustment */
}

/* Soft Tabs */
.nav-tabs-soft {
    display: inline-flex;
    background: #f1f3f5;
    padding: 5px;
    border-radius: 50px;
    gap: 5px;
}

.tab-soft {
    border: none;
    background: transparent;
    padding: 8px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-soft.active,
.tab-soft:hover {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Horizontal Scroll & Slider UI */
.horizontal-scroll-layout {
    display: flex;
    gap: 20px;
    /* Reduced gap slightly for 5 items */
    overflow-x: auto;
    padding-bottom: 30px;
    /* Space for shadow/padding */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll iOS */
    scrollbar-width: none;
    /* Firefox */
    scroll-behavior: smooth;
    /* Crucial for JS scroll */
}

.horizontal-scroll-layout::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Default Horizontal Item (fallback) */
.horizontal-item {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
}

/* Product Specific: 5 items visible in container */
#produk-slider .horizontal-item {
    width: calc(20% - 16px);
    /* 5 items minus gaps */
    min-width: 200px;
    /* Min width for mobile */
}

/* Activity Specific: 4 items visible in container */
#aktivitas-slider .horizontal-item {
    width: calc(25% - 15px);
    /* 4 items minus gaps */
    min-width: 250px;
}

/* Slider Navigation Buttons */
.slider-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eef2f5;
    background: #ffffff;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(27, 215, 65, 0.3);
}

/* Produk Clean Card */
.produk-clean-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.produk-clean-card:hover {
    transform: translateY(-5px);
}

.produk-clean-img {
    width: 100%;
    aspect-ratio: 3/4;
    /* Consistent portrait ratio */
    height: auto;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    /* Subtle shadow */
}

.produk-clean-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.produk-clean-card:hover .produk-clean-img img {
    transform: scale(1.05);
}

.produk-placeholder {
    font-size: 40px;
    color: #e1e4e8;
}

.produk-clean-info {
    text-align: center;
    /* Centered as requested */
}

.produk-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.produk-subtitle {
    font-size: 14px;
    color: #9aa5b1;
    display: block;
}

/* Aktivitas Card (Restored Default Position) */
/* Aktivitas Portrait Overlay Card */
/* Aktivitas Portrait Overlay Card */
.aktivitas-item {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: auto !important;
    /* Override legacy 4/3 */
}

.aktivitas-item:hover {
    transform: translateY(-5px);
}

.aktivitas-thumb-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    /* Portrait ratio */
    position: relative;
    background: #000;
}

.aktivitas-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.aktivitas-item:hover .aktivitas-thumb-wrap img {
    transform: scale(1.1);
    opacity: 1;
}

/* Gradient Overlay & Text Info */
/* Gradient Overlay & Text Info */
.aktivitas-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    /* More top padding for gradient fade */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 10;
    /* Ensure on top */
}

.aktivitas-overlay-info h4 {
    font-size: 18px;
    /* Larger title */
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.3;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.aktivitas-overlay-info span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Mobile Adjustments for Header Row */
@media (max-width: 768px) {
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-center {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .header-right {
        position: absolute;
        right: 0;
        top: 0;
    }

    .section-header-row {
        position: relative;
    }
}

/* =========================================
   SINGLE POST & SIDEBAR STYLES (RESTORED)
   ========================================= */

/* Main Content Area */
.single-article {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.single-post-meta {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #777;
    font-size: 0.9rem;
}

.single-post-meta .meta-item {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
}

.single-post-meta .meta-item i {
    margin-right: 8px;
    color: var(--primary);
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content h2,
.single-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.single-post-content blockquote {
    border-left: 5px solid var(--primary);
    padding: 15px 20px;
    background: #f9f9f9;
    font-style: italic;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* Share Buttons */
.post-share-top {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.post-share-top span {
    font-weight: 600;
    margin-right: 15px;
    color: var(--primary-dark);
}

.share-btn {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff !important;
    /* Force white text */
    margin-right: 10px;
    font-size: 14px;
    transition: transform 0.2s;
    text-decoration: none !important;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: #fff !important;
}

.share-btn.fb {
    background: #3b5998;
}

.share-btn.tw {
    background: #1da1f2;
}

.share-btn.wa {
    background: #25d366;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
    border-left: 4px solid var(--primary);
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.author-info h5 {
    margin: 0 0 5px;
    color: var(--primary-dark);
}

.author-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
}

.related-title {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 25px;
    display: inline-block;
}

.related-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-thumb {
    display: block;
    height: 180px;
    overflow: hidden;
    background: #eee;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-card:hover .related-thumb img {
    transform: scale(1.1);
}

.related-content {
    padding: 15px;
}

.related-content h4 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.related-content h4 a {
    color: #333;
    text-decoration: none;
}

.related-content h4 a:hover {
    color: var(--primary);
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 100px;
    /* Sticky effect */
}

.widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    color: var(--primary-dark);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.2s;
}

.widget ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
    /* Slight movement */
}

/* Search Widget Styling */
.widget_search .search-form {
    display: flex;
}

.widget_search .search-field {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-right: none;
    padding: 10px 15px;
    border-radius: 25px 0 0 25px;
    outline: none;
}

.widget_search .search-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.widget_search .search-submit:hover {
    background: var(--primary-dark);
}

/* Custom Recent Posts Widget */
.pupuk-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pupuk-recent-posts li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.pupuk-recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pupuk-recent-posts .post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.pupuk-recent-posts .post-thumb img,
.pupuk-recent-posts .post-thumb .placeholder-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pupuk-recent-posts .post-thumb:hover img {
    transform: scale(1.1);
}

.pupuk-recent-posts .post-info {
    flex-grow: 1;
}

.pupuk-recent-posts .post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.pupuk-recent-posts .post-title:hover {
    color: var(--primary);
}

.pupuk-recent-posts .post-date {
    font-size: 0.8rem;
    color: #999;
    display: block;
}

/* Related Posts Date */
.related-date {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
    display: block;
}

.site-footer {
    color: #fff;
    position: relative;
}

.site-footer .footer-widget h4 {
    color: #ffd700;
    /* Gold for contrast */
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Sidebar Gallery Grid */
.widget-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item-sidebar {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.gallery-item-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item-sidebar:hover img {
    transform: scale(1.1);
}

.button-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.button-outline:hover {
    background: var(--primary);
    color: #fff;
}

.mt-3 {
    margin-top: 15px;
}

/* Backup Grid for Single Post (If Bootstrap fails) */
@media (min-width: 992px) {
    .single-post-section .row {
        display: flex;
        flex-wrap: wrap;
    }

    .single-post-section .col-lg-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
        max-width: 66.66666667%;
        padding-right: 15px;
        padding-left: 15px;
    }

    .single-post-section .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
        max-width: 33.33333333%;
        padding-right: 15px;
        padding-left: 15px;
    }
}

.img-fluid {
    max-width: 100%;
    height: auto;
}