
:root {
    --primary-color: #004d40; /* Dark Teal */
    --secondary-color: #f5b700; /* Gold */
    --dark-gray: #333333;
    --light-gray: #f7f7f7;
    --white: #ffffff;
    --font-main: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-body);
    margin: 0;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
}

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

/* Header */
header {
    background: var(--white);
    padding: 0.1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.header-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

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

header .logo img {
    height: 60px;
    transition: height 0.3s ease;
}

.header-scrolled .logo img {
    height: 50px;
}

nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-main);
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* Main Content - Spacer for fixed header */
main {
    padding-top: 70px; /* Adjust based on header height */
}

/* Hero Section */
.hero {
    color: var(--white);
    height: 81vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-main);
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 1000px;
    margin: 0 auto 2rem auto;
}

.btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: #00382e; /* Darker shade of primary */
    transform: translateY(-2px);
}

/* General Section Styling */
section {
    padding: 4rem 0;
}

.section-bg {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2, .section-title h1 {
    font-size: 2.5rem;
    font-family: var(--font-main);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after, .section-title h1::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -10px;
    left: 20%;
    background-color: var(--primary-color);
}

/* Reusable Two-Column Grid */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-2-col .about-image img,
.grid-2-col .vision-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Specific styles for sections on homepage */
#tentang .container,
#manajemen .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

#tentang .about-content, 
#tentang .about-image,
#manajemen .about-content, 
#manajemen .about-image {
    flex: none; /* Reset flex if it was set before */
}

#tentang .about-image img, 
#manajemen .about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


/* Layanan Section (Services) - Homepage */
#layanan {
    position: relative;
    background-image: url("kabah.png");
    background-size: cover;
    background-position: center 80%;
    color: var(--white); /* Change text color to white for homepage */
}

#layanan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay */
    z-index: 0;
}

#layanan .container {
    position: relative;
    z-index: 1;
}

#layanan .section-title h2 {
    color: var(--white);
}

#layanan .section-title h2::after {
    background-color: var(--secondary-color); /* Gold for contrast */
}

#layanan .card {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent cards */
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#layanan .card h4 {
    color: var(--white);
}

#layanan .card .icon {
    color: var(--secondary-color); /* Gold icons */
}

/* Service Page Specific Styles */
.service-page {
    padding-top: 120px;
}

.service-section {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

.service-section:last-child {
    border-bottom: none;
}

.service-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.service-content.reverse {
    flex-direction: row-reverse;
}

.service-image img {
    max-width: 400px;
    border-radius: 8px;
    width: 100%;
}

.service-details {
    flex: 1;
}

.service-details h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-details p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333 !important; /* Ensure dark text on service page */
}

.layanan-transparan {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('kabah.png');
    background-size: cover;
    background-position: center;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card h4 {
    font-size: 1.5rem;
    font-family: var(--font-main);
    margin-bottom: 0.5rem;
}

/* News Section */
.news-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

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

.news-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.news-date, .news-category {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 500;
}

.news-date {
    background-color: var(--primary-color);
    color: var(--white);
}

.news-category {
    background-color: var(--secondary-color);
    color: var(--dark-gray);
}

.news-card h4 {
    font-family: var(--font-main);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.news-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: #c0c0c0;
    padding: 3rem 0 1rem 0;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-family: var(--font-main);
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col p, .footer-col ul, .footer-col li {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #c0c0c0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 1rem;
    font-size: 0.9rem;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #c0c0c0; /* Match footer link color */
    margin-bottom: 0.5rem;
}
.social-link:hover {
    color: var(--white); /* Match footer link hover color */
}

.social-link svg {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Article Page Layout */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 2rem;
}

@media (min-width: 992px) {
    .article-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.article-main {
    max-width: 100%;
}

.article-header .back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.article-header .back-link svg {
    margin-right: 8px;
}

.article-header .category-tag {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-main h1 {
    font-family: var(--font-main);
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
}

.article-meta svg {
    margin-right: 8px;
    fill: #666;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.share-buttons span {
    font-weight: bold;
    font-size: 0.9rem;
}

.share-btn {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
}
.share-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}
.facebook { background-color: #3b5998; }
.twitter { background-color: #1da1f2; }
.linkedin { background-color: #0077b5; }
.whatsapp { background-color: #25d366; }
.email { background-color: #777; }


.article-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.article-content {
    line-height: 1.8;
}
.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
.article-content h3 {
    font-family: var(--font-main);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}


/* Sidebar */
.sidebar-widget {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-family: var(--font-main);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.popular-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}
.popular-post:last-child {
    margin-bottom: 0;
}

.popular-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.popular-post-info h4 {
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.popular-post-info a {
    text-decoration: none;
    color: var(--dark-gray);
    transition: color 0.3s;
}
.popular-post-info a:hover {
    color: var(--primary-color);
}

.popular-post-info time {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    align-items: center;
}
.popular-post-info time svg {
    margin-right: 5px;
    fill: #777;
}

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

.category-list li {
    margin-bottom: 10px;
}
.category-list a {
    text-decoration: none;
    color: var(--dark-gray);
    background-color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}
.category-list a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.category-list .badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    transition: all 0.3s;
}
.category-list a:hover .badge {
    background-color: var(--white);
    color: var(--primary-color);
}


/* Responsive */
@media (max-width: 992px) {
    .card-container, .news-card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .grid-2-col > *:first-child { /* Targets the first element, should be image div */
        order: -1; /* Move image to top on mobile */
        margin-bottom: 2rem;
    }

    #tentang .container, 
    #manajemen .container {
        grid-template-columns: 1fr;
    }

    #tentang .about-image,
    #manajemen .about-image {
        order: -1; /* Move images to the top on mobile */
        margin-bottom: 2rem;
    }

    .card-container, .news-card-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    nav ul {
        display: none; /* Simple hiding for now, proper mobile menu needs JS */
    }

    /* Service Page Responsive */
    .service-page {
        padding-top: 80px;
    }
    .service-content,
    .service-content.reverse {
        flex-direction: column;
        text-align: center;
    }
    .service-image img {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    .service-details h2 {
        font-size: 1.8rem;
    }
}
