/* Modern Homepage Styles */
:root {
    --primary-color: #1B2A78;
    --secondary-color: #F7D117;
    --accent-color: #FF6B35;
    --white-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --shadow-color: rgba(27, 42, 120, 0.1);
    --gradient-primary: linear-gradient(135deg, #1B2A78 0%, #283593 100%);
    --gradient-secondary: linear-gradient(135deg, #F7D117 0%, #FFC107 100%);
}

/* Section Separators with Small Shadows - Alternating Colors */
.hero,
.keunggulan,
.features,
.tab-contents,
.berita,
.galeri,
.video-sekolah {
    margin-bottom: 30px !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    overflow: visible !important;
    padding: 40px 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 300px !important;
    text-align: center !important;
}

/* Blue sections - alternating with white */
.jurusan,
.pegawai {
    margin-bottom: 30px !important;
    background: #0B3D91 !important;
    background-image: none !important;
    background-color: #0B3D91 !important;
    border-radius: 15px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    overflow: visible !important;
    padding: 40px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 300px !important;
    text-align: center !important;
}

/* Additional spacing for better section separation */
.hero {
    margin-bottom: 40px;
    border: none;
    background: transparent !important;
}

.keunggulan {
    margin-bottom: 35px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(27, 42, 120, 0.1);
}

.features {
    margin-bottom: 35px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tab-contents {
    margin-bottom: 40px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.berita {
    margin-bottom: 35px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.jurusan {
    margin-bottom: 35px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(27, 42, 120, 0.1);
}

.galeri {
    margin-bottom: 35px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pegawai {
    margin-bottom: 35px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(27, 42, 120, 0.1);
}

.video-sekolah {
    margin-bottom: 40px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Container styling for sections */
.hero .container,
.keunggulan .container,
.features .container,
.tab-contents .container,
.berita .container,
.jurusan .container,
.galeri .container,
.pegawai .container,
.video-sekolah .container {
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    margin: 0 auto !important;
    max-width: 1200px;
    width: 90% !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

/* Enhanced container shadows for better visibility */
.hero .container {
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
}

.tab-contents .container {
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
}

/* Container hover effects */
.keunggulan .container:hover,
.features .container:hover,
.berita .container:hover,
.jurusan .container:hover,
.galeri .container:hover,
.pegawai .container:hover,
.video-sekolah .container:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Enhanced container styling for better content separation */
.keunggulan .container {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(27, 42, 120, 0.1) !important;
    margin: 0 auto !important;
    width: 90% !important;
    max-width: 1200px !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.features .container {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    margin: 0 auto !important;
    width: 90% !important;
    max-width: 1200px !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.berita .container {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    margin: 0 auto !important;
    width: 90% !important;
    max-width: 1200px !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.jurusan .container {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(11, 61, 145, 0.2) !important;
    margin: 0 auto !important;
    width: 90% !important;
    max-width: 1200px !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.galeri .container {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    margin: 0 auto !important;
    width: 90% !important;
    max-width: 1200px !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.pegawai .container {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(11, 61, 145, 0.2) !important;
    margin: 0 auto !important;
    width: 90% !important;
    max-width: 1200px !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.video-sekolah .container {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    margin: 0 auto !important;
    width: 90% !important;
    max-width: 1200px !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

/* Container content spacing */
.keunggulan .container,
.features .container,
.berita .container,
.jurusan .container,
.galeri .container,
.pegawai .container,
.video-sekolah .container {
    padding: 30px 25px !important;
    position: relative !important;
    margin: 0 auto !important;
    width: 90% !important;
    max-width: 1200px !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

/* Text styling for blue sections */
.jurusan h2,
.jurusan h3,
.jurusan h4,
.jurusan p,
.jurusan .section-title,
.jurusan .section-subtitle,
.jurusan .section-header h2,
.jurusan .section-header h3,
.pegawai h2,
.pegawai h3,
.pegawai h4,
.pegawai p,
.pegawai .section-title,
.pegawai .section-subtitle,
.pegawai .section-header h2,
.pegawai .section-header h3 {
    color: white !important;
}

/* Ensure galeri section stays white */
.galeri {
    background: white !important;
    background-image: none !important;
    background-color: white !important;
    background: linear-gradient(none) !important;
}

/* Override any existing background styles */
.jurusan {
    background: #0B3D91 !important;
    background-image: none !important;
    background-color: #0B3D91 !important;
    background: linear-gradient(to bottom, #0B3D91, #0B3D91) !important;
}

.pegawai {
    background: #0B3D91 !important;
    background-image: none !important;
    background-color: #0B3D91 !important;
    background: linear-gradient(to bottom, #0B3D91, #0B3D91) !important;
}

/* Force override any existing styles */
body .jurusan,
html .jurusan,
.jurusan {
    background: #0B3D91 !important;
    background-image: none !important;
    background-color: #0B3D91 !important;
}

body .pegawai,
html .pegawai,
.pegawai {
    background: #0B3D91 !important;
    background-image: none !important;
    background-color: #0B3D91 !important;
}

body .galeri,
html .galeri,
.galeri {
    background: white !important;
    background-image: none !important;
    background-color: white !important;
}

.jurusan .card,
.pegawai .card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.jurusan .card h3,
.jurusan .card h4,
.jurusan .card p,
.pegawai .card h3,
.pegawai .card h4,
.pegawai .card p {
    color: #0B3D91 !important;
}

/* Button and link styling for blue sections */
.jurusan .btn,
.jurusan a,
.pegawai .btn,
.pegawai a {
    color: white !important;
}

.jurusan .btn:hover,
.jurusan a:hover,
.pegawai .btn:hover,
.pegawai a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.jurusan .btn-primary,
.pegawai .btn-primary {
    background: white !important;
    color: #0B3D91 !important;
    border: 2px solid white !important;
}

.jurusan .btn-primary:hover,
.pegawai .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0B3D91 !important;
}

/* Icon styling for blue sections */
.jurusan i,
.jurusan .icon,
.pegawai i,
.pegawai .icon {
    color: white !important;
}

.jurusan .card i,
.jurusan .card .icon,
.pegawai .card i,
.pegawai .card .icon {
    color: #0B3D91 !important;
}

/* Specific styling for jurusan section */
.jurusan .jurusan-item {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.jurusan .jurusan-item h3,
.jurusan .jurusan-item p {
    color: #0B3D91 !important;
}

/* Specific styling for pegawai section */
.pegawai .pegawai-item {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.pegawai .pegawai-item h3,
.pegawai .pegawai-item p {
    color: #0B3D91 !important;
}

/* Badge styling for blue sections */
.jurusan .badge,
.pegawai .badge {
    background: white !important;
    color: #0B3D91 !important;
}

/* List styling for blue sections */
.jurusan ul li,
.pegawai ul li {
    color: white !important;
}

.jurusan .card ul li,
.pegawai .card ul li {
    color: #0B3D91 !important;
}

/* Container grid layouts */
.keunggulan .container .keunggulan-grid,
.features .container .features-grid,
.berita .container .berita-grid,
.jurusan .container .jurusan-grid,
.galeri .container .galeri-grid,
.pegawai .container .pegawai-grid,
.video-sekolah .container .video-grid {
    margin-top: 20px;
}

/* Container section titles */
.keunggulan .container .section-title,
.features .container .section-title,
.berita .container .section-title,
.jurusan .container .section-title,
.galeri .container .section-title,
.pegawai .container .section-title,
.video-sekolah .container .section-title {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(27, 42, 120, 0.1);
}

/* Container background patterns */
.keunggulan .container::before,
.jurusan .container::before,
.pegawai .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 42, 120, 0.02) 0%, rgba(27, 42, 120, 0.05) 100%);
    border-radius: 12px;
    z-index: -1;
}

/* Container with white backgrounds */
.features .container::before,
.berita .container::before,
.galeri .container::before,
.video-sekolah .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: 12px;
    z-index: -1;
}

/* Enhanced shadow effects for better visibility */
.hero:hover,
.keunggulan:hover,
.features:hover,
.tab-contents:hover,
.berita:hover,
.jurusan:hover,
.galeri:hover,
.pegawai:hover,
.video-sekolah:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

/* Hero Section Enhancement */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Ensure hero-bg stays within hero container */
.hero .hero-bg {
    height: 100% !important;
    max-height: 100vh;
    overflow: hidden;
}

/* Ensure hero-overlay covers entire hero-bg */
.hero .hero-overlay {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
}

/* Second Image Overlay Styles */
.hero-second-image {
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

.hero-second-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.hero-second-image.with-shadow img {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-second-image.no-shadow img {
    box-shadow: none;
}

.hero-second-image:hover img {
    transform: scale(1.02);
}

/* Position Classes */
.hero-second-image.top-left {
    top: 20px;
    left: 20px;
}

.hero-second-image.top-right {
    top: 20px;
    right: 20px;
}

.hero-second-image.bottom-left {
    bottom: 20px;
    left: 20px;
}

.hero-second-image.bottom-right {
    bottom: 20px;
    right: 20px;
}

.hero-second-image.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Size Classes */
.hero-second-image.small img {
    max-width: 360px;
    max-height: 240px;
}

.hero-second-image.medium img {
    max-width: 560px;
    max-height: 400px;
}

.hero-second-image.large img {
    max-width: 800px;
    max-height: 600px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-second-image.small img {
        max-width: 240px;
        max-height: 160px;
    }
    
    .hero-second-image.medium img {
        max-width: 360px;
        max-height: 240px;
    }
    
    .hero-second-image.large img {
        max-width: 480px;
        max-height: 360px;
    }
    
    .hero-second-image.top-left,
    .hero-second-image.top-right {
        top: 10px;
    }
    
    .hero-second-image.bottom-left,
    .hero-second-image.bottom-right {
        bottom: 10px;
    }
    
    .hero-second-image.top-left,
    .hero-second-image.bottom-left {
        left: 10px;
    }
    
    .hero-second-image.top-right,
    .hero-second-image.bottom-right {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-second-image.small img {
        max-width: 200px;
        max-height: 140px;
    }
    
    .hero-second-image.medium img {
        max-width: 280px;
        max-height: 200px;
    }
    
    .hero-second-image.large img {
        max-width: 360px;
        max-height: 280px;
    }
}

/* Third Image Overlay Styles */
.hero-third-image {
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

.hero-third-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.hero-third-image.with-shadow img {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-third-image.no-shadow img {
    box-shadow: none;
}

.hero-third-image:hover img {
    transform: scale(1.02);
}

/* Position Classes for Third Image */
.hero-third-image.top-left { top: 20px; left: 20px; }
.hero-third-image.top-right { top: 20px; right: 20px; }
.hero-third-image.bottom-left { bottom: 20px; left: 20px; }
.hero-third-image.bottom-right { bottom: 20px; right: 20px; }
.hero-third-image.center { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Size Classes for Third Image */
.hero-third-image.small img {
    max-width: 360px;
    max-height: 240px;
}

.hero-third-image.medium img {
    max-width: 560px;
    max-height: 400px;
}

.hero-third-image.large img {
    max-width: 800px;
    max-height: 600px;
}

/* Responsive adjustments for Third Image */
@media (max-width: 768px) {
    .hero-third-image.small img {
        max-width: 240px;
        max-height: 160px;
    }
    
    .hero-third-image.medium img {
        max-width: 360px;
        max-height: 240px;
    }
    
    .hero-third-image.large img {
        max-width: 480px;
        max-height: 360px;
    }
    
    .hero-third-image.top-left,
    .hero-third-image.top-right {
        top: 10px;
    }
    
    .hero-third-image.bottom-left,
    .hero-third-image.bottom-right {
        bottom: 10px;
    }
    
    .hero-third-image.top-left,
    .hero-third-image.bottom-left {
        left: 10px;
    }
    
    .hero-third-image.top-right,
    .hero-third-image.bottom-right {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-third-image.small img {
        max-width: 200px;
        max-height: 140px;
    }
    
    .hero-third-image.medium img {
        max-width: 280px;
        max-height: 200px;
    }
    
    .hero-third-image.large img {
        max-width: 360px;
        max-height: 280px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 42, 120, 0.85) 0%, rgba(27, 42, 120, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-secondary);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(247, 209, 23, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 209, 23, 0.4);
    color: var(--text-dark);
}

/* Features Section Enhancement */
.features {
    background: var(--white-color);
    padding: 80px 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23f0f0f0"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Tab Buttons Enhancement */
.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    background: var(--white-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(27, 42, 120, 0.1);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.tab-btn:hover::before {
    left: 0;
}

.tab-btn:hover {
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 42, 120, 0.2);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(27, 42, 120, 0.3);
}

.tab-btn i {
    margin-right: 10px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.tab-btn:hover i {
    transform: scale(1.2);
}

/* Tab Contents Enhancement */
.tab-contents {
    position: relative;
    min-height: 400px;
    background: url('../images/bg/pattern.png') center/cover;
    padding: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

.tab-contents::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 42, 120, 0.95) 0%, rgba(27, 42, 120, 0.85) 100%);
    z-index: 0;
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-wrapper h3 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.content-wrapper h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

/* Profile Section Enhancement */
.profil-sekolah {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.profil-image {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    height: 450px;
}

.profil-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profil-image:hover img {
    transform: scale(1.05);
}

.profil-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 40px 30px;
}

.profil-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    color: white;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.profil-description {
    background: var(--white-color);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.profil-description p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .profil-sekolah {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .profil-image {
        height: 350px;
    }
    
    .profil-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .content-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .profil-image {
        height: 300px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-spin {
    animation: spin 2s linear infinite;
}

/* Enhanced Button Styles */
.btn-modern {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(27, 42, 120, 0.3);
    border: none;
    cursor: pointer;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 42, 120, 0.4);
    color: var(--white-color);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-dark);
}

.btn-secondary:hover {
    color: var(--text-dark);
} 



/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-secondary);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(247, 209, 23, 0.3);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 209, 23, 0.4);
    color: var(--text-dark);
}

.hero-btn.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.hero-btn.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-stats .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: white;
    opacity: 0.9;
}

/* Responsive adjustments for hero elements */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-stats .stat {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
} 

/* Keunggulan Section */
.keunggulan {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
}

.keunggulan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23e0e0e0"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.keunggulan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.keunggulan-item {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.keunggulan-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.keunggulan-item:hover::before {
    left: 0;
}

.keunggulan-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 42, 120, 0.15);
}

.keunggulan-item:hover .keunggulan-icon {
    background: var(--white-color);
    color: var(--primary-color);
}

.keunggulan-item:hover h3,
.keunggulan-item:hover p {
    color: var(--white-color);
}

.keunggulan-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(27, 42, 120, 0.3);
}

.keunggulan-icon i {
    font-size: 2rem;
    color: var(--white-color);
    transition: all 0.3s ease;
}

.keunggulan-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.keunggulan-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

/* Responsive for keunggulan */
@media (max-width: 768px) {
    .keunggulan-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .keunggulan-item {
        padding: 30px 20px;
    }
    
    .keunggulan-icon {
        width: 70px;
        height: 70px;
    }
    
    .keunggulan-icon i {
        font-size: 1.8rem;
    }
} 

/* Carousel Item Enhancement */
.carousel-item {
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-item .hero-bg {
    height: 100% !important;
    min-height: 100%;
    max-height: 100vh;
    overflow: hidden;
}

/* Ensure carousel hero-overlay covers entire background */
.carousel-item .hero-overlay {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
}

.carousel-item .hero-overlay {
    height: 100% !important;
    min-height: 100%;
    max-height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.carousel-item .hero-content {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
} 

/* Carousel Container Enhancement */
#heroCarousel {
    height: 100vh;
    min-height: 600px;
}

#heroCarousel .carousel-inner {
    height: 100vh;
    min-height: 600px;
} 

/* Popup Selamat Datang */
.popup-overlay {
  position: fixed; z-index: 9999; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(27,42,120,0.7); display: flex; align-items: center; justify-content: center;
}
.popup-content {
  background: #fff; border-radius: 20px; padding: 40px 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  text-align: center; max-width: 90vw; width: 400px; position: relative;
  animation: fadeInUp 0.7s;
}
.close-popup {
  position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2rem; color: #1B2A78; cursor: pointer;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}
@media (max-width: 480px) {
  .popup-content { padding: 25px 10px; width: 95vw; }
  .close-popup { top: 8px; right: 10px; font-size: 1.5rem; }
}

/* Logo Sekolah Popup */
.logo-popup {
  max-width: 500px;
  width: 90vw;
  padding: 50px 40px;
  text-align: center;
}

.logo-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.logo-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1B2A78;
}

.school-info {
  text-align: center;
}

.school-name {
  font-size: 2rem;
  font-weight: 700;
  color: #1B2A78;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.school-motto {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  font-style: italic;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 480px) {
  .logo-popup {
    padding: 40px 20px;
  }
  
  .logo-container {
    width: 120px;
    height: 120px;
  }
  
  .school-name {
    font-size: 1.5rem;
  }
  
  .school-motto {
    font-size: 1rem;
  }
} 

/* Carousel Navigation Buttons */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev {
    left: 30px;
    opacity: 1;
}

.carousel-control-next {
    right: 30px;
    opacity: 1;
}

.carousel-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn i {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
    z-index: 10;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    transition: all 0.3s ease;
    opacity: 1;
}

.carousel-indicators button.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
    opacity: 1;
}

.carousel-indicators button:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

/* Responsive adjustments for carousel controls */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
        opacity: 1;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav-btn i {
        font-size: 16px;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
} 

/* Modern CSS untuk Homepage */

/* ===== BERITA SECTION ===== */
.berita {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.berita::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.berita .section-title {
    position: relative;
    z-index: 2;
    color: white;
}

.berita .section-title h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.berita .section-title p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.berita-item {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.berita-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.berita-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.berita-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102,126,234,0.8), rgba(118,75,162,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.berita-item:hover .berita-image::before {
    opacity: 1;
}

.berita-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.berita-item:hover .berita-image img {
    transform: scale(1.05);
}

.berita-content {
    padding: 30px;
    position: relative;
}

.berita-content .date {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.berita-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.berita-item:hover .berita-content h3 {
    color: #667eea;
}

.berita-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}

.read-more:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* ===== PENGUMUMAN SECTION ===== */
.pengumuman {
    padding: 80px 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    position: relative;
}

.pengumuman::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.pengumuman .section-title {
    position: relative;
    z-index: 2;
    color: #1B2A78;
}

.pengumuman .section-title h2 {
    color: #1B2A78;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(27,42,120,0.1);
}

.pengumuman .section-title p {
    color: #333333;
    font-size: 1.1rem;
    font-weight: 500;
}

.pengumuman-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.pengumuman-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pengumuman-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.pengumuman-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.pengumuman-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(240,147,251,0.8), rgba(245,87,108,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.pengumuman-card:hover .pengumuman-image::before {
    opacity: 1;
}

.pengumuman-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pengumuman-card:hover .pengumuman-image img {
    transform: scale(1.1);
}

.pengumuman-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.badge-danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

.badge-warning {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    color: #2c3e50;
}

.badge-info {
    background: linear-gradient(45deg, #48dbfb, #0abde3);
    color: white;
}

.pengumuman-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pengumuman-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.pengumuman-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pengumuman-meta i {
    color: #f093fb;
    font-size: 1rem;
}

.pengumuman-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.pengumuman-card:hover .pengumuman-content h3 {
    color: #f093fb;
}

.pengumuman-content p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.pengumuman-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-download,
.btn-more {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.btn-download {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    border-color: #f093fb;
}

.btn-download:hover {
    background: transparent;
    color: #f093fb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240,147,251,0.3);
}

.btn-more {
    background: transparent;
    color: #f093fb;
    border-color: #f093fb;
}

.btn-more:hover {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240,147,251,0.3);
}

/* ===== PROGRAM KEAHILIAN SECTION ===== */
.jurusan {
    padding: 80px 0;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    position: relative;
    overflow: hidden;
}

.jurusan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="waves" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M0 25 Q12.5 0 25 25 T50 25 T75 25 T100 25" stroke="white" stroke-width="1" fill="none" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23waves)"/></svg>');
}

.jurusan .section-title {
    position: relative;
    z-index: 2;
    color: #1B2A78;
}

.jurusan .section-title h2 {
    color: #1B2A78;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(27,42,120,0.1);
}

.jurusan .section-title p {
    color: #333333;
    font-size: 1.1rem;
    font-weight: 500;
}

.jurusan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.jurusan-item {
    background: rgba(255,255,255,0.95);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
}

.jurusan-item:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.jurusan-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.jurusan-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(79,172,254,0.8), rgba(0,242,254,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.jurusan-item:hover .jurusan-image::before {
    opacity: 1;
}

.jurusan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.jurusan-item:hover .jurusan-image img {
    transform: scale(1.1);
}

.jurusan-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -45px auto 25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(79,172,254,0.4);
    transition: all 0.3s ease;
}

.jurusan-item:hover .jurusan-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(79,172,254,0.6);
}

.jurusan-icon i {
    font-size: 36px;
    color: white;
    transition: transform 0.3s ease;
}

.jurusan-item:hover .jurusan-icon i {
    transform: scale(1.1);
}

.jurusan-item h3 {
    text-align: center;
    color: #2c3e50;
    margin: 0 0 20px;
    padding: 0 30px;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.jurusan-item:hover h3 {
    color: #4facfe;
}

.jurusan-item p {
    text-align: center;
    color: #666;
    margin: 0 0 25px;
    padding: 0 30px;
    line-height: 1.7;
    font-size: 1rem;
}

.jurusan-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 30px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-top: 1px solid rgba(79,172,254,0.2);
}

.jurusan-details span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
}

.jurusan-details i {
    color: #4facfe;
    font-size: 1.1rem;
}

/* ===== GALERI SECTION ===== */
.galeri {
    padding: 80px 0;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    position: relative;
}

.galeri::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circles" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="3" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23circles)"/></svg>');
}

.galeri .section-title {
    position: relative;
    z-index: 2;
    color: #2c3e50;
}

.galeri .section-title h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.galeri .section-title p {
    color: #666;
    font-size: 1.1rem;
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.galeri-item {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.galeri-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.galeri-images {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.galeri-images::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(168,237,234,0.8), rgba(254,214,227,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeri-item:hover .galeri-images::after {
    opacity: 1;
}

.galeri-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.galeri-item:hover .galeri-images img {
    transform: scale(1.1);
}

.galeri-info {
    padding: 25px;
    background: rgba(255,255,255,0.95);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.galeri-info h4 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.galeri-item:hover .galeri-info h4 {
    color: #a8edea;
}

.galeri-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    padding-top: 15px;
    border-top: 1px solid rgba(168,237,234,0.3);
}

.galeri-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.galeri-meta i {
    color: #a8edea;
}

/* ===== DATA PEGAWAI SECTION ===== */
.pegawai {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    position: relative;
}

.pegawai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="squares" width="25" height="25" patternUnits="userSpaceOnUse"><rect width="5" height="5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23squares)"/></svg>');
}

.pegawai .section-title {
    position: relative;
    z-index: 2;
    color: #2c3e50;
}

.pegawai .section-title h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.pegawai .section-title p {
    color: #666;
    font-size: 1.1rem;
}

.pegawai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.pegawai-item {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    text-align: center;
    padding: 30px 20px;
}

.pegawai-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.pegawai-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid rgba(252,182,159,0.3);
    transition: all 0.3s ease;
    position: relative;
}

.pegawai-item:hover .pegawai-image {
    border-color: #fcb69f;
    transform: scale(1.1);
}

.pegawai-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pegawai-item:hover .pegawai-image img {
    transform: scale(1.1);
}

.pegawai-info h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.pegawai-item:hover .pegawai-info h3 {
    color: #fcb69f;
}

.pegawai-info p {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.pegawai-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.pegawai-contact span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pegawai-contact i {
    color: #fcb69f;
    font-size: 1rem;
}

/* ===== VIDEO SEKOLAH SECTION ===== */
.video-sekolah {
    padding: 80px 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.video-sekolah::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="video-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23video-pattern)"/></svg>');
}

.video-sekolah .section-title {
    position: relative;
    z-index: 2;
    color: white;
}

.video-sekolah .section-title h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.video-sekolah .section-title p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.video-item {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-item:hover .video-thumb {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-item:hover .video-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.play-button {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.video-item:hover .play-button {
    transform: scale(1);
}

.play-button i {
    font-size: 1.5rem;
    color: white;
    margin-left: 3px;
}

.video-content {
    padding: 25px;
}

.video-category-badge {
    margin-bottom: 15px;
}

.category-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-item h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.video-item:hover h4 {
    color: #667eea;
}

.video-item p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .berita-grid,
    .pengumuman-grid,
    .jurusan-grid,
    .galeri-grid,
    .pegawai-grid,
    .video-grid {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .berita-grid,
    .pengumuman-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .jurusan-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
    
    .galeri-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .pegawai-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .berita .section-title h2,
    .pengumuman .section-title h2,
    .jurusan .section-title h2,
    .galeri .section-title h2,
    .pegawai .section-title h2,
    .video-sekolah .section-title h2 {
        font-size: 2rem;
    }
    
    .berita-grid,
    .pengumuman-grid,
    .jurusan-grid,
    .galeri-grid,
    .pegawai-grid,
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pengumuman-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .jurusan-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .galeri-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .hero { min-height: 50vh; height: 50vh; }
    .carousel-item, #heroCarousel, #heroCarousel .carousel-inner,
    .carousel-item .hero-bg, .carousel-item .hero-overlay, .carousel-item .hero-content {
        min-height: 50vh; height: 50vh;
    }
    .hero-title { font-size: 1.4rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-buttons { gap: 10px; }
}
@media (max-width: 480px) {
    .hero { min-height: 45vh; height: 45vh; }
    .carousel-item, #heroCarousel, #heroCarousel .carousel-inner,
    .carousel-item .hero-bg, .carousel-item .hero-overlay, .carousel-item .hero-content {
        min-height: 45vh; height: 45vh;
    }
}

@media (max-width: 576px) {
    .berita,
    .pengumuman,
    .jurusan,
    .galeri,
    .pegawai,
    .video-sekolah {
        padding: 60px 0;
    }
    
    .berita .section-title h2,
    .pengumuman .section-title h2,
    .jurusan .section-title h2,
    .galeri .section-title h2,
    .pegawai .section-title h2,
    .video-sekolah .section-title h2 {
        font-size: 1.8rem;
    }
    
    .berita-content,
    .pengumuman-content {
        padding: 20px;
    }
    
    .jurusan-item h3 {
        font-size: 1.4rem;
        padding: 0 20px;
    }
    
    .jurusan-item p {
        padding: 0 20px;
    }
    
    .jurusan-details {
        padding: 15px 20px;
    }
    
    .galeri-info {
        padding: 20px;
    }
    
    .pegawai-item {
        padding: 25px 15px;
    }
    
    .video-item h4,
    .video-item p {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 576px) {
  .hero { min-height: 60vh; height: 60vh; }
  .carousel-item, #heroCarousel, #heroCarousel .carousel-inner,
  .carousel-item .hero-bg, .carousel-item .hero-overlay, .carousel-item .hero-content {
    min-height: 60vh; height: 60vh;
  }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-stats .stat { min-width: 160px; padding: 14px; }
}

/* ===== ANIMATION CLASSES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.8s ease-out;
}

/* ===== SHOW MORE BUTTON STYLES ===== */
.show-more-container {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.show-more-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(102,126,234,0.3);
    position: relative;
    overflow: hidden;
}

.show-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.show-more-btn:hover::before {
    left: 100%;
}

.show-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102,126,234,0.4);
}

.show-more-btn i {
    transition: transform 0.3s ease;
}

.show-more-btn:hover i {
    transform: translateY(2px);
}

.show-more-btn.active i {
    transform: rotate(180deg);
}

/* ===== LIGHTBOX ENHANCEMENTS ===== */
.lightbox {
    backdrop-filter: blur(10px);
}

.lightbox-content {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.lightbox-image {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.lightbox-caption {
    background: rgba(0,0,0,0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.close-lightbox {
    background: rgba(255,255,255,0.9);
    color: #333;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255,255,255,0.9);
    color: #333;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 22px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
} 

/* ===== ADDITIONAL ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ===== ENHANCED HOVER EFFECTS ===== */
.berita-item::before,
.pengumuman-card::before,
.jurusan-item::before,
.galeri-item::before,
.pegawai-item::before,
.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.berita-item:hover::before,
.pengumuman-card:hover::before,
.jurusan-item:hover::before,
.galeri-item:hover::before,
.pegawai-item:hover::before,
.video-item:hover::before {
    transform: translateX(100%);
}

/* ===== ENHANCED BADGE ANIMATIONS ===== */
.badge {
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.badge:hover::before {
    left: 100%;
}

/* ===== ENHANCED ICON ANIMATIONS ===== */
.jurusan-icon i,
.pegawai-image {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jurusan-icon:hover i {
    animation: bounceIn 0.6s ease-out;
}

.pegawai-image:hover {
    animation: pulse 1s ease-in-out;
}

/* ===== ENHANCED BUTTON ANIMATIONS ===== */
.read-more,
.btn-download,
.btn-more,
.show-more-btn {
    position: relative;
    overflow: hidden;
}

.read-more::before,
.btn-download::before,
.btn-more::before,
.show-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.read-more:hover::before,
.btn-download:hover::before,
.btn-more:hover::before,
.show-more-btn:hover::before {
    left: 100%;
}

/* ===== ENHANCED IMAGE ANIMATIONS ===== */
.berita-image,
.pengumuman-image,
.jurusan-image,
.galeri-images,
.pegawai-image {
    position: relative;
    overflow: hidden;
}

.berita-image::after,
.pengumuman-image::after,
.jurusan-image::after,
.galeri-images::after,
.pegawai-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.berita-image:hover::after,
.pengumuman-image:hover::after,
.jurusan-image:hover::after,
.galeri-images:hover::after,
.pegawai-image:hover::after {
    transform: translateX(100%);
}

/* ===== ENHANCED SECTION TITLE ANIMATIONS ===== */
.section-title h2 {
    position: relative;
    overflow: hidden;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, currentColor, transparent);
    transition: width 0.6s ease;
}

.section-title:hover h2::after {
    width: 100%;
}

/* ===== ENHANCED GRID ANIMATIONS ===== */
.berita-grid,
.pengumuman-grid,
.jurusan-grid,
.galeri-grid,
.pegawai-grid,
.video-grid {
    perspective: 1000px;
}

.berita-item,
.pengumuman-card,
.jurusan-item,
.galeri-item,
.pegawai-item,
.video-item {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.berita-item:hover,
.pengumuman-card:hover,
.jurusan-item:hover,
.galeri-item:hover,
.pegawai-item:hover,
.video-item:hover {
    transform: translateY(-15px) scale(1.02) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

/* ===== ENHANCED LOADING ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== STAGGERED ANIMATIONS ===== */
.berita-grid .berita-item:nth-child(1) { animation-delay: 0.1s; }
.berita-grid .berita-item:nth-child(2) { animation-delay: 0.2s; }
.berita-grid .berita-item:nth-child(3) { animation-delay: 0.3s; }

.pengumuman-grid .pengumuman-card:nth-child(1) { animation-delay: 0.1s; }
.pengumuman-grid .pengumuman-card:nth-child(2) { animation-delay: 0.2s; }
.pengumuman-grid .pengumuman-card:nth-child(3) { animation-delay: 0.3s; }

.jurusan-grid .jurusan-item:nth-child(1) { animation-delay: 0.1s; }
.jurusan-grid .jurusan-item:nth-child(2) { animation-delay: 0.2s; }

.galeri-grid .galeri-item:nth-child(1) { animation-delay: 0.1s; }
.galeri-grid .galeri-item:nth-child(2) { animation-delay: 0.2s; }
.galeri-grid .galeri-item:nth-child(3) { animation-delay: 0.3s; }

.pegawai-grid .pegawai-item:nth-child(1) { animation-delay: 0.1s; }
.pegawai-grid .pegawai-item:nth-child(2) { animation-delay: 0.2s; }
.pegawai-grid .pegawai-item:nth-child(3) { animation-delay: 0.3s; }
.pegawai-grid .pegawai-item:nth-child(4) { animation-delay: 0.4s; }
.pegawai-grid .pegawai-item:nth-child(5) { animation-delay: 0.5s; }
.pegawai-grid .pegawai-item:nth-child(6) { animation-delay: 0.6s; }

.video-grid .video-item:nth-child(1) { animation-delay: 0.1s; }
.video-grid .video-item:nth-child(2) { animation-delay: 0.2s; }

/* ===== ENHANCED BACKGROUND PATTERNS ===== */
.berita::before,
.pengumuman::before,
.jurusan::before,
.galeri::before,
.pegawai::before,
.video-sekolah::before {
    animation: float 6s ease-in-out infinite;
}

/* ===== ENHANCED TEXT ANIMATIONS ===== */
.berita-content h3,
.pengumuman-content h3,
.jurusan-item h3,
.galeri-info h4,
.pegawai-info h3,
.video-item h4 {
    position: relative;
    overflow: hidden;
}

.berita-content h3::after,
.pengumuman-content h3::after,
.jurusan-item h3::after,
.galeri-info h4::after,
.pegawai-info h3::after,
.video-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, currentColor, transparent);
    transition: width 0.4s ease;
}

.berita-item:hover .berita-content h3::after,
.pengumuman-card:hover .pengumuman-content h3::after,
.jurusan-item:hover .jurusan-item h3::after,
.galeri-item:hover .galeri-info h4::after,
.pegawai-item:hover .pegawai-info h3::after,
.video-item:hover .video-item h4::after {
    width: 100%;
}

/* ===== ENHANCED META ANIMATIONS ===== */
.pengumuman-meta span,
.galeri-meta span,
.jurusan-details span {
    position: relative;
    overflow: hidden;
}

.pengumuman-meta span::before,
.galeri-meta span::before,
.jurusan-details span::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.pengumuman-meta span:hover::before,
.galeri-meta span:hover::before,
.jurusan-details span:hover::before {
    width: 100%;
}

/* ===== ENHANCED DATE ANIMATIONS ===== */
.date {
    position: relative;
    overflow: hidden;
}

.date::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.date:hover::before {
    left: 100%;
}

/* ===== ENHANCED CONTACT ANIMATIONS ===== */
.pegawai-contact span {
    position: relative;
    overflow: hidden;
}

.pegawai-contact span::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fcb69f;
    transition: width 0.3s ease;
}

.pegawai-contact span:hover::before {
    width: 100%;
}

/* ===== ENHANCED VIDEO ANIMATIONS ===== */
.video-container {
    position: relative;
    overflow: hidden;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.video-container:hover::before {
    transform: translateX(100%);
}

/* ===== ENHANCED LIGHTBOX ANIMATIONS ===== */
.lightbox {
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.3s ease-out;
}

.lightbox-content {
    animation: slideInUp 0.4s ease-out;
}

.lightbox-image {
    animation: fadeInScale 0.5s ease-out;
}

.lightbox-caption {
    animation: slideInUp 0.6s ease-out;
}

/* ===== ENHANCED SHOW MORE BUTTON ===== */
.show-more-btn {
    position: relative;
    overflow: hidden;
}

.show-more-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.show-more-btn:hover::after {
    left: 100%;
}

/* ===== ENHANCED SCROLL INDICATORS ===== */
@keyframes scrollIndicator {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

.section-title::after {
    content: '↓';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: currentColor;
    opacity: 0.6;
    animation: scrollIndicator 2s ease-in-out infinite;
}

/* ===== ENHANCED FOCUS STATES ===== */
.berita-item:focus,
.pengumuman-card:focus,
.jurusan-item:focus,
.galeri-item:focus,
.pegawai-item:focus,
.video-item:focus {
    outline: 3px solid #667eea;
    outline-offset: 3px;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ===== ENHANCED ACTIVE STATES ===== */
.berita-item:active,
.pengumuman-card:active,
.jurusan-item:active,
.galeri-item:active,
.pegawai-item:active,
.video-item:active {
    transform: translateY(-2px) scale(0.98);
    transition: transform 0.1s ease;
}

/* ===== ENHANCED DISABLED STATES ===== */
.show-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.show-more-btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 8px 25px rgba(102,126,234,0.3) !important;
}

/* ===== ENHANCED PRINT STYLES ===== */
@media print {
    .berita-item,
    .pengumuman-card,
    .jurusan-item,
    .galeri-item,
    .pegawai-item,
    .video-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .section-title::after {
        display: none;
    }
    
    .show-more-btn {
        display: none;
    }
}

/* ===== ENHANCED REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .section-title::after {
        animation: none;
    }
    
    .berita::before,
    .pengumuman::before,
    .jurusan::before,
    .galeri::before,
    .pegawai::before,
    .video-sekolah::before {
        animation: none;
    }
}

/* ===== ENHANCED HIGH CONTRAST ===== */
@media (prefers-contrast: high) {
    .berita-item,
    .pengumuman-card,
    .jurusan-item,
    .galeri-item,
    .pegawai-item,
    .video-item {
        border: 2px solid #000;
    }
    
    .badge {
        border: 1px solid #000;
    }
    
    .read-more,
    .btn-download,
    .btn-more,
    .show-more-btn {
        border: 2px solid #000;
    }
}

/* ===== ENHANCED DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .berita-item,
    .pengumuman-card,
    .jurusan-item,
    .galeri-item,
    .pegawai-item,
    .video-item {
        background: rgba(30,30,30,0.95);
        color: #fff;
    }
    
    .berita-content h3,
    .pengumuman-content h3,
    .jurusan-item h3,
    .galeri-info h4,
    .pegawai-info h3,
    .video-item h4 {
        color: #fff;
    }
    
    .berita-content p,
    .pengumuman-content p,
    .jurusan-item p,
    .galeri-info p,
    .pegawai-info p,
    .video-item p {
        color: #ccc;
    }
}

/* ===== ENHANCED PERFORMANCE OPTIMIZATIONS ===== */
.berita-item,
.pengumuman-card,
.jurusan-item,
.galeri-item,
.pegawai-item,
.video-item {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.berita-image img,
.pengumuman-image img,
.jurusan-image img,
.galeri-images img,
.pegawai-image img {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ===== ENHANCED ACCESSIBILITY ===== */
.berita-item:focus-visible,
.pengumuman-card:focus-visible,
.jurusan-item:focus-visible,
.galeri-item:focus-visible,
.pegawai-item:focus-visible,
.video-item:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 3px;
}

.read-more:focus-visible,
.btn-download:focus-visible,
.btn-more:focus-visible,
.show-more-btn:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* ===== ENHANCED TOUCH TARGETS ===== */
@media (max-width: 768px) {
    .read-more,
    .btn-download,
    .btn-more,
    .show-more-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .badge {
        min-height: 32px;
        min-width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== ENHANCED LOADING STATES ===== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

/* ===== ENHANCED ERROR STATES ===== */
.error {
    border: 2px solid #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.error::before {
    content: '⚠️';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
}

/* ===== ENHANCED SUCCESS STATES ===== */
.success {
    border: 2px solid #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.success::before {
    content: '✅';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
}

/* ===== ENHANCED WARNING STATES ===== */
.warning {
    border: 2px solid #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.warning::before {
    content: '⚠️';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
}

/* ===== ENHANCED INFO STATES ===== */
.info {
    border: 2px solid #17a2b8;
    background: rgba(23, 162, 184, 0.1);
}

.info::before {
    content: 'ℹ️';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
    color: white;
    font-size: 28px;
    z-index: 1;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse Animation */
.whatsapp-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive Design for WhatsApp Button */
@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }

    .whatsapp-btn i {
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-whatsapp {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn i {
        font-size: 22px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Hide WhatsApp button on print */
@media print {
    .floating-whatsapp {
        display: none;
    }
} 

@media (min-width: 992px) {
  .hero { height: 85vh; min-height: 420px; }
  .carousel-item, #heroCarousel, #heroCarousel .carousel-inner,
  .carousel-item .hero-bg, .carousel-item .hero-overlay, .carousel-item .hero-content {
    height: 85vh; min-height: 420px;
  }
  .carousel-item .hero-bg {
    height: 100%;
  }
  .hero .hero-content { padding-top: 6vh; }
}
@media (min-width: 1200px) {
  .hero { height: 85vh; min-height: 420px; }
  .carousel-item, #heroCarousel, #heroCarousel .carousel-inner,
  .carousel-item .hero-bg, .carousel-item .hero-overlay, .carousel-item .hero-content {
    height: 85vh; min-height: 420px;
  }
  .carousel-item .hero-bg {
    height: 100%;
  }
  .hero .hero-content { padding-top: 6vh; }
} 

/* Responsive container styling */
@media (max-width: 768px) {
    .keunggulan .container,
    .features .container,
    .berita .container,
    .jurusan .container,
    .galeri .container,
    .pegawai .container,
    .video-sekolah .container {
        padding: 20px 15px;
        margin: 0 auto;
        max-width: 95%;
        width: 95%;
        border-radius: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .keunggulan .container .section-title,
    .features .container .section-title,
    .berita .container .section-title,
    .jurusan .container .section-title,
    .galeri .container .section-title,
    .pegawai .container .section-title,
    .video-sekolah .container .section-title {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    
    /* Responsive text sizing for blue sections */
    .jurusan h2,
    .jurusan h3,
    .pegawai h2,
    .pegawai h3 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .keunggulan .container,
    .features .container,
    .berita .container,
    .jurusan .container,
    .galeri .container,
    .pegawai .container,
    .video-sekolah .container {
        padding: 15px 10px;
        margin: 0 auto;
        max-width: 98%;
        width: 98%;
        border-radius: 8px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Responsive text sizing for blue sections */
    .jurusan h2,
    .jurusan h3,
    .pegawai h2,
    .pegawai h3 {
        font-size: 1.3rem !important;
    }
}

/* FINAL OVERRIDE - Ensure section colors are correct */
.jurusan {
    background: #0B3D91 !important;
    background-image: none !important;
    background-color: #0B3D91 !important;
}

.pegawai {
    background: #0B3D91 !important;
    background-image: none !important;
    background-color: #0B3D91 !important;
}

.galeri {
    background: white !important;
    background-image: none !important;
    background-color: white !important;
}

.berita {
    background: white !important;
    background-image: none !important;
    background-color: white !important;
}

.video-sekolah {
    background: white !important;
    background-image: none !important;
    background-color: white !important;
}

/* Override CSS variables that might be used */
:root {
    --section-blue: #0B3D91 !important;
    --section-white: white !important;
    --gray-color: white !important;
    --light-color: white !important;
}

/* Force override any CSS variable usage */
.jurusan {
    background: var(--section-blue) !important;
    background-color: var(--section-blue) !important;
}

.pegawai {
    background: var(--section-blue) !important;
    background-color: var(--section-blue) !important;
}

.galeri {
    background: var(--section-white) !important;
    background-color: var(--section-white) !important;
}

/* ULTIMATE OVERRIDE - Highest specificity */
body .jurusan,
html body .jurusan,
.jurusan {
    background: #0B3D91 !important;
    background-color: #0B3D91 !important;
    background-image: none !important;
}

body .pegawai,
html body .pegawai,
.pegawai {
    background: #0B3D91 !important;
    background-color: #0B3D91 !important;
    background-image: none !important;
}

body .galeri,
html body .galeri,
.galeri {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
}

/* FINAL ULTIMATE OVERRIDE - Maximum specificity */
html body .jurusan,
html body .pegawai,
html body .galeri {
    background: #0B3D91 !important;
    background-color: #0B3D91 !important;
    background-image: none !important;
}

html body .galeri {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
}

/* ABSOLUTE FINAL OVERRIDE - Using attribute selectors for maximum specificity */
.jurusan[class*="jurusan"] {
    background: #0B3D91 !important;
    background-color: #0B3D91 !important;
    background-image: none !important;
}

.pegawai[class*="pegawai"] {
    background: #0B3D91 !important;
    background-color: #0B3D91 !important;
    background-image: none !important;
}

.galeri[class*="galeri"] {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
}

/* LAST RESORT - Direct element targeting */
section.jurusan,
section.pegawai {
    background: #0B3D91 !important;
    background-color: #0B3D91 !important;
    background-image: none !important;
}

section.galeri {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
}

/* FINAL OVERRIDE - Override CSS variables */
.galeri {
    background: white !important;
    background-color: white !important;
    background-image: none !important;
    background: var(--section-white) !important;
}

.jurusan {
    background: #0B3D91 !important;
    background-color: #0B3D91 !important;
    background-image: none !important;
    background: var(--section-blue) !important;
}

.pegawai {
    background: #0B3D91 !important;
    background-color: #0B3D91 !important;
    background-image: none !important;
    background: var(--section-blue) !important;
}