/* =================================================================
   1. General & Body Styles
================================================================= */
body {
    background-color: #f9fafb;
    font-family: "Open Sans", sans-serif;
    color: #4b5563;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #111827;
}

/* =================================================================
   2. Header & Navigation
================================================================= */
.navbar-container {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 50px;
    margin-top: -15px;
}

.navbar-nav.navbar-right {
    display: flex;
    align-items: center;
}

.navbar-default .navbar-nav > li > a {
    color: #374151;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-default .navbar-nav > li > a:hover {
    color: #3b82f6;
}

/* =================================================================
   3. User Menu & Login Button (Header)
================================================================= */
/* Style untuk Tombol Login jika belum login */
.navbar-right .btn-login {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: none !important;
    border-radius: 50px !important; /* Bentuk oval/pil */
}

.navbar-right .btn-login:hover {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    transform: translateY(-2px);
}

/* Style untuk Menu User jika sudah login */
.user-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.user-menu .dropdown-toggle:hover,
.user-menu .dropdown-toggle:focus {
    background-color: transparent !important;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    font-weight: 700;
    font-size: 14px;
    margin-right: 10px;
}

.user-name {
    font-weight: 600;
    color: #374151;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

/* =================================================================
   4. Hero Section (Bagian Atas)
================================================================= */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    padding: 80px 0;
    text-align: left;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    color: #1f2937;
}

.hero-title strong {
    font-weight: 700;
    color: #111827;
}

.hero-subtitle {
    font-size: 18px;
    color: #4b5563;
    margin: 20px 0 30px 0;
    max-width: 500px;
}

.hero-button {
    background-color: #3b82f6;
    color: white;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 999px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.hero-button:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.hero-image-container img {
    animation: floatAnimation 4s ease-in-out infinite;
}

/* =================================================================
   5. Sections (Statistik, Berita, Galeri, dll)
================================================================= */
.stats-section {
    background-color: #e0e7ff;
    padding: 40px 0;
}

.stat-box h3 {
    font-size: 36px;
    font-weight: 700;
    color: #3b82f6;
    margin-top: 0;
}

.stat-box p {
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
}

.gallery-img {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.news-card {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.news-card-body {
    padding: 30px;
}

.news-card h4 {
    font-weight: 700;
    min-height: 50px;
    color: #1f2937;
}

.news-date {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.news-card .btn-default {
    font-weight: 600;
    border-radius: 20px;
}

/* =================================================================
   6. Testimonial Slideshow
================================================================= */
#testimonialCarousel {
    margin: 30px auto 0;
    max-width: 800px;
}

#testimonialCarousel .item {
    transition-duration: 0.8s;
    transition-timing-function: ease-in-out;
}

#testimonialCarousel .item.active.left,
#testimonialCarousel .item.active.right {
    left: 0;
    opacity: 0;
    z-index: 2;
}

#testimonialCarousel .item.next,
#testimonialCarousel .item.prev {
    left: 0;
    opacity: 1;
    z-index: 1;
}

#testimonialCarousel .testimonial {
    padding: 20px;
    text-align: center;
}

#testimonialCarousel .testimonial-text {
    font-size: 22px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 25px;
}

#testimonialCarousel .testimonial-author {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
}

#testimonialCarousel .carousel-control.left,
#testimonialCarousel .carousel-control.right {
    background: none;
    color: #9ca3af;
    font-size: 30px;
    opacity: 0.7;
    text-shadow: none;
    transition: color 0.3s ease;
}

#testimonialCarousel .carousel-control.left:hover,
#testimonialCarousel .carousel-control.right:hover {
    color: #3b82f6;
}

#testimonialCarousel .carousel-indicators {
    bottom: -30px;
}

#testimonialCarousel .carousel-indicators li {
    background-color: #d1d5db;
    border: none;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

#testimonialCarousel .carousel-indicators .active {
    background-color: #3b82f6;
}

/* =================================================================
   7. Footer
================================================================= */
.main-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 50px 0;
    margin-top: 60px;
}

.main-footer h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}

.main-footer a {
    color: #60a5fa;
}

.main-footer .footer-logo {
    max-height: 40px;
    margin-bottom: 20px;
}

.main-footer .footer-socials a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.main-footer .footer-socials a:hover {
    color: #fff;
}

/* =================================================================
   8. Animations
================================================================= */
@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ================================================= */
/* == STYLE BARU UNTUK KARTU GALERI (DIJAMIN TAMPIL) == */
/* ================================================= */
.gallery-card {
    display: block;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: #333;
}
.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.gallery-card-image {
    height: 220px;
    width: 100%;
    background-color: #f5f5f5;
}
.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-card-content {
    padding: 20px;
}
.gallery-card-content h4 {
    margin-top: 0;
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gallery-card-content p {
    color: #888;
    font-size: 13px;
    margin-bottom: 0;
}

.section-padding {
    padding: 60px 0;
}

.margin-bottom-40 {
    margin-bottom: 40px;
}

.margin-top-30 {
    margin-top: 30px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #111827;
}

/* ================================================= */
/* == STYLE BARU UNTUK KARTU GALERI (DIJAMIN TAMPIL) == */
/* ================================================= */
.gallery-card {
    display: block;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none !important;
    /* Memastikan link tidak berwarna biru */
    color: #333;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.gallery-card-image {
    height: 220px;
    /* Menyamakan tinggi area gambar */
    width: 100%;
    background-color: #f5f5f5;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Kunci agar gambar seragam */
}

.gallery-card-content {
    padding: 20px;
}

.gallery-card-content h4 {
    margin-top: 0;
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-card-content p {
    color: #888;
    font-size: 13px;
    margin-bottom: 0;
}

/* ================================================= */
/* == STYLE BARU UNTUK KARTU BERITA (PENYERAGAMAN GAMBAR) == */
/* ================================================= */
.news-card-img {
    height: 220px; /* Menyamakan tinggi gambar dengan galeri */
    width: 100%;
    object-fit: cover; /* Kunci agar gambar seragam */
}

/* Menambahkan style untuk kartu berita agar konsisten dengan Homepage */
.news-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.news-card-body {
    padding: 20px;
}

/* Kunci utama: Menyeragamkan ukuran gambar berita */
.news-card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #111827;
}

/* ========================= */
/* Kuesioner UI Refinements  */
/* ========================= */

/* Badge konsisten untuk status kuesioner */
.badge-kuesioner {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
}
.badge-kuesioner.info { background-color: #4B77BE; }    /* aktif */
.badge-kuesioner.warn { background-color: #F3C200; }    /* sedang */
.badge-kuesioner.success { background-color: #26C281; } /* selesai */

/* Progress tipis */
.progress-thin {
  position: relative;
  height: 6px;
  background-color: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}
.progress-thin .bar {
  height: 100%;
  border-radius: 999px;
  background-color: #26C281;
  transition: width .3s ease;
}
.progress-thin .bar.warning {
  background-color: #F3C200;
}
.progress-thin .value {
  position: absolute;
  top: -18px;
  right: 0;
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
}

/* Chip ringkas untuk daftar link penilai aktif */
.link-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f7fafc;
  border: 1px solid #e7ecf1;
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.link-chip .label {
  font-weight: 600;
  color: #333;
}
.link-chip .meta {
  color: #6b7280;
  font-size: 12px;
}
.link-chip .chip-actions {
  margin-left: auto;
  display: inline-flex;
  gap: 6px;
}

/* Tombol ikon mungil untuk aksi pada chip */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background-color: #fff;
  color: #374151;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}
.btn-icon:hover {
  background-color: #f3f4f6;
}
.btn-icon.btn-danger {
  border-color: #ef4444;
  color: #ef4444;
}
.btn-icon.btn-danger:hover {
  background-color: #fee2e2;
}

/* Input copy ringkas */
.copy-input .input-group .form-control {
  background-color: #fff !important;
  border-right: 0;
}
.copy-input .input-group .btn {
  border-color: #d1d5db;
}

/* Header kartu penilaian */
.assessment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.assessment-header .title {
  font-weight: 600;
  color: #3f51b5;
  margin: 0;
  font-size: 16px;
}

/* Alert info ringan */
.alert-info-compact {
  background-color: #f0f6ff;
  border: 1px solid #d9edf7;
  color: #2c3e50;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}
