/* =====================================================
   MTs Sunan Prawoto - Frontend Premium Theme
   ===================================================== */

:root {
    /* Colors */
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10B981;
    --secondary: #D4AF37;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-dark: #0F172A;
    --text-dark: #1E293B;
    --text-body: #475569;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;

    /* Navbar Height */
    --navbar-height: 80px;

    /* Transitions */
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--text-body);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: transparent;
    z-index: 1000;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    transition: color var(--transition);
}

.navbar.scrolled .navbar-brand {
    color: var(--text-dark);
}

.navbar-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.navbar-brand .logo-placeholder {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 8px 0;
}

.navbar.scrolled .nav-link {
    color: var(--text-body);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown .dropdown-toggle i {
    font-size: 10px;
    transition: transform var(--transition);
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 8px 0;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 14px;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(5, 150, 105, 0.08);
    color: var(--primary);
}

.dropdown-item.active {
    font-weight: 600;
}

.navbar-toggle {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.navbar-toggle span {
    width: 100%;
    height: 2px;
    background: white;
    transition: all var(--transition);
}

.navbar.scrolled .navbar-toggle span {
    background: var(--text-dark);
}

/* =====================================================
   HERO SLIDER SECTION
   ===================================================== */
.hero-slider {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #065F46 0%, #059669 50%, #10B981 100%);
    overflow: hidden;
}

.hero,
.hero-slider {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-wrapper {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 6s ease;
}

.slide.active .slide-bg {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.slide .container {
    position: relative;
    z-index: 1;
}

.slide-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
}

.slide-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.slide-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.slide-content .hero-buttons {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 50%;
    left: 0;
    right: 0;
    transform: translateY(50%);
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero .container,
.hero-slider .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-12px);
    }

    60% {
        transform: translateY(-6px);
    }
}

/* Responsive slider */
@media (max-width: 992px) {
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .slider-dots {
        bottom: 80px;
    }
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .slider-controls {
        display: none;
    }

    .slider-dots {
        bottom: 100px;
    }
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #065F46 0%, #059669 50%, #10B981 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: white;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
    padding: 50px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(5, 150, 105, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.about-content p {
    margin-bottom: 24px;
    color: var(--text-body);
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item .stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 14px;
    color: var(--text-muted);
}

.stat-label {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.about-vision {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vision-card,
.mission-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.vision-icon,
.mission-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

.vision-card h4,
.mission-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.mission-card ul {
    list-style: none;
}

.mission-card ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 14px;
}

.mission-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* =====================================================
   NEWS SECTION
   ===================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.news-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.news-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.news-meta span {
    font-size: 13px;
    color: var(--text-muted);
}

.news-meta i {
    margin-right: 6px;
    color: var(--primary);
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content h3 a:hover {
    color: var(--primary);
}

.news-content p {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 16px;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    gap: 12px;
}

/* =====================================================
   AGENDA SECTION
   ===================================================== */
.section-agenda {
    background: var(--bg-light);
}

.agenda-list {
    max-width: 800px;
    margin: 0 auto;
}

.agenda-item {
    display: flex;
    gap: 24px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.agenda-item:hover {
    transform: translateX(8px);
    border-color: var(--primary);
}

.agenda-date {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agenda-date .day {
    font-size: 28px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.agenda-date .month {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.agenda-date .year {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.agenda-content {
    flex: 1;
}

.agenda-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.agenda-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 8px;
}

.agenda-meta span {
    font-size: 13px;
    color: var(--text-muted);
}

.agenda-meta i {
    margin-right: 6px;
    color: var(--primary);
}

.agenda-content p {
    font-size: 14px;
    color: var(--text-body);
}

.agenda-category {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    align-self: flex-start;
}

.badge-akademik {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.badge-keagamaan {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-ekstrakurikuler {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.badge-umum {
    background: rgba(148, 163, 184, 0.1);
    color: #64748B;
}

/* =====================================================
   GALLERY SECTION
   ===================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    margin-bottom: 12px;
}

.gallery-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.gallery-info span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.gallery-overlay>i {
    font-size: 24px;
    color: white;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.section-cta {
    background: linear-gradient(135deg, #065F46 0%, #059669 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   PROFILE PAGE
   ===================================================== */
.profile-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-main h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.profile-main .tagline {
    font-size: 18px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 24px;
}

.profile-text {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 32px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.info-item .label {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
}

.info-item .value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.visi-misi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.visi-card,
.misi-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.visi-card .card-icon,
.misi-card .card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 24px;
}

.visi-card h3,
.misi-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.misi-card ul {
    list-style: none;
}

.misi-card ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-body);
}

.misi-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    text-align: center;
    padding: 40px 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.contact-card i {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

.contact-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 15px;
    color: var(--text-body);
}

/* =====================================================
   ARTICLE PAGE
   ===================================================== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}

.article-main {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.article-image {
    aspect-ratio: 16/9;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-header {
    padding: 32px 40px 24px;
    border-bottom: 1px solid var(--border-color);
}

.article-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(5, 150, 105, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.article-meta span {
    font-size: 14px;
    color: var(--text-muted);
}

.article-meta i {
    margin-right: 8px;
    color: var(--primary);
}

.article-content {
    padding: 32px 40px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
}

.article-content p {
    margin-bottom: 16px;
}

.article-share {
    padding: 24px 40px 32px;
    border-top: 1px solid var(--border-color);
}

.article-share h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all var(--transition);
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.sidebar-widget h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-news-list {
    list-style: none;
}

.sidebar-news-list li {
    margin-bottom: 16px;
}

.sidebar-news-list li:last-child {
    margin-bottom: 0;
}

.sidebar-news-list a {
    display: flex;
    gap: 12px;
}

.sidebar-news-list img {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.thumb-placeholder {
    width: 70px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.sidebar-news-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
    transition: color var(--transition);
}

.sidebar-news-list a:hover h5 {
    color: var(--primary);
}

.sidebar-news-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.contact-info>p {
    color: var(--text-body);
    margin-bottom: 32px;
}

.contact-list {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.contact-icon.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-text p {
    font-size: 15px;
    color: var(--text-body);
}

.contact-text a {
    color: var(--primary);
}

.contact-text a:hover {
    text-decoration: underline;
}

.contact-social h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.contact-social .social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all var(--transition);
}

.social-link:hover {
    transform: translateY(-4px);
}

.social-link.facebook {
    background: #1877F2;
}

.social-link.instagram {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
}

.social-link.youtube {
    background: #FF0000;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--bg-dark);
    color: white;
}

.footer-main {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
}

.footer-section>p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links,
.footer-info {
    list-style: none;
}

.footer-links li,
.footer-info li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-info li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* =====================================================
   BACK TO TOP & WHATSAPP FLOAT
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

.whatsapp-float {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-message {
    text-align: center;
    padding: 60px 20px;
}

.empty-message i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.empty-message h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.empty-message p {
    color: var(--text-muted);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
    .navbar-nav {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .navbar-nav.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        color: var(--text-dark);
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .about-grid,
    .visi-misi-grid,
    .contact-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .news-grid,
    .news-list-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .news-grid,
    .news-list-grid,
    .gallery-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
    }

    .agenda-item {
        flex-direction: column;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .sambutan-card {
        flex-direction: column;
        text-align: center;
    }

    .sambutan-photo {
        width: 200px;
        height: 250px;
        margin: 0 auto 32px;
    }

    .quote-mark {
        left: 50%;
        transform: translateX(-50%);
    }

    .principal-info {
        text-align: center;
    }

    /* Mobile Dropdown */
    .navbar-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .navbar-nav.show {
        display: flex;
    }

    .navbar-nav .nav-link {
        color: var(--text-body);
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--primary);
    }

    .nav-dropdown .dropdown-toggle i {
        margin-left: auto;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        border-radius: 8px;
        margin-top: 8px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.open .dropdown-menu {
        max-height: 300px;
    }

    .navbar-toggle {
        display: flex;
    }
}

/* =====================================================
   SAMBUTAN KEPALA SEKOLAH SECTION
   ===================================================== */
.sambutan-section {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
}

.sambutan-card {
    display: flex;
    gap: 48px;
    align-items: center;
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.sambutan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
}

.sambutan-photo {
    flex-shrink: 0;
    position: relative;
    width: 240px;
    height: 300px;
}

.sambutan-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(5, 150, 105, 0.2);
}

.sambutan-photo .photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.5);
}

.sambutan-photo .photo-decoration {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary), #E5C158);
    border-radius: 16px;
    z-index: -1;
}

.sambutan-text {
    flex: 1;
    position: relative;
}

.quote-mark {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 48px;
    color: var(--primary);
    opacity: 0.2;
}

.sambutan-text .message {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 32px;
    font-style: italic;
    padding-top: 24px;
}

.principal-info {
    border-top: 2px solid var(--border-color);
    padding-top: 24px;
}

.principal-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.principal-info p {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 992px) {
    .sambutan-card {
        flex-direction: column;
        padding: 32px;
        text-align: center;
    }

    .sambutan-photo {
        width: 200px;
        height: 250px;
        margin-bottom: 24px;
    }

    .quote-mark {
        left: 50%;
        transform: translateX(-50%);
    }

    .sambutan-text .message {
        text-align: center;
    }

    .principal-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h1 {
        font-size: 32px;
    }
}

/* =====================================================
   RICH TEXT EDITOR CONTENT STYLES
   ===================================================== */
.article-content,
.about-text,
.visi-content,
.misi-content,
.sambutan-text .message {
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.8;
}

.article-content p,
.about-text p,
.visi-content p,
.misi-content p,
.sambutan-text .message p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.about-text ul,
.visi-content ul,
.misi-content ul,
.sambutan-text .message ul,
.article-content ol,
.about-text ol,
.visi-content ol,
.misi-content ol,
.sambutan-text .message ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-position: inside;
}

.article-content li,
.about-text li,
.visi-content li,
.misi-content li,
.sambutan-text .message li {
    margin-bottom: 0.5rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.about-text h1,
.about-text h2,
.about-text h3,
.about-text h4,
.about-text h5,
.about-text h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h1,
.about-text h1,
.visi-content h1,
.misi-content h1 {
    font-size: 2rem;
}

.article-content h2,
.about-text h2,
.visi-content h2,
.misi-content h2 {
    font-size: 1.75rem;
}

.article-content h3,
.about-text h3,
.visi-content h3,
.misi-content h3 {
    font-size: 1.5rem;
}

.article-content h4,
.about-text h4,
.visi-content h4,
.misi-content h4 {
    font-size: 1.25rem;
}

.article-content blockquote,
.about-text blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 1.5rem 0;
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.article-content img,
.about-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-content table,
.about-text table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.article-content th,
.article-content td,
.about-text th,
.about-text td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

.article-content th,
.about-text th {
    background-color: var(--bg-light);
    font-weight: 600;
    text-align: left;
}