:root {
    --primary-color: #008695; /* Leaf Green */
    --secondary-color: #44a9b4; /* Lighter Green */
    --dark-color: #008695; /* Darker Green */
    --light-color: #F1F8E9; /* Very Light Green/Off-white */
    --text-dark: #333;
    --text-light: #fff;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- Splash Screen --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #c2c2c2;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--text-dark);
}

#splash-logo-text {
    font-weight: 700;
    letter-spacing: 2px;
    /* Initially hidden for GSAP */
    opacity: 0;
}

#splash-subtitle {
    font-weight: 300;
    /* Initially hidden for GSAP */
    opacity: 0;
}

@media (max-width: 768px) {
    #splash-logo-text {
        font-size: 3rem !important;
        padding: 0 1rem;
    }
    #splash-subtitle {
        font-size: 1.25rem;
        padding: 0 1rem;
    }
}

/* --- Navbar --- */
.navbar {
    padding: 1rem 0;
    transition: background-color 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: #008695;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-light) !important;
}

.navbar-brand img {
    height: 75px; /* Tinggi logo saat di atas */
    transition: height 0.4s ease-in-out;
}

.navbar.scrolled .navbar-brand img {
    height: 65px; /* Tinggi logo saat di-scroll */
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 8px; /* Memberi ruang untuk garis bawah */
}

/* Pseudo-element untuk garis bawah */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0; /* Awalnya tidak ada lebar */
    height: 2px;
    background-color: var(--text-light);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover, .nav-link.active {
        color: var(--text-light) !important;
}

/* Tampilkan garis bawah saat menu aktif atau di-hover */
.nav-link.active::after,
.nav-link:hover::after {
    width: 50%; /* Lebar garis bawahnya */
}

/* --- General Section Styling --- */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 50px;
    text-align: center;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    color: var(--text-light);
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
        text-align: left;
}

#hero h1 {
    font-size: 4rem;
    font-weight: 700;
}

#hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 20px 0 30px;
}

.highlight-card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.highlight-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.highlight-card h5 {
    font-weight: 600;
    font-size: 1.1rem;
}

.highlight-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.highlight-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.highlight-card a:hover {
    color: var(--text-light);
}

@media (max-width: 992px) {
    #hero {
        text-align: center;
        height: auto;
        min-height: 100vh;
        padding-top: 120px; /* Add padding to push content down */
        padding-bottom: 40px;
    }
    .hero-container {
        flex-direction: column;
        justify-content: center;
    }
    .hero-text {
        margin-bottom: 2rem;
        text-align: center;
    }
    #hero h1 {
        font-size: 3rem;
    }
    #hero p {
        font-size: 1.25rem;
    }
    .highlight-card {
        width: 100%;
        max-width: 350px;
    }
}

/* --- About Section --- */
#aboutPills .nav-link{
    border-radius: 999px;
    background: rgba(240,240,240,0.6);
    color: #264f3e; /* teks primary-ish */
    transition: color .25s ease, transform .15s ease;
    border: none;
    box-shadow: none;
    backdrop-filter: blur(6px);
  }

  #aboutPills .nav-link:hover{
    transform: translateY(-2px);
  }

  /* pill active text color is white but highlight behind provides color */
  #aboutPills .nav-link.active{
    color: white !important;
  }

  /* sliding highlight behind pills */
  #pill-highlight{
    position:absolute;
    height:44px;
    background: linear-gradient(135deg, rgba(46,125,50,0.95), rgba(20,90,70,0.95));
    border-radius:999px;
    top:50%;
    transform:translateY(-50%);
    z-index:1;
    box-shadow: 0 8px 24px rgba(14,60,40,0.18);
    transition: width .25s ease, left .25s ease;
    pointer-events:none;
  }

  /* small responsive tweak */
  @media (max-width:575.98px){
    #pill-highlight{ display:none; } /* hide background highlight on tiny screens for clarity */
    #aboutPills .nav-link { background: transparent; padding-left:.5rem; padding-right:.5rem; }
  }

  /* content pane base */
  .about-pane { opacity: 1; }

/* --- Features Section --- */
#features {
    background-color: #fff;
}
.program-box {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}
.program-box h3 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 25px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}
.program-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent 0%, var(--primary-color) 20%, var(--primary-color) 80%, transparent 100%);
}
.program-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
}
.program-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}
.program-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

/* --- Articles Section --- */
.article-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.article-img-containernya {
    height: 220px;
    position: relative;
    color: var(--text-light);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.article-img-containernya::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    transition: background 0.3s ease;
}

.article-card:hover .article-img-containernya::before {
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%);
}

.article-img-containernya .card-title {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0;
}

.article-card .card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-card .card-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.article-card .card-title-body {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.15rem;
}

.article-card .card-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-top: 10px;
}

.article-card .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
}

.article-card .read-more:hover {
    text-decoration: underline;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid var(--primary-color);
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.btn-view-all:hover {
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.btn-view-all:hover::before {
    width: 100%;
}

.btn-view-all i {
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left: 5px;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

/* --- Swiper Slider Customization --- */
.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    padding-bottom: 50px; /* Space for pagination */
}

.swiper-pagination-bullet {
    background-color: var(--secondary-color);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    opacity: 1;
}

/* --- Footer Section --- */
#footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 60px 0;
}
#footer h5 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}
#footer p, #footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
#footer a:hover {
    color: var(--text-light);
}
.social-icons a {
    font-size: 2rem;
    margin-right: 15px;
    transition: color 0.3s;
}
.footer-logo {
    height: 50px;
    margin: 5px;
}

.btn-wafi-donasi {
    /* Properti Dasar Tombol */
    display: inline-block;
    padding: 10px 25px;
    margin-top: 20px; /* Jarak dari paragraf di atasnya */
    
    /* Gaya Teks */
    color: var(--primary-color, #007bff); /* Warna Teks dan Border */
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1; /* Penting untuk penataan vertikal */
    
    /* Gaya Border (Outline Button) */
    border: 2px solid var(--primary-color, #007bff);
    border-radius: 5px; /* Sudut sedikit membulat */
    
    /* Transisi Halus */
    transition: all 0.3s ease-in-out;
}

/* Gaya Ikon di dalam Tombol */
.btn-wafi-donasi i {
    margin-right: 8px; /* Jarak antara ikon dan teks */
}

/* Efek Hover (membuat tombol terisi/solid) */
.btn-wafi-donasi:hover {
    color: #ffffff; /* Ubah warna teks menjadi putih */
    background-color: var(--primary-color, #007bff); /* Warna latar menjadi warna utama */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Bayangan lembut */
    transform: translateY(-2px); /* Sedikit terangkat saat di-hover */
}

/* Efek Klik (saat tombol ditekan) */
.btn-wafi-donasi:active {
    transform: translateY(0);
    box-shadow: none;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1); /* Kotak transparan */
    border-radius: 50%; /* Jadi bulat */
    color: #fff;
    font-size: 1.5rem; /* Ukuran icon */
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #fff; /* Pas hover jadi putih */
    color: var(--primary-color); /* Iconnya jadi warna tema (misal tosca) */
    transform: translateY(-3px); /* Efek naik dikit */
}

/* Efek hover link program */
.icon-link-hover:hover {
    color: #008695 !important; /* Berubah jadi warna tosca pas disorot */
    transform: translateX(5px); /* Geser kanan dikit */
    transition: all 0.3s ease;
}