/* ============================================
   Smart School - Website Sekolah CSS
   Tema Biru Muda Cerah dan Elegan
   ============================================ */

:root {
    --primary-blue: #4A90E2;
    --light-blue: #87CEEB;
    --lighter-blue: #B0E0E6;
    --lightest-blue: #E0F6FF;
    --dark-blue: #2C5F8D;
    --accent-blue: #5BA3F5;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --gray: #E8ECEF;
    --text-dark: #2C3E50;
    --text-gray: #6C757D;
    --text-light: #95A5A6;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --shadow: rgba(74, 144, 226, 0.15);
    --shadow-hover: rgba(74, 144, 226, 0.25);
}

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 80%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */

.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 2rem;
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-menu li {
    flex-shrink: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    background: var(--lightest-blue);
    display: inline-block;
    white-space: nowrap;
}

.nav-menu li a::after {
    display: none;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    display: none;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.btn-login::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: var(--lightest-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    cursor: pointer;
    gap: 5px;
    padding: 10px 8px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: var(--lighter-blue);
    transform: scale(1.05);
}

.mobile-menu-toggle.active {
    background: var(--primary-blue);
}

.mobile-menu-toggle.active span {
    background: var(--white);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   Dropdown Menu
   ============================================ */

.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu .dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-menu .dropdown:hover .dropdown-toggle i,
.nav-menu .dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 4px 15px var(--shadow);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.nav-menu .dropdown:hover .dropdown-menu,
.nav-menu .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu li {
    margin: 0;
}

.nav-menu .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: transparent;
    border-radius: 0;
    transform: none;
    box-shadow: none;
}

.nav-menu .dropdown-menu li a:hover {
    background: var(--lightest-blue);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    padding-left: 25px;
    transform: translateX(5px);
}

.nav-menu .dropdown-menu li a::after {
    display: none;
}

/* Mobile Dropdown - Consolidated with main mobile styles below */

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--lighter-blue) 50%, var(--lightest-blue) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-dark);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-blue);
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--shadow-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--lightest-blue);
}

/* ============================================
   Section Styles
   ============================================ */

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
}

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

.section-gray {
    background: var(--light-gray);
}

.section-blue {
    background: linear-gradient(135deg, var(--lightest-blue) 0%, var(--lighter-blue) 100%);
}

/* ============================================
   About Section
   ============================================ */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 4/3;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 0;
}

.vision-mission-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.vision-mission-card:hover {
    transform: translateY(-5px);
}

.vision-mission-card h4 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vision-mission-card p {
    color: var(--text-gray);
    line-height: 1.8;
    text-align: justify;
}

/* ============================================
   Program Section
   ============================================ */

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.program-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.program-card h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.program-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ============================================
   News Section
   ============================================ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, var(--light-blue), var(--lighter-blue));
}

/* News Detail Cover Image */
.news-detail-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: block;
}

/* Principal Photo */
.principal-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid #667eea;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.principal-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #667eea;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* News Detail Gallery Grid */
.news-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.news-detail-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
}

.news-detail-gallery-item:hover {
    transform: scale(1.05);
}

.news-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.news-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 1rem;
}

/* ============================================
   Gallery Section
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.lokasi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.lokasi-grid > div {
    width: 100%;
    max-width: 100%;
}

.lokasi-map-wrapper {
    width: 100%;
}

.lokasi-map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lokasi-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.lokasi-map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.lokasi-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-gray);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   Footer
   ============================================ */

.main-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0; /* penting */
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.4rem;   /* jarak antar item */
    line-height: 1.4;        /* rapat tapi nyaman dibaca */
    color: rgba(255, 255, 255, 0.85);
}

.contact-info li i {
    margin-top: 0.2rem;
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Animations
   ============================================ */

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

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Header Responsive - Keep in one line */
@media (max-width: 1200px) {
    .nav-menu li a {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .nav-menu li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.7rem;
    }
}

@media (max-width: 900px) {
    .nav-menu li a {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 85%;
        max-width: 320px;
        height: 100vh;
        text-align: left;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        padding: 80px 0 2rem 0;
        gap: 0;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobile Image Adjustments */
    .news-detail-cover {
        aspect-ratio: 4/3;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .about-image img {
        aspect-ratio: 16/9;
    }

    .principal-photo,
    .principal-photo-placeholder {
        width: 100px;
        height: 100px;
    }

    .principal-photo-placeholder i {
        font-size: 40px !important;
    }

    .news-detail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--gray);
    }

    .nav-menu li a {
        display: block;
        padding: 16px 24px;
        min-height: 44px;
        background: transparent;
        border-radius: 0;
        color: var(--text-dark);
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .nav-menu li a:hover,
    .nav-menu li a.active {
        background: var(--lightest-blue);
        color: var(--primary-blue);
        transform: translateX(5px);
        box-shadow: none;
    }

    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-gray);
        border-radius: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .nav-menu .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 10px 0;
    }

    .nav-menu .dropdown-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu .dropdown-menu li a {
        padding: 12px 24px 12px 48px;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .nav-menu .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu .dropdown-toggle i {
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .nav-menu .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .about-content,
    .vision-mission,
    .lokasi-grid,
    .kalender-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .kalender-form {
        flex-direction: column;
        gap: 10px;
    }

    .kalender-form .btn {
        width: 100%;
    }

    .kalender-calendar-box {
        padding: 15px;
    }

    .kalender-month-title {
        font-size: 1rem;
    }

    .kalender-day-header {
        padding: 8px 4px;
        font-size: 0.75rem;
    }

    .kalender-day {
        padding: 8px 4px;
        min-height: 35px;
        font-size: 0.8rem;
    }

    .kalender-day-indicator {
        width: 4px;
        height: 4px;
        bottom: 2px;
    }

    .kalender-events-list {
        max-height: none;
    }

    .kalender-event-card {
        padding: 12px;
    }

    .kalender-event-title {
        font-size: 1rem;
    }

    .lokasi-grid > div {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .lokasi-map-wrapper,
    .lokasi-map,
    .lokasi-map-placeholder,
    .lokasi-info {
        width: 100%;
        max-width: 100%;
    }

    .lokasi-map {
        height: 300px;
    }

    .lokasi-map-placeholder {
        height: 300px;
    }

    .lokasi-info {
        padding: 20px;
    }

    .container {
        width: 100%;
        padding: 0 15px;
    }

    .program-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 12px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Mobile Image Adjustments */
    .news-detail-cover {
        aspect-ratio: 3/2;
        border-radius: 6px;
        margin-bottom: 15px;
    }

    .principal-photo,
    .principal-photo-placeholder {
        width: 90px;
        height: 90px;
        border-width: 3px;
    }

    .principal-photo-placeholder i {
        font-size: 35px !important;
    }

    .news-detail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .lokasi-grid {
        gap: 15px;
    }

    .lokasi-grid > div {
        width: 100%;
    }

    .lokasi-map-wrapper,
    .lokasi-map,
    .lokasi-map-placeholder,
    .lokasi-info {
        width: 100%;
        max-width: 100%;
    }

    .lokasi-map {
        height: 250px;
    }

    .lokasi-map-placeholder {
        height: 250px;
    }

    .lokasi-info {
        padding: 15px;
    }

    .kalender-wrapper {
        gap: 15px;
    }

    .kalender-calendar-box {
        padding: 12px;
    }

    .kalender-day-header {
        padding: 6px 2px;
        font-size: 0.7rem;
    }

    .kalender-day {
        padding: 6px 2px;
        min-height: 30px;
        font-size: 0.75rem;
    }

    .kalender-event-card {
        padding: 10px;
    }
}

/* ============================================
   Banner Slider
   ============================================ */

.banner-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: -56px; /* Offset untuk sticky header */
}

.banner-slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s;
    transform: scale(1.1) translateZ(0);
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateZ(0);
    z-index: 2;
}

.banner-slide.prev {
    transform: scale(0.95) translateX(-100%) translateZ(0);
}

.banner-slide.next {
    transform: scale(0.95) translateX(100%) translateZ(0);
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.banner-slide.active .banner-image {
    transform: scale(1);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 95, 141, 0.4) 0%, rgba(74, 144, 226, 0.3) 50%, rgba(135, 206, 235, 0.2) 100%);
    z-index: 1;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease 0.2s both;
    color: var(--white);
}

.banner-description {
    font-size: 1.3rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s both;
    color: var(--white);
}

/* Navigation Arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
}

.banner-slider-container:hover .banner-nav {
    opacity: 1;
}

.banner-nav:hover {
    background: rgba(74, 144, 226, 0.8);
    border-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.banner-nav-prev {
    left: 30px;
}

.banner-nav-next {
    right: 30px;
}

.banner-nav i {
    font-size: 1.2rem;
}

/* Dot Indicators */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.banner-indicator.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.5);
}

/* Progress Bar */
.banner-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.banner-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.6);
}

/* Responsive Banner */
@media (max-width: 768px) {
    .banner-slider-container {
        height: 400px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .banner-nav {
        width: 40px;
        height: 40px;
        opacity: 0.7;
    }
    
    .banner-nav-prev {
        left: 10px;
    }
    
    .banner-nav-next {
        right: 10px;
    }
    
    .banner-indicators {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .banner-slider-container {
        height: 300px;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-description {
        font-size: 0.9rem;
    }
}

/* ============================================
   Kalender Akademik Styles
   ============================================ */

.kalender-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.kalender-calendar-section {
    width: 100%;
}

.kalender-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.kalender-form .form-control {
    flex: 1;
}

.kalender-calendar-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
}

.kalender-month-title {
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-blue);
}

.kalender-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.kalender-day-header {
    font-weight: bold;
    padding: 10px;
    background: var(--primary-blue);
    color: white;
    font-size: 0.9rem;
}

.kalender-day-empty {
    padding: 10px;
}

.kalender-day {
    padding: 10px;
    border: 1px solid #ddd;
    background: white;
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.kalender-day-today {
    background: #e3f2fd;
}

.kalender-day-event {
    background: #fff3cd;
}

.kalender-day-indicator {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.kalender-events-section {
    width: 100%;
}

.kalender-events-title {
    margin-bottom: 15px;
    color: var(--dark-blue);
    font-size: 1.3rem;
}

.kalender-filter-form {
    margin-bottom: 20px;
}

.kalender-events-list {
    max-height: 500px;
    overflow-y: auto;
}

.kalender-event-card {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.kalender-event-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.kalender-event-title {
    margin: 0;
    color: var(--dark-blue);
    font-size: 1.1rem;
    font-weight: 600;
}

.kalender-event-badge {
    margin-top: 5px;
    display: inline-block;
}

.kalender-event-date {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.kalender-event-description {
    margin: 10px 0 0 0;
    color: #555;
    line-height: 1.6;
}

.kalender-no-events {
    color: #666;
    text-align: center;
    padding: 20px;
}

/* ============================================
   Utility Classes
   ============================================ */

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

