/* ============================================================
   AcademicGuide – ag-site.css (FINAL, ERROR-FREE, PRODUCTION)
   ============================================================ */

/* ------------------------------------------------------------
   1. GLOBAL VARIABLES (must be the FIRST block)
------------------------------------------------------------- */
:root {
  --navy: #001F3F;
  --dark-navy: #001933;
  --soft-grey: #F8F9FA;
  --beige: #FFF8E1;

  --text-dark: #000000;
  --text-mid: #4B5563;

  --accent: #2563EB;
  --accent-hover: #1d4ed8;

  --black: #000000;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
}

/* ------------------------------------------------------------
   2. BASE RESET + TYPOGRAPHY
------------------------------------------------------------- */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--soft-grey);
  color: var(--text-mid);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Headings */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  margin: 0 0 16px 0;
}

h1 { font-size: 36px; line-height: 1.25; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
}

/* ------------------------------------------------------------
   3. SECTION LAYOUTS
------------------------------------------------------------- */
.section { padding: 48px 0; background: var(--soft-grey); }
.section.alt { background: #ffffff; }
.section.navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark-navy) 100%);
  color: #fff;
}

/* ------------------------------------------------------------
   4. HERO SECTION
------------------------------------------------------------- */
.ag-hero {
  padding: 60px 0 40px;
}
.ag-hero .kicker {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.ag-hero h1 {
  color: var(--navy);
}

/* ------------------------------------------------------------
   5. BUTTONS
------------------------------------------------------------- */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-light {
  background: #ffffff;
  color: var(--accent);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #d7e2f1;
  text-decoration: none;
}
.btn-light:hover { background: var(--beige); }

/* ------------------------------------------------------------
   6. CAREER FINDER
------------------------------------------------------------- */
#ag-career-root {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.ag-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.ag-col {
  flex: 1 1 260px;
  min-width: 220px;
}

#ag-career-root label { display: none; }

.ag-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d3d8e0;
  font-size: 15px;
  color: var(--black);
  background: #ffffff;
  min-height: 48px;
}

/* Buttons row */
#ag-career-root .buttons {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mobile alignment fix */
@media (max-width: 768px) {
  #ag-career-root .buttons { flex-direction: column; }
  #ag-career-root .buttons button { width: 100%; }
}

/* Results */
.ag-results-wrapper {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 900px) {
  .ag-results-wrapper { grid-template-columns: repeat(2, 1fr); }
}

.ag-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #eef6ff;
  box-shadow: 0 6px 18px rgba(12,41,77,0.04);
}
.ag-card h4 {
  margin: 0 0 10px;
  color: var(--navy);
}

/* ------------------------------------------------------------
   7. SKILL ENHANCEMENT PROGRAMMES — FINAL REDESIGN
------------------------------------------------------------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.skill-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #e7edf5;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.skill-card h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 20px;
}
.skill-card p {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.55;
}

/* Remove the Learn More button entirely */
.skill-card .btn-primary,
.skill-card .btn-light {
  display: none;
}

/* ------------------------------------------------------------
   8. COURSE LIBRARY – CLEAN LIST ONLY
------------------------------------------------------------- */
.ag-course-library-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ag-course-card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #eef3f8;
  box-shadow: 0 6px 18px rgba(12,41,77,0.04);
}

.ag-course-title a {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  text-decoration: none;
  font-size: 20px;
}

.ag-course-excerpt {
  margin: 8px 0 10px;
  color: var(--text-mid);
}

.ag-course-meta .tag {
  display: inline-block;
  background: #f3f7ff;
  color: var(--navy);
  padding: 4px 8px;
  border-radius: 6px;
  margin-right: 6px;
  margin-bottom: 4px;
}

/* ------------------------------------------------------------
   9. PROGRAM CARDS (Stream pages)
------------------------------------------------------------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.program-box {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5eaf3;
  box-shadow: 0 6px 20px rgba(12,41,77,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.program-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(12,41,77,0.10);
}

.program-box img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.program-box .body {
  padding: 14px;
}
.program-box h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--navy);
}

/* Remove Learn More button (as instructed) */
.program-box .btn-light { display: none; }

/* ------------------------------------------------------------
   10. FAQ ACCORDION
------------------------------------------------------------- */
.faq-section {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.accordion {
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #e6eaf0;
}
.accordion-header {
  padding: 16px;
  background: var(--beige);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  color: var(--navy);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0 16px;
}
.accordion.active .accordion-content {
  max-height: 600px;
  padding: 16px;
}

/* ------------------------------------------------------------
   11. FOOTER FIX (Text unreadable issue)
------------------------------------------------------------- */
.site-footer,
footer,
footer a {
  background: var(--navy);
  color: var(--beige);
}

footer a {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   12. UTILITIES
------------------------------------------------------------- */
.ag-loader {
  text-align: center;
  padding: 14px;
  color: var(--text-mid);
}

.text-muted {
  color: var(--text-mid);
}

select:focus,
.btn-primary:focus,
.btn-light:focus {
  outline: 3px solid rgba(37,99,235,0.2);
  outline-offset: 2px;
}







/* Header menu styles moved from header.php inline <style> */
.ag-menu a {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  padding: 10px 14px !important;
  text-decoration: none;
}
.ag-menu a:hover { opacity: 0.9; }

/* Mobile menu trigger color */
.ast-mobile-menu-trigger,
.ast-header-break-point .main-header-bar-navigation {
  color: #fff !important;
}

/* Critical hero style (if not already present) */
.ag-hero { background: transparent; padding: 56px 0 48px; text-align: left; }
.ag-hero .container { max-width:1180px; margin:0 auto; padding:0 16px; }
.ag-hero h1 { font-family: "Playfair Display", serif; font-size: 38px; line-height: 1.18; color: #001F3F; margin:0 0 12px; }
.ag-hero p.ag-sub { font-family: Inter, sans-serif; font-size:16px; color:#4B5563; margin:0 0 18px; max-width:760px; }
@media (max-width:600px) {
  .ag-hero { padding:42px 0; }
  .ag-hero h1 { font-size:28px; }
}

