/* =========================================================
   Responsive spacing: tablet landscape / small desktop
   Area masalah utama: 992px - 1199.98px
   ========================================================= */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .page-medium-gutter {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .row {
        --bs-gutter-x: 1.5rem;
    }
}
#navbar-wrapper .navbar-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Supaya menu desktop tidak terlalu cepat muncul dan layout tidak sesak.
   Pada 992–1199px, header tetap memakai mode mobile/offcanvas. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #navbar-wrapper .navbar-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    #main-header img {
        height: 46px !important;
    }

    /* Ruang horizontal halaman agar tidak menempel ke tepi layar */
    .container {
        max-width: calc(100% - 3rem);
    }

    main,
    section {
        overflow-x: clip;
    }
}

/* Saat desktop nav mulai muncul di >=1200px,
   jarak dan ukuran font dibuat lebih lentur agar tetap rapi */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    #navbar-wrapper .navbar-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    #desktop-nav {
        gap: 1rem !important;
    }

    #desktop-nav .btn-nav,
    #desktop-nav .btn-nav span {
        /* font-size: 1rem !important; */
        white-space: nowrap;
    }

    #main-header img {
        height: 44px !important;
    }
}

/* Untuk layar desktop lebih lebar, tetap beri ruang yang lega */
@media (min-width: 1400px) {
    #navbar-wrapper .navbar-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* INDEX PAGE STYLES */
/* Scoped styles for home page only */
.home-page {
  --gold: #d4af37;
  --bg-dark: #000;
  --card-radius: 16px;
  --card-shadow: 0 18px 36px rgba(2,6,23,.08);
  --transition-fast: .18s;
  --transition-medium: .28s;
  --space-large: 3.5rem;
  --text-on-dark: #fff;
  --marriott-gold: 45 100% 51%;
  --marriott-gold-hover: 42 95% 46%;
}


.text-marriott-gold{
  color: hsl(var(--marriott-gold));
}
/* HERO */
.home-page .hero-section {
  background: linear-gradient(to right, var(--bg-dark), #1a1a1a, var(--bg-dark));
  padding: var(--space-large) 0;
  color: var(--text-on-dark);
  text-align: center;
}

/* Dark section wrapper (keberadaan background-image inline tetap bekerja) */
.home-page .section-dark {
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
  color: var(--text-on-dark);
}

/* Carousel images responsive: prefer aspect-ratio over fixed height */
.home-page .carousel-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 20px;
  max-height: 420px; /* safety cap untuk layar besar */
}

/* Tools - interactive card */
.home-page .tool-card {  border: 1px solid #e1e5eb !important; /* abu-abu soft */
  transition: all 0.3s ease; }
.home-page .tool-card:focus { outline: none; }
.home-page .tool-card:focus-visible {
  outline: 3px solid rgba(212,175,55,.45);
  outline-offset: 2px;
}
.tool-card:hover {
  border-color: #064789; /* warna primary */
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}
/* Deco card */
/* ===== DECO CARD (ORIGINAL + HOVER LIFT ANIMATION) ===== */

.deco-card { 
  display: block;
}

/* anchor pembungkus (seluruh kartu clickable) */
.deco-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* inner panel yang menyerupai card Tailwind */
.deco-card .p-4 {
  /* buat layering supaya glow pseudo-element bisa di belakang konten */
  position: relative;
  z-index: 1;

  /* glass / frosted look */
  background: rgba(255,255,255,0.04); /* bg-white/5 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255,255,255,0.10); /* border-white/10 */
  border-radius: var(--card-radius);
  padding: 1.25rem; /* p-6 ~ 24px, tapi markup p-4; pilih keduanya seimbang */
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6); /* shadow-2xl feel */

  /* --- smooth transform & shadow transitions (tweakable) --- */
  transition:
    transform 280ms cubic-bezier(.2,.9,.2,1),
    box-shadow 280ms cubic-bezier(.2,.9,.2,1),
    opacity 200ms ease;
  will-change: transform, box-shadow, opacity;
  overflow: hidden; /* supaya glow blur tidak memotong */
}

/* blur gradient glow di pojok (mengganti element React absolute) */
.deco-card .p-4::before{
  content: "";
  position: absolute;
  top: -48px; /* -top-6 di Tailwind */
  right: -64px; /* -right-8 */
  width: 12rem; /* ~ 192px (w-48) */
  height: 12rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: .9;
  /* gradient mirip: from-marriott-gold/60 -> to-marriott-gold/20 */
  background: linear-gradient(45deg,
    rgba(255,198,60,0.60),
    rgba(255,198,60,0.18)
  );
  filter: blur(40px); /* blur-3xl feel */
  transform: translateZ(0) scale(1);
  transition: transform 420ms cubic-bezier(.2,.9,.2,1), opacity 280ms ease;
}

/* Jika ingin memanfaatkan HSL variable lebih presisi (modern browsers): */
@supports (background: linear-gradient(hsl(var(--marriott-gold) / 0.6), hsl(var(--marriott-gold) / 0.2))) {
  .deco-card .p-4::before{
    background: linear-gradient(45deg,
      hsl(var(--marriott-gold) / 0.6),
      hsl(var(--marriott-gold) / 0.2)
    );
  }
}

/* Hover / interaction (sesuai motion whileHover)
   — support untuk:
     1) .deco-card > a:hover .p-4 (jika ada anchor)
     2) .deco-card:hover .p-4 (jika tidak ada anchor)
     3) :focus-within agar keyboard users dapat melihat effect
*/
.deco-card > a:hover .p-4,
.deco-card > a:focus .p-4,
.deco-card:hover .p-4,
.deco-card:focus-within .p-4 {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 48px rgba(2,6,23,0.72);
  opacity: 1;
}

/* juga ubah glow sedikit saat hover supaya terasa 'lifted' */
.deco-card > a:hover .p-4::before,
.deco-card > a:focus .p-4::before,
.deco-card:hover .p-4::before,
.deco-card:focus-within .p-4::before {
  transform: translateY(-8px) translateX(-6px) scale(1.06);
  opacity: 1;
}

/* Tekan (active) — berikan efek 'ditekan' kecil untuk feedback */
.deco-card > a:active .p-4,
.deco-card:active .p-4 {
  transform: translateY(-2px) scale(0.995);
  box-shadow: 0 8px 22px rgba(2,6,23,0.55);
  transition-duration: 120ms;
}

/* ===== Header row (index avatar + title) ===== */
.deco-card .d-flex.align-items-center {
  gap: .75rem; /* gap-3 */
  margin-bottom: .75rem;
  align-items: flex-start;
}

/* rounded avatar circle */
.deco-card .rounded-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.30); /* black/30 */
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  border: 2px solid rgba(255,184,0,0.85); /* border-warning-ish -> mimic border-white? keep gold */
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  box-sizing: border-box;
  z-index: 2; /* above glow */
}

/* number / icon inside avatar - match text-marriott-gold */
.deco-card .text-marriott-gold {
  color: hsl(var(--marriott-gold)); /* using H S L triple var */
  font-weight: 700;
  font-size: 1.125rem; /* text-xl */
  line-height: 1;
}

/* fallback for older browsers */
.deco-card .text-marriott-gold.fallback {
  color: var(--marriott-gold-hex);
}

/* title */
.deco-card h4.h5,
.deco-card h4 {
  font-size: 1.125rem; /* text-xl ~ 18px */
  margin: 0;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  z-index: 2;
}

/* subtitle / description */
.deco-card p.small {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  line-height: 1.45;
  z-index: 2;
}

/* bottom CTA container - center */
.deco-card .mt-auto {
  margin-top: auto !important;
  z-index: 2;
}

/* Button look to match Tailwind Button */
.deco-card .btn.bg-marriott-gold,
.deco-card .btn.bg-marriott-gold:visited {
  background: hsl(var(--marriott-gold));
  color: #000;
  font-weight: 700;
  padding: .35rem 1rem;
  border-radius: 9999px; /* rounded-full */
  min-width: 120px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.45);
  border: none;
  display: inline-block;
  text-decoration: none;
}

.deco-card .btn.bg-marriott-gold:hover,
.deco-card .btn.bg-marriott-gold:focus {
  background: color-mix(in srgb, hsl(var(--marriott-gold)) 85%, white 15%); /* lighter hover */
  filter: brightness(1.03);
}

/* Accessibility: focus ring for keyboard users */
.deco-card > a:focus-visible .p-4,
.deco-card:focus-within .p-4 {
  outline: 3px solid rgba(255, 255, 255, 0.06);
  outline-offset: 4px;
}

/* make sure inner content sits above glow pseudo-element */
.deco-card .p-4 > * {
  position: relative;
}

/* Small screens: center card within grid like Tailwind max-w-sm mx-auto */
@media (max-width: 767.98px) {
  .deco-card {
    text-align: center;
  }
  .deco-card .p-4 {
    margin-left: auto;
    margin-right: auto;
    max-width: 23.5rem; /* ~ max-w-sm */
  }
}

/* ===== Subtle rim highlight on top when lifted (visually reinforces lift) ===== */
.deco-card .p-4::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  transition: opacity 260ms ease, transform 260ms cubic-bezier(.2,.9,.2,1);
  z-index: 3;
}

.deco-card > a:hover .p-4::after,
.deco-card:hover .p-4::after,
.deco-card:focus-within .p-4::after {
  opacity: 1;
  transform: translateY(-2px);
}

/* ===== Respect reduced motion preference ===== */
@media (prefers-reduced-motion: reduce) {
  .deco-card .p-4,
  .deco-card .p-4::before,
  .deco-card .p-4::after {
    transition: none !important;
    transform: none !important;
  }
}

/* Optional: if you want hover to be limited to desktop only */
@media (max-width: 767.98px) {
  .deco-card > a:hover .p-4,
  .deco-card:hover .p-4 {
    transform: none;
    box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  }
}

/* COMMUNITY PAGE */
/* =========================================================
   COMMUNITY PAGE
   ========================================================= */

.community-page {
    background: #fff;
    color: #111827;
}

.community-hero {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.community-featured {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

.community-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.community-origin {
    max-width: 860px;
    margin-bottom: 1rem;
}

.community-card-outer {
    width: 100%;
    display: flex;
    justify-content: center;
}

.community-card-wrap {
    width: 100%;
    max-width: 560px;
}

.community-platform-accent {
    height: 4px;
    border-radius: 0.75rem 0.75rem 0 0;
}

.community-card-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-top: 0;
    border-radius: 0 0 0.75rem 0.75rem;
    padding: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.community-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
    border-color: rgba(15, 23, 42, .14);
}

.community-card-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.community-platform-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.community-platform-icon i {
    font-size: 1.45rem;
    line-height: 1;
}

.community-card-content {
    min-width: 0;
}

.community-card-title-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.community-card-title {
    color: #111827;
    line-height: 1.25;
}

.community-card-description {
    margin-top: .25rem;
    color: #6b7280;
    font-size: .875rem;
    line-height: 1.45;
}

.community-card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: .75rem;
    flex-shrink: 0;
}

.community-last-post {
    color: #6b7280;
    font-size: .875rem;
    white-space: nowrap;
}

.community-verified-icon {
    width: 18px;
    height: 18px;
    color: #2563eb;
    flex: 0 0 auto;
}

.community-external-icon {
    width: 16px;
    height: 16px;
    color: #6b7280;
    flex: 0 0 auto;
}

/* Platform colors */
.platform-youtube {
    background: #ff0000;
}

.platform-whatsapp {
    background: #25d366;
}

.platform-facebook {
    background: #1877f2;
}

.platform-discord {
    background: #5865f2;
}

.platform-community {
    background: #f59e0b;
}

.platform-default {
    background: #111827;
}

@media (max-width: 575.98px) {
    .community-hero {
        padding-top: 2rem;
        padding-bottom: 1rem;
    }

    .community-featured {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .community-card-link {
        align-items: flex-start;
        padding: .9rem;
    }

    .community-platform-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .community-platform-icon i {
        font-size: 1.25rem;
    }

    .community-last-post {
        display: none;
    }
}
/* Community stack */
/* ===== community card stack (bootstrap 5 + plain CSS) ===== */
.community-stack {
  position: relative;
  margin: 0 auto;
  width: 270px;               
  height: 176px;             
  display: block;
  perspective: 1200px;
}

/* md breakpoint (>=768px) similar to Tailwind md */
@media (min-width: 768px) {
  .community-stack {
    width: 320px;             
    height: 224px;           
  }
}

/* common style for each stacked card */
.community-stack .stack-item {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 1rem; 
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 50px rgba(0,0,0,0.5);
  transition: transform 700ms cubic-bezier(.2,.9,.2,1), opacity 400ms ease;
  will-change: transform, opacity;
  cursor: default;
  z-index: 2;
}

/* top-most card (clickable main) */
.community-stack .stack-item:nth-of-type(3) {
  z-index: 4;
  transform: translate(-50%, calc(-50% - 8px)); /* slightly lifted */
}

/* back cards - subtle rotations */
.community-stack .stack-item-1 { /* one side/back */
  z-index: 3;
  transform: translate(-50%, -50%) rotate(4deg);
  transition-delay: 60ms;
}
.community-stack .stack-item-2 { /* other side/back */
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-1deg);
  transition-delay: 120ms;
}

/* overlay anchor to make each card clickable without changing layout */
.community-stack .stack-link {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  background: transparent;
  pointer-events: none; /* default: prevent clicks on back cards on small screens */
  z-index: 5; /* sits above visual cards so click works when enabled */
}

/* enable pointer events for all links when hovering (only on md and up) */
@media (min-width: 768px) {
  .community-stack:hover .stack-link {
    pointer-events: auto;
  }
  /* Hover transforms to mimic React behavior */
  .community-stack:hover .stack-item-1 {
    transform: translate(calc(-50% - 40%), calc(-50% + 24%)) rotate(-6deg);
  }
  .community-stack:hover .stack-item-2 {
    transform: translate(-50%, calc(-50% - 100%)) rotate(-2deg);
  }
  .community-stack:hover .stack-item:nth-of-type(3) {
    transform: translate(-50%, calc(-50% - 8px)); /* keep main nearly same or add small lift */
    transform-origin: center;
  }
}

/* mobile: simplify interactions (no hover) */
@media (max-width: 767.98px) {
  .community-stack .stack-link {
    pointer-events: auto; /* allow tapping on mobile for all cards */
  }
}

/* small visual polish */
.community-stack .stack-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 -12px 30px rgba(0,0,0,0.25);
  pointer-events: none;
}
/* AI 4 GOD PAGE STYLES */
/* Animations & hover to mimic framer-motion behaviour */
.ai4god-page .fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .6s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0);} }

.ai4god-page .card-hover {
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s;
}
.ai4god-page .card-hover:hover, .ai4god-page .card-hover:focus {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(2,6,23,.12);
  z-index: 2;
}
.ai4god-page .img-round { border-radius: .75rem; object-fit: contain; height: 180px; width: 100%; }
.ai4god-page .hero-section { padding: 3.5rem 0; background: #fff; }
.ai4god-page .text-navbar-dark { color: #0f1724; } /* adjust to actual theme color */

/* TOOL DETAILS PAGE STYLES */
.tool-detail-page .card-hover { transition: transform .18s ease, box-shadow .18s ease; }
.tool-detail-page .card-hover:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(2,6,23,.08); }
.tool-detail-page .prose img { max-width:100%; height:auto; display:block; margin: .5rem 0; }
.tool-detail-page .embed-frame { width:100%; border:0; }
.tool-detail-page .sticky-side { position: sticky; top: 90px; }
.tool-detail-page .platform-btn { display:block; margin-bottom:.5rem; text-align:center; }

/* AI TALKS PAGE STYLES */
.ai-talks-page .card-hover { transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.ai-talks-page .card-hover:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(2,6,23,.08); }
.ai-talks-page .img-fill { width:100%; height:100%; object-fit:cover; }
.ai-talks-page .line-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ai-talks-page .btn-toggle.active { background:#0f1724; color:#fff; border-color:#0f1724; }

/* AI ROADSHOWS PAGE STYLES */
/* animation + card style similar to original */
.ai-roadshow-page .card-hover { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, opacity .35s; }
.ai-roadshow-page .card-hover:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(2,6,23,.08); }
.ai-roadshow-page .event-item, .ai-roadshow-page .event-row { transition: opacity .35s, transform .35s; }
.ai-roadshow-page .event-item.hidden, .ai-roadshow-page .event-row.hidden { opacity: 0; transform: translateY(12px); pointer-events: none; height: 0; margin: 0; padding: 0; overflow: hidden; display: none; }
.ai-roadshow-page .event-item.visible { opacity: 1; transform: translateY(0); }
.ai-roadshow-page .placeholder-img { background: #f5f6f8; display:flex; align-items:center; justify-content:center; color:#9aa; height:180px; }
.ai-roadshow-page .btn-toggle.active { background:#0f1724; color:#fff; border-color:#0f1724; }

/* AI OFFICE HOURS PAGE STYLES */
/* mimic original visual behaviour */
.ai-office-hour-page .card-hover { transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s; }
.ai-office-hour-page .card-hover:hover, .ai-office-hour-page .card-hover:focus { transform: translateY(-6px) scale(1.01); box-shadow: 0 18px 36px rgba(2,6,23,.12); z-index:2; }
.ai-office-hour-page .video-frame { width:100%; height:100%; border:0; border-radius:.5rem; }
.ai-office-hour-page .aspect-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.ai-office-hour-page .aspect-video iframe, .ai-office-hour-page .aspect-video img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
.ai-office-hour-page .input-debounce { transition: box-shadow .15s; }
.ai-office-hour-page .btn-toggle.active { background:#0f1724; color:#fff; border-color:#0f1724; }

/* AI EXPO PAGE STYLES */
/* small visual parity with original tailwind/framer styles */
.ai-expo-page .card-hover {
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s;
}
.ai-expo-page .card-hover:hover, .ai-expo-page .card-hover:focus {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 36px rgba(2,6,23,.12);
  z-index: 2;
}
.ai-expo-page .img-fill {
  width:100%;
  height: 360px;
  object-fit: cover;
}
.ai-expo-page .btn-toggle {
  min-width: 90px;
}

/* LEARNING INDEX PAGE STYLES */
.learning-page .card-hover { transition: transform .12s ease, box-shadow .12s ease; }
.learning-page .card-hover:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.learning-page .placeholder-rect { background: linear-gradient(90deg,#f3f3f3,#ececec,#f3f3f3); background-size: 200% 100%; animation: shine 1.2s infinite; height: 180px; border-radius: .25rem; }
@keyframes shine { from { background-position: 200% 0 } to { background-position: -200% 0 } }

:root { --accent: #f59e0b; }

  .list-view .custom-list {
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #fff;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    overflow: hidden;
  }

  .list-view .custom-list:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    background: linear-gradient(90deg, rgba(245,158,11,0.06), rgba(255,255,255,0.0));
  }

  .list-view .list-thumb img { border-radius: 6px; }

  .visit-chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(17,24,39,1) 0%, rgba(31,41,55,1) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(17,24,39,0.12);
    white-space: nowrap;
  }

  .list-view .custom-list h5 {
    font-size: 1rem;
    line-height: 1.1;
    margin-bottom: 0.2rem;
    color: #0f172a;
  }

  .list-view .custom-list p { color: #475569; }

  .show-more-wrap {
    display: block;
  }

/* LEARNING DETAILS PAGE STYLES */
/* small custom styles mirip React styling */
.learning-detail-page .card-hover { transition: transform .12s ease, box-shadow .12s ease; }
.learning-detail-page .card-hover:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.learning-detail-page .placeholder-rect { background: linear-gradient(90deg,#f3f3f3,#ececec,#f3f3f3); background-size: 200% 100%; animation: shine 1.2s infinite; height: 220px; border-radius: .25rem; }
@keyframes shine { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.learning-detail-page .rounded-video { border-radius: .5rem; overflow: hidden; background:#000; }

/* BANK AI PAGE STYLES */
/* Animations & hover untuk menggantikan framer-motion */
.bank-ai-page .fade-up { opacity: 0; transform: translateY(24px); transition: all .6s cubic-bezier(.2,.8,.2,1); }
.bank-ai-page .fade-up.animated { opacity: 1; transform: translateY(0); }

.bank-ai-page .card-hover { transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s; }
.bank-ai-page .card-hover:hover, .bank-ai-page .card-hover:focus { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(2,6,23,.12); z-index: 2; }
.bank-ai-page .img-round { border-radius: .75rem; object-fit: contain; height: 180px; width: 100%; }
.bank-ai-page .hero-section { padding: 3.5rem 0; background: #fff; }
.bank-ai-page .text-navbar-dark { color: #0f1724; }

/* ALLOUT PAGE STYLES */
.allout-page .card-hover { transition: transform .3s ease, box-shadow .3s ease; }
.allout-page .card-hover:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(2,6,23,.08); }


.btn-url .icon-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-url:hover .icon-arrow {
  transform: translateX(4px);
}
  
  .card-fondasi {
  --tw-border-opacity: 1;
  background-color: #ffffff;
  border-radius: 1rem; /* rounded-2xl */
  padding: 1.5rem; /* p-6 */
  text-align: center;
  border: 1px solid #f3f4f6 !important; /* border-gray-100 */
  box-shadow: 
    0 4px 6px -1px rgba(0,0,0,0.1),
    0 2px 4px -2px rgba(0,0,0,0.1); /* shadow-md */
  transition: all 0.3s ease;
  cursor: pointer;
}
.fondasi-list{
  max-width: 300px;
  margin: 0 auto;     /* membuat list berada di tengah */
  text-align: left;   /* teks tetap rata kiri */
  padding-left: 1.2rem;
}

.fondasi-list li{
  margin-bottom: 6px;
}


/* TOOLS ===================================== */
.btn-modal-custom {
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  border-radius: 0.5rem;
  text-align: center;
  display: block;
  text-decoration: none;
}

.btn-modal-custom:hover {
  background: #333;
  color: #fff;
}

.icon-arrow{
  width:18px;
  height:18px;
  stroke:white;
  margin-top: 0.2rem;
  opacity:0.9;
  transition: all .2s ease;
}

.btn:hover .icon-arrow{
  stroke:black;
}

  .category-btn {
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
  }

  /* state active (lebih spesifik agar menimpa Bootstrap) */
  .category-btn.active,
  .category-btn.active:focus,
  .category-btn.active:hover {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    transform: translateY(-1px);
  }

  /* ikon dan spacing */
  .cat-icon {
    line-height: 1;
    font-size: 0.95rem;
    display:inline-flex;
  }

   .card.card-equal {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* gambar tetap tinggi tetap dan tidak mengubah proporsi */
  .card.card-equal .card-img-top {
    height: 220px;
    object-fit: cover;
    width: 100%;
    flex-shrink: 0;
  }

  /* body mengisi sisa ruang dan disusun kolom */
  .card.card-equal .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1rem;
  }

  /* title & paragraph jadi hitam (lebih spesifik untuk override bootstrap) */
  .card.card-equal .card-body h5 {
    color: #000 !important;
  }
  .card.card-equal .card-body p {
    color: #000 !important;
  }

  /* container tombol pada bagian bawah */
  .card.card-equal .card-body .btn-row {
    margin-top: auto; /* mendorong tombol ke bawah */
  }

  /* tetap beri sedikit jarak dan transisi kecil */
  .card.card-equal .card-body .btn,
  .card.card-equal .card-body button {
    transition: transform .12s ease, box-shadow .12s ease;
  }

  .card-link-wrapper {
    display: block; /* supaya mengambil ukuran kartu */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    height: stretch;
  }
  .card-link-wrapper:focus {
    outline: 2px solid rgba(0,0,0,0.12);
    outline-offset: 2px;
  }


  /* ABOUT  page*/
  /* Zoom effect */
.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* AI TALKS PAGE */
html {
  scroll-behavior: smooth;
}

/* .prose-soft p + p {
  margin-top: 1rem;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.js-book-hidden {
  display: none !important;
} */

.hidden {
  display: none !important;
}

.aitalks-card,
.aitalks-sidebar-card,
.aitalks-bonus-card,
.aitalks-toc-link,
.aitalks-side-link {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}

.aitalks-card:hover,
.aitalks-sidebar-card:hover,
.aitalks-bonus-card:hover {
  transform: translateY(-3px);
}

.aitalks-toc-link:hover,
.aitalks-side-link:hover {
  background-color: rgba(255, 193, 7, .08);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Resources Pages */

/* .resource-card-image {
        width: 100%;
        background: #f8fafc;
        overflow: hidden;
    }

    .resource-card-image img {
        width: 100%;
        height: 280px;
        object-fit: cover;
    }

    @media (max-width: 575.98px) {
        .resource-card-image img {
            height: 220px;
        }
    } */

/* Ebook Resources Pages */
    .custom-scrollbar::-webkit-scrollbar {
        width: 6px;
    }
    .custom-scrollbar::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    @keyframes bounce {
        0%, 100% { transform: scaleY(0.5); }
        50% { transform: scaleY(1); }
    }

/* AI Talks Page */
.aitalks-detail-page {
    overflow-x: hidden;
}

.aitalks-detail-hero {
    background: linear-gradient(to right, #000, #111827, #000);
}

.aitalks-detail-container {
    max-width: 1180px;
}

.aitalks-detail-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.aitalks-detail-lead {
    font-size: clamp(1rem, 2.3vw, 1.2rem);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.aitalks-detail-card {
    border-radius: 1.25rem;
}

.aitalks-detail-content {
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.85;
    font-size: 1rem;
}

.aitalks-detail-section-title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.aitalks-toc-link {
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.aitalks-toc-link:hover {
    background: #fff7e6;
    color: #111827 !important;
    transform: translateX(2px);
}

.aitalks-toc-visual-link {
    border: 1px solid transparent;
    background: transparent;
}

.aitalks-toc-visual-link:hover {
    border-color: var(--aitalks-section-border, rgba(180, 138, 74, .28));
    background: var(--aitalks-section-hover, #fbf4e8);
}

.aitalks-toc-number {
    color: var(--aitalks-section-accent, #a16207);
    font-weight: 700;
}

.aitalks-toc-icon {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--aitalks-section-accent, #a16207);
    background: var(--aitalks-section-soft, rgba(180, 138, 74, .12));
    box-shadow: inset 0 0 0 1px var(--aitalks-section-border, rgba(180, 138, 74, .2));
}

.aitalks-sidebar-card,
.aitalks-side-link,
.aitalks-bonus-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.aitalks-sidebar-card:hover,
.aitalks-bonus-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .12) !important;
}

.aitalks-side-link:hover {
    color: #d97706 !important;
}

.aitalks-sidebar-sticky {
    position: static;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* CONTENT SECTIONS - BOOK THEME */
.aitalks-content-section {
    position: relative;
    border-radius: 1.2rem;
    border: 1px solid var(--aitalks-section-border);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .62) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .92)),
        var(--aitalks-section-bg);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    box-shadow: 0 12px 30px rgba(67, 56, 42, .065);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.aitalks-content-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(67, 56, 42, .095);
}

.aitalks-content-section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: .34rem;
    background: var(--aitalks-section-accent);
}

.aitalks-content-section::after {
    content: "";
    position: absolute;
    right: 1.15rem;
    top: 1rem;
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 999px;
    background: var(--aitalks-section-soft);
    opacity: .7;
    pointer-events: none;
}

.aitalks-content-section-inner {
    position: relative;
    z-index: 1;
    padding: 1.35rem;
}

.aitalks-content-section-icon {
    width: 3rem;
    height: 3rem;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .72);
    color: var(--aitalks-section-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 0 0 1px var(--aitalks-section-border),
        0 8px 18px rgba(67, 56, 42, .06);
}

.aitalks-content-section-label {
    color: var(--aitalks-section-accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.aitalks-section-number {
    color: var(--aitalks-section-accent);
    font-weight: 700;
}

.aitalks-content-section .aitalks-detail-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .9));
    border: 1px solid rgba(120, 92, 56, .1);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.aitalks-content-section .aitalks-detail-content p,
.aitalks-content-section .aitalks-detail-content li {
    color: #374151;
}

.aitalks-section-abstract {
    --aitalks-section-bg: #fbf3dd;
    --aitalks-section-hover: #fbf3dd;
    --aitalks-section-soft: rgba(180, 124, 42, .12);
    --aitalks-section-accent: #a16207;
    --aitalks-section-border: rgba(180, 124, 42, .26);
}

.aitalks-section-description {
    --aitalks-section-bg: #f3f0e8;
    --aitalks-section-hover: #f3f0e8;
    --aitalks-section-soft: rgba(71, 85, 105, .1);
    --aitalks-section-accent: #475569;
    --aitalks-section-border: rgba(71, 85, 105, .2);
}

.aitalks-section-summary {
    --aitalks-section-bg: #eef5e9;
    --aitalks-section-hover: #eef5e9;
    --aitalks-section-soft: rgba(74, 124, 89, .12);
    --aitalks-section-accent: #4a7c59;
    --aitalks-section-border: rgba(74, 124, 89, .22);
}

.aitalks-section-book {
    --aitalks-section-bg: #fff7ed;
    --aitalks-section-hover: #fff7ed;
    --aitalks-section-soft: rgba(180, 83, 9, .11);
    --aitalks-section-accent: #b45309;
    --aitalks-section-border: rgba(180, 83, 9, .22);
}

.aitalks-section-lessons {
    --aitalks-section-bg: #f0edf8;
    --aitalks-section-hover: #f0edf8;
    --aitalks-section-soft: rgba(107, 91, 149, .12);
    --aitalks-section-accent: #6b5b95;
    --aitalks-section-border: rgba(107, 91, 149, .23);
}

.aitalks-section-discussion {
    --aitalks-section-bg: #f8efe6;
    --aitalks-section-hover: #f8efe6;
    --aitalks-section-soft: rgba(181, 101, 58, .12);
    --aitalks-section-accent: #b5653a;
    --aitalks-section-border: rgba(181, 101, 58, .22);
}

.aitalks-section-reflection {
    --aitalks-section-bg: #f6edf1;
    --aitalks-section-hover: #f6edf1;
    --aitalks-section-soft: rgba(157, 78, 103, .11);
    --aitalks-section-accent: #9d4e67;
    --aitalks-section-border: rgba(157, 78, 103, .22);
}

.aitalks-section-outline {
    --aitalks-section-bg: #edf5f5;
    --aitalks-section-hover: #edf5f5;
    --aitalks-section-soft: rgba(68, 120, 120, .11);
    --aitalks-section-accent: #447878;
    --aitalks-section-border: rgba(68, 120, 120, .22);
}

.aitalks-section-default {
    --aitalks-section-bg: #f7f4ee;
    --aitalks-section-hover: #f7f4ee;
    --aitalks-section-soft: rgba(120, 92, 56, .1);
    --aitalks-section-accent: #785c38;
    --aitalks-section-border: rgba(120, 92, 56, .18);
}

/* TEASER / FULL HTML CONTENT */
.aitalks-section-teaser {
    position: relative;
    max-height: 12rem;
    overflow: hidden;
}

.aitalks-section-teaser::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .96));
    pointer-events: none;
}

.aitalks-section-teaser ul,
.aitalks-section-teaser ol,
.aitalks-section-full ul,
.aitalks-section-full ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.aitalks-section-teaser li,
.aitalks-section-full li {
    margin-bottom: .4rem;
}

.aitalks-section-teaser p:last-child,
.aitalks-section-full p:last-child {
    margin-bottom: 0;
}

/* READ MORE BUTTON */
.aitalks-read-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid var(--aitalks-section-border, rgba(17, 24, 39, .16));
    background: #fff;
    color: #111827;
    border-radius: 999px;
    padding: .65rem 1rem .65rem 1.15rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.aitalks-read-toggle:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(17, 24, 39, .14);
}

.aitalks-read-toggle:focus {
    box-shadow: 0 0 0 .2rem rgba(17, 24, 39, .18);
}

.aitalks-read-toggle-icon {
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--aitalks-section-accent, #fbbf24);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease;
}

.aitalks-read-toggle:hover .aitalks-read-toggle-icon {
    background: #fff;
    color: #111827;
}


/* OTHER BOOKS */
.aitalks-other-list {
    overflow: hidden;
}

.aitalks-other-list-link {
    position: relative;
    border-radius: .9rem;
    padding-left: .75rem;
    padding-right: .75rem;
    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease,
        color .2s ease;
}

.aitalks-other-list-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65rem;
    bottom: .65rem;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background .2s ease;
}

.aitalks-other-list-link:hover {
    background: linear-gradient(
        90deg,
        rgba(251, 191, 36, .18),
        rgba(251, 191, 36, .06)
    );
    transform: translateX(3px);
    box-shadow: 0 8px 18px rgba(17, 24, 39, .06);
}

.aitalks-other-list-link:hover::before {
    background: #fbbf24;
}

.aitalks-other-list-number {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, .22);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    margin-top: .1rem;
    transition: background .2s ease, transform .2s ease;
}

.aitalks-other-list-link:hover .aitalks-other-list-number {
    background: #fbbf24;
    transform: scale(1.04);
}

.aitalks-other-list-arrow {
    color: #9ca3af;
    transition: transform .2s ease, color .2s ease;
    margin-top: .15rem;
}

.aitalks-other-list-link:hover .aitalks-other-list-arrow {
    color: #111827;
    transform: translateX(4px);
}

.aitalks-other-list-link:hover .line-clamp-2 {
    color: #111827;
}

.aitalks-other-list-link .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .aitalks-content-section-inner {
        padding: 1.55rem;
    }

    .aitalks-content-section .aitalks-detail-content {
        padding: 1.15rem;
    }
}

@media (min-width: 992px) {
    .aitalks-sidebar-sticky {
        position: sticky;
        top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .aitalks-detail-hero {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .aitalks-detail-card .card-body {
        padding: 1.25rem !important;
    }

    .aitalks-section-heading-wrap {
        gap: .75rem !important;
    }

    .aitalks-section-number {
        min-width: 2.25rem;
    }

    .aitalks-detail-content {
        font-size: .96rem;
        line-height: 1.75;
    }

    .aitalks-content-section-inner {
        padding: 1.15rem;
    }

    .aitalks-content-section-icon {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: .85rem;
    }

    .aitalks-content-section .aitalks-detail-content {
        padding: .95rem;
    }
}

/* KEYWORDS */
.aitalks-keyword-count {
    min-width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, .18);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .55rem;
    font-size: .75rem;
    font-weight: 700;
}

.aitalks-keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.aitalks-keyword-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    max-width: 100%;
    border: 1px solid rgba(120, 92, 56, .16);
    background: #fffaf0;
    color: #374151;
    border-radius: 999px;
    padding: .45rem .75rem;
    font-size: .87rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.aitalks-keyword-pill:hover {
    background: #fef3c7;
    border-color: rgba(217, 119, 6, .35);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(120, 92, 56, .08);
}

.aitalks-keyword-mark {
    color: #b45309;
    font-weight: 800;
}

/* GLOSSARY */
.aitalks-glossary-list {
    overflow: hidden;
}

.aitalks-glossary-item {
    border-left: 3px solid rgba(251, 191, 36, .85);
    background: linear-gradient(90deg, rgba(251, 191, 36, .09), rgba(255, 255, 255, .8));
    border-radius: .85rem;
    padding: .75rem .85rem;
}

.aitalks-glossary-term {
    color: #111827;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.aitalks-glossary-definition {
    color: #6b7280;
    font-size: .86rem;
    line-height: 1.55;
    margin: .25rem 0 0;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .aitalks-keyword-pill {
        font-size: .84rem;
        padding: .42rem .68rem;
    }

    .aitalks-glossary-item {
        padding: .7rem .8rem;
    }
}

.aitalks-letter-space {
    letter-spacing: .2em;
}

.aitalks-detail-hero-inner {
    max-width: 940px;
}

.aitalks-detail-lead {
    max-width: 860px;
}

.aitalks-mobile-nav {
    display: block;
}

@media (min-width: 992px) {
    .aitalks-mobile-nav {
        display: none;
    }
}

.aitalks-resource-section {
    margin-top: 2.5rem;
}

.aitalks-resource-stack {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.aitalks-resource-toc {
    border: 1px solid rgba(120, 92, 56, .12);
    border-radius: 1.45rem;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, .18), transparent 34%),
        linear-gradient(180deg, #fff, #fffaf0);
    color: #111827;
    box-shadow: 0 18px 42px rgba(17, 24, 39, .07);
    overflow: hidden;
}

.aitalks-resource-toc-link {
    border: 1px solid rgba(120, 92, 56, .14);
    background: rgba(255, 255, 255, .78);
    color: #111827;
    border-radius: 1rem;
    padding: .85rem 1rem;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.aitalks-resource-toc-link:hover {
    color: #111827;
    background: #fff7ed;
    border-color: rgba(245, 158, 11, .36);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(120, 92, 56, .08);
}

.aitalks-resource-toc-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #fbbf24;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.aitalks-resource-panel {
    border: 1px solid rgba(120, 92, 56, .12);
    border-radius: 1.45rem;
    box-shadow: 0 18px 42px rgba(17, 24, 39, .07);
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, .10), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 250, 240, .96)),
        #fffaf0;
}

.aitalks-resource-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.35rem 0;
}

.aitalks-resource-icon {
    width: 2.95rem;
    height: 2.95rem;
    border-radius: 1rem;
    background: #fff7ed;
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, .14);
}

.aitalks-resource-kicker {
    color: #b45309;
    font-size: .73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .16em;
    margin-bottom: .25rem;
}

.aitalks-resource-body {
    padding: 1rem 1.35rem 1.35rem;
}

.aitalks-resource-content {
    color: #374151;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.aitalks-video-panel {
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, .16), transparent 32%),
        linear-gradient(180deg, #fff, #fffaf0);
    color: #111827;
}

.aitalks-video-panel .aitalks-resource-kicker {
    color: #b45309;
}

.aitalks-video-panel .aitalks-resource-icon {
    background: #fff7ed;
    color: #b45309;
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, .14);
}

.aitalks-video-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aitalks-video-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(120, 92, 56, .12);
    background: rgba(255, 255, 255, .78);
    border-radius: 1.2rem;
    padding: 1rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.aitalks-video-row:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, .28);
    box-shadow: 0 12px 26px rgba(120, 92, 56, .08);
}

.aitalks-video-frame {
    border-radius: 1rem;
    overflow: hidden;
    background: #030712;
    box-shadow: 0 18px 35px rgba(17, 24, 39, .14);
}

.aitalks-video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    padding: 0;
    display: block;
    background: #111827;
    cursor: pointer;
    overflow: hidden;
}

.aitalks-video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .88;
    transition: transform .3s ease, opacity .3s ease;
}

.aitalks-video-placeholder:hover img {
    transform: scale(1.035);
    opacity: .72;
}

.aitalks-video-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aitalks-video-play span {
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, .95);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .25);
    transition: transform .22s ease, background .22s ease;
}

.aitalks-video-placeholder:hover .aitalks-video-play span {
    transform: scale(1.08);
    background: #fbbf24;
}

.aitalks-video-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.aitalks-video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: fit-content;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    padding: .65rem .95rem;
    font-size: .88rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.aitalks-video-link:hover {
    color: #111827;
    background: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(17, 24, 39, .14);
}

.aitalks-video-note {
    padding: 1rem;
}

.aitalks-video-note-title {
    color: #111827;
    font-weight: 800;
    margin-bottom: .75rem;
}

.aitalks-reading-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 250, 240, .94)),
        #fffaf0;
    border: 1px solid rgba(120, 92, 56, .12);
}

.aitalks-reading-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aitalks-reading-item {
    border: 1px solid rgba(120, 92, 56, .12);
    background: rgba(255, 255, 255, .78);
    border-radius: 1.15rem;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.aitalks-reading-item:hover {
    border-color: rgba(245, 158, 11, .28);
    box-shadow: 0 10px 24px rgba(120, 92, 56, .06);
}

.aitalks-reading-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #111827;
    font-weight: 800;
}

.aitalks-reading-trigger:hover {
    background: #fff7ed;
}

.aitalks-reading-trigger-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #fbbf24;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.aitalks-reading-trigger[aria-expanded="true"] .aitalks-reading-trigger-icon {
    transform: rotate(180deg);
}

.aitalks-reading-content {
    padding: 0 1rem 1rem;
}

.aitalks-reading-teaser {
    position: relative;
    max-height: 34rem;
    overflow: hidden;
}

.aitalks-reading-teaser::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5.5rem;
    background: linear-gradient(to bottom, rgba(255, 250, 240, 0), #fffaf0);
    pointer-events: none;
}

.aitalks-prose {
    color: #374151;
    line-height: 1.88;
    font-size: 1rem;
}

.aitalks-prose h1,
.aitalks-prose h2,
.aitalks-prose h3,
.aitalks-prose h4,
.aitalks-prose h5,
.aitalks-prose h6 {
    color: #111827;
    font-weight: 750;
    line-height: 1.25;
    margin: 1.45rem 0 .75rem;
}

.aitalks-prose h1:first-child,
.aitalks-prose h2:first-child,
.aitalks-prose h3:first-child,
.aitalks-prose h4:first-child,
.aitalks-prose p:first-child {
    margin-top: 0;
}

.aitalks-prose p {
    margin-bottom: 1rem;
}

.aitalks-prose strong,
.aitalks-prose b {
    color: #111827;
    font-weight: 800;
}

.aitalks-prose ul,
.aitalks-prose ol {
    padding-left: 1.35rem;
    margin: 0 0 1.15rem;
}

.aitalks-prose li {
    margin-bottom: .45rem;
}

.aitalks-prose blockquote {
    margin: 1.2rem 0;
    padding: 1rem 1.15rem;
    border-left: 4px solid #fbbf24;
    background: #fff7ed;
    border-radius: .85rem;
    color: #374151;
    font-weight: 500;
}

.aitalks-prose a {
    color: #b45309;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.aitalks-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1rem 0;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .1);
}


.aitalks-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 1rem;
}

.aitalks-prose th,
.aitalks-prose td {
    border: 1px solid rgba(120, 92, 56, .14);
    padding: .75rem;
    vertical-align: top;
}

.aitalks-prose th {
    background: rgba(251, 191, 36, .16);
    color: #111827;
    font-weight: 800;
}

.aitalks-resource-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid rgba(17, 24, 39, .16);
    background: #111827;
    color: #fff;
    border-radius: 999px;
    padding: .7rem 1.05rem .7rem 1.2rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(17, 24, 39, .08);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.aitalks-resource-toggle:hover {
    color: #111827;
    background: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(17, 24, 39, .14);
}

.aitalks-resource-toggle-icon {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .2s ease;
}


@media (min-width: 768px) {
    .aitalks-resource-panel-header {
        padding: 1.65rem 1.65rem 0;
    }

    .aitalks-resource-body {
        padding: 1.1rem 1.65rem 1.65rem;
    }

    .aitalks-video-row {
        padding: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .aitalks-video-play span {
        width: 3.6rem;
        height: 3.6rem;
        font-size: 1.25rem;
    }

    .aitalks-reading-teaser {
        max-height: 28rem;
    }
}

.aitalks-pdf-box {
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, .16), transparent 34%),
        linear-gradient(180deg, #ffffff, #fffaf0);
    border: 1px solid rgba(120, 92, 56, .12) !important;
    overflow: hidden;
}

.aitalks-pdf-icon {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 1rem;
    background: #fbbf24;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    box-shadow: 0 10px 22px rgba(251, 191, 36, .22);
}

.aitalks-pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    padding: .7rem 1rem;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid #111827;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.aitalks-pdf-button:hover {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(17, 24, 39, .14);
}

.aitalks-notebook-panel {
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, .14), transparent 32%),
        linear-gradient(180deg, #ffffff, #fffaf0);
}

.aitalks-notebook-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aitalks-notebook-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    padding: .35rem;
    border: 1px solid rgba(120, 92, 56, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    width: fit-content;
    max-width: 100%;
}

.aitalks-notebook-tab {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #374151;
    padding: .65rem 1rem;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.aitalks-notebook-tab:hover {
    background: #fff7ed;
    color: #111827;
}

.aitalks-notebook-tab.active {
    background: #111827;
    color: #fff;
    box-shadow: 0 10px 22px rgba(17, 24, 39, .14);
}

.aitalks-notebook-pane {
    display: none;
}

.aitalks-notebook-pane.active {
    display: block;
}

.aitalks-notebook-card {
    border: 1px solid rgba(120, 92, 56, .12);
    background: rgba(255, 255, 255, .82);
    border-radius: 1.2rem;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .06);
}

.aitalks-notebook-video-wrap {
    border-radius: 1rem;
    overflow: hidden;
    background: #030712;
}

.aitalks-notebook-video {
    width: 100%;
    height: 100%;
    background: #030712;
}

.aitalks-notebook-media-icon {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 1rem;
    background: #fbbf24;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.aitalks-notebook-infographic {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: contain;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .08);
}

@media (max-width: 575.98px) {
    .aitalks-notebook-tab-list {
        width: 100%;
        border-radius: 1.1rem;
    }

    .aitalks-notebook-tab {
        flex: 1 1 auto;
    }
}

.aitalks-notebook-infographic-trigger {
    cursor: zoom-in;
}

.aitalks-notebook-infographic-modal-image {
    max-height: 80vh;
    width: auto;
}

.aitalks-video-key-takeaways-content ul,
.aitalks-video-key-takeaways-content ol {
    margin-left: 0;
    padding-left: 0;
    list-style-position: inside !important;
}

/* ================================
   Homepage Carousel: Tools & Learning
================================ */

.home-carousel {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 1920 / 1029;
    background-color: #ffffff;
}

.home-carousel .carousel-inner,
.home-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.home-carousel__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 991.98px) {
    .home-carousel {
        max-width: 640px;
    }
}

@media (max-width: 767.98px) {
    .home-carousel {
        max-width: 100%;
    }
}