/* Apply Gate dark mode v1: colors are scoped; photographs and logos are never inverted. */
.ag-theme-toggle{order:3!important;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px!important;width:44px!important;height:44px!important;padding:0!important;border:1px solid rgba(255,255,255,.45)!important;border-radius:12px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;cursor:pointer;line-height:1;touch-action:manipulation;transition:background-color .15s ease}
.ag-theme-toggle:hover{background:rgba(255,255,255,.23)!important}
.ag-theme-toggle:focus-visible{outline:3px solid #ffd08a!important;outline-offset:3px}
.ag-theme-toggle svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ag-theme-icon--sun{display:none}
html[data-ag-theme="dark"] .ag-theme-icon--moon{display:none}
html[data-ag-theme="dark"] .ag-theme-icon--sun{display:inline}
html body .ag-nav .ag-container{gap:18px!important}
html body .ag-menu-toggle{order:4!important;flex-shrink:0!important}
@media(max-width:920px){html body .ag-nav .ag-container{gap:10px!important;flex-wrap:nowrap!important}html body .ag-nav .ag-brand{min-width:0!important;flex:1 1 auto!important}html body .ag-nav .ag-brand img{max-width:100%!important}html body .ag-nav .ag-menu-toggle{flex:0 0 44px!important}}
.ag-policy-nav .brand{order:1}.ag-policy-nav>div{order:2}
@media(max-width:560px){.ag-policy-nav{gap:12px!important}.ag-policy-nav .brand{flex:1 1 auto}.ag-policy-nav>div{order:4;flex-basis:100%;justify-content:center}}

html:root[data-ag-theme="dark"]{color-scheme:dark;--ag-dark-bg:#0b1220;--ag-dark-surface:#142033;--ag-dark-raised:#1b2b42;--ag-dark-text:#e8eef7;--ag-dark-muted:#adbed1;--ag-dark-link:#89cdf7;--ag-dark-border:#344861;--ag-text:#e8eef7;--ag-muted:#adbed1;--ag-border:#344861;--ag-soft:#101b2b;--ag-navy:#dce9f7;--ag-shadow:0 12px 30px rgba(0,0,0,.28);--ag-card-shadow:0 7px 18px rgba(0,0,0,.24);background:#0b1220}
html:root[data-ag-theme="dark"] body{background:var(--ag-dark-bg)!important;color:var(--ag-dark-text)!important}
html:root[data-ag-theme="dark"] .ag-nav{background:#10243a!important;box-shadow:0 8px 22px rgba(0,0,0,.26)!important}
html:root[data-ag-theme="dark"] .ag-top-line{background:linear-gradient(90deg,#0d4f75,#183a56)!important}
html:root[data-ag-theme="dark"] .ag-hero{background-image:linear-gradient(90deg,rgba(7,18,33,.92),rgba(12,33,53,.76)),url('https://apply-gate.com/wp-content/uploads/2025/12/Background-08-scaled.jpg')!important;background-color:#101c2c!important}
html:root[data-ag-theme="dark"] .ag-title{color:#a5defe!important;text-shadow:none!important}
html:root[data-ag-theme="dark"] .ag-subtitle{color:#d0dce9!important}
html:root[data-ag-theme="dark"] .ag-hero:before,html:root[data-ag-theme="dark"] .ag-hero:after{opacity:.25}
html:root[data-ag-theme="dark"] :is(.ag-institutes-section,.ag-offers-section,.ag-booking-page,.ag-compare-page){background:var(--ag-dark-bg)!important;color:var(--ag-dark-text)!important}
html:root[data-ag-theme="dark"] .ag-contact-section{background:linear-gradient(180deg,#0b1220,#101d2e)!important}
html:root[data-ag-theme="dark"] .ag-destinations-section{background:linear-gradient(135deg,#102a41,#17415b)!important}
html:root[data-ag-theme="dark"] :is(.ag-filter,.ag-card,.ag-offer-card,.ag-offer-card-premium,.ag-institute-card,.ag-modal,.ag-detail-shell,.ag-contact-info-card,.ag-pagination-card,.ag-summary-card,.ag-form-card,.ag-compare-card,.ag-offers-filter,.ag-count,.ag-offers-count,.ag-empty){background:var(--ag-dark-surface)!important;color:var(--ag-dark-text)!important;border-color:var(--ag-dark-border)!important;box-shadow:0 12px 30px rgba(0,0,0,.22)!important}
html:root[data-ag-theme="dark"] :is(.ag-detail-panel,.ag-program-summary,.ag-feature,.ag-option,.ag-content-box,.ag-selected-summary,.ag-tab-card,.ag-contact-method,.ag-contact-hours,.ag-contact-note,.ag-program-main,.ag-summary-row,.ag-note,.ag-compare-price,.ag-institute-cities,.ag-institute-city-link,.ag-offer-price-box,.ag-offer-stats){background:var(--ag-dark-raised)!important;color:var(--ag-dark-text)!important;border-color:var(--ag-dark-border)!important}
html:root[data-ag-theme="dark"] .ag-contact-form-card{background:linear-gradient(145deg,#153b57,#132b44)!important}
html:root[data-ag-theme="dark"] :is(.ag-school,.ag-offer-school,.ag-offer-school-row,.ag-institute-info h3,.ag-summary-title h1,.ag-detail-title,.ag-related-title,.ag-results-copy h2,.ag-institutes-head h2,.ag-offers-head h2,.ag-offers-title h2,.ag-contact-head h2,.ag-contact-info-header h3,.ag-contact-method strong,.ag-contact-note strong,.ag-booking-title h1,.ag-summary-card h2,.ag-form-card h2,.ag-program-main h3,.ag-compare-top h1,.ag-compare-body h2,.ag-tab-card strong,.ag-feature strong,.ag-content-box h2,.ag-institute-country-title,.ag-institute-cities-title){color:var(--ag-dark-link)!important}
html:root[data-ag-theme="dark"] :is(.ag-label,.ag-field label,.ag-info-list li,.ag-card-meta,.ag-option,.ag-total-row,.ag-selected-summary,.ag-tab-panel,.ag-content-box,.ag-feature,.ag-summary-row strong,.ag-compare-row strong){color:var(--ag-dark-text)!important}
html:root[data-ag-theme="dark"] :is(.ag-results-copy p,.ag-institutes-head p,.ag-offers-head p,.ag-offers-title p,.ag-offer-program,.ag-offer-place,.ag-offer-expiry,.ag-institute-info p,.ag-institute-meta,.ag-institute-cities-title small,.ag-institute-city-link small,.ag-summary-title p,.ag-program-main p,.ag-booking-title p,.ag-summary-row span,.ag-note,.ag-compare-body p,.ag-compare-row span,.ag-contact-info-header p,.ag-contact-head p,.ag-contact-method small,.ag-contact-hours small,.ag-contact-note p,.ag-tab-card small,.ag-page-summary){color:var(--ag-dark-muted)!important}
html:root[data-ag-theme="dark"] :is(.ag-price-line .price,.ag-total-row strong,.ag-selected-summary strong,.ag-institute-meta strong,.ag-institute-city-link,.ag-contact-hours strong){color:var(--ag-dark-link)!important}
html:root[data-ag-theme="dark"] .ag-info-list{border-color:var(--ag-dark-border)!important}
html:root[data-ag-theme="dark"] :is(.ag-advanced-panel,.ag-contact-info-header,.ag-total,.ag-compare-row){border-color:var(--ag-dark-border)!important}
html:root[data-ag-theme="dark"] :is(.ag-select,.ag-input,.ag-textarea,.ag-contact-field input,.ag-contact-field select,.ag-contact-field textarea,.ag-contact-captcha input,.ag-field input,.ag-field textarea,.ag-offer-field select){background:#0e1929!important;color:var(--ag-dark-text)!important;border-color:#4c637e!important;caret-color:#e8eef7}
html:root[data-ag-theme="dark"] .ag-show-page .ag-config :is(.ag-select,.ag-input){background:#0e1929!important;color:var(--ag-dark-text)!important;border-color:#4c637e!important}
html:root[data-ag-theme="dark"] :is(input,textarea)::placeholder{color:#a3b4c8!important;opacity:1}
html:root[data-ag-theme="dark"] select option{background:#142033!important;color:#e8eef7!important}
html:root[data-ag-theme="dark"] :is(input,select,textarea):focus{outline:2px solid #89cdf7!important;outline-offset:1px;border-color:#89cdf7!important;box-shadow:0 0 0 3px rgba(137,205,247,.16)!important}
html:root[data-ag-theme="dark"] :is(.ag-advanced-button,.ag-reset-btn,.ag-back-page-btn,.ag-back-link,.ag-back,.ag-modal-back,.ag-tab,.ag-institute-action,.ag-contact-kicker){background:#1b2b42!important;color:var(--ag-dark-link)!important;border-color:#425976!important}
html:root[data-ag-theme="dark"] .ag-tab.active{background:#1574a6!important;color:#fff!important}
html:root[data-ag-theme="dark"] .ag-page-links :is(a,span){background:#1b2b42!important;color:#dce9f7!important;border-color:#425976!important}
html:root[data-ag-theme="dark"] .ag-page-links span.active{background:#1574a6!important;color:#fff!important;border-color:#1574a6!important}
html:root[data-ag-theme="dark"] .ag-page-links span.disabled{color:#90a3b9!important;background:#101a2a!important}
html:root[data-ag-theme="dark"] .ag-contact-captcha span{background:#e8eef7!important;color:#082b4f!important}
html:root[data-ag-theme="dark"] :is(.ag-country-content h2,.ag-country-content p){color:#fff!important}
html:root[data-ag-theme="dark"] .ag-destination-card em{background:#1b2b42!important;color:#a5defe!important}
html:root[data-ag-theme="dark"] :is(.ag-institute-country-title span,.ag-mini-badge){background:#49351e!important;color:#ffd08a!important}
html:root[data-ag-theme="dark"] .ag-contact-method>span,html:root[data-ag-theme="dark"] .ag-contact-info-header>span{background:#213b54!important;color:#a5defe!important}
html:root[data-ag-theme="dark"] :is(.ag-errors,.ag-alert.error,.ag-contact-message.error){background:#3b2029!important;color:#ffd0d0!important;border-color:#8c465a!important}
html:root[data-ag-theme="dark"] :is(.ag-alert.success,.ag-contact-message.success){background:#13372b!important;color:#b9efd1!important;border-color:#39795c!important}
html:root[data-ag-theme="dark"] .ag-footer{background:#102a3e!important;color:#e8eef7!important}
html:root[data-ag-theme="dark"] .ag-footer-bottom{border-color:#3b5169!important}
html:root[data-ag-theme="dark"] :is(.ag-footer-about p,.ag-footer-links a,.ag-footer-col h3,.ag-footer-bottom){color:#e0eaf5!important}
@media(max-width:920px){html:root[data-ag-theme="dark"] .ag-nav .ag-menu{background:#14283e!important}}

/* Restored policy pages use their original scoped markup. */
html:root[data-ag-theme="dark"] :is(#ag-privacy-page,#ag-price-page){background:#0b1220!important;color:#e8eef7!important}
html:root[data-ag-theme="dark"] .ag-policy-nav{background:#10243a!important;color:#fff!important}
html:root[data-ag-theme="dark"] #ag-privacy-page .privacy-container,html:root[data-ag-theme="dark"] #ag-price-page .price-guarantee-container{background:#142033!important;box-shadow:0 12px 30px rgba(0,0,0,.28)!important}
html:root[data-ag-theme="dark"] #ag-privacy-page .privacy-header,html:root[data-ag-theme="dark"] #ag-price-page .price-header{background:linear-gradient(135deg,#153b57,#12283f)!important}
html:root[data-ag-theme="dark"] #ag-privacy-page :is(.policy-card,.term-item,.important-note,.feature-item,.consent-section),html:root[data-ag-theme="dark"] #ag-price-page :is(.list-item,.contact-card,.feature-box,.timeline-content,.highlight-box){background:#1b2b42!important;border-color:#3d5773!important;color:#e8eef7!important}
html:root[data-ag-theme="dark"] #ag-privacy-page :is(p,h3),html:root[data-ag-theme="dark"] #ag-price-page :is(p,h3,h4){color:#e0eaf5!important}
html:root[data-ag-theme="dark"] #ag-privacy-page :is(.ag-h2,strong,.term-content h3),html:root[data-ag-theme="dark"] #ag-price-page :is(.ag-h2,strong,.timeline-date){color:#a5defe!important}
html:root[data-ag-theme="dark"] #ag-privacy-page .feature-icon,html:root[data-ag-theme="dark"] #ag-price-page .feature-icon{background:#23405a!important;color:#a5defe!important}
html:root[data-ag-theme="dark"] #ag-price-page .contact-email{background:#142033!important;color:#a5defe!important;border-color:#42617e!important}
html:root[data-ag-theme="dark"] #ag-privacy-page .highlight{background:#23405a!important;color:#c3e9ff!important}
html:root[data-ag-theme="dark"] .ag-policy-bottom{background:#0b1220!important;color:#dce9f7!important}
html:root[data-ag-theme="dark"] .ag-policy-bottom a{color:#a5defe!important}
@media print{.ag-theme-toggle{display:none!important}}
@media(prefers-reduced-motion:reduce){.ag-theme-toggle{transition:none}}
