/* ═══════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  font-size: 15px;
  color: #333;
  background: #FEFAF4;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}



/* ═══════════════════════════════════════════════════════
   SECTION 2 — HERO BANNER
   ═══════════════════════════════════════════════════════ */
.hero-banner {
  width: 100%;
  min-height: 200px;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════
   SECTION 3 — COURSE CARDS
   ═══════════════════════════════════════════════════════ */
.course-cards-section {
  background: #FEFAF4;
  padding: 50px 40px;
}

.course-cards-section .container {
  padding: 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  justify-items: center;
}

/* ── INTERACTIVE CARDS (Preserved from original) ── */
.card {
  position: relative;
  width: min(320px, 100%);
  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, 0.08),
    0 0 32px rgba(0, 0, 0, 0.18),
    0 0 72px rgba(0, 0, 0, 0.22),
    0 0 120px rgba(0, 0, 0, 0.14);
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 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;
  gap: 0;
}

/* ── TITLE ── */
.title {
  font-size: 30px;
  line-height: 0.92;
  color: #ffffff;
  letter-spacing: 0.05em;
  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 ── */
.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: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  transform: translateY(100%);
  opacity: 0;
  display: block;
  font-family: 'Arial', sans-serif;
}

.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 BUTTON ── */
.know-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 50px;
  background: #ffffff;
  color: #111111;
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  outline: 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);
}

.know-more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #111111;
  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, 0.35);
  transform: scale(1.15);
}

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

.card:hover .know-more .btn-icon {
  stroke: #ffffff;
  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;
}

/* ── MODAL OVERLAY ── */
.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.open {
  opacity: 1;
  pointer-events: all;
}

/* ── POPUP ── */
.popup {
  position: relative;
  width: min(750px, 95vw);
  max-height: 88vh;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  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-color: #f6f5f6;
}

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

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

/* ── HEADER (IMAGE_2 as background) ── */
.popup-header {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.popup-header-bg {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.header-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 40px 0 120px;
}

/* ── PS LOGO (IMAGE_1) ── */
.ps-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.ps-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-text h2 {
  font-size: 30px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Arial', sans-serif;
  text-align: center;
  margin-left: 45px;
}

.header-text p {
  font-size: 20px;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  letter-spacing: 0.05em;
  font-family: 'Arial', sans-serif;
  text-align: left;
  margin-left: 45px;
}


.header-text1 h2 {
  font-size: 40px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Arial', sans-serif;
  text-align: center;
}

.header-text1 p {
  font-size: 20px;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  letter-spacing: 0.05em;
  font-family: 'Arial', sans-serif;
  text-align: left;
}

/* ── CLOSE BUTTON ── */
.close-btn {
  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;
}

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

/* ── BODY ── */
.popup-body {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: #f6f5f6;
  padding: 36px 24px 30px;
  border-radius: 0 0 28px 28px;
}

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

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a0033;
  margin: 0 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.3;
}

.section-body {
  font-size: 14px;
  color: #2a1040;
  line-height: 1.68;
  margin: 0 0 14px;
  font-family: Arial, Helvetica, sans-serif;
}

.divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 6px 0 18px;
}

.curriculum-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

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

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

.bullet {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  margin-top: 3px;
  background: url('../page4/dots.png') no-repeat center center;
  background-size: contain;
}

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

.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;
}

.info-icon svg {
  stroke: #555;
}

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

/* ═══════════════════════════════════════════════════════
   SECTION 4 — CLASSROOMS AND VIRTUAL CLASSROOMS
   ═══════════════════════════════════════════════════════ */
.classrooms-section {
  background: #FEFAF4;
  padding: 60px 40px;
}

.classrooms-section .container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
  /* margin-left removed — container auto margin handles centering */
}

.classrooms-section h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 550;
  font-size: 28px;
  color: #111;
  margin-bottom: 18px;
  line-height: 1.3;
}

.classrooms-section p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  color: #333;
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 500px;
}

.section-illustration {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.section-illustration img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: left;
}

/* ═══════════════════════════════════════════════════════
   SECTION 5 — 100% JOB PLACEMENT ASSISTANCE
   ═══════════════════════════════════════════════════════ */
.placement-section {
  background: #FEFAF4;
  padding: 60px 40px;
}

.placement-section .container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  align-items: center;
}

.placement-section h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 550;
  font-size: 28px;
  color: #111;
  margin-bottom: 18px;
  line-height: 1.3;
}

.placement-section p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  color: #333;
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 600px;
}

.placement-illustration {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placement-illustration img {
  max-height: 350px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

/* ═══════════════════════════════════════════════════════
   SECTION 6 — LET'S TALK
   ═══════════════════════════════════════════════════════ */
.lets-talk-section {
  background: #FEFAF4;
  padding: 50px 0px 60px;
}

.lets-talk-section .container {
  max-width: 1100px;
}

.lets-talk-section h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 550;
  font-size: 28px;
  color: #16a34a;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.lets-talk-section p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  color: #333;
  line-height: 1.75;
  margin-bottom: 14px;
}

.lets-talk-section .green-text {
  color: #16a34a;
  font-weight: 700;
}

.lets-talk-section a.green-link {
  color: #16a34a;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.lets-talk-section a.green-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════
   SECTION 7 — FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 50px 40px 0;
  font-family: 'Arial', sans-serif;
  display: none;
}

.footer .container {
  max-width: 1100px;
}

/* Footer Logo */
.footer-logo {
  text-align: center;
  margin-bottom: 30px;
}

.footer-logo-text {
  font-family: 'Arial', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #C8B400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
}

/* Footer course labels */
.footer-courses {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #333;
}

.footer-courses .course-label {
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cccccc;
  line-height: 1.5;
}

/* Footer info columns */
.footer-info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.footer-info-col h4 {
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  margin-bottom: 10px;
}

.footer-info-col p,
.footer-info-col a {
  font-size: 12px;
  color: #ccc;
  line-height: 1.7;
  display: block;
}

.footer-info-col a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-info-col a:hover {
  color: #4a90e2;
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 11px;
  color: #888;
}

.footer-bottom a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #4a90e2;
}

.footer-bottom-right {
  display: flex;
  gap: 6px;
}

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

  .course-cards-section {
    padding: 40px 5%;
  }

  .cards-grid {
    gap: 20px;
  }

  .classrooms-section .container {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-left: 0;
  }

  .placement-section .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lets-talk-section .container {
    padding: 0 5%;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar .container {
    padding: 12px 20px;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    padding-top: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-banner {
    min-height: 120px;
  }

  .course-cards-section {
    padding: 60px 20px 30px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }

  .card {
    width: 280px;
    height: 370px;
  }

  /* Modal Popup Header Mobile Fixes */
  .popup-header {
    height: 120px;
  }
  
  .popup-header-bg {
    height: 100%;
    object-fit: cover;
    object-position: left center;
  }
  
  .header-inner {
    padding: 15px 35px 0 135px;
    justify-content: flex-start;
  }
  
  .header-text h2, 
  .header-text p,
  .header-text1 h2, 
  .header-text1 p {
    margin-left: 0;
    text-align: left;
  }

  .header-text h2,
  .header-text1 h2 {
    font-size: 18px;
    margin-bottom: 2px;
    line-height: 1.2;
    word-wrap: break-word;
  }

  .header-text p,
  .header-text1 p {
    font-size: 13px;
  }

  .classrooms-section {
    padding: 40px 20px;
  }

  .classrooms-section .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .classrooms-section h2 {
    font-size: 18px;
  }

  .placement-section {
    padding: 40px 20px;
  }

  .placement-section .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .placement-section .placement-illustration {
    order: -1;
  }

  .placement-section h2 {
    font-size: 18px;
  }

  .lets-talk-section {
    padding: 40px 20px;
  }

  .lets-talk-section h2 {
    font-size: 22px;
  }

  .footer {
    padding: 40px 20px 0;
  }

  .footer-courses {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ── Responsive Typography for Section Titles ── */
@media (max-width: 1024px) {
  .section-title {
    font-size: 32px;
    margin-bottom: 25px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
}

@media (max-width: 375px) {
  .section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
}