/* ==========================================================================
   Kal-Kulating Modern Website Architecture (Referens: Malcone)
   Desktop (>= 992px): Layout website normal, full-width container, tanpa bottom footer bar.
   Mobile (< 992px)  : Tampilan mobile app-like dengan sticky bottom navigation bar.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET GLOBAL UNTUK MENGHILANGKAN EFEK MOBILE WRAPPER PADA DESKTOP
   -------------------------------------------------------------------------- */
html, body {
    background-color: #f8fafc !important;
    color: #334155 !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    min-height: 100vh;
}

/* Override Container Affan Mobile Template (Mengembalikan ke Standar Bootstrap Normal) */
@media (min-width: 768px) {
    .container, .container-md, .container-sm {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 960px !important;
    }
}

@media (min-width: 1200px) {
    .container, .container-xl, .container-lg, .container-md, .container-sm {
        max-width: 1160px !important;
    }
}

@media (min-width: 1400px) {
    .container, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm {
        max-width: 1320px !important;
    }
}

/* --------------------------------------------------------------------------
   2. BEHAVIOR TAMPILAN: DESKTOP vs MOBILE
   -------------------------------------------------------------------------- */

/* Tampilan Mobile (< 992px) */
@media (max-width: 991.98px) {
    .desktop-navbar-wrapper {
        display: none !important;
    }
    .mobile-header-area {
        display: block !important;
    }
    .footer-nav-area {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 64px !important;
        z-index: 1050 !important;
        background-color: #ffffff !important;
        box-shadow: 0 -3px 14px rgba(15, 23, 42, 0.08) !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    .footer-nav ul li a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 2px !important;
        color: #64748b !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        line-height: 1.2 !important;
        transition: all 0.2s ease !important;
    }
    .footer-nav ul li a i {
        font-size: 19px !important;
        margin-bottom: 3px !important;
        color: #94a3b8 !important;
        transition: all 0.2s ease !important;
    }
    .footer-nav ul li.active a {
        color: #0d9488 !important;
        font-weight: 700 !important;
    }
    .footer-nav ul li.active a i {
        color: #0d9488 !important;
        transform: translateY(-2px);
    }
    .page-content-wrapper {
        margin-top: 55px !important;
        margin-bottom: 75px !important;
        width: 100% !important;
    }
    .desktop-footer {
        padding-bottom: 85px !important;
    }
}

/* Tampilan Laptop / Desktop (>= 992px) - SEPERTI MALCONE */
@media (min-width: 992px) {
    .mobile-header-area {
        display: none !important;
    }
    .desktop-navbar-wrapper {
        display: block !important;
    }
    /* Sesuai instruksi: DI LAPTOP TANPA BOTTOM FOOTER */
    .footer-nav-area {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    .page-content-wrapper {
        margin-top: 86px !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .desktop-footer {
        margin-bottom: 0 !important;
        padding-bottom: 30px !important;
    }
}

/* --------------------------------------------------------------------------
   3. DESKTOP MODERN NAVBAR (FULL WIDTH WEBSITE NAVBAR)
   -------------------------------------------------------------------------- */
.desktop-navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1040;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.desktop-navbar {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.desktop-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.desktop-logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.desktop-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.desktop-logo-subtext {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.desktop-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #475569 !important;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.desktop-nav-link i {
    font-size: 15px;
    color: #94a3b8;
}

.desktop-nav-link:hover {
    color: #0d9488 !important;
    background-color: #f0fdfa;
}

.desktop-nav-link:hover i {
    color: #0d9488;
}

.desktop-nav-link.active {
    color: #0d9488 !important;
    background-color: #f0fdfa;
    font-weight: 600;
}

.desktop-nav-link.active i {
    color: #0d9488;
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-wa {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #10b981;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}

.btn-cta-wa:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-desktop-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #0d9488;
    color: #0d9488 !important;
    background-color: transparent;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-desktop-dashboard:hover {
    background-color: #0d9488;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   4. HERO SECTION (STANDAR WEBSITE BESAR)
   -------------------------------------------------------------------------- */
.main-hero-banner {
    padding: 40px 0 20px;
}

.hero-box-left {
    padding-right: 15px;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
    border: 1px solid #99f6e4;
}

.hero-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.hero-main-desc {
    font-size: 16px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 620px;
}

.hero-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-hero-solid {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.btn-hero-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.4);
    color: #ffffff !important;
}

.btn-hero-outline {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155 !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-hero-outline:hover {
    border-color: #0d9488;
    color: #0d9488 !important;
    background-color: #f0fdfa;
    transform: translateY(-2px);
}

.hero-slider-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* --------------------------------------------------------------------------
   5. QUICK ACCESS SERVICE CARDS (4 KOLOM LEBAR)
   -------------------------------------------------------------------------- */
.service-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-decoration: none !important;
    color: inherit;
}

.service-feature-card:hover {
    transform: translateY(-6px);
    border-color: #0d9488;
    box-shadow: 0 14px 28px rgba(13, 148, 136, 0.12);
    color: inherit;
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-feature-card:hover .service-icon-wrap {
    transform: scale(1.08);
}

.service-icon-wrap.teal { background: #ccfbf1; color: #0d9488; }
.service-icon-wrap.blue { background: #e0f2fe; color: #0284c7; }
.service-icon-wrap.amber { background: #fef3c7; color: #d97706; }
.service-icon-wrap.purple { background: #f3e8ff; color: #9333ea; }

.service-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.service-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 18px;
}

.service-card-action {
    font-size: 14px;
    font-weight: 600;
    color: #0d9488;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   6. TRUST / STANDARDS BAR
   -------------------------------------------------------------------------- */
.standards-bar-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.standard-col-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.standard-col-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.standard-col-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.standard-col-desc {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. EDUNIKA NEWS / BLOG GRID
   -------------------------------------------------------------------------- */
.edunika-blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.edunika-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.edunika-img-container {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.edunika-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.edunika-post-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 10px;
}

.edunika-post-title a {
    color: inherit;
    text-decoration: none !important;
}

.edunika-post-title a:hover {
    color: #0d9488;
}

.edunika-post-snippet {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   8. EMBEDSOCIAL INSTAGRAM WIDGET CONTAINER (Agar Tidak Merusak Layout)
   -------------------------------------------------------------------------- */
.social-embed-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
}

/* Batasi tinggi embed agar tidak menjorok 5000px ke bawah */
.social-embed-container .embedsocial-hashtag {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* --------------------------------------------------------------------------
   9. DESKTOP FULL-WIDTH FOOTER
   -------------------------------------------------------------------------- */
.desktop-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 30px;
    width: 100%;
}

.desktop-footer .container {
    width: 100%;
}

.desktop-footer h4, .desktop-footer h5 {
    color: #ffffff;
}

.desktop-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.desktop-footer a:hover {
    color: #2dd4bf;
}

.desktop-footer .footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    margin-top: 45px;
}
