/* =========================================================
   ICME ACADEMY — MAIN STYLESHEET
   ========================================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  background: var(--color-white);
  color: var(--color-text);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: auto;
}

section { position: relative; }

/* =========================================================
   HEADER / NAVIGATION
   Moved to assets/css/header-medox.css (Medox-template-based
   header: site-header / sticky-header / main-bar / header-nav).
   ========================================================= */

/* =========================================================
   HERO (Medox-style: light two-column layout)
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 60px) 0 90px;
  background: linear-gradient(180deg, #eef5fb 0%, var(--color-off-white) 100%);
}
.hero-shape-1,
.hero-shape-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.hero-shape-1 {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -140px;
  background: radial-gradient(circle, rgba(199,165,92,.16), transparent 70%);
}
.hero-shape-2 {
  width: 520px;
  height: 520px;
  bottom: -220px;
  right: -180px;
  background: radial-gradient(circle, rgba(11,31,58,.08), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

/* ---------- Text side ---------- */
.hero-kicker {
  display: inline-block;
  color: var(--color-gold-dark);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.hero-text h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.16;
  color: var(--color-navy);
  margin-bottom: 22px;
}
.hero-text h1 span { color: var(--color-gold-dark); }
.hero-text > p {
  font-size: var(--fs-md);
  line-height: 1.8;
  color: var(--color-gray);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-checklist { margin-bottom: 34px; }
.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 14px;
}
.hero-checklist li i {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-size: 12px;
}
.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; }
.btn-outline-navy {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}
.btn-outline-navy:hover {
  background: var(--color-navy);
  color: #fff;
  transform: translateY(-4px);
}

/* ---------- Visual side ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual-shape {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-navy), var(--color-navy-light));
  box-shadow: var(--shadow-lg);
}
.hero-visual-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-badge-icon {
  position: absolute;
  top: 8%;
  right: -4%;
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-gold-dark);
}
.hero-float-card {
  position: absolute;
  left: -6%;
  bottom: 10%;
  width: 270px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-float-card-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(199, 165, 92, 0.14);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.hero-float-card h4 { font-size: var(--fs-sm); color: var(--color-navy); margin-bottom: 3px; }
.hero-float-card p { font-size: 12px; color: var(--color-gray); line-height: 1.4; }

@media (max-width: 992px) {
  .hero { padding: calc(var(--header-height) + 40px) 0 70px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-text h1 { font-size: 2.4rem; }
  .hero-text > p { margin-left: auto; margin-right: auto; }
  .hero-checklist li { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual-shape { max-width: 320px; }
  .hero-float-card { left: 50%; transform: translateX(-50%); bottom: -8%; width: 90%; max-width: 300px; }
  .hero-badge-icon { top: -4%; right: 6%; }
}

/* =========================================================
   TRUSTED PARTNERS (marquee)
   ========================================================= */
.partners-strip { padding: 50px 0; background: var(--color-off-white); border-bottom: 1px solid var(--color-border); }
.partners-strip .label { text-align: center; color: var(--color-gray); font-size: var(--fs-xs); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 26px; }
.marquee-track img,
.partner-logo {
  height: 44px;
  filter: grayscale(1) opacity(.65);
  transition: var(--transition-fast);
}
.marquee-track .partner-logo:hover { filter: none; }
.partner-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-width: 140px;
  color: var(--color-navy);
  font-weight: 700;
  font-size: var(--fs-md);
  opacity: .55;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: var(--space-xxl) 0; }
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.about-image .float-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--color-navy);
  color: #fff;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-image .float-card i { font-size: 30px; color: var(--color-gold); }
.about-image .float-card h4 { font-size: 1.4rem; }
.about-image .float-card span { font-size: var(--fs-xs); color: rgba(255,255,255,.7); }
.about-content h2 { font-size: var(--fs-xxl); color: var(--color-navy); margin-bottom: 22px; line-height: 1.3; }
.about-content p { line-height: 1.9; margin-bottom: 18px; color: var(--color-gray); }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 32px; }
.about-list li { display: flex; align-items: center; gap: 10px; color: var(--color-navy); font-weight: 500; font-size: var(--fs-sm); }
.about-list i { color: var(--color-gold); }

@media (max-width: 991px) {
  .about .container { grid-template-columns: 1fr; text-align: center; }
  .about-list { grid-template-columns: 1fr; }
  .about-image .float-card { position: static; margin-top: -50px; margin-left: 20px; margin-right: 20px; }
}

/* =========================================================
   STATS
   ========================================================= */
.stats { background: var(--color-navy); padding: 80px 0; position: relative; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-box { text-align: center; color: #fff; }
.stat-box i { font-size: 30px; color: var(--color-gold); margin-bottom: 16px; }
.stat-box h3 { font-size: 3.2rem; color: var(--color-gold); font-weight: 700; }
.stat-box p { color: rgba(255,255,255,.75); font-size: var(--fs-sm); margin-top: 6px; }

@media (max-width: 767px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why { padding: var(--space-xxl) 0; background: var(--color-off-white); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature { background: #fff; padding: 46px 34px; border-radius: var(--radius-md); text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--color-border); }
.feature:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.feature .icon-circle {
  width: 74px; height: 74px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(199,165,92,.16), rgba(11,31,58,.06));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; color: var(--color-gold-dark); font-size: 28px;
  transition: var(--transition);
}
.feature:hover .icon-circle { background: var(--color-gold); color: #fff; }
.feature h3 { color: var(--color-navy); margin-bottom: 12px; font-size: var(--fs-md); }
.feature p { line-height: 1.8; color: var(--color-gray); font-size: var(--fs-sm); }

@media (max-width: 991px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .why-grid { grid-template-columns: 1fr; } }

/* =========================================================
   DEPARTMENTS / SPECIALTIES
   ========================================================= */
.departments { padding: var(--space-xxl) 0; }
.departments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.departments-grid.compact { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1199px) { .departments-grid, .departments-grid.compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .departments-grid, .departments-grid.compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .departments-grid, .departments-grid.compact { grid-template-columns: 1fr; } }

.section-footer-cta { text-align: center; margin-top: var(--space-lg); }

/* =========================================================
   FEATURED / UPCOMING COURSES
   ========================================================= */
.courses { padding: var(--space-xxl) 0; background: var(--color-off-white); }
.courses.on-white { background: #fff; }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.courses-toolbar { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: var(--space-lg); gap: 20px; flex-wrap: wrap; }
.courses-toolbar .section-title { text-align: left; margin-bottom: 0; }

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

/* Swiper course slider tweaks */
.course-slider .swiper-slide { height: auto; }
.slider-nav { display: flex; justify-content: center; gap: 16px; margin-top: var(--space-lg); }
.slider-nav button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: #fff; color: var(--color-navy);
  cursor: pointer; transition: var(--transition-fast);
  display: flex; align-items: center; justify-content: center;
}
.slider-nav button:hover { background: var(--color-gold); border-color: var(--color-gold); color: #fff; }

/* =========================================================
   GALLERY (home preview)
   ========================================================= */
.gallery-preview { padding: var(--space-xxl) 0; }

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

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: var(--space-xxl) 0; background: var(--color-navy); position: relative; overflow: hidden; }
.testimonials::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -40px; left: 40px;
  font-size: 220px;
  color: rgba(255,255,255,.03);
}
.testimonials .section-title h2,
.testimonials .section-title p { color: #fff; }
.testimonials .section-title p { color: rgba(255,255,255,.65); }

/* =========================================================
   PARTNERS GRID (contact/about pages)
   ========================================================= */
.partners { padding: 90px 0; }
.partners-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 40px; }

/* =========================================================
   CONTACT SECTION (home + contact page shared)
   ========================================================= */
.contact-section { padding: var(--space-xxl) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info-card {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 46px 38px;
  height: 100%;
}
.contact-info-card h3 { font-size: var(--fs-lg); margin-bottom: 18px; }
.contact-info-card p { color: rgba(255,255,255,.7); line-height: 1.8; margin-bottom: 30px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact-info-item i {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(199,165,92,.15); color: var(--color-gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px;
}
.contact-info-item h5 { font-size: var(--fs-sm); margin-bottom: 4px; }
.contact-info-item span, .contact-info-item a { color: rgba(255,255,255,.7); font-size: var(--fs-sm); text-decoration: none; }
.contact-form-card { background: #fff; border-radius: var(--radius-md); padding: 46px 38px; box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }
.contact-map { border-radius: var(--radius-md); overflow: hidden; margin-top: var(--space-lg); box-shadow: var(--shadow-sm); }
.contact-map iframe { width: 100%; height: 380px; border: 0; display: block; }

@media (max-width: 991px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   PAGE BANNER extras
   ========================================================= */
.page-banner.with-image { background-image: linear-gradient(120deg, rgba(6,18,41,.92), rgba(6,18,41,.78)), url("../images/hero/hero-bg.jpg"); }

/* =========================================================
   ABOUT PAGE — mission/vision/values + timeline
   ========================================================= */
.mvv { padding: var(--space-xxl) 0; }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mvv-card { background: #fff; padding: 44px 34px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); border-top: 4px solid var(--color-gold); transition: var(--transition); }
.mvv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.mvv-card i { font-size: 34px; color: var(--color-gold); margin-bottom: 20px; }
.mvv-card h3 { color: var(--color-navy); margin-bottom: 14px; font-size: var(--fs-md); }
.mvv-card p { color: var(--color-gray); line-height: 1.8; font-size: var(--fs-sm); }

.values-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: var(--space-lg); }
.value-item { display: flex; gap: 16px; }
.value-item .num { font-size: var(--fs-lg); font-weight: 700; color: var(--color-gold); flex-shrink: 0; width: 46px; }
.value-item h4 { color: var(--color-navy); margin-bottom: 6px; font-size: var(--fs-sm); }
.value-item p { color: var(--color-gray); font-size: var(--fs-sm); line-height: 1.75; }

.goals-list { list-style: none; counter-reset: goal; margin-top: var(--space-md); }
.goals-list li { counter-increment: goal; display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--color-border); }
.goals-list li::before {
  content: counter(goal, decimal-leading-zero);
  font-weight: 700; color: var(--color-gold); font-size: var(--fs-md); flex-shrink: 0;
}
.goals-list li span { color: var(--color-text); line-height: 1.7; }

@media (max-width: 991px) { .mvv-grid, .values-list { grid-template-columns: 1fr; } }

/* =========================================================
   DEPARTMENT DETAILS / COURSE DETAILS
   ========================================================= */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; padding: var(--space-xxl) 0; align-items: start; }
.detail-main h2 { color: var(--color-navy); font-size: var(--fs-xl); margin: 34px 0 18px; }
.detail-main h2:first-child { margin-top: 0; }
.detail-main p { line-height: 1.9; color: var(--color-text); margin-bottom: 16px; }
.detail-hero-image { border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-lg); box-shadow: var(--shadow-md); }
.learn-list { display: grid; gap: 14px; margin: 20px 0 10px; }
.learn-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--color-off-white); padding: 16px 20px; border-radius: var(--radius-sm); }
.learn-list i { color: var(--color-gold); margin-top: 3px; }
.learn-list span { color: var(--color-text); line-height: 1.7; font-size: var(--fs-sm); }

.sidebar-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 32px 28px; box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.sidebar-card h4 { color: var(--color-navy); font-size: var(--fs-md); margin-bottom: 20px; }
.info-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--color-gray); display: flex; align-items: center; gap: 8px; }
.info-row span:last-child { color: var(--color-navy); font-weight: 600; }
.info-row i { color: var(--color-gold); }
.sidebar-card .btn { margin-top: 10px; }

.related-courses-title { color: var(--color-navy); font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.mini-course-card { display: flex; gap: 14px; text-decoration: none; padding: 12px; border-radius: var(--radius-sm); transition: var(--transition-fast); margin-bottom: 8px; }
.mini-course-card:hover { background: var(--color-off-white); }
.mini-course-card img { width: 66px; height: 66px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.mini-course-card h5 { color: var(--color-navy); font-size: var(--fs-xs); line-height: 1.5; margin-bottom: 4px; }
.mini-course-card span { color: var(--color-gray); font-size: 11px; }

@media (max-width: 991px) { .detail-layout { grid-template-columns: 1fr; } }

/* =========================================================
   DEPARTMENTS PAGE FULL GRID
   ========================================================= */
.departments-page { padding: var(--space-xxl) 0; }

/* =========================================================
   COURSES PAGE (departments.html course listing use)
   ========================================================= */
.courses-page { padding: var(--space-xxl) 0; }
.courses-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 991px) { .courses-page-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .courses-page-grid { grid-template-columns: 1fr; } }

/* =========================================================
   REGISTER PAGE
   ========================================================= */
.register-section { padding: var(--space-xxl) 0; }
.register-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: flex-start; }
.register-aside {
  background: linear-gradient(150deg, var(--color-navy), var(--color-navy-light));
  border-radius: var(--radius-md);
  padding: 46px 38px;
  color: #fff;
  position: sticky;
  top: 120px;
}
.register-aside h3 { font-size: var(--fs-lg); margin-bottom: 18px; }
.register-aside p { color: rgba(255,255,255,.72); line-height: 1.85; margin-bottom: 30px; }
.register-steps li { display: flex; gap: 16px; margin-bottom: 24px; }
.register-steps .step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--color-gold);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0; font-size: var(--fs-sm);
}
.register-steps h5 { font-size: var(--fs-sm); margin-bottom: 4px; }
.register-steps span { font-size: var(--fs-xs); color: rgba(255,255,255,.65); }
.register-form-card { background: #fff; border-radius: var(--radius-md); padding: 46px; box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }

@media (max-width: 991px) {
  .register-layout { grid-template-columns: 1fr; }
  .register-aside { position: static; }
}

/* =========================================================
   GALLERY PAGE
   ========================================================= */
.gallery-page { padding: var(--space-xxl) 0; }

/* =========================================================
   FOOTER CTA BANNER
   ========================================================= */
.cta-banner {
  background: linear-gradient(120deg, var(--color-navy), var(--color-navy-light));
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0 auto var(--space-xxl);
  width: 90%;
  max-width: var(--container-width);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner h3 { font-size: var(--fs-xl); max-width: 560px; line-height: 1.35; }
.cta-banner p { color: rgba(255,255,255,.7); margin-top: 10px; max-width: 520px; }

/* =========================================================
   FOOTER (layout completed here; component styles in components.css)
   ========================================================= */
.site-footer .footer-bottom { border-top: none; }
