/* ========================================
   CUSTOM CSS - Website Sekolah
   Clean, Modern, Professional
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #9b59b6;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    
    --section-padding: 80px;
    --border-radius: 15px;
    --transition: all 0.2s ease;
    --box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    --box-shadow-hover: 0 10px 40px rgba(0,0,0,0.15);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Remove gap between header and main content */
.main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* First section after header should have no top margin */
.main > section:first-child,
.main > div:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Section Spacing */
section {
    padding: var(--section-padding) 0;
}

section.py-5 {
    padding: var(--section-padding) 0 !important;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.heroSwiper {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    margin-top: 0 !important;
}

.hero-slide {
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Animated Shapes - Simplified */
.animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.05;
    /* Animasi dihapus untuk performa lebih baik */
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    top: 10%;
    left: 5%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
    bottom: 20%;
    right: 10%;
    animation-delay: 8s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 15s;
}

/* Animasi dihapus untuk performa lebih baik */
.animate-badge,
.animate-title,
.animate-text,
.animate-buttons,
.floating-image {
    /* Animasi dinonaktifkan */
}

/* Image Decorations */
.image-decoration {
    position: absolute;
    border-radius: 20px;
    z-index: -1;
}

.decoration-1 {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    top: -20px;
    left: -20px;
}

.decoration-2 {
    width: 80%;
    height: 80%;
    background: linear-gradient(-45deg, rgba(255,255,255,0.1), transparent);
    bottom: -20px;
    right: -20px;
}

/* Swiper Custom */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255,255,255,0.3);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

/* Stats Section */
.stats {
    background: white;
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--box-shadow-hover);
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 10px 0;
}

.stat-card p {
    color: var(--text-muted);
    margin: 0;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Program Cards */
.program-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.program-card:hover {
    box-shadow: var(--box-shadow-hover);
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-card .card-body {
    padding: 25px;
}

.program-card h5 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.program-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Gallery - Home Page Enhanced */
.home-gallery-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    height: 100%;
    position: relative;
}

.home-gallery-card:hover {
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.2);
}

/* Gallery Image Container */
.gallery-image-container {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-gallery-card:hover .gallery-image-container img {
    transform: scale(1.05);
}

/* Gallery Gradient Overlay */
/* Gradient overlay dihapus untuk performa */

/* Gallery Category Badge */
.gallery-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 2;
}

/* Gallery Zoom Button */
.gallery-zoom-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #4facfe;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.home-gallery-card:hover .gallery-zoom-btn {
    opacity: 1;
}

.gallery-zoom-btn:hover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* Gallery Card Content */
.gallery-card-content {
    padding: 25px;
}

/* Gallery Date Info */
.gallery-date-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 20px;
    color: #5a6c7d;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.gallery-date-info i {
    color: #4facfe;
}

.gallery-card-content h5 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.15rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.home-gallery-card:hover .gallery-card-content h5 {
    color: #4facfe;
}

.gallery-card-content p {
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Old Gallery Item - Keep for backward compatibility */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    opacity: 0.9;
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2d5016 0%, #1a2f0a 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: visible;
    border-top: 5px solid #d4af37;
    border-bottom: 5px solid #d4af37;
}

.cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-shape {
    position: absolute;
    opacity: 0.05;
    /* Animasi dihapus untuk performa */
}

.cta-shape.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    top: 20%;
    left: 10%;
}

.cta-shape.shape-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    bottom: 20%;
    right: 10%;
    animation-delay: 10s;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    color: white;
}

.cta-section .btn {
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #d4af37 0%, #c9a02c 100%);
    border: none;
    color: #1a2f0a;
    font-weight: 700;
}

.cta-section .btn:hover {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
    background: linear-gradient(135deg, #e0bd4a 0%, #d4af37 100%);
    color: #1a2f0a;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.6);
}

.scroll-top i {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .heroSwiper {
        height: auto;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card i {
        font-size: 2.5rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.box-shadow {
    box-shadow: var(--box-shadow);
}

.box-shadow-hover:hover {
    box-shadow: var(--box-shadow-hover);
}
