/* =========================================================
   GPSC  -  Global Petroleum Services & Consultancy
   Design System Styles
   Built by Tactics Group Co, Abu Dhabi
   ========================================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700;800&family=Tajawal:wght@300;400;500;700;800&family=Cairo:wght@300;400;500;600;700&display=swap');

/* Flash-of-untranslated-content prevention for Arabic mode.
   Elements hide briefly until JS marks them translated.
   CSS safety net forces them visible after 1.8s so a JS failure
   never leaves the page permanently blank. */
html.lang-ar [data-i18n]:not([data-i18n-applied]) {
  visibility: hidden;
  animation: gpsc-force-visible 0.001s 1800ms forwards;
}
@keyframes gpsc-force-visible {
  to { visibility: visible; }
}
/* Smooth reveal once translated */
html.lang-ar [data-i18n][data-i18n-applied] {
  visibility: visible;
}

/* Force phone numbers LTR in RTL context */
a[href^="tel"], .phone-number { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* --- Design Tokens --- */
:root {
  --color-navy:      #0B1F3A;
  --color-gold:      #B8892A;
  --color-teal:      #1A6B7C;
  --color-white:     #FFFFFF;
  --color-surface:   #F4F6F9;
  --color-border:    #DDE3EC;
  --color-dark:      #1A1A2E;
  --color-muted:     #6B7A8D;
  --color-navy-dark: #071428;

  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'Inter', system-ui, sans-serif;
  --font-arabic:     'Tajawal', 'Cairo', sans-serif;

  --max-width:       1280px;
  --section-pad-v:   96px;
  --section-pad-v-m: 56px;
  --card-radius:     8px;
  --card-shadow:     0 2px 16px rgba(11, 31, 58, 0.08);
  --card-shadow-hover: 0 8px 32px rgba(11, 31, 58, 0.16);
  --btn-radius:      6px;
  --transition:      0.2s ease;
  --transition-med:  0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

[dir="rtl"] body,
[dir="rtl"] {
  font-family: var(--font-arabic);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Typography Scale --- */
.text-display {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
}

h1, .h1 {
  font-family: var(--font-body);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
}

h2, .h2 {
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.3;
}

h3, .h3 {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.35;
}

.body-large { font-size: 18px; line-height: 1.7; }
.body       { font-size: 16px; line-height: 1.6; }

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.small { font-size: 14px; }
.micro { font-size: 12px; }

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .text-display,
[dir="rtl"] p,
[dir="rtl"] .body-large {
  font-family: var(--font-arabic);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
}

.section {
  padding: var(--section-pad-v) 0;
}

@media (max-width: 768px) {
  .section { padding: var(--section-pad-v-m) 0; }
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-12 { gap: 16px; }
}

/* --- Colour Utility Classes --- */
.bg-navy       { background-color: var(--color-navy); }
.bg-navy-dark  { background-color: var(--color-navy-dark); }
.bg-gold       { background-color: var(--color-gold); }
.bg-teal       { background-color: var(--color-teal); }
.bg-surface    { background-color: var(--color-surface); }
.bg-white      { background-color: var(--color-white); }

.text-navy    { color: var(--color-navy); }
.text-gold    { color: var(--color-gold); }
.text-teal    { color: var(--color-teal); }
.text-white   { color: var(--color-white); }
.text-dark    { color: var(--color-dark); }
.text-muted   { color: var(--color-muted); }

/* --- Section Divider --- */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--color-gold);
  margin: 12px auto 0;
}

.section-divider--left {
  margin: 12px 0 0;
}

[dir="rtl"] .section-divider--left {
  margin: 12px auto 0 0;
}

/* --- Overline Label --- */
.overline {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--btn-radius);
  font-size: 15px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}
.btn-primary:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}
.btn-gold:hover {
  background: #9a7020;
  border-color: #9a7020;
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn-ghost {
  background: transparent;
  color: var(--color-teal);
  border-color: transparent;
  padding: 14px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover {
  color: var(--color-navy);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-full { width: 100%; justify-content: center; }

/* --- Navigation --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background var(--transition-med), box-shadow var(--transition-med);
}

#navbar.nav-transparent {
  background: transparent;
}

#navbar.nav-solid {
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(11, 31, 58, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo-mark {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.08em;
  line-height: 1;
}

.nav-logo-mark .dot {
  color: var(--color-gold);
}

.nav-transparent .nav-logo-mark {
  color: var(--color-white);
}
.nav-transparent .nav-logo-mark .dot {
  color: var(--color-gold);
}

.nav-logo-tagline {
  font-size: 10px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-transparent .nav-logo-tagline {
  color: rgba(255,255,255,0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  position: relative;
  transition: color var(--transition);
  padding-bottom: 2px;
}

.nav-transparent .nav-links a {
  color: rgba(255,255,255,0.85);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-navy);
}

.nav-transparent .nav-links a:hover,
.nav-transparent .nav-links a.active {
  color: var(--color-gold);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.nav-transparent .lang-switcher {
  border-color: rgba(255,255,255,0.3);
}

.lang-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-btn.active {
  background: var(--color-navy);
  color: var(--color-white);
}

.nav-transparent .lang-btn {
  color: rgba(255,255,255,0.7);
}

.nav-transparent .lang-btn.active {
  background: var(--color-gold);
  color: var(--color-white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

.nav-transparent .hamburger span {
  background: var(--color-white);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform var(--transition-med);
}

[dir="rtl"] .mobile-nav {
  transform: translateX(-100%);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-white);
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--color-gold);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 32px;
  color: var(--color-white);
  cursor: pointer;
  line-height: 1;
}

[dir="rtl"] .mobile-nav-close {
  right: auto;
  left: 24px;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-navy);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
}

.hero-headline-wrap {
  border-left: 4px solid var(--color-gold);
  padding-left: 24px;
  margin-bottom: 24px;
}

[dir="rtl"] .hero-headline-wrap {
  border-left: none;
  border-right: 4px solid var(--color-gold);
  padding-left: 0;
  padding-right: 24px;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-navy);
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
}

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

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

.stat-block {
  background: var(--color-navy);
  text-align: center;
  padding: 40px 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
}

/* Course Card */
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--card-radius);
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--transition-med), border-color var(--transition-med), transform var(--transition);
  overflow: hidden;
  cursor: pointer;
}

[dir="rtl"] .course-card {
  border-left: 1px solid var(--color-border);
  border-right: 3px solid transparent;
}

.course-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-left-color: var(--color-teal);
  transform: translateY(-2px);
}

[dir="rtl"] .course-card:hover {
  border-left-color: var(--color-border);
  border-right-color: var(--color-teal);
}

.course-card-body {
  padding: 20px;
  flex: 1;
}

.course-card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 8px;
}

.course-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 8px;
}

.course-card-desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.course-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-muted);
}

.course-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gold);
  transition: color var(--transition);
  white-space: nowrap;
}

.course-link:hover { color: var(--color-navy); }

/* Category Card */
.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 3px solid transparent;
}

[dir="rtl"] .category-card {
  border-left: 1px solid var(--color-border);
  border-right: 3px solid transparent;
}

.category-card:hover {
  background: var(--color-white);
  border-left-color: var(--color-gold);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

[dir="rtl"] .category-card:hover {
  border-left-color: var(--color-border);
  border-right-color: var(--color-gold);
}

.category-card-icon {
  color: var(--color-teal);
}

.category-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
}

.category-card-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-teal);
  letter-spacing: 0.04em;
}

.category-card-desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* Service Card */
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 36px 32px;
  transition: box-shadow var(--transition-med), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform var(--transition-med);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-teal);
}

/* Why Card */
.why-card {
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--card-radius);
  background: rgba(255,255,255,0.04);
  transition: background var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.07);
}

.why-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.why-card-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--color-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

[dir="rtl"] .why-card-title::before {
  order: -1;
}

.why-card-body {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* Testimonial Card */
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--color-gold);
  opacity: 0.3;
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
}

[dir="rtl"] .testimonial-card::before {
  left: auto;
  right: 20px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-dark);
  margin-bottom: 20px;
  margin-top: 12px;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
}

.testimonial-role {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Partner tile */
.partner-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}

.partner-tile:hover {
  border-color: var(--color-gold);
  box-shadow: var(--card-shadow);
}

.partner-tile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* BNPL Badge  -  removed */

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

.section-header--left {
  text-align: left;
}

[dir="rtl"] .section-header--left {
  text-align: right;
}

.section-header p {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--color-muted);
}

.section-header--left p {
  margin: 16px 0 0;
}

/* --- Hero (inner page) --- */
.page-hero {
  background: var(--color-navy);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(26,107,124,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--color-gold); }

.breadcrumb span {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.breadcrumb-current {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

/* --- Search Bar --- */
.search-bar-wrap {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
  position: sticky;
  top: 72px;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(11,31,58,0.05);
}

.search-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  pointer-events: none;
}

[dir="rtl"] .search-input-wrap svg {
  left: auto;
  right: 14px;
}

.search-input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

[dir="rtl"] .search-input {
  padding: 11px 44px 11px 16px;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(26,107,124,0.12);
  background: var(--color-white);
}

.filter-select {
  padding: 11px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-dark);
  cursor: pointer;
  transition: border-color var(--transition);
  min-width: 160px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-teal);
}

.results-count {
  font-size: 13px;
  color: var(--color-muted);
  white-space: nowrap;
}

/* --- Grid Helpers --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

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

/* --- Course catalogue grid (Edit 9  -  always horizontal) --- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
  justify-content: start;
  min-width: 0;
}

@media (max-width: 1280px) {
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
}

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

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

/* --- Footer --- */
footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

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

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-logo-mark {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.footer-logo-mark .dot { color: var(--color-gold); }

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.footer-location {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--color-gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-gold);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.footer-social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(184,137,42,0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--color-gold); }

/* --- Two-column layouts --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col-70-30 {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.two-col-30-70 {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-70-30 { grid-template-columns: 1fr; }
  .two-col-30-70 { grid-template-columns: 1fr; }
}

/* --- Geometric SVG Pattern (Hero background) --- */
.geo-pattern {
  width: 100%;
  height: 100%;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 32px;
}

[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 8px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-gold);
}

[dir="rtl"] .timeline-item::before {
  left: auto;
  right: -28px;
}

.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.timeline-event {
  font-size: 15px;
  color: var(--color-dark);
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

@media (max-width: 768px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.process-step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.process-step-body {
  font-size: 13px;
  color: var(--color-muted);
}

/* --- Accreditation Badges --- */
.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.accred-badge {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.accred-badge:hover {
  border-color: var(--color-gold);
  box-shadow: 0 2px 8px rgba(184,137,42,0.15);
}

/* --- Contact form --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-label .req { color: var(--color-gold); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(26,107,124,0.12);
  background: var(--color-white);
}

.form-input.error,
.form-textarea.error {
  border-color: #e53e3e;
}

.form-error-msg {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
  display: none;
}

.form-textarea { min-height: 140px; resize: vertical; }

.form-success {
  background: rgba(26,107,124,0.08);
  border: 1px solid var(--color-teal);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  color: var(--color-teal);
  font-weight: 600;
  display: none;
}

/* --- Map placeholder --- */
.map-placeholder {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-muted);
}

/* --- Course Detail --- */
.course-hero {
  background: var(--color-navy);
  padding: 140px 0 60px;
  position: relative;
}

.course-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(26,107,124,0.25) 0%, transparent 60%);
}

.course-hero-content { position: relative; z-index: 1; }

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-teal { background: rgba(26,107,124,0.25); color: #6dcfdf; border: 1px solid rgba(26,107,124,0.4); }
.badge-gold { background: rgba(184,137,42,0.2); color: var(--color-gold); border: 1px solid rgba(184,137,42,0.4); }
.badge-muted { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }

.course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

/* Course sticky sidebar */
.course-sidebar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow-hover);
  padding: 28px;
  position: sticky;
  top: 100px;
}

/* sidebar pricing  -  replaced by contact CTA (Edit 11) */
.sidebar-pricing { margin-bottom: 20px; }
.sidebar-pricing__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); margin-bottom: 6px; }
.sidebar-pricing__text { font-size: 14px; color: var(--color-muted); margin-bottom: 16px; line-height: 1.6; }

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 20px 0;
}

.sidebar-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sidebar-fact-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-fact-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
}

.sidebar-inhouse {
  background: var(--color-surface);
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
  margin-top: 16px;
}

/* Tab navigation */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 40px;
  gap: 0;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab-btn.active {
  color: var(--color-navy);
  border-bottom-color: var(--color-gold);
}

.tab-btn:hover {
  color: var(--color-navy);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Curriculum Day */
.curriculum-day {
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.curriculum-day-header {
  background: var(--color-surface);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 12px;
}

.day-number {
  background: var(--color-gold);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}

.curriculum-day-body {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--color-muted);
}

/* Learning outcomes */
.outcomes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.outcomes-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--color-dark);
}

.outcomes-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-gold);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* --- No results message --- */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--color-muted);
}

.no-results h3 {
  font-size: 20px;
  color: var(--color-navy);
  margin-bottom: 8px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.hidden { display: none; }

/* --- Section highlight strip --- */
.strip-navy { background: var(--color-navy); }
.strip-surface { background: var(--color-surface); }

/* --- WhatsApp pill --- */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #25D366;
  font-size: 14px;
  font-weight: 600;
  transition: opacity var(--transition);
}
.whatsapp-link:hover { opacity: 0.8; }

/* --- Contact info block --- */
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: 15px;
  color: var(--color-dark);
  font-weight: 500;
}

/* --- Corporate features list --- */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-dark);
}

.features-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}

/* --- Responsive helpers --- */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .nav-logo-tagline { display: none; }
  .course-sidebar {
    position: static;
    margin-top: 32px;
  }
  .two-col-70-30 { gap: 32px; }
}

@media (min-width: 769px) {
  .show-mobile-only { display: none !important; }
}

/* ================================================================
   NEW STYLES  -  Phase 2 Edits
   ================================================================ */

/* ── Course Card Redesign (Edit 3) ─────────────────────────────── */
.course-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1),
              box-shadow  0.28s cubic-bezier(0.4,0,0.2,1),
              border-left 0.28s;
  min-width: 240px;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(11,31,58,0.16);
  border-left: 3px solid var(--color-gold);
}

.course-card__image-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--color-navy);
  flex-shrink: 0;
}
.course-card__image-wrap--svg { display: flex; align-items: center; justify-content: center; }
.course-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.course-card:hover .course-card__image { transform: scale(1.04); }
.cat-svg { width: 100%; height: 100%; display: block; }
.course-card:hover .cat-svg { transform: scale(1.04); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); }

.course-card__subcat-badge {
  position: absolute;
  bottom: 10px; left: 12px;
  background: rgba(11,31,58,0.82);
  color: rgba(255,255,255,0.92);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  flex: 1;
}

.course-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.course-card__desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.course-card__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 4px 0;
}

.course-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.course-card__meta-item {
  font-size: 12px;
  color: var(--color-muted);
}

.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}
.course-card__pricing {
  font-size: 13px;
  color: #6B7A8D;
  font-style: italic;
}
.course-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-teal);
  white-space: nowrap;
}

/* ── 4-Level Filter Bar (Edit 1) ──────────────────────────────── */
.filter-bar-wrap {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(11,31,58,0.06);
}
.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.filter-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}
.filter-select-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 600;
}
.filter-select-new {
  appearance: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  color: var(--color-navy);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%230B1F3A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
  transition: border-color 0.2s;
  width: 100%;
}
.filter-select-new:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.filter-select-new:focus { outline: none; border-color: var(--color-teal); }
.filter-select-new:not(:disabled):hover { border-color: var(--color-navy); }

.filter-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1.5;
  min-width: 200px;
}
.filter-search-input {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-navy);
  background: #fff;
  width: 100%;
}
.filter-search-input:focus { outline: none; border-color: var(--color-teal); }

.filter-search-btn {
  align-self: flex-end;
  padding: 10px 20px;
  background: var(--color-navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.filter-search-btn:hover { background: #0d2548; }

.filter-clear-btn {
  align-self: flex-end;
  padding: 10px 18px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.filter-clear-btn:hover { border-color: var(--color-navy); color: var(--color-navy); }

/* Active pills row */
.active-pills-row {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 14px;
  align-items: center;
}
.active-pills-row.has-pills { display: flex; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--color-navy);
  border-radius: 6px;
  padding: 3px 10px 3px 12px;
  font-size: 13px;
  color: var(--color-navy);
  height: 28px;
  animation: pillFadeIn 0.18s ease;
}
@keyframes pillFadeIn { from { opacity:0; transform:scale(0.92); } to { opacity:1; transform:scale(1); } }
.pill-remove {
  background: none;
  border: none;
  color: var(--color-teal);
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Filter toggle mobile */
.filter-toggle-btn {
  display: none;
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  text-align: left;
}
@media (max-width: 768px) {
  .filter-toggle-btn { display: block; }
  .filter-bar-collapsible { display: none; }
  .filter-bar-collapsible.open { display: flex; }
  .filter-bar-inner { flex-direction: column; }
  .filter-select-wrap, .filter-search-wrap { width: 100%; max-width: 100%; }
}

/* Results wrap */
#resultsWrap { display: none; }

/* ── Browse Subcategories (Edit 5) ──────────────────────────────── */
.subcats-section { padding: 56px 0; background: #fff; }
.subcats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 1200px) { .subcats-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .subcats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .subcats-grid { grid-template-columns: repeat(2, 1fr); } }

.subcat-card {
  background: #fff;
  border: 1px solid #DDE3EC;
  border-radius: 10px;
  padding: 18px 16px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-bottom-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  border-bottom: 3px solid transparent;
}
.subcat-card:hover {
  box-shadow: 0 6px 20px rgba(11,31,58,0.1);
  border-bottom-color: var(--color-gold);
}
.subcat-card__icon { color: var(--color-teal); margin-bottom: 4px; }
.subcat-card__name { font-size: 13px; font-weight: 600; color: var(--color-navy); line-height: 1.4; }
.subcat-card__count { font-size: 12px; color: var(--color-teal); font-weight: 600; }
.subcat-card__discipline { font-size: 11px; color: var(--color-muted); font-style: italic; }

/* ── Top Courses Section (Edit 2) ─────────────────────────────── */
.top-courses-section { padding: 56px 0 40px; background: var(--color-surface); }
.top-courses-header { margin-bottom: 28px; }
.top-courses-header h2 { font-family: var(--font-body); font-size: 28px; font-weight: 600; color: var(--color-navy); margin: 0 0 6px; }
.top-courses-header p { color: var(--color-muted); font-size: 16px; }
.default-state-text {
  padding: 48px 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 16px;
  display: none;
}
.default-state-text.visible { display: block; }
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.results-count-new {
  font-size: 14px;
  color: var(--color-muted);
}

/* ── "Need a Tailored Programme?" CTA (Edit 4) ──────────────────── */
.tailored-cta {
  background: var(--color-navy);
  padding: 80px 0;
}
@media (max-width: 768px) { .tailored-cta { padding: 48px 0; } }
.tailored-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
@media (max-width: 768px) {
  .tailored-cta__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}
.tailored-cta__text h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: #fff;
  margin: 0 0 12px;
}
.tailored-cta__text p {
  color: #DDE3EC;
  font-size: 16px;
  margin: 0;
  max-width: 520px;
}
.btn--gold {
  background: var(--color-gold);
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  display: inline-block;
}
.btn--gold:hover { background: #9e7323; }
.btn--navy {
  background: var(--color-navy);
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn--navy:hover { background: var(--color-gold); }
.btn--full { width: 100%; text-align: center; }

/* ── FAQ Accordion (Edit 6) ─────────────────────────────────────── */
.faq-section { padding: 64px 0; }
.faq-section__header { margin-bottom: 32px; }
.faq-section__header h2 { font-size: 28px; font-weight: 600; color: var(--color-navy); margin: 0 0 8px; }
.faq-section__header p { color: var(--color-muted); font-size: 16px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.faq-chevron {
  flex-shrink: 0;
  color: var(--color-teal);
  transition: transform 0.28s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-body-inner {
  padding: 0 0 18px;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ── Featured Courses (Edit 7  -  homepage) ───────────────────────── */
.featured-courses-section { padding: 80px 0; background: var(--color-surface); }
.section-overline { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-teal); font-weight: 700; margin-bottom: 12px; }
.featured-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}
.featured-header-row .view-all-link { font-size: 14px; color: var(--color-teal); text-decoration: none; font-weight: 600; white-space: nowrap; }
.featured-header-row .view-all-link:hover { text-decoration: underline; }

/* ── Calendar Modal (Edit 10) ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayFadeIn 0.2s ease;
}
.modal-overlay[hidden] { display: none !important; }
@keyframes overlayFadeIn { from { opacity:0; } to { opacity:1; } }
.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.22s ease;
}
@keyframes modalSlideIn { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--color-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.modal-close:hover { color: var(--color-navy); }
.modal-icon { color: var(--color-teal); margin-bottom: 16px; }
.modal-box h2 { font-size: 22px; font-weight: 700; color: var(--color-navy); margin: 0 0 10px; font-family: var(--font-display); }
.modal-box > p { font-size: 14px; color: var(--color-muted); margin: 0 0 20px; line-height: 1.6; }
.modal-email-input {
  width: 100%;
  border: 1px solid #DDE3EC;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--color-navy);
  margin-bottom: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.modal-email-input:focus { outline: none; border-color: var(--color-teal); box-shadow: 0 0 0 3px rgba(26,107,124,0.12); }
.field-error { font-size: 12px; color: #c0392b; margin-bottom: 12px; display: block; }
#get-pdf-btn {
  width: 100%;
  padding: 14px;
  background: var(--color-navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
#get-pdf-btn:disabled { opacity: 0.45; cursor: not-allowed; }
#get-pdf-btn:not(:disabled):hover { background: var(--color-gold); }
.modal-note { font-size: 12px; color: var(--color-muted); margin: 12px 0 0; text-align: center; }
.success-msg { font-size: 14px; color: #27ae60; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-top: 16px; }

/* ── Logo (Edit 8) ───────────────────────────────────────────────── */
.nav-logo-img { height: 44px; width: auto; display: block; }
.nav-logo-img-white { height: 44px; width: auto; display: block; }

/* ── Browse Intro ────────────────────────────────────────────────── */
.browse-intro {
  text-align: center;
  padding: 48px 0 24px;
  background: #fff;
}
.browse-intro__overline {
  color: var(--color-teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.browse-intro__heading {
  color: var(--color-navy);
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 12px;
  font-family: 'Playfair Display', serif;
}
.browse-intro__sub {
  color: var(--color-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Filter results grid ─────────────────────────────────────────── */
#courses-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}
@media (max-width: 1280px) { #courses-results-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) { #courses-results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { #courses-results-grid { grid-template-columns: 1fr; } }

/* ── Filter tags ─────────────────────────────────────────────────── */
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--color-navy);
  border-radius: 20px;
  color: var(--color-navy);
  font-size: 13px;
  margin: 4px;
}
.filter-tag__remove {
  background: none;
  border: none;
  color: var(--color-teal);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.filter-tag__remove:hover { color: var(--color-navy); }

/* ── Results count ───────────────────────────────────────────────── */
#courses-results-count {
  color: var(--color-navy);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

/* ── Empty state ─────────────────────────────────────────────────── */
#filter-empty-msg {
  text-align: center;
  color: var(--color-muted);
  font-size: 16px;
  padding: 48px 0;
}

/* ── active-filter-tags row ──────────────────────────────────────── */
#active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.footer-logo-img { height: 36px; width: auto; opacity: 0.85; }

/* =========================================================
   Sectors Carousel (Corporate Training)
   ========================================================= */
.sectors-carousel-wrap {
  overflow: hidden;
  width: 100%;
  margin-top: 40px;
  padding-bottom: 8px;
  cursor: grab;
  user-select: none;
}
.sectors-carousel-wrap:active { cursor: grabbing; }

.sectors-carousel-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.sector-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  cursor: default;
}
.sector-pill:hover {
  border-color: var(--color-gold);
  background: rgba(184, 137, 42, 0.12);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .sectors-carousel-track { animation: none !important; }
}

[dir="rtl"] .sectors-carousel-track {
  flex-direction: row-reverse;
}

/* =========================================================
   Smart Contact Form + Course Autocomplete
   ========================================================= */
#gpsc-contact-form .form-row { margin-bottom: 20px; }
#gpsc-contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}
#gpsc-contact-form input,
#gpsc-contact-form select,
#gpsc-contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--color-dark);
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
#gpsc-contact-form input:focus,
#gpsc-contact-form select:focus,
#gpsc-contact-form textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(26,107,124,0.12);
}
#gpsc-contact-form .required { color: var(--color-gold); }
#gpsc-contact-form .form-note {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 12px;
  text-align: center;
}
#gpsc-contact-form .btn--navy {
  background: var(--color-navy);
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 8px;
}
#gpsc-contact-form .btn--navy:hover { background: #162f55; }

/* Course autocomplete */
.course-autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(11,31,58,0.12);
  max-height: 260px;
  overflow-y: auto;
  z-index: 9999;
  list-style: none;
  padding: 4px 0;
  margin: 0;
}
.autocomplete-item {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--color-dark);
  cursor: pointer;
  transition: background 0.15s;
}
.autocomplete-item:hover { background: var(--color-surface); color: var(--color-navy); }

/* Success / error */
#form-success {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-teal);
}
.success-icon { font-size: 48px; display: block; margin-bottom: 16px; }
#form-error { color: #c0392b; font-size: 14px; margin-top: 8px; }

/* RTL contact form overrides */
[dir="rtl"] #gpsc-contact-form label { text-align: right; }
[dir="rtl"] #gpsc-contact-form input,
[dir="rtl"] #gpsc-contact-form select,
[dir="rtl"] #gpsc-contact-form textarea { direction: rtl; text-align: right; }
[dir="rtl"] .autocomplete-list { text-align: right; }
[dir="rtl"] .autocomplete-item { text-align: right; }

/* ── Calendar Modal: RTL support ── */
html.lang-ar .modal-box {
  direction: rtl;
  text-align: right;
}
html.lang-ar .modal-box input {
  direction: rtl;
  text-align: right;
}
html.lang-ar .modal-close {
  left: 16px;
  right: auto;
}

/* ── TECHNOLOGY PARTNERS CAROUSEL ─────────────────────────── */
.tech-partners-section {
  padding: 80px 0;
  background: #F8F9FB;
  text-align: center;
  overflow: hidden;
}

.tech-partners-section .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tech-partners-section .section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #0B1F3A;
  margin: 8px 0 0;
}

.tech-partners-section .gold-divider {
  width: 56px;
  height: 3px;
  background: #B8892A;
  margin: 16px auto 20px;
  border-radius: 2px;
}

.tech-partners-section .section-sub {
  max-width: 560px;
  margin: 0 auto;
  color: #4A5568;
  font-size: 15px;
  line-height: 1.6;
}

.tech-carousel-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 48px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.tech-carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: techScroll 28s linear infinite;
}

.tech-carousel-track:hover {
  animation-play-state: paused;
}

@keyframes techScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #DDE3EC;
  border-radius: 12px;
  padding: 24px 32px;
  min-width: 180px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  cursor: default;
}

.tech-logo-card:hover {
  box-shadow: 0 8px 32px rgba(11,31,58,0.10);
  border-color: #B8892A;
  transform: translateY(-4px);
}

.tech-logo-icon {
  font-size: 28px;
  color: #1A6B7C;
  line-height: 1;
}

.tech-logo-name {
  font-size: 15px;
  font-weight: 700;
  color: #0B1F3A;
  letter-spacing: 0.02em;
}

.tech-logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: #B8892A;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.lang-ar .tech-carousel-track {
  animation-direction: reverse;
}

@media (max-width: 768px) {
  .tech-logo-card {
    min-width: 140px;
    padding: 18px 20px;
  }
  .tech-logo-name { font-size: 13px; }
}
