:root {
    --primary-color: #1d7519;
    --secondary-color: #ffc107;
    --accent-color: #1a1a1a;
    --light-color: #ecf0f1;

    --primary-light:#d9ffd7;

    --box-shadow-primary: 0 0 0 .25rem rgb(0 130 2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header & Navigation */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}
.navbar-brand img {
    height: 50px;
    margin-right: 10px;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}
.nav-link:hover{
    color: var(--secondary-color) !important;
}
.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.text-header{
    color: var(--light-color);
    text-decoration: none;
}
.text-header:hover{
    color: var(--secondary-color);
}
.text-link{
    color: var(--accent-color);
    text-decoration: none;
}

.btn-enrollment {
    background: linear-gradient(45deg, var(--accent-color), #c0392b);
    color: white;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-enrollment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}
/* Form Control*/
.form-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    height: 100%;
}
.form-card h3 {
    color: var(--primary-color);
    font-weight: 700;
}
.form-group {
    margin-bottom: 0.5rem;
}
.form-label {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}
.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(29, 117, 25, 0.25);
}
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.form-check-label {
    color: #666;
    font-size: 0.9rem;
}
.form-card .btn {
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Programs Section */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/*Program Cart*/
.program-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.program-icon {
    width: 70px;
    height: 70px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
    font-size: 30px;
    color: var(--secondary-color);
}

/*Program Cart*/
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}
.card-icon-left{
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* Facilities Section */
.facilities-section {
    background: var(--light-color);
    padding: 100px 0;
}

.facility-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    height: 300px;
}

.facility-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.facility-card:hover .facility-img {
    transform: scale(1.1);
}

.facility-overlay {
    position: absolute;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    width: 100%;
    padding: 20px;
}

/* News Section */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date {
    background: var(--secondary-color);
    color: white;
    padding: 10px 15px;
    position: absolute;
    top: 20px;
    left: 20px;
    border-radius: 5px;
    text-align: center;
}

/* Testimonials */
.testimonial-section {
    background: linear-gradient(135deg, var(--primary-color), #1a2530);
    color: white;
    padding: 100px 0;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links h5 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.p-bottom-left{
    bottom: 0;
    position: absolute;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}



/* Hover Dropdown Styles - */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease-in-out;
        right: 0;
    }
    .navbar-nav .dropdown > .dropdown-toggle:active {
        pointer-events: none;
    }
    .nav-item.dropdown:hover .dropdown-toggle {
        color: var(--secondary-color) !important;
    }
    /* Nested dropdown untuk desktop */
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* Untuk semua ukuran */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 5px 0;
    border-top: 2px solid var(--secondary-color);
    min-width: 200px;
}
.dropdown-item {
    padding: 10px 20px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
.dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding-left: 30px;
}
.dropdown-item:hover:before {
    position: absolute;
    left: 15px;
    color: var(--secondary-color);
}
.dropdown-divider {
    margin: 10px 0;
    opacity: 0.2;
}
.dropdown-toggle::after {
    position: relative;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    transition: transform 0.3s ease;
}
.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: rgba(0,0,0,0.03);
        border: none;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        border-left: 3px solid var(--secondary-color);
        animation: none !important;
    }
    .dropdown-item {
        padding: 12px 30px;
    }
    .dropdown-item:hover {
        padding-left: 30px;
    }
    .dropdown-item:hover:before {
        display: none;
    }
    .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
    .navbar-nav .dropdown-menu .dropdown-item {
        padding-left: 45px;
    }
    .navbar-nav .dropdown-menu .dropdown-menu .dropdown-item {
        padding-left: 60px;
    }
}
.dropdown-menu.show {
    animation: fadeIn 0.3s ease-in-out;
}


/* News Detail Page Specific Styles */
.news-image-header{
    height: 250px;
    object-fit: cover;
}
.breadcrumb-nav {
    background: var(--light-color);
    padding: 1rem 0;
    margin-top: 80px;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--secondary-color);
}

.news-detail-page {
    padding: 3rem 0;
}

.content-main{
    margin-top: 80px;
}

.article-header {
    margin-bottom: 2.5rem;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}
.article-category {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}
.article-date,
.article-author,
.article-read-time {
    display: flex;
    align-items: center;
}
.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.article-excerpt {
    font-size: 1.25rem;
    color: #6c757d;
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.25rem;
    line-height: 1.6;
}
.article-featured-image {
    margin: 2.5rem 0;
    border-radius: 10px;
    overflow: hidden;
}
.article-featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
.article-featured-image img:hover {
    transform: scale(1.02);
}
.article-featured-image figcaption {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}
.article-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}
.article-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.article-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.article-content .alert {
    margin: 2rem 0;
    border-radius: 8px;
    border: none;
}
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}
.article-tags {
    margin-bottom: 1.5rem;
}
.article-tags .badge {
    margin: 0 0.5rem 0.5rem 0;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.article-tags .badge:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px);
}
.article-share {
    margin-top: 2rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.share-buttons .btn {
    border-radius: 25px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Related News */
.related-news {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.related-news .section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.related-news .news-card {
    height: 100%;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.related-news .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.related-news .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Table of Contents (Optional) */
.table-of-contents {
    position: sticky;
    top: 100px;
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.table-of-contents h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.table-of-contents a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Author Bio */
.author-bio {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-content h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.author-bio-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #666;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.comment-form {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.comment {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .share-buttons .btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .news-detail-page {
        padding: 2rem 0;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
        padding-left: 1rem;
    }
    
    .related-news .row {
        margin: 0 -10px;
    }
    
    .related-news .col-md-4 {
        padding: 0 10px;
        margin-bottom: 20px;
    }
}

/*Bootstrap*/
.badge-primary{
    background-color: var(--primary-color);
}
.badge-secondary{
    background-color: var(--secondary-color);
}
.card-title .badge{
    font-size: 12px !important;
}

.btn-check:active+.btn-primary:focus, .btn-check:checked+.btn-primary:focus, .btn-primary.active:focus, .btn-primary:active:focus, .show>.btn-primary.dropdown-toggle:focus{
    box-shadow:var(--box-shadow-primary);
}
.btn-check:active+.btn-primary, .btn-check:checked+.btn-primary, .btn-primary.active, .btn-primary:active, .show>.btn-primary.dropdown-toggle{
    background-color:var(--primary-color);
    border-color:var(--primary-color);
}
.btn-check:focus+.btn-primary, .btn-primary:focus, .btn-primary{
    background-color:var(--primary-color);
    border-color:var(--primary-color);
}
.btn-outline-primary{
    color:var(--primary-color);
    border-color:var(--primary-color);
}
.btn-outline-primary:hover{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-link{
    text-decoration: none;
}