/* ============================================
   BIBLE STORIES ANIMATED — Website Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #FFB627;
  --gold-light: #FFD166;
  --gold-dark: #E09F00;
  --brown-dark: #1B1145;
  --brown: #2D1B69;
  --brown-medium: #4A3080;
  --brown-light: #8B6914;
  --cream: #FFFDF7;
  --cream-dark: #FFF0D6;
  --parchment: #FFF8EC;
  --text-dark: #1B1145;
  --text-body: #3A2D5C;
  --text-light: #6B5E8A;
  --white: #FFFFFF;
  --shadow: rgba(27, 17, 69, 0.12);
  --shadow-heavy: rgba(27, 17, 69, 0.25);

  /* Colorful accents */
  --coral: #FF6B6B;
  --teal: #4ECDC4;
  --sky: #45B7D1;
  --lavender: #A78BFA;
  --peach: #FBBF77;
  --mint: #6BCB77;
  --rose: #FF8FA3;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text-body);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  color: var(--text-dark);
  line-height: 1.3;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--brown-dark);
  padding: 0 2rem;
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 1px;
}

.nav-logo span {
  color: var(--cream);
  font-weight: normal;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--cream-dark);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--gold);
  transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1B1145 0%, #2D1B69 30%, #4A3080 60%, #6B4CA0 100%);
  color: var(--cream);
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Hero with cover image */
.hero-cover {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.hero-cover .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(27, 17, 69, 0.95) 0%,
    rgba(27, 17, 69, 0.6) 30%,
    rgba(27, 17, 69, 0.3) 60%,
    rgba(27, 17, 69, 0.15) 100%
  );
  z-index: 0;
}

.hero-cover .hero-content {
  z-index: 2;
}

.hero-cover h1 {
  font-size: 4.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  letter-spacing: 2px;
}

.hero-cover h1 em {
  color: var(--gold);
  font-style: italic;
}

.hero-quote {
  font-style: italic;
  font-size: 1.4rem !important;
  color: var(--gold-light) !important;
  opacity: 1 !important;
  margin-bottom: 0.5rem !important;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(78, 205, 196, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 182, 39, 0.2) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(255, 209, 102, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 70% 30%, rgba(167, 139, 250, 0.08) 0%, transparent 40%);
  animation: slowRotate 30s linear infinite;
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 168, 67, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--cream);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero p {
  font-size: 1.25rem;
  color: var(--cream-dark);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #FFD166);
  color: var(--brown-dark);
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(255, 182, 39, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FFD166, var(--gold));
  color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 182, 39, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--brown-dark);
  transform: translateY(-2px);
}

/* --- Sections --- */
.section {
  padding: 5rem 2rem;
}

.section-dark {
  background: var(--brown-dark);
  color: var(--cream);
}

.section-alt {
  background: var(--parchment);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header h2 {
  color: var(--gold);
}

.section-dark .section-header p {
  color: var(--cream-dark);
  opacity: 0.8;
}

/* --- Featured Episode --- */
.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.featured-video {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px var(--shadow-heavy);
  aspect-ratio: 16/9;
  background: var(--brown);
}

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

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
  color: var(--gold);
  font-size: 1.2rem;
  gap: 1rem;
}

.play-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.play-icon:hover {
  background: var(--gold);
  color: var(--brown-dark);
  transform: scale(1.1);
}

.featured-info h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.featured-info .episode-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--brown-dark);
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.featured-info .scripture-ref {
  color: var(--gold-dark);
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.featured-info p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* --- Episode Grid --- */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.episode-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(167, 139, 250, 0.1);
}

.episode-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-heavy);
  border-color: var(--gold);
}

.episode-card:nth-child(1) .episode-card-image { background: linear-gradient(135deg, #FF6B6B, #FF8FA3); }
.episode-card:nth-child(2) .episode-card-image { background: linear-gradient(135deg, #4ECDC4, #45B7D1); }
.episode-card:nth-child(3) .episode-card-image { background: linear-gradient(135deg, #FFB627, #FBBF77); }
.episode-card:nth-child(4) .episode-card-image { background: linear-gradient(135deg, #A78BFA, #C4B5FD); }
.episode-card:nth-child(5) .episode-card-image { background: linear-gradient(135deg, #6BCB77, #4ECDC4); }
.episode-card:nth-child(6) .episode-card-image { background: linear-gradient(135deg, #FF8FA3, #FBBF77); }
.episode-card:nth-child(7) .episode-card-image { background: linear-gradient(135deg, #45B7D1, #A78BFA); }
.episode-card:nth-child(8) .episode-card-image { background: linear-gradient(135deg, #FFB627, #FF6B6B); }
.episode-card:nth-child(9) .episode-card-image { background: linear-gradient(135deg, #6BCB77, #45B7D1); }
.episode-card:nth-child(10) .episode-card-image { background: linear-gradient(135deg, #FF6B6B, #A78BFA); }
.episode-card:nth-child(11) .episode-card-image { background: linear-gradient(135deg, #FBBF77, #FF6B6B); }
.episode-card:nth-child(12) .episode-card-image { background: linear-gradient(135deg, #FFD166, #FFB627); }

.episode-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.episode-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-number {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--brown-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.episode-card-body {
  padding: 1.5rem;
}

.episode-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.episode-card-body .scripture {
  color: var(--gold-dark);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.episode-card-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.episode-status {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-available {
  background: #E8F5E9;
  color: #2E7D32;
}

.status-coming {
  background: #FFF3E0;
  color: #E65100;
}

/* --- Storybook Grid --- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.book-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: translateY(-4px);
}

.book-cover {
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  padding: 2rem;
}

.book-card:nth-child(1) .book-cover { background: linear-gradient(135deg, #FF6B6B, #C94C6C); }
.book-card:nth-child(2) .book-cover { background: linear-gradient(135deg, #4ECDC4, #2A9D8F); }
.book-card:nth-child(3) .book-cover { background: linear-gradient(135deg, #FFB627, #E09F00); }
.book-card:nth-child(4) .book-cover { background: linear-gradient(135deg, #A78BFA, #7C5CBF); }

.book-cover h4 {
  color: var(--gold-light);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.book-cover p {
  color: var(--cream-dark);
  font-size: 0.9rem;
  opacity: 0.7;
}

.book-card-body {
  padding: 1.5rem;
}

.book-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.book-card-body .book-price {
  color: var(--gold-dark);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* --- Lessons Section --- */
.lesson-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.lesson-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  border-left: 5px solid var(--gold);
  transition: transform 0.3s ease;
}

.lesson-card:hover {
  transform: translateY(-4px);
}

.lesson-card:nth-child(1) { border-left-color: var(--coral); }
.lesson-card:nth-child(2) { border-left-color: var(--teal); }
.lesson-card:nth-child(3) { border-left-color: var(--gold); }
.lesson-card:nth-child(4) { border-left-color: var(--lavender); }
.lesson-card:nth-child(5) { border-left-color: var(--mint); }
.lesson-card:nth-child(6) { border-left-color: var(--sky); }

.lesson-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.lesson-card .lesson-age {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--text-body);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.lesson-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.lesson-card ul {
  list-style: none;
  padding: 0;
}

.lesson-card ul li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-body);
}

.lesson-card ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: bold;
}

/* --- About / Mission Section --- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.mission-item {
  text-align: center;
  padding: 2rem;
}

.mission-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
}

.mission-item:nth-child(1) .mission-icon {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 143, 163, 0.2));
  border: 2px solid var(--coral);
}

.mission-item:nth-child(2) .mission-icon {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(69, 183, 209, 0.2));
  border: 2px solid var(--teal);
}

.mission-item:nth-child(3) .mission-icon {
  background: linear-gradient(135deg, rgba(255, 182, 39, 0.2), rgba(251, 191, 119, 0.2));
  border: 2px solid var(--gold);
}

.section-dark .mission-item h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-dark .mission-item p {
  color: var(--cream-dark);
  opacity: 0.8;
  font-size: 0.95rem;
}

/* --- Subscribe / Newsletter --- */
.subscribe-section {
  text-align: center;
  background: linear-gradient(135deg, #2D1B69 0%, #1B1145 40%, #4A3080 100%);
  color: var(--cream);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.subscribe-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(78, 205, 196, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 40%);
}

.subscribe-section h2 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.subscribe-section p {
  color: var(--cream-dark);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.subscribe-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0.5rem;
}

.subscribe-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: 2px solid rgba(212, 168, 67, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  border-radius: 6px;
  font-family: 'Georgia', serif;
  font-size: 1rem;
}

.subscribe-form input::placeholder {
  color: rgba(255, 248, 238, 0.5);
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--gold);
}

/* --- Footer --- */
.footer {
  background: #1A0E08;
  color: var(--cream-dark);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul a {
  color: var(--cream-dark);
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer ul a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 168, 67, 0.2);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* --- Bible Disclaimer Banner --- */
.bible-disclaimer {
  background: linear-gradient(135deg, #2D1B69, #1B1145);
  color: var(--cream-dark);
  text-align: center;
  padding: 0.8rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--gold);
  position: relative;
  z-index: 1001;
}

.bible-disclaimer strong {
  color: var(--gold);
}

.bible-disclaimer a {
  color: var(--gold);
  text-decoration: underline;
}

.bible-disclaimer a:hover {
  color: var(--gold-light);
}

/* Adjust nav position for disclaimer */
body.has-disclaimer .nav {
  top: 0;
}

/* --- Page Header (for inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 100%);
  color: var(--cream);
  padding: 8rem 2rem 3rem;
  text-align: center;
}

.page-header h1 {
  color: var(--gold);
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--cream-dark);
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* --- 3D Floating Elements in Hero --- */
.hero-float {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  z-index: 0;
  filter: blur(1px);
}

.hero-float-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--coral), var(--rose));
  top: 10%;
  left: -5%;
  animation: float3d-1 8s ease-in-out infinite;
}

.hero-float-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  top: 60%;
  right: -3%;
  animation: float3d-2 10s ease-in-out infinite;
}

.hero-float-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--gold), var(--peach));
  bottom: 15%;
  left: 15%;
  animation: float3d-3 7s ease-in-out infinite;
}

.hero-float-4 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--lavender), var(--rose));
  top: 20%;
  right: 15%;
  animation: float3d-1 9s ease-in-out infinite reverse;
}

.hero-float-5 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  bottom: 30%;
  right: 25%;
  animation: float3d-2 6s ease-in-out infinite reverse;
}

@keyframes float3d-1 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  25% { transform: translate3d(30px, -40px, 50px) rotate(90deg) scale(1.1); }
  50% { transform: translate3d(-20px, -60px, 30px) rotate(180deg) scale(0.95); }
  75% { transform: translate3d(40px, -20px, 60px) rotate(270deg) scale(1.05); }
}

@keyframes float3d-2 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33% { transform: translate3d(-30px, 30px, 40px) rotate(120deg); }
  66% { transform: translate3d(20px, -40px, 20px) rotate(240deg); }
}

@keyframes float3d-3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -30px, 40px) scale(1.15); }
}

/* --- 3D Card Tilt Effect --- */
.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
}

/* --- 3D Episode Cards --- */
.episode-card {
  perspective: 800px;
  transform-style: preserve-3d;
}

.episode-card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
}

.episode-card-image {
  transform: translateZ(0);
  transition: transform 0.4s ease;
}

.episode-card:hover .episode-card-image {
  transform: translateZ(15px) scale(1.02);
}

/* --- 3D Book Cards --- */
.book-card {
  perspective: 800px;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.book-card:hover {
  transform: rotateY(-8deg) translateZ(20px);
}

.book-cover {
  transform: translateZ(0);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.book-card:hover .book-cover {
  transform: translateZ(30px);
  box-shadow: -8px 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- 3D Play Button --- */
.play-icon {
  transform: translateZ(0);
  transition: all 0.4s ease;
}

.play-icon:hover {
  transform: translateZ(30px) scale(1.15);
  box-shadow: 0 0 40px rgba(255, 182, 39, 0.5);
}

/* --- Floating animation for Subscribe section --- */
.subscribe-section h2,
.subscribe-section p,
.subscribe-form {
  position: relative;
  z-index: 1;
}

/* --- Parallax scroll hint --- */
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .featured {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-cover h1 {
    font-size: 2.8rem;
  }

  .hero-quote {
    font-size: 1.1rem !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--brown-dark);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 0.5rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .episode-grid {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lesson-list {
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 7rem 1.5rem 2.5rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-cover h1 {
    font-size: 2.2rem;
  }

  .hero-quote {
    font-size: 1rem !important;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
