/* =====================================================
   ICC Org — custom theme
   Palette: parchment cream / royal blue / academy gold
   Mood: modern institute, editorial serif
   ===================================================== */

:root {
  --cream: #f8f4ec;
  --tint: #efe8d9;
  --blue: #1c3faa;
  --blue-deep: #142c7c;
  --navy: #0f1b3d;
  --gold: #e5a812;
  --gold-deep: #c28d0a;
  --white: #ffffff;
  --muted: #6b6577;
  --font-display: 'Fraunces', serif;
  --font-body: 'Karla', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
}

::selection { background: var(--blue); color: var(--white); }

/* ============ shared type ============ */
.icc-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.1rem;
}
.icc-eyebrow.on-blue { color: var(--gold); }

.icc-h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.icc-h1 em { font-style: italic; font-weight: 500; color: var(--blue); }

.icc-h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.12; margin-bottom: 1rem;
}
.icc-h2 em { font-style: italic; font-weight: 500; color: var(--blue); }
.icc-h2.light { color: var(--white); }
.icc-h2.light em { color: var(--gold); }

.icc-lead { color: var(--muted); font-size: 1.08rem; line-height: 1.75; max-width: 500px; margin-bottom: 2rem; }
.icc-text { color: var(--muted); line-height: 1.8; }
.on-blue-text { color: rgba(255,255,255,0.72); }

.icc-textlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--navy); font-weight: 800; font-size: 0.95rem;
  text-decoration: none; margin-top: 1.2rem;
  border-bottom: 2px solid var(--gold); padding-bottom: 0.2rem;
  transition: color 0.25s, border-color 0.25s;
}
.icc-textlink i { font-size: 0.75rem; transition: transform 0.3s var(--ease-out); }
.icc-textlink:hover { color: var(--blue); border-color: var(--blue); }
.icc-textlink:hover i { transform: translateX(5px); }

.icc-section { padding: 7rem 0; position: relative; }
.icc-tint { background: var(--tint); }
.icc-blue { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: var(--white); }

/* ============ buttons ============ */
.icc-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 800; font-size: 0.95rem;
  border-radius: 100px; padding: 0.9rem 1.8rem;
  border: 2px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.3s, color 0.3s, border-color 0.3s;
}
.icc-btn i { transition: transform 0.35s var(--ease-out); }
.icc-btn:hover i { transform: translateX(4px); }
.icc-btn:active { transform: scale(0.97); }

.icc-btn-blue { background: var(--blue); color: var(--white); }
.icc-btn-blue:hover { background: var(--blue-deep); color: var(--white); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(28,63,170,0.35); }

.icc-btn-gold { background: var(--gold); color: var(--navy); }
.icc-btn-gold:hover { background: var(--gold-deep); color: var(--navy); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(229,168,18,0.4); }

.icc-btn-line { background: transparent; color: var(--navy); border-color: rgba(15,27,61,0.3); }
.icc-btn-line:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-3px); }

.icc-btn-sm { padding: 0.55rem 1.3rem; font-size: 0.85rem; }

/* ============ nav ============ */
.icc-nav { padding: 1rem 0; transition: background-color 0.4s, padding 0.4s, box-shadow 0.4s; }
.icc-nav.is-scrolled {
  background: rgba(248, 244, 236, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.55rem 0;
  box-shadow: 0 8px 30px rgba(15,27,61,0.08);
}
.icc-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.icc-brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--gold);
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(28,63,170,0.35);
}
.icc-brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.icc-brand-text em { font-style: italic; font-weight: 500; color: var(--blue); }
.icc-footer .icc-brand-text { color: var(--white); }

.icc-nav .nav-link {
  color: rgba(15,27,61,0.7); font-size: 0.92rem; font-weight: 700;
  margin: 0 0.35rem; position: relative; padding: 0.5rem 0.6rem;
  transition: color 0.25s;
}
.icc-nav .nav-link::after {
  content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.2rem;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.icc-nav .nav-link:hover { color: var(--navy); }
.icc-nav .nav-link:hover::after { transform: scaleX(1); }

.icc-toggler { background: none; border: 0; width: 40px; height: 34px; position: relative; }
.icc-toggler span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--navy); }
.icc-toggler span:nth-child(1) { top: 12px; }
.icc-toggler span:nth-child(2) { top: 20px; }

@media (max-width: 991.98px) {
  .icc-nav .navbar-collapse {
    background: var(--white);
    border-radius: 18px; padding: 1.4rem; margin-top: 0.8rem;
    box-shadow: 0 20px 50px rgba(15,27,61,0.15);
  }
}

/* ============ hero ============ */
.icc-hero {
  position: relative;
  padding: 10rem 0 7rem;
  background:
    radial-gradient(ellipse 45% 40% at 88% 12%, rgba(229,168,18,0.12), transparent 60%),
    radial-gradient(ellipse 40% 35% at 5% 90%, rgba(28,63,170,0.08), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.icc-hero .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.icc-hero .line-in {
  display: block; transform: translateY(115%);
  animation: lineUp 1.05s var(--ease-out) forwards;
}
.icc-hero .line:nth-child(2) .line-in { animation-delay: 0.15s; }
.icc-hero .line:nth-child(3) .line-in { animation-delay: 0.3s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-fade { opacity: 0; transform: translateY(20px); animation: fadeUp 0.9s var(--ease-out) forwards; }
.icc-eyebrow.hero-fade { animation-delay: 0.1s; }
.icc-lead.hero-fade { animation-delay: 0.48s; }
div.hero-fade { animation-delay: 0.6s; }
ul.hero-fade { animation-delay: 0.72s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-mini { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 0; margin: 2.2rem 0 0; }
.hero-mini li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 700; color: var(--muted); }
.hero-mini i { color: var(--blue); }

.hero-arch {
  position: relative;
  max-width: 460px; margin: 0 auto;
  border-radius: 999px 999px 26px 26px;
  border: 4px solid var(--navy);
  overflow: visible;
  box-shadow: 16px 16px 0 rgba(28,63,170,0.16);
}
.hero-arch img {
  width: 100%; display: block;
  border-radius: 996px 996px 22px 22px;
  aspect-ratio: 4 / 4.6; object-fit: cover;
}
.hero-chip {
  position: absolute;
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--white);
  border-radius: 100px; padding: 0.7rem 1.1rem;
  font-size: 0.8rem; color: var(--muted);
  box-shadow: 0 16px 36px rgba(15,27,61,0.18);
  animation: bob 5s ease-in-out infinite;
}
.hero-chip b { color: var(--navy); }
.hero-chip i { color: var(--gold-deep); font-size: 1.15rem; }
.chip-cert { left: -30px; top: 16%; }
.chip-device { right: -26px; bottom: 12%; animation-delay: 1.4s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 991.98px) {
  .chip-cert { left: 0; }
  .chip-device { right: 0; }
}

/* ============ ticker ============ */
.icc-ticker {
  background: var(--navy);
  overflow: hidden; padding: 1.25rem 0;
}
.icc-ticker-track { display: flex; width: max-content; animation: iccTicker 42s linear infinite; }
.icc-ticker:hover .icc-ticker-track { animation-play-state: paused; }
.icc-ticker-track span {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: 1.15rem; letter-spacing: 0.04em;
  color: var(--cream); white-space: nowrap;
}
.icc-ticker-track i { font-style: normal; color: var(--gold); margin: 0 1.2rem; font-size: 0.7rem; }
@keyframes iccTicker { to { transform: translateX(-50%); } }

/* ============ about ============ */
.about-shot { position: relative; max-width: 440px; }
.about-shot img {
  width: 100%; border-radius: 24px; display: block;
  aspect-ratio: 4 / 4.4; object-fit: cover;
  box-shadow: 0 40px 80px rgba(15,27,61,0.18);
}
.about-shot::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 2px solid var(--gold); border-radius: 24px; z-index: -1;
}
.about-badge {
  position: absolute; right: -18px; bottom: 34px;
  background: var(--blue); color: var(--white);
  border-radius: 16px; padding: 0.9rem 1.25rem;
  box-shadow: 0 20px 44px rgba(28,63,170,0.4);
  animation: bob 5s ease-in-out infinite;
}
.about-badge b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.05rem; color: var(--gold); }
.about-badge span { font-size: 0.72rem; color: rgba(255,255,255,0.75); }

/* ============ why us — vertical timeline ============ */
.tl { position: relative; max-width: 900px; margin: 0 auto; padding: 1rem 0; }
.tl::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(to bottom, rgba(28,63,170,0.35) 0 8px, transparent 8px 16px);
}
.tl-item { position: relative; width: 50%; padding: 1.4rem 3.2rem 1.4rem 0; }
.tl-item.right { margin-left: 50%; padding: 1.4rem 0 1.4rem 3.2rem; }
.tl-dot {
  position: absolute; top: 2.4rem;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--blue);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--blue);
  box-shadow: 0 8px 20px rgba(28,63,170,0.2);
  transition: background-color 0.3s, color 0.3s, transform 0.35s var(--ease-out);
}
.tl-item:hover .tl-dot { background: var(--blue); color: var(--gold); transform: scale(1.1); }
.tl-item.left .tl-dot { right: -26px; }
.tl-item.right .tl-dot { left: -26px; }
.tl-card {
  background: var(--white);
  border-radius: 20px; padding: 1.8rem;
  box-shadow: 0 20px 44px rgba(15,27,61,0.08);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.tl-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(15,27,61,0.13); }
.tl-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(28,63,170,0.09); color: var(--blue);
  font-size: 1.1rem; margin-bottom: 1rem;
}
.tl-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.5rem; }
.tl-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin: 0; }

@media (max-width: 767.98px) {
  .tl::before { left: 25px; }
  .tl-item, .tl-item.right { width: 100%; margin-left: 0; padding: 1rem 0 1rem 4.2rem; }
  .tl-item.left .tl-dot, .tl-item.right .tl-dot { left: 0; right: auto; }
}

/* ============ courses — bento ============ */
.course-feature {
  position: relative; height: 100%; min-height: 520px;
  border-radius: 26px; overflow: hidden;
  display: flex; align-items: flex-end;
  box-shadow: 0 30px 60px rgba(15,27,61,0.2);
}
.course-feature img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.course-feature:hover img { transform: scale(1.05); }
.course-feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,27,61,0.92) 8%, rgba(15,27,61,0.25) 55%, transparent 80%);
}
.course-feature-body { position: relative; z-index: 2; padding: 2.2rem; }
.course-tag {
  display: inline-block;
  background: var(--gold); color: var(--navy);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 100px; padding: 0.35rem 0.9rem; margin-bottom: 0.9rem;
}
.course-feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: var(--white); margin-bottom: 0.6rem; }
.course-feature p { color: rgba(255,255,255,0.78); font-size: 0.92rem; line-height: 1.65; margin-bottom: 1.2rem; }
.course-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--gold); font-weight: 800; font-size: 0.9rem; text-decoration: none;
}
.course-cta i { font-size: 0.75rem; transition: transform 0.3s var(--ease-out); }
.course-cta:hover { color: var(--white); }
.course-cta:hover i { transform: translateX(5px); }

.course-tile {
  height: 100%;
  background: var(--white);
  border: 1px solid rgba(15,27,61,0.08);
  border-radius: 20px; padding: 1.6rem;
  box-shadow: 0 16px 36px rgba(15,27,61,0.06);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.course-tile:hover { transform: translateY(-7px); box-shadow: 0 26px 54px rgba(15,27,61,0.12); border-color: rgba(28,63,170,0.35); }
.tile-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(28,63,170,0.09); color: var(--blue);
  font-size: 1.1rem; margin-bottom: 1rem;
  transition: transform 0.4s var(--ease-out);
}
.course-tile:hover .tile-icon { transform: rotate(-8deg) scale(1.08); }
.course-tile.gold .tile-icon { background: rgba(229,168,18,0.15); color: var(--gold-deep); }
.course-tile h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; margin-bottom: 0.9rem; min-height: 2.9rem; }
.tile-link {
  color: var(--blue); font-weight: 800; font-size: 0.85rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.tile-link i { font-size: 0.7rem; transition: transform 0.3s var(--ease-out); }
.tile-link:hover { color: var(--gold-deep); }
.tile-link:hover i { transform: translateX(4px); }

/* ============ testimonial carousel ============ */
#quoteCarousel { max-width: 780px; margin: 0 auto; }
.quote-slide {
  margin: 0; text-align: center;
  padding: 2rem 3.5rem 5.5rem;
}
.quote-mark { font-size: 2.2rem; color: var(--gold); opacity: 0.8; margin-bottom: 1.4rem; }
.quote-slide blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.5; color: var(--white);
  margin-bottom: 1.8rem;
}
.quote-slide figcaption { display: flex; align-items: center; justify-content: center; gap: 0.9rem; }
.icc-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--blue);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.icc-avatar.gold { background: var(--gold); color: var(--navy); }
.quote-slide figcaption span:last-child { text-align: left; }
.quote-slide figcaption b { display: block; font-size: 0.95rem; color: var(--white); }
.quote-slide figcaption small { color: rgba(255,255,255,0.65); font-size: 0.78rem; }

.carousel-indicators { bottom: 0.6rem; }
.carousel-indicators button {
  width: 26px; height: 4px; border-radius: 4px; border: 0;
  background: rgba(255,255,255,0.3);
  transition: width 0.4s var(--ease-out), background-color 0.3s;
}
.carousel-indicators button.active { width: 48px; background: var(--gold); }

.carousel-control-prev, .carousel-control-next { width: auto; opacity: 1; }
.quote-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.3); color: var(--white);
  font-size: 0.85rem;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.carousel-control-prev:hover .quote-arrow,
.carousel-control-next:hover .quote-arrow { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.carousel-control-prev { left: -6px; }
.carousel-control-next { right: -6px; }

@media (max-width: 767.98px) {
  .quote-slide { padding: 1rem 0.5rem 5rem; }
  .carousel-control-prev, .carousel-control-next { display: none; }
}

/* ============ enroll ============ */
.enroll-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--blue) 0%, var(--navy) 90%);
  border-radius: 30px;
  text-align: center;
  padding: 4.5rem 2rem 3.5rem;
  box-shadow: 0 40px 90px rgba(28,63,170,0.35);
}
.enroll-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 45% 50% at 50% 0%, rgba(229,168,18,0.18), transparent 60%);
  pointer-events: none;
}
.enroll-card > * { position: relative; }
.enroll-form { max-width: 760px; margin: 2rem auto 0; }
.icc-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px; color: var(--white);
  padding: 0.85rem 1.3rem; font-size: 0.92rem;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.icc-input::placeholder { color: rgba(255,255,255,0.45); }
.icc-input:focus {
  background: rgba(255,255,255,0.12); color: var(--white);
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(229,168,18,0.2);
}
select.icc-input option { color: var(--navy); }

.icc-success { display: none; padding: 2.5rem 0 0.5rem; }
.icc-success.show { display: block; animation: iccPop 0.6s var(--ease-out); }
.icc-success i { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; }
.icc-success h3 { font-family: var(--font-display); font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.icc-success p { color: rgba(255,255,255,0.7); }
@keyframes iccPop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* ============ footer ============ */
.icc-footer { background: var(--navy); padding: 2rem 0; }
.icc-foot-note { color: rgba(255,255,255,0.45); font-size: 0.85rem; margin: 0; }

/* ============ scroll reveals ============ */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .icc-hero .line-in { transform: none; }
}
