/* Shared visual layer for the older and the plainer pages. Styling only: the words on each page are not touched.
   A page opts in with one body class: as-old (the older course, profile and media template), as-axl (the Aegis Learn style pages)
   or as-campaign (ad landing pages: type and buttons only, no motion, so nothing gets between a visitor and the form).
   Perspective grid and count-up: adapted from Vengeance UI, (c) 2025-2026 Ashutoshx7, MIT License. */

#as-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #a7283d, #cbaa5c); transform: scaleX(0); transform-origin: 0 50%; z-index: 2000; }

/* the dark opening with the moving grid */
.as-hero { position: relative !important; overflow: hidden !important; background: #0a0a0a !important; }
.as-hero > .as-field, .as-hero > .as-lit, .as-hero > .as-shade { position: absolute; inset: 0; pointer-events: none; }
.as-hero > .as-field, .as-hero > .as-lit { perspective: 2000px; overflow: hidden; }
.as-hero > .as-lit { --mx: 72%; --my: 34%; -webkit-mask-image: radial-gradient(420px circle at var(--mx) var(--my), #000 0, transparent 72%); mask-image: radial-gradient(420px circle at var(--mx) var(--my), #000 0, transparent 72%); }
.as-plane { position: absolute; left: 62%; top: 40%; width: 2400px; height: 2400px; transform: translate(-50%, -50%) rotateX(30deg) rotateY(-5deg) rotateZ(20deg) scale(2); transform-style: preserve-3d; background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px); background-size: 32px 32px; }
.as-plane-gold { background-image: linear-gradient(rgba(244,215,128,.85) 1px, transparent 1px), linear-gradient(90deg, rgba(244,215,128,.85) 1px, transparent 1px); }
.as-hero > .as-shade { background: linear-gradient(90deg, #0a0a0a 8%, rgba(10,10,10,.84) 46%, rgba(10,10,10,.28) 84%), linear-gradient(180deg, rgba(10,10,10,0) 60%, #0a0a0a 100%), radial-gradient(50% 45% at 92% 8%, rgba(167,40,61,.34), transparent 72%); }

/* ---------- older template ---------- */
.as-old { color: #3a3131; -webkit-font-smoothing: antialiased; }
.as-old section *:not(i):not(.fa):not([class*="fa-"]):not([class*="ion-"]):not(.glyphicon) { font-family: 'Poppins', -apple-system, 'Segoe UI', system-ui, sans-serif; }
.as-old .section__home { height: auto !important; min-height: 0 !important; margin: 0 !important; padding: clamp(112px, 10vw, 148px) 0 clamp(40px, 4.4vw, 64px) !important; }
.as-old .section__home .home__bg { display: none !important; }
.as-old .section__home, .as-axl .axl .axl-hero { background: #0a0a0a !important; }
.as-old .section__home::before, .as-old .section__home::after { display: none !important; }
.as-old .section__home > .container { position: relative !important; z-index: 3; top: auto !important; left: auto !important; transform: none !important; height: auto !important; display: block !important; }
.as-old .section__home .home__content { position: static !important; display: block !important; height: auto !important; padding: 0 !important; transform: none !important; text-align: left !important; }
.as-old .section__home .home__heading, .as-old .section__home h1 { margin: 0 0 12px !important; color: #fff !important; font-size: clamp(25px, 2.7vw, 36px) !important; font-weight: 700 !important; line-height: 1.18 !important; letter-spacing: -.024em !important; text-align: left !important; text-transform: none !important; text-wrap: balance; }
.as-old .section__home .breadcrumb { margin: 0; padding: 0; background: none; text-align: left; font-size: 13.5px; }
.as-old .section__home .breadcrumb > li, .as-old .section__home .breadcrumb > li + li::before { color: rgba(255,255,255,.62); }
.as-old .section__home .breadcrumb a { color: #f4d780; }

.as-old h2 { color: #161616; font-size: clamp(21px, 2vw, 26px); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
.as-old .btn-warning, .as-old .btn-primary { min-height: 44px; padding: 10px 26px; border: 0 !important; border-radius: 12px; background: linear-gradient(135deg, #cbaa5c, #f4d780) !important; color: #1d1405 !important; font-weight: 600; text-transform: none; }

/* course pages */
.as-old .section__course-single { padding: clamp(28px, 3.6vw, 52px) 0; background: #fff; font-size: 16px; }
.as-old .course-single-img { margin-bottom: 18px; }
.as-old .course-single-img iframe.ytVideo { display: block; width: 100%; max-width: 920px; height: auto !important; margin: 0 auto; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #0a0a0a; }
.as-old .course-details-area { clear: both; padding-top: 18px; }
.as-old .course-tab { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 clamp(24px, 3vw, 38px); padding: 8px; border-radius: 14px; background: #0a0a0a; list-style: none; }
.as-old .course-tab > li { margin: 0 !important; background: none !important; border-radius: 10px; }
.as-old .course-tab > li::after { display: none !important; }
.as-old .course-tab > li > a { display: block; padding: 9px 14px; border-radius: 10px; color: rgba(255,255,255,.78); font-size: 14px; font-weight: 600; line-height: 1.2; transition: background-color .2s, color .2s; }
.as-old .course-tab > li > a:hover, .as-old .course-tab > li > a:focus { background: rgba(255,255,255,.1); color: #fff; }
.as-old .course-tab > li.active > a { background: linear-gradient(135deg, #cbaa5c, #f4d780); color: #1d1405; }
.as-old .course-details-text .title { margin-bottom: 26px; text-align: left; }
.as-old .course-details-text .title h1, .as-old .course-details-text .title h2 { margin: 0; color: #161616; font-size: clamp(23px, 2.4vw, 32px); font-weight: 700; line-height: 1.16; letter-spacing: -.024em; text-transform: none; }
.as-old .course-details-text .border-shape { width: 56px; height: 3px; margin: 14px 0 0; border-radius: 3px; background: #cbaa5c; }
.as-old .course-details-text .border-shape::before, .as-old .course-details-text .border-shape::after { display: none; }
.as-old .course-details-text, .as-old .course-details-text p, .as-old .course-details-text li { color: #3a3131; font-size: 16px; line-height: 1.65; }
.as-old .course-details-text h2 { margin: 28px 0 10px; }
.as-old .course-details-text h3, .as-old .course-details-text h4 { color: #161616; font-weight: 600; letter-spacing: -.014em; }
.as-old .course-details-text a, .as-old .course-info a { color: #a7283d; font-weight: 500; }
.as-old .course-details-text table { display: block; max-width: 100%; overflow-x: auto; }
.as-old [style*="border-left:#ccc"], .as-old [style*="border-left: #ccc"] { border-left: 0 !important; }
.as-old .course-info { padding: clamp(18px, 2vw, 26px); border: 1px solid #ececef; border-radius: 18px; background: #fafafa; overflow-wrap: anywhere; }
.as-old .course-info h4 { margin: 18px 0 10px; color: #161616; font-size: 16px; font-weight: 700; letter-spacing: -.012em; }
.as-old .course-info h4:first-child { margin-top: 0; }
.as-old .course-info table th, .as-old .course-info table td { padding: 7px 8px 7px 0; border-top: 1px solid #ececef; vertical-align: top; font-size: 13.5px; }
.as-old .course-info img { max-width: 100%; height: auto; }

/* profile pages */
.as-old .section__teacher-profile { padding: clamp(36px, 4.6vw, 68px) 0; background: #fff; }
.as-old .teacher__img img { width: 100%; max-width: 300px; border: 3px solid #cbaa5c; border-radius: 16px; object-fit: cover; }
.as-old .teacher__post { margin-top: 6px; color: #a7283d; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.as-old .teacher__name { margin: 8px 0 6px; color: #161616; font-size: clamp(25px, 2.6vw, 34px); font-weight: 700; line-height: 1.16; letter-spacing: -.024em; }
.as-old .teacher__branch { color: #6b6b73; font-size: 16px; line-height: 1.5; }
#teacher-profile__page.as-old .section__teacher-profile > .container .subheading { margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #ececef; color: #161616; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.as-old .section__teacher-profile .teacher__name { text-transform: none; }
.as-old .section__teacher-profile .subheading { text-align: left; }
/* 19 profiles carry a grey "768x1024" stand-in, and one an empty image: no photo slot rather than a grey box */
.as-old .col-md-4:has(> .teacher__img img[src$="teacher_4.jpg"]), .as-old .col-md-4:has(> .teacher__img img[src$="assets/img/"]) { display: none; }
.as-old .col-md-4:has(> .teacher__img img[src$="teacher_4.jpg"]) + .col-md-8, .as-old .col-md-4:has(> .teacher__img img[src$="assets/img/"]) + .col-md-8 { width: 100%; }
.as-old .teacher__text { color: #3a3131; font-size: 16px; line-height: 1.7; }

/* media and press pages */
.as-old .section__blog { padding: clamp(36px, 4.6vw, 68px) 0; background: #fff; }
.as-old .blog__item { margin-bottom: 24px; overflow: hidden; border: 1px solid #ececef; border-radius: 18px; background: #fff; box-shadow: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.as-old .blog__item:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -22px rgba(0,0,0,.2); border-color: rgba(167,40,61,.26); }
.as-old .blog-item__content { padding: 16px 18px 18px; }
.as-old .blog-item__title h3 { margin: 0 0 8px; color: #161616; font-size: 16.5px; font-weight: 600; line-height: 1.32; letter-spacing: -.012em; }
.as-old .blog-item__text { color: #3a3131; font-size: 14.5px; line-height: 1.55; }
.as-old .blog-item__link a { color: #a7283d; font-weight: 600; }

/* policy and other long text */
.as-old .section__features { padding: clamp(36px, 4.6vw, 68px) 0; background: #fff; }
.as-old .section__features > .container { max-width: 900px; }
.as-old .section__features, .as-old .section__features p, .as-old .section__features li { color: #3a3131; font-size: 16px; line-height: 1.7; }

/* ---------- Aegis Learn style pages ---------- */
.as-axl .axl .axl-hero { background: #0a0a0a !important; border-bottom: 0; }
.as-axl .axl .axl-hero > .axl-container { position: relative; z-index: 3; }
.as-axl .axl .axl-hero h1 { color: #fff; font-size: clamp(27px, 3vw, 42px); line-height: 1.14; letter-spacing: -.026em; }
.as-axl .axl .axl-hero h1 span { background: linear-gradient(90deg, #f4d780, #cbaa5c); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.as-axl .axl .axl-hero .axl-eyebrow { color: #f4d780; }
.as-axl .axl .axl-hero .axl-eyebrow .axl-dot { background: #cbaa5c; box-shadow: 0 0 0 4px rgba(203,170,92,.2); }
.as-axl .axl .axl-hero .axl-crumbs, .as-axl .axl .axl-hero .axl-crumbs span { color: rgba(255,255,255,.62); }
.as-axl .axl .axl-hero .axl-crumbs a { color: #f4d780; }
.as-axl .axl .axl-hero > .axl-container > p, .as-axl .axl .axl-hero .axl-lead, .as-axl .axl .axl-hero .axl-hero-grid > :first-child > p { color: rgba(255,255,255,.84); }
.as-axl .axl .axl-hero .axl-hero-grid > :first-child > p a { color: #f4d780; }
.as-axl .axl .axl-hero .axl-hero-cta .axl-btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff !important; }
.as-axl .axl .axl-hero .axl-hero-cta .axl-btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #f4d780; color: #fff !important; }
.as-axl .axl .axl-hero .axl-hero-cta .axl-btn-red, .as-axl .axl .axl-hero .axl-hero-cta .axl-btn-gold { background: linear-gradient(135deg, #cbaa5c, #f4d780); box-shadow: none; color: #1d1405 !important; }
.as-axl .axl .axl-hero .axl-hero-grid > :first-child, .as-axl .axl .axl-hero .axl-hero-grid > :first-child span:not(.axl-eyebrow):not(.axl-dot), .as-axl .axl .axl-hero .axl-hero-grid > :first-child strong, .as-axl .axl .axl-hero .axl-meta, .as-axl .axl .axl-hero .axl-meta * { color: rgba(255,255,255,.72); }
.as-axl .axl .axl-stat, .as-axl .axl .axl-card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.as-axl .axl .axl-stat:hover { transform: translateY(-3px); border-color: rgba(167,40,61,.26); box-shadow: 0 18px 36px -20px rgba(0,0,0,.2); }
.as-axl .axl .axl-stat b { font-variant-numeric: tabular-nums; }

/* ---------- campaign pages: type and controls only ---------- */
.as-campaign, .as-campaign p, .as-campaign li, .as-campaign h1, .as-campaign h2, .as-campaign h3, .as-campaign h4, .as-campaign h5, .as-campaign a, .as-campaign span, .as-campaign div, .as-campaign td, .as-campaign th, .as-campaign input, .as-campaign button, .as-campaign select { font-family: 'Poppins', -apple-system, 'Segoe UI', system-ui, sans-serif; }
.as-campaign i, .as-campaign .fa, .as-campaign [class*="fa-"], .as-campaign .glyphicon { font-family: FontAwesome; }
.as-campaign .glyphicon { font-family: 'Glyphicons Halflings'; }
.as-campaign { -webkit-font-smoothing: antialiased; }
.as-campaign .section2 h2, .as-campaign .section3 h2, .as-campaign .section4 h2, .as-campaign .section5 h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-transform: none; }
.as-campaign .section2 img, .as-campaign .section3 img, .as-campaign .section4 img { border-radius: 12px; }
.as-campaign input.form-control { border-radius: 8px; font-size: 16px; }
.as-campaign .button5, .as-campaign .button5_m, .as-campaign button.btn-primary { border: 0 !important; border-radius: 10px !important; background: linear-gradient(135deg, #cbaa5c, #f4d780) !important; color: #1d1405 !important; font-weight: 600; }

/* reveals only on cards; long text never waits */
@media (prefers-reduced-motion: no-preference) {
  .as-js .as-r { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .as-js .as-r.is-in { opacity: 1; transform: none; }
}

@media (max-width: 991px) {
  .as-old .course-info { margin-top: 24px; }
}
@media (max-width: 720px) {
  .as-hero > .as-shade { background: linear-gradient(180deg, rgba(10,10,10,.6) 0%, rgba(10,10,10,.88) 40%, #0a0a0a 92%); }
  .as-plane { left: 80%; top: 22%; }
  .as-old .course-tab { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .as-old .course-tab::-webkit-scrollbar { display: none; }
  .as-old .course-tab > li { flex: none; }
  .as-old .course-tab > li > a { white-space: nowrap; }
}

/* the article beside each program */
.as-article { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; box-sizing: border-box; width: min(100% - 32px, 1140px); margin: clamp(28px, 4vw, 56px) auto; padding: clamp(20px, 2.6vw, 32px); border: 1px solid #ececef; border-left: 4px solid #cbaa5c; border-radius: 16px; background: #fff; font-family: 'Poppins', -apple-system, 'Segoe UI', system-ui, sans-serif; }
.as-article > div { flex: 1 1 320px; min-width: 0; }
.as-article span { color: #a7283d; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.as-article h2 { margin: 6px 0; color: #161616; font-size: clamp(20px, 2vw, 25px); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
.as-article p { margin: 0; color: #3a3131; font-size: 15px; line-height: 1.55; }
.as-article a { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 24px; border-radius: 12px; background: linear-gradient(135deg, #cbaa5c, #f4d780); color: #1d1405; font-size: 15px; font-weight: 600; text-decoration: none; }
.as-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* header text on the dark band, whatever element a page used; cards and forms inside it keep their own colours */
.as-old .section__home .home__content, .as-old .section__home .home__content :is(h1, h2, h3, p, div, span, li):not(.breadcrumb, .breadcrumb *) { color: #fff; }
.as-axl .axl .axl-hero .axl-container :is(p, h2, h3, li, strong):not(.axl-card *, .axp *, .axw-finder *, [class*="card"] *, form *) { color: rgba(255,255,255,.86); }
.as-axl .axl .axl-hero .axl-container a:not(.axl-btn):not(.axl-card):not(.axl-card *):not(.axp *):not(.axw-finder *):not(form *) { color: #f4d780; }
.as-axl .axl .axl-hero .axl-btn-ghost:not(.axl-card *, .axp *, .axw-finder *, form *) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff !important; }
.as-axl .axl .axl-hero .axl-btn-red:not(.axl-card *, .axp *, .axw-finder *, form *), .as-axl .axl .axl-hero .axl-btn-gold:not(.axl-card *, .axp *, .axw-finder *, form *) { background: linear-gradient(135deg, #cbaa5c, #f4d780); box-shadow: none; color: #1d1405 !important; }
.as-axl .axl .axl-hero :is(.axl-def, .axl-callout) :is(p, strong, h3, h4, li, span:not(.axl-def-tag)) { color: #3a3131 !important; }
/* boxes inside the dark header that sit on their own light background keep dark text */
.as-axl .axl .axl-hero :is(.axl-def, .axl-callout, .axl-stat, .axl-stats, .axl-card, [class*="-box"], [class*="-panel"]) :is(p, strong, b, h2, h3, h4, li, span:not(.axl-def-tag)) { color: #3a3131 !important; }
.as-axl .axl .axl-hero .axl-stat b { color: #a7283d !important; }
.as-axl .axl .axl-hero .axl-def-tag { color: #a7283d !important; }
