/* ==========================================================================
   AALS — Academy of Advanced Life Support
   Shared Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  --topbar:       #354261;
  --blue:         #1848b8;
  --blue-light:   #eef2fb;
  --red:          #d80000;
  --white:        #ffffff;
  --grey-bg:      #f5f6f8;
  --grey-border:  #e2e5ec;
  --text-dark:    #1a1a2e;
  --text-mid:     #3d4a5c;
  --text-light:   #6b7a8d;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05);
}

/* --------------------------------------------------------------------------
   RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section { padding: 72px 0; }
.section-grey { background: var(--grey-bg); }

/* --------------------------------------------------------------------------
   TOPBAR
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--topbar);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  padding: 9px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar a { color: rgba(255,255,255,.78); transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar span { color: rgba(255,255,255,.78); }

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--grey-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.09); }

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
}

.nav-logo img { height: 72px; width: auto; }

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 15px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-light); }
.nav-links a.active { background: var(--red); color: #fff; }
.nav-links a.active:hover { background: #b50000; color: #fff; }

/* --------------------------------------------------------------------------
   HAMBURGER
   -------------------------------------------------------------------------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   MOBILE NAV
   -------------------------------------------------------------------------- */
.mob-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--grey-border);
}
.mob-nav.open { display: flex; }
.mob-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 13px 24px;
  border-bottom: 1px solid var(--grey-border);
  transition: background .15s, color .15s;
}
.mob-nav a:hover { background: var(--grey-bg); color: var(--blue); }
.mob-nav a.active { color: var(--red); font-weight: 600; }

/* --------------------------------------------------------------------------
   SECTION HEADINGS
   -------------------------------------------------------------------------- */
.sec-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 36px;
  letter-spacing: -.01em;
}
/* Red accent bar under section titles */
.sec-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-top: 12px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   HOME HERO
   -------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.hero-img {
  position: absolute;
  inset: 0;
  background: url('../images/hero/hero-home.jpg') center / cover no-repeat;
}
.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,26,46,.45) 0%, rgba(26,26,46,.20) 60%, rgba(26,26,46,.10) 100%);
}
.hero-quote-box {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.97);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 32px 36px;
  max-width: 440px;
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.hero-quote-box p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   FACULTY CARDS
   -------------------------------------------------------------------------- */
.faculty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.fac-card {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-top: 3px solid var(--red);
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.fac-quote-open {
  font-size: 72px;
  color: var(--red);
  line-height: .5;
  margin-bottom: 20px;
  font-family: Georgia, serif;
  opacity: .8;
}
.fac-quote-close {
  font-size: 72px;
  color: var(--red);
  line-height: .5;
  text-align: right;
  margin-top: 20px;
  margin-bottom: 28px;
  font-family: Georgia, serif;
  opacity: .8;
}
.fac-text {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.85;
}
.fac-text + .fac-text { margin-top: 14px; }
.fac-photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-border);
  margin-top: auto;
}
.fac-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--grey-border);
  flex-shrink: 0;
}
.fac-name { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.fac-role { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.fac-quals { font-size: 12.5px; color: var(--blue); margin-top: 4px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   HOME COURSES GRID (2-col)
   -------------------------------------------------------------------------- */
.home-courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.home-course-card {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  padding: 26px 28px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.home-course-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #c8d3ef;
  transform: translateY(-2px);
}
.home-course-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}
.home-course-card p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}
.learn-more {
  color: var(--red);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s, color .15s;
}
.learn-more::after { content: '→'; transition: transform .2s; }
.learn-more:hover { color: #b50000; }
.learn-more:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   COURSES PAGE GRID (4-col icon cards)
   -------------------------------------------------------------------------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.course-icon-card {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  padding: 32px 20px 28px;
  text-align: center;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.course-icon-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #c8d3ef;
  transform: translateY(-3px);
}
.course-icon {
  width: 76px;
  height: 76px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--red);
  flex-shrink: 0;
  background: #fff8f8;
}
.course-icon-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}
.course-icon-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}
.read-more {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s, color .15s;
}
.read-more::after { content: '→'; }
.read-more:hover { color: #b50000; }
.read-more:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   COURSE DETAIL PAGE
   -------------------------------------------------------------------------- */
.course-detail-box {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  padding: 44px;
  max-width: 900px;
  box-shadow: var(--shadow-sm);
}
.course-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.meta-item {
  background: var(--blue-light);
  border-radius: 8px;
  padding: 12px 18px;
  border: 1px solid #d4ddf5;
}
.meta-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--blue);
  margin-bottom: 3px;
}
.meta-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.course-section { margin-bottom: 32px; }
.course-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--grey-border);
}
.course-section p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.78;
  margin-bottom: 10px;
}
.course-section ul {
  margin: 10px 0;
  padding-left: 0;
  list-style: none;
}
.course-section ul li {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}
.course-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.course-cert {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 14px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   COURSE DATES TABLE
   -------------------------------------------------------------------------- */
.dates-intro {
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}
.dates-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.dates-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dates-table th {
  background: var(--topbar);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
  white-space: nowrap;
}
.dates-table th:first-child { border-radius: 9px 0 0 0; }
.dates-table th:last-child { border-radius: 0 9px 0 0; }
.dates-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--grey-border);
  color: var(--text-dark);
  vertical-align: middle;
}
.dates-table tr:last-child td { border-bottom: none; }
.dates-table tr:nth-child(even) td { background: #fafbfc; }
.dates-table tr:hover td { background: var(--blue-light); }
.ceu-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid #d4ddf5;
}

/* --------------------------------------------------------------------------
   ACCOMMODATION GRID
   -------------------------------------------------------------------------- */
.accom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.accom-card {
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
  box-shadow: var(--shadow-sm);
}
.accom-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.accom-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.accom-addr {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.55;
}
.accom-contact {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.85;
  border-top: 1px solid var(--grey-border);
  padding-top: 14px;
  margin-top: 14px;
}
.accom-contact a { color: var(--blue); }
.accom-contact a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   CONTACT PAGE
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.ci {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.ci-icon {
  width: 38px;
  height: 38px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.ci-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-light);
  margin-bottom: 3px;
}
.ci-val { font-size: 15px; color: var(--text-dark); font-weight: 500; }
.ci-val a { color: var(--blue); }
.ci-val a:hover { text-decoration: underline; }
.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--grey-border);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe { display: block; width: 100%; height: 340px; border: none; }

/* --------------------------------------------------------------------------
   CONTACT FORM
   -------------------------------------------------------------------------- */
.contact-form {
  background: var(--grey-bg);
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  padding: 28px;
}
.contact-form h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--text-dark);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.fg label { font-size: 13px; font-weight: 600; color: var(--text-mid); }
.fg input, .fg select, .fg textarea {
  padding: 10px 13px;
  border: 1.5px solid var(--grey-border);
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24,72,184,.10);
}
.fg textarea { resize: vertical; min-height: 96px; }
.btn-submit {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background .2s, transform .15s;
  margin-top: 4px;
}
.btn-submit:hover { background: #0f2f8a; transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   EDUCATIONAL PERSPECTIVES
   -------------------------------------------------------------------------- */
.ep-content { max-width: 820px; }
.ep-content p {
  font-size: 15.5px;
  color: var(--text-mid);
  line-height: 1.88;
  margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   PAGE HEADER BAND (inner pages)
   -------------------------------------------------------------------------- */
.page-header {
  border-bottom: 1px solid var(--grey-border);
  padding: 36px 0 32px;
  margin-bottom: 0;
}
.page-header h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -.01em;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--topbar);
  color: rgba(255,255,255,.72);
  padding: 32px 0 28px;
  text-align: center;
  margin-top: 0;
  border-top: 3px solid rgba(255,255,255,.08);
}
.footer-fb { margin-bottom: 16px; }
.footer-fb a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  transition: background .2s;
}
.footer-fb a:hover { background: rgba(255,255,255,.24); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.5); }

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: 1fr; }
  .hero-quote-box { right: 40px; max-width: 380px; }
  .course-detail-box { padding: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .container { padding: 0 20px; }
  section { padding: 52px 0; }
  .home-courses-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .accom-grid { grid-template-columns: 1fr 1fr; }
  .nav-inner { height: 72px; }
  .nav-logo img { height: 56px; }
  .hero-quote-box {
    position: relative;
    top: auto; right: auto; transform: none;
    max-width: none;
    border-radius: 0;
    border-left: 4px solid var(--blue);
    border-top: none; border-right: none; border-bottom: none;
    margin: 0;
    box-shadow: none;
    padding: 24px 28px;
  }
  .home-hero { min-height: auto; flex-direction: column; }
  .hero-img { position: relative; height: 220px; }
  .course-meta { gap: 10px; }
  .course-detail-box { padding: 24px 20px; }
  .dates-table th, .dates-table td { padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
  .courses-grid { grid-template-columns: 1fr; }
  .accom-grid { grid-template-columns: 1fr; }
  .topbar-left { display: none; }
  .faculty-grid { gap: 20px; }
  .fac-card { padding: 26px 22px; }
  .home-course-card { padding: 22px; }
  section { padding: 40px 0; }
  .home-courses-grid { gap: 14px; }
}
