/* ==========================================================================
   ICCouncil — Custom Styles
   Design language: dock & highway signage. Diamond "placard" badges echo
   real DOT hazmat placards; dashed lane-lines echo highway markings.
   ========================================================================== */

:root {
  --navy:        #0E1F33;
  --navy-2:      #15304E;
  --navy-3:      #1C3D63;
  --amber:       #F2A900;
  --amber-dark:  #C98600;
  --red:         #C63D2F;
  --cream:       #F7F4EC;
  --paper:       #FDFBF6;
  --ink:         #1A1D21;
  --ink-soft:    #55606B;
  --line:        rgba(14, 31, 51, 0.10);
  --line-light:  rgba(255, 255, 255, 0.14);

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  color: var(--navy);
}

a { text-decoration: none; }

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Brand / Buttons
   ========================================================================== */

.brand { display: flex; align-items: center; gap: 0.6rem; }

.brand-mark {
  width: 34px; height: 34px;
  background: var(--amber);
  transform: rotate(45deg);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.brand-mark-inner {
  transform: rotate(-45deg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.brand-dot { color: var(--amber); }
.brand-footer .brand-text { color: var(--cream); }

.btn-enroll {
  background: var(--amber);
  border: 1px solid var(--amber);
  color: var(--navy) !important;
  font-family: var(--font-body);
  font-weight: 700;
  padding-inline: 1.4rem;
  border-radius: 8px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-enroll:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(201, 134, 0, 0.55);
  color: var(--navy) !important;
}
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   Navbar
   ========================================================================== */

.custom-navbar {
  background: transparent;
  padding-block: 1.1rem;
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}
.custom-navbar.scrolled {
  background: rgba(14, 31, 51, 0.94);
  backdrop-filter: blur(6px);
  padding-block: 0.6rem;
  box-shadow: 0 6px 20px -12px rgba(0,0,0,0.5);
}
.custom-navbar .nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding-inline: 0.85rem;
}
.custom-navbar .nav-link:hover { color: var(--amber); }
.navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   Eyebrow labels + diamond icon
   ========================================================================== */

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 1.1rem;
}
.eyebrow-dark { color: var(--amber-dark); }
.eyebrow.mx-auto, .eyebrow-dark.mx-auto { justify-content: center; }

.eyebrow-diamond {
  width: 20px; height: 20px;
  background: var(--amber);
  transform: rotate(45deg);
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.eyebrow-diamond i { transform: rotate(-45deg); font-size: 0.6rem; color: var(--navy); }
.eyebrow-diamond-dark { background: var(--navy); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 6rem;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,31,51,0.96) 20%, rgba(14,31,51,0.82) 48%, rgba(14,31,51,0.55) 75%, rgba(14,31,51,0.4) 100%);
}
.hero-lanes {
  position: absolute;
  left: 0; right: 0; bottom: 132px;
  height: 3px;
  background-image: repeating-linear-gradient(90deg, var(--amber) 0 34px, transparent 34px 64px);
  opacity: 0.55;
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; padding-block: 3rem 5rem; }
.hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.3rem;
}
.text-amber { color: var(--amber); }
.hero-sub {
  color: rgba(255,255,255,0.86);
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-strip {
  position: relative; z-index: 2;
  background: rgba(9, 20, 33, 0.72);
  border-top: 1px solid var(--line-light);
  padding-block: 1.6rem;
}
.strip-item {
  display: flex; align-items: center; gap: 0.85rem;
  justify-content: center;
}
@media (min-width: 992px) { .strip-item { justify-content: flex-start; } }
.strip-item i { font-size: 1.6rem; color: var(--amber); flex: none; }
.strip-item strong { display: block; color: #fff; font-size: 0.95rem; }
.strip-item small { color: rgba(255,255,255,0.65); font-size: 0.8rem; }

/* ==========================================================================
   Sections — shared
   ========================================================================== */

.section { padding-block: 6rem; }
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.section-title-light { color: #fff; }
.section-text { color: var(--ink-soft); font-size: 1.05rem; }
.section-text-light { color: rgba(255,255,255,0.72); }

/* Reveal-on-scroll — gated behind .js so content is never stuck hidden
   if JavaScript fails to load or run (progressive enhancement). */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1.in-view, .delay-1 { transition-delay: 0.08s; }
.delay-2.in-view, .delay-2 { transition-delay: 0.16s; }
.delay-3.in-view, .delay-3 { transition-delay: 0.24s; }

/* ==========================================================================
   About
   ========================================================================== */

.section-about { background: var(--paper); }
.check-list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.check-list li { display: flex; gap: 0.7rem; margin-bottom: 0.8rem; color: var(--ink); font-weight: 500; }
.check-list i { color: var(--amber-dark); font-size: 1.1rem; margin-top: 0.15rem; }

.about-media { position: relative; }
.about-img { border-radius: 14px; width: 100%; box-shadow: 0 30px 60px -30px rgba(14,31,51,0.4); }
.about-badge {
  position: absolute; left: -1.2rem; bottom: -1.2rem;
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
  box-shadow: 0 20px 40px -20px rgba(14,31,51,0.5);
  max-width: 240px;
}
.about-badge strong { display: block; font-size: 0.88rem; color: var(--navy); }
.about-badge small { color: var(--ink-soft); font-size: 0.76rem; }

/* Placard badges */
.placard {
  display: inline-flex; align-items: center; justify-content: center;
  transform: rotate(45deg);
  border-radius: 10px;
  flex: none;
}
.placard i { transform: rotate(-45deg); }
.placard-sm { width: 42px; height: 42px; background: var(--amber); }
.placard-sm i { font-size: 1.1rem; color: var(--navy); }
.placard-md { width: 58px; height: 58px; background: var(--amber); margin-bottom: 1.3rem; }
.placard-md i { font-size: 1.4rem; color: var(--navy); }
.placard-outline {
  background: var(--navy);
  border: 2px solid var(--amber);
}
.placard-outline i { color: var(--amber); }

/* ==========================================================================
   Why choose us
   ========================================================================== */

.section-why { background: var(--cream); }
.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 1.6rem;
  height: 100%;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(14,31,51,0.28); }
.feature-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.6rem; }
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ==========================================================================
   Courses
   ========================================================================== */

.section-courses {
  background: var(--navy);
  background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.04), transparent 45%);
}
.course-card {
  position: relative;
  background: var(--navy-2);
  border: 1px dashed rgba(242,169,0,0.35);
  border-radius: 14px;
  padding: 2rem 1.7rem 1.8rem;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.course-card:hover { transform: translateY(-6px); border-color: var(--amber); background: var(--navy-3); }
.course-no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 1rem;
}
.course-card h3 { color: #fff; font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; }
.course-card p { color: rgba(255,255,255,0.66); font-size: 0.94rem; margin-bottom: 1.2rem; }
.course-link { color: var(--amber); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.course-link i { transition: transform 0.15s ease; }
.course-link:hover i { transform: translateX(4px); }
.course-link:hover { color: var(--amber-dark); }

/* ==========================================================================
   Testimonials / Slider
   ========================================================================== */

.section-testimonials { background: var(--paper); }
.testimonial-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "inner inner inner" "prev dots next";
  row-gap: 1.8rem;
  align-items: center;
}
.testimonial-carousel .carousel-inner { grid-area: inner; }
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 3rem 2.4rem;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -35px rgba(14,31,51,0.3);
  position: relative;
}
.quote-mark { font-size: 2.4rem; color: var(--amber); display: block; margin-bottom: 1rem; }
.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1.6rem;
  line-height: 1.4;
}
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.avatar-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem;
  flex: none;
}
.testimonial-author strong { display: block; font-size: 0.95rem; color: var(--navy); text-align: left; }
.testimonial-author small { color: var(--ink-soft); font-size: 0.78rem; }

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
  position: static;
  width: auto;
  opacity: 1;
}
.testimonial-carousel .carousel-control-prev { grid-area: prev; justify-self: end; }
.testimonial-carousel .carousel-control-next { grid-area: next; justify-self: start; }
.carousel-nav-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background 0.15s ease, color 0.15s ease;
}
.carousel-nav-icon:hover { background: var(--amber); color: var(--navy); }

.testimonial-indicators {
  grid-area: dots;
  position: static;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.testimonial-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); opacity: 1; border: none;
}
.testimonial-indicators .active { background: var(--amber); }

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  position: relative;
  background: var(--navy);
  padding-block: 5rem;
  overflow: hidden;
}
.lane-lines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 96px);
  opacity: 0.12;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.9rem; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 1.8rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: #091320; padding-block: 4.5rem 2rem; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin: 1rem 0 1.2rem; max-width: 22rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-light);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover { background: var(--amber); border-color: var(--amber); color: var(--navy); }

.footer-heading {
  color: #fff; font-family: var(--font-display); font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { color: rgba(255,255,255,0.62); font-size: 0.92rem; }
.footer-links a:hover { color: var(--amber); }

.footer-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-form input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-light);
  color: #fff;
  flex: 1 1 auto;
  min-width: 10rem;
}
.footer-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-form input:focus { background: rgba(255,255,255,0.09); color: #fff; box-shadow: none; border-color: var(--amber); }

.footer-rule { border-color: var(--line-light); margin: 3rem 0 1.5rem; }
.footer-bottom { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--amber); }

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */

@media (max-width: 991.98px) {
  .custom-navbar { background: rgba(14,31,51,0.97); }
  .navbar-collapse {
    background: var(--navy-2);
    margin-top: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 24px 48px -20px rgba(0,0,0,0.65);
    border: 1px solid var(--line-light);
  }
  .navbar-collapse .nav-link { padding-block: 0.55rem; }
  .navbar-collapse li.ms-lg-3 { margin-top: 0.6rem; }
  .navbar-collapse .btn-enroll { display: inline-block; }
  .hero { padding-top: 5.5rem; }
  .about-badge { position: static; margin-top: -2rem; margin-inline: 1rem; }
}

@media (max-width: 575.98px) {
  .section { padding-block: 4rem; }
  .testimonial-card { padding: 2.4rem 1.4rem; }
}
