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

body {
  font-family: Arial, sans-serif;
  background: #FEFAF4;
  color: #1a1a1a;
}

p {
  font-size: 18px;
  line-height: 1.5;
}

h1,
h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}


.banner {
  width: 100%;
  display: block;
}

.banner img {
  width: 100%;
  display: block;
}

.section-header {
  width: 100%;
  padding: 80px 40px 40px;
  text-align: left;
}

.section-header h1 {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 35px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  padding: 10px 0;
  margin: 0 auto;
  text-transform: uppercase;
  text-decoration: underline;
}

.section-header h1 .highlight {
  color: #1a1a1a;
  font-weight: 700;
  /* text-decoration: underline; */
  text-underline-offset: 4px;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 120px;
  padding: 40px 35px 60px;
  max-width: 1300px;
  margin: 0 auto;
}

#tool-based {
  gap: 60px;
  max-width: 1560px;
  padding: 40px 35px 60px;
}

#tool-based .card {
  width: 320px;
}

.card {
  position: relative;
  width: 320px;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  animation: rise 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 8px rgba(0, 0, 0, .08), 0 0 32px rgba(0, 0, 0, .18), 0 0 72px rgba(0, 0, 0, .22);
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 18px 22px 18px;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.title {
  font-size: 30px;
  line-height: 0.92;
  color: #ffffff;
  letter-spacing: 0.05em;
  font-family: Arial, sans-serif;
  font-weight: 400;
  margin-top: 200px;
}

.line-wrap {
  display: block;
  overflow: hidden;
  line-height: 1.1;
}

.line-inner {
  display: block;
  transform: translateY(100%);
  opacity: 0;
}

.card.text-animate .title .line-wrap:nth-child(1) .line-inner {
  animation: slideUp 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s forwards;
}

.card.text-animate .title .line-wrap:nth-child(2) .line-inner {
  animation: slideUp 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.12s forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


.bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.subtitle-wrap {
  overflow: hidden;
}

.subtitle {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: #ffffff;
  text-transform: uppercase;
  transform: translateY(100%);
  opacity: 0;
  display: block;
}

.card.text-animate .subtitle {
  animation: slideUp 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.24s forwards;
}

.btn-wrap {
  display: inline-flex;
}

.know-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 50px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  font-family: Arial, sans-serif;
}

.know-more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #111;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 0;
}

.card:hover .know-more::before {
  transform: scaleX(1);
}

.card:hover .know-more {
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  transform: scale(1.15);
}

.card:hover .know-more .btn-text {
  color: #fff;
}

.card:hover .know-more .btn-icon {
  stroke: #fff;
  transform: translateX(4px);
}

.btn-text,
.btn-icon {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease, stroke 0.35s ease, transform 0.35s ease;
}


/* ─── INFO SECTIONS ─── */
.info-section {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 8vw, 8.75rem);
  padding: 60px 5%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.info-section.reverse {
  flex-direction: row-reverse;
}

.info-img {
  width: 300px;
  flex-shrink: 0;
}

.info-img img {
  width: 100%;
  border-radius: 16px;
}

.info-img-2 {
  width: 180px;
  flex-shrink: 0;
}

.info-img-2 img {
  width: 100%;
  border-radius: 16px;
}

.info-text h2 {
  margin-bottom: 14px;
  color: #111;
  font-weight: 550;
}

.info-text-2 h2 {
  margin-bottom: 14px;
  color: #111;
  margin-left: 65px;
  font-weight: 550;
}

.info-text p {
  color: #555;
  margin-bottom: 10px;
}

.info-text-2 p {
  color: #555;
  margin-bottom: 10px;
  margin-left: 65px;
}

/* ─── MODAL / POPUP ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.popup {
  position: relative;
  width: min(750px, 95vw);
  max-height: 88vh;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  background: #f6f5f6;
}

.modal-overlay.active .popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Header */
.popup-header {
  position: relative;
  width: 100%;
  height: 210px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.popup-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.popup-header-inner {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px 30px;
}



/* ── CLOSE BUTTON ── */
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 12;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.42);
}

/* ── Per-popup heading position overrides ─────────────────── */
/* Base h2 / p styles shared by all */
.popup-header-inner h2 {
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.popup-header-inner p {
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* Photoshop — text sits left-centre (ps.png has logo on the left) */
.popup-header-inner--photoshop {
  padding-left: 270px;
  justify-content: flex-start;
  text-align: left;
}

/* Illustrator */
.popup-header-inner--illustrator {
  padding-left: 250px;
  justify-content: flex-start;
  text-align: left;
}

/* Premiere Pro */
.popup-header-inner--premiere {
  padding-left: 270px;
  justify-content: flex-start;
  text-align: left;
}

/* After Effects */
.popup-header-inner--aftereffects {
  padding-left: 280px;
  justify-content: flex-start;
  text-align: left;
}

/* Blender */
.popup-header-inner--blender {
  padding-left: 250px;
  justify-content: flex-start;
  text-align: left;
}

/* Unreal Engine */
.popup-header-inner--unreal {
  padding-left: 250px;
  justify-content: flex-start;
  text-align: left;
}

/* MetaHuman */
.popup-header-inner--metahuman {
  padding-left: 250px;
  justify-content: flex-start;
  text-align: left;
}

/* Graphic Design */
.popup-header-inner--graphicdesign {
  padding-left: 250px;
  justify-content: flex-start;
  text-align: left;
}

/* Logo Design */
.popup-header-inner--logo {
  padding-left: 200px;
  justify-content: flex-start;
  text-align: left;
}

/* Motion Graphics */
.popup-header-inner--motion {
  padding-left: 250px;
  justify-content: flex-start;
  text-align: left;
}

/* 2D Character Animation */
.popup-header-inner--2d {
  padding-left: 230px;
  justify-content: flex-start;
  text-align: left;
}

/* 3D Character Animation */
.popup-header-inner--3d {
  padding-left: 220px;
  justify-content: flex-start;
  text-align: left;
}

/* Art Course */
.popup-header-inner--art {
  padding-left: 240px;
  justify-content: flex-start;
  text-align: left;
}

/* Generative AI */
.popup-header-inner--ai {
  padding-left: 390px;
  justify-content: flex-start;
  text-align: left;
}

/* Body */
.popup-body {
  overflow-y: auto;
  padding: 32px 24px 30px;
  flex: 1;
  scrollbar-width: none;
}

.popup-body::-webkit-scrollbar {
  display: none;
}

.popup-section-title {
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #1a0033;
  margin-bottom: 10px;
  margin-top: 25px;
}

.popup-section-title:first-child {
  margin-top: 0;
}

.popup-desc {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.68;
  color: #2a1040;
  margin-bottom: 8px;
}

/* Curriculum list — dots.png bullet */
.popup-curriculum {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.popup-curriculum li {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #2a1040;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.popup-curriculum li:last-child {
  border-bottom: none;
}

.popup-curriculum li::before {
  content: '';
  width: 10px;
  height: 10px;
  min-width: 10px;
  background: url('../page4/dots.png') center/contain no-repeat;
  margin-top: 3px;
}

/* Bottom info rows — match reference info-row style */
.popup-info-row {
  margin-top: 12px;
}

.popup-info-row .info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #2a1040;
  margin-bottom: 10px;
  margin-top: 12px;
}

.popup-info-row .info-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popup-info-row .info-label {
  font-weight: 600;
  color: #1a0033;
  font-size: 14px;
}

.popup-duration::before {
  content: '';
  width: 28px;
  height: 28px;
  background: url('../page4/dots.png') center/contain no-repeat;
  flex-shrink: 0;
}

.popup-fee::before {
  content: '';
  width: 28px;
  height: 28px;
  background: url('../page4/dots.png') center/contain no-repeat;
  flex-shrink: 0;
}

.popup-duration strong {
  color: #111;
  font-weight: 700;
}

.popup-fee {
  font-weight: 400;
}




/* ─── CTA ─── */
.cta-section {
  background: #FEFAF4;
  padding: 0px 5% 60px;
  text-align: left;
  max-width: 1070px;
  margin: 0 auto;
}

.cta-section h2 {
  color: #5ba865;
  margin-bottom: 12px;
  font-weight: 550;
}

.cta-section p {
  color: #111111;
  margin-bottom: 10px;
}

.cta-section a {
  color: #5ba865;
  text-decoration: none;
  font-weight: 550;
}

.cta-section strong {
  font-weight: 550;
}

.cta-section a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px – 1024px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  .cards-grid {
    gap: 40px;
    padding: 40px 5% 50px;
  }

  #tool-based {
    gap: 30px;
    padding: 30px 5% 40px;
  }

  .info-section {
    gap: 2rem;
    padding: 40px 5%;
  }

  /* Popup header text offsets — reduce on tablet */
  .popup-header-inner--photoshop,
  .popup-header-inner--illustrator,
  .popup-header-inner--premiere,
  .popup-header-inner--aftereffects,
  .popup-header-inner--blender,
  .popup-header-inner--unreal,
  .popup-header-inner--metahuman,
  .popup-header-inner--graphicdesign,
  .popup-header-inner--logo,
  .popup-header-inner--motion,
  .popup-header-inner--2d,
  .popup-header-inner--3d,
  .popup-header-inner--art,
  .popup-header-inner--ai {
    padding-left: 180px;
    justify-content: flex-start;
  }

  .cta-section {
    padding: 50px 5%;
    margin: 0 auto;

  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .section-header {
    padding: 50px 5% 24px;
  }

  .section-header h1 {
    font-size: 22px;
  }

  .cards-grid {
    gap: 24px;
    padding: 24px 5% 36px;
    justify-content: center;
  }

  #tool-based {
    gap: 20px;
  }

  .card {
    width: min(280px, 100%);
    height: 370px;
  }

  .info-section,
  .info-section.reverse {
    flex-direction: column;
    gap: 1.5rem;
    padding: 36px 5%;
  }

  .info-img {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .info-img-2 {
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
  }

  .info-text-2 h2,
  .info-text-2 p {
    margin-left: 0;
  }

  /* Popup header text — reset to centered on mobile */
  .popup-header-inner--photoshop,
  .popup-header-inner--illustrator,
  .popup-header-inner--premiere,
  .popup-header-inner--aftereffects,
  .popup-header-inner--blender,
  .popup-header-inner--unreal,
  .popup-header-inner--metahuman,
  .popup-header-inner--graphicdesign,
  .popup-header-inner--logo,
  .popup-header-inner--motion,
  .popup-header-inner--2d,
  .popup-header-inner--3d,
  .popup-header-inner--art,
  .popup-header-inner--ai {
    padding-left: 5%;
    justify-content: center;
    text-align: center;
  }

  .popup-header-inner h2 {
    font-size: 22px;
  }

  .popup-header-inner p {
    font-size: 14px;
  }

  .cta-section {
    padding: 40px 5%;
    margin: 0;
  }
}