:root {
    --primary-color: #2E7D32;
    /* Hijau tua yang elegan */
    --secondary-color: #FBC02D;
    /* Aksen emas/kuning */
    --dark-color: #1B5E20;
    /* Hijau lebih tua untuk header/footer */
    --light-color: #F1F8E9;
    /* Hijau sangat muda untuk background */
    --text-color: #333333;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fcfcfc;
}

/* --- Typography & Headings --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', 'Georgia', serif;
    font-weight: 700;
    color: var(--dark-color);
}

/* --- Navbar --- */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
}

.navbar {
    background-color: var(--dark-color) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    position: relative;
    z-index: 1030;
    /* Ensure navbar is above breaking news ticker */
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, .9) !important;
    margin-right: 1.2rem;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 700;
}

/* Dropdown Hover */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-menu {
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    border: none;
    z-index: 1050;
}

.dropdown-item {
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding-left: 1.8rem !important;
}

/* --- Breaking News Ticker --- */
.breaking-news-bar {
    background: #144618;
    /* Darker than dark-color */
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
    z-index: 1010;
    /* Lower than navbar (1030) */
}

.bn-label {
    background: var(--secondary-color);
    color: #000;
    font-weight: 800;
    padding: 3px 12px;
    margin-right: 15px;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bn-content-wrapper {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.bn-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
}

.bn-content:hover {
    animation-play-state: paused;
}

.bn-item {
    margin-right: 40px;
    position: relative;
    padding-left: 20px;
}

.bn-item::before {
    content: '\f111';
    /* fa-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.4rem;
    color: var(--secondary-color);
}

.bn-item a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.bn-item a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 75vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(27, 94, 32, 0.6) 100%);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-slide h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -1px;
}

.hero-slide .lead {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- General Sections --- */
.section-padding {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Cards --- */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.4;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--primary-color);
}

.text-muted {
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    /* Pill button style */
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 70px 0 30px 0;
    font-size: 0.95rem;
    border-top: 5px solid var(--secondary-color);
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1.8rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: inline-block;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: block;
    margin-bottom: 0.8rem;
}

.footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer i {
    color: var(--secondary-color);
    margin-right: 8px;
    width: 20px;
}

/* --- Quick Links Section (Home) --- */
.quick-link-item {
    padding: 30px 20px;
    transition: transform 0.3s ease;
    text-align: center;
}

.quick-link-item:hover {
    transform: translateY(-5px);
}

.quick-link-item a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.icon-circle {
    width: 90px;
    height: 90px;
    background-color: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-link-item:hover .icon-circle {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.quick-link-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
}

/* --- Visi Misi Section --- */
.visi-misi-item {
    padding: 40px;
    border-left: 5px solid var(--secondary-color);
    background-color: #fff;
    border-radius: 8px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.visi-misi-item:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

.visi-misi-item h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.visi-misi-item ol li {
    margin-bottom: 12px;
}

/* --- Testimony Section --- */
.testimonial-item {
    padding: 50px 40px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 15px;
    border: none;
    /* remove old border */
}

.testimonial-item blockquote::before {
    color: var(--secondary-color);
    opacity: 0.3;
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border: 3px solid var(--secondary-color);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* --- Utility Classes --- */
.text-justify {
    text-align: justify;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}