/* ==========================================================================
   1. DESIGN SYSTEM & VARIABLES (Modern Minimalist Palette)
   ========================================================================== */
:root {
    /* Color Palette - Modern Slate & Royal Indigo */
    --primary-color: #1e40af;       /* Indigo Royal (Elegan & Profesional) */
    --primary-hover: #1d4ed8;       /* Hover State */
    --primary-subtle: #eff6ff;     /* Background Biru Lembut */
    --secondary-color: #f59e0b;     /* Warm Amber/Gold */
    --dark-color: #0f172a;          /* Slate Dark (Ganti hitam pekat agar lebih mahal) */
    --text-muted: #64748b;          /* Warna teks sekunder halus */
    --light-bg: #f8fafc;            /* Background Slate Terang */
    --border-color: #e2e8f0;        /* Border tipis halus */
    --white: #ffffff;

    /* Shadows (Tailwind Elevation Standard) */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 35px -10px rgba(30, 64, 175, 0.15);

    /* Rounded Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

/* Base Setup */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

section[id], footer[id] {
    scroll-margin-top: 100px;
}

/* ==========================================================================
   2. TOPBAR & NAVBAR MODERN
   ========================================================================== */
.top-bar {
    background-color: var(--dark-color);
    color: #94a3b8;
    font-size: 0.825rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Efek Kaca Transparan / Glassmorphism */
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 42px;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-color);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--primary-subtle);
}

/* ==========================================================================
   3. RUNNING TEXT (PENGUMUMAN SLEEK)
   ========================================================================== */
/* Mengganti kuning terang dengan latar clean & aksen gradient */
.running-text-container {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee-badge {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: #fff;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 0 20px 20px 0;
    z-index: 2;
}

/* ==========================================================================
   4. HERO SLIDER
   ========================================================================== */
.hero-slider .carousel-item {
    height: 540px;
    min-height: 380px;
    background: no-repeat center center;
    background-size: cover;
    position: relative;
}

/* Gradient Overlay halus dari atas ke bawah */
.hero-slider .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.3) 0%,
        rgba(15, 23, 42, 0.75) 100%
    );
}

.hero-slider .carousel-caption {
    bottom: 25%;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-slider .carousel-caption h1 {
    font-size: 2.25rem !important; /* Diperkecil dari 3.5rem ke 2.25rem (~36px) */
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin-bottom: 0.75rem;
}

/* Indicator slider bulat modern */
.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-slider .carousel-indicators .active {
    width: 28px;
    border-radius: 10px;
    background-color: var(--secondary-color);
}

/* ==========================================================================
   5. SECTION TITLES & HEADINGS
   ========================================================================== */
.section-title {
    position: relative;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

/* Garis aksen minimalis gradient */
.section-title::after {
    content: '';
    display: block;
    width: 45px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin-top: 10px;
    border-radius: 4px;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   6. JURUSAN CARD (INTERAKTIF & SLEEK)
   ========================================================================== */
.card-jurusan {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.card-jurusan:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 64, 175, 0.2);
}

.icon-jurusan {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-subtle), #dbeafe);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.card-jurusan:hover .icon-jurusan {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(-3deg);
}

/* ==========================================================================
   7. BERITA THUMBNAILS (PAGINATION / LIST)
   ========================================================================== */
.news-thumb-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.25s ease;
    border-bottom: 1px solid var(--border-color);
}

.news-thumb-item:hover {
    background-color: var(--primary-subtle);
    transform: translateX(4px);
    border-bottom-color: transparent;
}

.news-thumb-item:hover h6 {
    color: var(--primary-color) !important;
}

.news-thumb-img {
    width: 85px;
    height: 65px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* Helper pembatas teks 2 baris */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   8. GALLERY ITEM
   ========================================================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ==========================================================================
   9. FOOTER DEEP SLATE
   ========================================================================== */
footer {
    background-color: var(--dark-color);
    color: #94a3b8;
    font-size: 0.9rem;
}

footer h5 {
    color: #f8fafc;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

footer a:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.footer-bottom {
    background-color: #020617;
    border-top: 1px solid #1e293b;
    color: #64748b;
}

/* ==========================================================================
   10. BUTTONS & UTILITIES
   ========================================================================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.4rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: #fff;
}
/* ==========================================================================
   GALLERY SECTION (FIXED ANIMATION & HOVER)
   ========================================================================== */
.gallery-card {
    background-color: var(--light-bg);
    cursor: pointer;
    position: relative;
}

/* Gambar Utama */
.gallery-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

/* Overlay Hitam Halus */
.gallery-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.25) 60%, transparent 100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 2;
}

/* Judul Teks Terangkat */
.gallery-content {
    transform: translateY(20px);
    transition: transform 0.35s ease;
}

/* Lingkaran Ikon Preview */
.icon-circle {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    transform: scale(0.5);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- STATE SAAT HOVER --- */
.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    visibility: visible;
}

.gallery-card:hover .gallery-content {
    transform: translateY(0);
}

.gallery-card:hover .icon-circle {
    transform: scale(1);
}

.border-dashed {
    border: 2px dashed var(--border-color) !important;
}