.academics-hero {
  position: relative;
  background: url("../images/academic.png") center/cover no-repeat;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.academics-overlay {
  width: 100%;
  height: 100%;
  background: rgba(33, 0, 70, 0.65); /* purple overlay */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.academics-container {
  width: 85%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
}
.academics-content h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
}

.academics-content p {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.academics-btn {
  background: #ff6636;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.academics-btn:hover {
  background: #ffb300;
}

/* ==============================
   Large Tablets (992px)
============================== */
@media (max-width: 992px) {
  .academics-hero {
    height: 500px;
  }

  .academics-content h1 {
    font-size: 42px;
  }

  .academics-content p {
    font-size: 16px;
    max-width: 600px;
  }

  .academics-btn {
    padding: 10px 26px;
    font-size: 15px;
  }
}

/* ==============================
   Mobile (768px)
============================== */
@media (max-width: 768px) {
  .academics-hero {
    height: 420px;
  }

  .academics-overlay {
    padding: 30px 20px;
  }

  .academics-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .academics-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
  }

  .academics-btn {
    padding: 10px 22px;
    font-size: 14px;
  }
}

/* ================= COURSES SECTION ================= */

.courses-section {
  position: relative;
  padding: 100px 0;
  background: #ffffff;
  overflow: hidden;
}

.courses-container {
  width: 85%;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-header p {
  max-width: 700px;
  margin: auto;
  font-size: 20px;
  line-height: 1.7;
  color: #555;
}

/* Course Row */
.course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 100px;
}

.course-row.reverse {
  flex-direction: row-reverse;
}

/* Image */
.course-image img {
  width: 350px;
  border-radius: 20px;
}

/* Content */
.course-content {
  max-width: 550px;
}

.course-content h3 {
  font-size: 35px;
  margin-bottom: 15px;
}

.course-content p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #1e1e1e;
}

/* ================= REPEATING PENCILS ================= */

.pencil {
  position: absolute;
  top: 0;
  width: 70px;
  height: 100%;
  background-image: url("/assets/images/pencil.png");
  background-repeat: repeat-y;
  background-size: contain;
  z-index: 1;
}

/* Left */
.pencil-left {
  left: 0;
}

/* Right */
.pencil-right {
  right: 0;
  transform: scaleX(-1); /* mirror for right side */
}

@media (max-width: 992px) {
  .courses-section {
    padding: 80px 0;
  }

  .section-header h2 {
    font-size: 34px;
  }

  .section-header p {
    font-size: 18px;
  }

  .course-row {
    gap: 50px;
    margin-bottom: 80px;
  }

  .course-image img {
    width: 280px;
  }

  .course-content h3 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .courses-container {
    width: 90%;
  }

  .section-header {
    margin-bottom: 50px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 16px;
  }

  /* Stack rows vertically */
  .course-row,
  .course-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    margin-bottom: 70px;
  }

  .course-image img {
    width: 100%;
    max-width: 400px;
  }

  .course-content {
    max-width: 100%;
  }

  .course-content h3 {
    font-size: 24px;
  }

  .course-content p {
    font-size: 15px;
  }

  /* Hide pencils on small screens */
  .pencil {
    display: none;
  }
}

/* ================= ACADEMICS SECTION ================= */

.academics-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  margin-top: 50px;
}

/* Background Grid (4 images) */
.academics-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.academics-bg img {
  width: 100%;
  height: 640px;
  object-fit: cover;
}

/* Dark Overlay */
.academics-overlay {
  position: absolute;
  inset: 0;
  background: #220f48a6;
  z-index: 1;
}

/* Content */
.academics-content {
  position: relative;
  z-index: 2;
  padding: 100px 8%;
}

/* Two Columns */
.academics-grid {
  display: flex;
  justify-content: space-between;
  gap: 80px;
}

/* Text Box */
.academics-box {
  flex: 1;
}

.academics-box h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.academics-box p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #e5e5e5;
}

.academics-box h4 {
  margin-bottom: 10px;
  font-size: 18px;
}

.academics-box ul {
  padding-left: 18px;
}

.academics-box ul li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #ddd;
}

/* Button */
.academics-btn {
  text-align: center;
  margin-top: 50px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 35px;
  background: #ffb400;
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background: #e69f00;
}

@media (max-width: 992px) {
  .academics-content {
    padding: 80px 6%;
  }

  .academics-grid {
    flex-direction: column;
    gap: 50px;
  }

  .academics-box h2 {
    font-size: 28px;
  }

  .academics-box p {
    font-size: 14px;
  }

  .btn-primary {
    padding: 12px 28px;
  }
}

@media (max-width: 768px) {
  .academics-section {
    margin-top: 30px;
  }

  .academics-content {
    padding: 60px 5%;
  }

  .academics-box h2 {
    font-size: 24px;
  }

  .academics-box h4 {
    font-size: 16px;
  }

  .academics-box p {
    font-size: 14px;
    line-height: 1.6;
  }

  .academics-box ul li {
    font-size: 13px;
  }

  .btn-primary {
    padding: 10px 22px;
    font-size: 14px;
  }
}

/* ── Container ── */
.ptm-section {
  background: #fff;
}
.ptm-container {
  max-width: 1100px;
  margin: auto;
  padding: 70px 30px;
}

/* ── Header ── */
.ptm-header {
  text-align: center;
  margin-bottom: 55px;
}

.ptm-header .badge-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #22c55e;
  border: 1.5px solid #22c55e;
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.ptm-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: #1e2d5a;
  margin-bottom: 12px;
}

.ptm-header p {
  color: #6b7280;
  max-width: 560px;
  margin: auto;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Main 2-col layout ── */
.ptm-main {
  display: flex;
  align-items: center;
  gap: 50px;
}

/* ── LEFT: Cards ── */
.ptm-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ptm-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #f0f0f0;
  border-left: 5px solid;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.ptm-card.green {
  border-left-color: #22c55e;
}
.ptm-card.yellow {
  border-left-color: #f59e0b;
}
.ptm-card.red {
  border-left-color: #ec4899;
}

.ptm-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.ptm-card.green .icon {
  background: #dcfce7;
  color: #22c55e;
}
.ptm-card.yellow .icon {
  background: #fef3c7;
  color: #f59e0b;
}
.ptm-card.red .icon {
  background: #fce7f3;
  color: #ec4899;
}

.ptm-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e2d5a;
  margin-bottom: 5px;
}

.ptm-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 8px;
}

.meta {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.meta.green-text {
  color: #22c55e;
}
.meta.yellow-text {
  color: #f59e0b;
}
.meta.red-text {
  color: #ec4899;
}

/* ── RIGHT: Image Grid ── */
.ptm-right {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 14px;
  align-items: center;
  justify-items: center;
}

.ptm-right img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
}

/* Row 1: img-a left, img-b right */
.img-a {
  grid-column: 1;
  grid-row: 1;
}
.img-b {
  grid-column: 2;
  grid-row: 1;
}

/* Row 2: img-c left, img-d right */
.img-c {
  grid-column: 1;
  grid-row: 2;
}
.img-d {
  grid-column: 2;
  grid-row: 2;
}

/* Row 3: img-e spans both columns, centered */
.img-e {
  grid-column: 1 / 3;
  grid-row: 3;
  max-width: 230px;
}

/* Dotted connector line between cards and images */
.ptm-main {
  position: relative;
}

/* ── Benefits ── */
.ptm-benefits {
  margin-top: 60px;
  background: #eef2f9;
  padding: 44px 40px;
  border-radius: 18px;
  text-align: center;
}

.ptm-benefits h3 {
  font-size: 26px;
  font-weight: 800;
  color: #1e2d5a;
  margin-bottom: 36px;
}

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

.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.benefit .ben-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.benefit.bgreen .ben-icon {
  background: #dcfce7;
  color: #22c55e;
}
.benefit.bpurple .ben-icon {
  background: #ede9fe;
  color: #7c3aed;
}
.benefit.byellow .ben-icon {
  background: #fef3c7;
  color: #f59e0b;
}
.benefit.bred .ben-icon {
  background: #fce7f3;
  color: #ec4899;
}

.benefit h5 {
  font-size: 14px;
  font-weight: 700;
  color: #1e2d5a;
  margin: 0;
}

.benefit p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ptm-main {
    flex-direction: column;
  }
  .ptm-right {
    width: 100%;
  }
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
