/* Homepage "Programs & curriculum" (tools/build-pillars.mjs): auto-cycling pillar tabs + animated illustration stage. */
.acs-pillars {
  --navy: #071a36; --blue: #1f8fd6; --green: #8dc63f; --muted: #5d6b82; --line: #e4ebf4; --ease: cubic-bezier(.22, 1, .36, 1); --dur: 6s;
  padding: 100px 0; font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; color: var(--navy); -webkit-font-smoothing: antialiased;
}
.acs-pillars *, .acs-pillars *::before, .acs-pillars *::after { box-sizing: border-box; }
.acs-pillars [data-tone="blue"] { --c: #1f8fd6; --c2: #e3f1fc; }
.acs-pillars [data-tone="amber"] { --c: #f0a500; --c2: #fff4d6; }
.acs-pillars [data-tone="green"] { --c: #5fa21e; --c2: #ebf6dd; }
.acs-pillars [data-tone="purple"] { --c: #7b4fd6; --c2: #efe8fd; }
.acs-pillars [data-tone="teal"] { --c: #0b7f7c; --c2: #dff5f4; }
.acs-pillars .acs-pillars__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.acs-pillars .acs-pillars__eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--blue-ink, #1670b0); }
.acs-pillars .acs-pillars__h { margin: 0 0 30px; font-family: inherit; font-size: clamp(30px, 3.8vw, 48px); font-weight: 800; line-height: 1.07; letter-spacing: -.035em; color: var(--navy); text-transform: none; }
.acs-pillars .acs-pillars__h span { background: linear-gradient(90deg, var(--blue), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* tabs */
.acs-pillars .acs-pillars__tabs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.acs-pillars .acs-pillars__tab { position: relative; display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 16px 18px 18px; border: 0; border-radius: 20px; background: transparent; cursor: pointer;
  font: inherit; text-align: left; text-transform: none; letter-spacing: 0; color: var(--navy); box-shadow: none; overflow: hidden; transition: background-color .3s, box-shadow .3s; }
.acs-pillars .acs-pillars__tab:hover { background: #f4f7fb; }
.acs-pillars .acs-pillars__tab.is-on { background: #fff; box-shadow: 0 18px 40px -26px rgba(7, 26, 54, .45), 0 0 0 1px var(--line); }
.acs-pillars .acs-pillars__num { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--muted); background: #eef3f9; transition: background-color .3s, color .3s; }
.acs-pillars .acs-pillars__tab.is-on .acs-pillars__num { background: var(--c); color: #fff; }
.acs-pillars .acs-pillars__tt b { display: block; font-size: 17px; line-height: 1.3; }
.acs-pillars .acs-pillars__tab .acs-pillars__tt span { display: block; font-size: 14.5px; line-height: 1.55; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .5s var(--ease), margin .4s var(--ease); }
.acs-pillars .acs-pillars__tab.is-on .acs-pillars__tt span { max-height: 90px; margin-top: 6px; }
.acs-pillars .acs-pillars__bar { position: absolute; left: 18px; right: 18px; bottom: 8px; height: 3px; border-radius: 3px; background: transparent; overflow: hidden; }
.acs-pillars .acs-pillars__tab.is-on .acs-pillars__bar { background: #eef3f9; }
.acs-pillars .acs-pillars__bar i { display: block; width: 100%; height: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; }
.acs-pillars .acs-pillars__tab.is-on .acs-pillars__bar i { animation: acs-pl-fill var(--dur) linear forwards; }
.acs-pillars.is-paused .acs-pillars__tab.is-on .acs-pillars__bar i { animation-play-state: paused; }
@keyframes acs-pl-fill { to { transform: scaleX(1); } }
.acs-pillars .acs-pillars__all { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0 18px; font-weight: 800; color: var(--blue-ink, #1670b0); text-decoration: none; }
.acs-pillars .acs-pillars__all:hover { color: var(--navy); }

/* the 3D render floats on the page (no box behind it) and tilts toward the pointer (--rx/--ry from acs-pillars.js) */
.acs-pillars .acs-pillars__stage { position: relative; aspect-ratio: .9; perspective: 1200px; isolation: isolate; }
.acs-pillars .acs-pillars__stage::before { content: ""; position: absolute; left: 12%; right: 12%; top: 10%; bottom: 18%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, rgba(31, 143, 214, .16)), transparent); filter: blur(10px); transition: background .8s; }
.acs-pillars .acs-pillars__blob { display: none; }
.acs-pillars .acs-pillars__panel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transform-style: preserve-3d; }
.acs-pillars .acs-pillars__panel[hidden] { display: flex; visibility: hidden; }
.acs-pillars .acs-pillars__scene { position: relative; width: 84%; aspect-ratio: 1; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease); }
.acs-pillars.is-tilting .acs-pillars__scene { transition: transform .15s linear; }
.acs-pillars .pl3-hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(7, 26, 54, .22)); transform: translateZ(60px); opacity: 0;
  transition: opacity .5s, transform 1s var(--ease); animation: acs-pl3-float 5.5s ease-in-out infinite; }
.acs-pillars .acs-pillars__panel.is-on .pl3-hero { opacity: 1; }
.acs-pillars .acs-pillars__panel:not(.is-on) .pl3-hero { transform: translateZ(-160px) rotateY(-60deg) scale(.75); }
@keyframes acs-pl3-float { 50% { translate: 0 -16px; } }
/* a soft shadow on the "floor" that breathes with the float */
.acs-pillars .pl3-shadow { position: absolute; left: 22%; right: 22%; bottom: -4%; height: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(7, 26, 54, .28), transparent); animation: acs-pl3-shadow 5.5s ease-in-out infinite; opacity: 0; transition: opacity .5s; }
.acs-pillars .acs-pillars__panel.is-on .pl3-shadow { opacity: 1; }
@keyframes acs-pl3-shadow { 50% { transform: scaleX(.82); opacity: .55; } }
.acs-pillars [data-tone="blue"] .acs-pillars__scene, .acs-pillars .acs-pillars__stage { --glow: rgba(31, 143, 214, .16); }

.acs-pillars .acs-pillars__foot { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.acs-pillars .acs-pillars__chip { position: relative; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 800; color: var(--navy);
  background: #fff; box-shadow: 0 14px 30px -16px rgba(7, 26, 54, .45), 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(-10px); transition: opacity .4s .3s, transform .6s .3s var(--ease); }
.acs-pillars .acs-pillars__chip::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--c); }
.acs-pillars .acs-pillars__go { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 14.5px; font-weight: 800; text-decoration: none; white-space: nowrap; opacity: 0; transform: translateY(10px); transition: opacity .4s .4s, transform .6s .4s var(--ease), background-color .25s; }
.acs-pillars .acs-pillars__go:hover { background: var(--c); color: #fff; }
.acs-pillars .acs-pillars__panel.is-on .acs-pillars__chip { opacity: 1; transform: none; }
.acs-pillars .acs-pillars__panel.is-on .acs-pillars__go { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .acs-pillars { padding: 72px 0; }
  .acs-pillars .acs-pillars__inner { grid-template-columns: 1fr; gap: 28px; }
  .acs-pillars .acs-pillars__stage { order: -1; aspect-ratio: 1.25; }
  .acs-pillars .acs-pillars__h { margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .acs-pillars .acs-pillars__inner { padding: 0 16px; }
  .acs-pillars .acs-pillars__stage { aspect-ratio: .92; }
  .acs-pillars .acs-pillars__chip { font-size: 12.5px; }
  .acs-pillars .acs-pillars__go { font-size: 13.5px; padding: 11px 18px; }
  .acs-pillars .acs-pillars__tab { padding: 14px 14px 16px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .acs-pillars *, .acs-pillars *::before { animation: none !important; transition: none !important; }
  .acs-pillars .acs-pillars__tab.is-on .acs-pillars__bar i { transform: scaleX(1); }
}

/* homepage "Join Our Community" (Elementor container fa23ca3): a soft blue-to-green tint so it stands apart from the white sections around it */
.elementor-element.elementor-element-fa23ca3 {
  background: radial-gradient(600px 360px at 85% 20%, rgba(141, 198, 63, .16), transparent 70%), linear-gradient(135deg, #eaf4fd 0%, #f2f8ec 100%) !important;
  padding-top: 70px !important; padding-bottom: 70px !important;
}

/* ---------- the pencil case (renderPillars, .acs-pillars--case): a zipped navy case with an ACS zip pull; every program is a
   pencil, the chosen one is sharpened, coloured and as long as the case. Same tabs and timer as above (acs-pillars.js). ---------- */
.acs-pillars--case { padding: 24px 20px 110px; background: #fff; }
.acs-pillars--case .acs-pillars__case {
  position: relative; max-width: 1320px; margin: 0 auto; border-radius: 56px; overflow: hidden; isolation: isolate; color: #fff;
  background-color: #0b2a55;
  background-image: radial-gradient(900px 520px at 88% -10%, rgba(36, 144, 216, .34), transparent 65%), radial-gradient(700px 460px at -5% 105%, rgba(144, 192, 60, .14), transparent 65%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .026) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 6px);
  box-shadow: 0 70px 100px -70px rgba(7, 26, 54, .95), inset 0 1px 0 rgba(255, 255, 255, .1);
}
/* the stitching just inside the edge */
.acs-pillars--case .acs-pillars__case::after { content: ""; position: absolute; left: 18px; right: 18px; top: 66px; bottom: 18px; z-index: 0; border: 2px dashed rgba(255, 255, 255, .16); border-radius: 40px; pointer-events: none; }
/* the zip along the top, and its pull with the emblem on the tag */
.acs-pillars--case .acs-pillars__zip { position: relative; z-index: 2; height: 48px;
  background: #061630 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='48'%3E%3Crect x='1' y='9' width='10' height='16' rx='3' fill='%23e1e8ef'/%3E%3Crect x='2' y='10' width='8' height='4' rx='2' fill='%23ffffff' fill-opacity='.7'/%3E%3Crect x='10' y='23' width='10' height='16' rx='3' fill='%23a9b8c8'/%3E%3C/svg%3E") repeat-x 0 0;
  box-shadow: inset 0 -9px 10px -8px rgba(0, 0, 0, .6), inset 0 9px 10px -8px rgba(0, 0, 0, .6); }
.acs-pillars--case .acs-pillars__pull { position: absolute; top: 4px; right: 15%; z-index: 3; display: flex; flex-direction: column; align-items: center; animation: acs-pl-pull 10s ease-in-out infinite; }
.acs-pillars--case .acs-pillars__slider { display: block; width: 60px; height: 38px; border-radius: 12px 12px 18px 18px; background: linear-gradient(180deg, #f5f8fb, #b6c3d1);
  box-shadow: 0 8px 12px -6px rgba(0, 0, 0, .65), inset 0 -3px 0 rgba(7, 26, 54, .2); }
.acs-pillars--case .acs-pillars__tag { position: relative; display: grid; place-items: end center; width: 52px; height: 80px; margin-top: -7px; padding-bottom: 11px; box-sizing: border-box;
  border-radius: 10px 10px 26px 26px; background: #90c03c; box-shadow: 0 12px 18px -8px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .22); transform-origin: 50% 0; animation: acs-pl-tag 4.5s ease-in-out infinite; }
.acs-pillars--case .acs-pillars__tag::before { content: ""; position: absolute; top: 10px; left: 50%; width: 16px; height: 8px; margin-left: -8px; border-radius: 6px; background: #0b2a55; }
.acs-pillars--case .acs-pillars__tag img { display: block; width: 32px; height: 32px; padding: 3px; border-radius: 50%; background: #fff; box-sizing: border-box; }
@keyframes acs-pl-pull { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-64px); } }
@keyframes acs-pl-tag { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

.acs-pillars--case .acs-pillars__inner { position: relative; z-index: 1; max-width: none; padding: 70px clamp(24px, 5vw, 78px) 84px; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 52px; }
.acs-pillars--case .acs-pillars__eyebrow { color: #90c03c; }
.acs-pillars--case .acs-pillars__h { color: #fff; }
.acs-pillars--case .acs-pillars__h span { background: linear-gradient(90deg, #6cc4ff, #90c03c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acs-pillars--case .acs-pillars__all { margin-left: 4px; color: #90c03c; }
.acs-pillars--case .acs-pillars__all:hover { color: #fff; }

/* the pencils */
.acs-pillars--case [data-tone="blue"] { --c: #2490d8; --ink: #071a36; }
.acs-pillars--case [data-tone="green"] { --c: #90c03c; --ink: #071a36; }
.acs-pillars--case [data-tone="amber"] { --c: #f7b733; --ink: #071a36; }
.acs-pillars--case [data-tone="teal"] { --c: #1aa39f; --ink: #071a36; }
.acs-pillars--case [data-tone="purple"] { --c: #8b63e0; --ink: #fff; }
.acs-pillars--case .acs-pillars__tabs { gap: 11px; }
.acs-pillars--case .acs-pillars__tabs li:nth-child(6n+1) { --len: 87%; }
.acs-pillars--case .acs-pillars__tabs li:nth-child(6n+2) { --len: 93%; }
.acs-pillars--case .acs-pillars__tabs li:nth-child(6n+3) { --len: 81%; }
.acs-pillars--case .acs-pillars__tabs li:nth-child(6n+4) { --len: 96%; }
.acs-pillars--case .acs-pillars__tabs li:nth-child(6n+5) { --len: 84%; }
.acs-pillars--case .acs-pillars__tabs li:nth-child(6n) { --len: 90%; }
.acs-pillars--case .acs-pillars__tab { display: flex; align-items: stretch; gap: 0; width: var(--len, 88%); padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; color: #fff;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .3)); transition: width .7s var(--ease), transform .35s var(--ease); }
.acs-pillars--case .acs-pillars__tab:hover { background: none; transform: translateX(6px); }
.acs-pillars--case .acs-pillars__tab.is-on { width: 100%; background: none; box-shadow: none; transform: none; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .4)) drop-shadow(0 0 16px color-mix(in srgb, var(--c) 50%, transparent)); }
.acs-pillars--case .acs-pillars__tab:focus-visible { outline: none; }
.acs-pillars--case .acs-pillars__tab:focus-visible .acs-pillars__body { outline: 3px solid #fff; outline-offset: 3px; }
/* eraser + metal band */
.acs-pillars--case .acs-pillars__eraser { flex: none; width: 42px; border-radius: 13px 0 0 13px;
  background: linear-gradient(90deg, #f29b9b 0 52%, #e4eaf1 52% 60%, #9fb0c3 60% 64%, #e4eaf1 64% 72%, #9fb0c3 72% 76%, #e4eaf1 76% 84%, #9fb0c3 84% 88%, #cfd8e3 88%); }
/* the painted body, with the light and dark facets of a hexagonal pencil */
.acs-pillars--case .acs-pillars__body { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 13px 18px 15px;
  background-color: var(--c); color: var(--ink); background-image: linear-gradient(180deg, rgba(255, 255, 255, .2) 0 30%, transparent 30% 70%, rgba(0, 0, 0, .12) 70%); opacity: .74;
  transition: background-color .5s var(--ease), color .3s, padding .5s var(--ease); }
.acs-pillars--case .acs-pillars__tab.is-on .acs-pillars__body { align-items: flex-start; padding: 18px 20px 24px; opacity: 1; }
.acs-pillars--case .acs-pillars__tab:hover .acs-pillars__body { opacity: 1; }
/* sharpened wood and graphite: blunt while the pencil waits, a long point when it is chosen */
.acs-pillars--case .acs-pillars__tip { flex: none; width: 30px; clip-path: polygon(0 0, 100% 50%, 0 100%); background: linear-gradient(90deg, #ecc995 0 66%, #33414f 66%); transition: width .6s var(--ease); }
.acs-pillars--case .acs-pillars__tab.is-on .acs-pillars__tip { width: 64px; background: linear-gradient(90deg, #ecc995 0 70%, #1d2b3a 70%); }
.acs-pillars--case .acs-pillars__num { width: 34px; height: 34px; border-radius: 10px; background: rgba(7, 26, 54, .14); color: var(--ink); }
.acs-pillars--case [data-tone="purple"] .acs-pillars__num { background: rgba(255, 255, 255, .2); }
.acs-pillars--case .acs-pillars__tt b { font-size: 16.5px; }
.acs-pillars--case .acs-pillars__tab.is-on .acs-pillars__tt b { font-size: 18px; }
.acs-pillars--case .acs-pillars__tab .acs-pillars__tt span { color: inherit; opacity: .86; }
.acs-pillars--case .acs-pillars__tab.is-on .acs-pillars__tt span { max-height: 180px; }
/* the timer is the line the pencil draws */
.acs-pillars--case .acs-pillars__bar { left: 20px; right: 20px; bottom: 9px; height: 3px; }
.acs-pillars--case .acs-pillars__tab.is-on .acs-pillars__bar { background: rgba(7, 26, 54, .16); }
.acs-pillars--case .acs-pillars__bar i { background: currentColor; }

/* the stage inside the case */
/* the 3D pictures sit in a white pocket: their white parts (the Lebanese flag, the book pages) are see-through, so they need white behind them */
.acs-pillars--case .acs-pillars__stage { border-radius: 40px; background: #fff; outline: 2px dashed rgba(7, 26, 54, .16); outline-offset: -14px;
  box-shadow: inset 0 22px 30px -26px rgba(7, 26, 54, .45), 0 34px 60px -40px rgba(0, 0, 0, .7); }
.acs-pillars--case .acs-pillars__stage::before { background: radial-gradient(closest-side, rgba(36, 144, 216, .14), transparent); }
.acs-pillars--case .pl3-hero { filter: drop-shadow(0 26px 30px rgba(7, 26, 54, .22)); }
.acs-pillars--case .pl3-shadow { background: radial-gradient(closest-side, rgba(7, 26, 54, .28), transparent); }
.acs-pillars--case .acs-pillars__go { background: #90c03c; color: #071a36; }
.acs-pillars--case .acs-pillars__go:hover { background: #fff; color: #071a36; }

@media (max-width: 960px) {
  .acs-pillars--case { padding: 16px 12px 72px; }
  .acs-pillars--case .acs-pillars__case { border-radius: 36px; }
  .acs-pillars--case .acs-pillars__case::after { left: 10px; right: 10px; top: 58px; bottom: 10px; border-radius: 28px; }
  .acs-pillars--case .acs-pillars__inner { grid-template-columns: 1fr; gap: 20px; padding: 40px 22px 50px; }
  .acs-pillars--case .acs-pillars__pull { right: 10%; }
}
@media (max-width: 600px) {
  .acs-pillars--case .acs-pillars__eraser { width: 30px; }
  .acs-pillars--case .acs-pillars__body { padding: 11px 12px 13px; gap: 10px; }
  .acs-pillars--case .acs-pillars__tab.is-on .acs-pillars__body { padding: 14px 14px 20px; }
  .acs-pillars--case .acs-pillars__tip { width: 22px; }
  .acs-pillars--case .acs-pillars__tab.is-on .acs-pillars__tip { width: 40px; }
  .acs-pillars--case .acs-pillars__num { display: none; }
  .acs-pillars--case .acs-pillars__tt b { font-size: 15px; }
  .acs-pillars--case .acs-pillars__tab.is-on .acs-pillars__tt b { font-size: 16px; }
}
