/*
 * Academic Curator - Premium Design System
 * Consolidated stylesheet extracted from index.php & header.php
 * Semua CSS terpusat di sini agar mudah dikelola dan di-cache browser.
 */

/* ============================================================
   0. SELF-HOSTED FONTS (Outfit)
   File lokal di: assets/official/vendor/fonts/outfit/
   Menggantikan Google Fonts CDN agar bekerja di semua jaringan.
   ============================================================ */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../vendor/fonts/outfit/outfit-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../vendor/fonts/outfit/outfit-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../vendor/fonts/outfit/outfit-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../vendor/fonts/outfit/outfit-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../vendor/fonts/outfit/outfit-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../vendor/fonts/outfit/outfit-800.ttf') format('truetype');
}



/* ============================================================
   1. ROOT VARIABLES & GLOBAL TYPOGRAPHY
   ============================================================ */
:root {
  --primary-indigo: #1a237e;
  --accent-gold: #c5a059;
  --primary-blue: #0052cc;
  --dark-text: #1a233a;
  --muted-text: #64748b;
  --light-bg: #f6f8fb;
  --white-bg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
}

body, h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif !important;
}


/* ============================================================
   2. HEADER & NAVBAR
   ============================================================ */
.header {
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: all 0.3s ease-in-out;
  padding: 20px 0;
}
.mobile-nav-toggle {
  color: var(--primary-indigo) !important;
}
.header.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
}
/* Khusus untuk halaman selain landing page, hilangkan transparansinya */
.header.header-solid {
  background: #ffffff !important;
}
.navbar a,
.navbar a:focus {
  color: var(--primary-indigo) !important;
  font-weight: 500;
}
.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--accent-gold) !important;
}
.navbar .getstarted,
.navbar .getstarted:focus {
  background: var(--primary-indigo) !important;
  color: #fff !important;
  padding: 8px 25px;
  border-radius: 50px;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
}
.navbar .getstarted:hover,
.navbar .getstarted:focus:hover {
  background: var(--accent-gold) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Glass Panel Utility */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.glass-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}


/* ============================================================
   3. MOBILE NAVIGATION
   ============================================================ */
@media (max-width: 991px) {
  .header .container-fluid {
    position: relative;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
  }
  .logo img {
    max-height: 25px !important;
    margin: 0 4px !important;
  }
  .navbar:not(.navbar-mobile) {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  .mobile-nav-toggle {
    font-size: 32px !important;
    color: #1a233a !important;
    margin: 0 !important;
    z-index: 9999 !important;
    cursor: pointer;
  }
}
@media (max-width: 576px) {
  .logo img {
    max-height: 24px !important;
    margin-right: 5px !important;
  }
}

/* Mobile Off-Canvas Drawer */
.navbar-mobile {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998 !important;
}
.navbar-mobile ul {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: 300px !important;
  max-width: 85vw !important;
  background: #ffffff !important;
  margin: 0 !important;
  padding: 80px 20px 30px 20px !important;
  border-radius: 24px 0 0 24px !important;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
  z-index: 9999 !important;
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.navbar-mobile .mobile-nav-toggle {
  position: absolute !important;
  top: 25px !important;
  right: 25px !important;
  color: #1a233a !important;
  z-index: 10000 !important;
}
.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 14px 20px !important;
  font-size: 1.1rem !important;
  color: #1a233a !important;
  border-radius: 12px !important;
  font-weight: 600;
  margin-bottom: 5px;
}
.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  background: rgba(0, 82, 204, 0.08) !important;
  color: #0052cc !important;
}
.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 20px 0 0 0 !important;
  text-align: center;
  background: #0052cc !important;
  color: white !important;
  display: block;
  box-shadow: 0 10px 20px rgba(0, 82, 204, 0.2) !important;
}
.navbar-mobile .dropdown ul {
  background: #f8f9fa !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  margin-top: 5px !important;
  padding: 10px !important;
}
.navbar-mobile .dropdown ul a {
  font-size: 1rem !important;
  padding: 10px 15px !important;
  margin-bottom: 2px;
}


/* ============================================================
   4. HERO SECTION
   ============================================================ */
@keyframes heroFloat {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
.hero-animated-img {
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-floating-badge {
  top: -20px;
  right: -30px;
}
@media (max-width: 991px) {
  .hero-floating-badge {
    right: 0;
    top: -10px;
    transform: scale(0.85);
  }
}
@media (max-width: 576px) {
  .hero-floating-badge {
    display: none !important;
  }
}


/* ============================================================
   5. GLOBAL RESPONSIVE PADDING
   ============================================================ */
@media (max-width: 991px) {
  section[style*="padding: 100px 0"] {
    padding: 80px 0 !important;
  }
  .hero[style*="padding: 160px"] {
    padding: 120px 0 60px 0 !important;
  }
  h2[style*="font-size: 2.8rem"] {
    font-size: 2.2rem !important;
  }
  .hero h1 {
    font-size: 2.5rem !important;
  }
}

@media (max-width: 767px) {
  section[style*="padding: 100px 0"] {
    padding: 60px 0 !important;
  }
  .hero[style*="padding: 160px"] {
    padding: 110px 0 40px 0 !important;
  }
  .hero h1 {
    font-size: 2.1rem !important;
    margin-top: 30px !important;
  }
  .hero .col-lg-7 {
    text-align: center !important;
  }
  .hero p {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero .justify-content-lg-start {
    justify-content: center !important;
  }
  .hero-animated-img {
    max-height: 350px !important;
  }
  h2[style*="font-size: 2.8rem"] {
    font-size: 1.8rem !important;
  }
  /* Flow step badge centering on mobile */
  #flow .position-absolute[style*="left: 30px"] {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  #about .about-img-container {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 576px) {
  section[style*="padding: 100px 0"] {
    padding: 50px 0 !important;
  }
}


/* ============================================================
   6. BENEFITS SECTION SLIDER
   ============================================================ */
/* Slide height auto agar container swiper menyesuaikan konten */
.benefits-slider .swiper-slide {
  height: auto !important;
}
.benefits-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #cbd5e1;
  opacity: 1;
  transition: all 0.3s ease;
}
.benefits-slider .swiper-pagination-bullet-active {
  background-color: var(--primary-blue) !important;
  width: 30px;
  border-radius: 10px;
}


/* ============================================================
   7. REGISTRATION FLOW SECTION
   ============================================================ */
.flow-slider .swiper-slide {
  height: auto !important;
}
.flow-step-badge {
  top: -25px;
  left: 30px;
}
@media (max-width: 767px) {
  .flow-slider .flow-step-badge {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}
/* Desktop: disable Swiper & use CSS Grid (3 columns) */
@media (min-width: 992px) {
  .flow-slider {
    overflow: visible !important;
    padding: 0 !important;
  }
  .flow-slider .swiper-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    transform: none !important;
    width: 100% !important;
    margin: 0 -15px !important;
  }
  .flow-slider .swiper-slide {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
    padding: 0 15px !important;
    margin: 0 0 40px 0 !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .flow-slider .swiper-pagination {
    display: none !important;
  }
}
.flow-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #cbd5e1;
  opacity: 1;
  transition: all 0.3s ease;
}
.flow-slider .swiper-pagination-bullet-active {
  background-color: var(--primary-blue) !important;
  width: 25px;
  border-radius: 10px;
}


/* ============================================================
   8. FAQ ACCORDION
   ============================================================ */
.premium-accordion .accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 16px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  margin-bottom: 1.25rem;
  background: white;
  overflow: hidden;
  transition: all 0.3s ease;
}
.premium-accordion .accordion-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 82, 204, 0.1);
}
.premium-accordion .accordion-button {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark-text);
  background: white;
  box-shadow: none !important;
  padding: 1.25rem 1.5rem;
  border: none !important;
}
.premium-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-blue);
  background: rgba(0, 82, 204, 0.02);
  box-shadow: none !important;
}
.premium-accordion .accordion-button::after {
  background-size: 1rem;
  transition: transform 0.3s ease;
}
.premium-accordion .accordion-body {
  color: var(--muted-text);
  line-height: 1.8;
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  background: rgba(0, 82, 204, 0.02);
}


/* ============================================================
   9. UNIVERSITY / PARTNER LOGOS SLIDER
   ============================================================ */
@media (max-width: 767px) {
  .partner-logo-img {
    max-height: 40px !important;
  }
  .clients-slider .swiper-slide {
    height: 70px !important;
  }
}
.clients-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #cbd5e1;
  opacity: 0.8;
}
.clients-slider .swiper-pagination-bullet-active {
  background-color: var(--primary-blue) !important;
  width: 25px;
  border-radius: 10px;
}


/* ============================================================
   10. ARTICLES / RECENT BLOG POSTS SLIDER
   ============================================================ */
/* Slide height auto agar tinggi slide mengikuti konten tertinggi */
.articles-slider .swiper-slide {
  height: auto !important;
}
/* Desktop: disable Swiper & use CSS Grid (3 columns) */
@media (min-width: 992px) {
  .articles-slider {
    overflow: visible !important;
    padding: 0 !important;
  }
  .articles-slider .swiper-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    transform: none !important;
    width: 100% !important;
    margin: 0 -15px !important;
  }
  .articles-slider .swiper-slide {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
    padding: 0 15px !important;
    margin: 0 0 30px 0 !important;
    height: auto !important;
  }
  .articles-slider .swiper-pagination {
    display: none !important;
  }
}
.articles-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #cbd5e1;
  opacity: 1;
}
.articles-slider .swiper-pagination-bullet-active {
  background-color: var(--primary-blue) !important;
  width: 25px;
  border-radius: 10px;
}


/* ============================================================
   11. ARTICLE LIST & DETAIL PAGES
   ============================================================ */

/* Hero Banner (shared between list & detail) */
.article-hero-banner {
  min-height: 220px;
}

/* Meta Pills (detail page) */
.article-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

/* Sidebar Article Item Hover */
.sidebar-article-item:hover .sidebar-article-title {
  color: #0052cc !important;
}

/* Article List Card */
.article-card {
  text-decoration: none;
}

/* Article Body Typography (konten dari CKEditor / rich text) */
.article-body {
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.9;
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5 {
  color: #1a233a;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.article-body h2 { font-size: 1.6rem; }
.article-body h3 { font-size: 1.3rem; }
.article-body h4 { font-size: 1.1rem; }

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body a {
  color: #0052cc;
  text-decoration: underline;
  text-decoration-color: rgba(0, 82, 204, 0.3);
  transition: text-decoration-color 0.2s;
}
.article-body a:hover {
  text-decoration-color: #0052cc;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.article-body blockquote {
  border-left: 4px solid #0052cc;
  background: rgba(0, 82, 204, 0.04);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-radius: 0 12px 12px 0;
  color: #475569;
  font-style: italic;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body li {
  margin-bottom: 0.4rem;
}

.article-body pre,
.article-body code {
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.9rem;
  padding: 2px 6px;
}
.article-body pre {
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

/* Pagination (article list) */
.article-pagination .pagination .page-link {
  border: none;
  color: #64748b;
  padding: 8px 14px;
  border-radius: 8px !important;
  margin: 0 2px;
  font-weight: 600;
  transition: all 0.2s;
}
.article-pagination .pagination .page-link:hover {
  background: rgba(0, 82, 204, 0.08);
  color: #0052cc;
}
.article-pagination .pagination .page-item.active .page-link {
  background: #0052cc;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.25);
}
