/* ==========================================================================
   Elementor pages (About, Contact, sales pages...).

   Shared rules below apply to every Elementor page: v7 fonts, the 1200px
   width and small fixes for the custom classes used in those pages.

   Pages still in the original dark Elementor design also get the "dark"
   rules: a charcoal page and the old violet accents recoloured to orange.
   A page restyled to v7 inside Elementor gets the CSS class  v7-light  on its
   first container (Elementor > Advanced > CSS Classes); the dark rules then
   skip it and the page's own Elementor colours show.
   ========================================================================== */

/* ---------- Shared ---------- */
body.ahv-el-page{
  --ahv-el-surface:var(--bone-hi);
  --ahv-el-border:var(--line);
  --ahv-el-accent:var(--orange-deep);
  --ahv-el-text2:var(--ink-2);
  --ahv-el-muted:rgba(22,17,17,.4);
}

/* Width: Elementor boxed sections use the same 1200px as the header */
body.ahv-el-page .e-con{--container-max-width:1200px}

/* v7 fonts */
.ahv-el-page .elementor{font-family:var(--font-b)}
.ahv-el-page .elementor :is(h1,h2,h3,h4,h5,h6,.elementor-heading-title){font-family:var(--font-d)!important;font-weight:400!important}
.ahv-el-page .elementor :is(.elementor-widget-text-editor,.elementor-icon-list-text,.elementor-icon-box-description,.elementor-testimonial-content,.e-n-accordion-item-title-text){font-family:var(--font-b)!important}
.ahv-el-page .elementor-button{font-family:var(--font-d)!important;font-weight:400!important}
/* Icon box titles: no browser-default top margin (the original theme reset it; Elementor has no setting for it) */
.ahv-el-page .elementor-icon-box-title{margin-block-start:0}
/* Text widgets: no browser-default top margin; no gap after the last paragraph */
.ahv-el-page .elementor-widget-text-editor :is(p,h1,h2,h3,h4,h5,h6){margin-block-start:0}
.ahv-el-page .elementor-widget-text-editor :is(p,h1,h2,h3,h4,h5,h6):last-child{margin-block-end:0}

/* Final call-to-action card on v7 pages (Elementor container class final-cta):
   same width, rings and button as the homepage's .cta. Colours, corners and
   spacing are set on the container in Elementor. */
body.ahv-el-page:has(.v7-light) .final-cta{position:relative;width:min(100%,var(--wrap));max-width:var(--wrap);margin-inline:auto;overflow:hidden;isolation:isolate}
body.ahv-el-page:has(.v7-light) .final-cta::before,body.ahv-el-page:has(.v7-light) .final-cta::after{content:"";position:absolute;z-index:-1;border-radius:50%;border:1px solid rgba(22,17,17,.12);pointer-events:none}
body.ahv-el-page:has(.v7-light) .final-cta::before{width:540px;height:540px;left:-200px;bottom:-300px;box-shadow:0 0 0 60px rgba(22,17,17,.035)}
body.ahv-el-page:has(.v7-light) .final-cta::after{width:380px;height:380px;right:-140px;top:-160px;box-shadow:0 0 0 50px rgba(22,17,17,.06)}
body.ahv-el-page:has(.v7-light) .final-cta .elementor-button{display:inline-flex;align-items:center;min-height:56px;padding:0 10px 0 28px;border-radius:999px;font-size:17.5px;box-shadow:0 16px 30px -16px rgba(22,17,17,.6)}
body.ahv-el-page:has(.v7-light) .final-cta .elementor-button-content-wrapper{align-items:center;gap:12px}
body.ahv-el-page:has(.v7-light) .final-cta .elementor-button-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--orange);color:var(--on-orange);transition:rotate .25s}
body.ahv-el-page:has(.v7-light) .final-cta .elementor-button-icon svg{width:17px;height:17px;fill:currentColor}
body.ahv-el-page:has(.v7-light) .final-cta .elementor-button:hover{translate:0 -2px}
body.ahv-el-page:has(.v7-light) .final-cta .elementor-button:hover .elementor-button-icon{rotate:-45deg}

/* Main orange button on v7 pages (button widget class v7-btn, e.g. About's hero):
   the homepage .btn-main - 56px pill, ink arrow circle that turns to the
   top-right on hover, 2px lift. Colours, padding (0 10 0 28), 17.5px and the
   icon gap (12) are set on the button in Elementor. */
body.ahv-el-page .v7-btn .elementor-button{display:inline-flex;align-items:center;min-height:56px;box-shadow:0 16px 30px -18px rgba(22,17,17,.55)}
body.ahv-el-page .v7-btn .elementor-button-content-wrapper{align-items:center}
body.ahv-el-page .v7-btn .elementor-button-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--charcoal);color:var(--bone-hi);transition:rotate .25s}
body.ahv-el-page .v7-btn .elementor-button-icon svg{width:17px;height:17px;fill:currentColor}
body.ahv-el-page .v7-btn .elementor-button:hover{translate:0 -2px}
body.ahv-el-page .v7-btn .elementor-button:hover .elementor-button-icon{rotate:-45deg}
/* Mobile: full-width buttons (Elementor align_mobile justify) put the text left, the circle right */
@media (max-width:767px){body.ahv-el-page:has(.v7-light) :is(.final-cta,.v7-btn) .elementor-button-content-wrapper{flex:1;justify-content:space-between}}

/* Cards on v7 pages (Elementor container class v7-card, e.g. the playlist cards):
   the homepage course card's hover, picture zoom and button. Colours, corners
   and spacing are set on the cards in Elementor. */
body.ahv-el-page .v7-card{transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
body.ahv-el-page .v7-card:hover{transform:translateY(-5px);box-shadow:0 30px 50px -30px rgba(22,17,17,.5)}
body.ahv-el-page .v7-card .elementor-widget-image{overflow:hidden;border-radius:18px}
body.ahv-el-page .v7-card .elementor-widget-image img{display:block;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
body.ahv-el-page .v7-card:hover .elementor-widget-image img{transform:scale(1.05)}
body.ahv-el-page .v7-card .elementor-button{display:inline-flex;align-items:center;min-height:46px;transition:background-color .2s}
body.ahv-el-page .v7-card:hover .elementor-button{background-color:#000}
body.ahv-el-page .v7-card .elementor-button-content-wrapper{align-items:center}
body.ahv-el-page .v7-card .elementor-button-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--bone-hi);color:var(--charcoal);rotate:-45deg;transition:rotate .3s}
body.ahv-el-page .v7-card .elementor-button-icon svg{width:15px;height:15px;fill:currentColor}
body.ahv-el-page .v7-card:hover .elementor-button-icon{rotate:0deg}
@media (max-width:767px){body.ahv-el-page .v7-card .elementor-button-content-wrapper{flex:1;justify-content:space-between}}

/* Video card on v7 pages (video widget class v7-video, e.g. the WordPress Customization hero):
   the bone frame, padding and 28px corners are set on the widget in Elementor; this rounds the
   video and its cover image inside it, which Elementor has no setting for. */
body.ahv-el-page .v7-video .elementor-wrapper{border-radius:18px;overflow:hidden}

/* Custom classes used in the Elementor pages (from the original theme) */
.sub-title-glow .elementor-widget-container{display:inline-block!important}
.main-faq .e-n-accordion-item{background:var(--ahv-el-surface);border:1px solid var(--ahv-el-border);border-radius:16px;padding:20px 25px}
/* The card padding above sits on <details>, so taps on the 20px band around the question did nothing
   (only the question text opened it). The question row now reaches the card edges: same look, whole card tappable. */
body .main-faq .e-n-accordion .e-n-accordion-item > .e-n-accordion-item-title,
body .main-faq .e-n-accordion .e-n-accordion-item[open] > .e-n-accordion-item-title{margin:-20px -25px;padding:20px 25px;border-radius:16px}
.ah-course-btn svg{transform:translateX(0) rotate(-45deg);transition:transform .5s ease}
.ah-course-btn:hover svg{transform:translateX(8px) rotate(0deg)}
.ah-course-info-list ul{display:flex;gap:20px}
.ah-course-info-list span.elementor-icon-list-text{margin-top:-5px}
.ah-course-info-list .elementor-icon-list-item{border-left:1px solid var(--ahv-el-muted);padding-left:20px}
.ah-course-info-list .elementor-icon-list-item:first-child{border-left:0;padding-left:0}
.ah-course-info-list .elementor-icon-list-item b{color:var(--ahv-el-text2);font-weight:400;font-family:var(--font-d)}
.ah-hero-highlighted-title .elementor-widget-container{display:inline-block}
#channelDetail{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:15px}
#channelDetail .cards,.ah-about-info-list ul li{background-color:var(--ahv-el-surface);padding:20px;border:1px solid var(--ahv-el-border);border-radius:25px}
#channelDetail .cards i{color:var(--ahv-el-accent);font-size:35px;margin-bottom:10px}
#channelDetail .cards h4{font-size:35px;line-height:1em;margin:0 0 6px}
#channelDetail .cards .name{font-size:15px}
.ah-about-info-list ul{display:block}
.ah-about-info-list ul li.elementor-icon-list-item{display:inline-flex;padding:10px 20px;flex-wrap:wrap;margin-right:15px;margin-bottom:15px}
.ah-quote-about,.ah-timeline-card svg{background:rgba(242,90,29,.15)}
.ah-timeline-card svg{width:60px;height:60px;padding:15px;border-radius:10px}
.ah-timeline-card .elementor-icon-box-description{margin-top:-5px}
@media screen and (max-width:768px){
  .ah-course-info-list ul{display:block;gap:0}
  .ah-course-info-list .elementor-icon-list-item{border-left:0;padding-left:0;margin-bottom:10px}
  #channelDetail{grid-template-columns:1fr 1fr}
  .ah-about-info-list ul li.elementor-icon-list-item{padding:5px 10px;margin-right:5px;margin-bottom:5px}
}

/* ---------- Dark: pages not yet restyled to v7 ---------- */
body.ahv-el-page:not(:has(.v7-light)){
  background:var(--grain-dark),var(--charcoal);color:var(--bone);
  --ahv-el-surface:rgba(237,230,216,.05);
  --ahv-el-border:rgba(237,230,216,.12);
  --ahv-el-accent:#FF9A66;
  --ahv-el-text2:#CFC7B8;
  --ahv-el-muted:#A39B8E;
  /* Names the original theme defined, in case page content refers to them */
  --violet:#F25A1D;--violet-l:#FF9A66;--violet-d:#B23C0A;--magenta:#FF8A50;--magenta-d:#E04E12;--pink:#FFB48A;
  --text:#EDE6D8;--text-2:#CFC7B8;--muted:#A39B8E;--surface:rgba(237,230,216,.05);--surface-2:rgba(237,230,216,.08);
  --border:rgba(237,230,216,.12);--border-2:rgba(237,230,216,.2);
  --grad:linear-gradient(135deg,#E04E12,#F25A1D 60%,#FF9A66);--grad-soft:linear-gradient(135deg,#F25A1D,#FF8A50);
  --gtext:linear-gradient(100deg,#FF9A66,#F25A1D 45%,#FFB48A,#FF9A66);
}
/* Elementor global colours (Site Settings) mapped to the v7 palette */
body.ahv-el-page:not(:has(.v7-light))[class*="elementor-kit-"]{
  --e-global-color-primary:#F25A1D;
  --e-global-color-secondary:#FF8A50;
  --e-global-color-text:#EDE6D8;
  --e-global-color-accent:#161111;
  --e-global-color-667d98e:#FFFFFF;
  --e-global-color-95fd01f:#CFC7B8;
  --e-global-color-f6d6b63:rgba(237,230,216,.05);
  --e-global-color-f8f90f0:rgba(237,230,216,.12);
  --e-global-color-db48b9c:#A39B8E;
  --e-global-color-33ae02a:#FF9A66;
}
body.ahv-el-page:not(:has(.v7-light)) .offer{background:#0E0B0B;border-bottom:1px solid rgba(237,230,216,.08)}
body.ahv-el-page:not(:has(.v7-light)) .cap{background:#221C1B;box-shadow:0 0 0 1px rgba(237,230,216,.12),0 12px 30px -18px rgba(0,0,0,.8)}
body.ahv-el-page:not(:has(.v7-light)) .foot{border-top:1px solid rgba(237,230,216,.1)}
body.ahv-el-page:not(:has(.v7-light)) .elementor-button{background-color:var(--orange)!important;background-image:none!important;border-color:var(--orange)!important;color:var(--on-orange)!important;border-radius:999px}
body.ahv-el-page:not(:has(.v7-light)) .elementor-button:hover,body.ahv-el-page:not(:has(.v7-light)) .elementor-button:focus{background-color:var(--orange-hover)!important;border-color:var(--orange-hover)!important;color:var(--on-orange)!important}
body.ahv-el-page:not(:has(.v7-light)) .elementor-button .elementor-button-icon svg{fill:currentColor}
body.ahv-el-page:not(:has(.v7-light)) .final-cta{background:radial-gradient(circle at 30% 25%,rgba(242,90,29,.28) 0%,rgba(242,90,29,0) 45%),radial-gradient(circle at 85% 85%,rgba(242,90,29,.18) 0%,rgba(242,90,29,0) 50%),linear-gradient(135deg,#120e0e 0%,#1b1514 45%,#2a1d19 100%)}
