/* ==========================================================================
   DESIGN SYSTEM & LUXURY EDITORIAL STYLING (ShelbySapp Style Edition)
   Khóa học: Nghệ thuật thuyết phục khách hàng giá cao - ThS. Hoàng Hoà Bình
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Editorial Cream & Dark Obsidian */
  --bg-cream: #faf7f2;
  --bg-cream-alt: #f3eee7;
  --bg-dark: #121212;
  --bg-dark-card: #1a1a1a;
  
  --text-dark: #121212;
  --text-dark-muted: #555555;
  --text-light: #ffffff;
  --text-light-muted: #a0a0a0;

  --accent-gold: #c5a059;
  --accent-gold-hover: #b08b44;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif;

  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* Floating Collab Preview Widget at bottom right */
.floating-collab-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  background: #ffffff;
  border: 1px solid #121212;
  padding: 16px;
  max-width: 240px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  font-size: 0.8rem;
  text-align: center;
}

.floating-collab-widget h5 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.floating-collab-widget p {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 12px;
}

.floating-collab-widget .btn-mini {
  display: inline-block;
  background: #121212;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
}

/* Announcement Top Bar */
.announcement-bar {
  background: #121212;
  color: #ffffff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.announcement-bar a {
  color: var(--accent-gold);
  font-weight: 600;
  margin-left: 8px;
  text-decoration: underline;
}

/* Header & Navigation */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #121212;
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-logo span {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-gold);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  color: #121212;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

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

/* Hero Section */
.hero-shelby {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #121212;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.5;
  filter: grayscale(15%);
}

.hero-overlay-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  padding: 60px 24px;
  width: 100%;
}

.hero-shelby-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 28px;
  line-height: 1.15;
  text-transform: uppercase;
  width: 100%;
}

.hero-shelby-title .line-1,
.hero-shelby-title .line-2 {
  display: block;
  white-space: nowrap;
  word-break: keep-all;
}

.hero-shelby-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #e5e5e5;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.btn-outline-box {
  display: inline-block;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 18px 40px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-outline-box:hover {
  background: #ffffff;
  color: #121212;
}

/* Press / Credibility Bar */
.press-bar {
  background: #121212;
  border-top: 1px solid #222;
  padding: 18px 0;
  color: #888;
  text-align: center;
}

.press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 2px;
  opacity: 0.7;
  flex-wrap: wrap;
}

/* Overlapping Editorial 3-Photo Collage Section (Section 2) */
.editorial-section {
  padding: 100px 0 120px;
  background: var(--bg-cream);
}

.section2-top-header {
  text-align: center;
  margin-bottom: 50px;
}

.section2-intro-tag {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent-gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.section2-main-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  word-break: keep-all;
  color: #121212;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.editorial-left-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: #121212;
}

.editorial-photos-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  width: 100%;
}

.photo-card-stack {
  position: absolute;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  transition: transform 0.4s ease, left 0.4s ease, right 0.4s ease;
}

.photo-card-left {
  width: 230px;
  height: 330px;
  left: -20px;
  top: 50px;
  z-index: 1;
  transform: rotate(-4deg);
}

.photo-card-center {
  width: 260px;
  height: 430px;
  z-index: 3;
  border: 4px solid #ffffff;
}

.photo-card-right {
  width: 230px;
  height: 340px;
  right: -20px;
  top: 40px;
  z-index: 2;
  transform: rotate(4deg);
}

.photo-card-stack:hover {
  z-index: 10;
  transform: scale(1.05) rotate(0deg);
}

.photo-card-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-right-box {
  padding-left: 20px;
}

.editorial-right-box p {
  color: var(--text-dark-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Story Section */
.story-shelby-section {
  padding: 100px 0;
  background: var(--bg-cream-alt);
  border-top: 1px solid #eae6df;
  border-bottom: 1px solid #eae6df;
}

.story-shelby-container {
  max-width: 900px;
  margin: 0 auto;
}

.story-header-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.story-header-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-bottom: 40px;
}

.story-text-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.1rem;
  line-height: 1.85;
  color: #2b2b2b;
}

.story-text-block p strong {
  color: #121212;
  font-weight: 700;
}

/* Fun Facts Section */
.fun-facts-section {
  background: var(--bg-dark);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
}

.fun-facts-left {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fun-facts-tag {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 40px;
  font-weight: 700;
}

.fun-facts-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.fun-fact-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid #2a2a2a;
}

.fun-fact-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: #555;
  line-height: 1;
}

.fun-fact-content h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #ffffff;
}

.fun-fact-content p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #aaaaaa;
}

.fun-facts-right {
  position: relative;
  overflow: hidden;
}

.fun-facts-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ALL ABOUT vs NOT ABOUT Section */
.about-comparison-section {
  padding: 100px 0;
  background: var(--bg-cream);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.comp-card {
  padding: 50px 40px;
  border-radius: 4px;
}

.comp-card.all-about {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.comp-card.not-about {
  background: #121212;
  color: #ffffff;
}

.comp-tag {
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.comp-card.all-about .comp-tag {
  color: var(--accent-gold);
}

.comp-card.not-about .comp-tag {
  color: #ff6b6b;
}

.comp-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.comp-card p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.comp-card.all-about p {
  color: var(--text-dark-muted);
}

.comp-card.not-about p {
  color: #cccccc;
}

/* Curriculum Accordions Section */
.curriculum-shelby-section {
  padding: 100px 0;
  background: var(--bg-cream-alt);
}

.curriculum-shelby-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.curriculum-banner-img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  display: block;
}

.module-accordion-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
}

.module-accordion-header {
  padding: 24px 30px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 30px;
  font-size: 0.95rem;
  color: var(--text-dark-muted);
}

.module-accordion-item.active .module-accordion-body {
  max-height: 400px;
  padding: 0 30px 24px;
  border-top: 1px solid #f0f0f0;
}

/* Registration Section */
.collab-section {
  padding: 100px 0;
  background: var(--bg-cream);
  text-align: center;
}

.collab-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}

.collab-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 400;
}

.collab-desc {
  font-size: 1.25rem;
  color: var(--text-dark-muted);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.btn-solid-black {
  display: inline-block;
  background: #121212;
  color: #ffffff;
  padding: 18px 40px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-solid-black:hover {
  background: var(--accent-gold);
}

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border: 1px solid #121212;
  max-width: 500px;
  width: 100%;
  padding: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input, .form-select {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: #121212;
}

/* Footer */
.footer {
  background: #121212;
  color: #888888;
  padding: 60px 0 30px;
  font-size: 0.85rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 12px;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OVERHAUL (FIX ALL SCREEN CUTOFFS & OVERLAPS)
   ========================================================================== */

@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .container {
    padding: 0 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 1. HIDE FLOATING & SIDEBAR WIDGETS ON MOBILE (Fix bottom screen blocking) */
  .floating-collab-widget {
    display: none !important;
  }

  /* 2. UNSTICK NAVBAR ON MOBILE & CLEAN UP TOP HEADER (Fix top screen blocking & text wrap cutoff) */
  .navbar {
    position: relative !important; /* Không ghim tab trên đầu trang */
    top: auto !important;
    padding: 14px 0 !important;
  }

  .navbar .container {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .nav-logo {
    font-size: 1.35rem !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .nav-menu {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px 12px !important;
  }

  .nav-menu a {
    font-size: 0.72rem !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
  }

  /* 3. RESPONSIVE TEXT & CONTAINER AUTO-FIT (Fix horizontal overflow cutoffs) */
  h1, h2, h3, h4 {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  .hero-shelby-title {
    font-size: clamp(1.3rem, 5.5vw, 2.2rem) !important;
    line-height: 1.25 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 20px !important;
  }

  .hero-shelby-title .line-1,
  .hero-shelby-title .line-2 {
    white-space: normal !important; /* Auto-fit smoothly on small mobile screens */
    word-break: break-word !important;
  }

  .hero-shelby-desc {
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
    margin-bottom: 30px !important;
  }

  .btn-outline-box {
    padding: 14px 24px !important;
    font-size: 0.78rem !important;
    letter-spacing: 1px !important;
  }

  .section2-intro-tag {
    font-size: 0.9rem !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 16px !important;
  }

  .section2-main-headline {
    white-space: normal !important;
    font-size: clamp(1.1rem, 4.8vw, 1.7rem) !important;
    letter-spacing: 0.5px !important;
  }

  .editorial-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    text-align: center !important;
  }

  .editorial-right-box {
    padding-left: 0 !important;
  }

  .editorial-photos-wrapper {
    min-height: 380px !important;
  }

  .photo-card-left {
    width: 160px !important;
    height: 240px !important;
    left: 5px !important;
    top: 40px !important;
  }

  .photo-card-center {
    width: 190px !important;
    height: 320px !important;
  }

  .photo-card-right {
    width: 160px !important;
    height: 250px !important;
    right: 5px !important;
    top: 30px !important;
  }

  .story-header-title,
  .about-comparison-section h2,
  .curriculum-shelby-section h2,
  .collab-title {
    font-size: clamp(1.3rem, 5.2vw, 2rem) !important;
    word-break: break-word !important;
  }

  .fun-facts-section {
    grid-template-columns: 1fr !important;
  }

  .fun-facts-left {
    padding: 40px 20px !important;
  }

  .fun-facts-right {
    height: 320px !important;
  }

  .comparison-grid,
  .curriculum-shelby-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .comp-card {
    padding: 30px 20px !important;
  }

  .collab-card {
    padding: 40px 20px !important;
  }

  .collab-title {
    font-size: 2.2rem !important;
  }

  .collab-desc {
    font-size: 1rem !important;
  }
}
