/* =================================================================
   Holberton Coding School Puerto Rico
   Design system extracted from the Phlox Pro / Elementor source.

   Global palette (Elementor kit):
     primary / text   #161D52   navy
     secondary/accent #DC2041   red
     teal             #75C7D2
     cream            #EEDACF   (light variant #F3E4DC)
     green            #24AF29
   Fonts: Work Sans (headings + body), Lato (secondary)
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy: #161d52;
  --navy-deep: #061757;
  --red: #dc2041;
  --red-bright: #e52c48;
  --teal: #75c7d2;
  --teal-dark: #3cbac8;
  --cream: #eedacf;
  --cream-light: #f3e4dc;
  --green: #24af29;
  --ink: #161d52;
  --muted: #505050;
  --line: #e4d8cf;
  --white: #ffffff;

  --font-sans: "Work Sans", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Raleway", "Work Sans", Arial, sans-serif;
  --body: #444444;

  --container: 1200px;
  --radius-pill: 50px;
  --radius: 25px;
  --radius-sm: 12px;

  --shadow-sm: 0 4px 14px rgba(22, 29, 82, 0.08);
  --shadow-md: 0 12px 34px rgba(22, 29, 82, 0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red); }

h1, h2, h4, h5 {
  font-family: var(--font-sans);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}
/* The site uses Raleway (semibold) for h3-level sub-headings */
h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
button { font-family: var(--font-sans); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 84px 0; }
.section--cream { background: var(--cream-light); }
.section--navy { background: var(--navy); color: #dfe3f5; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: 56px 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

/* Two-column image + text split (the dominant live layout) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.split--rev .split__media { order: 2; }
.media-rounded { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }

/* bullet list with teal dots */
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding: 0 0 0 28px; margin-bottom: 12px; color: var(--body); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--teal);
}

/* accreditation logo strip */
.accred { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.accred img { max-height: 72px; width: auto; opacity: .85; }

/* full-bleed promo banner image */
.banner img { width: 100%; display: block; }
.lead { font-size: 1.2rem; color: var(--muted); }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--teal { background: var(--teal); color: var(--navy); }
.btn--teal:hover { background: #5fb9c5; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-bright); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #20307a; color: #fff; }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--lg { padding: 18px 44px; font-size: 1.05rem; }

/* =================================================================
   Header / Navigation (two rows)
   ================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 18px rgba(22, 29, 82, 0.07);
}

/* Row 1 */
.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 24px;
  max-width: 1320px;
  margin: 0 auto;
}
.nav-logo img { height: 46px; width: auto; }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 0 12px;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 12px 15px;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--navy);
}
.nav-links > li > a:hover { color: var(--red); }
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 248px;
  background: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  border-top: 3px solid var(--teal);
}
.nav-links > li:hover > .dropdown,
.nav-links > li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 11px 22px;
  color: var(--navy);
  font-weight: 500;
  font-size: .92rem;
}
.dropdown a:hover { background: var(--cream-light); color: var(--red); }

.nav-cta { margin-left: auto; }

/* Row 2 — secondary nav */
.nav-secondary { background: var(--navy); }
.nav-secondary ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 38px;
  padding: 11px 24px;
  max-width: 1320px;
  margin: 0 auto;
}
.nav-secondary a {
  color: #cfd6f3;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-secondary a:hover { color: var(--teal); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  margin: 5px 0;
  transition: .25s;
}

/* =================================================================
   Hero
   ================================================================= */
.hero { background: var(--white); padding: 48px 0 60px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}
.hero__panel {
  background-color: var(--cream-light);
  background-image: url("/images/2024/10/Untitled-design-41.png");
  background-repeat: repeat;
  background-size: 480px auto;
  border-radius: 28px;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__slogan { margin: 0 0 26px; }
.hero__slogan img { width: min(100%, 470px); height: auto; display: block; opacity: .5; }
.hero__text { font-size: 1.18rem; color: var(--muted); max-width: 42ch; margin: 0; }
.hero__media {
  background: #d7eef1;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

/* =================================================================
   Cards / feature grids
   ================================================================= */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--center { align-items: center; }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.card h3 { color: var(--navy); }
.card--teal { background: var(--teal); color: var(--navy); border: 0; }
.card--navy { background: var(--navy); color: #dfe3f5; border: 0; }
.card--navy h3 { color: #fff; }

/* stat / number callouts */
.stat { text-align: center; }
.stat__num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--teal-dark);
  line-height: 1;
}
.stat__label { font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }

/* feature item with icon dot */
.feature h3 { display: flex; align-items: center; gap: 12px; }
.feature h3::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

/* =================================================================
   Testimonials
   ================================================================= */
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.testimonial__quote { font-style: italic; color: var(--muted); }
.testimonial__person { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; }
.testimonial__person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial__name { font-weight: 700; color: var(--navy); }

/* =================================================================
   Partner logos
   ================================================================= */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px 44px;
  align-items: center;
}
.logo-grid img {
  max-height: 64px;
  width: auto;
  margin: 0 auto;
  filter: grayscale(1);
  opacity: .72;
  transition: .25s;
}
.logo-grid img:hover { filter: none; opacity: 1; }

/* =================================================================
   Campus cards
   ================================================================= */
.campus-card { text-align: center; }
.campus-card h3 { color: var(--navy); margin-bottom: 6px; }

/* =================================================================
   Forms
   ================================================================= */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px 30px;
}
.form-card h3 { margin-bottom: 18px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.form-check input { margin-top: 4px; }
#salesforce-lead-form button[type="submit"],
.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 6px;
  border: 0;
  background: var(--teal);
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .2s, transform .15s;
}
#salesforce-lead-form button[type="submit"]:hover,
.contact-form button[type="submit"]:hover { background: #5fb9c5; transform: translateY(-2px); }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--red); }

/* =================================================================
   Generic article / legal pages
   ================================================================= */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .5em; }
.page-hero {
  background: var(--navy);
  background-image: url("/images/2024/10/Untitled-design-41.png");
  background-blend-mode: overlay;
  background-size: 620px auto;
  color: #fff;
  text-align: center;
  padding: 70px 0;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfd6f3; max-width: 60ch; margin: 0 auto; }

/* =================================================================
   CTA band
   ================================================================= */
.cta-band {
  background: var(--teal);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: var(--navy); }

/* =================================================================
   Footer
   ================================================================= */
.site-footer {
  background: var(--navy);
  color: #b9c1e6;
  padding: 64px 0 0;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b9c1e6; }
.site-footer a:hover { color: var(--teal); }
.footer-logo img { height: 42px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-contact p { margin-bottom: 8px; }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}
.footer-social a:hover { background: var(--teal); color: var(--navy); }
.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  text-align: center;
  font-size: .85rem;
  color: #8b94c4;
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    margin: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 14px 24px; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    padding: 0 0 8px 16px;
    display: none;
  }
  .nav-links > li.open > .dropdown { display: block; }
  .nav-cta { margin-left: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__panel { padding: 44px 32px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split--rev .split__media { order: 0; }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
}
