/* --- Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Raleway:wght@300;400;500;700&display=swap');

/* --- CSS Variables (Palet Warna & Font) --- */
:root {
    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    --color-bg: #FDFBF5; /* Krem sangat lembut / Off-white */
    --color-text: #4D4944; /* Coklat tua keabu-abuan */
    --color-headings: #3A322D; /* Coklat tua pekat */
    --color-primary: #6B8E23; /* Hijau zaitun / Olive Green */
    --color-accent: #C8A07B;  /* Emas pucat / Beige tua */
    --color-light-gray: #EAE7E2;
    --color-white: #FFFFFF;
    --color-dark-overlay: rgba(40, 35, 30, 0.6);

    --shadow-soft: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-medium: 0 6px 20px rgba(0,0,0,0.08);
    --border-radius-main: 8px;
}

/* --- Reset & Basic Styling --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1160px;
    margin: auto;
    padding: 0 15px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--color-headings);
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-top: 70px;
    margin-bottom: 50px;
    color: var(--color-headings);
    position: relative;
    padding-bottom: 10px;
}
.section-title::after { /* Garis bawah minimalis */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}


/* --- Header --- */
header {
    background: linear-gradient(270deg, #d8f3dc, #b7e4c7, #95d5b2, #74c69d, #d8f3dc);
    background-size: 400% 400%;
    animation: daunPagi 15s ease infinite;
    backdrop-filter: blur(10px);
    padding: 18px 0;
    border-bottom: 1px solid #cce3d5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

@keyframes daunPagi {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



/* Uncomment jika ingin header solid saat di-scroll sedikit
.header-scrolled {
    background-color: var(--color-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
*/

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
header .logo img {
    height: 100px;
    margin-right: 12px;
    filter: contrast(1.1); /* Sedikit mempertajam logo */
}
header .logo-text h1 {
    font-size: 1.6em;
    color: var(--color-headings);
    margin: 0;
}
header .logo-text p {
    font-size: 0.7em;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

header nav ul { list-style: none; display: flex; }
header nav ul li { margin-left: 30px; }
header nav ul li a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500; /* Sedikit lebih tebal */
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}
header nav ul li a::after { /* Efek hover garis bawah */
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
header nav ul li a:hover,
header nav ul li a.active {
    color: var(--color-primary);
}
header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

/* --- Banner Slider --- */
.banner-slider {
    height: calc(100vh - 70px); /* 70px adalah perkiraan tinggi header */
    max-height: 700px; /* Batas maksimal tinggi */
    position: relative;
    overflow: hidden;
    background-color: var(--color-light-gray);
}
.banner-slider .slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1); /* Transisi lebih elegan */
    display: flex; justify-content: center; align-items: center; text-align: center;
}

.banner-slider .slide.active { opacity: 1;}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Gelap lembut */
  z-index: 1;
}

.banner-slider .slide-caption {
    background: var(--dark-overlay);
    z-index: 2;
    color: var(--color-white);
    padding: 35px 45px;
    border-radius: var(--border-radius-main);
    max-width: 60%;
    animation: fadeInSlideCaption 1s 0.5s ease-out forwards; /* Animasi masuk caption */
    opacity: 0; /* Mulai dengan transparan untuk animasi */
}
@keyframes fadeInSlideCaption {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.banner-slider .slide-caption h2 {
    font-size: 3em; /* Lebih besar */
    margin-bottom: 15px;
    color: var(--color-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* ✅ Efek bayangan hitam */
}
.banner-slider .slide-caption p {
    font-size: 1.2em;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9); /* ✅ Efek bayangan hitam */
}

.slider-nav { /* Panah navigasi slider yang lebih minimalis */
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(255,255,255,0.15);
    color: var(--color-white); border: 1px solid rgba(255,255,255,0.3);
    padding: 0; width: 45px; height: 45px;
    font-size: 20px; cursor: pointer; z-index: 10;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.slider-nav:hover { background-color: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.5); }
.slider-nav.prev { left: 30px; }
.slider-nav.next { right: 30px; }

/* --- Welcome Section --- */
.welcome-section {
    padding: 60px 0;
    text-align: center;
}
.welcome-section h2 {
    font-size: 2.6em;
    color: var(--color-headings);
    margin-bottom: 25px;
}
.welcome-section .lead {
    font-size: 1.15em;
    color: var(--color-text);
    max-width: 750px;
    margin: 0 auto 20px auto;
    font-weight: 400;
    line-height: 1.8;
}
.welcome-section p:not(.lead) {
    font-size: 1em;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- Highlights Section (Pesona Utama) --- */
.highlights-section {
    padding: 50px 0;
    background-color: var(--color-white); /* Background berbeda untuk variasi */
    border-top: 1px solid var(--color-light-gray);
    border-bottom: 1px solid var(--color-light-gray);
}
.highlight-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}
.highlight-box {
    background-color: var(--color-bg); /* Warna background kartu */
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Jika ingin box bisa di-klik */
    color: var(--color-text);
    position: relative; /* Untuk elemen absolut di dalam (jika ada) */
}
.highlight-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.highlight-box img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 3px solid var(--color-accent); /* Aksen di bawah gambar */
}
.highlight-box h3 {
    color: var(--color-primary);
    font-size: 1.5em;
    margin: 20px 20px 10px;
}
.highlight-box p {
    font-size: 0.95em;
    padding: 0 20px 25px;
    line-height: 1.6;
}

/* --- Quick Links Section (Informasi Penting) --- */
.quick-links-section {
    padding: 60px 0;
}
.link-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.link-box {
    background-color: var(--color-white);
    padding: 30px 25px;
    border: 1px solid var(--color-light-gray);
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-text);
}
.link-box:hover {
    transform: scale(1.03); /* Efek zoom halus */
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}
.link-box .icon {
    font-size: 2.8em;
    color: var(--color-primary);
    margin-bottom: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.link-box:hover .icon {
    color: var(--color-accent);
    transform: rotateY(15deg); /* Sedikit efek 3D pada ikon */
}
.link-box h4 {
    color: var(--color-headings);
    font-size: 1.3em;
    margin-bottom: 10px;
}
.link-box p {
    font-size: 0.9em;
    opacity: 0.85;
}

/* --- Latest News Section --- */
.latest-news-section {
    padding: 50px 0;
    background-color: var(--color-white);
     border-top: 1px solid var(--color-light-gray);
}
.news-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}
.news-item {
    background-color: var(--color-bg);
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.news-item:hover {
    box-shadow: var(--shadow-medium);
}
.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-item:hover img {
    transform: scale(1.05); /* Efek zoom pada gambar berita */
}
.news-content {
    padding: 20px 25px 25px;
}
.news-content h3 {
    font-size: 1.4em;
    margin-bottom: 8px;
}
.news-content h3 a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}
.news-content h3 a:hover { color: var(--color-accent); }
.news-date {
    font-size: 0.8em;
    color: var(--color-text);
    opacity: 0.7;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-content p {
    font-size: 0.95em;
    margin-bottom: 18px;
    line-height: 1.65;
}
.read-more {
    display: inline-block;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700; /* Lebih tebal */
    font-size: 0.9em;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    text-transform: uppercase;
}
.read-more:hover {
    color: var(--color-accent);
    letter-spacing: 0.5px; /* Sedikit spasi saat hover */
}
.read-more::after { /* Panah kecil */
    content: ' \2192';
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s ease;
}
.read-more:hover::after {
    transform: translateX(3px);
}

/* --- Konten Halaman Statis (jika ada halaman lain) --- */
.page-content {
    background-color: var(--color-white);
    padding: 40px;
    margin: 40px auto;
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-medium);
}

/* --- Footer --- */
footer {
    background-color: var(--color-headings); /* Background footer gelap */
    color: var(--color-light-gray);
    padding: 60px 0 30px;
    margin-top: 70px;
    text-align: center; /* Default alignment untuk footer */
}
.footer-content {
    display: flex;
    justify-content: space-around; /* Lebih merata */
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    text-align: left; /* Override untuk konten kolom */
}
.footer-left, .footer-right {
    flex: 1;
    min-width: 250px; /* Lebar minimum kolom */
}
.footer-left h4, .footer-right h4 {
    font-size: 1.3em;
    color: var(--color-white);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 10px;
    display: inline-block; /* Agar border-bottom sesuai lebar teks */
}
.footer-left p {
    margin-bottom: 10px;
    font-size: 0.95em;
    opacity: 0.85;
}
.footer-right ul { list-style: none; }
.footer-right ul li { margin-bottom: 12px; }
.footer-right ul li a {
    color: var(--color-light-gray);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: 0.95em;
}
.footer-right ul li a:hover {
    color: var(--color-accent);
    padding-left: 8px;
}
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(234, 231, 226, 0.2); /* Garis pemisah lebih halus */
    font-size: 0.9em;
    opacity: 0.8;
}

/* --- Responsiveness --- */
@media(max-width: 992px){
    .section-title { font-size: 2.4em; }
    .banner-slider .slide-caption h2 { font-size: 2.5em; }
    .banner-slider .slide-caption { max-width: 75%; }
    .highlight-boxes, .news-items { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media(max-width: 768px){
    header .container { flex-direction: column; text-align: center; }
    header .logo { margin-bottom: 15px; }
    header nav ul { margin-top: 10px; flex-direction: column; align-items: center; }
    header nav ul li { margin-left: 0; margin-bottom: 10px; }

    .banner-slider { height: 60vh; }
    .banner-slider .slide-caption h2 { font-size: 2em; }
    .banner-slider .slide-caption p { font-size: 1em; }
    .banner-slider .slide-caption { max-width: 85%; padding: 25px 30px; }

    .section-title { font-size: 2em; margin-top: 50px; margin-bottom: 35px;}
    .welcome-section h2 { font-size: 2.2em; }

    .highlight-boxes, .link-boxes, .news-items { grid-template-columns: 1fr; gap: 25px; }
    
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-left, .footer-right { min-width: 100%; }
    .footer-left h4, .footer-right h4 { display: block; } /* Agar border full width di mobile */
}

@media(max-width: 480px) {
    .banner-slider .slide-caption h2 { font-size: 1.7em; }
    .banner-slider .slide-caption p { font-size: 0.9em; }
    .slider-nav { width: 40px; height: 40px; font-size: 18px; }
    .slider-nav.prev { left: 15px; }
    .slider-nav.next { right: 15px; }

    .section-title { font-size: 1.8em; }
    .welcome-section h2 { font-size: 1.9em; }
}