/* Shared visual tokens. Native commerce/authentication behavior remains owned by WooCommerce/Digits. */
body.agv-theme,body.ag-login-page{--agv-ink:#162858;--agv-text:#34476b;--agv-muted:#536584;--agv-blue:#1764e8;--agv-bright:#2388ff;--agv-edge:#1049b0;--agv-cloud:#f4f9ff;--agv-line:#cae2fe;--agv-green:#58cc02;--agv-sun:#c3a36b;--agv-purple:#365385;--age-ink:#162858;--age-indigo:#1764e8;--age-muted:#536584;--age-line:#cae2fe;color:var(--agv-ink)}
body.agv-theme{background:#fff}
body.agv-theme ::selection,body.ag-login-page ::selection{background:#cce5ff;color:#162858}
body.agv-theme.age-site :is(h1,h2,h3){color:var(--agv-ink)}
body.agv-theme :is(.age-text-link,.age-prose a,.age-breadcrumb a,.aad-direct a){color:var(--agv-blue)!important;border-color:#a1c6f5}
body.agv-theme :is(.age-hero-copy>p:not(.age-intro),.age-section-heading p,.age-page-heading>p,.age-article-row p,.age-faq>div>p,.age-site details p,.agr-hero p,.aad-hero p,.aad-home p){color:var(--agv-muted)}
body.agv-theme :is(a,button,input,select,summary):focus-visible{outline:3px solid #1764e8;outline-offset:4px}

/* Header and actions: reference blue, tactile lower edge, consistently legible labels. */
body.agv-theme .age-header{background:#fff;border-bottom:2px solid #e2edfa}
body.agv-theme .age-navigation{min-height:94px}
body.agv-theme .age-brand{color:var(--agv-ink)!important}
body.agv-theme .age-brand small{color:var(--agv-muted)}
body.agv-theme .age-navigation nav{color:#34476b}
body.agv-theme .age-navigation nav a:hover,body.agv-theme .agn-menu[open]>summary{color:var(--agv-blue)}
body.agv-theme .age-cart{color:var(--agv-blue);background:#eff6ff;border-radius:11px;width:42px}
body.agv-theme .age-button,body.agv-theme .age-home .age-button,body.agv-theme.age-home .age-button{background:var(--agv-blue);border:2px solid var(--agv-blue);border-radius:14px;color:#fff!important;box-shadow:0 4px 0 var(--agv-edge);font-weight:800;transition:background-color .15s,transform .15s,box-shadow .15s}
body.agv-theme .age-button:hover{background:#1058d5;border-color:#1058d5}
body.agv-theme .age-button:active{transform:translateY(3px);box-shadow:0 1px 0 var(--agv-edge)}
body.agv-theme .age-small{min-height:42px;border-radius:12px}
body.agv-theme .agn-menu>.agn-course-list{border:2px solid var(--agv-line);border-radius:16px;box-shadow:0 5px 0 #dceafd,0 12px 24px #1628580b}
body.agv-theme .age-navigation .agn-course-list>a{color:var(--agv-ink);border-radius:9px}
body.agv-theme .age-navigation .agn-course-list>a:hover,body.agv-theme .age-navigation .agn-course-list>a:focus-visible{background:#edf6ff;color:var(--agv-blue)}

/* The hero is the main visual moment; all artwork stays lightweight and local. */
.agv-hero-band{background:#eef7ff;border-bottom:2px solid #dcecff}
body.agv-theme.age-home .age-hero{padding-block:48px 52px;gap:45px;grid-template-columns:1.15fr 1fr}
body.agv-theme.age-home .age-hero h1{font-size:clamp(35px,3.5vw,46px);line-height:1.65;letter-spacing:-1px;color:var(--agv-ink);max-width:620px;text-wrap:balance}
body.agv-theme.age-home .age-intro{color:#1551ad;background:#fff;border:1px solid #c9e2ff;border-radius:20px;padding:4px 13px;font-size:12px}
body.agv-theme.age-home .age-intro:before{background:#c3a36b;box-shadow:none;width:8px;height:8px}
body.agv-theme.age-home .age-hero .age-actions>.age-text-link{border:2px solid #b9d8fc;background:#fff;border-radius:14px;padding:11px 18px;min-height:52px;box-shadow:0 3px 0 #d4e6fb;display:inline-flex;align-items:center;color:#1551ad!important}
body.agv-theme.age-home .age-hero-note{color:#536584}
body.agv-theme.age-home .age-hero-note span{color:#1764e8}
body.agv-theme.age-home .age-hello{border:2px solid #cae2fe;border-radius:22px 22px 5px 22px;box-shadow:0 5px 0 #cae2fe;transform:rotate(-4deg)}
body.agv-theme.age-home .age-hello strong{color:#1764e8}
body.agv-theme.age-home .age-hello span{color:#536584}
body.agv-theme.age-home .age-art-note{border:2px solid #cae2fe;border-right:5px solid #c3a36b;border-radius:12px;box-shadow:0 4px 0 #dbeafd}
body.agv-theme.age-home .age-art-note span{color:#162858}
body.agv-theme.age-home #courses{padding-top:54px}

/* Level accents identify content; purchase actions always use the same blue. */
body.agv-theme .age-course{--course-accent:#2388ff;--course-soft:#eaf4ff;--course-ink:#1654ad;background:#fff;color:#162858;border:2px solid #d8e5f5;border-top:6px solid var(--course-accent);border-radius:22px;box-shadow:0 5px 0 #e3edf9;overflow:hidden}
body.agv-theme .age-course-2361{--course-accent:#58cc02;--course-soft:#eafaD8;--course-ink:#2c641a}
body.agv-theme .age-course-177{--course-accent:#2388ff;--course-soft:#eaf4ff;--course-ink:#1654ad}
body.agv-theme .age-course-167{--course-accent:#8b6ce6;--course-soft:#f0eaff;--course-ink:#5c369f}
body.agv-theme .age-course :is(p,small,.age-course-top){color:#536584}
body.agv-theme .age-course h3{color:#162858}
body.agv-theme .age-course .age-level{background:var(--course-soft);color:var(--course-ink);border:1px solid color-mix(in srgb,var(--course-accent) 30%,white);border-radius:12px;padding:5px 13px}
body.agv-theme .age-course .age-course-bottom{border-color:#e2ebf7}
body.agv-theme .age-course-bottom strong{color:#162858}
body.agv-theme .age-path-band{background:#f4f9ff;border-block:2px solid #e0edfc}
body.agv-theme .age-path li{border-color:#c5ddfa}
body.agv-theme .age-path li:before{background:#2388ff;box-shadow:0 0 0 4px #f4f9ff}
body.agv-theme .age-path b{background:#eaf1fc;color:#365385;border:2px solid #c5d6ef;box-shadow:0 3px 0 #c5d6ef;border-radius:14px;align-self:start;padding:9px 15px}
body.agv-theme .age-path li:nth-child(2) b{background:#e4f1ff;color:#1551ad;border-color:#b8d9ff;box-shadow:0 3px 0 #b8d9ff}
body.agv-theme .age-path li:nth-child(3) b{background:#edf2fa;color:#365385;border-color:#cbd9ed;box-shadow:0 3px 0 #cbd9ed}
body.agv-theme .age-path li:nth-child(4) b{background:#e4ebf7;color:#162858;border-color:#b7c9e6;box-shadow:0 3px 0 #b7c9e6}
body.agv-theme .age-path li:nth-child(5) b{background:#f7f2e8;color:#66532f;border-color:#d8c6a4;box-shadow:0 3px 0 #d8c6a4}
body.agv-theme .age-path-note{color:#536584}
body.agv-theme .age-study-steps{background:#f4f9ff;border:2px solid #cae2fe;border-radius:22px;box-shadow:0 5px 0 #e0edfc}
body.agv-theme.age-home .age-study-steps>div:before{background:#1764e8;color:#fff;border-radius:12px}
body.agv-theme.age-home .age-study-steps>div:nth-child(2):before{background:#162858;color:#ffffff}
body.agv-theme.age-home .age-study-steps>div:nth-child(3):before{background:#c3a36b;color:#162858}
body.agv-theme .age-topic{background:#eaf4ff;color:#1551ad;border-radius:7px}
body.agv-theme.age-home .age-article-art{border:2px solid #dce8f7;border-radius:18px}
body.agv-theme .age-read{color:#1764e8;border-color:#bfd9fa}
body.agv-theme .age-faq{border-color:#dce8f7}
body.agv-theme.age-home .age-faq>div:first-child:before{background:#eaf4ff;color:#1764e8;border:2px solid #cae2fe;border-radius:17px;box-shadow:0 4px 0 #dceafd}
body.agv-theme .age-faq details{padding:18px 20px;margin-bottom:12px;background:#fff;border:2px solid #e0eafa;border-radius:14px}
body.agv-theme .age-faq details[open]{background:#f4f9ff;border-color:#bcd8fa}
body.agv-theme :is(.age-callout,.age-reading-aside){background:#f4f9ff;border:2px solid #d4e6fd;border-radius:18px}
body.agv-theme .ag-german{background:#eef7ff;color:#162858;border-color:#2388ff;border-radius:10px}
body.agv-theme .ag-table th{background:#eaf4ff;color:#162858}

/* Admissions and downloadable books share the same palette. */
body.agv-theme :is(.aad-kicker,.agr-kicker){color:#1551ad}
body.agv-theme .aad-home{background:#eaf4ff;border:2px solid #c5defc;border-radius:24px;box-shadow:0 5px 0 #dfedff}
body.agv-theme .aad-home h2{color:#162858}
body.agv-theme .aad-form-panel{background:#f4f9ff;border:2px solid #cae2fe;border-radius:22px;box-shadow:0 5px 0 #e1edfc}
body.agv-theme .aad-field :is(input,select){border:2px solid #cbd9ed;border-radius:12px;color:#162858;background:#fff}
body.agv-theme .aad-consent input{accent-color:#1764e8}
body.agv-theme .aad-steps li:before{background:#eaf4ff;color:#1551ad;border:1px solid #c5defc}
body.agv-theme .aad-note{background:#f7f2e8;border-color:#c3a36b;color:#66532f}
body.agv-theme .agr-empty{background:#f4f9ff;border:2px dashed #b9d6fb;border-radius:22px}
body.agv-theme .agr-empty-mark{background:#dcecff;color:#1551ad;border-radius:12px}
body.agv-theme .agr-guide li{border-color:#bdd9ff}
body.agv-theme .agr-guide li:before{color:#1764e8}
body.agv-theme .agr-card{border:2px solid #d8e5f5;border-radius:20px;box-shadow:0 5px 0 #e3edf9}
body.agv-theme :is(.agr-cover,.agr-product-cover){background:#eef7ff}
body.agv-theme .agr-product-info .price{color:#162858}
body.agv-theme .agr-delivery{background:#eaf4ff;color:#1551ad;border:1px solid #c5defc}

/* A clear end to the page, consistent across all custom and native footers. */
body.agv-theme .age-footer{background:#162858;border-top:5px solid #2388ff;color:#fff}
body.agv-theme .age-footer .age-brand,body.agv-theme .age-footer h2{color:#fff!important}
body.agv-theme .age-footer .age-brand img{background:#fff;padding:3px;border-radius:12px}
body.agv-theme .age-footer :is(.age-brand small,.age-footer-grid>div>p,.age-footer-grid>div>a:not(.age-brand),.age-copyright){color:#d5e3fa}
body.agv-theme .age-footer a:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
body.agv-theme .age-copyright{border-color:#3a507b}

/* Native course, cart and account templates: target actual theme components. */
body.agv-theme:not(.age-site){--primary-color:#1764e8;--main-color:#1764e8}
body.agv-theme :is(.site-header,.site-header-inner){background:#fff;border-color:#dce8f7}
body.agv-theme :is(.product-single-top-part,.product-single-main){background:#f4f9ff}
body.agv-theme :is(.product-info-box,.product-single-content,.course-item-inner){border:2px solid #dce8f7;border-radius:18px;box-shadow:0 4px 0 #e6effa;background:#fff}
body.agv-theme :is(.course-price,.product-info-box .price,.course-content-title a,.single-product-titles h1){color:#162858}
body.agv-theme :is(.course-section,.course-lesson){border-color:#dce8f7}
body.agv-theme .course-panel-heading{background:#f4f9ff;border-color:#cae2fe}
body.agv-theme :is(.single_add_to_cart_button,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.woocommerce a.checkout-button,.login-button.btn-filled){background:#1764e8!important;border:2px solid #1764e8!important;border-radius:13px!important;box-shadow:0 4px 0 #1049b0!important;color:#fff!important}
body.agv-theme :is(.single_add_to_cart_button,.woocommerce a.button.alt,.woocommerce button.button.alt,.login-button.btn-filled):hover{background:#1058d5!important;border-color:#1058d5!important}
body.agv-theme .woocommerce :is(input.input-text,textarea,select){border-color:#cbd9ed;border-radius:10px;background:#fff;color:#162858}
body.agv-theme :is(.woocommerce-info,.woocommerce-message){border-top-color:#2388ff;background:#eff7ff;color:#34476b}
body.agv-theme .agn-native-parent>.sub-menu{border:2px solid #cae2fe;border-radius:15px;box-shadow:0 5px 0 #deecfd}
body.agv-theme .top-bar{background:#eef7ff!important;border-bottom:1px solid #dce8f7}
body.agv-theme .top-bar :is(a,i,span){color:#34476b!important}
body.agv-theme .page-title{background:#eef7ff!important;border-bottom:2px solid #dce8f7}
body.agv-theme .page-title :is(h1,a){color:#162858!important}
body.agv-theme .site-header :is(.menu-item>a,.cart-icon-link){color:#162858}
body.agv-theme.woocommerce-account{background:#f4f9ff}
body.agv-theme.woocommerce-account .woocommerce-MyAccount-navigation .is-active>a{background:#1764e8!important;color:#fff!important;border-radius:12px;box-shadow:0 3px 0 #1049b0}
body.agv-theme.woocommerce-account .sc_dashboard_box{border:1px solid #d4e3f7;border-radius:15px;box-shadow:0 3px 0 #e4eefb}
body.agv-theme.woocommerce-account .sc_dashboard_box.bg-success-gradient{background:#eaf1fc!important}
body.agv-theme.woocommerce-account .sc_dashboard_box.bg-primary-gradient{background:#eaf4ff!important}
body.agv-theme.woocommerce-account .sc_dashboard_box.bg-warning-gradient{background:#f7f2e8!important}
body.agv-theme.woocommerce-account .sc_dashboard_box.bg-focus-gradient{background:#e4ebf7!important}
body.agv-theme.woocommerce-account .sc_dashboard_box .text-success{color:#365385!important}
body.agv-theme.woocommerce-account .sc_dashboard_box .text-primary{color:#1551ad!important}
body.agv-theme.woocommerce-account .sc_dashboard_box .text-warning{color:#66532f!important}

/* Login: keep verified phone/OTP dimensions and change only the visual language. */
body.ag-login-page{--ag-brand:#1764e8;--ag-ink:#162858;--ag-muted:#536584;--ag-line:#cbd9ed;background:#f4f9ff}
body.ag-login-page .digits-form_page{--dprimary:#1764e8;--dtitle:#162858;--dfield_bg:#f6faff;--dac:#e2efff}
body.ag-login-page .ag-shell{border:2px solid #d6e7fc;border-radius:26px;box-shadow:0 7px 0 #dceafd,0 18px 45px #16285808}
body.ag-login-page .ag-welcome{background:#e8f4ff;color:#162858;border-right:2px solid #cae2fe}
body.ag-login-page .ag-greeting{color:#1764e8;text-shadow:0 4px 0 #cae2fe}
body.ag-login-page .ag-welcome :is(.ag-german-line,.ag-welcome-fa p,.ag-welcome-foot span){color:#405d86}
body.ag-login-page .ag-welcome-foot span{border-color:#b9d7fa}
body.ag-login-page .ag-brand{color:#162858}
body.ag-login-page .digits-form_border,body.ag-login-page .digits-form_input input:not(.countrycode):not([type=checkbox]):not([type=radio]){border-color:#cbd9ed;background:#f6faff;border-radius:12px}
body.ag-login-page .digits-form_border:focus-within,body.ag-login-page .digits-form_input input:focus{border-color:#2388ff;box-shadow:0 0 0 3px #2388ff1a}
body.ag-login-page .digits-form_button,body.ag-login-page .digits-form_button[type=submit]{background:#1764e8;border:2px solid #1764e8;border-radius:13px;box-shadow:0 4px 0 #1049b0;color:#fff}
body.ag-login-page .digits-form_button:hover{background:#1058d5;border-color:#1058d5}
body.ag-login-page .ag-other-options button{border-color:#cae2fe;border-radius:11px;background:#f6faff;color:#1551ad}
body.ag-login-page .ag-other-options button:hover{background:#eaf4ff;border-color:#8fbefa}
body.ag-login-page :is(button,a,[role=button],input):focus-visible{outline-color:#1764e8!important}

@media(max-width:1000px){body.agv-theme.age-home .age-hero{gap:28px}body.agv-theme.age-home .age-hero h1{font-size:38px}}
@media(max-width:760px){body.agv-theme .age-navigation{min-height:0}body.agv-theme.age-home .age-hero{grid-template-columns:1fr;padding-block:32px 35px;gap:25px}body.agv-theme.age-home .age-hero h1{font-size:33px;line-height:1.7}body.agv-theme.age-home .age-hero .age-actions{align-items:stretch;gap:14px}body.agv-theme.age-home .age-hero .age-actions>.age-text-link{font-size:12px;padding:10px 13px}body.agv-theme .age-course{border-radius:19px}body.agv-theme .age-faq details{padding:15px}body.agv-theme.age-home #courses{padding-top:38px}body.agv-theme .age-cart{width:35px}body.agv-theme .aad-home{border-radius:20px}body.agv-theme .age-footer{border-top-width:4px}}
@media(max-width:360px){body.agv-theme.age-home .age-hero h1{font-size:29px}body.agv-theme.age-home .age-actions{flex-direction:column}body.agv-theme.age-home .age-hero .age-actions>.age-text-link{justify-content:center}}
@media(prefers-reduced-motion:reduce){body.agv-theme .age-button{transition:none}body.agv-theme .age-button:active{transform:none}}

@media(max-width:760px){body.agv-theme.age-home .age-hero h1 br{display:none}}

/* Complete the approved palette on native and secondary public templates. */
body.agv-theme .studiare-cart-number{background:#1764e8!important;color:#fff!important}
body.agv-theme .site-header .current-menu-item>a{background:#1764e8!important;color:#fff!important}
body.agv-theme .badge-item.free{background:#eaf4ff;color:#1551ad;border:1px solid #c5defc}
body.agv-theme .course-loop-element__course-type{background:#f7f2e8!important;color:#66532f!important;border-color:#d8c6a4}
body.agv-theme .course-panel-heading .fal.fa-chevron-down{color:#1764e8}
body.agv-theme .woocommerce :is(a.button,button.button,input.button){background:#1764e8;color:#fff;border-color:#1764e8;border-radius:12px}
body.agv-theme .woocommerce :is(a.button,button.button,input.button):hover{background:#1058d5;color:#fff}
body.agv-theme .woocommerce :is(.shop_table,.woocommerce-MyAccount-content){border-color:#cbd9ed;color:#34476b}
body.agv-theme .woocommerce .shop_table th{background:#eef5ff;color:#162858}
body.agv-theme .woocommerce-MyAccount-content a:not(.button){color:#1764e8}
body.agv-theme .woocommerce input:is([type=checkbox],[type=radio]){accent-color:#1764e8}
body.agv-theme .aad-steps li:nth-child(2):before{background:#e4ebf7;color:#162858;border-color:#c5d6ef}
body.agv-theme .aad-steps li:nth-child(3):before{background:#f7f2e8;color:#66532f;border-color:#d8c6a4}
body.agv-theme .digits-form_page{--dprimary:#1764e8;--dtitle:#162858;--dfield_bg:#f6faff;--dac:#e2efff}
body.agv-theme .digits-form_button{background:#1764e8;color:#fff}
body.agv-theme .digits-form_tab-item.digits-tab_active{color:#162858;border-color:#1764e8}
body.agv-theme .agr-pagination>.current{background:#1764e8;border-color:#1764e8;color:#fff}

body.agv-theme .sc-course-lesson-toggle :is(i,.fal){color:#1764e8!important}
body.agv-theme .active_tab_by_suncode .sc-course-lesson-toggle{color:#1764e8!important;border-color:#cbd9ed}

/* Keep the primary navigation available while scrolling on both templates. */
body.agv-theme{--agv-header-top:0px;--agv-menu-clearance:112px}
body.agv-theme.admin-bar{--agv-header-top:32px}
body.agv-theme header.age-header,body.agv-theme header.site-header{position:sticky;top:var(--agv-header-top);z-index:110;box-shadow:0 3px 14px #1628580a}
body.agv-theme :is(#courses,#study-admission,#request-call,#academy-free-lesson){scroll-margin-top:calc(var(--agv-menu-clearance) + var(--agv-header-top))}
@media(max-width:782px){body.agv-theme.admin-bar{--agv-header-top:46px}}
@media(max-width:760px){body.agv-theme.age-site{--agv-menu-clearance:220px}}
@media(max-width:600px){body.agv-theme.admin-bar{--agv-header-top:0px}}
@media print{body.agv-theme header.age-header,body.agv-theme header.site-header{position:static;box-shadow:none}}

/* Reserve the lesson video ratio before metadata and allow expanded lessons to grow. */
body.agv-theme .sc_le_vi_au video.studi_lesson_video,body.agv-theme video.agm-inline-player{display:block;width:100%;max-width:100%;height:auto!important;aspect-ratio:auto 16/9;object-fit:contain;background:#101828}
body.agv-theme .course-lesson.sc-open>.panel-content{max-height:none!important;height:auto!important}
body.agv-theme video.studi_lesson_video:fullscreen,body.agv-theme video.agm-inline-player:fullscreen{width:100%!important;height:100%!important;aspect-ratio:auto;object-fit:contain}

/* Readable native navigation states and white default account icon. */
body.agv-theme .site-header .studiare-navigation ul.menu li:is(:hover,:focus-within,.current-menu-item,.current-menu-ancestor,.current-menu-parent)>a,
body.agv-theme .site-header .studi_rl_sub li:is(:hover,:focus-within,.current-menu-item)>a,
body.agv-theme .mobile-menu li>a:is(:hover,:focus-visible),
body.agv-theme .mobile-menu li:is(.current-menu-item,.current-menu-ancestor,.current-menu-parent)>a{
 background-color:#1764e8!important;color:#fff!important;
}
body.agv-theme .site-header :is(.studiare-navigation,.studi_rl_sub) a :is(.scMhold,.text-menu-icon,i,.caret-arrow),
body.agv-theme .mobile-menu a :is(.scMhold,.text-menu-icon,i,.caret-arrow){color:inherit}
body.agv-theme .site-header :is(.studiare-navigation,.studi_rl_sub) a:focus-visible,
body.agv-theme .mobile-menu a:focus-visible{outline:2px solid #162858;outline-offset:3px}
body.agv-theme .site-header .login-button.btn-filled :is(span,i,svg){color:#fff!important}
body.agv-theme .site-header .login-button.btn-filled svg{fill:currentColor}
body.agv-theme .site-header .login-button.btn-filled img.avatar[src*="/default-avatar.svg"]{filter:brightness(0) invert(1)}


/* Borderless course cards across catalogs, sliders and related-course lists. */
body.agv-theme :is(.course-item-inner,.age-course,.aeb-course-card){
 border:0!important;
 box-shadow:none!important;
}


/* Standard course cover: 8:5, full-bleed. Resource/book cards keep their own ratio. */
body.agv-theme :is(.aeb-native-courses,.aeb-commerce-grid:not(.aeb-book-grid)) .course-thumbnail-holder .image-item{
 display:block;width:100%;aspect-ratio:8/5;overflow:hidden;
}
body.agv-theme :is(.aeb-native-courses,.aeb-commerce-grid:not(.aeb-book-grid)) .course-thumbnail-holder .image-item img{
 display:block;width:100%!important;height:100%!important;
 aspect-ratio:8/5!important;object-fit:cover!important;object-position:center!important;
}
