:root {
    --primary: #0b4f26; /* Deep forest green */
    --primary-light: #167a3f;
    --primary-dark: #062b14;
    --primary-rgb: 11,79,38;
    --accent: #d4a017; /* Gold accent */
    --accent-light: #f3c239;
    --bg-body: #f4f7f5;
    --bg-card: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font);
    background-color: var(--bg-body);
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}
.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    background: rgba(212, 160, 23, 0.1);
    border-radius: 30px;
}
.section-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    position: relative;
}
.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ===== Navbar ===== */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    padding: 16px 0;
    z-index: 1050;
}
.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-custom .navbar-brand i {
    color: var(--accent);
    font-size: 1.6rem;
}
.navbar-custom .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary);
    background: rgba(11, 79, 38, 0.05);
}
.navbar-custom .btn-admin-link {
    background: var(--primary);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 20px !important;
    transition: var(--transition);
}
.navbar-custom .btn-admin-link:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 12px rgba(11, 79, 38, 0.2);
}

/* ===== Hero Carousel ===== */
.hero-carousel {
    margin-top: 75px;
    height: 600px;
    overflow: hidden;
    position: relative;
}
.hero-carousel .carousel-item {
    height: 600px;
}
.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}
.hero-carousel .carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: left;
    max-width: 700px;
    left: 10%;
}
.hero-carousel h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-carousel p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* ===== Common Section Styling ===== */
.section-padding {
    padding: 80px 0;
}
.bg-white-panel {
    background: #ffffff;
}
.bg-light-panel {
    background: #f4f7f5;
}

/* ===== Page Banner (for subpages) ===== */
.page-banner {
    margin-top: 75px;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #ffffff;
    position: relative;
}
.page-banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.page-banner-breadcrumbs {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}
.page-banner-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
}
.page-banner-breadcrumbs a:hover {
    color: var(--accent);
}

/* ===== Prakata Kepala Sekolah ===== */
.prakata-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}
.prakata-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
}
.prakata-quote {
    position: relative;
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    color: #475569;
    margin-bottom: 24px;
}
.prakata-quote::before {
    content: '“';
    font-family: serif;
    font-size: 5rem;
    color: rgba(11, 79, 38, 0.08);
    position: absolute;
    top: -40px; left: -20px;
    line-height: 1;
}

/* ===== Profil & Video ===== */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid #ffffff;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ===== Facility Cards ===== */
.facility-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}
.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.facility-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.facility-body {
    padding: 20px;
}

/* ===== Berita Card ===== */
.news-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.news-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.news-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
}
.news-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}
.news-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex: 1;
}
.news-btn {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    transition: var(--transition);
}
.news-btn:hover {
    color: var(--accent);
}

/* ===== GTK Cards ===== */
.gtk-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
}
.gtk-slider::-webkit-scrollbar {
    height: 6px;
}
.gtk-slider::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}
.gtk-slider::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}
.gtk-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    height: 100%;
}
.gtk-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.gtk-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid rgba(11, 79, 38, 0.1);
}
.gtk-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.gtk-pos {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}
.gtk-nip {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Buku & Modul ===== */
.book-table-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.03);
}
.table-custom {
    width: 100%;
    vertical-align: middle;
}
.table-custom thead th {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    padding: 16px;
    border: none;
}
.table-custom thead th:first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}
.table-custom thead th:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}
.table-custom tbody td {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.table-custom tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Map & Contact Info ===== */
.map-container {
    height: 100%;
    min-height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #ffffff;
}
.contact-info-list {
    list-style: none;
    padding: 0;
}
.contact-info-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-info-list li i {
    font-size: 1.4rem;
    color: var(--accent);
    flex-shrink: 0;
    width: 24px;
}
.contact-info-list li strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}
.contact-info-list li span {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ===== Blog Elements ===== */
.blog-sidebar {
    background: #ffffff;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.03);
}
.sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(11, 79, 38, 0.1);
}
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-list li {
    margin-bottom: 12px;
}
.sidebar-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}
.sidebar-list a:hover {
    color: var(--primary);
}
.category-badge {
    background: rgba(11, 79, 38, 0.05);
    color: var(--primary-light);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}
.search-form-control {
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 10px 16px;
}
.search-form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 79, 38, 0.15);
}

/* ===== Blog Details Page ===== */
.blog-post-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
    padding: 30px;
    margin-bottom: 40px;
}
.blog-post-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}
.blog-post-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    line-height: 1.3;
    margin-bottom: 20px;
}
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.blog-post-meta i {
    color: var(--accent);
}
.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    text-align: justify;
}
.blog-post-content p {
    margin-bottom: 20px;
}

/* ===== Sharing widget ===== */
.share-section {
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin: 40px 0;
}
.share-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.share-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}
.share-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    opacity: 0.9;
}
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }
.share-btn.copy { background: #64748b; cursor: pointer; }

/* ===== Comments Section ===== */
.comments-section {
    margin-top: 50px;
}
.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 30px;
}
.comment-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.comment-author {
    font-weight: 700;
    color: var(--primary-dark);
}
.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.comment-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}
.comment-form-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.03);
    margin-top: 40px;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
    font-size: 0.9rem;
}
.footer h5 {
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 700;
}
.footer-logo {
    font-weight: 800;
    color: #ffffff !important;
    font-size: 1.4rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo i {
    color: var(--accent);
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 48px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
}

/* ===== Responsif ===== */
@media (max-width: 991.98px) {
    .hero-carousel, .hero-carousel .carousel-item { height: 480px; }
    .hero-carousel h2 { font-size: 2.5rem; }
    .prakata-image { height: 350px; }
    .section-title { font-size: 1.8rem; }
}
@media (max-width: 575.98px) {
    .hero-carousel, .hero-carousel .carousel-item { height: 380px; }
    .hero-carousel h2 { font-size: 1.8rem; }
    .hero-carousel p { font-size: 0.95rem; }
    .section-padding { padding: 48px 0; }
}
