/* ArabGameDev shared design. All selectors stay inside the opt-in frontend body class.
   This stylesheet never hides native lesson, payment, validation or access controls. */
body.agd-sitewide-theme{--agd-ink:#122e36;--agd-muted:#5e7279;--agd-paper:#f6f7f3;--agd-lime:#baf35a;--agd-line:#dce3dd;--agd-navy:#0b252d;--agd-radius:22px;background:var(--agd-paper)!important;color:var(--agd-ink);font-family:"Segoe UI",Tahoma,Arial,sans-serif;font-size:16px;line-height:1.8}
body.agd-sitewide-theme.agd-theme-ar{direction:rtl}
body.agd-sitewide-theme.agd-theme-en{direction:ltr}
/* Course Builder's fixed-header script leaves an inline offset; the new header is in flow. */
body.agd-sitewide-theme #wrapper-container{padding-top:0!important}
/* Clip wide legacy content without creating a scroll container above the sticky header. */
body.agd-sitewide-theme:not(.course-item-popup) #wrapper-container{overflow-x:clip!important;overflow-y:visible!important}
body.agd-sitewide-theme :is(#main-content,.content-pusher,.site-content){background-color:var(--agd-paper)}
body.agd-sitewide-theme :is(h1,h2,h3,h4,h5,h6){font-family:"Segoe UI",Tahoma,Arial,sans-serif;color:var(--agd-ink);font-weight:700;line-height:1.4;text-transform:none;letter-spacing:normal}
body.agd-sitewide-theme :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid #087d77;outline-offset:4px}
body.agd-sitewide-theme .agd-global-inner{width:min(1280px,calc(100% - 64px));margin-inline:auto;box-sizing:border-box}

/* Shared header/footer markup is separate from native LMS and shop content. */
body.agd-sitewide-theme .agd-global-header{position:sticky;inset-block-start:0;z-index:1000;background:#f6f7f3fa;color:var(--agd-ink);border-bottom:1px solid var(--agd-line);box-shadow:0 4px 24px #122e3605;font-family:"Segoe UI",Tahoma,Arial,sans-serif}
body.agd-sitewide-theme.admin-bar .agd-global-header{inset-block-start:32px}
body.agd-sitewide-theme .agd-global-header>.agd-global-inner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:88px;padding-block:14px}
body.agd-sitewide-theme .agd-global-brand{display:flex;flex-direction:column;flex-shrink:0;gap:3px;color:inherit!important;text-decoration:none!important;line-height:1.25;max-width:240px}
body.agd-sitewide-theme .agd-global-brand :is(strong,b,.agd-global-wordmark){font-size:23px;font-weight:750;letter-spacing:-.8px;direction:ltr}
body.agd-sitewide-theme .agd-global-wordmark>span{color:#79a839}
body.agd-sitewide-theme .agd-global-brand small{font-size:10px;letter-spacing:1.1px;font-weight:600;color:var(--agd-muted);line-height:1.5}
body.agd-sitewide-theme .agd-global-nav{display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin:0;padding:0}
body.agd-sitewide-theme .agd-global-nav a{font-size:14px;font-weight:650;color:var(--agd-ink);text-decoration:none;padding-block:8px;white-space:nowrap}
body.agd-sitewide-theme .agd-global-nav a:is(:hover,[aria-current="page"]){color:#426f17}
body.agd-sitewide-theme .agd-global-tools{display:flex;align-items:center;gap:12px;flex-shrink:0}
body.agd-sitewide-theme .agd-global-tools>a{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:8px 12px;font-size:13px;font-weight:700;color:var(--agd-ink);text-decoration:none;border-radius:9px;box-sizing:border-box}
body.agd-sitewide-theme .agd-global-tools>a:last-of-type{border:1px solid #becbc4;padding-inline:17px;background:#fff}
body.agd-sitewide-theme .agd-global-tools>a:hover{background:#e9efe2}
body.agd-sitewide-theme .agd-global-menu{display:none}
body.agd-sitewide-theme .agd-global-menu summary{min-height:43px;min-width:43px;padding:8px 12px;border:1px solid var(--agd-line);border-radius:9px;cursor:pointer;font-weight:650;font-size:13px;list-style:none;background:#fff;box-sizing:border-box}
body.agd-sitewide-theme .agd-global-menu summary::-webkit-details-marker{display:none}
body.agd-sitewide-theme .agd-global-menu summary::marker{content:""}
body.agd-sitewide-theme .agd-global-menu nav{position:absolute;inset-inline:0;inset-block-start:100%;padding:12px;display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--agd-line);border-radius:0 0 16px 16px;box-shadow:0 18px 36px #122e3614;max-height:70vh;overflow-y:auto}
body.agd-sitewide-theme .agd-global-menu nav a{display:block;padding:12px 14px;border-radius:8px;color:var(--agd-ink);font-size:15px;font-weight:650;text-decoration:none}
body.agd-sitewide-theme .agd-global-menu nav a:hover{background:#eff5e7}
body.agd-sitewide-theme .agd-global-menu:not([open]) nav{display:none}
body.agd-sitewide-theme .agd-global-menu[open] nav{display:flex}
body.agd-sitewide-theme .agd-global-skip{position:fixed;inset-block-start:-120px;inset-inline-start:20px;z-index:99999;padding:12px 20px;border-radius:8px;background:var(--agd-lime);color:var(--agd-navy);font-weight:700}
body.agd-sitewide-theme .agd-global-skip:focus{inset-block-start:12px}
body.agd-sitewide-theme .agd-global-content-start{height:0;margin:0;padding:0;border:0;scroll-margin-block-start:108px}
body.agd-sitewide-theme .agd-global-footer{margin-block-start:64px;background:var(--agd-navy);color:#d1dfdf;padding-block:48px 28px;border-top:1px solid #22434b;font-family:"Segoe UI",Tahoma,Arial,sans-serif}
body.agd-sitewide-theme .agd-global-footer>.agd-global-inner{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:32px 56px}
body.agd-sitewide-theme .agd-global-footer .agd-global-brand{color:#fff!important}
body.agd-sitewide-theme .agd-global-footer .agd-global-brand small{color:#bdcecf}
body.agd-sitewide-theme .agd-global-footer :is(p,small){color:#c3d2d2;font-size:13px;line-height:1.9;max-width:450px}
body.agd-sitewide-theme .agd-global-footer nav{display:flex;flex-wrap:wrap;gap:10px 24px;max-width:600px}
body.agd-sitewide-theme .agd-global-footer a{color:#eaf1ed;text-decoration:none;font-size:13px;font-weight:600}
body.agd-sitewide-theme .agd-global-footer a:hover{color:var(--agd-lime)}
body.agd-sitewide-theme .agd-global-footer a[href*="wa.me/"]{display:inline-flex;align-items:center;justify-content:center;border:1px solid #729954;border-radius:9px;padding:10px 16px;color:var(--agd-lime)}
body.agd-sitewide-theme .agd-global-footer-brand{flex:1 1 280px;max-width:400px}
body.agd-sitewide-theme .agd-global-footer-brand p{margin-block:16px 8px}
body.agd-sitewide-theme .agd-global-location{font-size:13px;color:#c3d2d2}
body.agd-sitewide-theme .agd-global-footer>.agd-global-inner>nav{flex:1 1 180px;max-width:280px;align-content:flex-start}
body.agd-sitewide-theme .agd-global-contact{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
body.agd-sitewide-theme .agd-global-footer-bottom{display:flex;flex-basis:100%;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 30px;border-top:1px solid #315059;padding-block-start:24px}
body.agd-sitewide-theme .agd-global-policy-links{display:flex;flex-wrap:wrap;gap:10px 20px}

/* Native page banners: course title, original price and purchase controls remain visible. */
body.agd-sitewide-theme #main-content>.page-title{margin:0;border:0;background:var(--agd-navy)}
body.agd-sitewide-theme .page-title .main-top{height:auto!important;min-height:185px!important;padding-block:46px!important;background:var(--agd-navy)!important;background-image:none!important}
body.agd-sitewide-theme .page-title .main-top :is(.overlay-top-header,.overlay){background:transparent!important}
body.agd-sitewide-theme .page-title .main-top>.content{position:relative;inset:auto;transform:none;padding-block:0}
body.agd-sitewide-theme .page-title .text-title{width:auto;max-width:1050px;float:none;margin-inline:auto}
body.agd-sitewide-theme .page-title h1{color:var(--agd-paper)!important;font-size:clamp(28px,3.5vw,48px)!important;line-height:1.45!important;margin:0!important;overflow-wrap:anywhere}
body.agd-sitewide-theme .page-title :is(.text-description,.banner-description){color:#d0dddd;margin-block-start:16px;line-height:1.7}
body.agd-sitewide-theme .page-title .price{display:flex;justify-content:center;align-items:baseline;flex-wrap:wrap;gap:10px 18px;direction:ltr;margin:0}
body.agd-sitewide-theme .page-title .price .course-price{font-size:30px;font-weight:750;color:var(--agd-lime)!important;line-height:1.4}
body.agd-sitewide-theme .page-title .course-origin-price{font-size:16px;color:#b8c9cb!important;text-decoration:line-through}
body.agd-sitewide-theme .page-title .breadcrumb-content{height:auto;min-height:66px;background:#102f38;border-top:1px solid #284750;color:#d7e3df;padding-block:12px}
body.agd-sitewide-theme .page-title .breadcrumbs-wrapper{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;height:auto}
body.agd-sitewide-theme .page-title .breadcrumb-content a{color:#e2ebe7}
body.agd-sitewide-theme .page-title .learn-press-course-buttons{position:static;float:none;transform:none;margin:0}
/* Course Builder layout 2 positions price/actions over a decorative cutout. Keep both in flow. */
body.agd-sitewide-theme .page-title.layout-2{height:auto!important;overflow:visible!important}
body.agd-sitewide-theme .page-title.layout-2 .main-top{position:relative!important;overflow:visible!important}
body.agd-sitewide-theme .page-title.layout-2 .main-top>.content{display:flex;flex-direction:column;align-items:center;gap:20px;position:relative!important;inset:auto!important;transform:none!important;height:auto!important;min-height:0!important;padding-block:0!important;text-align:center}
body.agd-sitewide-theme .page-title.layout-2 :is(.text-title,.text-description,.banner-description){position:static!important;inset:auto!important;transform:none!important;float:none!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important}
body.agd-sitewide-theme .page-title.layout-2 .text-title{max-width:1050px}
body.agd-sitewide-theme .page-title.layout-2 .banner-description .price{position:static!important;inset:auto!important;transform:none!important;float:none!important;width:100%;height:auto!important;min-height:44px;margin:0!important;padding:0!important}
/* Legacy mobile price spans have separate oversized typography and offsets. */
body.agd-sitewide-theme #main-content>.page-title.layout-2 .banner-description .price{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:10px 20px!important;max-width:100%;line-height:1.5!important}
body.agd-sitewide-theme #main-content>.page-title.layout-2 .banner-description .price>:is(.course-price,.course-origin-price){display:inline-block!important;position:static!important;inset:auto!important;transform:none!important;float:none!important;width:auto!important;max-width:100%;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;font-family:inherit!important;line-height:1.5!important;white-space:nowrap;vertical-align:baseline}
body.agd-sitewide-theme #main-content>.page-title.layout-2 .banner-description .price>.course-price{font-size:30px!important;font-weight:750!important;color:var(--agd-lime)!important}
body.agd-sitewide-theme #main-content>.page-title.layout-2 .banner-description .price>.course-origin-price{font-size:15px!important;font-weight:500!important;color:#b8c9cb!important;text-decoration:line-through}
body.agd-sitewide-theme .page-title.layout-2 :is(.breadcrumb-content,.breadcrumbs-wrapper){position:relative!important;inset:auto!important;transform:none!important;float:none!important;height:auto!important;overflow:visible!important;margin-block:0!important;border-radius:0!important;background-image:none!important;clip-path:none!important}
body.agd-sitewide-theme .page-title.layout-2 .breadcrumb-content{min-height:76px!important;padding-block:14px!important;background-color:#102f38!important}
body.agd-sitewide-theme .page-title.layout-2 .breadcrumbs-wrapper{min-height:48px!important;padding-block:0!important;background:transparent!important}
body.agd-sitewide-theme .page-title.layout-2 :is(.main-top,.content,.text-description,.banner-description,.breadcrumb-content,.breadcrumbs-wrapper):before,body.agd-sitewide-theme .page-title.layout-2 :is(.main-top,.content,.text-description,.banner-description,.breadcrumb-content,.breadcrumbs-wrapper):after{content:none!important}
body.agd-sitewide-theme .page-title.layout-2 .learn-press-course-buttons{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;position:static!important;inset:auto!important;transform:none!important;float:none!important;width:auto!important;height:auto!important;max-width:100%;margin:0!important;overflow:visible!important}
body.agd-sitewide-theme .page-title.layout-2 .learn-press-course-buttons form{position:static!important;margin:0!important;padding:0!important;height:auto!important}
body.agd-sitewide-theme .page-title.layout-2 .learn-press-course-buttons .lp-button{position:static!important;inset:auto!important;transform:none!important;height:auto!important;min-height:48px;line-height:1.5!important;padding:12px 28px!important;margin:0!important}
body.agd-sitewide-theme .container.site-content{padding-top:38px;padding-bottom:48px}

/* Course overview and LP4 curriculum from the verified native structure. */
body.agd-sitewide-theme #learn-press-course .course-info{border:1px solid var(--agd-line);border-radius:16px;background:#fff;padding:20px 24px;margin-block-end:24px;color:var(--agd-ink)}
body.agd-sitewide-theme #learn-press-course .course-info>ul{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:0}
body.agd-sitewide-theme #learn-press-course .course-info .list-inline-item{margin:0;padding:0;float:none;border:0}
body.agd-sitewide-theme #learn-press-course .course-info :is(label,.info){line-height:1.6}
body.agd-sitewide-theme #learn-press-course .course-info label{font-size:12px;font-weight:600;color:var(--agd-muted);margin-bottom:3px}
body.agd-sitewide-theme #learn-press-course .course-info a{color:var(--agd-ink);font-weight:650}
body.agd-sitewide-theme #learn-press-course .course-thumbnail{border-radius:var(--agd-radius);overflow:hidden;background:#e5ece1;margin-block-end:30px}
body.agd-sitewide-theme #learn-press-course .course-thumbnail>img{display:block;width:100%;height:auto}
body.agd-sitewide-theme #learn-press-course .course-thumbnail .time{background:var(--agd-navy);color:#fff;border:1px solid #ffffff42;border-radius:10px}
body.agd-sitewide-theme #learn-press-course .content-landing-1{min-width:0}
body.agd-sitewide-theme #thim-landing-course-menu-tab{background:var(--agd-paper);border-bottom:1px solid var(--agd-line)}
body.agd-sitewide-theme #thim-landing-course-menu-tab .container.wrapper{max-width:100%;width:100%;padding-inline:0}
body.agd-sitewide-theme .course-landing-tab{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0!important;padding:0!important;border:0!important}
body.agd-sitewide-theme .course-landing-tab>li{float:none;margin:0!important;padding:0!important;border:0!important}
body.agd-sitewide-theme .course-landing-tab>li>a{display:block;padding:14px 19px!important;color:var(--agd-muted)!important;font-size:15px;font-weight:650;border:0!important;border-radius:10px 10px 0 0}
body.agd-sitewide-theme .course-landing-tab>li.active>a{background:var(--agd-navy)!important;color:#fff!important}
body.agd-sitewide-theme #learn-press-course .row_content_course{padding-block:30px;border-color:var(--agd-line);scroll-margin-top:118px}
body.agd-sitewide-theme #learn-press-course .course-description{font-size:16px;line-height:1.95;color:var(--agd-ink);overflow-wrap:break-word}
body.agd-sitewide-theme #learn-press-course .course-description p{line-height:1.95;margin-block:0 18px}
body.agd-sitewide-theme #learn-press-course .course-description :is(h2,h3){margin-block:28px 14px;font-size:clamp(23px,2.2vw,31px)}
body.agd-sitewide-theme #learn-press-course .course-curriculum-info{padding:16px 20px;border:1px solid var(--agd-line);border-radius:12px;background:#eaf0e5;color:var(--agd-ink);margin-block:20px}
body.agd-sitewide-theme #learn-press-course .course-curriculum-info :is(ul,li){margin-block:0;color:var(--agd-muted);font-size:13px}
body.agd-sitewide-theme #learn-press-course .course-sections{margin:0;padding:0;list-style:none}
body.agd-sitewide-theme #learn-press-course .course-section{border:1px solid var(--agd-line);border-radius:15px;background:#fff;margin-block:0 14px;list-style:none;box-shadow:0 4px 18px #122e3603}
body.agd-sitewide-theme #learn-press-course .course-section-header{background:#edf2e8;border:0;border-radius:14px;padding:18px 20px;gap:12px;color:var(--agd-ink)}
body.agd-sitewide-theme #learn-press-course .course-section__title{font-family:inherit;font-size:17px;font-weight:700;color:var(--agd-ink);line-height:1.6;white-space:normal}
body.agd-sitewide-theme #learn-press-course .section-count-items{font-size:12px;color:var(--agd-muted)}
body.agd-sitewide-theme #learn-press-course .course-section__items{padding:0 16px;margin:0;list-style:none}
body.agd-sitewide-theme #learn-press-course .course-section__items>.course-item{margin:0;border:0;border-bottom:1px solid #e8ede6;background:transparent}
body.agd-sitewide-theme #learn-press-course .course-section__items>.course-item:last-child{border-bottom:0}
body.agd-sitewide-theme #learn-press-course .course-item__link{padding:15px 6px;color:var(--agd-ink);text-decoration:none;background:transparent;border-radius:6px}
body.agd-sitewide-theme #learn-press-course .course-item__link:hover{background:#f2f6ec;color:var(--agd-ink)}
body.agd-sitewide-theme #learn-press-course .course-item-title{font-family:inherit;font-size:14px;line-height:1.7;color:inherit;white-space:normal;overflow-wrap:break-word}
body.agd-sitewide-theme #learn-press-course .course-item__status .preview{background:#e7f3d5;color:#365915;border-radius:5px;padding:3px 7px;font-size:11px}
body.agd-sitewide-theme #learn-press-course .course-item__status .locked{color:#5f7278}
body.agd-sitewide-theme #learn-press-course .course-author{background:#fff;border:1px solid var(--agd-line);border-radius:var(--agd-radius);padding:28px}
body.agd-sitewide-theme #learn-press-course .thim-related-course{margin-block-start:35px}
body.agd-sitewide-theme #learn-press-course .thim-related-course .related-title{font-size:28px}
body.agd-sitewide-theme .archive-courses .inner-course{background:#fff;border:1px solid var(--agd-line);border-radius:20px;overflow:hidden;box-shadow:0 8px 24px #122e3605}
body.agd-sitewide-theme .archive-courses .wrapper-course-thumbnail{background:#e8eee3}
body.agd-sitewide-theme .archive-courses .wrapper-course-thumbnail img{width:100%;height:auto}
body.agd-sitewide-theme .archive-courses .course-title .title{font-size:21px;line-height:1.55}
body.agd-sitewide-theme .archive-courses .course-title .title a{color:var(--agd-ink)}
body.agd-sitewide-theme .archive-courses .course-price{background:var(--agd-navy);color:var(--agd-lime)}
body.agd-sitewide-theme .archive-courses .course-price .price{color:inherit;font-weight:700}

/* Native purchase/login buttons: no selectors for video-player or third-party payment buttons. */
body.agd-sitewide-theme :is(.learn-press-course-buttons .lp-button,.course-purchase-info .lp-button,#learn-press-profile form button[type="submit"],#learn-press-profile form[name="learn-press-login"] button:not([type="button"])){background:var(--agd-ink)!important;color:#fff!important;border:1px solid var(--agd-ink)!important;border-radius:10px!important;padding:12px 23px!important;min-height:48px;font-family:inherit;font-size:15px!important;font-weight:700;line-height:1.5!important;text-transform:none;box-shadow:none}
body.agd-sitewide-theme :is(.learn-press-course-buttons .lp-button,.course-purchase-info .lp-button):hover{filter:brightness(.96)}
body.agd-sitewide-theme #main-content>.page-title.layout-2 .learn-press-course-buttons .button-purchase-course:not(:disabled){background:#baf35a!important;border:1px solid #baf35a!important;border-radius:9px;color:#122e36!important;font-weight:750;min-width:180px;box-shadow:none;text-shadow:none}
body.agd-sitewide-theme #main-content>.page-title.layout-2 .learn-press-course-buttons .button-purchase-course:not(:disabled):hover{background:#caf781!important;border-color:#caf781!important;color:#122e36!important}

/* LP4 catalog. Native list/grid switches and filters retain their own display state. */
body.agd-sitewide-theme #lp-archive-courses .lp-courses-bar{padding:18px;border:1px solid var(--agd-line);border-radius:15px;background:#fff;margin-block-end:24px;gap:14px}
body.agd-sitewide-theme #lp-archive-courses :is(.courses-order-by,.search-courses input){min-height:44px;border:1px solid #bdcbc5;border-radius:8px;background:#fff;color:var(--agd-ink);font-family:inherit;font-size:14px;padding:8px 12px}
body.agd-sitewide-theme #lp-archive-courses .switch-btn{border-color:var(--agd-line);color:var(--agd-ink)}
body.agd-sitewide-theme #lp-archive-courses .learn-press-courses>.course{margin-block-end:24px}
body.agd-sitewide-theme #lp-archive-courses .course>.course-item.content{background:#fff;border:1px solid var(--agd-line);border-radius:20px;box-shadow:0 8px 24px #122e3605;overflow:hidden}
body.agd-sitewide-theme #lp-archive-courses .course-wrap-thumbnail{background:#e9eee4}
body.agd-sitewide-theme #lp-archive-courses .course-thumbnail{margin:0;border:0}
body.agd-sitewide-theme #lp-archive-courses .course-content.sub-content{padding:24px;color:var(--agd-ink);min-width:0}
body.agd-sitewide-theme #lp-archive-courses .course-permalink{color:var(--agd-ink);text-decoration:none}
body.agd-sitewide-theme #lp-archive-courses .course-title{font-family:inherit;font-size:22px;font-weight:700;line-height:1.55;color:var(--agd-ink);white-space:normal}
body.agd-sitewide-theme #lp-archive-courses .course-description{font-size:14px;line-height:1.85;color:var(--agd-muted)}
body.agd-sitewide-theme #lp-archive-courses :is(.date-comment,.courses_list_info){font-size:12px;color:var(--agd-muted);border-color:var(--agd-line)}
body.agd-sitewide-theme #lp-archive-courses .course-item-price{background:var(--agd-navy);color:var(--agd-lime);border-radius:8px;padding:7px 11px;font-weight:700}
body.agd-sitewide-theme #lp-archive-courses .origin-price{color:#bdcdce;font-size:12px}
body.agd-sitewide-theme #lp-archive-courses .sale{background:var(--agd-lime);color:var(--agd-navy);border-radius:6px}
body.agd-sitewide-theme #secondary.sidebar-courses .widget{padding:23px;border:1px solid var(--agd-line);border-radius:17px;background:#fff;margin-block-end:20px}
body.agd-sitewide-theme #secondary.sidebar-courses .widget-title{font-size:20px;border-color:var(--agd-line);padding-block-end:15px}
body.agd-sitewide-theme #secondary.sidebar-courses :is(.courses-categories a,.thim-recent-courses-widget .title a){color:var(--agd-ink);line-height:1.6}

/* Immersive lesson player: colors and readable content only; fixed geometry stays native. */
body.agd-sitewide-theme.course-item-popup #popup-course{background:var(--agd-paper);color:var(--agd-ink)}
body.agd-sitewide-theme.course-item-popup #popup-header{background:var(--agd-navy)!important;border-color:#294851;color:#fff}
body.agd-sitewide-theme.course-item-popup #popup-header :is(a,.back_course,.thim-course-item-popup-left,.thim-course-item-popup-right){color:#edf3ef}
body.agd-sitewide-theme.course-item-popup #popup-header :is(label,button){color:#edf3ef;border-color:#547178}
body.agd-sitewide-theme.course-item-popup #popup-header .lesson-logo{position:relative;color:#fff!important;text-decoration:none}
body.agd-sitewide-theme.course-item-popup #popup-header .lesson-logo img{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
body.agd-sitewide-theme.course-item-popup #popup-header .lesson-logo:after{content:"ArabGameDev";font-family:"Segoe UI",Tahoma,Arial,sans-serif;font-size:20px;font-weight:750;letter-spacing:-.6px;color:#fff}
body.agd-sitewide-theme.course-item-popup #popup-sidebar{background:#fff;border-color:var(--agd-line);color:var(--agd-ink)}
body.agd-sitewide-theme.course-item-popup #popup-content{background:var(--agd-paper);color:var(--agd-ink)}
body.agd-sitewide-theme.course-item-popup #popup-footer{background:#fff;border-color:var(--agd-line);color:var(--agd-ink)}
body.agd-sitewide-theme.course-item-popup #popup-footer a{color:var(--agd-ink)}
body.agd-sitewide-theme.course-item-popup #learn-press-content-item .content-item-summary>.lesson-title{font-family:inherit;font-size:clamp(25px,2.8vw,38px);line-height:1.5;color:var(--agd-ink);margin-block:22px}
body.agd-sitewide-theme.course-item-popup #learn-press-content-item .lesson-description{color:var(--agd-ink);font-size:16px;line-height:1.95}
body.agd-sitewide-theme.course-item-popup #learn-press-content-item .lesson-description>p{line-height:1.95}

/* Verified documentation and native student content regions. */
body.agd-sitewide-theme #betterdocs-single-content{background:#fff;color:var(--agd-ink);border:1px solid var(--agd-line);border-radius:20px;padding:clamp(20px,3vw,38px);font-family:inherit;font-size:16px;line-height:1.95}
body.agd-sitewide-theme #betterdocs-single-content :is(p,li){line-height:1.95;color:var(--agd-ink)}
body.agd-sitewide-theme #betterdocs-single-content :is(h2,h3,h4){color:var(--agd-ink);line-height:1.5;margin-block:26px 15px}
body.agd-sitewide-theme #betterdocs-single-content a{color:#246f63;text-decoration:underline;text-underline-offset:3px}
body.agd-sitewide-theme #learn-press-profile{color:var(--agd-ink)}
body.agd-sitewide-theme #learn-press-profile :is(#profile-sidebar,#profile-content,.learn-press-form-login,.learn-press-form-register){border-color:var(--agd-line);border-radius:18px;background:#fff}
body.agd-sitewide-theme #learn-press-profile :is(input[type="text"],input[type="email"],input[type="password"]){border:1px solid #bacac6;border-radius:8px;background:#fff;color:var(--agd-ink);font-family:inherit;min-height:46px;padding:10px 14px}

/* Existing About blocks, article cards and ordinary WordPress page content. */
body.agd-sitewide-theme .site-main>.page>.entry-content{color:var(--agd-ink);font-size:16px;line-height:1.95}
body.agd-sitewide-theme.page-id-6 .thim-sc-scroll-heading{color:var(--agd-ink)}
body.agd-sitewide-theme.page-id-6 .thim-sc-scroll-heading .title{font-family:inherit;color:var(--agd-ink)}
body.agd-sitewide-theme.page-id-6 .thim-sc-image-box{margin-block:24px;border:1px solid var(--agd-line);border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 8px 26px #122e3607}
body.agd-sitewide-theme.page-id-6 .thim-sc-image-box .text-content{background:#fff;color:var(--agd-ink)}
body.agd-sitewide-theme.page-id-6 .thim-sc-image-box .text-content-inner{padding:clamp(24px,4vw,48px)}
body.agd-sitewide-theme.page-id-6 .thim-sc-image-box .title-box{font-family:inherit;font-size:clamp(27px,3vw,38px);line-height:1.5;color:var(--agd-ink)}
body.agd-sitewide-theme.page-id-6 .thim-sc-image-box :is(.sub-title,.content){color:var(--agd-muted);font-family:inherit;line-height:1.95}
body.agd-sitewide-theme.page-id-6 .thim-sc-image-box .number{color:#fff;background:var(--agd-navy);border-radius:12px}
body.agd-sitewide-theme.page-id-6 .thim-sc-heading .primary-heading{font-family:inherit;color:var(--agd-ink);font-size:clamp(28px,3vw,38px);line-height:1.5}
body.agd-sitewide-theme.page-id-6 .thim-sc-heading .secondary-heading{font-family:inherit;color:var(--agd-muted);line-height:1.85}
body.agd-sitewide-theme.page-id-6 .thim-sc-icon-box .icon-box-wrapper{height:100%;padding:28px;border:1px solid var(--agd-line);border-radius:18px;background:#fff;box-shadow:none}
body.agd-sitewide-theme.page-id-6 .thim-sc-icon-box :is(.title,.box-icon){font-family:inherit;color:var(--agd-ink)}
body.agd-sitewide-theme.page-id-6 .thim-sc-icon-box .description{color:var(--agd-muted);font-family:inherit;line-height:1.85}
body.agd-sitewide-theme.blog .list-articles article.post>.content-inner{background:#fff;border:1px solid var(--agd-line);border-radius:20px;overflow:hidden;box-shadow:0 8px 24px #122e3605}
body.agd-sitewide-theme.blog .list-articles .entry-content{padding:24px;color:var(--agd-ink)}
body.agd-sitewide-theme.blog .list-articles .entry-title{font-family:inherit;font-size:22px;line-height:1.6;font-weight:700}
body.agd-sitewide-theme.blog .list-articles .entry-title a{color:var(--agd-ink);text-decoration:none}
body.agd-sitewide-theme.blog .list-articles .entry-title a:hover{color:#246f63}
body.agd-sitewide-theme.blog .list-articles .entry-date{background:var(--agd-navy);color:#fff;border-radius:10px}
body.agd-sitewide-theme.blog .list-articles .entry-meta{font-size:12px;color:var(--agd-muted);line-height:1.8}
body.agd-sitewide-theme.blog .list-articles .entry-meta a{color:var(--agd-muted)}
body.agd-sitewide-theme.blog .thim-loadmore>.load-more{background:var(--agd-ink);color:#fff;border:1px solid var(--agd-ink);border-radius:9px;min-height:46px;font-family:inherit;padding:10px 26px}

/* BetterDocs uses its own Hello Elementor template and native search/sidebar logic. */
body.agd-sitewide-theme .betterdocs-wrapper{background:var(--agd-paper);color:var(--agd-ink);font-family:inherit}
body.agd-sitewide-theme .betterdocs-archive-main{padding:clamp(24px,4vw,56px) 18px}
body.agd-sitewide-theme .betterdocs-category-box-inner-wrapper{background:transparent;max-width:1244px;margin-inline:auto}
body.agd-sitewide-theme .betterdocs-category-box-inner-wrapper>a.betterdocs-single-category-wrapper{background:#fff;border:1px solid var(--agd-line);border-radius:20px;box-shadow:0 8px 26px #122e3607;text-decoration:none}
body.agd-sitewide-theme .betterdocs-category-box-inner-wrapper>a.betterdocs-single-category-wrapper:hover{border-color:#9cab98;box-shadow:0 12px 28px #122e360e}
body.agd-sitewide-theme .betterdocs-category-header-inner .betterdocs-category-title{font-family:inherit;font-weight:700;font-size:22px;line-height:1.55;color:var(--agd-ink)}
body.agd-sitewide-theme .betterdocs-category-items-counts{color:var(--agd-muted);font-family:inherit}
body.agd-sitewide-theme .betterdocs-entry-title{font-family:inherit;font-size:clamp(28px,3.5vw,42px);font-weight:750;line-height:1.55;color:var(--agd-ink)}
body.agd-sitewide-theme #betterdocs-sidebar .betterdocs-sidebar-content{background:#fff;border:1px solid var(--agd-line);border-radius:17px}
body.agd-sitewide-theme #betterdocs-sidebar .betterdocs-category-header{background:#edf2e9;border-color:var(--agd-line)}
body.agd-sitewide-theme #betterdocs-sidebar .betterdocs-category-title{font-size:15px;line-height:1.8;color:var(--agd-ink)}
body.agd-sitewide-theme #betterdocs-sidebar .betterdocs-articles-list a{font-family:inherit;color:var(--agd-muted);font-size:14px;line-height:1.8}
body.agd-sitewide-theme #betterdocs-sidebar .betterdocs-articles-list a:hover{color:#246f63}
body.agd-sitewide-theme .betterdocs-toc{background:#f0f4ec;border:1px solid var(--agd-line);border-radius:14px;padding:18px;color:var(--agd-ink);font-family:inherit}
body.agd-sitewide-theme .betterdocs-toc a{color:var(--agd-ink);line-height:1.8}
body.agd-sitewide-theme #betterdocs-breadcrumb{color:var(--agd-muted);font-family:inherit;font-size:13px;line-height:1.8}
body.agd-sitewide-theme #betterdocs-breadcrumb a{color:var(--agd-muted)}
body.agd-sitewide-theme :is(.betterdocs-reactions-title-tag,.betterdocs-social-share-title-tag){color:var(--agd-ink);font-family:inherit}

/* Native WooCommerce cart/account notices and password reset fields. */
body.agd-sitewide-theme.woocommerce-page .site-main .woocommerce{color:var(--agd-ink);font-family:inherit;line-height:1.85}
body.agd-sitewide-theme.woocommerce-page .woocommerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-error){background:#fff;color:var(--agd-ink);border-radius:12px;box-shadow:none}
body.agd-sitewide-theme.woocommerce-cart .wc-empty-cart-message{margin-block:20px 28px}
body.agd-sitewide-theme.woocommerce-cart .return-to-shop .wc-backward{display:inline-flex;align-items:center;justify-content:center;min-height:46px;background:var(--agd-ink);border:1px solid var(--agd-ink);border-radius:9px;color:#fff;font-family:inherit;padding:11px 24px}
body.agd-sitewide-theme.woocommerce-account .woocommerce-ResetPassword{max-width:620px;margin-inline:auto;background:#fff;border:1px solid var(--agd-line);border-radius:20px;padding:clamp(24px,4vw,38px)}
body.agd-sitewide-theme.woocommerce-account .woocommerce-ResetPassword label{font-family:inherit;color:var(--agd-ink);font-weight:600;line-height:1.8}
body.agd-sitewide-theme.woocommerce-account .woocommerce-ResetPassword .woocommerce-Input{border:1px solid #bacac6;border-radius:8px;color:var(--agd-ink);background:#fff;min-height:46px;padding:10px 14px;font-family:inherit}
body.agd-sitewide-theme.woocommerce-account .woocommerce-ResetPassword .woocommerce-Button{min-height:46px;background:var(--agd-ink);border:1px solid var(--agd-ink);border-radius:9px;color:#fff;font-family:inherit;padding:11px 24px}

/* WordPress login and password reset. Field names, reveal-password and security UI stay native. */
body.agd-sitewide-theme.agd-auth-screen{background:radial-gradient(ellipse at top,#e4edda 0,#f6f7f3 62%)!important;min-height:100vh}
body.agd-sitewide-theme.agd-auth-screen #login{width:min(420px,calc(100% - 36px));padding-block:clamp(36px,8vh,88px);margin-inline:auto;box-sizing:border-box}
body.agd-sitewide-theme.agd-auth-screen #login h1 a{background-image:none!important;text-indent:0;width:auto;height:auto;min-height:46px;font-size:30px;font-weight:750;line-height:1.4;letter-spacing:-1px;color:var(--agd-ink);text-decoration:none;direction:ltr}
body.agd-sitewide-theme.agd-auth-screen #login form{padding:28px;border:1px solid var(--agd-line);border-radius:20px;background:#fff;box-shadow:0 14px 40px #122e3609;overflow:visible}
body.agd-sitewide-theme.agd-auth-screen #login label{color:var(--agd-ink);font-size:14px;font-weight:600;line-height:1.8}
body.agd-sitewide-theme.agd-auth-screen #login :is(input[type="text"],input[type="email"],input[type="password"]){min-height:48px;border:1px solid #b9cac4;border-radius:8px;background:#fff;color:var(--agd-ink);font-family:inherit;font-size:17px;padding:10px 12px;box-shadow:none}
body.agd-sitewide-theme.agd-auth-screen #login .wp-pwd input{padding-inline-end:44px}
body.agd-sitewide-theme.agd-auth-screen #login .wp-hide-pw{color:var(--agd-ink)}
body.agd-sitewide-theme.agd-auth-screen #wp-submit{background:var(--agd-ink);border:1px solid var(--agd-ink);border-radius:8px;color:#fff;font-weight:700;font-size:14px;min-height:44px;padding:8px 22px;text-shadow:none;box-shadow:none}
body.agd-sitewide-theme.agd-auth-screen #login :is(.message,.notice,#login_error){background:#fff;color:var(--agd-ink);border-radius:10px;box-shadow:none;font-size:14px}
body.agd-sitewide-theme.agd-auth-screen :is(#nav a,#backtoblog a,.privacy-policy-link){color:var(--agd-ink);font-size:13px}
body.agd-sitewide-theme.agd-auth-screen .language-switcher{padding-inline:18px}

/* Real course artwork supplied by WordPress; image proportions remain recognizable. */
body.agd-sitewide-theme .agd-course-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-block:30px}
body.agd-sitewide-theme .agd-course-gallery>figure{margin:0;background:#fff;border:1px solid var(--agd-line);border-radius:17px;overflow:hidden}
body.agd-sitewide-theme .agd-course-gallery>figure>img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#102f38}
body.agd-sitewide-theme .agd-course-gallery figcaption{padding:14px 17px;color:var(--agd-ink);font-size:13px;font-weight:600;line-height:1.7}
body.agd-sitewide-theme .agd-course-promo{padding:clamp(22px,4vw,40px);margin-block:42px;background:#eaf0e5;border:1px solid var(--agd-line);border-radius:var(--agd-radius)}
body.agd-sitewide-theme .agd-course-promo>h2{font-size:clamp(25px,3vw,35px);margin:0 0 22px}
body.agd-sitewide-theme .agd-course-promo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
body.agd-sitewide-theme .agd-course-promo-card{background:#fff;border:1px solid var(--agd-line);border-radius:17px;overflow:hidden;color:var(--agd-ink)}
body.agd-sitewide-theme .agd-course-promo-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
body.agd-sitewide-theme .agd-course-promo-card :is(h3,p){padding-inline:22px}
body.agd-sitewide-theme .agd-course-promo-card h3{font-size:20px;line-height:1.55;margin-block:20px 10px}
body.agd-sitewide-theme .agd-course-promo-card p{font-size:14px;color:var(--agd-muted);line-height:1.8;margin-block:0 22px}
body.agd-sitewide-theme .agd-course-promo-card>a{color:inherit;text-decoration:none}

@media(max-width:980px){
 body.agd-sitewide-theme .agd-global-inner{width:calc(100% - 36px)}
 body.agd-sitewide-theme .agd-global-header>.agd-global-inner{gap:14px;min-height:78px}
 body.agd-sitewide-theme .agd-global-header>.agd-global-inner>.agd-global-nav{display:none}
 body.agd-sitewide-theme .agd-global-menu{display:block}
 body.agd-sitewide-theme .agd-global-footer>.agd-global-inner{gap:28px}
 body.agd-sitewide-theme .page-title .main-top{padding-block:36px!important;min-height:170px!important}
 body.agd-sitewide-theme #learn-press-course .course-info>ul{justify-content:flex-start;gap:20px 30px}
 body.agd-sitewide-theme .agd-course-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:782px){body.agd-sitewide-theme.admin-bar .agd-global-header{inset-block-start:46px}}
@media(max-width:600px){
 body.agd-sitewide-theme{font-size:15px}
 body.agd-sitewide-theme .agd-global-header>.agd-global-inner{gap:10px;padding-block:12px;min-height:74px;flex-wrap:wrap}
 body.agd-sitewide-theme .agd-global-brand :is(strong,b,.agd-global-wordmark){font-size:20px}
 body.agd-sitewide-theme .agd-global-brand small{font-size:8px;letter-spacing:.5px}
 body.agd-sitewide-theme .agd-global-tools{gap:6px}
 body.agd-sitewide-theme .agd-global-tools>a{font-size:12px;padding-inline:8px;min-height:40px}
 body.agd-sitewide-theme .agd-global-tools>a:last-of-type{padding-inline:10px}
 body.agd-sitewide-theme .agd-global-menu summary{font-size:12px;padding-inline:9px;min-height:40px;min-width:40px}
 body.agd-sitewide-theme .agd-global-footer{margin-block-start:36px;padding-block:32px 22px}
 body.agd-sitewide-theme .agd-global-footer nav{gap:12px 20px}
 body.agd-sitewide-theme .page-title h1{font-size:27px!important}
 body.agd-sitewide-theme .page-title .main-top{padding-block:28px!important;min-height:145px!important}
 body.agd-sitewide-theme .page-title .price .course-price{font-size:26px}
 body.agd-sitewide-theme #main-content>.page-title.layout-2 .banner-description .price>.course-price{font-size:26px!important}
 body.agd-sitewide-theme #main-content>.page-title.layout-2 .main-top{padding-block-end:32px!important}
 body.agd-sitewide-theme #main-content>.page-title.layout-2 .breadcrumb-content{padding-block-start:16px!important}
 body.agd-sitewide-theme .container.site-content{padding-top:24px;padding-bottom:28px}
 body.agd-sitewide-theme #learn-press-course .course-info{padding:18px;margin-block-end:18px}
 body.agd-sitewide-theme #learn-press-course .course-info>ul{gap:16px 22px}
 body.agd-sitewide-theme #learn-press-course .course-thumbnail{border-radius:16px}
 body.agd-sitewide-theme .course-landing-tab{gap:4px}
 body.agd-sitewide-theme .course-landing-tab>li>a{font-size:13px;padding:12px 10px!important}
 body.agd-sitewide-theme #learn-press-course .row_content_course{padding-block:24px;scroll-margin-top:150px}
 body.agd-sitewide-theme #learn-press-course .course-description{font-size:15px}
 body.agd-sitewide-theme #learn-press-course .course-section-header{padding:15px 14px}
 body.agd-sitewide-theme #learn-press-course .course-section__title{font-size:15px}
 body.agd-sitewide-theme #learn-press-course .course-section__items{padding-inline:10px}
 body.agd-sitewide-theme #learn-press-course .course-item-title{font-size:13px}
 body.agd-sitewide-theme #learn-press-course .course-author{padding:20px}
 body.agd-sitewide-theme .agd-course-gallery,body.agd-sitewide-theme .agd-course-promo-grid{grid-template-columns:minmax(0,1fr)}
 body.agd-sitewide-theme #lp-archive-courses .course-content.sub-content{padding:20px}
 body.agd-sitewide-theme #lp-archive-courses .course-title{font-size:20px}
}
@media(prefers-reduced-motion:reduce){body.agd-sitewide-theme :is(.agd-global-nav a,.agd-global-tools a,.archive-courses .inner-course){transition:none}}
