/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.top-bar {
    background: linear-gradient(135deg, #00a85a 0%, #00a85a 100%);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i,
.social-links i {
    margin-right: 5px;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 16px;
}

.social-links a:hover {
    color: #ffd700;
}

/* News Ticker */
.news-ticker {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 20px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.ticker-label {
    background: #ffd700;
    color: #333;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    padding: 5px 10px;
    overflow: hidden;
}

.ticker-content marquee {
    margin: 0;
    padding: 0;
    line-height: 1;
    vertical-align: middle;
    display: block;
}

.ticker-content a {
    color: #fff;
    margin-right: 30px;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
}

.ticker-content a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.ticker-content i {
    font-size: 10px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Navbar */
.navbar {
    background: #fff;
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 280px;
    flex-shrink: 0;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 24px;
    color: #00a85a;
    margin-bottom: 0;
    line-height: 1.2;
}

.logo-text p {
    font-size: 12px;
    color: #666;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    margin-left: auto;
    width: 100%;
}

.nav-menu > li {
    flex-shrink: 0;
}

.nav-menu > li > a {
    padding: 10px 15px;
    color: #333;
    font-weight: 500;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    white-space: nowrap;
    font-size: 14.5px;
}

.mobile-nav-header {
    display: none;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: #00a85a;
    color: #fff;
}

.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    min-width: 220px;
    border-radius: 5px;
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    color: #333;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background: #f0f0f0;
    color: #00a85a;
}

.btn-login {
    background: #28a745 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 5px;
    margin-left: 10px;
}

.btn-login:hover {
    background: #218838 !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ffd700;
    color: #333;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Modern Hero Section */
.hero-modern {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 168, 90, 0.9) 0%, rgba(0, 143, 76, 0.8) 60%, rgba(0, 168, 90, 0.4) 100%);
    z-index: 0;
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-title .highlight {
    color: #ffd700;
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 215, 0, 0.3);
    z-index: -1;
    border-radius: 5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn-modern {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-modern.primary {
    background: #ffd700;
    color: #333;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-modern.primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.2);
}

.btn-modern.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-modern.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease 0.8s backwards;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
}

.stat-item span {
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Cards */
.info-cards {
    padding: 60px 0;
    background: #fff;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #00a85a 0%, #00a85a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.info-card h3 {
    color: #00a85a;
    margin-bottom: 10px;
    font-size: 20px;
}

.info-card p {
    color: #666;
    font-size: 14px;
}

/* Section Styles */
.berita-section,
.galeri-section {
    padding: 60px 0;
}

.berita-section {
    background: #fff;
}

.galeri-section {
    background: #f8f9fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: #00a85a;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #ffd700;
}

.btn-more {
    color: #00a85a;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #00a85a;
    border-radius: 5px;
}

.btn-more:hover {
    background: #00a85a;
    color: #fff;
}

/* Berita Grid */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.berita-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.berita-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.berita-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.berita-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.berita-card:hover .berita-image img {
    transform: scale(1.1);
}

.berita-kategori {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffd700;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.berita-content {
    padding: 20px;
}

.berita-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #999;
}

.berita-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
}

.berita-content h3 a {
    color: #333;
}

.berita-content h3 a:hover {
    color: #00a85a;
}

.berita-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.read-more {
    color: #00a85a;
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    color: #00a85a;
}

/* Galeri Grid */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.galeri-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.galeri-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.galeri-item:hover .galeri-overlay {
    transform: translateY(0);
}

.galeri-item:hover img {
    transform: scale(1.1);
}

.galeri-overlay h4 {
    margin-bottom: 5px;
}

.galeri-overlay p {
    font-size: 14px;
    opacity: 0.8;
}

/* PPDB Banner */
.ppdb-banner {
    background: linear-gradient(135deg, #00a85a 0%, #008f4c 100%);
    padding: 40px 0;
    color: #fff;
    margin-bottom: 40px;
}

.ppdb-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ppdb-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.ppdb-text p {
    font-size: 16px;
    opacity: 0.9;
}

.btn-light {
    background: #fff;
    color: #00a85a;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
}

.btn-light:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Sambutan Section */
.sambutan-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.sambutan-container {
    max-width: 1000px;
    margin: 0 auto;
}

.sambutan-header {
    text-align: center;
    margin-bottom: 50px;
}

.sambutan-header h4 {
    color: #00a85a;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.sambutan-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.sambutan-content-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sambutan-image-container {
    text-align: center;
    padding: 40px 40px 0;
    background: linear-gradient(135deg, #00a85a 0%, #008f4d 100%);
}

.sambutan-image-container img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.kepsek-name {
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 20px;
    padding-bottom: 30px;
}

.sambutan-text {
    padding: 40px 50px;
}

.sambutan-text p {
    color: #555;
    line-height: 1.9;
    text-align: justify;
    font-size: 1rem;
    margin-bottom: 20px;
}

.sambutan-signature {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.sambutan-signature p {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    text-align: right;
}

.sambutan-signature .title {
    color: #00a85a;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .sambutan-section {
        padding: 50px 0;
    }
    
    .sambutan-header h2 {
        font-size: 1.8rem;
    }
    
    .sambutan-image-container {
        padding: 30px 20px 0;
    }
    
    .sambutan-image-container img {
        width: 150px;
        height: 150px;
    }
    
    .kepsek-name {
        font-size: 1.1rem;
    }
    
    .sambutan-text {
        padding: 30px 20px;
    }
    
    .sambutan-text p {
        font-size: 0.95rem;
        text-align: left;
    }
}

/* Ekskul Section */
/* Ekstrakurikuler Section - REDESIGN */
.ekskul-section {
    padding: 70px 0;
    background: #f7faf8;
}

.ekskul-simple {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}

.ekskul-simple-copy h3 {
    font-size: 26px;
    color: #0f2e1f;
    margin: 12px 0 10px;
}

.ekskul-simple-copy p {
    color: #4a5568;
    margin-bottom: 14px;
}

.ekskul-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 12px;
    background: #e6f7ef;
    color: #0f8b46;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ekskul-simple-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 10px;
}

.btn-ekskul-primary,
.btn-ekskul-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-ekskul-primary {
    background: #0f8b46;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 139, 70, 0.18);
}

.btn-ekskul-primary:hover {
    background: #0c7339;
    transform: translateY(-1px);
}

.btn-ekskul-ghost {
    background: #f8fafc;
    color: #0f2e1f;
    border-color: #d7e0ea;
}

.btn-ekskul-ghost:hover {
    background: #e9f5ee;
    border-color: #0f8b46;
}

.ekskul-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ekskul-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f2f6fb;
    color: #1f3b57;
    font-weight: 600;
    border: 1px solid #dde6f1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ekskul-chip:hover {
    background: #e7f6ee;
    border-color: #0f8b46;
    color: #0f2e1f;
}

.ekskul-simple-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.ekskul-simple-card {
    display: block;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f9fbfd;
    color: #0f2e1f;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ekskul-simple-card:hover {
    border-color: #0f8b46;
    background: #f2f8f4;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.ekskul-simple-card h4 {
    margin: 8px 0 6px;
    font-size: 18px;
    color: #0f2e1f;
}

.ekskul-simple-card p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
}

.simple-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e6f7ef;
    color: #0f8b46;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.simple-badge.beladiri {
    background: #fff7e6;
    color: #b46b00;
}

.simple-badge.olahraga {
    background: #e8f3ff;
    color: #0f4fa3;
}

.simple-badge.wajib {
    background: #fce8ec;
    color: #b11c3f;
}

.testimoni-section {
    padding: 80px 0;
    background: #fff;
}

.testimoni-slider {
    position: relative;
    margin-top: 30px;
}

.testimoni-window {
    overflow: hidden;
}

.testimoni-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s ease;
    will-change: transform;
}

.testimoni-card {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    background: #f9f9f9;
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.testi-text {
    font-style: italic;
    color: #4a5568;
    margin-bottom: 18px;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-user h4 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.testi-user span {
    font-size: 13px;
    color: #6b7280;
}

.user-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e5e7eb;
    display: grid;
    place-items: center;
    color: #6b7280;
    font-size: 22px;
}

.testi-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0f8b46;
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15,139,70,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.testi-nav:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 10px 22px rgba(15,139,70,0.3);
}

.testi-nav.prev { left: -10px; }
.testi-nav.next { right: -10px; }

@media (max-width: 992px) {
    .testimoni-card {
        flex: 0 0 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    .testimoni-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .testi-nav.prev { left: 0; }
    .testi-nav.next { right: 0; }
}

@media (max-width: 992px) {
    .ekskul-simple {
        grid-template-columns: 1fr;
    }
}

/* Ekskul Tabs */
.ekskul-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin: 30px 0 24px;
    -webkit-overflow-scrolling: touch;
}

.ekskul-tab {
    background: white;
    border: 2px solid #dee2e6;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ekskul-tab:hover {
    border-color: #00a85a;
    color: #00a85a;
    transform: translateY(-2px);
}

.ekskul-tab.active {
    background: linear-gradient(135deg, #00a85a, #00c968);
    border-color: #00a85a;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 168, 90, 0.3);
}

.ekskul-tab i {
    font-size: 18px;
}

/* Ekskul Container */
.ekskul-container {
    margin-top: 40px;
}

.ekskul-category {
    margin-bottom: 50px;
    animation: fadeInUp 0.5s ease;
}

.category-title {
    display: none !important;
}

/* Ekskul Grid - NEW DESIGN */
.ekskul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.ekskul-card {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.ekskul-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00a85a, #00c968);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.ekskul-card:hover::before {
    transform: scaleX(1);
}

.ekskul-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 168, 90, 0.2);
    border-color: #00a85a;
}

.ekskul-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e6f7ef, #d0f0e0);
    color: #00a85a;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.ekskul-card:hover .ekskul-icon {
    background: linear-gradient(135deg, #00a85a, #00c968);
    color: white;
    transform: rotate(360deg) scale(1.1);
}

.ekskul-card h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.ekskul-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #e6f7ef;
    color: #00a85a;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.ekskul-badge.beladiri {
    background: #fff3cd;
    color: #856404;
}

.ekskul-badge.olahraga {
    background: #d1ecf1;
    color: #0c5460;
}

/* Pramuka Wajib Banner */
.ekskul-wajib {
    margin-top: 60px;
}

.wajib-banner {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.wajib-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.wajib-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wajib-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.wajib-content h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wajib-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 16px;
}

.btn-lihat {
    margin-left: auto;
    background: white;
    color: #ff9800;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-lihat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #fff;
}

.btn-primary-custom {
    display: inline-block;
    background: linear-gradient(135deg, #00a85a, #00c968);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 90, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 90, 0.4);
    color: white;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OLD EKSKUL STYLES - KEEP FOR COMPATIBILITY */
.ekskul-item {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.ekskul-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ekskul-item h3 {
    font-size: 16px;
    color: #333;
}

/* Guru Section */
.guru-section {
    padding: 80px 0;
    background: #fff;
}

.guru-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.guru-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.guru-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.guru-image img {
    transition: transform 0.5s ease;
}

.guru-card:hover .guru-image img {
    transform: scale(1.1);
}

.guru-content {
    padding: 20px;
    text-align: center;
}

.guru-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #00a85a;
}

.guru-content p {
    font-size: 14px;
    color: #666;
}

/* Fasilitas Section */
.fasilitas-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.fasilitas-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 300px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.fasilitas-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,168,90,0.2);
}

.fasilitas-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.fasilitas-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fasilitas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 168, 90, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fasilitas-item:hover .fasilitas-overlay {
    opacity: 1;
}

.fasilitas-overlay i {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

.fasilitas-overlay p {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.fasilitas-item:hover .fasilitas-img img {
    transform: scale(1.1);
}

.fasilitas-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.fasilitas-item:hover::after {
    opacity: 1;
}

.fasilitas-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.fasilitas-item:hover .fasilitas-content {
    transform: translateY(0);
}

.fasilitas-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #00a85a;
    background: #fff;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.fasilitas-item:hover .fasilitas-icon {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.fasilitas-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    color: #fff;
}

.fasilitas-content p {
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    margin: 0;
    color: #eee;
    line-height: 1.5;
}

.fasilitas-item:hover .fasilitas-content p {
    opacity: 1;
    transform: translateY(0);
}

/* Fasilitas Modal */
.fasilitas-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.fasilitas-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: slideDown 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fasilitas-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    z-index: 10000;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fasilitas-modal-close:hover,
.fasilitas-modal-close:focus {
    background: #00a85a;
    transform: rotate(90deg);
}

.fasilitas-modal-content img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.fasilitas-modal-info {
    padding: 40px;
    text-align: center;
}

.fasilitas-modal-info h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.fasilitas-modal-info p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .fasilitas-modal-content {
        width: 95%;
        margin-top: 20px;
    }
    
    .fasilitas-modal-content img {
        height: 250px;
    }
    
    .fasilitas-modal-info {
        padding: 25px 20px;
    }
    
    .fasilitas-modal-info h3 {
        font-size: 1.5rem;
    }
    
    .fasilitas-modal-info p {
        font-size: 1rem;
    }
}

/* Footer */
.footer {
    background: #222;
    color: #fff;
    padding: 80px 0 0;
    font-size: 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #00a85a;
}

.footer-col p {
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-col ul li a::before {
    content: '\F285'; /* Bootstrap icon chevron-right */
    font-family: 'bootstrap-icons';
    font-size: 12px;
    margin-right: 8px;
    color: #00a85a;
    transition: margin-left 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #00a85a;
    transform: translateY(-3px);
}

.footer-bottom {
    background: #1a1a1a;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Statistik Section */
.statistik-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #00a85a 0%, #008f4c 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.statistik-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png'); /* Optional pattern */
    opacity: 0.1;
}

.statistik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.statistik-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.statistik-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.statistik-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #ffd700;
}

.statistik-count {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 5px;
    display: block;
}

.statistik-label {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 40px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
    }
    
    .footer-col p {
        font-size: 14px;
        line-height: 1.7;
        padding: 0 15px;
    }
    
    .footer-col ul {
        padding: 0;
    }
    
    .footer-col ul li {
        margin-bottom: 10px;
    }
    
    .footer-col ul li a {
        justify-content: center;
        font-size: 14px;
    }
    
    .footer-col ul li a::before {
        font-size: 11px;
    }
    
    .footer-social {
        justify-content: center;
        gap: 12px;
    }
    
    .footer-social a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .footer-bottom {
        padding: 20px 15px;
    }
    
    .footer-bottom p {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* Mobile Responsive Fasilitas */
@media (max-width: 768px) {
    .fasilitas-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .fasilitas-item {
        height: 280px;
    }
    
    .fasilitas-content {
        transform: translateY(0);
        padding: 20px;
    }
    
    .fasilitas-content p {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .fasilitas-icon {
        opacity: 1;
        transform: scale(1) rotate(0);
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .fasilitas-content h3 {
        font-size: 1.3rem;
    }
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    /* Header & Navbar */
    .top-bar {
        display: none; /* Hide top bar on mobile to save space */
    }

    .navbar {
        padding: 10px 0;
        position: relative;
    }

    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        grid-template-columns: none;
        gap: 0;
    }

    .logo {
        width: auto;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%; /* Cover most of the screen */
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 12px 18px 28px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.3s ease-in-out;
        z-index: 1000;
        gap: 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    }

    .nav-menu .mobile-nav-header {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 12px;
        padding: 6px 0 12px;
        margin-bottom: 8px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu .mobile-nav-header img {
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu > li > a {
        padding: 15px 0;
        font-size: 16px;
        width: 100%;
        text-align: left;
    }
    
    .nav-menu > li > a.btn-login {
        margin-top: 20px;
        text-align: center;
        width: auto;
        display: inline-block;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none; /* Hidden by default */
        background: #f9f9f9;
        width: 100%;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* Hero Section */
    .hero {
        height: 400px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-content h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* General Layout */
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        align-items: center;
    }

    .section-header h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .btn-more {
        width: 100%;
        text-align: center;
        display: block;
    }

    .cards-grid, 
    .berita-grid, 
    .galeri-grid,
    .ekskul-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        margin-bottom: 20px;
    }
    
    /* Fix for overlapping content */
    .info-cards {
        margin-top: 0;
        padding-top: 40px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Split Hero Section */
.hero-split {
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: transparent;
    overflow: hidden;
    position: relative;
}

.hero-split-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: -1;
}

.hero-split-content {
    position: relative;
    z-index: 2;
    padding-right: 20px;
}

.hero-split-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-split-title span {
    color: #00a85a;
    position: relative;
    display: inline-block;
}

.hero-split-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(0, 168, 90, 0.2);
    z-index: -1;
}

.hero-split-subtitle {
    font-size: 1.15rem;
    color: #6c757d;
    margin-bottom: 35px;
    line-height: 1.7;
    max-width: 90%;
}

.hero-split-image {
    position: relative;
    z-index: 1;
}

.hero-split-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: all 0.5s ease;
}

.hero-split-image:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 35px 60px -15px rgba(0, 168, 90, 0.3);
}

/* Decorative Blob */
.hero-blob {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
    animation: blobFloat 20s infinite alternate;
}

@keyframes blobFloat {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(0, 0); }
    100% { border-radius: 60% 40% 30% 70% / 50% 40% 50% 60%; transform: translate(-20px, 20px); }
}

@media (max-width: 991px) {
    .hero-split {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-split-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-split-subtitle {
        margin: 0 auto 30px;
    }
    
    .hero-split-image img {
        transform: none;
    }
    
    .hero-blob {
        width: 100%;
        height: 50%;
        top: 0;
        right: 0;
    }
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 15s infinite linear;
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes slideShow {
    0% { opacity: 0; transform: scale(1); }
    4% { opacity: 1; }
    33.33% { opacity: 1; }
    37.33% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; }
}

.hero-slider-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-slider-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-slider-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-slider-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-slider-btn.primary {
    background: #00a85a;
    color: white;
    border: 2px solid #00a85a;
}

.hero-slider-btn.primary:hover {
    background: transparent;
    color: #00a85a;
    background: white;
    border-color: white;
}

.hero-slider-btn.outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 15px;
}

.hero-slider-btn.outline:hover {
    background: white;
    color: #00a85a;
}

@media (max-width: 768px) {
    .hero-slider-title {
        font-size: 2.5rem;
    }
    .hero-slider-subtitle {
        font-size: 1.1rem;
    }
    .hero-slider-btn {
        display: block;
        width: 100%;
        margin: 10px 0 0 0 !important;
    }
}

/* Visi Misi Section - Clean & Professional */
.visi-misi-section {
    background: #ffffff;
    padding: 80px 0;
    position: relative;
}

.visi-misi-header {
    text-align: center;
    margin-bottom: 50px;
}

.visi-misi-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.visi-misi-header .underline {
    width: 80px;
    height: 4px;
    background: #00a85a;
    margin: 0 auto;
}

.visi-misi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.visi-card, .misi-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.visi-card:hover, .misi-card:hover {
    box-shadow: 0 8px 30px rgba(0,168,90,0.15);
    transform: translateY(-5px);
}

.visi-card {
    border-top: 5px solid #00a85a;
}

.misi-card {
    border-top: 5px solid #008f4d;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: #00a85a;
    font-size: 1.4rem;
    font-weight: 700;
}

.card-title i {
    font-size: 1.8rem;
}

.visi-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c3e50;
    font-weight: 500;
    text-align: justify;
}

.misi-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.misi-items li {
    padding: 15px 0 15px 40px;
    position: relative;
    color: #555;
    line-height: 1.7;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.misi-items li:last-child {
    border-bottom: none;
}

.misi-items li:hover {
    padding-left: 45px;
    color: #2c3e50;
}

.misi-items li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 15px;
    width: 28px;
    height: 28px;
    background: #00a85a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

@media (max-width: 991px) {
    .visi-misi-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .visi-card, .misi-card {
        padding: 30px 25px;
    }
    
    .visi-text {
        font-size: 1rem;
    }
}

/* AI Chat Widget */
#ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
}

.ai-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a85a 0%, #008f4d 100%);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 168, 90, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.ai-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 168, 90, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(0, 168, 90, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(0, 168, 90, 0.7);
    }
}

.ai-chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-chat-header {
    background: linear-gradient(135deg, #00a85a 0%, #008f4d 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.ai-chat-title i {
    font-size: 24px;
}

.ai-chat-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.ai-chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.ai-message, .user-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.ai-avatar, .user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.ai-avatar {
    background: linear-gradient(135deg, #00a85a 0%, #008f4d 100%);
    color: white;
}

.user-avatar {
    background: #007bff;
    color: white;
}

.ai-bubble, .user-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.6;
    font-size: 14px;
}

.ai-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-bubble {
    background: linear-gradient(135deg, #00a85a 0%, #008f4d 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-bubble p, .user-bubble p {
    margin: 0;
}

.ai-typing {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
}

.ai-typing span {
    width: 8px;
    height: 8px;
    background: #00a85a;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.ai-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.ai-chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
}

#ai-chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

#ai-chat-input:focus {
    border-color: #00a85a;
}

.ai-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a85a 0%, #008f4d 100%);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 168, 90, 0.4);
}

.ai-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    #ai-chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .ai-chat-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .ai-chat-box {
        bottom: 85px;
        right: 20px;
        left: 20px;
        width: auto;
        height: 500px;
    }

    .ekskul-section {
        padding: 60px 0;
    }

    .ekskul-simple {
        padding: 18px;
        gap: 16px;
    }

    .ekskul-simple-actions {
        flex-direction: column;
    }

    .btn-ekskul-primary,
    .btn-ekskul-ghost {
        width: 100%;
        justify-content: center;
    }

    .ekskul-simple-cards {
        grid-template-columns: 1fr;
    }

    /* Ekstrakurikuler Mobile */
    .ekskul-tabs {
        gap: 8px;
        margin: 20px 0;
    }

    .ekskul-tab {
        padding: 8px 15px;
        font-size: 13px;
    }

    .ekskul-tab i {
        font-size: 14px;
    }

    .ekskul-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .ekskul-card {
        padding: 20px 15px;
    }

    .ekskul-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .ekskul-card h4 {
        font-size: 16px;
    }

    .category-title {
        display: none !important;
    }

    .wajib-content {
        flex-direction: column;
        text-align: center;
    }

    .wajib-content h3 {
        font-size: 20px;
    }

    .btn-lihat {
        margin: 0;
        width: 100%;
        text-align: center;
    }
}

/* ===== DETAIL EKSTRAKURIKULER PAGE STYLES ===== */

/* Info Box */
.info-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-box i {
    flex-shrink: 0;
}

.info-box small {
    font-size: 12px;
}

.info-box strong {
    font-size: 14px;
    color: #333;
}

/* Prestasi Item */
.prestasi-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
}

.prestasi-item:last-child {
    margin-bottom: 0 !important;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 168, 90, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 48px;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px 12px 12px;
    font-size: 13px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Modal Lightbox */
.modal-lightbox,
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #00a85a;
    transform: rotate(90deg);
}

#lightbox-caption {
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    max-width: 800px;
}

/* Responsive Detail Page */
@media (max-width: 768px) {
    .info-box {
        padding: 15px;
    }

    .info-box strong {
        font-size: 13px;
    }

    .gallery-item img {
        height: 180px;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 36px;
    }

    #lightbox-caption {
        font-size: 14px;
        padding: 15px;
    }
}
