/* ==========================================
   LAYOUT.CSS - Main Website Layout
   Navbar, Header, Footer, General Components
   ========================================== */

/* ==========================================
   GOOGLE FONTS IMPORT
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

/* ==========================================
   DATE & TIME TICKER STYLES
   ========================================== */
.datetime-ticker {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: white;
    overflow: hidden;
    position: relative;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(249,115,22,0.3);
}

.datetime-ticker::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.08), transparent);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.datetime-content {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.02em;
}

.datetime-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.datetime-item i {
    font-size: 0.95rem;
    color: #f97316;
}

.datetime-content::before {
    content: '●';
    color: #f97316;
    font-size: 0.5rem;
    opacity: 0.6;
}

@media (max-width: 767px) {
    .datetime-content {
        gap: 16px;
        font-size: 0.78rem;
    }
    .datetime-item i {
        font-size: 0.85rem;
    }
}

/* ==========================================
   HEADER SECTION — Desktop: logo + nama + kontak
   Tablet/Mobile: logo kanan, ikon kiri
   ========================================== */
.header-section {
    background: #ffffff;
    padding: 18px 0;
    border-bottom: 3px solid #f97316;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ── Desktop layout ── */
.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-area img {
    height: 72px;
    width: auto;
}

.school-info h4 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: #1e293b;
    font-size: 1.3rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.school-info p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* Contact strip on desktop */
.contact-info {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(249,115,22,0.35);
}

.contact-details {
    text-align: left;
}

.contact-label {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
    line-height: 1.2;
}

.contact-value {
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* ── Tablet & Mobile (≤ 991px): logo center, hanya ikon kanan-kiri ── */
@media (max-width: 991px) {
    .header-section {
        padding: 12px 0;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    /* Logo tetap kiri, teks sekolah tampil */
    .logo-area {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .logo-area img {
        height: 52px;
    }

    .school-info h4 {
        font-size: 0.95rem;
    }

    .school-info p {
        display: none; /* sembunyikan sub-judul di tablet */
    }

    /* Kontak: hanya tampilkan ikon, sembunyikan teks */
    .contact-info {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .contact-details {
        display: none;
    }

    .contact-item {
        gap: 0;
    }

    .contact-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        border-radius: 50%;
    }
}

@media (max-width: 576px) {
    .logo-area img {
        height: 44px;
    }

    .school-info h4 {
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .contact-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}

/* ==========================================
   NAVBAR STYLES WITH STICKY SCROLL EFFECT
   ========================================== */
.navbar-main {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.navbar-main.scrolled {
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.navbar-main .navbar-nav {
    width: 100%;
}

.navbar-main .nav-item {
    position: relative;
}

.navbar-main .nav-link {
    color: rgba(255,255,255,0.88) !important;
    padding: 16px 18px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.25s ease;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    position: relative;
}

.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 3px;
    background: #f97316;
    border-radius: 3px 3px 0 0;
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
    width: 70%;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: #f97316 !important;
    background: rgba(255,255,255,0.05);
}

.navbar-main .dropdown-menu {
    background: #fff;
    border: none;
    border-top: 3px solid #f97316;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-radius: 0 0 10px 10px;
    padding: 8px 0;
    margin-top: 0;
    min-width: 220px;
}

.navbar-main .dropdown-item {
    padding: 10px 22px;
    transition: all 0.2s ease;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.navbar-main .dropdown-item:hover {
    background: #fff7ed;
    padding-left: 28px;
    color: #f97316;
}

/* Hamburger */
.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.4);
    padding: 7px 11px;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: #f97316;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 22px;
    height: 22px;
}

/* ==========================================
   GENERAL STYLES
   ========================================== */
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
}

html { scroll-behavior: smooth; }

.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax-section {
    transition: transform 0.3s ease-out;
}

.placeholder-image {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.placeholder-carousel {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* ── Section title with decorative line ── */
.section-title {
    position: relative;
    padding-bottom: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 2px;
}

/* ==========================================
   FOOTER STYLES
   ========================================== */
.footer-dark {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border-top: 3px solid #f97316;
}

.footer-dark h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
}

.social-icon:hover {
    background: #f97316;
    color: white;
    transform: translateY(-4px);
    border-color: #f97316;
    box-shadow: 0 8px 20px rgba(249,115,22,0.35);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    .navbar-main .nav-link {
        padding: 11px 16px;
    }
    .navbar-main .nav-link::after { display: none; }
}

@media (max-width: 576px) {
    .section-title { font-size: 1.2rem; }
}