/* TTMDXB IELTS Info Hub — site.css */
/* RTL-first, institutional, clean */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

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

:root {
  --primary:     #1a4a7a;
  --primary-dk:  #0f2f52;
  --primary-lt:  #2a6db5;
  --accent:      #2563a8;
  --accent-lt:   #dce9f8;
  --grey-100:    #f5f6f8;
  --grey-200:    #e8eaed;
  --grey-400:    #9aa0aa;
  --grey-700:    #3d4451;
  --grey-900:    #1a1d23;
  --white:       #ffffff;
  --border:      #d0d6de;
  --warn:        #c0392b;
  --success:     #1e7e34;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10);
  --max-w:       1100px;
  --font:        'Tajawal', 'Segoe UI', Arial, sans-serif;
}

html {
  direction: rtl;
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.75;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.section { padding: 3rem 0; }
.section-lg { padding: 4.5rem 0; }
.section-sm { padding: 1.8rem 0; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-dk);
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; margin-bottom: 1.1rem; }
h3 { font-size: 1.25rem; margin-bottom: .7rem; }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--primary-lt); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-right: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .4rem; }

strong { font-weight: 700; }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--primary-dk);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-en {
  font-size: .75rem;
  font-weight: 400;
  color: rgba(255,255,255,.7);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.brand-ar {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: .4rem .7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  gap: .15rem;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  color: rgba(255,255,255,.88);
  font-size: .88rem;
  font-weight: 500;
  padding: .4rem .65rem;
  border-radius: 4px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
  text-decoration: none;
}

@media(max-width:768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: .5rem 0 .8rem;
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: .95rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .header-inner { flex-wrap: wrap; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 1rem; }
.hero .lead {
  font-size: 1.12rem;
  color: rgba(255,255,255,.88);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}
.hero .tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: .3rem 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.5rem;
}

/* ===== NOTICE BOXES ===== */
.notice {
  padding: .9rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: .93rem;
  line-height: 1.5;
}
.notice-info {
  background: var(--accent-lt);
  border-right: 4px solid var(--primary-lt);
  color: var(--primary-dk);
}
.notice-warn {
  background: #fff4e5;
  border-right: 4px solid #e07b00;
  color: #6b3a00;
}
.notice-success {
  background: #eafaf1;
  border-right: 4px solid var(--success);
  color: #0f4020;
}
.notice-disclaimer {
  background: var(--grey-100);
  border-right: 4px solid var(--grey-400);
  color: var(--grey-700);
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.3rem;
  margin: 2rem 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.card.card-link {
  display: block;
  color: inherit;
}
.card-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}
.card h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: .4rem; }
.card p  { font-size: .9rem; color: var(--grey-700); margin: 0; line-height: 1.5; }
.card .card-arrow {
  display: inline-block;
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--primary-lt);
  font-weight: 600;
}

/* ===== CONTACT TILES ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.contact-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 48px;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--grey-100);
  text-decoration: none;
  color: var(--grey-900);
  transition: box-shadow .2s, background .2s;
  font-size: .9rem;
}
.contact-tile:hover {
  box-shadow: var(--shadow-md);
  background: var(--white);
  text-decoration: none;
}
.contact-tile .ct-icon { font-size: 2rem; margin-bottom: .6rem; }
.contact-tile .ct-label { font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.contact-tile .ct-sub { font-size: .83rem; color: var(--grey-400); }

/* ===== SECTIONS ===== */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title h2 { margin-bottom: .5rem; }
.section-title p  { color: var(--grey-700); font-size: 1rem; }

.divider {
  height: 1px;
  background: var(--grey-200);
  margin: 2.5rem 0;
}

/* ===== FAQ ACCORDION ===== */
.faq-list { margin-top: 1.5rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: right;
  background: var(--grey-100);
  border: none;
  padding: 1rem 1.2rem;
  font-family: var(--font);
  font-size: .97rem;
  font-weight: 700;
  color: var(--primary-dk);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q:hover { background: var(--accent-lt); }
.faq-q .faq-arrow { font-size: .75rem; transition: transform .2s; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 1rem 1.2rem;
  background: var(--white);
  font-size: .93rem;
  line-height: 1.7;
  color: var(--grey-700);
  border-top: 1px solid var(--border);
}
.faq-a.open { display: block; }

/* ===== STEPS ===== */
.steps { counter-reset: step; }
.step-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h4 { margin-bottom: .3rem; }
.step-body p  { margin: 0; font-size: .92rem; color: var(--grey-700); }

/* ===== TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: .91rem;
}
.info-table th, .info-table td {
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  text-align: right;
}
.info-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}
.info-table tr:nth-child(even) td { background: var(--grey-100); }

/* ===== SECTION HIGHLIGHT ===== */
.highlight-section {
  background: var(--accent-lt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}
.highlight-section h2, .highlight-section h3 { color: var(--primary-dk); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: .83rem;
  color: var(--grey-400);
  padding: .8rem 0;
}
.breadcrumb a { color: var(--grey-400); }
.breadcrumb a:hover { color: var(--primary-lt); }
.breadcrumb span { margin: 0 .4rem; }

/* ===== CTA BAR ===== */
.cta-bar {
  background: var(--grey-100);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.cta-bar h3 { margin-bottom: .4rem; }
.cta-bar p  { color: var(--grey-700); font-size: .95rem; margin-bottom: 1.2rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dk);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: .8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .88rem; }
.footer-col ul li a:hover { color: var(--white); text-decoration: underline; }
.footer-col p { font-size: .88rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.2rem;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--white); }

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  vertical-align: middle;
}
.badge-blue { background: var(--accent-lt); color: var(--primary); }
.badge-grey { background: var(--grey-200); color: var(--grey-700); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary-lt);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary); color: var(--white); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary-lt);
}
.btn-outline:hover { background: var(--accent-lt); text-decoration: none; }

/* ===== PROVIDER CARDS ===== */
.provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
@media(max-width:560px) { .provider-grid { grid-template-columns: 1fr; } }
.provider-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  background: var(--grey-100);
}
.provider-card h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: .5rem; }
.provider-card .btn {
  margin-top: .8rem;
  font-size: .85rem;
  padding: .85rem 1rem;
}

/* ===== PRICE BOX ===== */
.price-range {
  display: inline-block;
  background: var(--accent-lt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem 1rem;
  font-weight: 700;
  color: var(--primary-dk);
  font-size: 1rem;
}

/* ===== SKILLS CHECKLIST ===== */
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: .4rem 0 .4rem 0;
  padding-right: 1.6rem;
  position: relative;
  font-size: .93rem;
}
.checklist li::before {
  content: '';
  position: absolute;
  right: 0;
  top: .65rem;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231e7e34'><path d='M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 011.4-1.4L8.5 12 15.3 5.3a1 1 0 011.4 0z'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}
.checklist.red li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23c0392b'><path d='M14.7 5.3a1 1 0 010 1.4L11.4 10l3.3 3.3a1 1 0 01-1.4 1.4L10 11.4l-3.3 3.3a1 1 0 01-1.4-1.4L8.6 10 5.3 6.7a1 1 0 011.4-1.4L10 8.6l3.3-3.3a1 1 0 011.4 0z'/></svg>");
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px) {
  html { font-size: 15.5px; }
  h1   { font-size: 1.7rem; }
  h2   { font-size: 1.4rem; }
  .section { padding: 2.2rem 0; }
  .section-lg { padding: 3rem 0; }
  .card-grid  { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 2.5rem 0; }
  .hero h1 { font-size: 1.6rem; }
  .footer-col ul li { margin-bottom: 0; }
  .footer-col ul li a { display: block; padding: .7rem 0; }
}
@media(max-width:480px) {
  .card-grid  { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--grey-400); font-size: .88rem; }
.fw-bold { font-weight: 700; }

/* ===== HERO IMAGES ===== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--primary-dk);
}
.hero > .container {
  position: relative;
  z-index: 2;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(.85);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,47,82,.86) 0%, rgba(26,74,122,.78) 100%);
  z-index: 1;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(135deg, rgba(15,47,82,.90) 0%, rgba(26,74,122,.85) 100%);
  }
}

/* ===== TRANSPARENCY STRIP + WHATSAPP FAB ===== */
.ge-disclaimer-strip {
  background: var(--grey-100);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--grey-700);
}
.ge-disclaimer-strip p {
  margin: 0;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  padding: 0 1rem;
}
.ge-disclaimer-strip strong {
  color: var(--primary-dk);
  margin-left: .25rem;
}
.ge-disclaimer-strip a {
  color: var(--primary-lt);
  font-weight: 500;
}

.ge-wa-fab {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(37,211,102,.35), 0 2px 4px rgba(0,0,0,.15);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 48px;
}
.ge-wa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37,211,102,.45), 0 4px 8px rgba(0,0,0,.18);
  text-decoration: none;
  color: #fff;
}
.ge-wa-fab svg {
  flex-shrink: 0;
}
.ge-wa-fab__label {
  display: inline;
}
@media (max-width: 480px) {
  .ge-wa-fab {
    bottom: 18px;
    left: 18px;
    padding: .65rem .85rem;
  }
  .ge-wa-fab__label {
    display: none;
  }
}

/* ===== HERO CTA ROW ===== */
.hero-cta-row {
  display: flex;
  gap: .85rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.btn-primary-light {
  background: rgba(255,255,255,.95);
  color: var(--primary-dk);
  border: none;
  min-height: 48px;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  text-decoration: none;
  color: var(--primary-dk);
}
.btn-wa {
  background: #25D366;
  color: #fff;
  border: none;
  min-height: 48px;
  padding: .85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37,211,102,.30);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,211,102,.45);
  text-decoration: none;
  color: #fff;
}
@media (max-width: 480px) {
  .hero-cta-row {
    flex-direction: column;
    gap: .55rem;
  }
  .btn-primary-light, .btn-wa {
    width: 100%;
    justify-content: center;
  }
}

/* ===== RESPONSIVE TABLES ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .95rem;
}
table th, table td {
  padding: .65rem .8rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
  word-break: break-word;
  vertical-align: top;
}
table thead th {
  background: var(--grey-100);
  color: var(--primary-dk);
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}
table tbody tr:hover {
  background: rgba(26, 74, 122, .03);
}

/* On mobile: horizontal scroll wrapper via display:block */
@media (max-width: 768px) {
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: .88rem;
    white-space: nowrap;
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }
  table th, table td {
    white-space: normal;
    padding: .55rem .65rem;
    min-width: 110px;
  }
}

/* Inline style cleanup: any .contact-grid inline max-width keeps it centered + responsive */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}

/* Long-URL break safety (in case any inline URLs slip through) */
a, p, li, td, th {
  overflow-wrap: anywhere;
}

/* Hero CTA row mobile stacking — make sure WA button is full-width on phones */
@media (max-width: 480px) {
  .hero-cta-row .btn-wa {
    width: 100%;
    justify-content: center;
  }
}
