/* ==========================================================================
   MICROTECH COMPUTER - COURSES PAGE STYLESHEET
   Matches official brand design tokens, clean typography & premium layout
   ========================================================================== */

/* --- Courses Page Specific Variables --- */
:root {
  --course-card-bg: #FFFFFF;
  --course-card-border: #E2E8F0;
  --course-card-hover-border: #93C5FD;
  --course-card-shadow: 0 4px 20px -2px rgba(11, 25, 44, 0.06), 0 2px 6px -1px rgba(11, 25, 44, 0.04);
  --course-card-shadow-hover: 0 12px 30px -4px rgba(37, 99, 235, 0.15), 0 4px 12px -2px rgba(11, 25, 44, 0.06);
}

/* --- Hero Section Specific to Courses Page --- */
.courses-hero-section {
  position: relative;
  background-color: var(--primary-navy);
  color: var(--color-white);
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}

.courses-hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(11, 25, 44, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.courses-hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(11, 25, 44, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.courses-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.courses-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: var(--radius-full);
  color: #93C5FD;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.courses-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.courses-hero-title .highlight-blue {
  color: #38BDF8;
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.courses-hero-desc {
  font-size: 1.15rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.courses-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

.btn-hero-enquire {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-hero-enquire:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.courses-hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.hero-trust-point {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #E2E8F0;
  font-weight: 500;
}

.hero-trust-point i {
  color: #38BDF8;
  font-size: 1.05rem;
}

/* Hero Visual Box */
.courses-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.courses-hero-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 480px;
  background: #162B45;
}

.courses-hero-img-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-floating-tag {
  position: absolute;
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.hero-floating-tag.tag-top {
  top: 1.5rem;
  left: -1.5rem;
}

.hero-floating-tag.tag-bottom {
  bottom: 1.5rem;
  right: -1rem;
}

.hero-tag-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #0284C7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-tag-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.hero-tag-sub {
  font-size: 0.75rem;
  color: #94A3B8;
}

/* ==========================================================================
   SECTION 2 — COURSE CATEGORIES GRID
   ========================================================================== */
.categories-section {
  background-color: var(--bg-body);
  padding: 5.5rem 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.category-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--course-card-shadow-hover);
  border-color: var(--course-card-hover-border);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.category-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--sky-lighter);
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vibrant-blue);
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.category-card:hover .category-icon-box {
  background: var(--vibrant-blue);
  color: var(--color-white);
  border-color: var(--vibrant-blue);
}

.category-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.3;
}

.category-courses-list {
  list-style: none;
  margin-bottom: 1.75rem;
}

.category-courses-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.925rem;
  color: var(--text-body);
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.category-courses-list li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--vibrant-blue);
  font-size: 1.1rem;
  line-height: 1;
}

.category-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   SECTION 3 — POPULAR COURSES
   ========================================================================== */
.popular-section {
  background-color: var(--color-white);
  padding: 5.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.popular-courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.popular-course-card {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.popular-course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--course-card-shadow-hover);
  border-color: var(--course-card-hover-border);
}

/* Top Thumbnail Banner */
.popular-card-banner {
  height: 115px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  overflow: hidden;
}

.banner-excel {
  background: linear-gradient(135deg, #107C41 0%, #084D27 100%);
}

.banner-tally {
  background: linear-gradient(135deg, #0B2545 0%, #133E68 100%);
}

.banner-python {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%);
}

.banner-web {
  background: linear-gradient(135deg, #0284C7 0%, #075985 100%);
}

.banner-graphic {
  background: linear-gradient(135deg, #312E81 0%, #1E1B4B 100%);
}

.banner-marketing {
  background: linear-gradient(135deg, #7C2D12 0%, #431407 100%);
}

.banner-ai {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-bottom: 2px solid #38BDF8;
}

.banner-data {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
}

.banner-graphic-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
  text-align: center;
}

.banner-logo-icon {
  font-size: 2.2rem;
}

.banner-logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.popular-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.popular-course-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.popular-course-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  min-height: 48px;
}

.popular-course-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-body);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 600;
}

.meta-value {
  color: var(--primary-navy);
  font-weight: 600;
}

.popular-card-btn {
  width: 100%;
}

/* ==========================================================================
   SECTION 4 — JOB ORIENTED LEARNING
   ========================================================================== */
.skills-matter-section {
  background-color: var(--sky-lighter);
  padding: 5.5rem 0;
}

.skills-matter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.skill-matter-card {
  background: var(--color-white);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.skill-matter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--course-card-shadow-hover);
  border-color: var(--vibrant-blue);
}

.skill-matter-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sky-light);
  color: var(--vibrant-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-normal);
}

.skill-matter-card:hover .skill-matter-icon {
  background: var(--vibrant-blue);
  color: var(--color-white);
}

.skill-matter-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.6rem;
}

.skill-matter-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 5, 6 & 7 — WHY CHOOSE + LEVELS + FREE TRIAL CALLOUT
   ========================================================================== */
.features-levels-section {
  background: var(--color-white);
  padding: 5.5rem 0;
}

.features-levels-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 1.35fr;
  gap: 2rem;
  align-items: stretch;
}

.section-sub-box {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sub-box-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
}

/* Why Choose 6 Mini Cards */
.why-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.why-mini-card {
  background: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.why-mini-icon {
  color: var(--vibrant-blue);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.why-mini-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.2;
}

.why-mini-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Course Levels 3 Cards */
.levels-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.level-card {
  background: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.level-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky-lighter);
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.level-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.level-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Free Trial High-Converting Dark Card */
.trial-callout-card {
  background: linear-gradient(145deg, #0B192C 0%, #162B45 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px -5px rgba(11, 25, 44, 0.35);
}

.trial-callout-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.trial-callout-content {
  position: relative;
  z-index: 2;
}

.trial-callout-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.trial-callout-text {
  font-size: 0.925rem;
  color: #CBD5E1;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.trial-callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.trial-callout-counselor {
  position: relative;
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.trial-callout-counselor img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   SECTION 8 — FREQUENTLY ASKED QUESTIONS
   ========================================================================== */
.courses-faq-section {
  background-color: var(--bg-body);
  padding: 5.5rem 0;
}

.faq-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.faq-item-card {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item-card:hover {
  border-color: var(--course-card-hover-border);
}

.faq-item-card.active {
  border-color: var(--vibrant-blue);
  box-shadow: 0 4px 15px -2px rgba(37, 99, 235, 0.12);
}

.faq-question-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  transition: color var(--transition-fast);
}

.faq-question-btn:hover {
  color: var(--vibrant-blue);
}

.faq-toggle-icon {
  font-size: 1.1rem;
  color: var(--royal-blue);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item-card.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1.5rem;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.925rem;
  color: var(--text-body);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}

/* ==========================================================================
   SECTION 9 — FINAL CTA BANNER
   ========================================================================== */
.final-cta-section {
  background: linear-gradient(135deg, #0B192C 0%, #060E18 100%);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.final-cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.final-cta-left {
  max-width: 650px;
}

.final-cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.final-cta-desc {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.55;
  margin-bottom: 0;
}

.final-cta-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1080px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .popular-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-matter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-levels-grid {
    grid-template-columns: 1fr;
  }

  .trial-callout-counselor img {
    height: 240px;
  }
}

@media (max-width: 820px) {
  .courses-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .courses-hero-title {
    font-size: 2.35rem;
  }

  .courses-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .courses-hero-ctas {
    justify-content: center;
  }

  .courses-hero-trust-bar {
    justify-content: center;
  }

  .hero-floating-tag.tag-top {
    left: 0;
  }

  .hero-floating-tag.tag-bottom {
    right: 0;
  }

  .faq-grid-2col {
    grid-template-columns: 1fr;
  }

  .final-cta-box {
    flex-direction: column;
    text-align: center;
  }

  .final-cta-actions {
    justify-content: center;
  }
}

@media (max-width: 580px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .popular-courses-grid {
    grid-template-columns: 1fr;
  }

  .skills-matter-grid {
    grid-template-columns: 1fr;
  }

  .why-mini-grid {
    grid-template-columns: 1fr;
  }

  .courses-hero-title {
    font-size: 1.95rem;
  }

  .final-cta-title {
    font-size: 1.75rem;
  }

  .final-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .final-cta-actions .btn {
    width: 100%;
  }
}
