/* ===== GLOBAL RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: #fff;
  color: #e9f3ef;
  overflow-x: hidden;
}

:root {
  --hero-start: #0d2a25;
  --hero-end: #180d6b;
  --accent: #eaf2f6;
  --accent-2: #2587e2;
  --ink-dim: #2c95e1;
  --container: min(1200px, 92vw);

  /* Section 2 variables */
  --size: clamp(220px, 30vw, 260px);
  --invest-1: #c7cdd5;
  --invest-2: #aab1bb;
  --create-1: #0a2344;
  --create-2: #0d335f;
  --perform-1: #26e7ff;
  --perform-2: #08b9d6;
  --ink: #0b1830;
  --pill: #bfe7ff;
  --hover-glow: 0 12px 28px rgba(8, 185, 214, 0.3), 0 6px 16px rgba(0, 0, 0, 0.14);
}

.course-top-banner {
  background: linear-gradient(135deg, #001b3a, #003366, #004080);
  color: white;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
  border-bottom: 2px solid #0b3d91;
}

.course-top-content .subtitle {
  font-size: 14px;
  letter-spacing: 2px;
  color: #9ec8ff;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: 600;
}

.course-top-content h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
}

.course-top-content .stars {
  color: #ffb84d;
  font-size: 22px;
  letter-spacing: 5px;
  margin-bottom: 20px;
}

.course-top-content .students {
  font-size: 16px;
  color: #d1e4ff;
  font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .course-top-content h1 {
    font-size: 28px;
  }
  .course-top-banner {
    padding: 60px 15px;
  }
}
/* ==========================================
   COURSE TITLE INSIDE HERO
========================================== */
.hero__course-title {
  grid-column: 1 / -1;
  text-align: center;
  padding: 10px 20px 10px;
  color: #fff;
}

.hero__course-title h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 18px;
}

.course-stars {
  font-size: 26px;
  color: #ffcc33;
  margin-bottom: 10px;
  letter-spacing: 6px;
}

.enrolled-count {
  font-size: 18px;
  color: #cfd8ff;
  margin-bottom: 25px;
}

.hero-divider {
  width: 80%;
  margin: 0 auto;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.22);
}

/* Mobile */
@media (max-width: 768px) {
  .hero__course-title h2 {
    font-size: 28px;
  }
  .course-stars {
    font-size: 20px;
    letter-spacing: 4px;
  }
}


/* ===== HERO SECTION ===== */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr; /* Text | Video | Info */
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 60px;
  min-height: 90vh;
  background: linear-gradient(120deg, #0a1445, #0b0f2b 40%, #1e1a72);
  color: #fff;
  overflow: hidden;
}

/* LEFT TEXT */
.hero__title {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.2;
}
.hero__title-accent {
  color: #00aaff;
  text-shadow: 0 0 20px rgba(0, 174, 255, 0.3);
}
.hero__subtitle {
  margin-top: 20px;
  font-size: 18px;
  color: #cfd9ff;
  max-width: 420px;
}

/* CENTER VIDEO */
.hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.media-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}
.media-card:hover {
  transform: scale(1.03);
}
.media-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(45deg, #007bff, #7f00ff);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 25px rgba(0, 174, 255, 0.6);
  transition: all 0.3s ease;
}
.media-card__play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
.play__icon {
  fill: white;
  width: 36px;
  height: 36px;
}

/* RIGHT COURSE BOX */
.hero__meta {
  background: rgba(255, 255, 255, 0.08);
  padding: 35px;
  border-radius: 12px;
  max-width: 380px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.course-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}
.course-details {
  list-style: none;
  padding: 0;
}
.course-details li {
  font-size: 15px;
  margin: 12px 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}
.course-details li i {
  color: #00c8ff;
  font-size: 18px;
}
.course-details li:hover {
  transform: translateX(6px);
  color: #00c8ff;
}

/* VIDEO MODAL */
.videobox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.videobox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
}
.videobox__inner {
  position: relative;
  width: min(960px, 92vw);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}
.videobox__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.videobox iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
    padding: 80px 20px;
  }
  .hero__meta {
    margin: auto;
  }
  .media-card {
    max-width: 500px;
  }
}


/* ===== SECTION 2 — OUR APPROACHES ===== */
.approaches {
  padding: clamp(36px, 6vw, 72px) 0;
  background: url('/assets/WhatsApp Image 2025-10-16 at 17.58.19.jpeg') center/cover no-repeat, #d1eaff;
  color: var(--ink);
  position: relative;
}

.approaches__container {
  width: min(1200px, 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.approaches__visual {
  position: relative;
  width: calc(var(--size) * 2.25);
  height: calc(var(--size) * 1.95);
  isolation: isolate;
}

.approaches__visual::after {
  content: "";
  position: absolute;
  left: calc(50% - var(--size) * 0.12);
  top: calc(var(--size) * 0.88);
  width: calc(var(--size) * 0.26);
  height: calc(var(--size) * 0.26);
  background: #fff;
  border-radius: 50%;
  z-index: 0;
}

.bubble {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #170202;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.28s ease, opacity 0.2s ease, box-shadow 0.28s ease;
  outline: none;
}

.bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 35% 30%, rgba(255, 255, 255, 0.22) 0 45%, transparent 45%),
    var(--bubble-bg, #000);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.bubble__inner {
  width: 76%;
  position: relative;
  z-index: 1;
  text-align: left;
  padding-left: 10px;
}

.bubble__icon {
  width: 50px;
  height: 60px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.bubble__title {
  display: block;
  font-weight: 1000;
  font-size: clamp(16px, 2.35vw, 25px);
  line-height: 1.1;
  margin-bottom: 4px;
  color: #060606;
}

.bubble__desc {
  font-size: clamp(11.5px, 1.05vw, 13px);
  line-height: 1.35;
  opacity: 0.95;
  margin-left: 10px;
}

/* Circle positions */
.bubble--invest {
  --bubble-bg: linear-gradient(180deg, var(--invest-1), var(--invest-2));
  left: calc(50% - var(--size) / 2);
  top: 0;
}

.bubble--create {
  --bubble-bg: linear-gradient(180deg, var(--create-1), var(--create-2));
  left: calc(50% - var(--size) * 0.99);
  top: calc(var(--size) * 0.85);
}

.bubble--perform {
  --bubble-bg: linear-gradient(180deg, var(--perform-1), var(--perform-2));
  left: calc(50% + var(--size) * 0.01);
  top: calc(var(--size) * 0.85);
}

.approaches__visual:hover .bubble,
.approaches__visual:focus-within .bubble {
  opacity: 0.9;
}

.bubble:hover,
.bubble:focus-visible {
  opacity: 1;
  transform: scale(1.045);
  box-shadow: var(--hover-glow);
  z-index: 2;
}

.approaches__content {
  display: grid;
  justify-items: start;
}

.approaches__heading {
  margin: 0;
  font-weight: 800;
  margin-top: 100px;
  color: #041e4e;
  font-size: clamp(26px, 4.2vw, 48px);
  letter-spacing: -0.02em;
}

.approaches__heading > span {
  display: inline-block;
  padding: 0.55em 0.9em;
  /*background: var(--pill);*/
  border-radius: 16px;
}

/* Responsive Approaches Section */
@media (max-width: 1024px) {
  :root {
    --size: clamp(240px, 34vw, 300px);
  }

  .approaches__container {
    grid-template-columns: 1fr;
  }

  .approaches__content {
    justify-items: center;
    margin-top: 60px;
  }

  .approaches__heading {
    text-align: center;
  }

  .approaches__visual {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --size: clamp(200px, 70vw, 260px);
  }

  .approaches__visual {
    width: 100%;
    height: calc(var(--size) * 3);
  }

  .bubble--invest {
    left: calc(50% - var(--size) / 2);
    top: 0;
  }

  .bubble--create {
    left: calc(50% - var(--size) / 2);
    top: calc(var(--size) * 1.05);
  }

  .bubble--perform {
    left: calc(50% - var(--size) / 2);
    top: calc(var(--size) * 2.1);
  }

  .bubble__inner {
    width: 84%;
    text-align: center;
  }
}
/* ===== SECTION ===== */
.book-section{
  padding:60px 20px 80px;
  background:linear-gradient(to bottom,#fbf5ee,#f2ece4);
  text-align:center;
}

.book-heading{
  font-size:30px;
  margin-bottom:28px;
  color:#333;
}

/* ===== BOOK WRAPPER ===== */
.book-shell{
  width:640px;          /* total book width */
  height:380px;         /* reduced height */
  margin:0 auto;
  position:relative;
  perspective:2200px;
}

/* ===== COVER (FIRST STATE) ===== */
.book-cover{
  position:absolute;
  inset:0;
  background:#fff;
  border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,.25);
  overflow:hidden;
  transform-origin:left center;
  transition:transform 1.1s ease, opacity .7s ease;
  cursor:pointer;
}

.book-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ===== INNER BOOK ===== */
.book-inner{
  position:absolute;
  inset:0;
  display:flex;
  justify-content:space-between;
  opacity:0;
  pointer-events:none;
  transform-style:preserve-3d;
}

/* Spread = 2 pages */
.spread{
  position:absolute;
  inset:0;
  display:flex;
  justify-content:space-between;
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
}

/* visible spread */
.spread.active{
  opacity:1;
  pointer-events:auto;
}

/* PAGES */
.page{
  width:50%;
  height:100%;
  background:#ffffff;
  overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,.18);
}

.page.left{
  border-radius:14px 0 0 14px;
}

.page.right{
  border-radius:0 14px 14px 0;
  transform-origin:left center;   /* for flip */
}

/* page images */
.page img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:10px;
}

/* small inner shadow at gutter */
.page.left::after,
.page.right::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:18px;
  pointer-events:none;
}

.page.left::after{
  right:-1px;
  background:linear-gradient(to right,rgba(0,0,0,0.12),transparent);
}

.page.right::before{
  left:-1px;
  background:linear-gradient(to left,rgba(0,0,0,0.12),transparent);
}

/* ===== STATES WHEN BOOK OPENS ===== */
.book-shell.open .book-cover{
  transform:rotateY(-180deg);
  opacity:0;
}

.book-shell.open .book-inner{
  opacity:1;
  pointer-events:auto;
}

/* ===== PAGE TURN ANIMATION ===== */

/* class added when flipping */
.spread.turning .page.right{
  animation:pageFlip 0.9s forwards;
}

/* right-page flip keyframes */
@keyframes pageFlip{
  0%   { transform:rotateY(0deg); }
  45%  { transform:rotateY(-100deg); }
  100% { transform:rotateY(-180deg); }
}

/* subtle hover on right page */
.turn-trigger:hover{
  transform:scale(1.02);
  box-shadow:0 20px 50px rgba(0,0,0,.22);
}

/* help text */
.book-help{
  margin-top:14px;
  font-size:13px;
  color:#666;
}

/* ===== MOBILE ===== */
@media(max-width:768px){
  .book-shell{
    width:92%;
    height:320px;
  }
} 
.page {
  position:relative;
  backface-visibility:hidden;
  transform-style:preserve-3d;
}

.page .back {
  position:absolute;
  inset:0;
  transform:rotateY(180deg);
  backface-visibility:hidden;
}
.spread {
  position:absolute;
  inset:0;
  display:flex;
  justify-content:space-between;
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
  z-index:1;
}

.spread.active {
  opacity:1;
  pointer-events:auto;
  z-index:5;
}

.spread.turning {
  z-index:10; /* turning page stays above everything */
}

.spread.next-under {
  z-index:4; /* under the turning page */
}

/* ===== SECTION 3 — COURSES ===== */
.courses-section {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), #ffffff);
  padding: 40px 20px;
}

.courses-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-heading {
  color: #020144;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-content: center;       /* center grid content */
  justify-items: center;         /* center items within each grid cell */
  margin: 0 auto;                /* center the grid container itself */
  max-width: 1000px;  
  height: 400px;           /* prevents too wide layout */
  padding: 0 20px;               /* equal side padding */
  box-sizing: border-box;
}

.course-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-left: 0;
}

.course-card:hover {
  transform: scale(1.05);
}

.course-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #ddd;
}

.course-content {
  padding: 20px;
}

.course-content h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.course-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive Courses */
@media (max-width: 768px) {
  .section-heading {
    font-size: 2rem;
  }

  .courses {
    grid-template-columns: 1fr;
  }

  .course-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .section-heading {
    font-size: 1.5rem;
  }

  .course-content h3 {
    font-size: 1.25rem;
  }

  .course-content p {
    font-size: 0.9rem;
  }
}
