/* ============================================
   MAINSITE WITAMA - PAGES STYLE
   ============================================
   File: ms/assets/css/pages.css
   
   Style untuk halaman dalam (FAQ, Kurikulum, Galeri, dll).
   
   Update v1.3:
   - FAQ category header background teal
   ============================================ */

/* ============================================
   PAGE HEADER (untuk halaman dalam)
   ============================================ */
.ms-page-header {
    background: linear-gradient(135deg, #20A7B2 0%, #40A3A8 100%);
    color: #ffffff;
    padding: 120px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ms-page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ms-page-header::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ms-page-header-content {
    position: relative;
    z-index: 2;
}

.ms-page-header-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #F8DC9B;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.ms-page-header-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.ms-page-header-title i {
    margin-right: 12px;
    opacity: 0.95;
}

.ms-page-header-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.ms-faq-intro {
    background: #EDFCFA;
    border-left: 4px solid #20A7B2;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 40px;
    font-size: 15px;
    line-height: 1.7;
    color: #515C54;
}

.ms-faq-intro a {
    color: #20A7B2;
    font-weight: 600;
    text-decoration: underline;
}

.ms-faq-intro a:hover {
    color: #40A3A8;
}

.ms-faq-category {
    margin-bottom: 40px;
}

.ms-faq-category:last-of-type {
    margin-bottom: 32px;
}

/* ============================================
   FAQ CATEGORY HEADER - TEAL (Update v1.3)
   ============================================ */
.ms-faq-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px 22px;
    background: linear-gradient(135deg, #20A7B2 0%, #40A3A8 100%);
    border-radius: 14px;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(32, 167, 178, 0.25);
    position: relative;
    overflow: hidden;
}

/* Dekorasi halus */
.ms-faq-category-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ms-faq-category-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.ms-faq-category-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.ms-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ms-faq-item {
    background: #ffffff;
    border: 1px solid #CFEAE8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(32, 167, 178, 0.06);
}

.ms-faq-item:hover {
    border-color: #95D4D9;
    box-shadow: 0 4px 16px rgba(32, 167, 178, 0.1);
}

.ms-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s;
}

.ms-faq-question:hover {
    background: #EDFCFA;
}

.ms-faq-question.open {
    background: #EDFCFA;
    border-bottom: 1px solid #CFEAE8;
}

.ms-faq-q-text {
    font-size: 15px;
    font-weight: 700;
    color: #20A7B2;
    line-height: 1.4;
    flex: 1;
}

.ms-faq-q-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #DBF2F0;
    color: #20A7B2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.ms-faq-question.open .ms-faq-q-icon {
    background: #20A7B2;
    color: #ffffff;
    transform: rotate(180deg);
}

.ms-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ms-faq-answer.open {
    max-height: 800px;
}

.ms-faq-answer-inner {
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #515C54;
}

.ms-faq-answer-inner p {
    margin-bottom: 10px;
}

.ms-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.ms-faq-answer-inner ul,
.ms-faq-answer-inner ol {
    margin: 8px 0;
    padding-left: 22px;
}

.ms-faq-answer-inner li {
    margin-bottom: 6px;
}

.ms-faq-answer-inner ul li::marker {
    color: #20A7B2;
}

.ms-faq-answer-inner ol li::marker {
    color: #20A7B2;
    font-weight: 700;
}

.ms-faq-answer-inner strong {
    color: #20A7B2;
    font-weight: 700;
}

.ms-faq-answer-inner a {
    color: #20A7B2;
    text-decoration: underline;
    font-weight: 600;
}

.ms-faq-answer-inner a:hover {
    color: #40A3A8;
}

.ms-faq-cta {
    background: linear-gradient(135deg, #20A7B2 0%, #40A3A8 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    margin-top: 48px;
    position: relative;
    overflow: hidden;
}

.ms-faq-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ms-faq-cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.ms-faq-cta-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.ms-faq-cta-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.ms-faq-cta .ms-btn {
    position: relative;
    z-index: 2;
    background: #ffffff;
    color: #20A7B2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ms-faq-cta .ms-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    background: #ffffff;
    color: #20A7B2;
}

/* ============================================
   KURIKULUM SECTION
   ============================================ */
.ms-kurikulum-intro {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #FBF5E1;
    border: 1px solid #E8E2C4;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 0;
}

.ms-kurikulum-intro-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ECB63A, #F8DC9B);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(236, 182, 58, 0.3);
}

.ms-kurikulum-intro-text h3 {
    font-size: 20px;
    font-weight: 800;
    color: #20A7B2;
    margin: 0 0 8px;
}

.ms-kurikulum-intro-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #515C54;
    margin: 0;
}

.ms-kurikulum-intro-text strong {
    color: #20A7B2;
    font-weight: 700;
}

.ms-kurikulum-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ms-kurikulum-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(32, 167, 178, 0.08);
    border: 1px solid #CFEAE8;
    transition: all 0.3s ease;
}

.ms-kurikulum-card:hover {
    box-shadow: 0 8px 28px rgba(32, 167, 178, 0.15);
}

.ms-kurikulum-card-teal {
    border-left: 5px solid #20A7B2;
}

.ms-kurikulum-card-gold {
    border-left: 5px solid #ECB63A;
}

.ms-kurikulum-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px 24px 20px;
    background: #EDFCFA;
    border-bottom: 1px solid #CFEAE8;
}

.ms-kurikulum-card-gold .ms-kurikulum-header {
    background: #FBF5E1;
    border-bottom-color: #E8E2C4;
}

.ms-kurikulum-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ms-kurikulum-icon-teal {
    background: linear-gradient(135deg, #20A7B2, #40A3A8);
}

.ms-kurikulum-icon-gold {
    background: linear-gradient(135deg, #ECB63A, #F8DC9B);
}

.ms-kurikulum-header-text {
    flex: 1;
    min-width: 0;
}

.ms-kurikulum-title {
    font-size: 19px;
    font-weight: 800;
    color: #20A7B2;
    margin: 0 0 6px;
    line-height: 1.3;
}

.ms-kurikulum-card-gold .ms-kurikulum-title {
    color: #B8860B;
}

.ms-kurikulum-desc {
    font-size: 13px;
    color: #768179;
    line-height: 1.6;
    margin: 0;
}

.ms-kurikulum-body {
    padding: 20px 24px 24px;
}

.ms-kurikulum-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ms-kurikulum-tab-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ms-kurikulum-tab-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #CFEAE8;
}

.ms-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ms-badge-teal {
    background: #DBF2F0;
    color: #20A7B2;
}

.ms-badge-gold {
    background: #FBF5E1;
    color: #B8860B;
}

.ms-kurikulum-count {
    font-size: 12px;
    color: #A7B0A4;
    font-weight: 500;
}

.ms-mapel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ms-mapel-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: #F8FCFC;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #515C54;
    transition: all 0.2s;
}

.ms-mapel-list li:hover {
    background: #EDFCFA;
    transform: translateX(4px);
}

.ms-mapel-list li i {
    color: #20A7B2;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 3px;
}

.ms-kurikulum-card-gold .ms-mapel-list li {
    background: #FFFCF5;
}

.ms-kurikulum-card-gold .ms-mapel-list li:hover {
    background: #FBF5E1;
}

.ms-kurikulum-card-gold .ms-mapel-list li i {
    color: #ECB63A;
}

.ms-kurikulum-empty {
    text-align: center;
    padding: 20px;
    color: #A7B0A4;
    font-size: 13px;
}

.ms-kurikulum-empty i {
    font-size: 28px;
    color: #CFEAE8;
    display: block;
    margin-bottom: 8px;
}

.ms-kurikulum-empty p {
    margin: 0;
}

/* ============================================
   PROGRAM TAHFIDZ
   ============================================ */
.ms-tahfidz-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.ms-tahfidz-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid #CFEAE8;
    box-shadow: 0 2px 8px rgba(32, 167, 178, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ms-tahfidz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #20A7B2, #40A3A8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.ms-tahfidz-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(32, 167, 178, 0.18);
    border-color: #95D4D9;
}

.ms-tahfidz-card:hover::before {
    transform: scaleX(1);
}

.ms-tahfidz-num {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 24px;
    height: 24px;
    background: #DBF2F0;
    color: #20A7B2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.ms-tahfidz-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #20A7B2, #40A3A8);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 26px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(32, 167, 178, 0.3);
}

.ms-tahfidz-title {
    font-size: 16px;
    font-weight: 800;
    color: #20A7B2;
    margin: 0 0 8px;
    line-height: 1.3;
}

.ms-tahfidz-desc {
    font-size: 12px;
    color: #768179;
    line-height: 1.6;
    margin: 0;
}

.ms-kurikulum-cta {
    background: #ffffff;
    border: 1px solid #CFEAE8;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(32, 167, 178, 0.1);
}

.ms-kurikulum-cta-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #20A7B2, #40A3A8);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(32, 167, 178, 0.3);
}

.ms-kurikulum-cta-title {
    font-size: 22px;
    font-weight: 800;
    color: #20A7B2;
    margin-bottom: 8px;
}

.ms-kurikulum-cta-desc {
    font-size: 14px;
    color: #768179;
    margin-bottom: 24px;
    line-height: 1.6;
}

.ms-kurikulum-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   GALERI SECTION
   ============================================ */
.ms-galeri-intro {
    background: #EDFCFA;
    border-left: 4px solid #20A7B2;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.7;
    color: #515C54;
}

.ms-galeri-intro p {
    margin: 0;
}

.ms-galeri-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.ms-galeri-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1.5px solid #CFEAE8;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #515C54;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    text-decoration: none;
}

.ms-galeri-filter-btn i {
    color: #20A7B2;
    font-size: 13px;
}

.ms-galeri-filter-btn:hover {
    border-color: #20A7B2;
    background: #EDFCFA;
    color: #20A7B2;
}

.ms-galeri-filter-btn.active {
    background: linear-gradient(135deg, #20A7B2, #40A3A8);
    border-color: #20A7B2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(32, 167, 178, 0.3);
}

.ms-galeri-filter-btn.active i {
    color: #ffffff;
}

.ms-galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ms-galeri-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(32, 167, 178, 0.08);
    border: 1px solid #CFEAE8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ms-galeri-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(32, 167, 178, 0.2);
    border-color: #95D4D9;
}

.ms-galeri-image-wrap {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #EDFCFA;
}

.ms-galeri-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ms-galeri-item:hover .ms-galeri-image {
    transform: scale(1.08);
}

.ms-galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(32, 167, 178, 0.85), rgba(64, 163, 168, 0.75));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ms-galeri-item:hover .ms-galeri-overlay {
    opacity: 1;
}

.ms-galeri-zoom {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.ms-galeri-item:hover .ms-galeri-zoom {
    transform: scale(1);
}

.ms-galeri-info {
    padding: 18px 20px 20px;
}

.ms-galeri-cat {
    display: inline-block;
    padding: 3px 10px;
    background: #DBF2F0;
    color: #20A7B2;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ms-galeri-title {
    font-size: 15px;
    font-weight: 800;
    color: #20A7B2;
    margin: 0 0 4px;
    line-height: 1.3;
}

.ms-galeri-desc {
    font-size: 12px;
    color: #768179;
    line-height: 1.5;
    margin: 0;
}

.ms-galeri-empty {
    text-align: center;
    padding: 60px 20px;
    background: #EDFCFA;
    border-radius: 16px;
    border: 2px dashed #CFEAE8;
}

.ms-galeri-empty i {
    font-size: 48px;
    color: #95D4D9;
    margin-bottom: 12px;
    display: block;
}

.ms-galeri-empty p {
    font-size: 14px;
    color: #768179;
    margin: 0;
}

.ms-galeri-animate {
    animation: msGaleriFadeIn 0.4s ease;
}

@keyframes msGaleriFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ms-galeri-cta {
    background: linear-gradient(135deg, #20A7B2 0%, #40A3A8 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    margin-top: 48px;
    position: relative;
    overflow: hidden;
}

.ms-galeri-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ms-galeri-cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.ms-galeri-cta-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.ms-galeri-cta-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.ms-galeri-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.ms-galeri-cta .ms-btn-primary {
    background: #ffffff;
    color: #20A7B2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ms-galeri-cta .ms-btn-primary:hover {
    background: #ffffff;
    color: #20A7B2;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.ms-galeri-cta .ms-btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.ms-galeri-cta .ms-btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.ms-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ms-lightbox.open {
    display: flex;
    opacity: 1;
}

.ms-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.ms-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-lightbox-nav:hover {
    background: rgba(32, 167, 178, 0.6);
    border-color: rgba(32, 167, 178, 0.8);
}

.ms-lightbox-prev {
    left: 20px;
}

.ms-lightbox-next {
    right: 20px;
}

.ms-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: msLightboxZoom 0.3s ease;
}

@keyframes msLightboxZoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ms-lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background: #000;
}

.ms-lightbox-info {
    padding: 20px 28px 24px;
    background: #ffffff;
}

.ms-lightbox-cat {
    display: inline-block;
    padding: 3px 10px;
    background: #DBF2F0;
    color: #20A7B2;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ms-lightbox-title {
    font-size: 18px;
    font-weight: 800;
    color: #20A7B2;
    margin: 0 0 4px;
    line-height: 1.3;
}

.ms-lightbox-desc {
    font-size: 13px;
    color: #768179;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .ms-tahfidz-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ms-galeri-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ms-page-header {
        padding: 100px 0 48px;
    }
    
    .ms-page-header-title {
        font-size: 28px;
    }
    
    .ms-page-header-title i {
        display: block;
        margin: 0 0 8px;
        font-size: 32px;
    }
    
    .ms-page-header-subtitle {
        font-size: 14px;
    }
    
    .ms-page-header-eyebrow {
        font-size: 11px;
    }
    
    /* FAQ */
    .ms-faq-category-title {
        font-size: 17px;
    }
    
    .ms-faq-category-header {
        padding: 14px 18px;
        gap: 12px;
    }
    
    .ms-faq-category-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .ms-faq-question {
        padding: 16px;
    }
    
    .ms-faq-q-text {
        font-size: 14px;
    }
    
    .ms-faq-answer-inner {
        padding: 0 16px 16px;
        font-size: 13px;
    }
    
    .ms-faq-cta {
        padding: 32px 20px;
    }
    
    .ms-faq-cta-title {
        font-size: 18px;
    }
    
    .ms-faq-intro {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    /* Kurikulum */
    .ms-kurikulum-intro {
        flex-direction: column;
        padding: 24px 20px;
    }
    
    .ms-kurikulum-intro-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .ms-kurikulum-intro-text h3 {
        font-size: 18px;
    }
    
    .ms-kurikulum-header {
        padding: 20px 18px 16px;
        gap: 12px;
    }
    
    .ms-kurikulum-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .ms-kurikulum-title {
        font-size: 17px;
    }
    
    .ms-kurikulum-desc {
        font-size: 12px;
    }
    
    .ms-kurikulum-body {
        padding: 16px 18px 20px;
    }
    
    .ms-kurikulum-tabs {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ms-tahfidz-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .ms-tahfidz-card {
        padding: 22px 16px;
    }
    
    .ms-tahfidz-icon {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }
    
    .ms-tahfidz-title {
        font-size: 14px;
    }
    
    .ms-tahfidz-desc {
        font-size: 11px;
    }
    
    .ms-kurikulum-cta {
        padding: 32px 20px;
    }
    
    .ms-kurikulum-cta-title {
        font-size: 18px;
    }
    
    .ms-kurikulum-cta-buttons {
        flex-direction: column;
    }
    
    .ms-kurikulum-cta-buttons .ms-btn {
        width: 100%;
    }
    
    /* Galeri */
    .ms-galeri-filter {
        gap: 8px;
    }
    
    .ms-galeri-filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .ms-galeri-grid {
        gap: 16px;
    }
    
    .ms-galeri-info {
        padding: 14px 16px 16px;
    }
    
    .ms-galeri-title {
        font-size: 14px;
    }
    
    .ms-galeri-desc {
        font-size: 11px;
    }
    
    .ms-galeri-cta {
        padding: 32px 20px;
    }
    
    .ms-galeri-cta-title {
        font-size: 18px;
    }
    
    .ms-galeri-cta-buttons {
        flex-direction: column;
    }
    
    .ms-galeri-cta-buttons .ms-btn {
        width: 100%;
    }
    
    /* Lightbox */
    .ms-lightbox {
        padding: 10px;
    }
    
    .ms-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .ms-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .ms-lightbox-prev {
        left: 10px;
    }
    
    .ms-lightbox-next {
        right: 10px;
    }
    
    .ms-lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .ms-lightbox-image {
        max-height: 60vh;
    }
    
    .ms-lightbox-info {
        padding: 16px 20px 20px;
    }
    
    .ms-lightbox-title {
        font-size: 16px;
    }
    
    .ms-lightbox-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ms-page-header {
        padding: 96px 0 40px;
    }
    
    .ms-page-header-title {
        font-size: 24px;
    }
    
    .ms-page-header-eyebrow {
        font-size: 10px;
        padding: 5px 12px;
    }
    
    .ms-faq-category-header {
        gap: 10px;
        padding: 12px 16px;
    }
    
    .ms-faq-category-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .ms-faq-category-title {
        font-size: 15px;
    }
    
    .ms-faq-question {
        padding: 14px;
        gap: 10px;
    }
    
    .ms-faq-q-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .ms-tahfidz-grid {
        grid-template-columns: 1fr;
    }
    
    .ms-kurikulum-header {
        flex-direction: column;
        text-align: center;
    }
    
    .ms-kurikulum-icon {
        margin: 0 auto;
    }
    
    .ms-galeri-grid {
        grid-template-columns: 1fr;
    }
    
    .ms-galeri-filter-btn span {
        display: none;
    }
    
    .ms-galeri-filter-btn {
        padding: 10px 14px;
    }
    
    .ms-galeri-filter-btn i {
        font-size: 15px;
    }
}