/* ========================================
   CUSTOM CSS - SEKOLAH WATES
   Bootstrap 5 Override & Custom Styles
   ======================================== */
   @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /* Color Palette - Smooth Light Blue Theme */
    --primary-blue: #1e3b8b;
    /*#6BB6E8;*/
    --primary-blue-dark: #5AA3D4;
    --primary-blue-light: #8BC7F0;
    --soft-blue: #E8F4FC;
    --soft-blue-dark: #CCE8F8;
    --accent-blue: #7CC4F0;
    --dark-bg: #1a1a1a;
    --header-bg: #1e3b8b;
    --header-bg-solid: #1e3b8b;
    --top-border: #e74c3c;
    --btn-red: #e74c3c;
    --btn-red-hover: #c0392b;
    --btn-orange: #FFD700;       /* Warna Orange Cerah */
    --btn-orange-hover: #ffb300; /* Warna Orange Gelap (Deep Orange) */

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;

    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
     font-family: "Poppins", sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    transition: font-size var(--transition-fast);
}

body.font-medium { font-size: 18px; }
body.font-large { font-size: 20px; }
body.font-xlarge { font-size: 22px; }

/* High Contrast Mode */
body.high-contrast {
    --primary-blue: #0066CC;
    --primary-blue-dark: #004C99;
    --soft-blue: #E6F2FF;
    background-color: #FFFFFF;
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a2e;
    color: #eaeaea;
}

body.dark-mode .text-muted { color: #b0b0b0 !important; }
body.dark-mode .bg-white { background-color: #16213e !important; color: #eaeaea !important; }
body.dark-mode .card,
body.dark-mode .berita-card,
body.dark-mode .ekskul-card,
body.dark-mode .prestasi-card,
body.dark-mode .guru-card {
    background-color: #16213e !important;
    color: #eaeaea !important;
}

body.dark-mode .prestasi-card {
    border-color: #2a3f5f;
}

body.dark-mode .prestasi-card::before {
    background: linear-gradient(90deg, var(--primary-blue-light), var(--primary-blue));
}

body.dark-mode .prestasi-title {
    color: #eaeaea !important;
}

body.dark-mode .prestasi-level {
    color: #b0b0b0;
}

body.dark-mode .prestasi-footer {
    border-top-color: #2a3f5f;
}

body.dark-mode .prestasi-date {
    color: #888;
}

a { text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; }

/* ========================================
   TOP BAR (Referensi: Dinamika)
   ======================================== */
.top-bar {
    background: #072577;
    /*border-top: 3px solid var(--top-border);*/
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.top-nav a {
    color: #fff;
    font-size: 0.85rem;
    padding: 5px 10px;
    transition: color var(--transition-fast);
}

.top-nav a:hover {
    color: var(--primary-blue-light);
}

.top-nav .divider {
    color: #555;
    font-size: 0.75rem;
}

/* ========================================
   MAIN HEADER (Referensi: Dinamika)
   ======================================== */
.main-header {
    background: var(--header-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* .main-header.scrolled {
    background: #;
} */

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

.logo-text h1 {
    color: #fff;
    font-size: 1.25rem;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 3px;
    background: #fff;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    top: 100%;
    left: 0;
}

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

.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    color: #333;
}

.dropdown-item:hover {
    /*background: var(--primary-blue);*/
    color: var(--primary-blue);
    /*padding-left: 25px;*/
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-daftar {
    background: var(--btn-orange);
    color: #072577;
    border: none;
    padding: 10px 30px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.btn-daftar:hover {
    background: #fff;
    color: var(--btn-red-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-search {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    transition: all var(--transition-fast);
    border-radius: 50%;
}

.btn-search:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    color: var(--primary-blue-light);
    transform: scale(1.1);
}

/* Mobile Navigation */
#mobileMenu .offcanvas-header {
    background: #1e3b8b;
    color: white;
}

#mobileMenu .offcanvas-title {
    color: white;
}

#mobileMenu .btn-close {
    filter: brightness(0) invert(1);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-list a {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.mobile-nav-list a:hover {
    background: var(--soft-blue);
    color: var(--primary-blue-dark);
}

.mobile-nav-list ul {
    list-style: none;
    padding-left: 20px;
    background: #f8f9fa;
}

.mobile-nav-list ul a {
    font-size: 0.9rem;
    font-weight: 400;
}

/* ========================================
   HERO SLIDESHOW
   ======================================== */
.hero-slideshow .carousel-inner {
    height: 600px;
}

.hero-slideshow .carousel-item {
    height: 600px;
}

.hero-slideshow .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.hero-slideshow .carousel-caption {
    bottom: 80px;
    text-align: left;
    left: 10%;
    right: 10%;
}

.hero-slideshow .carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.hero-slideshow .carousel-caption p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-slideshow .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
}

.hero-slideshow .carousel-control-prev-icon,
.hero-slideshow .carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.hero-slideshow .carousel-control-prev-icon:hover,
.hero-slideshow .carousel-control-next-icon:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   SECTION TITLE
   ======================================== */
.section-title h2 {
    font-size: 28px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
}

.title-line {
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    margin: 0 auto;
    border-radius: 2px;
}

.view-all {
    color: var(--primary-blue);
    font-weight: 600;
    transition: gap var(--transition-fast);
}

.view-all:hover {
    color: var(--primary-blue-dark);
    gap: 10px;
}

/* ========================================
   QUICK LINKS SECTION
   ======================================== */
.quick-links {
    background: var(--soft-blue);
    border-top: 1px solid var(--soft-blue-dark);
    border-bottom: 1px solid var(--soft-blue-dark);
}

.quick-link-item {
    display: block;
    padding: 20px 15px;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.quick-link-item:hover {
    background: rgba(74, 159, 212, 0.1);
    transform: translateY(-5px);
}

.quick-link-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    transition: all var(--transition-fast);
}

.quick-link-item:hover .quick-link-icon {
    color: var(--primary-blue-dark);
    transform: scale(1.1);
}

.quick-link-title {
    color: #333;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.quick-link-desc {
    color: #666;
    font-size: 14px !important;
    line-height: 1.4;
}

/* ========================================
   SAMBUTAN
   ======================================== */
.sambutan {
    padding: 80px 0;
    background: #fff;
}

.sambutan-content {
    line-height: 1.8;
    color: #333;
    font-size: 14px;
}

.sambutan-content p {
    text-align: justify;
}

.sambutan-signature h4 {
    color: #333;
    font-size: 1.2rem;
}

.sambutan-signature p {
    font-size: 0.95rem;
}

.sambutan-image-wrapper {
    position: relative;
}

.sambutan-image-circle {
    width: 400px;
    height: 400px;
    max-width: 100%;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: var(--shadow-medium);
}

.sambutan-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wakil-kepsek i {
    color: var(--soft-blue-dark);
}

/* ========================================
   VIDEO PROFIL SECTION
   ======================================== */
.video-profil {
    background: linear-gradient(135deg, var(--soft-blue) 0%, #fff 100%);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

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

/* ========================================
   WAKIL KEPALA SEKOLAH SECTION
   ======================================== */

.wakil-kepsek .section-title h2 {
    font-size: 32px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
}

.wakil-kepsek .section-title .title-line {
    width: 80px;
    height: 4px;
    background: var(--primary-blue);
    margin: 0 auto;
    border-radius: 2px;
}

/* ========================================
   KEDIRI BERBUDAYA - FULL WIDTH
   ======================================== */
.kediri-berbudaya {
    padding: 0;
    background: #fff;
}

.kediri-image-wrapper {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.kediri-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

/* Responsive untuk Kediri Berbudaya */
@media (max-width: 991px) {
    .kediri-image-wrapper {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .kediri-image-wrapper {
        height: 300px;
    }
}

@media (max-width: 575px) {
    .kediri-image-wrapper {
        height: 250px;
    }
}

/* ========================================
   FAKULTAS
   ======================================== */
.fakultas {
    padding: 0;
    background: #1a1a1a;
}

.fakultas-card {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.fakultas-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

.fakultas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.fakultas-overlay h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.fakultas-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 10px;
}

.fakultas-overlay h3 i {
    font-size: 1.5rem;
    vertical-align: middle;
}

.btn-detail {
    background: var(--btn-orange);
    color: #072577;
    border: none;
    padding: 10px 35px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.btn-detail:hover {
    background: var(--btn-orange-hover);
    color: #072577;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

/* ========================================
   PAGE HEADER (For Inner Pages)
   ======================================== */
.page-header {
    position: relative;
    height: 350px;
    background: url('https://smpnegeri1wates.sch.id/upload/upload-website/image/bg-wates.webp') no-repeat center center;
    background-size: cover;
    margin-bottom: 60px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.page-header .page-title-wrapper {
    position: absolute;
    bottom: -45px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

.page-header .page-title-wrapper .page-title-box {
    background: var(--primary-blue);
    padding: 25px 80px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 500px;
}

.page-header .page-title-wrapper .page-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   BERITA CARD
   ======================================== */
.berita-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
}

.berita-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.berita-image img {
    transition: transform var(--transition-medium);
}

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

.berita-date {
    top: 15px;
    right: 15px;
    background: var(--primary-blue);
    color: #fff;
    padding: 8px 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 70px;
}

.berita-date .day {
    font-size: 1.5rem;
    line-height: 1;
}

.berita-date .month {
    font-size: 0.75rem;
}

.berita-content h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 600;
    transition: gap var(--transition-fast);
}

.read-more:hover {
    color: var(--primary-blue-dark);
    gap: 10px;
}

/* Berita Category Badge */
.berita-category .badge {
    padding: 6px 12px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Berita Title & Excerpt (Listing Page) */
.berita-title {
    color: var(--primary-blue-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Filter Buttons */
.btn-filter {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-filter:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-filter.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-blue);
    border: 2px solid #e0e0e0;
    padding: 10px 18px;
    margin: 0 3px;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.pagination .page-link:hover {
    background: var(--soft-blue);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.pagination .page-item.active .page-link {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    background: #fff;
    border-color: #e0e0e0;
}

/* ========================================
   GALERI
   ======================================== */
.galeri {
    background: #f8f9fa;
}

.galeri-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.galeri-item img {
    transition: transform var(--transition-medium);
}

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

.galeri-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    transition: bottom var(--transition-fast);
}

.galeri-item:hover .galeri-overlay {
    bottom: 0;
}

.galeri-overlay h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.galeri-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

/* ========================================
   PRESTASI
   ======================================== */
.prestasi-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.prestasi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.prestasi-card:hover::before {
    transform: scaleX(1);
}

.prestasi-card:hover {
    transform: translateY(-10px);
    border-color: var(--soft-blue);
    box-shadow: var(--shadow-heavy);
}

.prestasi-badge {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.prestasi-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: var(--soft-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.prestasi-card:hover .prestasi-icon-wrapper {
    background: var(--primary-blue);
    transform: scale(1.1) rotate(5deg);
}

.prestasi-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.prestasi-card:hover .prestasi-icon {
    color: #fff;
}

.prestasi-title {
    color: #333;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.prestasi-level {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.prestasi-level i {
    color: var(--primary-blue);
    margin-right: 5px;
}

.prestasi-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.prestasi-date {
    color: #999;
    font-size: 0.8rem;
}

.prestasi-date i {
    margin-right: 5px;
}

/* ========================================
   EKSKUL CARD
   ======================================== */
.ekskul-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
}

.ekskul-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.ekskul-image {
    height: 180px;
    overflow: hidden;
}

.ekskul-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

.ekskul-content h3 i {
    color: var(--primary-blue);
}

/* ========================================
   TENAGA PENDIDIK - 5 KOLOM PENUH
   ======================================== */
/* 5 full columns layout for lg screens and up */
@media (min-width: 992px) {
    .waka-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }
    
    .waka-row .waka-col {
        flex: 0 0 20%;
        max-width: 20%;
        padding: 0 10px;
    }
}

/* Mobile responsive - 2 columns */
@media (max-width: 991px) {
    .waka-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .waka-row .waka-col {
        padding: 0;
    }
}

/* Small mobile - adjust padding */
@media (max-width: 575px) {
    .waka-row {
        gap: 12px;
    }
    
    .waka-row .waka-col {
        padding: 0 5px;
    }
}

.badge-jabatan {
    display: inline-block;
    background: #f39c12;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Kepala Sekolah Card */
.kepsek-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-fast);
    border: 1px solid #eee;
}

.kepsek-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.kepsek-card img {
    height: 280px;
    object-fit: cover;
}

.kepsek-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sambutan-kepsek {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    border-left: 3px solid #f39c12;
    padding-left: 12px;
}

/* Wakil Kepala Sekolah Card */
.waka-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
    border: 1px solid #eee;
    height: 100%;
}

.waka-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.waka-card img {
    height: 280px;
    object-fit: cover;
    width: 100%;
}

.waka-content {
    background: #fff;
}

.waka-content .jabatan {
    color: var(--primary-blue);
}

.waka-content .nip {
    color: #999;
}

/* Social Icons */
.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.social-icon:hover {
    background: var(--primary-blue-dark);
    color: #fff;
    transform: scale(1.1);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #1e3b8b;
    color: #fff;
}

.footer-logo img {
    max-width: 180px;
}

.footer-yayasan p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer-contact ul li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-blue-light);
    font-size: 1rem;
}

/* Social Links - Circular Blue */
.footer-social .social-link-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.footer-social .social-link-circle:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: scale(1.1);
}

/* Footer Links */
.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Footer Fakultas */
.footer-fakultas li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-fakultas i {
    color: var(--primary-blue-light);
    font-size: 0.9rem;
    margin-right: 8px;
}

/* Footer Bottom - Dark Bar */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-flag {
    display: inline-block;
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--transition-fast);
    opacity: 0.6;
    border: 2px solid transparent;
}

.language-flag:hover {
    opacity: 1;
    transform: scale(1.1);
}

.language-flag.active {
    opacity: 1;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.language-flag img {
    display: block;
    width: 24px;
    height: auto;
}

/* RTL Support for Arabic */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .main-nav {
    flex-direction: row-reverse;
}

body.rtl .dropdown-menu {
    text-align: right;
}

body.rtl .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

body.rtl .prestasi-level i,
body.rtl .prestasi-date i {
    margin-right: 0;
    margin-left: 5px;
}

body.rtl .footer-fakultas i {
    margin-right: 0;
    margin-left: 8px;
}

/* ========================================
   WHATSAPP FLOAT
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: var(--shadow-heavy);
    z-index: 9999;
    transition: all var(--transition-fast);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.4);
    color: #fff;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large devices (tablets and small laptops - 991px and down) */
@media (max-width: 991px) {
    /* Header */
    .logo-text {
        display: none !important;
    }
    
    .btn-daftar {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .btn-search {
        font-size: 1.1rem;
        padding: 5px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    /* Hero Slideshow */
    .hero-slideshow .carousel-inner,
    .hero-slideshow .carousel-item {
        height: 400px;
    }
    
    .hero-slideshow .carousel-caption {
        bottom: 60px;
        left: 5%;
        right: 5%;
    }
    
    .hero-slideshow .carousel-caption h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-slideshow .carousel-caption p {
        font-size: 1rem;
    }
    
    /* Sambutan */
    .sambutan {
        padding: 60px 0;
    }
    
    .sambutan-content {
        font-size: 0.95rem;
    }
    
    .sambutan-image-circle {
        width: 350px;
        height: 350px;
    }
    
    /* Fakultas */
    .fakultas-card {
        height: 350px;
    }
    
    /* Galeri */
    .galeri-item {
        min-height: 250px;
    }
}

/* Medium devices (landscape phones - 767px and down) */
@media (max-width: 767px) {
    /* Top Bar */
    .top-nav {
        justify-content: center;
        gap: 3px;
    }

    .top-nav a {
        font-size: 0.75rem;
        padding: 5px 8px;
    }

    .top-nav .divider {
        display: none;
    }

    /* Header */
    .logo-img {
        width: 50px;
        height: 50px;
    }

    .btn-daftar {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Footer Bottom */
    .footer-bottom {
        padding: 15px 0;
    }

    .language-selector {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .btn-search {
        font-size: 1rem;
    }
    
    /* Hero Slideshow */
    .hero-slideshow .carousel-inner,
    .hero-slideshow .carousel-item {
        height: 300px;
    }
    
    .hero-slideshow .carousel-caption {
        bottom: 40px;
        left: 5%;
        right: 5%;
    }
    
    .hero-slideshow .carousel-caption h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .hero-slideshow .carousel-caption p {
        font-size: 0.85rem;
    }
    
    .hero-slideshow .carousel-control-prev-icon,
    .hero-slideshow .carousel-control-next-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Section Title */
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .section-title {
        margin-bottom: 40px !important;
    }
    
    /* Sambutan */
    .sambutan {
        padding: 50px 0;
    }
    
    .sambutan-content {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .sambutan-image-circle {
        width: 280px;
        height: 280px;
    }
    
    .sambutan-signature h4 {
        font-size: 1.1rem;
    }
    
    /* Fakultas */
    .fakultas-card {
        height: 300px;
    }
    
    .fakultas-overlay h3 {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .btn-detail {
        padding: 8px 25px;
        font-size: 0.85rem;
    }
    
    /* Berita */
    .berita-date {
        padding: 6px 12px;
        min-width: 60px;
    }
    
    .berita-date .day {
        font-size: 1.2rem;
    }
    
    .berita-date .month {
        font-size: 0.7rem;
    }
    
    .berita-content h3 {
        font-size: 1.1rem;
    }
    
    /* Galeri */
    .galeri-item {
        min-height: 200px;
    }
    
    .galeri-overlay h4 {
        font-size: 0.9rem;
    }
    
    /* Prestasi */
    .prestasi-icon {
        font-size: 2.5rem;
    }
    
    .prestasi-card h3 {
        font-size: 0.95rem;
    }
    
    /* Ekskul */
    .ekskul-image {
        height: 160px;
    }
    
    .ekskul-content {
        padding: 20px !important;
    }
    
    .ekskul-content h3 {
        font-size: 1rem;
    }

    /* Tenaga Pendidik */
    .kepsek-card img {
        height: 250px;
    }

    .waka-card img {
        height: 250px;
    }

    .badge-jabatan {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-social .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-contact li {
        font-size: 0.9rem;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Small devices (portrait phones - 575px and down) */
@media (max-width: 575px) {
    /* Top Bar */
    .top-bar {
        display: none;
    }
    
    /* Header */
    .main-header {
        padding: 10px 0 !important;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .btn-daftar {
        display: none;
    }
    
    .header-right {
        gap: 5px;
    }
    
    /* Hero Slideshow */
    .hero-slideshow .carousel-inner,
    .hero-slideshow .carousel-item {
        height: 250px;
    }
    
    .hero-slideshow .carousel-caption {
        bottom: 30px;
        left: 5%;
        right: 5%;
        padding: 10px;
    }
    
    .hero-slideshow .carousel-caption h2 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .hero-slideshow .carousel-caption p {
        font-size: 0.75rem;
    }
    
    .hero-slideshow .carousel-indicators {
        bottom: 10px;
    }
    
    .hero-slideshow .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
    }
    
    /* Section Title */
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    /* Sambutan */
    .sambutan {
        padding: 40px 0;
    }
    
    .sambutan-content {
        font-size: 0.85rem;
    }
    
    .sambutan-image-circle {
        width: 220px;
        height: 220px;
    }
    
    .sambutan-signature {
        text-align: center !important;
        margin-top: 20px !important;
    }
    
    /* Fakultas */
    .fakultas {
        padding: 30px 0 !important;
    }
    
    .fakultas-card {
        height: 250px;
        margin-bottom: 15px;
    }
    
    .fakultas-overlay h3 {
        font-size: 1rem;
    }
    
    .btn-detail {
        padding: 6px 20px;
        font-size: 0.8rem;
    }
    
    /* Berita */
    .berita {
        padding: 40px 0 !important;
    }
    
    .berita-card {
        margin-bottom: 20px;
    }
    
    .berita-image {
        height: 180px;
    }
    
    .berita-content {
        padding: 20px !important;
    }
    
    .berita-content h3 {
        font-size: 1rem;
    }
    
    .berita-content p {
        font-size: 0.85rem;
    }
    
    /* Galeri */
    .galeri {
        padding: 40px 0 !important;
    }
    
    .galeri-item {
        min-height: 180px;
        margin-bottom: 15px;
    }
    
    /* Prestasi */
    .prestasi {
        padding: 40px 0 !important;
    }
    
    .prestasi-card {
        padding: 20px 15px !important;
        margin-bottom: 15px;
    }
    
    .prestasi-icon {
        font-size: 2rem;
    }
    
    .prestasi-card h3 {
        font-size: 0.9rem;
    }
    
    .prestasi-card p {
        font-size: 0.8rem;
    }
    
    /* Ekskul */
    .ekskul {
        padding: 40px 0 !important;
    }
    
    .ekskul-card {
        margin-bottom: 20px;
    }
    
    .ekskul-image {
        height: 150px;
    }
    
    .ekskul-content h3 {
        font-size: 0.95rem;
    }
    
    .ekskul-content p {
        font-size: 0.85rem;
    }
    
    /* Tenaga Pendidik */
    .tenaga-pendidik {
        padding: 40px 0 !important;
    }

    .kepsek-card {
        margin-bottom: 30px;
    }

    .kepsek-card img {
        height: 220px;
    }

    .kepsek-content {
        padding: 20px !important;
    }

    .kepsek-content h3 {
        font-size: 1rem;
    }

    .sambutan-kepsek {
        font-size: 0.8rem;
        padding-left: 10px;
    }

    .waka-card img {
        height: 220px;
    }

    .waka-content {
        padding: 15px !important;
    }

    .waka-content h4 {
        font-size: 0.9rem;
    }

    .waka-content .jabatan {
        font-size: 0.8rem;
    }

    .waka-content .nip {
        font-size: 0.75rem;
    }

    .badge-jabatan {
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding-top: 40px !important;
    }
    
    .footer h3,
    .footer h4 {
        font-size: 1.1rem;
    }
    
    .footer-about p {
        font-size: 0.9rem;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 0.85rem;
    }
    
    .footer-social .social-link {
        width: 32px;
        height: 32px;
    }
    
    .map-placeholder {
        height: 150px;
    }
}

/* Extra small devices - 400px and down */
@media (max-width: 400px) {
    .logo-img {
        width: 40px;
        height: 40px;
    }

    .hero-slideshow .carousel-inner,
    .hero-slideshow .carousel-item {
        height: 200px;
    }

    .hero-slideshow .carousel-caption h2 {
        font-size: 0.95rem;
    }

    .hero-slideshow .carousel-caption p {
        font-size: 0.7rem;
    }

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

    .sambutan-image-circle {
        width: 180px;
        height: 180px;
    }

    .fakultas-card {
        height: 200px;
    }

    .fakultas-overlay h3 {
        font-size: 0.85rem;
    }

    /* Tenaga Pendidik */
    .kepsek-card img {
        height: 180px;
    }

    .kepsek-content h3 {
        font-size: 0.9rem;
    }

    .sambutan-kepsek {
        font-size: 0.75rem;
    }

    .waka-card img {
        height: 180px;
    }

    .waka-content h4 {
        font-size: 0.85rem;
    }

    .badge-jabatan {
        font-size: 0.55rem;
        padding: 2px 6px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Utility Classes */
.object-fit-cover {
    object-fit: cover;
}

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

/* ========================================
   ACCESSIBILITY WIDGET STYLES
   ======================================== */
/* Sienna Accessibility Widget Customization */
.sienna-accessibility {
    z-index: 9998 !important;
    bottom: 80px !important; /* Adjusted from default 30px to 80px */
}

.asw-menu-btn {
    bottom: 60px !important;
}

/* Accessibility button styles */
.accessibility-toggle {
    background: #e74c3c !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4) !important;
}

.accessibility-toggle:hover {
    background: #c0392b !important;
    transform: scale(1.1) !important;
}

/* High contrast mode */
body.high-contrast {
    filter: contrast(1.2);
}

body.high-contrast * {
    border-color: #000 !important;
}

/* Large text mode */
body.large-text {
    font-size: 120%;
}

body.large-text p,
body.large-text span,
body.large-text div {
    font-size: 1.2em;
}

/* Readable font mode */
body.readable-font {
    font-family: Arial, sans-serif !important;
}

body.readable-font * {
    font-family: Arial, sans-serif !important;
}

/* Line height adjustment */
body.increased-line-height {
    line-height: 1.8 !important;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #e74c3c;
    color: #fff;
    padding: 8px 15px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

.ekstra-section {
  padding: 3rem 0;
  background : #1e3b8b;
}
.ekstra-header {
  text-align: center;
  margin-bottom: 2rem;
}
.ekstra-header h2 {
  font-size: 28px;
  color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
}
.ekstra-carousel-wrap {
  position: relative;
  overflow: hidden;
}
.ekstra-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.ekstra-slide {
  min-width: calc(100% / 3);
  padding: 0 10px;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  .ekstra-slide { min-width: calc(100% / 2); }
}
@media (max-width: 640px) {
  .ekstra-slide { min-width: 100%; }
}
.ekstra-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.ekstra-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ekstra-card:hover img {
  transform: scale(1.05);
}
.ekstra-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s;
}
.ekstra-overlay h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: 0.05em;
}
.ekstra-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 6px;
  padding: 5px 16px;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: background 0.2s, border-color 0.2s;
}
.ekstra-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
}
.ekstra-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
}
.ekstra-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ekstra-arrow:hover { background: rgba(255,255,255,0.15); }
.ekstra-dots {
  display: flex;
  gap: 6px;
}
.ekstra-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.ekstra-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}
