@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Inter:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #fdfbfb;
  color: #2d2d2d;
  line-height: 1.6;
}

/* ============================= */
/* HERO */
/* ============================= */

header.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)),
              url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&q=80&w=2000')
              center/cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  max-width: 780px;
  z-index: 2;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero p.tagline {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.cta-button {
  display: inline-block;
  background-color: #ff6b81;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255,107,129,0.3);
}

.cta-button:hover {
  background-color: #ff4d6e;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255,107,129,0.4);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid white;
  margin-left: 20px;
}

.cta-button.secondary:hover {
  background: rgba(255,255,255,0.15);
}

/* ============================= */
/* NAVIGATION */
/* ============================= */

nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  padding: 20px;
  text-align: center;
  z-index: 10;
}

nav a {
  color: white;
  margin: 0 18px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.25s;
}

nav a:hover {
  color: #ff6b81;
  transform: scale(1.05);
}

/* ============================= */
/* MAIN LAYOUT */
/* ============================= */

main {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
}

/* ============================= */
/* FEATURE CARDS */
/* ============================= */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin: 60px 0;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

/* 🔑 IMAGE NORMALIZATION FIX (IMPORTANT) */
.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.card h3 {
  color: #ff6b81;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* ============================= */
/* SECTION TITLES */
/* ============================= */

h2.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: #1a1a1a;
  margin-bottom: 50px;
}

/* ============================= */
/* FOOTER */
/* ============================= */

footer {
  background: #2d2d2d;
  color: #ccc;
  text-align: center;
  padding: 50px 20px 30px;
  margin-top: 100px;
}

footer p {
  margin: 10px 0;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {
  .hero {
    height: 80vh;
    min-height: 500px;
  }

  nav a {
    margin: 0 12px;
    font-size: 1rem;
  }

  .cta-button {
    padding: 12px 28px;
  }
}

/* ============================= */
/* CHAPTER SECTION */
/* ============================= */

.chapters {
  margin: 100px auto;
  max-width: 1200px;
  padding: 0 20px;
  text-align: center;
}

.chapters .section-description {
  max-width: 760px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

/* ============================= */
/* CHAPTER GRID */
/* ============================= */

.chapter-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

/* ============================= */
/* CHAPTER CARD */
/* ============================= */

.chapter-card {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 26px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.chapter-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: #111;
  font-weight: 600;
}

.chapter-card p {
  font-size: 0.98rem;
  color: #555;
  line-height: 1.6;
}

/* ============================= */
/* CHAPTER HOVER */
/* ============================= */

.chapter-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.chapter-card:hover h3 {
  color: #5b2df8;
}

/* ============================= */
/* CHAPTER MOBILE */
/* ============================= */

@media (max-width: 600px) {
  .chapter-card {
    padding: 24px 22px;
  }

  .chapter-card h3 {
    font-size: 1.15rem;
  }
}
