/* Reset dan variabel */
:root {
    --primary-color: #0B3D91;
    --secondary-color: #1E90FF;
    --accent-color: #FFD700;
    --text-color: #333;
    --light-color: #fff;
    --gray-color: #f5f5f5;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 2rem;      /* 32px */
    --font-size-4xl: 2.5rem;    /* 40px */
    --font-size-5xl: 3rem;      /* 48px */
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: var(--font-size-base);
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 8px 0;
    font-size: var(--font-size-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 20px;
}

.top-bar-contact i {
    margin-right: 5px;
}

/* Header/Navbar */
.header {
    background: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 5px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: padding 0.4s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.03);
}

.logo img {
    height: 60px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover img {
    transform: rotate(8deg) scale(1.1);
}

.logo-text h1 {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    transition: all 0.4s ease;
}

.logo:hover .logo-text h1 {
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-text p {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.login-btn {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-btn i {
    font-size: var(--font-size-base);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: var(--secondary-color);
    color: var(--light-color);
}

.login-btn:hover i {
    transform: translateX(3px);
}

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

.login-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-btn {
        padding: 10px 20px;
        font-size: var(--font-size-xs);
    }

    .login-btn i {
        font-size: var(--font-size-sm);
    }
}

/* HERO CUSTOM MODERN */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: background-image 0.5s;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 30, 60, 0.65);
    z-index: 2;
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: #fff;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    text-align: center;
}
.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 26px;
    line-height: 1.5;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.2);
}
.hero-btn {
    background: var(--secondary-color, #F7D117);
    color: #1B2A78;
    padding: 15px 40px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: background 0.3s, color 0.3s, transform 0.2s;
    border: none;
    display: inline-block;
}
.hero-btn:hover {
    background: #fff;
    color: #1B2A78;
    transform: translateY(-2px) scale(1.04);
}
.carousel-control-prev, .carousel-control-next {
    z-index: 20 !important;
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}
.carousel-control-prev { left: 30px; }
.carousel-control-next { right: 30px; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: #1B2A78 !important; /* biru tua solid */
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    background-size: 60% 60% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    transition: background 0.2s, filter 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
    background-color: #F7D117 !important; /* kuning */
    filter: brightness(1.1);
    border-color: #1B2A78 !important;
}

/* Carousel Navigation Buttons for home page */
.carousel-nav-btn {
    background-color: #1B2A78 !important; /* biru tua solid */
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    transition: background 0.2s, filter 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn:hover {
    background-color: #F7D117 !important; /* kuning */
    filter: brightness(1.1);
    border-color: #1B2A78 !important;
}

.carousel-nav-btn i {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

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

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

.carousel-indicators button.active {
    background: #F7D117 !important;
    border-color: #F7D117 !important;
    transform: scale(1.2) !important;
    opacity: 1 !important;
}

.carousel-indicators button:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
}
@media (max-width: 768px) {
    .hero-title { font-size: 1.3rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-content { max-width: 95%; }
    
    .carousel-nav-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    .carousel-nav-btn i {
        font-size: 16px !important;
    }
    
    .carousel-indicators {
        bottom: 20px !important;
    }
}
@media (max-width: 576px) {
    .hero { min-height: 250px; }
    .hero-title { font-size: 1rem; }
    .hero-subtitle { font-size: 0.8rem; }
    .hero-btn { padding: 8px 14px; font-size: 0.95rem; }
    
    .carousel-nav-btn {
        width: 35px !important;
        height: 35px !important;
    }
    
    .carousel-nav-btn i {
        font-size: 14px !important;
    }
    
    .carousel-indicators {
        bottom: 15px !important;
    }
    
    .carousel-indicators button {
        width: 10px !important;
        height: 10px !important;
        margin: 0 3px !important;
    }
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: var(--font-size-3xl);
    margin-bottom: 15px;
    font-weight: 700;
}

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

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

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--light-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-btn i {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
}

.tab-btn span {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-color);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tab-btn.active {
    background: var(--primary-color);
}

.tab-btn.active i,
.tab-btn.active span {
    color: var(--light-color);
}

/* Tab Content */
.tab-contents {
    padding: 40px 0;
    background: var(--gray-color);
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.content-wrapper {
    background: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.content-wrapper:last-child {
    margin-bottom: 0;
}

.content-wrapper h3 {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    margin-bottom: 25px;
    font-weight: 600;
}

/* Visi Misi */
.visi, .misi {
    margin-bottom: 30px;
}

.visi h4, .misi h4 {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    margin-bottom: 15px;
}

.misi ul {
    list-style: none;
    padding-left: 20px;
}

.misi ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.misi ul li:before {
    content: "•";
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    position: absolute;
    left: 0;
}

/* Sambutan */
.kepsek-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.kepsek-profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.kepsek-info h4 {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    margin-bottom: 5px;
}

/* Pengumuman & Agenda */
.pengumuman-list, .agenda-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pengumuman-item, .agenda-item {
    display: flex;
    gap: 20px;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pengumuman-item:hover, .agenda-item:hover {
    transform: translateX(10px);
}

.pengumuman-image, .agenda-image {
    flex: 0 0 200px;
    overflow: hidden;
}

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

.pengumuman-item:hover .pengumuman-image img,
.agenda-item:hover .agenda-image img {
    transform: scale(1.1);
}

.pengumuman-content, .agenda-content {
    flex: 1;
    padding: 20px;
}

.date {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: 10px;
}

.pengumuman-item h4, .agenda-item h4 {
    color: var(--text-color);
    font-size: var(--font-size-lg);
    margin-bottom: 10px;
}

.pengumuman-item p, .agenda-item p {
    color: var(--text-color);
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

.agenda-details {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.agenda-details span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.agenda-details i {
    color: var(--primary-color);
}

/* Infografis */
.infografis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.infografis-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    aspect-ratio: 16/9;
}

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

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

.infografis-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(11, 61, 145, 0.9), transparent);
    color: var(--light-color);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.infografis-item:hover .infografis-overlay {
    transform: translateY(0);
}

.infografis-overlay h4 {
    margin-bottom: 5px;
    font-size: var(--font-size-lg);
}

.infografis-overlay p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

/* Video */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.video-item {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

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

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-item h4 {
    padding: 20px 20px 10px;
    color: var(--text-color);
    font-size: var(--font-size-lg);
}

.video-item p {
    padding: 0 20px 20px;
    color: var(--text-color);
    font-size: var(--font-size-base);
}

/* Profil Section */
.profil {
    padding: 80px 0;
    background: var(--light-color);
}

.profil-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.profil-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profil-image img {
    width: 100%;
    height: auto;
    display: block;
}

.profil-text {
    flex: 1;
}

.profil-text h3 {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    margin-bottom: 15px;
}

.profil-text p {
    margin-bottom: 20px;
}

.profil-text ul {
    list-style: none;
    padding-left: 20px;
}

.profil-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.profil-text ul li:before {
    content: "•";
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    position: absolute;
    left: 0;
}

/* Berita Section */
.berita {
    padding: 80px 0;
    background: var(--gray-color);
}

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

.berita-item {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.berita-item:hover {
    transform: translateY(-5px);
}

.berita-image {
    height: 200px;
    overflow: hidden;
}

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

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

.berita-content {
    padding: 20px;
}

.berita-content .date {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    margin-bottom: 10px;
}

.berita-content h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 10px;
}

.berita-content p {
    margin-bottom: 15px;
}

/* Jurusan Section */
.jurusan {
    padding: 80px 0;
    background: var(--light-color);
}

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

.jurusan-item {
    text-align: center;
    padding: 30px;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.jurusan-item:hover {
    transform: translateY(-5px);
}

.jurusan-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jurusan-icon i {
    font-size: 2rem;
    color: var(--light-color);
}

.jurusan-item h3 {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    margin-bottom: 10px;
}

/* Galeri Section */
.galeri {
    padding: 80px 0;
    background: var(--gray-color);
}

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

.galeri-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

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

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

.galeri-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(11, 61, 145, 0.9), transparent);
    color: var(--light-color);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.galeri-item:hover .galeri-overlay {
    transform: translateY(0);
}

/* Data Pegawai Section */
.pegawai {
    padding: 80px 0;
    background: var(--light-color);
}

.pegawai-grid,
.pegawai-grid-more {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.pegawai-item {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pegawai-item:hover {
    transform: translateY(-5px);
}

.pegawai-image {
    height: 300px;
    overflow: hidden;
}

.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 {
    padding: 20px;
    text-align: center;
}

.pegawai-info h3 {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    margin-bottom: 5px;
}

.pegawai-info p {
    color: var(--text-color);
    margin-bottom: 15px;
}

.pegawai-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pegawai-contact span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.pegawai-contact i {
    color: var(--primary-color);
}

/* PPDB Section */
.ppdb {
    padding: 80px 0;
    background: var(--gray-color);
}

.ppdb-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.ppdb-info {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.ppdb-info h3 {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    margin-bottom: 20px;
}

.ppdb-info ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 30px;
}

.ppdb-info ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.ppdb-info ul li:before {
    content: "•";
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    position: absolute;
    left: 0;
}

.ppdb-contact {
    margin-top: 30px;
}

.ppdb-contact h4 {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    margin-bottom: 15px;
}

.ppdb-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ppdb-contact i {
    color: var(--primary-color);
}

.ppdb-form {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.ppdb-form h3 {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: var(--font-size-base);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Show More Button */
.show-more-btn {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.show-more-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

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

/* Pegawai Grid More */
.pegawai-grid-more {
    margin-top: 30px;
}

.pegawai-grid-more .pegawai-item {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar { display: none; }

    /* Header at very top on mobile */
    .header { top: 0; }

    /* Navbar layout: hamburger left, logo next, menu off-canvas left */
    .navbar { flex-direction: row; align-items: center; padding: 6px 0 6px 0; position: relative; justify-content: flex-start; }

    .menu-toggle { order: 0; margin-left: 0; margin-right: 10px; display: flex; flex-direction: row; align-items: center; gap: 8px; position: static; }

    /* Hide login button on mobile header (can be placed inside drawer if needed) */
    .menu-toggle .login-btn { display: none !important; }

    .menu-toggle .hamburger { width: 44px; height: 44px; padding: 6px; border-radius: 8px; background: #f4f8fb; box-shadow: 0 2px 8px rgba(0,0,0,0.07); display: flex; flex-direction: column; justify-content: center; align-items: center; transition: background 0.2s, box-shadow 0.2s; }
    .menu-toggle .hamburger span { display: block !important; background: #1a237e !important; width: 32px !important; height: 5px !important; margin: 6px 0 !important; border-radius: 3px !important; opacity: 1 !important; }

    .logo { order: 1; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; flex: 1 1 auto; }
    .logo img { height: 32px; margin-bottom: 0; }
    .logo-text { line-height: 1.1; }
    .logo-text h1 { font-size: 1rem; margin-bottom: 0; line-height: 1.1; }
    .logo-text p { font-size: 0.75rem; margin-bottom: 0; }

    .nav-menu { order: 2; position: fixed; top: 56px; left: -100vw; right: auto; width: 80vw; max-width: 340px; height: calc(100vh - 56px); background: var(--light-color); flex-direction: column; align-items: stretch; justify-content: flex-start; transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 5px 0 15px rgba(0,0,0,0.1); opacity: 1; visibility: visible; padding: 8px 0; border-top-right-radius: 12px; border-bottom-right-radius: 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .nav-menu.active { left: 0; }

    /* Drawer links */
    .nav-menu a { font-size: 0.95rem; padding: 12px 16px; opacity: 1; transform: none; }

    /* Indentation for dropdown items and always open on mobile */
    .nav-menu li.has-dropdown .dropdown-menu { position: relative; top: auto; left: auto; width: 100%; box-shadow: none; border-radius: 0; background-color: #f0f0f0; padding: 0; transform: none; opacity: 1; visibility: visible; display: block; max-height: none; overflow: visible; transition: none; }
    .nav-menu li.has-dropdown.active .dropdown-menu { max-height: none; }
    .nav-menu .dropdown-menu li a { padding-left: 40px; font-size: var(--font-size-sm); }

    /* Remove hover-specific behavior on mobile */
    .nav-menu li.has-dropdown:hover .dropdown-menu { display: block; opacity: 1; visibility: visible; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Design untuk Pegawai */
@media (max-width: 992px) {
    .pegawai-grid,
    .pegawai-grid-more {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pegawai-grid,
    .pegawai-grid-more {
        grid-template-columns: 1fr;
    }
}

/* PPDB Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.popup-content {
    background: var(--light-color);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    margin: 40px auto;
}

.popup-header {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    animation: slideDown 0.5s ease-out;
}

.popup-body {
    padding: 40px;
    animation: fadeInUp 0.5s ease-out 0.2s both;
    position: relative;
}

.popup-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 25px;
    animation: zoomIn 0.5s ease-out 0.3s both;
}

.popup-info {
    text-align: center;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.popup-info h4 {
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    margin-bottom: 15px;
    animation: slideInRight 0.5s ease-out 0.5s both;
}

.popup-info p {
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: var(--font-size-lg);
    animation: slideInRight 0.5s ease-out 0.6s both;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    animation: fadeInUp 0.5s ease-out 0.7s both;
}

.instagram-btn {
    background: #E1306C;
    color: var(--light-color);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: bounceIn 0.5s ease-out 0.8s both;
    font-size: var(--font-size-base);
}

.instagram-btn:hover {
    background: #C13584;
    transform: translateY(-2px) scale(1.05);
    color: var(--light-color);
}

.dont-show-btn {
    background: var(--gray-color);
    color: var(--text-color);
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: bounceIn 0.5s ease-out 0.9s both;
    font-size: var(--font-size-base);
}

.dont-show-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px) scale(1.05);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out 0.1s both;
    z-index: 2;
}

.close-popup:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--primary-color);
}

/* Animasi Keyframes */
@keyframes popIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive Popup */
@media (max-width: 576px) {
    .popup-content {
        width: 95%;
        margin: 20px auto;
    }

    .popup-body {
        padding: 30px 20px;
    }

    .popup-info h4 {
        font-size: var(--font-size-lg);
    }

    .popup-info p {
        font-size: var(--font-size-base);
        margin-bottom: 20px;
    }

    .popup-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .instagram-btn,
    .dont-show-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-logo-text h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 5px;
}

.footer-logo-text p {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.footer-contact h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: var(--font-size-base);
}

.footer-contact i {
    color: var(--accent-color);
    font-size: var(--font-size-lg);
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    font-size: var(--font-size-lg);
    transition: all 0.3s ease;
}

.social-media a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    width: 100%;
    height: 300px;
}

.footer-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

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

.footer-bottom p {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-map {
        order: -1;
        height: 250px;
    }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    text-align: center;
  }
  .footer-info, .footer-map {
    width: 100%;
    margin: 0 auto 20px auto;
    padding: 0 10px;
  }
  .footer-map {
    height: 220px !important;
    min-height: 180px;
  }
  .footer-logo {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .footer-contact p, .footer-contact h4 {
    justify-content: center;
    text-align: center;
  }
  .social-media {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .footer {
    padding: 30px 0 10px;
  }
  .footer-map {
    height: 120px !important;
  }
  .footer-logo img {
    width: 40px;
    height: 40px;
  }
  .footer-logo-text h3 {
    font-size: 1rem;
  }
  .footer-logo-text p {
    font-size: 0.8rem;
  }
  .footer-contact p {
    font-size: 0.9rem;
  }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.loader-content {
    text-align: center;
    color: var(--light-color);
    position: relative;
}

.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.logo-spin {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.loading-circle {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid transparent;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: circle-spin 0.5s linear infinite;
}

.loading-circle::before,
.loading-circle::after {
    content: '';
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
}

.loading-circle::before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-top-color: var(--light-color);
    animation: circle-spin 0.7s linear infinite;
}

.loading-circle::after {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-top-color: var(--accent-color);
    animation: circle-spin 1s linear infinite;
}

@keyframes circle-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Analytics Dashboard Styles */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a237e, #283593, #303f9f);
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-title {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #1a237e;
    border-radius: 2px;
}

.chart-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-wrapper {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    padding: 1rem;
}

.chart-wrapper canvas {
    max-width: 100%;
    height: auto !important;
}

/* Loading state for charts */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
    flex-direction: column;
    gap: 1rem;
}

.chart-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
    color: #1a237e;
}

.chart-loading p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

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

/* Analytics Stats Cards */
.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.analytics-stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.analytics-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a237e, #283593);
}

.analytics-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.analytics-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #1a237e, #283593);
}

.analytics-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.analytics-stat-label {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design for Analytics */
@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-legend {
        justify-content: flex-start;
    }
    
    .analytics-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .analytics-stats {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .chart-wrapper {
        height: 200px;
    }
}

/* Fix carousel item overlap */
.carousel-item {
    display: none;
}
.carousel-item.active {
    display: block;
    animation: fadeIn 0.8s;
}

/* Hero content improvement */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: #fff;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    text-align: center;
}
.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 26px;
    line-height: 1.5;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .hero-title { font-size: 1.3rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-content { max-width: 95%; }
}
@media (max-width: 576px) {
    .hero { min-height: 250px; }
    .hero-title { font-size: 1rem; }
    .hero-subtitle { font-size: 0.8rem; }
    .hero-btn { padding: 8px 14px; font-size: 0.95rem; }
} 

/* Tambahan responsif header/navbar */
@media (max-width: 768px) {
  .header {
    padding: 0;
    min-height: 56px;
  }
  .navbar {
    flex-direction: row;
    align-items: center;
    padding: 6px 0 6px 0;
    position: relative;
  }
  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .logo img {
    height: 32px;
    margin-bottom: 0;
  }
  .logo-text {
    line-height: 1.1;
  }
  .logo-text h1 {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.1;
  }
  .logo-text p {
    font-size: 0.75rem;
    margin-bottom: 0;
  }
  .menu-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    position: static;
    margin-left: auto;
  }
  .menu-toggle .login-btn {
    padding: 7px 12px;
    font-size: 0.95rem;
    border-radius: 5px;
    margin-right: 0;
  }
  .menu-toggle .hamburger {
    width: 44px;
    height: 44px;
    padding: 6px;
    border-radius: 8px;
    background: #f4f8fb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, box-shadow 0.2s;
  }
  .menu-toggle .hamburger span {
    display: block !important;
    background: #1a237e !important;
    width: 32px !important;
    height: 5px !important;
    margin: 6px 0 !important;
    border-radius: 3px !important;
    opacity: 1 !important;
  }
  .menu-toggle .hamburger:hover {
    background: #e9ecef;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  }
  .nav-menu {
    top: 56px;
    right: -100vw;
    width: 80vw;
    max-width: 340px;
    padding-top: 20px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
  }
}
@media (max-width: 480px) {
  .header {
    min-height: 44px;
  }
  .logo img { height: 26px; }
  .logo-text h1 { font-size: 0.8rem; }
  .logo-text p { font-size: 0.65rem; }
  .nav-menu { top: 44px; }
  .menu-toggle .login-btn { font-size: 0.85rem; padding: 6px 8px; }
} 

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

.nav-menu li.has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    min-width: 220px;
    z-index: 100;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-menu li.has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu li {
    width: 100%;
}

.nav-menu .dropdown-menu li a {
    color: var(--text-color);
    padding: 10px 28px;
    display: block;
    white-space: nowrap;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu .dropdown-menu li a:hover {
    background-color: var(--gray-color);
    color: var(--primary-color);
    transform: none; /* Override parent hover effect */
}

/* Responsive adjustments for dropdown */
@media (max-width: 768px) {
    .nav-menu li.has-dropdown .dropdown-menu {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background-color: #f0f0f0;
        padding: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: block;
        max-height: none;
        overflow: visible;
        transition: none;
    }

    /* Tidak perlu toggle, semua dropdown terbuka pada mobile */
    .nav-menu li.has-dropdown.active .dropdown-menu { max-height: none; }

    .nav-menu li.has-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-menu .dropdown-menu li a {
        padding-left: 40px;
        font-size: var(--font-size-sm);
    }

    /* Abaikan efek hover pada mobile */
    .nav-menu li.has-dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
} 

@media (min-width: 769px) {
	/* Ensure desktop keeps hover behavior for dropdowns */
	.nav-menu li.has-dropdown .dropdown-menu {
		display: none;
		opacity: 0;
		visibility: hidden;
		transform: translateY(10px);
	}
	.nav-menu li.has-dropdown:hover .dropdown-menu {
		display: block;
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
} 

/* Video Section Styles */
.video {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.video .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.video .section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.video .section-title p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

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

.video-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
    color: #333;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.ratio-16x9 { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; }
.ratio-16x9 > img.video-thumb { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.btn-play { position: absolute; bottom: 12px; right: 12px; background: #ff0000; color: #fff; border: 0; border-radius: 999px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(255,0,0,.4); }
.btn-play i { font-size: 18px; }
.btn-play:hover { filter: brightness(1.1); }

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.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;
    transition: background 0.3s ease;
}

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

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

.play-button {
    width: 80px;
    height: 80px;
    background: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6);
}

.video-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.video-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

.video-content {
    padding: 18px 18px 20px;
}

.video-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #222;
    line-height: 1.35;
}

.video-desc { color: #6b7280; margin: 0 0 12px; font-size: .925rem; line-height: 1.55; max-height: 3.1em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.video-meta {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}

.chip { display:inline-flex; align-items:center; gap:6px; background:#f3f4f6; color:#374151; font-size:.8rem; padding:6px 10px; border-radius:999px; }
.order { color:#9ca3af; font-size:.8rem; }

.video-category i {
    color: #007bff;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.video-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.video-empty .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.video-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.video-empty p {
    opacity: 0.8;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video .section-title h2 {
        font-size: 2rem;
    }
    
    .video-content {
        padding: 20px;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary {
        text-align: center;
    }
} 