/* UNIRU Website Custom Styles - FIXED VERSION */
:root {
    --primary-color: #10623F; /* Hijau tua - Primary */
    --secondary-color: #F08519; /* Orange - Secondary/Highlight */
    --accent-color: #FFF9B1; /* Cream - Accent/Light */
    --dark-color: #1a1a1a;
    --light-color: #FFFDF0; /* Variasi cream yang lebih netral */
    --muted-color: #6c757d;
    --success-color: #10623F; /* Match primary untuk success */
    --warning-color: #F08519; /* Orange untuk warning */
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --orange-color: #F08519; /* Khusus orange kalau butuh */
    
    --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(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    
    --transition: all 0.3s ease;
}

/* Dark Mode Variables (aktifkan dengan class .dark-mode di body) */
body.dark-mode {
    --light-color: #2c2c2c;
    --dark-color: #f8f9fa;
    --muted-color: #adb5bd;
    --accent-color: #ffd700; /* Cream jadi gold di dark mode */
}

body.dark-mode .card,
body.dark-mode .testimonial-card {
    background: var(--light-color);
    color: var(--dark-color);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    padding-top: 80px; /* Kompensasi untuk fixed navbar */
}

/* 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;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.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: white;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 249, 177, 0.9);
    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 - AKAN DISEMBUNYIKAN SAAT SCROLL */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    font-size: 0.875rem;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: transform 0.3s ease-in-out;
    height: 40px; /* Set tinggi tetap */
}

/* Saat scroll, top bar naik ke atas (tersembunyi) */
.top-bar.scrolled {
    transform: translateY(-100%);
}

.social-links a {
    transition: var(--transition);
    color: white;
}

.social-links a:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* ========== NAVBAR GLOBAL ========== */
.navbar {
  padding: 0.75rem 0;
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(10px);
  background: var(--primary-color) !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: white;
}

.brand-subtitle {
  font-size: 0.875rem;
  color: var(--accent-color);
}

/* Default nav links - putih */
.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.35rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--border-radius);
  color: white !important;
  transition: all 0.3s ease-in-out;
}

/* Active link */
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hover */
.navbar-nav .nav-link:hover {
  background-color: rgba(240, 133, 25, 0.2);
  color: white !important;
}

/* Dropdown */
.dropdown-menu {
  border: none;
  box-shadow: var(--box-shadow-lg);
  border-radius: var(--border-radius);
  padding: 0.5rem 0;
  background-color: white;
  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: white;
}

.navbar .btn {
  font-weight: 600;
  margin-left: 1rem;
}

/* ========== DESKTOP NAVBAR (>=992px) ========== */
@media (min-width: 992px) {
  .navbar {
    position: fixed !important;
    top: 40px; /* default di bawah top-bar */
  }

  .navbar.scrolled {
    top: 0 !important; /* naik ganti top-bar */
    background: var(--primary-color) !important;
    box-shadow: var(--box-shadow);
  }

  .navbar.scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    z-index: -1;
  }
}

/* ========== MOBILE NAVBAR (<992px) ========== */
@media (max-width: 991.98px) {
  body {
    padding-top: 70px; /* ruang supaya konten tidak ketutup navbar */
  }

  .navbar {
    position: fixed !important;
    top: 0 !important; /* selalu di atas */
    background: var(--primary-color) !important;
  }

  .navbar.scrolled {
    top: 0 !important; /* biar gak geser */
  }

  .navbar-collapse {
    background: var(--primary-color) !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: white !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.2);
    color: var(--accent-color) !important;
    transform: translateX(5px);
  }

  .navbar-nav .nav-link.active {
    background-color: var(--secondary-color);
    color: white !important;
  }

  .navbar-toggler {
    border: 1px solid white !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;
  }
}

@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 ========== */

/* Default: sticky utk desktop */
.navigation-tabs {
  position: sticky;
  top: 80px; /* tinggi navbar default */
  z-index: 1010;
}

/* Saat scroll di desktop */
@media (min-width: 992px) {
  body.scrolled .navigation-tabs {
    top: 60px; /* tinggi navbar setelah scroll */
  }
}

/* Tablet & mobile: non-sticky */
@media (max-width: 991.98px) {
  .navigation-tabs {
    position: relative !important;
    top: auto !important;
  }
  body.scrolled .navigation-tabs {
    top: auto !important;
  }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(16, 98, 63, 0.9), rgba(240, 133, 25, 0.8)),
                url('../img/hero-bg.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: -80px; /* Kompensasi padding body agar hero full screen */
    padding-top: 80px; /* Tapi tetap ada space untuk navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
    color: white !important;
}

.site-name {
    color: var(--secondary-color) !important;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
    color: white !important;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Biar tombol rata tengah */
    gap: 0.75rem;
}

.hero-buttons .btn {
    min-width: 200px;  /* biar seragam lebarnya */
    text-align: center;
}


/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    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: white;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    background: white;
}

.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);
}

/* Fakultas Cards */
.fakultas-card {
    background: linear-gradient(135deg, white, var(--accent-color));
    border-left: 4px solid var(--primary-color);
}

.fakultas-card:hover {
    border-left-color: var(--secondary-color);
}

.fakultas-card .card-title {
    color: var(--dark-color) !important;
}

.fakultas-card .card-text {
    color: var(--dark-color) !important;
}

/* Override untuk homepage conflicts */
/*#fakultas .section-title {*/
/*    color: black !important;*/
/*}*/

/*#fakultas .section-subtitle {*/
/*    color: rgba(255, 255, 255, 0.8) !important;*/
/*}*/

.fakultas-card .card-title,
.fakultas-card .card-text {
    color: var(--dark-color) !important;
}

.news-card {
    background: white !important;
}

.news-card .news-title,
.news-card .news-title a {
    color: black !important;
}

#galeri .section-title {
    color: var(--primary-color) !important;
}


/* Program Studi Cards */
.prodi-card {
    border-top: 3px solid var(--accent-color);
    background: white;
}

.prodi-card .card-body {
    padding: 1.5rem;
}

.prodi-card .card-title {
    color: var(--dark-color) !important;
}

.prodi-card .card-text {
    color: var(--dark-color) !important;
}

.akreditasi-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.modal-title.text-dark {
    color: var(--dark-color) !important;
}

/* News Cards */
.news-card {
    height: 100%;
    border-radius: var(--border-radius);
    background: white;
}

.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 {
    color: secondary !important;
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.py-4-5 {
  padding-top: 2.5rem !important;  /* tengah-tengah antara py-4 (1.5rem) & py-5 (3rem) */
  padding-bottom: 0.5rem !important;
}


/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 98, 63, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
}

.modal .modal-title {
    color: var(--dark-color) !important;
}

/* Gallery Modal Fixes */
.modal {
    z-index: 9999 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}

/* Gallery Item Hover Effect */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    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);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Modal Content Styling */
#galleryModal .modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#galleryModal .modal-body img {
    border-radius: 4px;
}

/* Ensure modal is always on top */
.modal.show {
    z-index: 9999 !important;
}

.modal-backdrop.show {
    z-index: 9998 !important;
}

/* Fix for mobile gallery */
@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 Section */
.testimonial-card {
    background: white;
    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;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white !important;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: white !important;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
    color: white;
}

footer .hover-light:hover {
    color: var(--secondary-color) !important;
}

.tagline-footer {
    color: white !important;
}

.quick-link {
    color: white !important;
}

.quick-link:hover {
    color: var(--accent-color) !important;
}

/* Back to Top Button */
.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: white;
}

.btn-floating.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-floating:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    color: white;
}

/* 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(16, 98, 63, 0.1);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    transition: var(--transition);
    background: white;
    color: var(--dark-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(16, 98, 63, 0.25);
    background: white;
    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); }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.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; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-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(--primary-color) !important;
}
.section-subtitle { 
    font-size: 1.2rem; 
    color: var(--muted-color) !important; 
    text-align: center; 
    margin-bottom: 2rem; 
}

/* Accessibility Improvements */
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 Styles */
@media print {
    .navbar,
    footer,
    .btn-floating,
    .top-bar,
    .loading-spinner {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        background: white !important;
        color: black !important;
        padding-top: 0 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        background: white !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .hero-section {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }
}

/* Responsive Media Queries */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
        color: white !important;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        color: white !important;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 0.5rem auto;
        width: 100%;
        max-width: 250px;
    }
    
    .stat-number {
        font-size: 2rem;
        color: white !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: white !important;
    }
    
    .btn-floating {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (min-width: 577px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.25rem !important;
        color: white !important;
    }
    
    .stats-section {
        padding: 3rem 0;
    }
    
        .gallery-item img {
        height: 200px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
        padding: 0.5rem 0.75rem !important;
        color: white !important;
    }
    
    .hero-title {
        font-size: 2.75rem !important;
        color: white !important;
    }
    
    .card-img-top {
        height: 180px;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
        color: white !important;
    }
    
    .hero-buttons .btn {
        margin: 0 0.5rem;
    }
}

/* Dark Mode Responsive (opsional, kalau lo implement toggle) */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) {
        --light-color: #2c2c2c;
        --dark-color: #f8f9fa;
        --muted-color: #adb5bd;
        --accent-color: #ffd700;
    }
    
    body:not(.light-mode) .navbar.scrolled {
        background: rgba(44, 44, 44, 0.98) !important;
        color: var(--dark-color);
    }
    
    body:not(.light-mode) .card,
    body:not(.light-mode) .testimonial-card {
        background: var(--light-color);
        color: var(--dark-color);
        border: 1px solid #444;
    }
    
    body:not(.light-mode) .dropdown-menu {
        background-color: var(--light-color);
        color: var(--dark-color);
    }
}

/* Smooth scroll offset untuk fixed navbar */
html {
    scroll-padding-top: 80px; /* Offset untuk smooth scroll ke section */
}

/* Jika ada section dengan id, tambahkan offset */
section[id] {
    scroll-margin-top: 80px;
}

/* Fix untuk dropdown yang mungkin terpotong karena fixed navbar */
.dropdown-menu {
    z-index: 1025;
}

/* Pastikan modal tetap di atas navbar */
.modal {
    z-index: 1050;
}

/* Loading spinner harus di atas semua */
.loading-spinner {
    z-index: 9999;
}

/* Jika ada anchor links, pastikan tidak tertutup navbar */
:target {
    scroll-margin-top: 80px;
}

/* Fix untuk konten yang mungkin tertutup navbar saat page load */
.content-section {
    position: relative;
}

/* JavaScript akan menambahkan class ini saat scroll */
body.scrolled .top-bar {
    transform: translateY(-100%);
}

body.scrolled .navbar {
    top: 0 !important;
}
