/* Shared finishing styles. Text, media, spacing, colors and structure are native Elementor controls. */
body.agv-theme .aeb-layout{font-family:AcademyPersian,Tahoma,sans-serif;direction:rtl;min-width:0}
.aeb-layout :is(h1,h2,h3,p){margin-top:0}
.aeb-layout .elementor-widget-text-editor p:last-child{margin-bottom:0}
.aeb-layout a:focus-visible{outline:3px solid #1764e8;outline-offset:4px}
.aeb-layout .elementor-button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;white-space:normal}
.aeb-button .elementor-button{box-shadow:0 4px 0 #1049b0}
.aeb-layout .elementor-button:active{transform:translateY(1px)}
.aeb-hero{align-items:center}
.aeb-hero-art{text-align:center}
.aeb-hero-art>.elementor-widget-image img{max-height:480px;width:auto}
.aeb-flags{justify-content:flex-start!important;gap:14px!important;flex-wrap:wrap!important}
.aeb-flags>.aeb-flag{width:auto;min-width:0;display:flex;flex-direction:row!important;align-items:center;gap:7px!important;padding:0}
.aeb-flag .elementor-widget-image{width:30px;flex:0 0 30px}
.aeb-flag img{max-height:18px;object-fit:contain}
.aeb-flag .elementor-widget-text-editor{width:auto}
.aeb-course-card{border:1px solid #dce8f7;border-top:4px solid #1764e8;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 4px 0 #eef4fc}
.aeb-course-2361{border-top-color:#58A530}.aeb-course-167{border-top-color:#8E69EF}
.aeb-course-card>.elementor-widget-image img{aspect-ratio:600/280;width:100%;object-fit:contain}
.aeb-course-card>.elementor-widget-button{margin-top:auto}
.aeb-course-price{font-size:22px;font-weight:800;color:#162858}
.aeb-course-price .woocommerce-Price-currencySymbol{font-size:13px;font-weight:500}
.aeb-course-card .aeb-flags{gap:8px!important}.aeb-course-card .aeb-flag .elementor-widget-text-editor{display:none}
.aeb-admission{border-radius:24px;overflow:hidden;align-items:stretch;gap:0!important}
.aeb-ad-copy{justify-content:center}
#study-admission .aeb-ad-copy{padding:22px!important;gap:10px!important}
#study-admission .aeb-ad-copy .elementor-heading-title{line-height:1.45}
#study-admission .aeb-ad-copy .elementor-widget-text-editor{line-height:1.7}
#study-admission .aeb-ad-copy>.aeb-row{gap:12px!important}
.aeb-ad-image{position:relative;overflow:hidden}
.aeb-campus,.aeb-campus .elementor-widget-container{height:100%}
.aeb-campus img{height:100%;min-height:340px;max-height:400px;object-fit:cover;width:100%}
.aeb-ad-image>.aeb-flags{position:absolute;bottom:14px;right:16px;left:16px;padding:8px 12px;background:#fff;border-radius:12px;width:max-content;max-width:calc(100% - 32px)}
.aeb-level{border-top:2px solid #b9cdee;padding-top:22px}
.aeb-study-steps{border-right:2px solid #c8d9f1;padding-right:30px}
.aeb-video-card{border:1px solid #dce8f7;border-radius:18px;overflow:hidden;background:#fff;padding:0 0 22px}
.aeb-video-card>.elementor-widget:not(.elementor-widget-video){padding:0 20px}
.aeb-video-card .elementor-wrapper{min-height:200px;background:#101828}
.aeb-video-card iframe{min-height:200px}
.aeb-post-grid .blog-posts{margin-bottom:0}
.aeb-reading{max-width:860px;margin:0 auto!important;width:100%}
.aeb-reading .ag-table{overflow-x:auto}
.aeb-reading .ag-table table{min-width:560px}
.aeb-reading :is(ul,ol){padding-right:24px;line-height:2}
.aeb-reading .ag-german{direction:ltr;text-align:left;font-family:Arial,sans-serif}
.aeb-reading h2{margin-top:12px}
.aeb-prose a{text-decoration:underline;text-underline-offset:4px}
.aeb-faq .elementor-tab-title{line-height:1.8}.aeb-faq .elementor-tab-content{line-height:2}
.aeb-has-books .aeb-books-empty{display:none}
.aeb-page #request-call{scroll-margin-top:130px}
.aeb-footer a{color:#dfe8fa}.aeb-footer a:hover{color:#fff}
.aeb-footer .elementor-social-icon{color:#fff}
.aeb-hero-image img{aspect-ratio:720/600;object-fit:contain}
@media(max-width:767px){
 .aeb-row{flex-direction:column}.aeb-row>.aeb-layout{max-width:100%;width:100%}
 .aeb-flags{flex-direction:row!important}.aeb-flags>.aeb-flag{width:auto}
 .aeb-admission .aeb-ad-copy{padding:20px!important;gap:10px!important}.aeb-campus img{min-height:260px;max-height:320px}
 .aeb-levels>.aeb-level{width:100%}.aeb-study-steps{padding-right:20px}
 .aeb-section{overflow-wrap:anywhere}
}

/* Original Studiare course cards: preserve complete cover art and equal rows. */
.aeb-page #courses{scroll-margin-top:140px}
.aeb-native-courses .course-thumbnail-holder .image-item{display:block;aspect-ratio:8/5;background:#f5f5f5}
.aeb-native-courses .course-thumbnail-holder .image-item img{width:100%;height:100%;aspect-ratio:8/5;object-fit:contain}
.aeb-native-courses .course-item-inner{height:100%;display:flex;flex-direction:column;overflow:hidden}
.aeb-native-courses .course-content-holder{display:flex;flex-direction:column;flex:1}
.aeb-native-courses .course-content-main{flex:1}
.aeb-native-courses .course-content-bottom{margin-top:auto}
.aeb-native-courses .course-title{line-height:1.8}
.aeb-native-courses .course-price{font-size:20px}

/* Original Studiare cards, with consistent spacing and visible native purchase actions. */
body.agv-theme .aeb-commerce-grid .products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0;align-items:stretch}
body.agv-theme .aeb-commerce-grid .products::before,body.agv-theme .aeb-commerce-grid .products::after{display:none}
body.agv-theme .aeb-commerce-grid .products .course-item{width:auto!important;max-width:none;float:none;padding:0;margin:0;min-width:0;display:flex}
body.agv-theme .aeb-commerce-grid .products .course-item .course-item-inner{width:100%;height:100%;display:flex;flex-direction:column;padding:0;border:1px solid #dfe5ee;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 4px 16px #1628580a}
body.agv-theme .aeb-commerce-grid .course-thumbnail-holder{flex-shrink:0;display:block;margin:0}
body.agv-theme .aeb-commerce-grid .course-thumbnail-holder .image-item{display:block;width:100%;aspect-ratio:8/5;background:#f7f8fa}
body.agv-theme .aeb-commerce-grid .course-thumbnail-holder img{display:block;width:100%;height:100%;aspect-ratio:8/5!important;object-fit:contain!important;border-radius:0}
body.agv-theme .aeb-commerce-grid .course-item .course-content-holder{flex:1;display:flex;flex-direction:column;padding:16px;height:auto!important;min-height:0}
body.agv-theme .aeb-commerce-grid .course-item .course-content-holder .course-content-main{flex:1;padding:0}
body.agv-theme .aeb-commerce-grid .course-title{font-size:17px;line-height:1.65;min-height:0;margin:0 0 8px;overflow-wrap:anywhere}
body.agv-theme .aeb-commerce-grid .course-loop-element__course-type{position:static;display:inline-flex;align-items:center;max-width:100%;width:auto;height:auto;padding:2px 8px;border-radius:4px;line-height:1.7;margin:0}
body.agv-theme .aeb-commerce-grid .course-title a{color:#162858}
body.agv-theme .aeb-commerce-grid .course-rating-teacher{margin:4px 0;color:#53647e;font-size:12px}
body.agv-theme .aeb-commerce-grid .course-description{font-size:13px;line-height:1.9;margin:10px 0 0;color:#53647e;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.agv-theme .aeb-commerce-grid .course-item .course-content-bottom{margin:8px 0 0;padding:0!important;border-top:1px solid #edf0f5;min-height:32px;justify-content:flex-start}
body.agv-theme .aeb-commerce-grid .course-price{font-size:20px;line-height:1.6;color:#162858}
body.agv-theme .aeb-commerce-grid .sc-add-to-cart-four{margin-top:10px;padding:0;width:100%}
body.agv-theme .aeb-commerce-grid .sc-add-to-cart-four .button{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;padding:10px 16px;font-family:inherit;font-size:14px;line-height:1.6;font-weight:700;white-space:normal;border-radius:7px!important;box-shadow:none!important}
body.agv-theme .aeb-commerce-grid .sc-add-to-cart-four .added_to_cart{display:block;text-align:center;margin-top:10px;color:#1551ad}
body.agv-theme .aeb-commerce-grid .button:focus-visible{outline:3px solid #162858;outline-offset:3px}
body.agv-theme .aeb-book-grid .course-thumbnail-holder .image-item,body.agv-theme .aeb-book-grid .course-thumbnail-holder img{aspect-ratio:4/3!important;background:#f7f8fa}
body.agv-theme .aeb-commerce-grid .woocommerce-pagination{margin-top:28px}
@media(max-width:1024px) and (min-width:768px){body.agv-theme .aeb-commerce-grid .products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){body.agv-theme .aeb-commerce-grid .products{grid-template-columns:minmax(0,1fr);gap:20px}body.agv-theme .aeb-commerce-grid .course-item .course-content-holder{padding:16px}body.agv-theme .aeb-commerce-grid .course-title{min-height:0}}

/* Native Elementor learning pathway: decorative progression and reduced-motion fallback. */
.aeb-learning-path{overflow:hidden;scroll-margin-top:110px}
.aeb-path-header{align-self:flex-start}
.aeb-path-track{position:relative}
.aeb-path-track::after{content:"";position:absolute;z-index:0;top:30px;right:30px;left:30px;height:1px;background:#d5b77a66;pointer-events:none}
.aeb-path-step{position:relative;z-index:1;min-width:0}
.aeb-path-marker{flex:0 0 60px;width:60px!important;max-width:60px;margin:0}
.aeb-path-marker .elementor-heading-title{display:flex;align-items:center;justify-content:center;width:60px;height:60px;border:1px solid #d5b77a;background:#14264b;border-radius:50%;direction:ltr;line-height:1}
.aeb-path-step-copy{min-width:0}
.aeb-path-delivery{flex:1;min-width:0}
.aeb-path-delivery a{color:#f0d297;text-decoration:underline;text-underline-offset:4px}
.aeb-path-delivery a:hover{color:#fff}
.aeb-path-guide{flex:0 0 auto;width:auto!important}
.aeb-learning-path a:focus-visible{outline:3px solid #f0d297;outline-offset:4px}
@media(max-width:767px){
 .aeb-learning-path{background-position:left top!important;background-size:auto 470px!important;background-repeat:no-repeat!important}
 .aeb-learning-path::before{background-image:linear-gradient(180deg,#0c193280 0,#0c1932b8 250px,#0c1932 460px)!important}
 .aeb-path-track::after{top:30px;bottom:30px;right:29px;left:auto;width:1px;height:auto}
 .aeb-path-step{width:100%!important;align-items:flex-start!important}
 .aeb-path-step-copy{padding-top:3px!important}
 .aeb-path-footer{align-items:stretch!important}
 .aeb-path-guide,.aeb-path-guide .elementor-button{width:100%!important}
}
@media(prefers-reduced-motion:reduce){
 .aeb-learning-path>.elementor-motion-effects-container>.elementor-motion-effects-layer{transform:none!important;transition:none!important;will-change:auto!important}
}

/* Homepage chapter rhythm and native level tabs. */
.ahs-chapter{scroll-margin-top:115px}
.ahs-chapter-title .elementor-heading-title{position:relative;padding-bottom:18px}
.ahs-chapter-title .elementor-heading-title::after{content:"";position:absolute;right:0;bottom:0;width:58px;height:3px;background:#d5b77a;border-radius:2px}
.ahs-library-art{max-width:190px;margin-inline:auto}
.ahs-library-art img{width:100%;height:auto;max-height:160px;object-fit:contain}
.ahs-resource-tabs>.e-n-tabs>.e-n-tabs-heading,.ahs-resource-tabs>.elementor-widget-container>.e-n-tabs>.e-n-tabs-heading{justify-content:flex-start}
.ahs-resource-tabs .e-n-tab-title{min-height:48px;min-width:90px;font-family:AcademyPersian,Tahoma,sans-serif;direction:ltr}
.ahs-resource-tabs .e-n-tab-title[aria-selected=true]{box-shadow:inset 0 -3px #d5b77a}
.ahs-resource-tabs .e-n-tab-title:focus-visible{outline:3px solid #1764e8;outline-offset:3px}
.ahs-shelf-empty .elementor-widget-text-editor{max-width:700px}
.ahs-shelf-empty .elementor-widget-button{margin-top:4px}
.ahs-resource-tabs .e-n-tabs-content>.e-con{border:0!important;background:transparent}
.ahs-chapter .aeb-faq{background:#fff;border:1px solid #d9e3f1;border-radius:12px;overflow:hidden}
@media(max-width:767px){
 .ahs-resource-tabs .e-n-tabs-heading{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;width:100%}
 .ahs-resource-tabs .e-n-tab-title{min-width:0;flex:1!important;padding:12px 8px!important;min-height:48px}
 .ahs-resource-tabs .e-n-tab-title-text{font-size:17px}
 .ahs-chapter-title .elementor-heading-title{padding-bottom:16px}
 .ahs-shelf-link .elementor-button{max-width:100%}
}

/* Academy educational articles — 2026-09-30. Native Elementor widgets. */
.ag-lesson-article{max-width:860px;margin-inline:auto;width:100%;min-width:0}
.ag-lesson-article .elementor-heading-title{scroll-margin-top:120px}
.ag-lesson-article .elementor-element{min-width:0}
.ag-lesson-article p{margin:0 0 1em}
.ag-lesson-article p:last-child{margin-bottom:0}
.ag-lesson-prose a,.ag-lesson-toc a,.ag-lesson-next a{color:#1356c5;text-decoration:underline;text-underline-offset:4px}
.ag-lesson-prose li{margin-bottom:.55em}
.ag-lesson-answer{padding:24px;border-radius:18px;background:#edf5ff;border-right:4px solid #1764e8}
.ag-lesson-meta{font-size:13px!important;color:#657590!important}
.ag-lesson-toc{background:#f7f9fc;padding:22px 26px;border:1px solid #dce5f3;border-radius:16px}
.ag-lesson-toc ul{margin:12px 0 0;padding-right:20px;columns:2;column-gap:26px}
.ag-lesson-toc li{break-inside:avoid;margin-bottom:6px;font-size:14px}
.ag-lesson-prose .ag-de{direction:ltr;unicode-bidi:isolate;font-family:Arial,sans-serif;font-size:1.02em;color:#162858}
.ag-lesson-prose .ag-german{background:#f6f8fc;border:1px solid #dce5f3;border-radius:14px;padding:22px;font-family:Arial,sans-serif;line-height:1.85;text-align:left;direction:ltr}
.ag-lesson-prose .ag-table{max-width:100%;overflow-x:auto;border:1px solid #dce5f3;border-radius:12px;margin:8px 0 18px}
.ag-lesson-prose table{width:100%;border-collapse:collapse;margin:0;min-width:530px}
.ag-lesson-prose th,.ag-lesson-prose td{padding:12px 16px;border-bottom:1px solid #e3eaf4;vertical-align:top}
.ag-lesson-prose th{background:#edf4ff;color:#162858;text-align:inherit}
.ag-lesson-prose td[lang=de],.ag-lesson-prose th[lang=de]{font-family:Arial,sans-serif;text-align:left}
.ag-lesson-prose tr:last-child td{border-bottom:0}
.ag-lesson-next{border-top:1px solid #dce5f3;padding-top:22px;margin-top:12px}
.ag-lesson-blog .elementor-post__card{border:1px solid #dae5f4;border-radius:18px;box-shadow:0 5px 0 #e5eef9!important;overflow:hidden}
.ag-lesson-blog .elementor-post__title,.ag-lesson-blog .elementor-post__title a{font-family:AcademyPersian,sans-serif!important;font-size:21px!important;line-height:1.85!important;color:#162858!important}
.ag-lesson-blog .elementor-post__excerpt p{font-family:AcademyPersian,sans-serif!important;font-size:15px;line-height:1.95;color:#53647e}
.ag-lesson-blog .elementor-post__badge{font-family:AcademyPersian,sans-serif;background:#1764e8;color:#fff}
.ag-lesson-blog .elementor-post__read-more{font-family:AcademyPersian,sans-serif;color:#1356c5!important;font-size:15px}
.ag-lesson-blog .elementor-pagination{margin-top:40px;font-family:AcademyPersian,sans-serif}
.ag-lesson-blog .page-numbers{display:inline-block;padding:8px 13px;border-radius:8px;color:#1356c5}
.ag-lesson-blog .page-numbers.current{background:#1764e8;color:white}
.ag-lesson-blog .elementor-post__thumbnail{padding-bottom:46.6667%!important;background:#eef5ff}
.ag-lesson-blog .elementor-post__thumbnail img{object-fit:contain!important;width:100%;height:100%}
@media(max-width:600px){.ag-lesson-toc ul{columns:1}.ag-lesson-answer,.ag-lesson-toc{padding:18px}.ag-lesson-prose .ag-german{padding:16px}.ag-lesson-prose th,.ag-lesson-prose td{padding:10px 12px}.ag-lesson-blog .elementor-post__title,.ag-lesson-blog .elementor-post__title a{font-size:20px!important}}

.ag-lesson-blog .elementor-post__card .elementor-post__thumbnail__link::after{display:none}

.ag-lesson-article [id^="lesson-section-"]{scroll-margin-top:130px}

/* Homepage media carousels: deliberately scoped to these two Elementor widgets. */
.ahc-videos{min-width:0;width:100%;padding-bottom:58px;position:relative}
.ahc-videos .e-n-carousel{overflow:hidden}
.ahc-videos .swiper-wrapper{align-items:stretch}
.ahc-videos .swiper-slide{height:auto}
.ahc-videos .aeb-video-card{width:100%;height:100%}
.ahc-videos .aeb-video-card>.elementor-widget-button{margin-top:auto}
.ahc-videos .elementor-swiper-button{top:auto!important;bottom:0!important;transform:none!important;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #c7d9f1;border-radius:10px;background:#fff;color:#162858;font-size:18px;z-index:2}
.ahc-videos .elementor-swiper-button-prev{right:54px!important;left:auto!important}
.ahc-videos .elementor-swiper-button-next{right:0!important;left:auto!important}
.ahc-videos .elementor-swiper-button svg{color:inherit!important;fill:currentColor!important;width:18px;height:18px;transform:rotate(180deg)}
body.agv-theme .ahc-videos .elementor-swiper-button{background:#fff!important;color:#162858!important}
body.agv-theme .ahc-videos .elementor-swiper-button:is(:hover,:focus-visible){background:#1764e8!important;color:#fff!important}
.ahc-videos .elementor-swiper-button:focus-visible{outline:3px solid #1764e8;outline-offset:3px}
.ahc-videos .elementor-swiper-button.swiper-button-disabled{opacity:.35}
.ahc-videos .swiper-pagination{bottom:11px!important;left:0!important;right:auto!important;width:calc(100% - 124px)!important;text-align:left}
.ahc-videos .swiper-pagination-bullet{width:10px;height:10px;background:#9cb5d9;opacity:1}
.ahc-videos .swiper-pagination-bullet-active{background:#1764e8}
.ahc-articles{width:100%;min-width:0}
.ahc-articles .owl-nav{position:static!important;transform:none!important;display:flex;gap:10px;justify-content:flex-start;direction:rtl;margin:20px 0 0;padding:0;background:transparent;border:0;box-shadow:none}
.ahc-articles .owl-nav :is(.owl-prev,.owl-next){display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #c7d9f1;border-radius:10px;background:#fff;color:#162858;position:static;opacity:1}
.ahc-articles .owl-nav :is(.owl-prev,.owl-next):is(:hover,:focus-visible){background:#1764e8;color:#fff}
.ahc-articles .owl-nav .disabled{opacity:.35}
.ahc-articles .owl-nav :is(.owl-prev,.owl-next){margin:0!important;float:none!important;padding:0!important;cursor:pointer}
.ahc-articles [role=button]:focus-visible{outline:3px solid #1764e8;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.ahc-videos .swiper-wrapper,.ahc-articles .owl-stage{transition-duration:0ms!important}}
/* Keep the A2 cover visually aligned with the A1 and A1–C1 course covers. */
body.agv-theme .aeb-native-courses .course-item.post-177 .course-thumbnail-holder .image-item img{object-fit:cover;object-position:center center}
/* Homepage course cards use the Studiare content format without a separate outer frame. */
body.agv-theme .aeb-commerce-grid .products .course-item .course-item-inner{border:0!important;border-radius:0!important;box-shadow:none!important}
