/* Public pages share one fluid layout system. Keep form/payment behavior unchanged. */
:root{--public-navy:#1e3a5f;--public-amber:#f59e0b;--public-radius:16px;--public-header-height:76px}
html{scroll-padding-top:90px}
body{background:#f5f7fb;line-height:1.55}
body img{max-width:100%}
body button,body input,body select,body textarea{font-family:inherit}
body :is(a,button,input,select,textarea):focus-visible{outline:3px solid #f59e0b;outline-offset:3px}
body :is(.form-container,.form-col,.edu-section,.info_text,.contact-info,.exam-header-content){min-width:0}
body :is(.header-brand-name,.exam_card_title,.exam-title,.contact-item,.description-content){overflow-wrap:anywhere}

/* Header stays readable at laptop widths; the drawer begins before links collide. */
body .header-container{height:var(--public-header-height);padding-inline:clamp(16px,3vw,48px);gap:20px}
body .header-logo{min-width:0;gap:10px}
body .header-logo img{width:46px;height:46px;object-fit:contain;flex-shrink:0}
body .header-brand-name{font-size:18px;max-width:210px}
body .navithor-menu a{padding-inline:11px;font-size:14px;min-height:44px}
body .navithor-menu a[aria-current=page]{color:#1e3a5f;font-weight:700}
body .menu-toggle{flex-shrink:0;font:inherit;border:1px solid #e2e8f0;background:#f1f5f9;color:#1e3a5f;border-radius:10px;cursor:pointer}
body .nav-dropdown:focus-within .nav-dropdown-menu{display:block}

/* Slick's flex child must fill the available width, including after a resize. */
body .main_slider{display:block;width:100%;min-height:0;max-height:none;padding:0;isolation:isolate}
body .main_slider>.slick-list{width:100%;min-width:0;margin:0;padding:0}
body .main_slider_item{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(24px,4vw,64px);padding:clamp(32px,4vw,64px) clamp(20px,5vw,80px);height:auto;align-items:center;box-sizing:border-box}
body :is(.main_slider_item_left,.main_slider_item_right){width:100%;min-width:0}
body .slider_content{width:100%;min-width:0;max-width:640px;padding:clamp(22px,3vw,40px);gap:20px;border-radius:22px}
body .slider_content .title{font-size:clamp(26px,2.6vw,40px);line-height:1.2;overflow-wrap:anywhere;letter-spacing:-.025em}
body .slider-image-wrapper{width:100%;max-width:620px;aspect-ratio:5/4;transform:none;border-radius:22px;box-shadow:0 20px 45px #0f172a40}
body .main_slider_item img{object-fit:cover;mix-blend-mode:normal}
body .exam-meta{gap:8px;width:100%;min-width:0}
body .meta-item{min-width:0;padding:9px 11px;font-size:13px;flex:1 1 auto;overflow-wrap:anywhere}
body .meta-item-full{flex-basis:100%}
body .btn-apply-now{min-height:48px;width:100%;padding:13px 20px;border-radius:12px;font-size:14px;letter-spacing:.06em}
body .main_slider .custom-prev,body .main_slider .custom-next{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:36px;height:36px}
body .main_slider .custom-prev{left:8px}
body .main_slider .custom-next{right:8px}

/* Public sections, cards and filters use the same rhythm and content widths. */
body :is(.scholarship-section,.achiver_section,.get_scholarship_section,.about_us_section,.contact-page-section){padding:clamp(32px,4vw,60px) clamp(16px,4vw,60px)}
body .common_heading,body .scholarship-heading{font-size:clamp(24px,2.5vw,34px);line-height:1.25;margin-bottom:22px;letter-spacing:-.02em}
body .scholarship-subtext{margin:0 auto 26px;line-height:1.65;max-width:640px;text-align:center}
body .exam_card_slider:not(.slick-initialized){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;max-width:1320px;margin:24px auto 0}
body .exam_card_slider:not(.slick-initialized) .exam_card_item{margin:0;min-width:0}
body .exam_card_item{border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 6px 20px #0f172a0a;height:auto;min-width:0}
body .exam_card_slider.slick-initialized .slick-track{display:flex;align-items:flex-start}
body .exam_card_item:hover{transform:translateY(-4px);box-shadow:0 12px 28px #0f172a18}
body .exam_card_img{height:auto;aspect-ratio:16/9}
body .exam_card_img img{width:100%;height:100%;object-fit:cover}
body .exam_card_content{padding:18px;gap:14px;min-width:0;flex:0 0 auto}
body .exam_card_title{font-size:19px;line-height:1.35;margin:0;min-height:0}
body .exam_card_info{gap:8px;min-width:0;flex:0 0 auto}
body .info_item{padding:10px 12px;min-width:0;gap:10px;border-radius:10px}
body .info_text{min-width:0}
body .info_value{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
body .card-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:0;padding-top:4px}
body .homepage-exam-card .exam_card_img{aspect-ratio:2/1;max-height:200px}
body .homepage-exam-card .exam_card_info{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:stretch}
body .homepage-exam-card .scholarship-tabs{grid-column:1/-1;margin:2px 0 4px}
body .homepage-exam-card .scholarship-label-list{gap:4px}
body .homepage-exam-card .scholarship-label{font-size:11px;padding:5px 7px 5px 16px}
body .homepage-exam-card .scholarship-label::before{left:7px;top:11px}
body .homepage-exam-card .scholarship-more-btn{font-size:11px;padding:5px 8px}
body .homepage-exam-card .info_item{padding:9px 10px;gap:7px;align-items:flex-start}
body .homepage-exam-card .info_item i{font-size:14px;min-width:16px;padding-top:2px}
body .homepage-exam-card .info_value{font-size:12px;line-height:1.4}
body .homepage-exam-card .info_label{font-size:9px;letter-spacing:.04em}
body :is(.exam_detail_btn,.exam_apply_btn){min-width:0;min-height:44px;justify-content:center;padding:10px 8px;border-radius:10px;font-size:13px;line-height:1.3}
body .search_filter{max-width:1320px;margin:24px auto 0;padding:18px;gap:14px;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 4px 18px #0f172a06}
body .search_filter .form-col{min-width:0;flex:1 1 200px}
body .search_filter select{width:100%;min-width:0;max-width:100%;text-overflow:ellipsis}
body .get_s_card_main{max-width:1240px;width:100%;margin-inline:auto;gap:20px}
body .edu-wrapper{gap:28px;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,.85fr) minmax(0,1fr)}
body .edu-section a,body .contact-item{overflow-wrap:anywhere}
body .footer-enquiry-form :is(input,select,textarea){width:100%;max-width:100%;min-width:0;border-radius:9px}
body .whatsapp-float{width:50px;height:50px;right:18px;bottom:18px;z-index:990}

/* Forms remain spacious on desktop and become one column on phones. */
body .form-section{padding:24px clamp(16px,4vw,48px) 48px}
body .form-section>.form-container{max-width:1040px;margin-inline:auto;background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:clamp(18px,3vw,32px);box-shadow:0 8px 30px #0f172a08}
body .form-section .form-row{gap:18px;margin-bottom:20px}
body .form-section .exam-form{padding:0;background:transparent;box-shadow:none;border-radius:0}
body .form-section .form-col{flex:1 1 260px;min-width:0}
body .form-section :is(.form-input,.form-select,.form-textarea){width:100%;min-width:0;max-width:100%;border-color:#cbd5e1;border-radius:9px;min-height:46px}
body .exam-header-content{min-width:0}
body .exam-header-card{padding:22px;gap:16px}
body .exam-header-title{overflow-wrap:anywhere}

/* Popup fits the viewport and scrolls internally without covering its close control. */
body #eduExamModal{z-index:1200;padding:24px;overscroll-behavior:contain}
body .exam-modal-content{max-width:760px;width:100%;margin:0 auto;border-radius:18px}
body .exam-close-btn{width:40px;height:40px;right:14px;top:14px}
body button.exam-close-btn{border:0;font-family:inherit}
body .exam-details{padding:24px}
body .info-grid-modal{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body .info-item-modal{min-width:0;overflow-wrap:anywhere}
body .description-content{max-width:100%;overflow-x:auto}
body .exam-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body .exam-box{min-width:0}
body .exam-box .exam-title{font-size:18px;line-height:1.4;color:#1e3a5f;max-height:none;display:block;padding:0;overflow-wrap:anywhere}
body .about-section{padding:48px 24px}
body .about-container{padding:32px;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 8px 24px #0f172a08}
body .about-content{font-size:16px;line-height:1.8;overflow-wrap:anywhere}
body .recent-updates-container{padding:40px 24px}
body .update-card-item{min-width:0}

@media(min-width:1600px){body .main_slider_item{padding-inline:max(60px,calc((100vw - 1400px)/2))}}
@media(max-width:1100px){
 :root{--public-header-height:68px}
 body .header-container{padding-inline:20px}
 body .menu-toggle{display:flex;width:44px;height:44px;align-items:center;justify-content:center;font-size:22px;position:relative;z-index:3}
 body .header_cancel{display:none}
 body .menu-open .header_bar{display:none}
 body .menu-open .header_cancel{display:inline;width:auto;height:auto;opacity:1}
 body .navithor-menu{position:fixed;top:var(--public-header-height);left:0;width:min(320px,88vw);max-width:none;height:calc(100dvh - var(--public-header-height));display:flex;flex-direction:column;align-items:stretch;padding:16px;gap:4px;background:#fff;border-right:1px solid #e2e8f0;box-shadow:10px 0 30px #0f172a20;transform:translateX(-105%);visibility:hidden;transition:transform .22s ease,visibility .22s;overflow-y:auto;z-index:2}
 body .menu-open .navithor-menu{transform:translateX(0);visibility:visible}
 body .navithor-menu a{white-space:normal;padding:12px 14px;border-radius:9px;width:100%;font-size:15px}
 body .navithor-menu a[aria-current=page]{background:#eff4fa}
 body .navithor-menu a::after{display:none}
 body .navithor-menu .nav-exam-btn{margin:12px 0 0;justify-content:center}
 body .nav-dropdown{width:100%;display:flex;flex-direction:column;align-items:stretch}
 body .nav-dropdown-menu{display:block;position:static;transform:none;box-shadow:none;border:0;border-left:2px solid #e2e8f0;margin:0 0 0 16px;min-width:0;border-radius:0;background:#f8fafc}
 body .menu_blur_overlay{display:none;position:fixed;inset:var(--public-header-height) 0 0;background:#0f172a80;z-index:1}
 body .menu-open .menu_blur_overlay{display:block}
 body .main_slider_item{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);padding:32px 24px;gap:24px}
 body .slider_content{padding:24px;gap:16px}
 body .slider_content .title{font-size:28px}
 body .main_slider .custom-prev,body .main_slider .custom-next{display:none!important}
 body .exam_card_slider:not(.slick-initialized){grid-template-columns:repeat(2,minmax(0,1fr))}
 body .exam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .edu-wrapper{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 body .header-container{padding-inline:16px;gap:12px}
 body .header-logo img{width:38px;height:38px}
 body .header-brand-name{font-size:15px;max-width:230px}
 body .main_slider_item{grid-template-columns:minmax(0,1fr);padding:20px 16px 24px;gap:18px}
 body .slider_content{max-width:none;padding:20px;border-radius:16px;gap:16px;box-shadow:0 10px 25px #0f172a20}
 body .slider_content .title{font-size:26px;line-height:1.2}
 body .slider-image-wrapper{max-width:none;width:100%;aspect-ratio:16/9;border-radius:16px}
 body .exam-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 body .meta-item{width:auto;font-size:12px;padding:9px;gap:7px;line-height:1.45}
 body .meta-item-full{grid-column:1/-1}
 body .meta-item i{flex-shrink:0;font-size:14px}
 body .badge-new{font-size:10px;padding:6px 12px}
 body .main_slider .scholarship-tabs{margin:0}
 body .main_slider .scholarship-label{font-size:12px;padding:7px 9px 7px 19px}
 body .main_slider .scholarship-label::before{left:8px;top:13px}
 body .btn-apply-now{min-height:46px;font-size:13px}
 body :is(.scholarship-section,.achiver_section,.get_scholarship_section,.about_us_section,.contact-page-section){padding:32px 16px}
 body .exam_card_slider:not(.slick-initialized){grid-template-columns:minmax(0,1fr);max-width:500px;gap:18px}
 body .exam_card_slider.slick-initialized{margin:20px -6px 0}
 body .exam_card_slider.slick-initialized .exam_card_item{margin-inline:6px}
 body .exam_card_content{padding:18px;gap:14px}
 body .exam_card_title{font-size:19px}
 body .exam_card_item:hover{transform:none}
 body .search_filter{margin:16px;gap:16px;padding:16px}
 body .search_filter .form-col{flex:1 1 100%}
 body .get_s_card_main{grid-template-columns:minmax(0,1fr);gap:16px}
 body .edu-footer{padding:32px 18px 0}
 body .edu-wrapper{grid-template-columns:minmax(0,1fr);gap:26px}
 body .footer-logo{width:64px;height:64px}
 body .footer-logo-container{margin-bottom:10px}
 body .edu-section h3{margin-bottom:14px}
 body .whatsapp-float{width:46px;height:46px;right:12px;bottom:12px}
 body .whatsapp-float img{width:28px;height:28px}
 body .form-section{padding:16px 12px 32px}
 body .form-section>.form-container{padding:18px 14px;border-radius:14px}
 body .form-section .form-col{flex-basis:100%;min-width:0}
 body .form-section .form-row{gap:18px}
 body .form-section :is(input,select,textarea){font-size:16px}
 body .exam-header-card{padding:16px;gap:12px}
 body .exam-header-title{font-size:20px}
 body .view-exam-detail-btn{width:100%;justify-content:center}
 body .payment-section{padding:12px;gap:14px}
 body :is(.payment-detail,.qr-code){min-width:0;flex-basis:100%;padding:14px}
 body #eduExamModal{padding:12px 8px}
 body .exam-modal-content{border-radius:14px}
 body .modal-header{padding:24px 18px}
 body .exam-modal-content .exam-title{font-size:22px;line-height:1.3;padding-right:40px}
 body .exam-details{padding:18px 16px}
 body .info-grid-modal{grid-template-columns:minmax(0,1fr);gap:10px}
 body .info-item-full{grid-column:auto}
 body .section-title{font-size:18px}
 body .contact-page-section .contact-info{padding:20px 16px}
 body .contact-page-section .contact-info p{padding:12px;font-size:14px;align-items:flex-start;overflow-wrap:anywhere}
 body .exam-grid{grid-template-columns:minmax(0,1fr)}
 body .about-section{padding:28px 16px}
 body .about-container{padding:20px 18px;border-radius:14px}
 body .about-heading{font-size:25px;margin-bottom:18px}
 body .about-content{font-size:15px;line-height:1.75}
 body .recent-updates-container{padding:30px 16px}
 body .updates-grid-layout{grid-template-columns:minmax(0,1fr)}
 body .update-card-item{padding:16px;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){body *,body *::before,body *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Delivery type remains visible on every public exam surface. */
.exam-mode-badge { display:inline-flex;align-items:center;align-self:flex-start;max-width:100%;padding:5px 9px;border-radius:6px;font-size:11px;font-weight:700;line-height:1.35;margin:0 0 8px; }
.mode-online { color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe; }
.mode-offline { color:#0f766e;background:#f0fdfa;border:1px solid #99f6e4; }
.slider_content .exam-mode-badge { margin-top:12px;margin-bottom:0; }
.exam-delivery-note { padding:12px 14px;margin:8px 0 16px;border:1px solid #cbd5e1;border-radius:9px;background:#f8fafc;color:#334155;font-size:13px;line-height:1.55;width:100%;box-sizing:border-box;overflow-wrap:anywhere; }
.exam-delivery-note[hidden] { display:none; }
.exam-delivery-note p { margin:8px 0; }
.exam-delivery-note a { color:#1d4ed8;text-decoration:underline; }

/* Application layout: compact spacing without reducing input touch targets. */
body.application-page .exam_form_title { margin: 20px 16px 0; line-height: 1.3; }
body.application-page .form-section { padding-top: 24px; }
body.application-page .form-section .form-row { gap: 16px; margin-bottom: 18px; }
body.application-page #exam_form .form-col:empty { display: none; }
body.application-page #exam_form .form-check { margin-bottom: 0; min-height: 32px; }
body.application-page #exam_form .form-label { max-width: calc(100% - 24px); }
body.application-page #exam_form .form-check-group { gap: 18px; }
@media (max-width: 600px) {
  body.application-page .exam_form_title { font-size: 23px; margin-top: 20px; }
  body.application-page .form-section { padding-top: 20px; }
  body.application-page #exam_form .form-col { flex-basis: 100%; }
  body.application-page #exam_form .submit-btn { width: 100%; min-height: 46px; }
  body.application-page .form-section .form-row { gap: 16px; margin-bottom: 16px; }
}
