* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 165, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 140, 0, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.logo {
    color: #0A2E57;
}

.logo i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: #ff8c00;
    text-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Logo image */
.logo-img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

/* Nav */
.top-nav {
    margin-top: 12px;
}
.nav-link {
    color: #0A2E57;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
}
.nav-link:hover {
    background: rgba(255,255,255,0.12);
}
.nav-link.active {
    background: rgba(255,255,255,0.18);
}

.main-content {
    background: linear-gradient(135deg, #008000 0%, #006400 100%);
    color: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.landing-content {
    text-align: left;
}

/* Banner slider */
.banner-slider {
    margin-bottom: 24px;
}
.slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}
.slide {
    display: none;
    position: relative;
    min-height: 360px;
    padding: 40px 20px;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.slide.active { display: block; }
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}
.slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.gradient-1 { background-image: url('assets/banner/banner1.jpg'); }
.gradient-2 { background-image: url('assets/banner/banner2.jpeg'); }
.gradient-3 { background-image: url('assets/banner/banner3.jpeg'); }
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}
.slide-nav:hover { background: rgba(255,255,255,0.3); }
.slide-nav.prev { left: 10px; }
.slide-nav.next { right: 10px; }
.slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
}
.dot.active { background: #fff; }

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 30px;
}
.hero-title {
    font-size: 2.4rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 16px;
}

/* Ensure text stays legible on green main content */
.main-content .hero-title { color: #ffffff; }
.main-content .hero-subtitle { color: #e8f5e9; }
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* About page */
.about-content {
    text-align: left;
}

.about-hero .description {
    max-width: 800px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.about-card {
    padding: 24px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #008000 0%, #ff8c00 100%);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

.about-card:nth-child(2) {
    background: linear-gradient(135deg, #ff8c00 0%, #008000 100%);
}

.about-card:nth-child(3) {
    background: linear-gradient(135deg, #006400 0%, #ffa500 100%);
}

.about-card i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.about-links {
    margin-top: 32px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

.about-links h3 {
    color: #333;
    margin-bottom: 12px;
}

.construction-icon {
    margin-bottom: 30px;
}

.construction-icon i {
    font-size: 5rem;
    color: #ff6b6b;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.main-title {
    font-size: 2.5rem;
    /* color: #333; */
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
}

.description {
    font-size: 1.2rem;
    /* color: #666; */
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-item {
    padding: 30px 20px;
    background: linear-gradient(135deg, #008000 0%, #ff8c00 100%);
    border-radius: 15px;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.3);
}

.feature-item:nth-child(2) {
    background: linear-gradient(135deg, #ff8c00 0%, #008000 100%);
}

.feature-item:nth-child(3) {
    background: linear-gradient(135deg, #006400 0%, #ffa500 100%);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.contact-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
}

/* Programs */
.section-title {
    color: #333;
    margin-bottom: 16px;
    font-size: 1.5rem;
}
.programs {
    margin: 24px 0;
}
.programs .section-title { color: #fff; }
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.program-card {
    background: linear-gradient(135deg, #008000 0%, #ff8c00 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(255, 140, 0, 0.25);
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(255, 140, 0, 0.35);
}
.program-card:nth-child(2) {
    background: linear-gradient(135deg, #ff8c00 0%, #008000 100%);
}
.program-card:nth-child(3) {
    background: linear-gradient(135deg, #006400 0%, #ffa500 100%);
}
.program-card i {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 8px;
}
.program-card h4 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}
.program-card p {
    font-size: 0.95rem;
    color: #fff;
    opacity: 0.92;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}
.btn-primary {
    background: linear-gradient(135deg, #008000 0%, #ff8c00 100%);
    color: white;
}
.btn-secondary {
    background: white;
    border: 1px solid #eee;
    color: #333;
}

.contact-info h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 1rem;
}

.contact-item i {
    color: #ff8c00;
    width: 20px;
}
/* Ensure contact links don’t show default blue/purple */
.contact-item a {
    color: inherit;
    text-decoration: none;
}
.contact-item a:visited {
    color: inherit;
}
.contact-item a:hover {
    color: #333;
    text-decoration: underline;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 25px;
    height: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #008000, #ff8c00);
    height: 100%;
    width: 10%;
    border-radius: 25px;
    animation: progressAnimation 3s ease-in-out;
}

@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    100% {
        width: 10%;
    }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.launch-text {
    font-size: 1.1rem;
    color: #008000;
    font-weight: 500;
    margin-bottom: 30px;
}

.launch-text i {
    margin-right: 8px;
}

.footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 30px 0;
}

.footer p {
    margin-bottom: 20px;
    color: #0A2E57;
    opacity: 1;
}

.islamic-quote {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.islamic-quote p {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ff8c00;
}

.islamic-quote small {
    font-size: 0.9rem;
    opacity: 0.95;
    font-style: italic;
    color: #006400;
}

/* Quick Links */
.quick-links {
    margin: 20px 0 32px;
}
.ql-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.ql-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f9f5;
    border: 1px solid #e0eee0;
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: #333;
}
.ql-item i {
    color: #008000;
    font-size: 1.4rem;
}
.ql-item:hover { background: #eef7ee; }

/* Content Row: Pengumuman, Berita, Agenda */
.content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
.content-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.card { background: #f9fbf9; border: 1px solid #e8f2e8; border-radius: 10px; overflow: hidden; }
.card img { width: 100%; height: 120px; object-fit: cover; }
.card-body { padding: 10px; }
.card-title { font-size: 1rem; margin-bottom: 6px; color: #333; }
.card-text { font-size: 0.92rem; color: #555; }
.card-meta { font-size: 0.8rem; color: #777; }
.announce-list { list-style: none; }
.announce-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #eee; }
.announce-item .badge { background: #ff8c00; color: #fff; font-size: 0.75rem; padding: 2px 6px; border-radius: 6px; }
.announce-item a { color: #333; text-decoration: none; }
.announce-item .meta { margin-left: auto; font-size: 0.8rem; color: #777; }
.agenda-list { list-style: none; }
.agenda-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #eee; }
.agenda-date { background: #008000; color: #fff; min-width: 60px; text-align: center; border-radius: 8px; padding: 6px; font-weight: 600; }
.agenda-title { color: #333; text-decoration: none; }
.agenda-meta { font-size: 0.8rem; color: #777; }
.small-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.small-link { display: inline-flex; align-items: center; gap: 6px; background: #f5f9f5; border: 1px solid #e0eee0; border-radius: 10px; padding: 8px; text-decoration: none; color: #333; }
.small-link i { color: #ff8c00; }
.small-link:hover { background: #eef7ee; }

/* Gallery */
.gallery { margin-top: 20px; }
.gallery .section-title { color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.gallery-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }

/* Gallery Slideshow */
.gallery-slideshow { position: relative; border-radius: 12px; overflow: hidden; height: 180px; margin-bottom: 12px; }
.gallery-slideshow .gs-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 800ms ease; }
.gallery-slideshow .gs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-slideshow .gs-slide.active { opacity: 1; }

/* Video Gallery */
.video-gallery { margin-top: 24px; margin-bottom: 32px; }
.video-gallery .section-title { color: #fff; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.video-item { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 10px; }
.video-embed { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: 8px; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Teachers */
.teachers { margin-top: 24px; }
.teachers .section-title { color: #fff; }
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.teacher-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 16px; text-align: center; }
.teacher-avatar { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(135deg, #008000 0%, #ff8c00 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(255, 140, 0, 0.25); }
.teacher-avatar i { font-size: 1.6rem; }
.teacher-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.teacher-name { font-size: 1rem; color: #333; margin-bottom: 4px; }
.teacher-role { font-size: 0.9rem; color: #777; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: none; }
.lightbox.open { display: block; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); opacity: 0; animation: lbFade 200ms forwards; }
.lightbox-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(0.98); background: #111; border-radius: 12px; padding: 8px; max-width: 90vw; max-height: 85vh; display: grid; grid-template-areas: 'img img img' 'caption caption caption'; gap: 8px; opacity: 0; animation: lbPop 220ms ease-out forwards; }
.lightbox-image { grid-area: img; max-width: 88vw; max-height: 75vh; object-fit: contain; border-radius: 8px; }
.lightbox-caption { grid-area: caption; color: #eee; font-size: 0.9rem; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,0.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox-close { top: 8px; right: 8px; }
.lightbox-prev { top: 50%; left: 8px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 8px; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }

@keyframes lbFade { to { opacity: 1; } }
@keyframes lbPop { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* Lightbox layering overrides */
.lightbox { z-index: 999; }
.lightbox-backdrop { z-index: 998; }
.lightbox-content { z-index: 1000; }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .logo i {
        font-size: 3rem;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .content-row { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .feature-item {
        padding: 20px 15px;
    }
    
    .contact-info {
        padding: 20px;
    }
}