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

html, body, p, span, h1, h2, h3, h4, h5, h6, a, button, input, textarea, select, div, label, li, strong, small {
  font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

i.fa, i.fa-solid, i.fa-brands, i.fa-regular {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

html,
body {
  font-size: 16px;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
  width: 100%;
}

.container {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Headings Font Family Setup */
.section-header h2,
.course-title,
.sub-title,
.footer-col h3,
.section-title {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
}

/* --- TOP BANNER --- */
.top-banner {
  background-color: #e8f3ff;
  text-align: center;
  padding: 12px 15px;
  font-size: 15px;
  color: #4a5568;
  line-height: 1.4;
}

.top-banner a {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
  font-size: 15px;
}

/* --- HEADER / NAVBAR --- */
.navbar {
  border-bottom: 1px solid #eaeaea;
  background: #fff;
  padding: 15px 0;
  position: relative;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: #2563eb;
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #1e293b;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hamburger-btn:hover {
  background-color: #f1f5f9;
  color: #2563eb;
}

/* Mobile Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* --- PREMIUM LEARNING SECTION --- */
.premium-section {
  padding: 65px 0;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.premium-header {
  text-align: left;
  max-width: 100%;
  margin-bottom: 25px;
}

.premium-title {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: #1a202c;
  line-height: 1.3;
  margin-top: 10px;
}

.premium-title span {
  color: #2563eb;
}

.premium-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

/* Accordion Column */
.accordion-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease;
  overflow: hidden;
  background-color: #ffffff;
}

.accordion-item:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.accordion-item.active {
  background-color: #e8f3ff;
  border-color: #bfdbfe;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.08);
}

.accordion-header {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
  font-family: 'Urbanist', sans-serif;
  transition: color 0.2s ease;
}

.accordion-header:hover {
  color: #2563eb;
}

.accordion-header .icon {
  font-size: 16px;
  color: #2563eb;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  padding: 0 24px;
  opacity: 0;
}

.accordion-item.active .accordion-body {
  padding: 0 24px 20px 24px;
  opacity: 1;
}

.accordion-body p {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.6;
}

.accordion-body strong {
  color: #1e293b;
}

/* Illustration & Floating Animated Logos Column */
.illustration-column {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.character-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.character-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.06));
}

.floating-shape {
  position: absolute;
  z-index: 2;
  transition: transform 0.15s ease;
  pointer-events: none;
}

.float-triangle {
  bottom: 120px;
  left: 25px;
  animation: floatAnim2 4s ease-in-out infinite alternate;
}

/* Floating Logos with 3D Card Look & Mouse Parallax */
.floating-logo {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  z-index: 3;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: transform;
  cursor: pointer;
}

.float-wp {
  top: 15px;
  left: 20px;
  font-size: 32px;
  color: #21759b;
  animation: floatAnim1 4s ease-in-out infinite alternate;
}

.float-shopify {
  top: 70px;
  right: 15px;
  font-size: 30px;
  color: #96bf48;
  animation: floatAnim2 5s ease-in-out infinite alternate;
}

.float-react {
  bottom: 40px;
  left: 30px;
  font-size: 28px;
  color: #0084ff;
  animation: floatAnim1 4.5s ease-in-out infinite alternate;
}

.sparkle {
  position: absolute;
  font-size: 22px;
  color: #f59e0b;
  z-index: 1;
  transition: transform 0.15s ease;
  pointer-events: none;
}

.sparkle-1 {
  top: 180px;
  right: 40px;
  animation: floatAnim2 3.5s ease-in-out infinite alternate;
}

.sparkle-2 {
  bottom: 80px;
  right: 80px;
  font-size: 16px;
  color: #3b82f6;
  animation: floatAnim1 4s ease-in-out infinite alternate;
}

@keyframes floatAnim1 {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-10px);
  }
}

@keyframes floatAnim2 {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-12px);
  }
}

/* ==========================================================================
   HERO BANNER SECTION (Cream Background & Right Infinite Slider)
   ========================================================================== */
.hero-banner-section {
  background-color: #f4f8fe;
  padding: 60px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero-left {
  flex: 1 1 50%;
  min-width: 0;
  max-width: 580px;
}

.hero-title {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  color: #1a202c;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-title .highlight-blue {
  color: #2563eb;
}

.hero-subtitle {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 30px;
}

/* Enroll Now Button */
.hero-cta-wrapper {
  margin-bottom: 45px;
}

.hero-enroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background-color: #2563eb;
  color: #ffffff;
  padding: 6px 8px 6px 26px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-enroll-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.38);
}

.arrow-btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.hero-enroll-btn:hover .arrow-btn-circle {
  transform: translateX(3px);
}

/* Metrics Grid Bottom Row */
.hero-metrics-grid {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.metric-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metric-box .badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

.badge-icon svg,
.badge-icon [data-lucide] {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.skill-cert-box .badge-icon {
  background: linear-gradient(135deg, #0d9488, #2563eb);
}

.exp-box .badge-icon {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.rating-box .badge-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-info strong {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.metric-info span {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.exp-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-divider {
  width: 1px;
  height: 38px;
  background-color: #cbd5e1;
  margin: 0 4px;
}

.wreath-leaf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wreath-leaf-icon.flip svg {
  transform: scaleX(-1);
}

.wreath-leaf-icon svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.2));
}

.rating-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-num {
  font-size: 20px !important;
}

.stars-gold {
  color: #f59e0b;
  font-size: 13px;
  display: flex;
  gap: 3px;
}

.stars-gold .fa-star {
  color: #f59e0b !important;
}

/* HERO RIGHT SIDE SLIDER */
.hero-right {
  flex: 1 1 50%;
  min-width: 0;
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.spotlight-circle {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, #e0f2fe 0%, #bae6fd 60%, rgba(186, 230, 253, 0) 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Full Slider Wrapper */
.hero-full-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
  z-index: 2;
  cursor: grab;
  user-select: none;
}

.hero-full-slider-wrapper:active {
  cursor: grabbing;
}

.hero-full-slider-track {
  display: flex;
  width: 100%;
  will-change: transform;
}

.hero-full-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 480px;
  overflow: hidden;
}

/* Big Borderless Image Container */
.hero-mentor-box {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.hero-big-student-img {
  height: 420px;
  max-height: 420px;
  width: auto;
  object-fit: contain;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
}

.hero-big-student-img.real-photo {
  border-radius: 28px !important;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.14) !important;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.character-img.real-photo {
  border-radius: 28px !important;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.14) !important;
  object-fit: cover;
}

.hero-full-slide:hover .hero-big-student-img {
  transform: scale(1.02);
}

/* Floating Student Quote Card */
.hero-quote-card {
  position: absolute;
  bottom: 25px;
  right: 15px;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 22px;
  max-width: 300px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  z-index: 6;
  text-align: center;
}

.card-quote {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: center;
}

.card-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.author-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.author-details strong {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.author-details span {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: #64748b;
}

/* --- FEATURES SECTION BELOW HERO BANNER --- */
.features-section {
  background-color: #ffffff;
  padding: 45px 0;
  width: 100%;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.03);
}

.features-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  padding: 0 25px;
  position: relative;
  transition: transform 0.2s ease;
}

/* Vertical Separators between items (Desktop) */
.feature-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  width: 1px;
  background-color: #d1d5db;
}

.feature-item:first-child {
  padding-left: 0;
}

.feature-item:last-child {
  padding-right: 0;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.2;
}

.feature-content p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.4;
}

/* --- CATEGORIES SECTION (CHOOSE YOUR PATH) --- */
.categories-section {
  padding: 20px 0 60px 0;
  background-color: #ffffff;
}

.categories-box {
  background-color: #f1f4f9;
  border-radius: 16px;
  padding: 45px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.categories-title {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  color: #1a202c;
  margin-top: 10px;
  margin-bottom: 25px;
  line-height: 1.3;
}

.categories-title span {
  color: #2563eb;
}

.category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.pill-btn {
  background-color: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  font-family: inherit;
}

.pill-btn:hover,
.pill-btn.active {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* --- COURSES SECTION --- */
.courses-section {
  padding: 60px 0;
  background-color: #ffffff;
  overflow: hidden;
}

/* PARTNERS SECTION */
.partners-section {
  padding: 35px 0 45px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}

.partners-title {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 25px;
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.partner-logo {
  max-height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.partner-logo:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.05);
}

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

.sub-title {
  font-size: 14px;
  font-weight: 700;
  color: #718096;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: #1a202c;
}

.section-header h2 span {
  color: #2563eb;
}

/* Slider Track Layout & Fix for Left Edge Cutoff */
.slider-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 15px 4px;
  /* Breathing room to prevent left/right shadow and border clipping */
  margin: 0 -4px;
  position: relative;
  user-select: none;
}

.courses-track {
  display: flex;
  gap: 24px;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  cursor: grab;
}

.courses-track:active {
  cursor: grabbing;
}

.courses-track::-webkit-scrollbar {
  display: none;
}

/* Course Card (Compact Height - Eliminates Vertical Blank Space) */
.course-card {
  flex: 0 0 calc(25% - 18px);
  max-width: calc(25% - 18px);
  box-sizing: border-box;
  height: 350px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

/* Card Banner */
.card-banner {
  height: 200px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.card-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.course-card:hover .card-banner-img {
  transform: scale(1.04);
}

.category-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.avatar-img {
  width: 85px;
  height: 85px;
  object-fit: contain;
}

/* Card Body - gap: 20px */
.card-body {
  padding: 18px 24px 20px 24px;
  background: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  line-height: 1.2;
}

.live-tag {
  background-color: #0d9488;
  color: #ffffff;
}

.level-tag {
  background-color: #f1f5f9;
  color: #1e293b;
}

.course-title {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  margin: 0;
}

.meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  color: #64748b;
}

.meta-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-info i,
.meta-info svg,
.meta-info svg.lucide {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2 !important;
  color: #2563eb !important;
  stroke: #2563eb !important;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* --- CARD HOVER OVERLAY (EXACT FIT & SPACING MATCH) --- */
.card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f8fafc;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  z-index: 5;
}

.card-hover-overlay .course-title {
  font-size: 18px;
  margin: 0;
}

.card-hover-overlay .meta-info {
  margin: 0;
}

.hover-description {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
  overflow: hidden;
}

.btn-wrapper {
  margin-top: auto;
}

.view-detail-btn {
  display: inline-block;
  text-align: center;
  padding: 12px 26px;
  background-color: #1d6bf3;
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  box-shadow: 0 4px 14px rgba(29, 107, 243, 0.25);
  transition: all 0.2s ease;
  width: fit-content;
}

.view-detail-btn:hover {
  background-color: #1557c0;
  box-shadow: 0 6px 18px rgba(29, 107, 243, 0.35);
}

/* Hover Triggers */
.course-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.course-card:hover .card-hover-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Slider Controls */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 35px;
  gap: 20px;
}

.nav-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background-color: #f1f5f9;
  color: #4a5568;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s ease;
}

.arrow-btn i,
.arrow-btn svg,
.arrow-btn svg.lucide {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.2 !important;
  color: inherit !important;
  stroke: currentColor !important;
  display: block;
}

.arrow-btn:hover {
  background-color: #1e293b;
  color: #ffffff;
  transform: scale(1.05);
}

.progress-bar {
  flex: 1;
  height: 2px;
  background-color: #e2e8f0;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  margin: 0 20px;
}

.progress-fill {
  width: 30%;
  height: 100%;
  background-color: #1e293b;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s ease;
  border-radius: 2px;
}

.view-all-btn {
  padding: 8px 20px;
  border: 1.5px solid #1e293b;
  border-radius: 8px;
  color: #1e293b;
  background-color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.view-all-btn:hover {
  background-color: #1e293b;
  color: #ffffff;
}

/* --- TRAINING HIGHLIGHTS SECTION --- */
.highlights-section {
  padding: 40px 0;
  background-color: #ffffff;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.highlight-card h3 {
  font-family: 'Urbanist', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

.highlight-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
}

/* --- TESTIMONIALS SLIDER SECTION --- */
.testimonials-section {
  padding: 60px 0;
  background-color: #ffffff;
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 45px;
}

.testimonials-title {
  font-family: 'Urbanist', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: #1a202c;
  margin-top: 8px;
}

.testimonials-title span {
  color: #2563eb;
}

.testimonial-slider-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 10px 4px;
  margin: 0 -4px;
  user-select: none;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  cursor: grab;
}

.testimonial-track:active {
  cursor: grabbing;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background-color: #f1f4f9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.testimonial-card-header {
  background-color: #f1f4f9;
  padding: 22px 24px 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid #ffffff;
  position: relative;
}

.testimonial-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 42px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ffffff;
  z-index: 2;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.author-name {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.testimonial-card-body {
  background-color: #f1f4f9;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.testimonial-card-body p {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 14.5px;
  color: #4a5568;
  line-height: 1.65;
  margin-bottom: 20px;
  font-weight: 600;
}

.star-rating {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  font-size: 14px;
  margin-top: auto;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  margin-bottom: 25px;
}

/* Trust Banner Bottom Row (Positioned Below Navigation Arrows) */
.trust-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 25px;
}

.trust-badge {
  background-color: #00a8ff;
  color: #ffffff;
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 168, 255, 0.3);
}

.trust-text {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

/* --- CTA BANNER SECTION --- */
.cta-banner-section {
  padding: 20px 0 60px 0;
  background-color: #ffffff;
}

.cta-banner-box {
  background: #e4f0fc;
  border-radius: 24px;
  padding: 55px 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(59, 130, 246, 0.06);
}

.cta-banner-content {
  max-width: 580px;
}

.cta-subtitle {
  position: relative;
  display: inline-block;
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.brush-stroke {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 6px;
  pointer-events: none;
}

.cta-title {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #1a202c;
  line-height: 1.22;
  margin: 0;
  letter-spacing: -0.5px;
}

.cta-banner-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.curvy-arrow-wrapper {
  position: absolute;
  top: -35px;
  left: -40px;
  z-index: 2;
}

.curvy-arrow-img {
  width: 100px !important;
  height: auto;
  object-fit: contain;
}

.cta-logo-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- FOOTER --- */
.site-footer {
  background-color: #f1f3f9;
  color: #333;
}

.footer-top {
  padding: 50px 0 40px 0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1a202c;
}

.divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-col h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a202c;
}

.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 15px;
}

.icon-box-white {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.contact-info .label {
  color: #718096;
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.contact-info p,
.contact-info a {
  color: #1a202c;
  font-weight: 600;
  line-height: 1.4;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: #2563eb;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  text-decoration: none;
  color: #4a5568;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #2563eb;
}

.social-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  text-decoration: none;
  color: #4a5568;
  font-size: 15px;
  transition: color 0.2s ease;
}

.social-links li a:hover {
  color: #2563eb;
}

.social-links li:last-child a {
  border-bottom: none;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 18px;
}

.insta-icon {
  background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.linkedin-icon {
  color: #333333;
}

.twitter-icon {
  color: #000000;
}

/* FOOTER BOTTOM */
.footer-bottom {
  background-color: #fff;
  padding: 25px 0;
  border-top: 1px solid #eaeaea;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

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

.legal-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.legal-links a {
  text-decoration: none;
  color: #4a5568;
  font-size: 15px;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: #2563eb;
}

.copyright {
  font-size: 15px;
  color: #a0aec0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Laptop / Medium Desktop (max-width: 1200px) */
@media (max-width: 1200px) {
  .course-card {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }
}

/* Tablet Landscape / Medium Screens (max-width: 992px) */
@media (max-width: 992px) {
  .premium-content {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
  }

  .illustration-column {
    min-height: 320px;
    width: 100%;
  }

  .accordion-column {
    width: 100%;
  }

  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px !important;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  .cta-banner-box {
    flex-direction: column;
    text-align: center;
    padding: 35px 25px;
    gap: 30px;
  }

  .cta-banner-content {
    max-width: 100%;
  }

  .curvy-arrow-wrapper {
    top: -20px;
    left: -20px;
  }

  .features-grid {
    gap: 20px;
  }

  .feature-item {
    padding: 0 15px;
  }
}

/* Tablet Footer 2x2 Layout (768px to 992px) */
@media (min-width: 768px) and (max-width: 992px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 40px 30px !important;
  }

  .footer-col:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .footer-col:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .footer-col:nth-child(3) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .footer-col:nth-child(4) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
}

/* Mobile Screens Footer (<767px) */
@media (max-width: 767px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    gap: 35px 20px !important;
  }

  .footer-col:nth-child(1) {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  .footer-col:nth-child(2) {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .footer-col:nth-child(3) {
    grid-column: 2 !important;
    grid-row: auto !important;
  }

  .footer-col:nth-child(4) {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

/* Tablet Portrait & Mobile Navigation (max-width: 768px) */
@media (max-width: 768px) {

  /* Navigation Mobile Menu Drawer */
  .hamburger-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid #eaeaea;
  }

  .nav-links.active {
    max-height: 400px;
    padding: 15px 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 25px;
    width: 100%;
    font-size: 16px;
    border-left: 3px solid transparent;
  }

  .nav-links a.active,
  .nav-links a:hover {
    border-left-color: #2563eb;
    background-color: #f8fafc;
  }

  /* Features Vertical Stacking on Mobile */
  .features-grid {
    flex-direction: column;
    gap: 16px;
  }

  .feature-item {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
  }

  .feature-item:not(:last-child)::after {
    display: none;
  }

  .feature-item:first-child,
  .feature-item:last-child {
    padding: 16px 20px;
  }

  .bottom-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* Hero Banner Responsive Layout (<992px) */
  .hero-banner-section {
    padding-top: 0px !important;
    padding-bottom: 60px !important;
  }

  .hero-container {
    flex-direction: column-reverse;
    gap: 15px;
    text-align: center;
  }

  .hero-left {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: clamp(28px, 5vw, 40px);
    max-width: 650px;
  }

  .hero-subtitle {
    max-width: 600px;
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-cta-wrapper {
    margin-bottom: 25px;
  }

  .hero-metrics-grid {
    justify-content: center;
    gap: 15px;
    width: 100%;
  }

  .hero-right {
    flex: 0 0 100%;
    width: 100%;
    min-height: 350px;
    margin-top: 0;
  }

  .spotlight-circle {
    width: 360px;
    height: 360px;
  }

  .hero-big-student-img {
    height: 380px;
    max-height: 380px;
  }

  .hero-quote-card {
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
    max-width: 320px;
    width: calc(100% - 40px);
  }

  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  section.features-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  section.courses-section {
    padding-top: 60px !important;
  }

  section#premiumSection {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  section.cta-banner-section {
    padding-bottom: 60px !important;
  }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse;
  }
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px !important;
  }

  .trust-banner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

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

/* Mobile Screens (max-width: 767px) */
@media (max-width: 767px) {
  .highlights-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .highlight-card {
    padding: 22px 20px !important;
    border-radius: 16px !important;
    text-align: center !important;
  }

  .highlight-card h3 {
    font-size: 17px !important;
    margin-bottom: 4px !important;
  }

  .highlight-card p {
    font-size: 13.5px !important;
  }
    .hero-left {
    margin-top: -60px;
  }

}

/* Tablet to Mobile Course Slider Threshold (max-width: 900px) */
@media (max-width: 900px) {
  .course-card {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

/* Mobile Screens (max-width: 600px) */
@media (max-width: 600px) {
  .accordion-header {
    font-size: 15px;
    padding: 15px 18px;
  }

  .accordion-body {
    padding: 0 18px;
  }

  .accordion-item.active .accordion-body {
    padding: 0 18px 16px 18px;
  }

  .float-wp {
    width: 48px;
    height: 48px;
    font-size: 26px;
    top: 5px;
    left: 10px;
  }

  .float-shopify {
    width: 48px;
    height: 48px;
    font-size: 24px;
    top: 40px;
    right: 5px;
  }

  .top-banner {
    font-size: 13.5px;
    padding: 10px;
  }

  .testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .categories-box {
    padding: 30px 18px;
    border-radius: 12px;
  }

  .category-pills {
    gap: 10px;
  }

  .pill-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .course-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .slider-controls {
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    gap: 15px;
  }

  .nav-arrows {
    display: flex;
    align-items: center;
    gap: 12px;
    order: 1 !important;
  }

  .progress-bar {
    display: none !important;
  }

  .view-all-btn {
    width: auto !important;
    order: 2 !important;
    margin-left: auto;
  }

  /* Mobile Hero Banner (<600px) */

  .hero-container {
    gap: 16px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.25;
    margin-top: 10px;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .hero-enroll-btn {
    font-size: 15px;
    padding: 5px 6px 5px 20px;
  }

  .hero-metrics-grid {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .metric-box {
    justify-content: center;
  }

  .hero-right {
    min-height: 390px;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .hero-full-slide {
    min-height: 390px;
    padding-bottom: 0;
  }

  .spotlight-circle {
    width: 310px;
    height: 310px;
  }

  .hero-big-student-img {
    height: 340px;
    max-height: 340px;
  }

  .hero-quote-card {
    bottom: 12px;
    right: 50%;
    transform: translateX(50%);
    padding: 14px 16px;
    max-width: 300px;
    width: calc(100% - 30px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .card-quote {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 8px;
  }
}

/* Small Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {

  .hero-container {
    gap: 14px;
  }

  .hero-title {
    font-size: 23px;
    margin-top: 5px;
  }

  .hero-right {
    min-height: 360px;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .hero-full-slide {
    min-height: 360px;
    padding-bottom: 0;
  }

  .spotlight-circle {
    width: 280px;
    height: 280px;
  }

  .hero-big-student-img {
    height: 310px;
    max-height: 310px;
  }

  .hero-quote-card {
    padding: 12px 14px;
    bottom: 10px;
    max-width: 285px;
  }

  .container {
    padding: 0 15px;
  }

  .feature-item {
    gap: 14px;
  }

  .feature-icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .feature-icon-wrapper svg {
    width: 24px;
    height: 24px;
  }

  .feature-content h3 {
    font-size: 18px;
  }

  .feature-content p {
    font-size: 14px;
  }
}

/* Mobile Section Padding Rules (<992px) */
@media (max-width: 992px) {
  .hero-banner-section {
    padding-top: 0px !important;
    padding-bottom: 60px !important;
  }

  .features-section,
  .courses-section,
  .categories-section,
  .accordion-section,
  .highlights-section,
  .testimonials-section,
  .cta-banner-section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  .section-header {
    margin-bottom: 25px;
  }
}
/* ---------- FAQ SECTION ---------- */
.faq-section {
  padding: 60px 0 80px 0;
  background-color: #ffffff;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  overflow: hidden;
  transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-item.active {
  background-color: #e8f3ff;
  border-color: #bfdbfe;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.08);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
}

.faq-question .icon {
  color: #2563eb;
  font-size: 14px;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  padding: 0 24px;
  opacity: 0;
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px 24px;
  opacity: 1;
}

.faq-answer p {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-answer {
    transition: none;
  }
}

@media (max-width: 640px) {
  .faq-question {
    font-size: 15px;
    padding: 15px 18px;
  }

  .faq-answer {
    padding: 0 18px;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 16px 18px;
  }
}

/* ==========================================================================
   INNER PAGES - shared components (Courses, About, Contact, FAQs, etc.)
   ========================================================================== */

/* ---------- Page Hero / Breadcrumb Banner ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 520px 320px at 12% -10%, rgba(37, 99, 235, 0.20), transparent 60%),
    radial-gradient(ellipse 480px 340px at 92% 110%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(circle, rgba(37, 99, 235, 0.16) 1.6px, transparent 1.6px) 0 0/26px 26px,
    linear-gradient(180deg, #eaf3ff 0%, #eef5ff 60%, #f6faff 100%);
  padding: 72px 0 92px 0;
  text-align: center;
  isolation: isolate;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.9) 100%);
  z-index: -1;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 54px;
  background-color: #ffffff;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 200 60 400 0 600 20 C 800 40 1000 60 1200 30 L1200 60 L0 60 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 200 60 400 0 600 20 C 800 40 1000 60 1200 30 L1200 60 L0 60 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  background: #ffffff;
  border: 1px solid #dbeafe;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
  opacity: 0;
  animation: pageHeroIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s forwards;
}

.page-hero .breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.page-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: pageHeroIn 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s forwards;
}

.page-hero h1 span {
  color: #1d4ed8;
  background: linear-gradient(180deg, transparent 62%, rgba(147, 197, 253, 0.55) 62%);
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.page-hero p {
  font-size: 16px;
  color: #4a5568;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
  animation: pageHeroIn 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) 0.28s forwards;
}

@keyframes pageHeroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero .breadcrumb,
  .page-hero h1,
  .page-hero p {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Static Course Grid (Courses page) ---------- */
.courses-page-section {
  padding: 60px 0 80px 0;
  background-color: #ffffff;
}

.courses-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.courses-static-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.courses-static-grid .course-card {
  width: 100%;
}

.courses-static-grid .card-inner {
  height: 100%;
}

/* ---------- About Page ---------- */
.about-intro-section {
  padding: 70px 0;
  background-color: #ffffff;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-intro-block h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 12px;
}

.about-intro-block p {
  font-size: 15.5px;
  color: #4a5568;
  line-height: 1.7;
}

.about-cta-banner {
  background: #e4f0fc;
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  margin: 20px 0 0;
}

.about-cta-banner h2 {
  font-size: 26px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 12px;
}

.about-cta-banner p {
  font-size: 15.5px;
  color: #4a5568;
  max-width: 560px;
  margin: 0 auto 26px;
}

/* ---------- Testimonial Grid (static, non-slider variant) ---------- */
.testimonial-static-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- Contact Page ---------- */
.contact-page-section {
  padding: 60px 0 80px 0;
  background-color: #ffffff;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-block h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 14px;
}

.contact-info-block > p {
  font-size: 15.5px;
  color: #4a5568;
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-detail-card {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
}

.contact-detail-card:first-of-type {
  border-top: 1px solid #e2e8f0;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e8f3ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.contact-detail-card strong {
  display: block;
  color: #1a202c;
  font-size: 15px;
  margin-bottom: 3px;
}

.contact-detail-card p, .contact-detail-card a {
  font-size: 14.5px;
  color: #4a5568;
  line-height: 1.5;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 40px -24px rgba(15, 23, 42, 0.18);
}

.contact-form-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 20px;
}

.contact-form-card h3:has(+ .contact-form-subtitle) {
  margin-bottom: 5px;
}

.contact-form-subtitle {
  color: #64748b;
  font-size: 13.5px;
  margin: 0 0 22px;
}

.contact-form-group {
  margin-bottom: 18px;
}

.contact-form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: 'Urbanist', sans-serif;
  font-size: 14.5px;
  color: #1a202c;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
  color: #94a3b8;
}

.contact-form-group input:hover,
.contact-form-group select:hover,
.contact-form-group textarea:hover {
  border-color: #94a3b8;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Custom-styled dropdowns to match the text inputs */
.contact-form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.contact-form-group select:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.contact-form-group select option {
  color: #1a202c;
}

.contact-form-group textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}

.contact-submit-btn {
  width: 100%;
  margin-top: 4px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-family: 'Urbanist', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.55);
}

.contact-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.contact-form-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: #1d9a6c;
  opacity: 0;
  height: 0;
  transition: opacity 0.3s ease;
}

.contact-form-note.show {
  opacity: 1;
  height: auto;
}

/* ---------- FAQs Page (categorized) ---------- */
.faqs-page-section {
  padding: 60px 0 80px 0;
  background-color: #ffffff;
}

.faq-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}

.faq-category-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #4a5568;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.faq-category-tab:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.faq-category-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.faq-category-group {
  max-width: 780px;
  margin: 0 auto 50px;
}

.faq-category-group h2 {
  font-size: 19px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 18px;
  padding-left: 4px;
}

/* ---------- Filter / category pill buttons reused ---------- */
.category-filter-pill {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #4a5568;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.category-filter-pill:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.category-filter-pill.active {
  background: #1a202c;
  border-color: #1a202c;
  color: #ffffff;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .courses-static-grid { grid-template-columns: repeat(3, 1fr); }
  .about-intro-grid,
  .contact-page-grid { grid-template-columns: 1fr; gap: 34px; }
  .testimonial-static-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .courses-static-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-static-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 36px 0 30px 0; }
  .about-cta-banner { padding: 36px 24px; }
  .contact-form-card { padding: 26px; }
}

@media (max-width: 560px) {
  .courses-static-grid { grid-template-columns: 1fr; }
}

/* ---------- Course Tile (icon-based, Courses page) ---------- */
.course-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.course-tile:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.1);
}

.course-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e8f3ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.course-tile-cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 8px;
}

.course-tile h3 {
  font-size: 17px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 10px;
  line-height: 1.3;
}

.course-tile-meta {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 12px;
}

.course-tile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.course-tile p {
  font-size: 13.5px;
  color: #4a5568;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.course-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.course-tile-tag {
  font-size: 12px;
  font-weight: 700;
  color: #1d9a6c;
  background: #e6f7ef;
  padding: 4px 10px;
  border-radius: 999px;
}

.course-tile-link {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.course-tile-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ---------- Fix: .testimonial-card reused inside a CSS Grid (About page) ---------- */
/* The base .testimonial-card rules use flex-basis/max-width percentages sized for the
   homepage's flex slider track; inside a grid container those percentages compound
   against the already-sized grid column, shrinking cards to a sliver. Reset here. */
.testimonial-static-grid.testimonial-static-grid .testimonial-card {
  flex: initial;
  max-width: 100%;
  width: 100%;
}

/* ==========================================================================
   REDESIGN: About-page Intro blocks + Highlight cards (shared w/ homepage)
   ========================================================================== */

/* ---------- About Intro Section ---------- */
.about-intro-section {
  background-color: #f8fafc;
}

.about-intro-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-intro-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.about-intro-block:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.about-intro-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #e8f3ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.about-intro-block h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 12px;
}

.about-intro-block p {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.7;
}

/* ---------- Highlight Cards (shared: Homepage + About page) ---------- */
.highlights-section {
  padding: 70px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.highlights-grid {
  gap: 28px;
}

.highlight-card {
  padding: 34px 28px;
  border-radius: 18px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.highlight-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
  transition: transform 0.4s ease;
}

.highlight-card:hover::after {
  transform: scale(1.4);
}

.highlight-card:hover {
  transform: translateY(-6px);
}

.highlight-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.highlight-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: 14px;
}

@media (max-width: 640px) {
  .about-intro-block { padding: 28px 24px; }
  .highlight-card { text-align: left; }
}

/* ==========================================================================
   BATCH 2/3 PAGES - IT Training Rajkot, Gallery, Portfolio,
   Become an Instructor, Privacy Policy, Terms of Use
   ========================================================================== */

/* ---------- Small Stat Row (IT Training Rajkot hero) ---------- */
.mini-stat-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 10px 22px 10px 14px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  margin-top: 24px;
}

.mini-stat-row .mini-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #1a202c;
}

.mini-stat-row .mini-stars {
  color: #f59e0b;
  font-size: 12px;
}

.mini-stat-row .mini-stat-label {
  font-size: 12.5px;
  color: #64748b;
  border-left: 1px solid #e2e8f0;
  padding-left: 14px;
}

/* ---------- Info Card Grid (Why Rajkot / general feature reasons) ---------- */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.1);
}

.info-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e8f3ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
}

/* ---------- Gallery ---------- */
.gallery-section {
  padding: 60px 0 80px 0;
  background-color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f1f5f9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.65) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Portfolio ---------- */
.portfolio-section {
  padding: 60px 0 80px 0;
  background-color: #ffffff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.portfolio-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.1);
}

.portfolio-card-media {
  height: 170px;
  overflow: hidden;
}

.portfolio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-card-media img {
  transform: scale(1.06);
}

.portfolio-card-body {
  padding: 20px;
}

.portfolio-card-cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 8px;
  display: block;
}

.portfolio-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 8px;
}

.portfolio-card-date {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 12px;
  display: block;
}

.portfolio-card-link {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.portfolio-card-link:hover {
  text-decoration: underline;
}

/* ---------- Legal Content (Policy / Terms) ---------- */
.legal-section {
  padding: 56px 0 80px 0;
  background-color: #ffffff;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content > p.legal-intro {
  font-size: 15.5px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-block {
  margin-bottom: 32px;
}

.legal-block h2 {
  font-size: 19px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-block h2 .legal-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e8f3ff;
  color: #2563eb;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-block p {
  font-size: 14.5px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-block ul {
  margin: 10px 0 10px 4px;
  padding-left: 18px;
}

.legal-block ul li {
  font-size: 14.5px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 6px;
  list-style: disc;
}

.legal-contact-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 26px;
  margin-top: 6px;
}

.legal-contact-box p { margin-bottom: 4px; }

/* ---------- Become an Instructor ---------- */
.instructor-cta-section {
  padding: 70px 0;
  background: linear-gradient(135deg, #eaf3ff 0%, #ffffff 100%);
}

.instructor-cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.instructor-cta-copy h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 16px;
}

.instructor-cta-copy p {
  font-size: 15.5px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 26px;
  max-width: 480px;
}

.instructor-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.instructor-perk-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}

.instructor-perk-card i {
  color: #2563eb;
  font-size: 18px;
  margin-bottom: 10px;
  display: block;
}

.instructor-perk-card h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 4px;
}

.instructor-perk-card p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .info-card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .instructor-cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .instructor-perks-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .info-card-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .legal-block h2 { font-size: 17px; }
}

/* ==========================================================================
   COURSE DETAIL PAGES
   ========================================================================== */

.course-detail-hero {
  background: linear-gradient(180deg, #eaf3ff 0%, #f6faff 100%);
  padding: 40px 0 32px;
}

.course-detail-hero .breadcrumb {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
}

.course-detail-hero .breadcrumb a { color: #2563eb; text-decoration: none; font-weight: 600; }
.course-detail-hero .breadcrumb a:hover { text-decoration: underline; }

.course-detail-cat {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.course-detail-hero h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  color: #1a202c;
  max-width: 760px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.course-detail-hero .lede {
  font-size: 16px;
  color: #4a5568;
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.course-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.course-quick-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 600;
}

.course-quick-meta i { color: #2563eb; }

/* ---------- Two-column detail layout ---------- */
.course-detail-section {
  padding: 56px 0 80px;
  background: #ffffff;
}

.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 46px;
  align-items: start;
}

.course-main h2 {
  font-size: 21px;
  font-weight: 800;
  color: #1a202c;
  margin: 40px 0 16px;
}

.course-main h2:first-child { margin-top: 0; }

.course-main p {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.75;
}

.learn-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.learn-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.5;
}

.learn-checklist i {
  color: #16a34a;
  margin-top: 3px;
  flex-shrink: 0;
}

.curriculum-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curriculum-month {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.curriculum-month .month-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.curriculum-month p {
  margin: 0;
  font-size: 14.5px;
  color: #334155;
}

.curriculum-month strong { color: #1a202c; }

.two-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.two-list-grid h3 {
  font-size: 15px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 12px;
}

.two-list-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.two-list-grid li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: #4a5568;
  line-height: 1.5;
}

.two-list-grid i { color: #2563eb; margin-top: 3px; flex-shrink: 0; }

/* ---------- Sidebar ---------- */
.course-sidebar {
  position: sticky;
  top: 20px;
}

.course-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.course-sidebar-price {
  font-size: 26px;
  font-weight: 800;
  color: #16a34a;
  margin-bottom: 4px;
}

.course-sidebar-price-note {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 18px;
}

.course-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-meta-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #4a5568;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.course-meta-list li:last-child { border-bottom: none; padding-bottom: 0; }
.course-meta-list strong { color: #1a202c; font-weight: 700; }

.course-sidebar-card .hero-enroll-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

.course-sidebar-secondary-btn {
  display: block;
  text-align: center;
  width: 100%;
  padding: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #1a202c;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.course-sidebar-secondary-btn:hover { border-color: #2563eb; color: #2563eb; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .course-detail-layout { grid-template-columns: 1fr; }
  .course-sidebar { position: static; margin-bottom: 10px; }
}

@media (max-width: 640px) {
  .learn-checklist { grid-template-columns: 1fr; }
  .two-list-grid { grid-template-columns: 1fr; }
  .course-quick-meta { gap: 14px; }
}

/* ==========================================================================
   COURSE DETAIL PAGE - REDESIGN (richer hero, cards, sidebar)
   ========================================================================== */

.course-detail-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 480px 300px at 8% -20%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(ellipse 420px 300px at 96% 120%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(circle, rgba(37, 99, 235, 0.14) 1.6px, transparent 1.6px) 0 0/26px 26px,
    linear-gradient(180deg, #eaf3ff 0%, #eef5ff 60%, #f6faff 100%);
  padding: 44px 0 68px;
}

.course-detail-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 46px;
  background-color: #ffffff;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 200 60 400 0 600 20 C 800 40 1000 60 1200 30 L1200 60 L0 60 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 200 60 400 0 600 20 C 800 40 1000 60 1200 30 L1200 60 L0 60 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.course-detail-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
  font-weight: 600;
}

.course-detail-cat {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* ---------- What You'll Learn card ---------- */
.learn-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 26px;
}

.learn-checklist li {
  transition: transform 0.2s ease;
}

.learn-checklist li:hover { transform: translateX(3px); }

.learn-checklist i {
  background: #e8f3ff;
  color: #16a34a;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 0;
}

/* ---------- Curriculum ---------- */
.curriculum-month {
  background: #ffffff;
  border-left: 3px solid #2563eb;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.curriculum-month:hover {
  transform: translateX(4px);
  background: #f8fafc;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.curriculum-month .month-num {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* ---------- Who For / Requirements cards ---------- */
.two-list-grid > div {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.two-list-grid > div:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.two-list-grid h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.two-list-grid h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
}

/* ---------- Sidebar redesign ---------- */
.course-sidebar-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 0;
}

.course-sidebar-head {
  background: linear-gradient(135deg, #1a2b4e 0%, #2563eb 100%);
  color: #ffffff;
  padding: 26px 26px 22px;
}

.course-sidebar-head .course-sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.course-sidebar-head h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}

.course-sidebar-head p {
  font-size: 12.5px;
  color: #cdd9f5;
  margin: 0;
}

.course-sidebar-body { padding: 22px 26px 26px; }

.course-included-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-included-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: #334155;
}

.course-included-list i {
  color: #16a34a;
  margin-top: 2px;
  flex-shrink: 0;
}

.course-meta-list {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.course-meta-list li { border-bottom-color: #e7ecf3; }

.course-sidebar-card .hero-enroll-btn {
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

/* ==========================================================================
   BLOG - index + single post
   ========================================================================== */

/* ---------- Blog index ---------- */
.blog-section {
  padding: 60px 0 80px;
  background: #ffffff;
}

.blog-filter-bar { margin-bottom: 34px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.blog-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.1);
}

.blog-card-icon {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #2563eb;
  background: linear-gradient(135deg, #eaf3ff, #f6faff);
}

.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.blog-card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.blog-card-meta a { color: #2563eb; font-weight: 700; text-decoration: none; }
.blog-card-meta a:hover { text-decoration: underline; }

/* ---------- Single post ---------- */
.post-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 480px 300px at 8% -20%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(ellipse 420px 300px at 96% 120%, rgba(59, 130, 246, 0.16), transparent 60%),
    linear-gradient(180deg, #eaf3ff 0%, #eef5ff 60%, #f6faff 100%);
  padding: 40px 0 60px;
  text-align: center;
}

.post-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 46px;
  background-color: #ffffff;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 200 60 400 0 600 20 C 800 40 1000 60 1200 30 L1200 60 L0 60 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 200 60 400 0 600 20 C 800 40 1000 60 1200 30 L1200 60 L0 60 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

.post-hero .breadcrumb {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ffffff; border: 1px solid #dbeafe;
  padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
  font-size: 13px; font-weight: 600; color: #4a5568; margin-bottom: 18px;
}
.post-hero .breadcrumb a { color: #2563eb; text-decoration: none; font-weight: 700; }
.post-hero .breadcrumb a:hover { text-decoration: underline; }

.post-hero .post-cat {
  display: inline-block;
  background: #ffffff; border: 1px solid #dbeafe; color: #2563eb;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}

.post-hero h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800; color: #1a202c;
  max-width: 820px; margin: 0 auto 16px;
  line-height: 1.3;
}

.post-hero .post-meta {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: #64748b;
}
.post-hero .post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-hero .post-meta i { color: #2563eb; }

.post-body-section { padding: 50px 0 80px; background: #ffffff; }

.post-body {
  max-width: 740px;
  margin: 0 auto;
}

.post-body h2 {
  font-size: 21px; font-weight: 800; color: #1a202c;
  margin: 36px 0 14px;
}
.post-body h2:first-child { margin-top: 0; }

.post-body h3 {
  font-size: 17px; font-weight: 800; color: #1a202c;
  margin: 24px 0 10px;
}

.post-body p {
  font-size: 15.5px; color: #374151; line-height: 1.8;
  margin-bottom: 16px;
}

.post-body ul, .post-body ol {
  margin: 0 0 18px 4px;
  padding-left: 20px;
}

.post-body li {
  font-size: 15px; color: #374151; line-height: 1.75;
  margin-bottom: 8px;
}

.post-callout {
  background: #f0f7ff;
  border-left: 3px solid #2563eb;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14.5px;
  color: #1e3a5f;
}

.post-callout strong { color: #1a202c; }

.post-cta-box {
  background: linear-gradient(135deg, #1a2b4e 0%, #2563eb 100%);
  border-radius: 18px;
  padding: 32px 30px;
  text-align: center;
  color: #ffffff;
  margin: 40px 0;
}

.post-cta-box h3 { color: #ffffff; font-size: 19px; margin-bottom: 8px; }
.post-cta-box p { color: #cdd9f5; font-size: 14px; margin-bottom: 20px; }

.post-cta-box .hero-enroll-btn {
  display: inline-flex;
  background: #ffffff;
  color: #1a2b4e;
}
.post-cta-box .hero-enroll-btn .arrow-btn-circle { background: #1a2b4e; }
.post-cta-box .hero-enroll-btn .arrow-btn-circle i { color: #ffffff; }

.post-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 30px; padding-top: 24px; border-top: 1px solid #e2e8f0;
}
.post-tag {
  font-size: 12.5px; font-weight: 600; color: #4a5568;
  background: #f1f5f9; padding: 6px 14px; border-radius: 999px;
}

.post-share-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px;
}
.post-share-row span { font-size: 13px; color: #64748b; font-weight: 600; }
.post-share-row a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center;
  color: #1a202c; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.post-share-row a:hover { background: #2563eb; border-color: #2563eb; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-hero .post-meta { gap: 12px; }
}

/* ==========================================================================
   BLOG POST - Feature image, sidebar (ToC, Recent, Categories)
   ========================================================================== */

.post-feature-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.post-feature-img img {
  width: 100%;
  height: auto;
  display: block;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.post-layout .post-body {
  max-width: 100%;
}

.post-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
}

.sidebar-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-card h4 i { color: #2563eb; }

/* Table of contents */
.sidebar-toc {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid #f1f5f9;
}

.toc-list li { margin: 0; }

.toc-list a {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  color: #4a5568;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc-list a:hover { color: #2563eb; }

.toc-list a.active {
  color: #2563eb;
  font-weight: 700;
  border-left-color: #2563eb;
}

/* Recent posts */
.sidebar-recent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-recent-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  align-items: center;
}

.sidebar-recent-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.sidebar-recent-item div { min-width: 0; }

.sidebar-recent-item span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.35;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-recent-item:hover span { color: #2563eb; }

.sidebar-recent-item small {
  font-size: 11px;
  color: #94a3b8;
}

/* Categories */
.sidebar-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 4px;
  text-decoration: none;
  font-size: 13.5px;
  color: #374151;
  border-bottom: 1px solid #f8fafc;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-cat-list li:last-child a { border-bottom: none; }
.sidebar-cat-list a:hover { color: #2563eb; padding-left: 8px; }

.sidebar-cat-count {
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .sidebar-toc { max-height: none; }
}

.blog-card-img {
  height: 150px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.06); }

.post-body h2 { scroll-margin-top: 24px; }
