/* =========================================================
   STID Sirnarasa Website Custom Styles (Theme Ungu)
   Rule: semua elemen dengan background primary/secondary = teks putih
   Mode: FORCE LIGHT MODE (abaikan prefers-color-scheme)
   ========================================================= */

/* Root Variables (LIGHT DEFAULT) */
:root {
    --primary-color: #271a45;
    --secondary-color: #8C5CF7;
    --accent-color: #EEEAF7;
    --dark-color: #1a1625;
    --light-color: #F8F5FF;
    --muted-color: #7C738F;

    --success-color: #2E9C6A;
    --warning-color: #F2B365;
    --danger-color: #E45B6C;
    --info-color: #4D9BD9;
    --orange-color: #F2B365;

    --font-family-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-family-heading: 'Poppins', system-ui, -apple-system, sans-serif;

    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(10, 5, 25, 0.12);
    --box-shadow-lg: 0 0.5rem 1rem rgba(10, 5, 25, 0.25);

    --transition: all 0.3s ease;
}

/* NONAKTIFKAN DARK MODE MANUAL / OTOMATIS */
body.dark-mode,
body.light-mode {
    /* dikosongkan supaya tidak override var root */
}

/* =========================
   BASE (FORCE LIGHT MODE)
   ========================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    padding-top: 80px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Links */
a {
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

/* Primary button: teks putih di atas gradien primary */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* Outline primary */
.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    inset: 0;
    background: rgba(238, 234, 247, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    font-size: 0.875rem;
    color: #ffffff;
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1030;
    transition: transform 0.3s ease-in-out;
    height: 40px;
}

/* Top Bar Enhancements */
.top-bar {
    font-size: 0.85rem;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.top-bar.scrolled {
    transform: translateY(-100%);
}

.top-bar .left-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar .left-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.top-bar .center-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar .center-links a {
    position: relative;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.88rem;
    white-space: nowrap;
    color: #ffffff;
}

.top-bar .center-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.top-bar .center-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.top-bar .center-links a:hover::after {
    width: 80%;
}

.top-bar .social-links {
    display: flex;
    gap: 8px;
}

.top-bar .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #ffffff;
}

.top-bar .social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    background: rgba(39, 26, 69, 0.96) !important;
    left: 0;
    right: 0;
    z-index: 1020;
    width: 100%;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand div {
    line-height: 1.1;
}

.brand-title {
    font-weight: bold;
    color: #ffffff;
    font-size: 1rem;
    padding-top: 5px;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: #C9B8FF;
}

/* Nav links: default putih */
.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.35rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--border-radius);
    color: #ffffff !important;
    transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
    background-color: rgba(238, 234, 247, 0.18);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(140, 92, 247, 0.18);
    color: #ffffff !important;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    background-color: #ffffff;
    z-index: 1025;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: var(--transition);
    color: var(--dark-color);
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.navbar .btn {
    font-weight: 600;
    margin-left: 1rem;
}

/* Desktop Navbar */
@media (min-width: 992px) {
    .navbar {
        position: fixed !important;
        top: 40px;
    }

    .navbar.scrolled {
        top: 0 !important;
        background: rgba(39, 26, 69, 0.98) !important;
        box-shadow: var(--box-shadow);
    }

    .navbar.scrolled::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--primary-color);
        z-index: -1;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        padding-inline: 1rem;
        color: #ffffff !important;
    }
}

/* Mobile Navbar */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        position: fixed !important;
        top: 0 !important;
        background: rgba(39, 26, 69, 0.98) !important;
    }

    .navbar.scrolled {
        top: 0 !important;
    }

    .navbar-collapse {
        background: rgba(39, 26, 69, 0.98) !important;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: var(--box-shadow-lg);
        z-index: 1000;
        position: relative !important;
    }

    .navbar-nav {
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-link {
        color: #ffffff !important;
        font-size: 1rem;
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: var(--border-radius);
        display: block;
        text-align: left;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.18);
        color: var(--accent-color) !important;
        transform: translateX(5px);
    }

    .navbar-nav .nav-link.active {
        background-color: var(--secondary-color);
        color: #ffffff !important;
    }

    .navbar-toggler {
        border: 1px solid #ffffff !important;
        padding: 0.5rem;
        border-radius: var(--border-radius);
        z-index: 1001 !important;
    }

    .navbar-toggler-icon {
        background-image:
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

/* Label mode (tetap light, tapi label boleh dipakai) */
#theme-label {
    font-size: .8rem;
    color: inherit;
}

/* Navbar height kecil tetapi seimbang */
#mainNavbar.navbar {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Brand (logo + teks) */
#mainNavbar .navbar-brand img {
    height: 38px !important;
    transition: transform 0.3s ease;
}

#mainNavbar .navbar-brand:hover img {
    transform: scale(1.05);
}

#mainNavbar .navbar-brand .brand-title {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    font-weight: 600;
}

#mainNavbar .navbar-brand .brand-subtitle {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    color: #718096;
}

/* Nav-link dengan hover effect */
#mainNavbar .nav-link {
    padding: 8px 12px !important;
    font-size: 0.92rem !important;
    font-weight: 500;
    transition: all 0.25s ease;
    border-radius: 6px;
    position: relative;
    color: #ffffff !important;
}

#mainNavbar .nav-link::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: #667eea;
    transition: transform 0.3s ease;
}

#mainNavbar .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

#mainNavbar .nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

#mainNavbar .nav-link.active {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.12);
}

/* Dropdown toggle */
#mainNavbar .nav-item.dropdown .nav-link {
    padding: 8px 12px !important;
}

#mainNavbar .dropdown-toggle::after {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

#mainNavbar .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown menu */
#mainNavbar .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 8px;
    margin-top: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mainNavbar .dropdown-item {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

#mainNavbar .dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(4px);
}

/* Tombol tema (hanya tampilan, tetap mode terang) */
#mainNavbar #theme-toggle {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: #4a5568;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#mainNavbar #theme-toggle:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#mainNavbar #theme-toggle:active {
    transform: translateY(0);
}

#theme-label {
    font-size: 0.8rem !important;
    font-weight: 500;
}

#icon-moon, #icon-sun {
    font-size: 1rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Pastikan semua item sejajar secara vertikal */
#mainNavbar .navbar-nav > li,
#mainNavbar .navbar-nav .nav-link,
#mainNavbar #theme-toggle,
#mainNavbar .btn-outline-white {
    display: flex;
    align-items: center;
}

/* Spacing antar menu */
#mainNavbar .navbar-nav .nav-item {
    margin: 0 2px !important;
}

#mainNavbar #theme-toggle {
    margin-left: 12px !important;
}

/* Responsive tambahan */
@media (max-width: 991px) {
    .top-bar .left-info,
    .top-bar .center-links {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    #mainNavbar.navbar {
        padding: 10px 0 !important;
    }
    
    #mainNavbar .navbar-brand img {
        height: 36px !important;
    }
    
    #mainNavbar .nav-link::before {
        display: none;
    }
    
    #mainNavbar #theme-toggle {
        margin-top: 12px;
        margin-left: 0 !important;
    }
}

@media (max-width: 576px) {
    .navbar-collapse {
        padding: 0.75rem;
    }
    .navbar-nav .nav-link {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.95rem;
    }
}

/* Navigation Tabs */
.navigation-tabs {
    position: sticky;
    top: 80px;
    z-index: 1010;
}

@media (min-width: 992px) {
    body.scrolled .navigation-tabs {
        top: 60px;
    }
}

@media (max-width: 991.98px) {
    .navigation-tabs,
    body.scrolled .navigation-tabs {
        position: relative !important;
        top: auto !important;
    }
}

/* Hero Section: bg primary gradient => teks putih */
.hero-section {
    background: linear-gradient(
        135deg,
        rgba(39, 26, 69, 0.95) 0%,
        rgba(140, 92, 247, 0.88) 100%
    );
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 90px;
    padding-bottom: 40px;
    margin-top: -70px;
}

/* Soft lighting */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 20% 25%,
        rgba(255, 255, 255, 0.15),
        transparent 70%
    );
    z-index: 1;
}

/* Container on top */
.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* Hero text: putih semua */
.hero-title {
    font-size: 2.8rem !important;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    color: #ffffff !important;
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 1.8rem;
    animation: fadeInUp 1s ease 0.2s both;
    color: #E7DDFF !important;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 520px;
    opacity: 0.9;
    margin-bottom: 2.2rem;
    animation: fadeInUp 1s ease 0.4s both;
    color: #F5F2FF !important;
}

/* Highlighted site name */
.site-name {
    color: var(--secondary-color) !important;
}

/* Hero buttons */
.hero-buttons {
    animation: fadeInUp 1s ease 0.6s both;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
}

.hero-buttons .btn {
    min-width: 190px;
    padding: 12px 20px;
    font-size: 1.05rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Buttons outline-light: tetap putih */
.hero-buttons .btn-outline-light {
    color: #ffffff;
    border-color: #ffffff;
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Hero image */
.hero-image {
    max-height: 680px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.45));
    transform: translateY(10px);
    animation: heroFloat 6s ease-in-out infinite;
}

@media (max-width: 1200px) {
    .hero-image { max-height: 540px; }
}

@media (max-width: 991px) {
    .hero-image {
        max-height: 360px;
        margin-top: 10px;
    }
}

/* Statistik: bg gradient primary => teks putih */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease;
    color: #ffffff;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #ffffff;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.card-img-top {
    transition: var(--transition);
    height: 200px;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Program Studi Cards */
.prodi-card {
    border-top: 3px solid var(--accent-color);
    background: #ffffff;
}

.prodi-card .card-body {
    padding: 1.5rem;
}

.prodi-card .card-title,
.prodi-card .card-text {
    color: var(--dark-color) !important;
}

.akreditasi-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Konten halaman prodi (deskripsi, prospek kerja, dst) */
.prodi-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-color);
}

.prodi-content p {
    margin-bottom: 0.9rem;
}

.prodi-content ul,
.prodi-content ol {
    padding-left: 1.4rem;
    margin-bottom: 0.8rem;
}

.prodi-content li {
    margin-bottom: 0.25rem;
}

.prodi-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.prodi-content a:hover {
    color: var(--secondary-color);
}

/* Modal */
.modal-title.text-dark,
.modal .modal-title {
    color: var(--dark-color) !important;
}

/* News Cards */
.news-card {
    height: 100%;
    border-radius: var(--border-radius);
    background: #ffffff !important;
}

.news-meta {
    font-size: 0.875rem;
    color: #575656 !important;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--dark-color) !important;
}

.news-title a {
    color: var(--dark-color) !important;
    text-decoration: none;
}

.news-title a:hover {
    color: var(--secondary-color) !important;
}

.news-excerpt {
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Custom padding */
.py-4-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay: background gelap, teks putih */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Gallery modal */
#galleryModal .modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#galleryModal .modal-body img {
    border-radius: 4px;
}

.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

/* Gallery mobile fix */
@media (max-width: 768px) {
    #galleryModal .modal-dialog {
        margin: 10px;
    }

    #galleryModal .modal-body img {
        max-height: 70vh;
    }

    .gallery-item {
        margin-bottom: 15px;
    }

    .gallery-item img {
        height: 150px;
    }
}

/* Testimonial */
.testimonial-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--muted-color) !important;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-color) !important;
}

.testimonial-role {
    color: var(--muted-color) !important;
    font-size: 0.9rem;
}

/* =========================================================
   SECTION: ARTIKEL & OPINI (Homepage)
   ========================================================= */

/* Wrapper section */
.section-artikel {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    background-color: #faf8ff;
}

/* Judul section */
.section-artikel .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-artikel .section-subtitle {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin-bottom: 2.5rem;
}

/* Card artikel */
.article-card {
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(39, 26, 69, 0.08);
    transition: all 0.35s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(39, 26, 69, 0.18);
}

/* Gambar artikel */
.article-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-img-top {
    transform: scale(1.08);
}

/* Body */
.article-card .card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Badge tipe artikel */
.article-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(46, 156, 106, 0.15);
    color: var(--success-color);
    margin-bottom: 0.75rem;
}

/* Judul artikel */
.article-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.article-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--secondary-color);
}

/* Excerpt */
.article-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Meta info */
.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted-color);
    margin-top: auto;
}

.article-meta i {
    margin-right: 4px;
}

/* Tombol baca */
.article-read {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-read:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

/* Tombol lihat semua */
.btn-article-all {
    margin-top: 2.5rem;
    padding: 0.65rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(39, 26, 69, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .article-card .card-img-top {
        height: 180px;
    }

    .article-title {
        font-size: 1.05rem;
    }

    .article-excerpt {
        font-size: 0.88rem;
    }
}

/* CTA: bg primary gradient, teks putih */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff !important;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: #ffffff !important;
}

/* Footer: bg gelap, teks putih */
footer {
    background: #120D1D !important;
    color: #ffffff;
}

footer .hover-light:hover {
    color: var(--secondary-color) !important;
}

.tagline-footer,
.quick-link {
    color: #ffffff !important;
}

.quick-link:hover {
    color: var(--accent-color) !important;
}

/* Back to Top Button: bg primary, teks putih */
.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    box-shadow: var(--box-shadow-lg);
    background: var(--primary-color);
    color: #ffffff;
}

.btn-floating.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-floating:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    color: #ffffff;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--muted-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
}

.pagination .page-link:hover {
    color: var(--secondary-color);
    background-color: rgba(39, 26, 69, 0.08);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* Form */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    transition: var(--transition);
    background: #ffffff;
    color: var(--dark-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(39, 26, 69, 0.25);
    background: #ffffff;
    color: var(--dark-color);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes heroFloat {
    0%   { transform: translateY(10px); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(10px); }
}

.animate-fade-in { animation: fadeInUp 0.8s ease; }
.animate-pulse   { animation: pulse 2s infinite; }

/* Utility classes: bg-primary/bg-secondary selalu teks putih */
.text-primary   { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent    { color: var(--accent-color) !important; }

.bg-primary {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
    color: var(--dark-color) !important;
}

.border-primary   { border-color: var(--primary-color) !important; }
.border-secondary { border-color: var(--secondary-color) !important; }

.section-padding { padding: 4rem 0; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark-color) !important;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--muted-color) !important;
    text-align: center;
    margin-bottom: 2rem;
}

/* Aksesibilitas */
a:focus,
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.visually-hidden-focusable:focus {
    position: static !important;
    clip: auto !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    background: var(--accent-color);
    padding: 0.25rem;
    border-radius: var(--border-radius);
    color: var(--dark-color);
}

/* Print */
@media print {
    .navbar,
    footer,
    .btn-floating,
    .top-bar,
    .loading-spinner {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        background: #ffffff !important;
        color: #000000 !important;
        padding-top: 0 !important;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000000 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        background: #ffffff !important;
    }

    a {
        color: #000000 !important;
        text-decoration: underline !important;
    }

    .hero-section {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }
}

/* Responsive hero & stats text */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
        color: #ffffff !important;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        color: #ffffff !important;
    }

    .hero-buttons .btn {
        display: block;
        margin: 0.5rem auto;
        width: 100%;
        max-width: 250px;
    }

    .stat-number {
        font-size: 2rem;
        color: #ffffff !important;
    }

    .section-title {
        font-size: 2rem;
        color: var(--primary-color) !important;
    }

    .navbar-brand img {
        height: 30px;
    }

    .navbar .btn {
        margin: 0.5rem 0;
        width: 100%;
    }

    .cta-section h2 {
        font-size: 2rem;
        color: #ffffff !important;
    }

    .btn-floating {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .prodi-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (min-width: 577px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.25rem !important;
        color: #ffffff !important;
    }

    .stats-section {
        padding: 3rem 0;
    }

    .gallery-item img {
        height: 200px;
    }
}

.brand-title {
  font-weight: bold !important;
  color: white;
}

.brand-subtitle {
  font-size: 1rem !important;
  color: var(--accent-color);
}


@media (min-width: 768px) and (max-width: 991px) {
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
        padding: 0.5rem 0.75rem !important;
        color: #ffffff !important;
    }

    .hero-title {
        font-size: 2.75rem !important;
        color: #ffffff !important;
    }

    .card-img-top {
        height: 180px;
    }
}

/* Offset section target */
section[id],
:target {
    scroll-margin-top: 80px;
}

/* Scroll helper */
.content-section {
    position: relative;
}

body.scrolled .top-bar {
    transform: translateY(-100%);
}

body.scrolled .navbar {
    top: 0 !important;
}
