/* ==========================================================================
   HOMEPAGE COMPONENTS (HERO, QUICK LINKS, STATS, CARDS)
   ========================================================================== */

/* ==========================================================================
   1. Hero Banner (Symmetrical & Fixed Clip Mask)
   ========================================================================== */

.hero-section {
  background-color: #1a0836;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 4.5rem; /* Menyiapkan area aman untuk indikator di bawah */
}

.min-vh-hero {
  min-height: 520px;
}

.hero-image-col, 
.hero-img-mask {
  height: 100%;
  min-height: 520px;
}

.hero-img-mask img {
  min-height: 520px;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

/* Memaksa SERAGAM pemotong miring untuk SEMUA slide gambar */
@media (min-width: 992px) {
  .hero-img-mask {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%) !important;
    -webkit-clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%) !important;
  }
}

/* Posisi Indikator Titik 3 - Absolute Center & Terkunci Simetris */
.hero-dots-custom {
  position: absolute !important;
  bottom: 1.25rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  top: auto !important;
  margin: 0 !important;
  z-index: 20 !important; /* Memastikan di atas semua layer */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
}

.hero-dots-custom button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.35) !important;
  border: none !important;
  opacity: 0.6;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-dots-custom button.active {
  background-color: #fbbf24 !important; /* Kuning emas */
  width: 32px !important;               /* Efek pill/kapsul memanjang */
  border-radius: 20px !important;
  opacity: 1 !important;
}

/* Button & Navigasi */
.text-gold-accent {
  color: #fbbf24;
}

.btn-siga-purple {
  background-color: #581c87;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-siga-purple:hover {
  background-color: #6b21a8;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(88, 28, 135, 0.4);
}

.carousel-nav-icon {
  width: 45px;
  height: 45px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.hover-purple:hover {
  background-color: #6b21a8 !important;
  transform: scale(1.1);
}

.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }

/* 2. Quick Links Card (Akses Cepat Floating) */
.quick-links-section {
  margin-top: -2.5rem;
  position: relative;
  z-index: 100;
}

.quick-links-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.2rem 1.8rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.quick-link-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--untad-purple-primary);
  white-space: nowrap;
  border-right: 2px solid #e2e8f0;
  padding-right: 1.5rem;
}

.quick-links-grid {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--untad-text-main);
  text-decoration: none;
}

.quick-item i {
  font-size: 1.25rem;
  color: var(--untad-purple-accent);
}

.quick-item span {
  font-size: 0.75rem;
  font-weight: 600;
}

/* 3. Statistics Grid */
.statistics-section {
  padding: 2.5rem 0 1rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.stat-item {
  background: #ffffff;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--untad-border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.stat-icon {
  background: var(--untad-purple-light);
  color: var(--untad-purple-accent);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--untad-purple-primary);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--untad-text-muted);
  display: block;
}

.stat-link {
  font-size: 0.68rem;
  color: var(--untad-purple-accent);
  font-weight: 600;
}

/* 4. Mini List Items (Berita, Pengumuman, Agenda) */
.news-mini-item, .announcement-item, .agenda-item {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed #f1f5f9;
}

.news-thumb {
  width: 65px;
  height: 55px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-info h4, .announcement-info h4, .agenda-info h4 {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.news-info h4 a, .announcement-info h4 a, .agenda-info h4 a {
  color: var(--untad-text-main);
}

.news-date, .announcement-date, .agenda-time {
  font-size: 0.7rem;
  color: var(--untad-text-muted);
}

.agenda-date-box {
  background: var(--untad-purple-light);
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  text-align: center;
  flex-shrink: 0;
}

.agenda-date-box .day {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--untad-purple-primary);
  display: block;
}

.agenda-date-box .month {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--untad-purple-accent);
}

/* 5. Lecturer Card */
.lecturer-card {
  text-align: center;
  background: #f8fafc;
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.lecturer-photo {
  width: 80px;
  height: 100px;
  margin: 0 auto 0.5rem auto;
  border-radius: 6px;
  overflow: hidden;
}

.lecturer-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--untad-purple-primary);
}

.lecturer-dept {
  font-size: 0.7rem;
  color: var(--untad-text-muted);
}

/* =========================================================
   FKM UNTAD - PORTAL WIDGET GRID (MODERN & ELEVATED)
   ========================================================= */

/* Kartu Utama (Widget Wrapper) */
.fkm-widget-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(42, 8, 92, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fkm-widget-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(42, 8, 92, 0.12);
    border-color: rgba(42, 8, 92, 0.18);
}

/* Widget Header */
.fkm-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 2px solid #f2f0f7;
}

.fkm-widget-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1b023a;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
    margin: 0;
}

.fkm-widget-title svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #2a085c;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fkm-link-all {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2a085c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.fkm-link-all:hover {
    color: #d97706;
}

/* 1. Berita Terbaru */
.berita-item-hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.berita-img-wrapper {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.berita-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.berita-item-hero:hover .berita-img-wrapper img {
    transform: scale(1.06);
}

.berita-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(27, 2, 58, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.berita-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1b023a;
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s;
}

.berita-item-hero:hover .berita-title {
    color: #2a085c;
}

.berita-date {
    font-size: 0.78rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 2. Pengumuman */
.pengumuman-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pengumuman-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.pengumuman-item:hover {
    background: #f8f6fc;
}

.pengumuman-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eedffd;
    color: #2a085c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pengumuman-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pengumuman-text {
    font-size: 0.86rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pengumuman-date {
    font-size: 0.76rem;
    color: #828ba2;
}

/* 3. Agenda Kegiatan */
.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.agenda-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
}

.agenda-date-box {
    width: 46px;
    height: 50px;
    background: linear-gradient(135deg, #1b023a 0%, #3d1280 100%);
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(42, 8, 92, 0.2);
}

.agenda-day {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

.agenda-month {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    color: #ffc107;
}

.agenda-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agenda-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.agenda-meta {
    font-size: 0.74rem;
    color: #64748b;
}

/* 4. Staf Pengajar */
.dosen-highlight-item {
    text-align: center;
    padding: 10px 0;
    text-decoration: none;
    display: block;
}

.dosen-photo-ring {
    width: 96px;
    height: 96px;
    margin: 0 auto 12px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #2a085c, #ffc107);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.dosen-photo-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
}

.dosen-name-tag {
    font-size: 0.92rem;
    font-weight: 800;
    color: #1b023a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.dosen-jabatan-tag {
    font-size: 0.76rem;
    color: #6b7280;
    font-weight: 600;
    background: #f3effa;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
}

/* ==========================================================================
   SIDEBAR & WIDGET STYLING
   ========================================================================== */

/* Card Wrapper untuk Widget Dinamis WP */
.custom-dynamic-sidebar .widget {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.075);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

/* Judul Widget Dinamis */
.custom-dynamic-sidebar .widget .widget-title,
.widget-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #212529;
    padding-left: 0.5rem;
    border-left: 4px solid #ffc107; /* Aksen Kuning UNTAD */
    margin-bottom: 1.25rem;
}

/* List Item dalam Widget */
.custom-dynamic-sidebar .widget ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.custom-dynamic-sidebar .widget ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.875rem;
    color: #6c757d;
}

.custom-dynamic-sidebar .widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.custom-dynamic-sidebar .widget ul li a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.custom-dynamic-sidebar .widget ul li a:hover {
    color: #6f42c1; /* Aksen Ungu UNTAD */
}

/* Form Search bawaan WP Widget */
.custom-dynamic-sidebar .widget_search form {
    display: flex;
    gap: 0.5rem;
}

.custom-dynamic-sidebar .widget_search input[type="search"] {
    border-radius: 50rem;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    width: 100%;
}

.custom-dynamic-sidebar .widget_search input[type="submit"] {
    border-radius: 50rem;
    background-color: #6f42c1;
    color: #fff;
    border: none;
    padding: 0.4rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-dynamic-sidebar .widget_search input[type="submit"]:hover {
    background-color: #593196;
}

/* ==========================================================================
   UTILITIES & HELPER CLASSES
   ========================================================================== */

/* Pemotong teks 2 baris untuk judul sidebar */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.last-border-0:last-child {
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Micro interaction hover */
.hover-purple-brand:hover {
    color: #6f42c1 !important;
}

.hover-shadow-md {
    transition: all 0.3s ease;
}

.hover-shadow-md:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}