/* =================================================================
   PROJECT: NIVARA PEST CONTROL WEBSITE
   FILE: style.css
   DESCRIPTION: Main stylesheet for global layout, components, and pages.
   
   TABLE OF CONTENTS:
   1.  Global Reset & Variables
   2.  Typography & Base Styles
   3.  Navigation Bar (Header)
   4.  Hero Section (Homepage)
   5.  Feature Section (Why Choose Us)
   6.  Services Section (Slider)
   7.  About Us Section (Homepage & Page)
   8.  News Section (Homepage & Page)
   9.  Testimonials Section
   10. Call to Action (CTA) Sections
   11. Service Detail Pages (Pest Control, Termite, etc.)
   12. Footer Section
   13. Global Responsive Adjustments
   ================================================================= */

/* =========================================
   1. GLOBAL RESET & VARIABLES
   ========================================= */
:root {
    --primary-green: #0f4c3a; /* Main Brand Color */
    --secondary-green: #0b3d2e; /* Darker Green for Hover */
    --accent-green: #1a7a5e; /* Lighter Green for Accents */
    --text-dark: #333333;
    --text-grey: #666666;
    --white: #ffffff;
    --light-bg: #f9fbfb;
    --border-color: #eee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 100px; /* Compensate for fixed navbar */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   3. NAVIGATION BAR (HEADER)
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 15px 0;
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    height: 45px;
    width: auto;
    display: block;
}

/* Navigation Links */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-green);
}

/* Nav Actions (Search & Signup) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon {
    cursor: pointer;
    color: var(--text-dark);
    font-size: 18px;
    transition: color 0.3s;
}

.search-icon:hover {
    color: var(--primary-green);
}

.btn-signup {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-signup:hover {
    background-color: var(--secondary-green);
}

/* Mobile Menu Elements */
.hamburger {
    display: none;
    font-size: 24px;
    color: var(--primary-green);
    cursor: pointer;
    transition: transform 0.3s;
}

.mobile-only {
    display: none;
}

/* --- Mobile Navigation Styles --- */
@media (max-width: 992px) {
    .hamburger { display: block; }
    .nav-actions { display: none; }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none; /* Hidden by default */
        flex-direction: column;
        align-items: center;
        z-index: 99;
    }

    nav.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 5px 0;
        font-size: 16px;
    }

    .mobile-only {
        display: block;
        margin-top: 15px;
    }

    .mobile-only a {
        background-color: var(--primary-green);
        color: white !important;
        padding: 12px 40px;
        border-radius: 5px;
        display: inline-block;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   4. HERO SECTION (HOMEPAGE)
   ========================================= */
.hero {
    position: relative;
    background-color: var(--white);
    padding: 0;
    overflow: hidden;
}

.hero-split {
    display: flex;
    width: 100%;
    height: calc(100vh - 100px);
    min-height: 600px;
}

/* Left Image Side */
.hero-image-side {
    flex: 1;
    width: 50%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.hero-image-side img {
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: left center;
    transform: scale(1.35);
    transform-origin: left bottom;
    filter: drop-shadow(10px 0px 30px rgba(0,0,0,0.1));
} 

/* =========================================
   UPDATE: HERO IMAGE (RESET ZOOM)
   ========================================= */
/*.hero-image-side {
    flex: 1;
    width: 50%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
} */

/*.hero-image-side img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*    object-position: center;*/
/*    transform: none;      */
/*    max-width: 100%;*/
/*    filter: none;*/


/*@media (max-width: 992px) {*/
/*    .hero-image-side {*/
/*        width: 100%;*/
/*        height: 400px;*/
/*    }*/
/*}*/

/* Right Text Side */
.hero-text-side {
    flex: 1;
    width: 50%;
    display: flex;
    align-items: center;
    padding-right: 5%;
}

.hero-text-content {
    max-width: 550px;
    margin-left: auto;
}

.hero-text-content h1 {
    font-size: 60px;
    line-height: 1.1;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 20px;
}

.text-green { color: var(--primary-green); text-transform: uppercase; }
.subheadline { font-size: 20px; color: var(--text-grey); margin-bottom: 40px; line-height: 1.6; }
.hero-text-content p {
    font-size: 16px;       /* Ukuran font standar yang nyaman dibaca */
    color: #555;           /* Warna abu tua (tidak hitam pekat) agar elegan */
    line-height: 1.8;      /* Jarak antar baris agar tidak mepet */
    margin-bottom: 35px;   /* Jarak ke tombol "Hubungi Kami" */
    max-width: 90%;        /* Membatasi lebar agar tidak terlalu panjang */
    font-weight: 400;      /* Ketebalan normal */
}

.info-card {
    background-color: #ffffff;
    padding: 35px 40px;       /* Memberi ruang di dalam kotak */
    border-radius: 50px;      /* Membuat sudut sangat bulat */
    box-shadow: 0 20px 60px rgba(0,0,0,0.08); /* Bayangan halus agar melayang */
    margin-top: 30px;         /* Jarak dari judul atas */
    max-width: 680px;         /* Batas lebar kotak */
    position: relative;
    z-index: 10;
}

/* Style khusus paragraf di dalam kotak ini */
.info-card p {
    font-size: 12px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px; /* Jarak ke tombol */
}

/* Contact Box inside Hero */
.contact-row { display: flex; align-items: center; gap: 20px; }
.btn-contact {
    background-color: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s, transform 0.3s;
}
.btn-contact:hover { background-color: var(--secondary-green); transform: translateY(-2px); }

.phone-details { display: flex; flex-direction: column; }
.phone-number { font-weight: 800; color: var(--primary-green); font-size: 20px; }
.website-link { font-size: 12px; color: var(--text-grey); }

@media (max-width: 992px) {
    .hero-split { flex-direction: column; height: auto; padding-bottom: 60px; }
    .hero-image-side { width: 100%; height: 450px; justify-content: center; margin-bottom: 30px; overflow: hidden; }
    .hero-image-side img { width: 100%; height: auto; object-fit: contain; object-position: center bottom; margin-left: 0; }
    .hero-text-side { width: 100%; padding-right: 0; text-align: center; }
    .hero-text-content { margin: 0 auto; padding: 0 20px; }
    .hero-text-content h1 { font-size: 42px; }
    .contact-row { flex-direction: column; gap: 15px; }
}

/* =========================================
   5. FEATURE SECTION (WHY CHOOSE US)
   ========================================= */
.why-choose {
    position: relative;
    min-height: 700px;
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.why-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 5%;
    position: relative;
    z-index: 10;
}

/* Features Grid (Left) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 450px;
    flex-shrink: 0;
}

.feature-card {
    padding: 25px;
    border-radius: 20px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-5px); }
.card-green { background-color: var(--primary-green); }
.card-brown { background-color: #8b7d6b; }

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 60px;
    width: 100%;
    margin-bottom: 15px;
}

.feature-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin: 0;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    margin-top: 0;
}

.feature-card p {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

/* Text Content (Center) */
.why-text {
    margin-left: 60px;
    width: 250px;
}

.why-text h2 {
    font-size: 46px;
    color: var(--primary-green);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
}

.btn-contact-dark {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(11, 61, 46, 0.3);
    transition: background 0.3s;
}

.btn-contact-dark:hover { background-color: #082e22; }

/* Image (Right) */
.why-image {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 90%;
    width: auto;
    z-index: 1;
    pointer-events: none;
}

.why-image img {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(-10px 0 20px rgba(0,0,0,0.1));
}

@media (max-width: 992px) {
    .why-choose { padding: 50px 0; height: auto; min-height: auto; }
    .why-container { flex-direction: column-reverse; padding-left: 0; width: 90%; }
    .features-grid { width: 100%; gap: 15px; }
    .feature-card { min-height: 180px; }
    .why-text { width: 100%; margin-left: 0; margin-bottom: 40px; text-align: center; }
    .why-image { display: none; }
}

/* =========================================
   6. SERVICES SECTION (SLIDER)
   ========================================= */
.services-section {
    background: linear-gradient(to bottom, var(--secondary-green) 65%, var(--white) 35%);
    padding: 80px 0 60px 0;
    overflow: hidden;
}

.service-header {
    margin-bottom: 40px;
    color: var(--white);
    width: 100%;
}

.header-content h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    color: var(--white);
}

.header-content p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

/* Slider Wrapper */
.services-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 0 60px;
    padding-bottom: 20px;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #082e22;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-btn:hover {
    background-color: var(--white);
    color: var(--secondary-green);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Slider Container */
.services-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-slider::-webkit-scrollbar { display: none; }

/* Service Card */
.service-card {
    flex: 0 0 320px;
    height: 300px;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover { transform: translateY(-10px); }

.card-image {
    width: 100%;
    height: 65%;
    overflow: hidden;
    background-color: #eee;
}

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

.service-card:hover .card-image img { transform: scale(1.1); }

.card-bottom {
    height: 35%;
    background-color: #635847;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-bottom h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

.btn-small {
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-small:hover { background-color: var(--accent-green); }

@media (max-width: 768px) {
    .services-slider-wrapper { padding: 0; }
    .nav-btn { display: none; }
    .service-card { flex: 0 0 280px; height: 280px; margin-right: 15px; }
    .services-slider { padding-left: 20px; padding-right: 20px; }
}

/* =========================================
   7. ABOUT US SECTION (HOMEPAGE)
   ========================================= */
.about-us {
    padding: 100px 0;
    background-color: var(--white);
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-header h2 {
    font-size: 36px;
    color: var(--primary-green);
    font-weight: 800;
    margin-bottom: 10px;
}

.about-header p {
    color: #777;
    font-size: 16px;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    display: block;
}

.about-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-about {
    background-color: var(--secondary-green);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.btn-about:hover { background-color: var(--accent-green); }

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 30px; max-width: 700px; margin: 0 auto; }
    .about-content { padding: 0; text-align: center; order: 1; }
    .about-image img { border-radius: 30px; }
}

/* =========================================
   8. NEWS SECTION (HOMEPAGE)
   ========================================= */
.news-section {
    background-color: var(--primary-green);
    padding: 100px 0;
    color: var(--white);
}

.news-container { display: flex; align-items: center; gap: 60px; }
.news-text { flex: 1; }
.news-label { font-size: 14px; letter-spacing: 2px; font-weight: 600; display: block; margin-bottom: 20px; }
.news-text h2 { font-size: 48px; font-weight: 700; margin-bottom: 25px; }
.news-text p { opacity: 0.8; margin-bottom: 40px; line-height: 1.6; }
.btn-news { background-color: #1a6552; color: var(--white); padding: 14px 35px; border-radius: 30px; text-decoration: none; }

.news-image-wrapper { flex: 1; height: 400px; position: relative; border-radius: 30px; }
.news-image-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.news-nav-btn {
    position: absolute; top: 50%; right: -25px; transform: translateY(-50%);
    width: 60px; height: 60px; border-radius: 50%; background-color: rgba(255,255,255,0.8);
    border: none; cursor: pointer; color: var(--primary-green); font-size: 20px;
}

@media (max-width: 992px) {
    .news-container { flex-direction: column-reverse; gap: 30px; }
    .news-text { width: 100%; text-align: center; }
    .news-text h2 { font-size: 30px; }
    .news-image-wrapper { width: 100%; height: 250px; flex: none; }
    .news-nav-btn { right: 15px; width: 45px; height: 45px; }
    .news-section { padding: 50px 0; }
}

/* =========================================
   9. TESTIMONIALS SECTION
   ========================================= */
.testimoni-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.testimoni-header { text-align: center; margin-bottom: 60px; }
.testimoni-header h2 { font-size: 36px; font-weight: 800; color: var(--primary-green); margin-bottom: 15px; }
.testimoni-header p { color: #777; font-size: 16px; }

.testimoni-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
}

.testimoni-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.testimoni-slider::-webkit-scrollbar { display: none; }

.testimoni-card {
    flex: 0 0 350px;
    background-color: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.02);
}

.testimoni-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.profile { display: flex; align-items: center; gap: 15px; }
.profile img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid #eef2f1; }
.profile-info h4 { font-size: 18px; font-weight: 700; color: #333; margin-bottom: 3px; }
.profile-info span { font-size: 12px; color: #888; display: block; margin-bottom: 5px; }
.stars { color: #ffc107; font-size: 12px; }
.quote-icon { font-size: 40px; color: rgba(11, 61, 46, 0.1); }
.card-body p { font-size: 15px; color: #555; line-height: 1.7; font-style: italic; }

.testi-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%;
    background-color: var(--white); border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--primary-green); font-size: 18px; cursor: pointer; transition: all 0.3s; z-index: 10;
    display: flex; align-items: center; justify-content: center;
}
.testi-btn:hover { background-color: var(--primary-green); color: var(--white); }
.prev-btn { left: -10px; }
.next-btn { right: -10px; }

@media (max-width: 768px) {
    .testimoni-wrapper { padding: 0; max-width: 100%; }
    .testi-btn { display: none; }
    .testimoni-slider { padding: 20px 20px; gap: 15px; }
    .testimoni-card { flex: 0 0 300px; padding: 25px; }
}

/* =========================================
   10. CTA SECTION (GENERAL)
   ========================================= */
.cta-section {
    padding: 60px 0 100px 0;
    background-color: var(--white);
}

.cta-box {
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 80px 40px;
    border-radius: 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(15, 76, 58, 0.25);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.cta-box h2 { font-size: 36px; font-weight: 700; line-height: 1.3; margin-bottom: 20px; }
.cta-box p { font-size: 16px; opacity: 0.9; max-width: 600px; margin-bottom: 40px; line-height: 1.6; }

.btn-cta {
    background-color: #1a7f64;
    color: var(--white);
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-cta:hover { background-color: #249675; transform: translateY(-3px); }

/* =========================================
   11. FOOTER SECTION
   ========================================= */
.site-footer {
    background-color: var(--primary-green);
    color: #fff;
    padding: 70px 0 40px 0;
    font-size: 15px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col { flex: 1; min-width: 150px; }
.brand-col { flex: 1.5; padding-right: 20px; }

.footer-logo img { max-width: 180px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.company-name { font-size: 18px; font-weight: 700; margin-bottom: 15px; color: #fff; }
.company-address { font-style: normal; line-height: 1.6; color: #ccc; font-size: 14px; }

.footer-heading { font-size: 18px; margin-bottom: 25px; color: #fff; font-weight: 700; position: relative; }

/* Links */
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #ddd; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: #2a8a78; padding-left: 5px; }

/* Footer Contacts */
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { margin-bottom: 12px; }
.footer-contact li a { color: #ddd !important; text-decoration: none; font-size: 14px; transition: 0.3s; display: block; }
.footer-contact li a:hover { color: #2a8a78 !important; padding-left: 5px; }

/* Footer Services Column Split */
.footer-col:nth-child(3) { flex: 1.5; }
.footer-col:nth-child(3) .footer-links { display: grid; grid-template-columns: auto auto; gap: 10px 40px; justify-content: start; }
.footer-bottom {
    margin-top: 40px; 
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Garis pembatas tipis */
    text-align: center; /* Memaksa teks ke tengah */
    width: 100%;
}

.footer-bottom p {
    color: #aaaaaa; 
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .site-footer { padding: 40px 0 30px 0; text-align: left; }
    .footer-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 20px; padding: 0 20px; }
    .footer-col.brand-col { grid-column: span 2; order: 1; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 0; padding-right: 0; }
    .footer-logo img { margin: 0 auto 15px auto; max-width: 140px; }
    .footer-col:nth-child(2) { order: 2; }
    .footer-col:nth-child(4) { order: 3; }
    .footer-col:nth-child(3) { grid-column: span 2; order: 4; background-color: rgba(255,255,255,0.05); padding: 20px; border-radius: 15px; }
    .footer-col:nth-child(3) .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
    .footer-heading { font-size: 16px; color: #2a8a78; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
    .footer-links a, .footer-contact li { font-size: 14px; color: #ccc; }
}

/* =========================================
   12. ABOUT US PAGE (SPECIFIC)
   ========================================= */
.mobile-only-img { display: none; }

.about-hero-section {
    width: 100%;
    min-height: 100vh;
    background-image: url('img/tentang-kami.png');
    background-size: cover;
    background-position: center 75px;
    background-repeat: no-repeat;
    display: flex; align-items: center; position: relative;
    margin-top: -100px; padding-top: 150px; padding-bottom: 50px;
}

.about-content-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; }
.about-text { flex: 1; max-width: 550px; }
.about-text h1 { font-size: 56px; color: var(--primary-green); font-weight: 800; margin-bottom: 20px; line-height: 1.1; }
.about-text h2 { font-size: 24px; color: #555; font-weight: 400; line-height: 1.5; }
.text-green-bold { color: #333; font-weight: 800; text-transform: uppercase; }

.about-floating-box-area { flex: 1; display: flex; justify-content: center; align-items: flex-end; height: 100%; padding-top: 300px; padding-right: 50px; }
.prof-card { background-color: #1f3a33; color: var(--white); padding: 30px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); min-width: 300px; position: relative; }
.card-header { margin-bottom: 20px; }
.card-header small { font-size: 14px; font-weight: 300; opacity: 0.9; display: block; margin-bottom: 5px; }
.card-header h3 { font-size: 28px; font-weight: 800; margin: 0; line-height: 1; }
.prof-list { list-style: none; padding: 0; margin: 0; }
.prof-list li { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 15px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.prof-list li:last-child { border-bottom: none; margin-bottom: 0; }
.prof-list li strong { font-size: 18px; font-weight: 700; }

@media (max-width: 992px) {
    .mobile-only-img { display: block; width: 100%; height: auto; max-width: 500px; margin: 30px auto; border-radius: 20px; }
    .about-hero-section { background-image: none !important; background-color: #f9f9f9; min-height: auto; margin-top: -25px; padding-top: 120px; padding-bottom: 60px; align-items: flex-start; }
    .about-content-wrapper { flex-direction: column; text-align: center; }
    .about-text { width: 100%; max-width: 100%; margin-bottom: 0; padding: 0; }
    .about-text h1 { font-size: 36px; }
    .about-text h2 { font-size: 18px; }
    .about-floating-box-area { padding: 0; margin-top: 0; width: 100%; justify-content: center; align-items: center; }
    .prof-card { width: 90%; min-width: auto; }
}

/* Company Profile Section */
.company-profile-section { padding: 80px 0 100px 0; background-color: var(--white); }
.cp-title { font-size: 36px; font-weight: 800; color: var(--primary-green); margin-bottom: 40px; text-align: left; }
.cp-content-row { display: flex; gap: 80px; align-items: center; margin-bottom: 60px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.cp-image-placeholder { flex: 1; background-color: #e0e0e0; border-radius: 30px; aspect-ratio: 1 / 1; max-width: 400px; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #999; font-weight: 600; }
.cp-image-placeholder i { font-size: 50px; margin-bottom: 15px; color: #aaa; border: 3px solid #aaa; padding: 15px; border-radius: 15px; }
.cp-text { flex: 1; }
.cp-text p { font-size: 15px; line-height: 1.8; color: #555; margin-bottom: 20px; text-align: justify; }
.cp-text p:last-child { margin-bottom: 0; }
.cp-bottom-image { width: 100%; max-width: 1000px; margin: 0 auto; height: 450px; border-radius: 40px; overflow: hidden; position: relative; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.cp-bottom-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

@media (max-width: 992px) {
    .cp-title { font-size: 28px; text-align: center; }
    .cp-content-row { flex-direction: column; gap: 30px; }
    .cp-image-placeholder { width: 100%; aspect-ratio: 16 / 9; }
    .cp-text { width: 100%; }
    .cp-bottom-image { height: 250px; border-radius: 20px; }
}

/* Visi Misi Section */
.visi-misi-design-section { padding: 60px 0 100px 0; background-color: var(--white); }
.vm-title-col h2, .vm-title-block { font-size: 32px; font-weight: 800; color: var(--primary-green); text-transform: uppercase; margin: 0; line-height: 1.2; }
.vm-divider { border: 0; height: 1px; background-color: #0f4c3a; margin: 50px 0; opacity: 0.3; }
.vm-row, .vm-content-row { display: flex; align-items: flex-start; gap: 0; }
.vm-title-col, .vm-image-placeholder { flex: 0 0 40%; max-width: 400px; margin-right: 50px; }
.vm-text-col, .vm-list-content { flex: 1; }
.vm-text-col p { font-size: 16px; color: #555; line-height: 1.8; margin-top: 5px; text-align: justify; }
.vm-title-block { margin-bottom: 40px; text-align: left; }
.vm-image-placeholder { display: flex; justify-content: center; align-items: center; background-color: #e0e0e0; border-radius: 30px; aspect-ratio: 1 / 1; width: 100%; color: #aaa; }
.vm-image-placeholder i { font-size: 50px; border: 3px solid #aaa; padding: 15px; border-radius: 15px; }
.vm-list-content ol { padding-left: 20px; margin: 0; }
.vm-list-content li { font-size: 15px; line-height: 1.8; color: #555; margin-bottom: 15px; padding-left: 10px; text-align: justify; }

@media (max-width: 768px) {
    .vm-row, .vm-content-row { flex-direction: column; gap: 20px; }
    .vm-title-col, .vm-image-placeholder, .vm-text-col, .vm-list-content { flex: none; width: 100%; max-width: 100%; margin-right: 0; }
    .vm-image-placeholder { aspect-ratio: 16 / 9; margin-bottom: 10px; }
    .vm-text-col p, .vm-list-content li { text-align: left; }
}

/* =========================================
   13. SERVICE DETAIL PAGES (PEST CONTROL, ETC)
   ========================================= */

/* Hero Section Base */
.pest-hero-section, .nyamuk-hero-section, .lalat-hero-section, .rayap-hero-section, .disinfeksi-hero-section, .kecoa-hero-section {
    width: 100%;
    min-height: 85vh;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: -25px;
    padding-top: 150px;
    padding-bottom: 50px;
}

/* --- HERO VARIATIONS --- */
/* Pest Control (Default) */
.pest-hero-section { background-image: url('img/home-pest-control.png'); background-size: 100% 100%; background-position: center bottom; }
.pest-hero-content { max-width: 700px; position: relative; z-index: 2; padding-left: 20px; }

/* Anti Rayap */
.rayap-hero-section { background-image: url('img/anti-rayap-banner.png'); background-position: center center; }
.rayap-hero-section .container { display: flex; justify-content: flex-end; width: 100%; }
.rayap-hero-section .pest-hero-content { text-align: right; max-width: 650px; }
.rayap-hero-section .pest-cta-box { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; gap: 20px; }
.rayap-hero-section .pest-cta-info { text-align: right; }

/* Anti Nyamuk */
.nyamuk-hero-section { background-image: url('img/anti-nyamuk-banner.png'); background-position: center center; }
.nyamuk-hero-section .container { display: flex; justify-content: flex-end; width: 100%; }
.nyamuk-hero-section .pest-hero-content { text-align: right; max-width: 650px; }
.nyamuk-hero-section .pest-cta-box { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; gap: 20px; }
.nyamuk-hero-section .pest-cta-info { text-align: right; }

/* Disinfeksi */
.disinfeksi-hero-section { background-image: url('img/disinfeksi-banner.png'); background-position: center center; }
.disinfeksi-hero-section .container { display: flex; justify-content: flex-end; width: 100%; }
.disinfeksi-hero-section .pest-hero-content { text-align: right; max-width: 650px; }
.disinfeksi-hero-section .pest-cta-box { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; gap: 20px; }
.disinfeksi-hero-section .pest-cta-info { text-align: right; }

/* Anti Lalat */
.lalat-hero-section { background-image: url('img/anti-lalat-banner.png'); background-position: center right; }
.lalat-hero-section .pest-hero-content { max-width: 600px; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Anti Kecoa */
.kecoa-hero-section { background-image: url('img/anti-kecoa-banner.png'); background-size: 100% 100%; background-position: center bottom; }

/* General Pest Hero Elements */
.pest-hero-title { font-size: 52px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: var(--primary-green); text-transform: capitalize; letter-spacing: 2px; }
.pest-hero-subtitle { font-size: 20px; color: #555; margin-bottom: 40px; line-height: 1.6; letter-spacing: 1px; }
.pest-cta-box { display: inline-flex; align-items: center; background-color: #fff; padding: 10px 30px 10px 10px; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); gap: 20px; }
.btn-pest-green { background-color: var(--primary-green); color: #fff; padding: 12px 30px; border-radius: 30px; font-weight: 700; font-size: 14px; text-decoration: none; transition: 0.3s; border: none transparent; outline: none transparent; }
.pest-cta-info { display: flex; flex-direction: column; align-items: flex-start; }
.pest-number { font-size: 18px; font-weight: 800; color: var(--primary-green); }
.pest-web { font-size: 13px; color: #666; }

/* Responsive adjustments for all pest heroes */
@media (max-width: 992px) {
    .pest-hero-section { background-size: cover; background-position: 70% bottom; margin-top: 0; padding-top: 130px; min-height: 500px; align-items: center; }
    .pest-hero-content { max-width: 60%; padding-left: 0; }
    .pest-hero-title { font-size: 32px; letter-spacing: 1px; }
    .pest-cta-box { padding: 8px 15px; gap: 15px; }
    .btn-pest-green { padding: 10px 20px; font-size: 12px; }

    /* Override for specific pages on Tablet/Mobile */
    .rayap-hero-section, .nyamuk-hero-section, .disinfeksi-hero-section { background-position: 25% center; min-height: 600px; }
    .rayap-hero-section .container, .nyamuk-hero-section .container, .disinfeksi-hero-section .container { justify-content: center; }
    .rayap-hero-section .pest-hero-content, .nyamuk-hero-section .pest-hero-content, .disinfeksi-hero-section .pest-hero-content { text-align: center; max-width: 100%; background: rgba(255, 255, 255, 0.7); padding: 30px; border-radius: 20px; }
    .rayap-hero-section .pest-cta-box, .nyamuk-hero-section .pest-cta-box, .disinfeksi-hero-section .pest-cta-box { flex-direction: column; gap: 15px; }
    .rayap-hero-section .pest-cta-info, .nyamuk-hero-section .pest-cta-info, .disinfeksi-hero-section .pest-cta-info { text-align: center; }
    
    .lalat-hero-section { background-position: 70% center; padding-top: 130px; min-height: 600px; }
    .lalat-hero-section .pest-hero-content { text-align: center; max-width: 100%; background: rgba(255, 255, 255, 0.8); padding: 30px; border-radius: 20px; text-shadow: none; }
    .lalat-hero-section .pest-cta-box { flex-direction: column; gap: 15px; }
    .lalat-hero-section .pest-cta-info { text-align: center; }
}

@media (max-width: 576px) {
    .pest-hero-section { background-position: 78% center; background-size: cover; align-items: center; min-height: 100vh; padding-top: 80px; padding-bottom: 50px; margin-top: 0; }
    .pest-hero-content { max-width: 90%; background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(5px); padding: 25px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-left: 0; }
    .pest-hero-title { font-size: 28px; line-height: 1.2; margin-bottom: 10px; }
    .pest-hero-subtitle { font-size: 14px; margin-bottom: 20px; line-height: 1.5; }
    .pest-cta-box { flex-direction: column; align-items: flex-start; width: 100%; padding: 0; background-color: transparent; box-shadow: none; gap: 15px; }
    .btn-pest-green { font-size: 13px; width: 100%; text-align: center; text-shadow: none !important; }
    .pest-cta-info { width: 100%; align-items: center; }
    .pest-number, .pest-web { text-shadow: none !important; }
    
    /* Disinfeksi background transparency override */
    .disinfeksi-hero-section .pest-hero-content { background: rgba(255, 255, 255, 0.8); }
    
    .kecoa-hero-section { background-position: 78% center; background-size: cover; padding-top: 80px; padding-bottom: 50px; margin-top: 0; }
    .rayap-hero-section { background-image: linear-gradient(to left, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.4) 100%), url('img/anti-rayap-banner.png'); background-position: center bottom; background-size: cover; }
}

/* Service Detail Content */
.pest-content-section { padding: 80px 0; background-color: #fff; color: #333; }
.pest-main-header { max-width: 800px; margin: 0 auto 60px auto; }
.pest-section-title { font-size: 36px; font-weight: 800; color: var(--primary-green); margin-bottom: 20px; text-transform: capitalize; }
.pest-section-desc { font-size: 16px; color: #555; line-height: 1.6; }

.pest-row { display: flex; align-items: flex-start; gap: 50px; margin-bottom: 80px; }
.pest-text-col, .pest-img-col { flex: 1; }
.pest-subtitle { font-size: 24px; font-weight: 800; color: var(--primary-green); margin-bottom: 25px; border-bottom: 2px solid #eee; padding-bottom: 15px; display: inline-block; }
.pest-item { margin-bottom: 20px; }
.pest-item strong { display: block; color: var(--primary-green); font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.pest-item p { font-size: 15px; color: #444; line-height: 1.6; margin: 0; text-align: justify; }

.pest-placeholder-img { width: 100%; aspect-ratio: 4 / 3; background-color: #e0e0e0; border-radius: 20px; display: flex; justify-content: center; align-items: center; }
.pest-placeholder-img i { font-size: 50px; color: #fff; border: 4px solid #fff; padding: 20px; border-radius: 20px; }

/* Table Styles */
.pest-treatment-wrapper { margin-bottom: 80px; }
.pest-table { width: 100%; border-collapse: collapse; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.pest-table thead { background-color: var(--primary-green); color: #fff; }
.pest-table th { padding: 15px 20px; text-align: left; font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.pest-table tbody tr { background-color: #fff; border-bottom: 1px solid #eee; }
.pest-table tbody tr:nth-child(even) { background-color: #f9f9f9; }
.pest-table td { padding: 15px 20px; font-size: 15px; color: #444; line-height: 1.6; vertical-align: top; }
.pest-table td.fw-bold { font-weight: 700; color: var(--primary-green); }

/* Gallery */
.pest-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.gallery-item { width: 100%; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); background-color: #eee; }
.gallery-full-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:hover .gallery-full-img { transform: scale(1.1); }

@media (max-width: 992px) {
    .pest-row, .pest-row.reverse-layout { flex-direction: column; gap: 30px; }
    .pest-row .pest-img-col { order: 1; }
    .pest-row .pest-text-col { order: 2; }
    .pest-section-title { font-size: 28px; }
    .pest-subtitle { font-size: 22px; }
    .table-responsive { overflow-x: auto; }
    .pest-table { min-width: 600px; }
    .pest-gallery-grid { grid-template-columns: 1fr; }
}

/* Call Exact Section (CTA Bottom of Detail Pages) */
.call-exact-section { padding-top: 0; padding-bottom: 0; margin-top: 50px; background-color: #fff; width: 100%; overflow: hidden; }
.call-exact-wrapper { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; max-width: 100%; margin: 0; padding: 0; }
.call-text-side { flex: 1; padding-left: 5%; padding-right: 20px; align-self: center; text-align: center; padding-bottom: 50px; z-index: 5; }
.call-text-side h2 { font-size: 36px; font-weight: 800; color: var(--primary-green); margin-bottom: 15px; line-height: 1.2; }
.subtitle-text { font-size: 18px; color: #333; margin-bottom: 5px; font-weight: 500; }
.phone-number-big { font-size: 32px; font-weight: 800; color: var(--primary-green); margin-bottom: 20px; white-space: nowrap; }
.description { font-size: 16px; color: #000; line-height: 1.5; max-width: 600px; margin: 0 auto; }
.call-image-side { flex: 0 0 auto; display: flex; justify-content: flex-end; align-items: flex-end; padding-right: 0 !important; margin-right: 0 !important; }
.call-image-side img { height: 500px; width: auto; display: block; }

@media (max-width: 1366px) {
    .call-text-side h2 { font-size: 32px; }
    .phone-number-big { font-size: 26px; }
    .call-image-side img { height: 450px; }
}

@media (max-width: 992px) {
    .call-exact-wrapper { flex-direction: column; align-items: center; }
    .call-text-side { width: 100%; padding: 40px 20px; }
    .call-text-side h2 { font-size: 26px; white-space: normal; }
    .phone-number-big { font-size: 20px; white-space: normal; word-break: break-word; }
    .call-image-side { width: 100%; justify-content: center; }
    .call-image-side img { height: auto; width: 90%; max-width: 350px; }
}

/* =================================================================
   14. NEWS SECTION (COMPLETE: HERO, LISTING & DETAIL)
   ================================================================= */

/* --- A. NEWS HERO SECTION (Shared) --- */
.news-hero-section {
    width: 100%;
    min-height: 100vh;
    background-image: url('img/tentang-kami.png');
    background-size: cover;
    background-position: center 75px;
    background-repeat: no-repeat;
    display: flex; 
    align-items: center; 
    position: relative;
    margin-top: -100px; 
    padding-top: 150px; 
    padding-bottom: 50px;
}

.news-hero-content { 
    max-width: 650px; 
    position: relative; 
    z-index: 2; 
}

.news-hero-title { 
    font-size: 58px; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 40px; 
    text-transform: capitalize; 
}

.text-orange { color: #bf4c26; }
.text-dark-green { color: #0f3a33; }

.news-cta-box { 
    display: inline-flex; 
    align-items: center; 
    background-color: #fff; 
    padding: 8px 30px 8px 8px; 
    border-radius: 50px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    gap: 20px; 
}

.btn-cta-green { 
    background-color: #0f3a33; 
    color: #fff; 
    padding: 12px 25px; 
    border-radius: 30px; 
    font-weight: 700; 
    font-size: 14px; 
    text-decoration: none; 
    transition: 0.3s; 
}
.btn-cta-green:hover { background-color: #0a2924; }

.cta-info { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    justify-content: center; 
}
.cta-number { font-size: 18px; font-weight: 800; color: #0f3a33; line-height: 1.2; }
.cta-web { font-size: 13px; color: #666; letter-spacing: 0.5px; }

/* Responsive Hero */
@media (max-width: 992px) {
    .news-hero-section { background-position: 85% center; margin-top: 0; padding-top: 130px; padding-bottom: 60px; min-height: 500px; align-items: center; }
    .news-hero-content { max-width: 60%; }
    .news-hero-title { font-size: 32px; margin-bottom: 25px; }
    .news-cta-box { padding: 8px 15px; gap: 15px; max-width: 100%; }
    .btn-cta-green { padding: 10px 20px; font-size: 13px; }
    .cta-number { font-size: 15px; }
    .cta-web { font-size: 11px; }
}

@media (max-width: 576px) {
    .news-hero-section { background-position: 90% center; align-items: flex-start; }
    .news-hero-content { max-width: 100%; padding-right: 20px; }
    .news-hero-title { font-size: 32px; line-height: 1.2; }
    .news-cta-box { flex-direction: column; align-items: flex-start; background-color: rgba(255, 255, 255, 0.95); padding: 20px; border-radius: 20px; width: fit-content; gap: 15px; }
    .cta-info { align-items: flex-start; }
}

/* --- B. NEWS LISTING PAGE (news.html - GRID SYSTEM) --- */

.news-page-header {
    background-color: #f4f8f6;
    padding: 160px 20px 60px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

.news-main-title {
    font-size: 48px;
    font-weight: 800;
    color: #0f3a33;
    margin-bottom: 20px;
}

.news-main-desc {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.news-feed-section {
    background-color: #fff;
    padding: 60px 0 100px 0;
}

.news-grid {
    display: grid;
    /* UPDATE: auto-fill & minmax 250px agar muat 4 kartu */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 30px;
    
    /* UPDATE: stretch agar tinggi kartu sama rata */
    align-items: stretch;
    
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Card Style */
.news-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    transition: transform 0.3s;
    height: 100%; /* Pastikan kartu mengisi tinggi penuh grid */
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Thumbnail Wrapper */
.news-thumb {
    width: 100%;
    height: 220px; /* Tinggi fix agar gambar tidak raksasa */
    overflow: hidden;
    background-color: #eee;
    flex-shrink: 0; /* Mencegah gambar menyusut */
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}
.news-card:hover .news-thumb img { transform: scale(1.1); }

/* Card Content */
.news-card-body { 
    padding: 25px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; /* Mendorong tombol ke bawah rata */
}
.news-date { font-size: 12px; font-weight: 700; color: #2a8a78; text-transform: uppercase; margin-bottom: 10px; }
.news-card-title { font-size: 20px; font-weight: 700; color: #0f3a33; margin-bottom: 15px; line-height: 1.4; }
.news-excerpt { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 25px; }

.btn-read-more {
    margin-top: auto; /* Tombol selalu di dasar kartu */
    background: none; border: none;
    color: #0f3a33; font-weight: 700;
    cursor: pointer; font-size: 14px;
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.btn-read-more:hover { color: #2a8a78; gap: 12px; }

@media (max-width: 768px) {
    .news-page-header { padding-top: 130px; }
    .news-main-title { font-size: 32px; }
    .news-grid { grid-template-columns: 1fr; } /* 1 kolom di HP */
}


/* --- C. NEWS DETAIL PAGE (detail.html) --- */

.news-detail-section, .related-news-section, .news-bottom-cta { 
    background-color: #ffffff !important; 
    position: relative; 
    z-index: 10; 
}

.news-detail-section { padding: 80px 0 60px 0; }
.news-container-small { max-width: 850px; margin: 0 auto; }

.article-header { margin-bottom: 40px; }
.news-category-tag { display: inline-block; font-size: 14px; font-weight: 700; color: #0f3a33; margin-bottom: 15px; letter-spacing: 1px; text-transform: uppercase; }
.article-title { font-size: 36px; font-weight: 800; color: #0f3a33; line-height: 1.3; }

.article-image-placeholder { 
    width: 100%; aspect-ratio: 16 / 9; 
    background-color: #e0e0e0; border-radius: 25px; 
    display: flex; justify-content: center; align-items: center; 
    margin-bottom: 50px; 
}
.article-image-placeholder i { font-size: 50px; color: #fff; background-color: #ccc; padding: 20px; border-radius: 50%; }

.article-body p { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 25px; }
.article-subheading { font-size: 22px; font-weight: 800; color: #0f3a33; margin-top: 40px; margin-bottom: 15px; }

/* Related News */
.related-news-section { padding: 60px 0 100px 0; border-top: 1px solid #eee; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px 40px; }

.related-img-box { width: 100%; aspect-ratio: 1 / 1; background-color: #e0e0e0; border-radius: 20px; margin-bottom: 25px; display: flex; justify-content: center; align-items: center; }
.related-img-box i { font-size: 30px; color: #999; }
.related-title { font-size: 22px; font-weight: 800; color: #0f3a33; line-height: 1.3; margin-bottom: 20px; }
.btn-detail { display: inline-block; background-color: #0f3a33; color: #fff !important; padding: 10px 25px; border-radius: 25px; font-size: 14px; font-weight: 700; text-decoration: none; transition: 0.3s; }

/* CTA Bottom Green */
.news-bottom-cta { padding: 0 0 120px 0; }
.cta-green-card { background-color: #0f3a33; border-radius: 40px; padding: 70px 40px; text-align: center; color: #fff !important; max-width: 900px; margin: 0 auto; box-shadow: 0 25px 50px rgba(15, 58, 51, 0.2); }
.cta-card-title { font-size: 38px; font-weight: 800; color: #fff; margin-bottom: 25px; }
.cta-card-desc { font-size: 16px; color: rgba(255, 255, 255, 0.8); margin-bottom: 45px; max-width: 650px; margin: 0 auto 45px auto; }
.btn-cta-teal { display: inline-block; background-color: #2a8a78; color: #fff !important; padding: 15px 45px; border-radius: 15px; font-weight: 700; font-size: 16px; text-decoration: none; transition: 0.3s; border: none transparent; }

/* Responsive Detail Page */
@media (max-width: 768px) {
    .article-title { font-size: 26px; }
    .article-image-placeholder { border-radius: 15px; margin-bottom: 30px; }
    .article-body p { text-align: left; }
    .related-grid { grid-template-columns: 1fr; gap: 40px; }
    .related-title { font-size: 20px; }
    .cta-green-card { padding: 40px 20px; border-radius: 25px; }
    .cta-card-title { font-size: 26px; }
    .cta-card-desc { font-size: 14px; }
    .btn-cta-teal { width: 100%; text-align: center; }
}

/* =========================================
   FITUR SEARCH BAR (EXPANDABLE)
   ========================================= */
.nav-actions {
    position: relative; /* Agar posisi search stabil */
    gap: 15px; /* Sesuaikan jarak antar elemen */
}

/* Wadah Input (Awalnya Tersembunyi/Kecil) */
.search-container input {
    width: 0;                /* Lebar 0 agar tidak terlihat */
    opacity: 0;              /* Transparan */
    padding: 8px 0;
    border: none;
    border-bottom: 2px solid var(--primary-green);
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.4s ease; /* Efek animasi halus */
}

/* Saat Search Aktif (Class ini ditambah lewat JS) */
.search-container.active input {
    width: 200px;            /* Melebar jadi 200px */
    opacity: 1;              /* Menjadi terlihat */
    padding-left: 10px;
    margin-right: 10px;
}

/* Warna Highlight untuk hasil pencarian */
/* --- CSS PENCARIAN --- */
.highlight {
    background-color: yellow !important;
    color: black !important;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(255, 255, 0, 0.7);
}