/* =====================================================================
   RRA — Regulatory Compliance
   Plain HTML/CSS/JS, no build step, no framework — chosen deliberately
   for a fast-loading, easy-to-maintain site with a small course/services
   catalogue that doesn't need a component framework's overhead.

   Palette refines the navy/blue/teal already used in earlier drafts of
   this site, rather than inventing a new one from scratch — keeps visual
   continuity with existing brand material.
   ===================================================================== */
:root{
  --navy:        #0B132B;
  --navy-soft:   #1C2541;
  --blue:        #2B6CB0;
  --blue-light:  #3A86C8;
  --teal:        #00A896;
  --teal-light:  #E8F8F5;
  --accent-gold: #E5A93B;

  --bg:          #F7F9FC;
  --bg-alt:      #EDF2F7;
  --surface:     #FFFFFF;
  --text:        #0F1626;
  --text-soft:   #4A5568;
  --text-faint:  #718096;

  --line:        rgba(0,168,150,.10);
  --shadow:      0 20px 40px rgba(11,19,43,.06);
  --shadow-soft: 0 8px 24px rgba(11,19,43,.03);

  --display: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --body:    "Inter", -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --max: 1180px;

  color-scheme: light;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; font-family:var(--body); color:var(--text); background:var(--bg);
  line-height:1.65; -webkit-font-smoothing:antialiased; font-size:16px;
}
img{max-width:100%; display:block;}
a{color:inherit;}
::selection{background:var(--teal-light); color:var(--navy);}
.wrap{max-width:var(--max); margin:0 auto; padding:0 24px;}

.skip-link{position:absolute; left:-999px; top:0; background:var(--teal); color:#fff; padding:10px 16px; z-index:100; font-weight:600;}
.skip-link:focus{left:16px; top:16px;}

h1,h2,h3{font-family:var(--display); color:var(--navy); margin:0 0 .4em; font-weight:700; letter-spacing:-0.01em;}
h1{font-size:clamp(2.1rem, 4vw, 3.2rem); line-height:1.15;}
h2{font-size:clamp(1.6rem, 2.6vw, 2.15rem);}
h3{font-size:1.15rem; margin-bottom:.35em;}
p{margin:0 0 1em;}

.eyebrow{
  font-family:var(--display); text-transform:uppercase; letter-spacing:.12em; font-size:.72rem;
  color:var(--teal); font-weight:700; margin:0 0 .7em; display:flex; align-items:center; gap:10px;
}
.eyebrow::before{content:""; width:22px; height:2px; background:var(--teal); display:inline-block; border-radius:2px;}
.section-lede{max-width:640px; color:var(--text-soft); font-size:1.05rem;}

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:13px 26px;
  border-radius:999px; font-weight:700; font-size:.92rem; text-decoration:none; border:1.5px solid transparent;
  transition:box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  cursor:pointer; font-family:var(--display);
}
.btn:focus-visible{outline:3px solid var(--teal); outline-offset:2px;}
.btn-primary{background:var(--teal); color:#fff; box-shadow:0 8px 18px rgba(0,168,150,.24);}
.btn-primary:hover{background:#008A7B;}
.btn-accent{background:var(--accent-gold); color:var(--navy); box-shadow:0 8px 18px rgba(229,169,59,.24); font-weight:800;}
.btn-accent:hover{background:#D9992B; color:var(--navy);}
.btn-navy{background:var(--navy-soft); color:#fff;}
.btn-navy:hover{background:var(--navy);}
.btn-ghost{background:transparent; color:var(--navy); border-color:var(--line);}
.btn-ghost:hover{border-color:var(--teal); color:var(--teal);}
.btn-small{padding:10px 18px; font-size:.85rem;}
.btn-whatsapp{background:#25D366; color:#fff;}
.btn-whatsapp:hover{background:#20BD5A;}

/* ===== Header ===== */
.site-header{position:sticky; top:0; z-index:50; background:rgba(251,252,254,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line);}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:18px;}
.brand{display:flex; align-items:center; gap:11px; text-decoration:none;}
.brand-mark{
  width:42px; height:42px; border-radius:12px; flex:none; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--navy-soft), var(--navy)); color:#fff; font-family:var(--display);
  font-weight:800; font-size:1rem; letter-spacing:.02em;
}
.brand-text{display:flex; flex-direction:column; line-height:1.2;}
.brand-text strong{font-family:var(--display); font-weight:800; font-size:1.05rem; color:var(--navy);}
.brand-text span{font-size:.68rem; color:var(--text-faint); letter-spacing:.02em;}
.main-nav{display:flex; gap:24px;}
.main-nav a{text-decoration:none; font-size:.9rem; font-weight:600; color:var(--text-soft); position:relative; padding:4px 0;}
.main-nav a::after{content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--teal); border-radius:2px; transform:scaleX(0); transition:transform .18s ease;}
.main-nav a:hover, .main-nav a[aria-current]{color:var(--navy);}
.main-nav a:hover::after, .main-nav a[aria-current]::after{transform:scaleX(1);}
.header-ctas{display:flex; align-items:center; gap:10px;}

@media (max-width:960px){ .main-nav{display:none;} }
.mobile-nav{display:none;}
@media (max-width:960px){
  .mobile-nav{display:flex; gap:16px; overflow-x:auto; padding:10px 24px; background:var(--bg-alt); border-bottom:1px solid var(--line); font-size:.82rem; font-weight:600; color:var(--text-soft); scrollbar-width:none;}
  .mobile-nav::-webkit-scrollbar{display:none;}
  .mobile-nav a{text-decoration:none; white-space:nowrap;}
}

.icon-btn{width:40px; height:40px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:#25D366; color:#fff; flex:none; text-decoration:none; transition:background-color .18s ease;}
.icon-btn:hover{background:#20BD5A;}

/* ===== Hero ===== */
.hero{padding:64px 0 52px; position:relative; overflow:hidden; background:linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 55%, var(--blue) 130%);}
.hero-inner{display:grid; grid-template-columns:1.1fr .9fr; gap:52px; align-items:center;}
.hero .eyebrow{color:var(--teal-light);}
.hero .eyebrow::before{background:var(--teal-light);}
.hero h1{color:#fff;}
.hero-lede{font-size:1.08rem; color:rgba(255,255,255,.82); max-width:56ch;}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap; margin:26px 0 32px;}
.hero-stats{list-style:none; display:flex; gap:30px; padding:0; margin:0; flex-wrap:wrap;}
.hero-stats li{display:flex; flex-direction:column;}
.hero-stats strong{font-family:var(--display); font-size:1.4rem; color:#fff;}
.hero-stats span{font-size:.78rem; color:rgba(255,255,255,.65);}
.hero-visual{display:flex; justify-content:center;}
.hero-card{
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); border-radius:var(--radius);
  padding:32px; backdrop-filter:blur(6px); width:100%; max-width:380px;
}
.hero-card h3{color:#fff; font-size:1rem; margin-bottom:16px;}
.hero-card ul{list-style:none; padding:0; margin:0; display:grid; gap:12px;}
.hero-card li{display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.85); font-size:.9rem;}
.hero-card li svg{flex:none; color:var(--teal-light);}
@media (max-width:900px){ .hero-inner{grid-template-columns:1fr;} .hero-visual{order:-1;} }

/* ===== Sections ===== */
.section{padding:78px 0;}
.section-alt{background:var(--bg-alt);}
.section-navy{background:var(--navy); color:#fff;}
.section-navy h2, .section-navy h3{color:#fff;}
.section-navy .section-lede{color:rgba(255,255,255,.75);}
.section-navy .eyebrow{color:var(--teal-light);}
.section-navy .eyebrow::before{background:var(--teal-light);}

/* Card grids (about pillars, why-choose, services) */
.pillar-grid, .services-grid, .why-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:22px; margin-top:34px;}
.pillar-card, .service-card, .why-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:26px;
  box-shadow:var(--shadow-soft); transition:box-shadow .18s ease, transform .18s ease;
}
.pillar-card:hover, .service-card:hover, .why-card:hover{box-shadow:var(--shadow);}
.pillar-icon, .service-icon, .why-icon{
  width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:var(--teal-light); color:var(--teal); margin-bottom:16px;
}
.pillar-card p, .service-card p, .why-card p{color:var(--text-soft); font-size:.92rem; margin:0;}

/* Courses */
.course-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:22px; margin-top:34px;}
.course-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-soft); display:flex; flex-direction:column;}
.course-card:hover{box-shadow:var(--shadow);}
.course-meta{display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap;}
.course-tag{font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:4px 10px; border-radius:999px; background:var(--teal-light); color:var(--teal);}
.course-tag.level{background:var(--bg-alt); color:var(--text-soft);}
.course-card h3{font-size:1.05rem;}
.course-card p{color:var(--text-soft); font-size:.9rem; flex:1;}
.course-outcomes{list-style:none; padding:0; margin:14px 0 0; display:grid; gap:6px;}
.course-outcomes li{display:flex; gap:8px; align-items:flex-start; font-size:.84rem; color:var(--text-soft);}
.course-outcomes svg{flex:none; margin-top:3px; color:var(--teal);}
.course-cta{margin-top:36px; text-align:center;}

/* Director message — a single spotlight card (one director), photo/
   avatar beside the message rather than a small card sitting alone in
   what used to be a two-up grid. */
.director-spotlight{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:36px;
  box-shadow:var(--shadow-soft); margin-top:34px; max-width:860px; margin-left:auto; margin-right:auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.director-avatar-card {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
}
.director-avatar-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.director-spotlight-head {
  margin-bottom: 18px;
}
.director-spotlight-head h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: var(--navy);
}
.director-spotlight-head span {
  font-size: 0.86rem;
  color: var(--text-faint);
  display: block;
  margin-bottom: 8px;
}
.director-linkedin{
  display:inline-flex; align-items:center; gap:7px; font-size:.82rem; font-weight:700; color:#0A66C2;
  text-decoration:none; border:1.5px solid rgba(10,102,194,.2); border-radius:999px; padding:5px 12px;
}
.director-linkedin:hover{background:rgba(10,102,194,.06);}
.director-spotlight blockquote{margin:0; font-size:.96rem; color:var(--text-soft); font-style:normal;}
.director-spotlight blockquote p:last-child{margin-bottom:0;}
.director-sign{margin-top:16px; font-weight:700; color:var(--navy); font-size:.9rem;}

@media (max-width: 768px) {
  .director-spotlight {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .director-avatar-card {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* Testimonials */
.testimonial-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:20px; margin-top:34px;}
.testimonial-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:22px; box-shadow:var(--shadow-soft);}
.testimonial-audience{font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; font-weight:700; color:var(--teal); margin-bottom:10px; display:block;}
.testimonial-card p{font-size:.9rem; color:var(--text-soft); margin-bottom:12px;}
.testimonial-attribution{font-size:.82rem; font-weight:700; color:var(--navy);}

/* FAQs */
.faq-list{max-width:800px; margin:34px auto 0; display:grid; gap:12px;}
.faq-item{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); overflow:hidden;}
.faq-question{
  width:100%; text-align:left; background:none; border:0; padding:18px 22px; font-family:var(--display); font-weight:700;
  font-size:.95rem; color:var(--navy); cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:14px;
}
.faq-question svg{flex:none; transition:transform .2s ease; color:var(--teal);}
.faq-item[data-open="true"] .faq-question svg{transform:rotate(180deg);}
.faq-answer{max-height:0; overflow:hidden; transition:max-height .25s ease;}
.faq-answer p{padding:0 22px 18px; margin:0; color:var(--text-soft); font-size:.9rem;}

/* Contact */
.contact-wrap{display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:start;}
.contact-list{list-style:none; padding:0; margin:22px 0; display:grid; gap:16px;}
.contact-list li{display:grid; gap:3px;}
.contact-label{font-family:var(--display); font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; color:var(--teal); font-weight:700;}
.contact-list a{text-decoration:none;}
.contact-list a:hover{color:var(--teal);}
.contact-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:8px;}
.contact-form{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:28px; box-shadow:var(--shadow-soft); display:grid; gap:16px;}
.form-row{display:grid; gap:6px;}
.form-row.two-col{grid-template-columns:1fr 1fr; display:grid; gap:16px;}
.form-row label{font-size:.82rem; font-weight:600; color:var(--text-soft);}
.form-row input, .form-row select, .form-row textarea{
  padding:11px 14px; border-radius:8px; border:1.5px solid var(--line); font-family:var(--body); font-size:.92rem;
  background:var(--bg); color:var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{outline:2px solid var(--teal); outline-offset:1px; border-color:var(--teal);}
.form-honey{position:absolute; left:-9999px;}
.contact-map{min-height:280px; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-soft); border:1px solid var(--line); margin-top:24px;}
@media (max-width:860px){ .contact-wrap{grid-template-columns:1fr;} .form-row.two-col{grid-template-columns:1fr;} }

/* Footer */
.site-footer{border-top:1px solid var(--line); padding:36px 0; background:var(--navy);}
.footer-inner{display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; font-size:.85rem; color:rgba(255,255,255,.6);}
.footer-brand{display:flex; align-items:center; gap:10px; margin-bottom:8px;}
.footer-brand strong{font-family:var(--display); color:#fff; font-size:1rem;}
.footer-inner nav{display:flex; gap:18px; flex-wrap:wrap;}
.footer-inner a{text-decoration:none;}
.footer-inner a:hover{color:var(--teal-light);}

.whatsapp-float{
  position:fixed; right:20px; bottom:20px; width:56px; height:56px; border-radius:50%; background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:0 8px 20px rgba(37,211,102,.4); z-index:60; text-decoration:none;
  transition:transform .18s ease;
}
.whatsapp-float:hover{transform:scale(1.06);}

a:focus-visible, button:focus-visible{outline:3px solid var(--teal); outline-offset:2px;}

/* Legal pages */
.legal-content{max-width:760px; margin:0 auto;}
.legal-content h2{margin-top:2em;}
.legal-content h2:first-child{margin-top:0;}
.legal-content p{color:var(--text-soft);}

/* ===== Google News Section ===== */
.news-container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-top: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-tabs {
  display: flex;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.news-tabs::-webkit-scrollbar {
  display: none;
}
.news-tab {
  flex: 1;
  min-width: 125px;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-soft);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.news-tab:hover {
  color: var(--navy);
  background: rgba(0, 168, 150, 0.04);
}
.news-tab.active {
  color: var(--teal);
  background: var(--surface);
  border-bottom-color: var(--teal);
}
.news-pane {
  display: none;
  padding: 24px;
}
.news-pane.active {
  display: block;
}
.news-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--teal);
}
.news-card-title {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-faint);
  border-top: 1px solid rgba(0,0,0,0.04);
  padding-top: 10px;
  margin-top: 8px;
}
.news-card-source {
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.news-card-date {
  font-style: normal;
}
.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-soft);
}
.news-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.news-status.loading::before {
  background: var(--accent-gold);
  animation: pulse 1.2s infinite ease-in-out;
}
@keyframes pulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.5; }
}
.btn-refresh-news {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-refresh-news:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--navy);
}
.btn-refresh-news.spinning svg {
  animation: spin 1s infinite linear;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* About and News Split Layout */
.about-news-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.about-news-split .news-container {
  margin-top: 0;
}
@media (max-width: 960px) {
  .about-news-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Motion — minimal on purpose: colour/shadow on hover, one FAQ expand
   transition, nothing that loops or runs on a timer. */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *, *::before, *::after{animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}
