/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #1e4a8b;
    --primary-dark: #153b6b;
    --secondary-color: #6c9bd2;
    --secondary-light: #e6f0fa;
    --text-dark: #2c3e2c;
    --text-soft: #5a6b5a;
    --white: #ffffff;
    --light-bg: #f5f9ff;
    --border-color: #dde7f0;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.main-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(30, 74, 139, 0.25);
    border-bottom: 3px solid var(--secondary-color);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 60px;
    height: auto;
    display: block;
}

.school-text h1 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.school-text p {
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===== NAVIGASI STICKY ===== */
.nav-container {
    background-color: white;
    border-bottom: 2px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    width: 100%;
}

nav ul {
    display: flex !important;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    flex-wrap: nowrap !important;
    align-items: center;
    width: 100%;
    justify-content: center !important;
}

.nav-btn-item {
    padding: 0 5px;
    flex-shrink: 0; /* Tambahkan ini agar tombol tidak gepeng/hilang tulisannya */
}

nav ul li a {
    display: block;
    padding: 18px 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s;
    position: relative;
}

nav ul li a i {
    margin-left: 5px;
    font-size: 10px;
    color: var(--text-soft);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li.active a::after {
    width: 80%;
}

nav ul li a:hover,
nav ul li.active a {
    color: var(--primary-color);
}

nav ul li.active a {
    font-weight: 600;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    z-index: 1001;
}

.dropdown-content a {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    font-size: 14px;
    transition: all 0.3s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown-content a:hover {
    background-color: var(--secondary-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



.contact-btn {
    display: inline-block !important;
    padding: 8px 18px !important;
    background: var(--primary-color) !important; /* Latar Biru */
    color: #ffffff !important; /* Teks Kuning */
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    border: 2px solid var(--primary-color) !important;
}

.contact-btn i {
    margin-right: 8px;
}

.contact-btn:hover {
    background: #ffffff !important; /* Saat dihover jadi Kuning */
    color: var(--primary-color) !important; /* Teksnya jadi Biru */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.nav-btn-item a::after {
    display: none !important;
}

.spmb-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #ffc107;
    color: #1e4a8b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    border: 2px solid #ffc107;
}

.spmb-btn i {
    margin-right: 8px;
}

.spmb-btn:hover {
    background: transparent;
    color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* ===== PAGE BANNER ===== */
.page-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(21, 59, 107, 0.9), rgba(30, 74, 139, 0.85));
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideDown 0.8s ease;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.95;
    animation: slideUp 0.8s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h3 {
    color: var(--text-dark);
    font-size: 32px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ===== HERO SLIDESHOW ===== */
.hero-slideshow {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 60px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide.active {
    opacity: 1;
}
/* ===== PDF PRINT BUTTON ===== */
.artikel-image {
    position: relative;
    overflow: hidden;
}

.btn-print-pdf {
    position: absolute;
    bottom: -50px;
    right: 15px;
    background-color: #5a6b5a;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.artikel-card:hover .btn-print-pdf {
    bottom: 15px;
}

.btn-print-pdf:hover {
    background-color: #2a3d2a;
    color: white;
    transform: translateY(-2px);
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.slide-quote {
    font-size: 18px;
    font-style: italic;
    background-color: rgba(255,255,255,0.15);
    padding: 15px 30px;
    border-radius: 50px;
    border-left: 5px solid var(--primary-color);
    backdrop-filter: blur(5px);
    display: inline-block;
}

.slide-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.dot {
    width: 14px;
    height: 14px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot:hover,
.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
    border-color: white;
}

/* ===== ARTIKEL GRID ===== */
.artikel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.artikel-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.artikel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(30, 74, 139, 0.15);
    border-color: var(--primary-color);
}

.artikel-image {
    height: 200px;
    overflow: hidden;
}

.artikel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artikel-card:hover .artikel-image img {
    transform: scale(1.08);
}

.artikel-content {
    padding: 20px;
}

.artikel-date {
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.artikel-date i {
    color: var(--primary-color);
}

.artikel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.artikel-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.artikel-title a:hover {
    color: var(--primary-color);
}

.artikel-excerpt {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* ===== PENGUMUMAN LIST ===== */
.pengumuman-section {
    margin: 40px 0;
}

.pengumuman-list {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.pengumuman-item {
    position: relative;
    overflow: hidden;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    transition: all 0.3s;
}

.pengumuman-item:last-child {
    border-bottom: none;
}

.pengumuman-item:hover {
    background: var(--secondary-light);
    padding-left: 30px;
}

.pengumuman-item:hover .btn-print-pdf {
    bottom: 15px;
}

.pengumuman-info h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 500;
}

.pengumuman-info h4 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.pengumuman-info h4 a:hover {
    color: var(--primary-color);
}

.pengumuman-date {
    color: var(--text-soft);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pengumuman-date i {
    color: var(--primary-color);
}

.pengumuman-badge {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    aspect-ratio: 1/1;
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(30, 74, 139, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.btn-view-all {
    text-align: center;
    margin-top: 30px;
}

.btn-view-all a {
    display: inline-block;
    padding: 12px 35px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-view-all a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 74, 139, 0.2);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    margin-top: 5%;
    border: 3px solid white;
    border-radius: 8px;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 20px 0;
    font-size: 16px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 20px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    background-color: rgba(0,0,0,0.3);
    text-decoration: none;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
    color: var(--primary-color);
}

.lightbox-prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.lightbox-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* ===== KATA SAMBUTAN ===== */
.sambutan-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.sambutan-container {
    display: flex;
    gap: 40px;
    align-items: start;
    flex-wrap: wrap;
}

.foto-kepsek {
    flex: 0 0 280px;
    text-align: center;
}

.foto-placeholder {
    width: 250px;
    height: 280px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 15px;
    box-shadow: 0 10px 25px rgba(30, 74, 139, 0.3);
    border: 3px solid white;
    overflow: hidden;
}

.foto-placeholder i {
    font-size: 80px;
    margin-bottom: 15px;
}

.foto-placeholder p {
    font-size: 18px;
    font-weight: 500;
}

.foto-kepsek h4 {
    color: var(--text-dark);
    font-size: 20px;
    margin-top: 10px;
}

.foto-kepsek p {
    color: var(--text-soft);
    font-size: 14px;
}

.sambutan-text {
    flex: 1;
}

.sambutan-text h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 15px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.sambutan-text .motto {
    color: var(--text-dark);
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--secondary-light);
    border-radius: 10px;
}

.sambutan-text .motto i {
    color: var(--primary-color);
    margin: 0 5px;
}

.sambutan-text .bismillah {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sambutan-text .assalamu {
    color: var(--text-soft);
    font-size: 16px;
    margin-bottom: 20px;
}

.sambutan-text p {
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* ===== SEJARAH ===== */
.sejarah-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.sejarah-text p {
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--secondary-color);
}

/* ===== VISI MISI ===== */
.visi-misi-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.visi-box, .misi-box {
    padding: 30px;
    border-radius: 15px;
    background: var(--secondary-light);
    transition: transform 0.3s;
}

.visi-box:hover, .misi-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.visi-box h4, .misi-box h4 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.visi-box p {
    color: var(--text-soft);
    line-height: 1.8;
    font-size: 16px;
}

.misi-box ul {
    list-style: none;
}

.misi-box ul li {
    color: var(--text-soft);
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.8;
}

.misi-box ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ===== MITRA INDUSTRI ===== */
.mitra-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.mitra-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    display: flex;
    padding: 30px;
    gap: 30px;
}

.mitra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(30, 74, 139, 0.15);
    border-color: var(--primary-color);
}

.mitra-logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 45px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.mitra-content {
    flex: 1;
}

.mitra-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.mitra-header h3 {
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.mitra-badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.mitra-description {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.mitra-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.mitra-year {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.mitra-year i {
    color: var(--primary-color);
}

.mitra-year span {
    background: var(--secondary-light);
    padding: 5px 15px;
    border-radius: 30px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 13px;
}

.mitra-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.mitra-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

.kerjasama-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.kerjasama-box h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.kerjasama-box p {
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto 20px;
    font-size: 15px;
}

.kerjasama-box .btn-contact {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.kerjasama-box .btn-contact:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== SISWA BERPRESTASI ===== */
.student-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.student-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.student-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(30, 74, 139, 0.15);
    border-color: var(--primary-color);
}

.student-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-initial {
    width: 55px;
    height: 55px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 22px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.student-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 22%;
    border: 1px solid white;
    box-shadow: 0 5px 9px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

.student-header-info h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}

.student-header-info p {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
}

.student-body {
    padding: 20px;
}

.achievement-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.achievement-desc {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 65px;
}

.achievement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.achievement-badge {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.achievement-year {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    background: var(--secondary-light);
    padding: 3px 10px;
    border-radius: 20px;
}

/* ===== JURUSAN ===== */
.jurusan-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
    background: white;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.jurusan-info .badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 30px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.jurusan-info h2 {
    color: var(--text-dark);
    font-size: 36px;
    margin-bottom: 20px;
}

.jurusan-info p {
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    font-size: 16px;
}

.jurusan-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    height: 350px;
    border: 3px solid white;
}

.jurusan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.jurusan-image:hover img {
    transform: scale(1.05);
}

.sub-section {
    margin: 50px 0;
}

.sub-section h3 {
    color: var(--text-dark);
    font-size: 26px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.sub-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.jurusan-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.jurusan-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 16/9;
    border: 2px solid white;
    transition: transform 0.3s;
}

.jurusan-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(30, 74, 139, 0.2);
}

.jurusan-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.jurusan-gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== CONTACT ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.contact-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(30, 74, 139, 0.15);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--text-dark);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.contact-card a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--primary-color);
}

.contact-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-form {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.form-title {
    color: var(--text-dark);
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.form-title i {
    color: var(--primary-color);
    margin-right: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(30, 74, 139, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid var(--primary-color);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 74, 139, 0.2);
}

.contact-info {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.info-title {
    color: var(--text-dark);
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.info-title i {
    color: var(--primary-color);
    margin-right: 10px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: var(--secondary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.info-text h4 {
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-text p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.social-contact {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-contact a {
    width: 40px;
    height: 40px;
    background: var(--secondary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.social-contact a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.map-section {
    margin-top: 40px;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== TAB & SEARCH ===== */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 40px;
    border: none;
    background: white;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.tab-btn:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-container {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(30, 74, 139, 0.2);
}

.no-result {
    text-align: center;
    padding: 50px;
    color: var(--text-soft);
    font-size: 16px;
    background: white;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== FILTER TABS ===== */
.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.filter-btn {
    padding: 10px 25px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 3px solid var(--secondary-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h4,
.footer-address h4,
.footer-maps h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-about h4::after,
.footer-address h4::after,
.footer-maps h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-about p {
    color: var(--secondary-color);
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.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: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--secondary-color);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.address-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.address-item i {
    font-size: 18px;
    color: white;
    margin-top: 3px;
}

.address-item p {
    line-height: 1.8;
    font-size: 14px;
}

.maps-container {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--secondary-color);
}

.maps-container iframe {
    width: 100%;
    height: 150px;
    display: block;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 13px;
}

/* ===== HAMBURGER MENU ===== */
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .artikel-grid,
    .student-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-main {
        grid-template-columns: 1fr;
    }
    
    .sambutan-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .sambutan-text h3 {
        text-align: center;
        border-left: none;
        padding-left: 0;
    }
    
    .visi-misi-grid {
        grid-template-columns: 1fr;
    }
    
    .jurusan-hero {
        grid-template-columns: 1fr;
    }
    
    .jurusan-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: relative;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        display: none;
        z-index: 1000;
        border-top: 1px solid var(--border-color);
    }
    
    nav.active {
        display: block;
        animation: slideDownNav 0.3s forwards;
    }
    
    @keyframes slideDownNav {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        justify-content: space-between;
        text-align: left;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: var(--light-bg);
        display: none !important;
    }
    
    .dropdown.active .dropdown-content {
        display: block !important;
    }
    
    .nav-contact {
        display: none;
    }
    
    .page-banner {
        height: 250px;
    }
    
    .banner-content h2 {
        font-size: 32px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .artikel-grid,
    .student-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .jurusan-gallery {
        grid-template-columns: 1fr;
    }
    
    .mitra-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .mitra-logo {
        margin-bottom: 10px;
    }
    
    .mitra-header {
        flex-direction: column;
        align-items: center;
    }
    
    .mitra-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tabs {
        padding: 10px;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .page-banner h2 {
        font-size: 28px;
    }
    
    .section-title h3 {
        font-size: 26px;
    }
    
    .jurusan-info h2 {
        font-size: 28px;
    }
}