/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0d5c3a;
    --primary-dark: #073b24;
    --primary-light: #167a4e;
    --secondary-color: #d4af37;
    --secondary-hover: #b8952d;
    --accent-bg: #f8faf9;
    --dark-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 30px -10px rgba(13, 92, 58, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--accent-bg);
    color: var(--dark-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- TOP BAR --- */
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    padding: 10px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 500;
}

.top-bar .contact-info {
    display: flex;
    gap: 20px;
}

.top-bar .contact-info span i {
    color: var(--secondary-color);
    margin-right: 6px;
}

.top-bar .social-links a {
    color: rgba(255, 255, 255, 0.85);
    margin-left: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.top-bar .social-links a:hover {
    color: var(--secondary-color);
}

/* --- NAVBAR MODERN --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo i {
    font-size: 2.2rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(13, 92, 58, 0.1), rgba(212, 175, 55, 0.2));
    padding: 10px;
    border-radius: var(--radius-sm);
}

.logo-text .title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

.logo-text .sub {
    font-size: 0.75rem;
    color: var(--secondary-hover);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links > li {
    position: relative;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links li a:hover {
    color: var(--primary-color);
    background-color: rgba(13, 92, 58, 0.06);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    padding: 10px;
    border: 1px solid var(--border-color);
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--dark-color);
    font-size: 0.88rem;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background-color: var(--accent-bg);
    color: var(--primary-color);
    padding-left: 18px;
}

/* Navigation Buttons */
.nav-btns {
    display: flex;
    gap: 12px;
}

.btn-spmb, .btn-login {
    padding: 10px 22px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-spmb {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-spmb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}

.btn-login {
    background-color: var(--primary-color);
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(13, 92, 58, 0.2);
}

.btn-login:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- HERO SLIDER --- */
.hero-slider-wrapper {
    position: relative;
    height: 68vh;
    min-height: 480px;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 6s ease;
    transform: scale(1.05);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 59, 36, 0.85), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 28px;
    font-weight: 400;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
    color: var(--white);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

/* --- CONTAINER & LAYOUT GRID --- */
.container {
    width: 90%;
    max-width: 1240px;
    margin: 60px auto;
}

.main-layout {
    display: grid;
    grid-template-columns: 2.8fr 1.2fr;
    gap: 35px;
}

.section-title {
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    letter-spacing: -0.3px;
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

/* --- KARTU BERITA & KEGIATAN --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 92, 58, 0.2);
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tag {
    align-self: flex-start;
    background-color: rgba(13, 92, 58, 0.08);
    color: var(--primary-color);
    padding: 5px 12px;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-body p {
    font-size: 0.9rem;
    color: #475569;
}

/* --- SIDEBAR WIDGET --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget-box {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-bg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: var(--secondary-color);
}

.search-form {
    display: flex;
    margin-bottom: 22px;
}

.search-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    outline: none;
    font-size: 0.88rem;
    background-color: var(--accent-bg);
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
}

.search-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background-color: var(--primary-dark);
}

.widget-news-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-color);
    align-items: center;
}

.widget-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-news-item img {
    width: 70px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.widget-news-info h5 {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}

.widget-news-info h5 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.widget-news-info h5 a:hover {
    color: var(--primary-color);
}

.widget-news-info small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- TESTIMONI SECTION --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 92, 58, 0.2);
}

.testimonial-quote {
    font-size: 0.95rem;
    color: #334155;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.6;
}

.testimonial-quote i {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-right: 6px;
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}

.testimonial-profile img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.testimonial-info h5 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--primary-color);
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- AGENDA SECTION --- */
.agenda-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.agenda-item {
    background-color: var(--white);
    padding: 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 18px;
    align-items: center;
    transition: var(--transition);
}

.agenda-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.agenda-date {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 65px;
}

.agenda-date .day {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.agenda-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.agenda-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.agenda-item small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* --- FOOTER --- */
footer {
    background: linear-gradient(135deg, var(--primary-dark), #042416);
    color: var(--white);
    padding: 60px 6% 25px 6%;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer-col p, .footer-col li {
    font-size: 0.92rem;
    color: #cbd5e1;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 6px;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .main-layout { grid-template-columns: 1fr; }
    .mobile-toggle { display: block; }
    .nav-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 25px;
        box-shadow: var(--shadow-lg);
    }
    .nav-container.active { display: flex; }
    .nav-links { flex-direction: column; width: 100%; }
    .nav-btns { flex-direction: column; width: 100%; }
    .top-bar { flex-direction: column; gap: 8px; text-align: center; }
}

/* --- WIDGET SAMBUTAN KEPALA SEKOLAH --- */
.widget-principal {
    text-align: center;
}

.principal-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 10px auto 12px auto;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.principal-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.principal-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.principal-text {
    font-size: 0.88rem;
    color: #475569;
    font-style: italic;
    line-height: 1.6;
    background-color: var(--accent-bg);
    padding: 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
    text-align: left;
}

/* --- WIDGET EMBED YOUTUBE RESPONSIVE --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}