/* 
   =========================================
   STYLE: Webinar "Wakaf Untuk Ahli Waris" 
   ========================================= 
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;800&display=swap');

:root {
  /* Color Palette based on PRD */
  --color-primary-dark: #7A2E1D;
  --color-primary-brown: #8B3A2A;
  --color-accent-orange: #E8702A;
  --color-accent-orange-light: #F0935C;
  --color-cream: #FBE9D0;
  --color-white: #FFFFFF;
  --color-text-dark: #3A2418;
  --color-curtain-red: #A52A1E;
  
  /* Fonts */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --container-padding: 24px;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utility */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-center {
  text-align: center;
}

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* =========================================
   Components
   ========================================= */

/* Button CTA */
.btn-cta {
  display: inline-block;
  background-color: var(--color-accent-orange);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(232, 112, 42, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background-color: var(--color-accent-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 112, 42, 0.5);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-disabled {
  background-color: #A0A0A0 !important;
  color: #FFFFFF !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  pointer-events: none;
}

.alert-closed {
  color: #D32F2F;
  border: 4px solid #D32F2F;
  padding: 10px 30px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 900;
  display: inline-block;
  margin-bottom: 20px;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: rotate(-5deg);
  opacity: 0.9;
  background-color: transparent;
  box-shadow: inset 0 0 0 2px rgba(211, 47, 47, 0.2), 0 0 0 2px rgba(211, 47, 47, 0.2);
}


/* Badge "Webinar Online" */
.badge {
  display: inline-block;
  background-color: var(--color-accent-orange);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* =========================================
   Sections
   ========================================= */

/* Header / Navbar */
.navbar {
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background-color: var(--color-white);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--color-primary-dark);
}

.navbar-logo {
  height: 95px;
  width: auto;
  border-radius: 8px;
}

.navbar-tagline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: none; /* Hide on mobile */
}

/* Hero Section */
.hero {
  padding: 48px 0;
  position: relative;
  background: linear-gradient(135deg, rgba(251,233,208,0.5) 0%, rgba(255,255,255,1) 100%);
}

.hero::before, .hero::after {
  content: '';
  position: absolute;
  top: 0;
  width: 15vw;
  height: 100%;
  background: linear-gradient(180deg, var(--color-curtain-red) 0%, transparent 100%);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.hero::before { left: 0; }
.hero::after { right: 0; }

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
}

.hero-title .text-orange {
  color: var(--color-accent-orange);
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: var(--color-text-dark);
  font-weight: 500;
}

.hero-image-wrap {
  flex: 1;
  position: relative;
}

.hero-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(122, 46, 29, 0.15);
  display: block;
}

/* Topik Pembahasan */
.topics {
  padding: 80px 0;
  background-color: var(--color-white);
}

.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.topics-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topic-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.topic-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
  opacity: 0.9;
}

.topic-text {
  font-size: 1.05rem;
  font-weight: 500;
  padding-top: 8px;
}

/* Speaker Card */
.speaker-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.speaker-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.speaker-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-info {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 24px;
  text-align: center;
  position: relative;
}

.speaker-info::before {
  content: '🎙️';
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--color-accent-orange);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
}

.speaker-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.speaker-name {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.speaker-role {
  font-size: 0.9rem;
  color: var(--color-accent-orange-light);
}

/* Pricing Section */
.pricing {
  padding: 80px 0;
  background-color: var(--color-cream);
}

.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-card {
  background-color: var(--color-white);
  border: 2px dashed var(--color-accent-orange-light);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-accent-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pricing-info {
  flex: 1;
}

.pricing-title {
  font-size: 0.9rem;
  color: var(--color-text-dark);
  margin-bottom: 4px;
  font-weight: 600;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary-dark);
}

/* Benefits Section */
.benefits {
  padding: 80px 0;
  background-color: var(--color-white);
}

.benefit-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
  font-weight: 500;
  background: var(--color-cream);
  padding: 16px 24px;
  border-radius: 12px;
}

.benefit-icon {
  color: var(--color-accent-orange);
  font-size: 1.5rem;
}

/* Info Bar (Live Via) */
.info-bar-section {
  padding: 20px 0;
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.info-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.info-item svg {
  fill: var(--color-accent-orange);
  width: 24px;
  height: 24px;
}

/* CTA Bottom Section */
.cta-bottom {
  padding: 80px 0;
  text-align: center;
  background-color: var(--color-white);
}

/* Footer */
.footer {
  background-color: var(--color-primary-brown);
  color: var(--color-white);
  padding: 60px 0 30px;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.social-link {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--color-accent-orange);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-contact {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-link {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.footer-link a {
  color: var(--color-accent-orange-light);
  font-weight: 600;
  text-decoration: none;
}

.footer-link a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* =========================================
   Media Queries (Tablet & Desktop)
   ========================================= */

@media (min-width: 768px) {
  .navbar-tagline {
    display: block;
  }
  
  .hero .container {
    flex-direction: row;
    align-items: center;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .pricing-cards {
    flex-direction: row;
    justify-content: center;
  }
  
  .pricing-card {
    flex: 1;
    max-width: 300px;
  }
  
  .info-bar {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .topics-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .topic-list {
    flex: 2;
  }
  
  .speaker-card {
    flex: 1;
    max-width: 350px;
    position: sticky;
    top: 40px;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Materi Page Styles (Light Bright Glassmorphism)
   ========================================= */

.text-orange {
  color: var(--color-accent-orange);
}

.materi-page {
  background-color: #FAFAFA; /* Bright White */
  color: var(--color-text-dark); /* Dark Brown text for contrast */
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Glow Effects (Orbs) */
.materi-page::before,
.materi-page::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.materi-page::before {
  width: 600px;
  height: 600px;
  background: rgba(232, 112, 42, 0.25); /* Orange Soft Glow */
  top: -150px;
  right: -150px;
}

.materi-page::after {
  width: 800px;
  height: 800px;
  background: rgba(251, 191, 36, 0.25); /* Yellow/Gold Glow */
  bottom: -300px;
  left: -200px;
}

/* Ensure content stays above ambient glow */
.materi-header, .materi-hero, .materi-content, .footer {
  position: relative;
  z-index: 10;
}

.materi-header {
  background: rgba(255, 255, 255, 0.75); /* Glass Header */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.materi-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
}

.materi-logo i {
  color: var(--color-accent-orange);
}

.materi-hero {
  padding: 80px 0 60px;
  text-align: center;
}

.badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(232, 112, 42, 0.15), rgba(251, 191, 36, 0.15));
  border: 1px solid rgba(232, 112, 42, 0.3);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent-orange);
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(232, 112, 42, 0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-vip i {
  font-size: 1.1rem;
}

.materi-title {
  font-size: 3.5rem;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.materi-subtitle {
  font-size: 1.2rem;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

.wa-card {
  background: rgba(255, 255, 255, 0.7); /* Light Glass */
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.05), inset 0 2px 4px rgba(255,255,255,0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-card:hover {
  transform: translateY(-10px);
  border-color: rgba(37, 211, 102, 0.3);
  box-shadow: 0 40px 80px rgba(0,0,0,0.08), 0 0 40px rgba(37, 211, 102, 0.1);
}

.wa-content h3 {
  color: var(--color-text-dark);
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.wa-content p {
  color: #555555;
  font-size: 1rem;
  margin-bottom: 30px;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366, #1DA851);
  color: var(--color-white);
  padding: 18px 36px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
  transition: all 0.3s ease;
  width: 100%;
}

.btn-wa:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
}

.materi-content {
  padding: 20px 0 100px;
}

.materi-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}

/* Glassmorphism Cards */
.materi-main-card, .materi-sidebar-card {
  background: rgba(255, 255, 255, 0.65); /* Bright Frosted Glass */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 30px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.06), inset 0 2px 5px rgba(255,255,255,0.6);
  color: var(--color-text-dark);
}

.card-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--color-text-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card-header h2 i {
  color: var(--color-accent-orange);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  margin-bottom: 30px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

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

.video-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--color-text-dark);
}

.video-info p {
  color: #666;
  font-size: 1.05rem;
}

.video-parts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.part-btn {
  background: rgba(255, 255, 255, 0.4); /* Very light glass for buttons */
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 100%;
  color: var(--color-text-dark);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.part-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(232, 112, 42, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
}

.part-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(232, 112, 42, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08), 0 0 20px rgba(251, 191, 36, 0.1);
}

.part-btn:hover::before {
  opacity: 1;
}

.part-btn.active {
  background: #FFFFFF;
  border-color: var(--color-accent-orange);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05), inset 4px 0 0 var(--color-accent-orange);
}

.part-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.08);
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.part-btn:hover .part-num {
  color: rgba(232, 112, 42, 0.5);
}

.part-btn.active .part-num {
  color: var(--color-accent-orange);
}

.part-details {
  flex: 1;
  position: relative;
  z-index: 2;
}

.part-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
  line-height: 1.4;
  color: var(--color-text-dark);
}

.part-duration {
  font-size: 0.85rem;
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
}

.part-btn.active .part-duration {
  color: var(--color-accent-orange);
}

.downloads-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.download-item h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-text-dark);
}

.download-item p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-divider {
  border: none;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  margin: 0;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cta {
  background: linear-gradient(135deg, #FBBF24, var(--color-accent-orange)); /* Yellow to Orange */
  color: var(--color-white) !important;
  border: none;
  box-shadow: 0 10px 20px rgba(232, 112, 42, 0.2);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(232, 112, 42, 0.4);
  background: linear-gradient(135deg, #FCD34D, #F97316); /* Brighter Yellow to Orange */
}

.btn-disabled {
  background: rgba(0, 0, 0, 0.05) !important;
  color: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.footer {
  background: var(--color-white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: #666;
}

@media (max-width: 1200px) {
  .materi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .materi-title {
    font-size: 2.5rem;
  }
  
  .materi-main-card, .materi-sidebar-card {
    padding: 24px;
    border-radius: 24px;
  }
  
  .video-parts-list {
    grid-template-columns: 1fr;
  }
  
  .wa-card {
    padding: 24px;
  }
}
