/* INFATHON mobile layout correction v2 — no changes to desktop theme */
@media (max-width: 767px) {
 html, body.student-page {width:100%;max-width:100%;overflow-x:clip!important;}
 body.student-page, body.student-page * {box-sizing:border-box;}
 body.student-page .wrap {width:100%!important;max-width:100%!important;padding-inline:12px!important;}
 body.student-page .premium-header .hackathon-logo-header {display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:0!important;height:auto!important;padding:10px 12px!important;position:relative!important;}
 body.student-page .premium-logos {display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;width:100%!important;min-width:0!important;}
 body.student-page .premium-partner {flex:1 1 0!important;min-width:0!important;max-width:44%!important;}
 body.student-page .premium-partner img {display:block!important;width:100%!important;height:auto!important;max-height:62px!important;object-fit:contain!important;}
 body.student-page .premium-divider {flex:0 0 1px!important;height:42px!important;}
 html body.student-page .premium-header .hackathon-logo-header > .lang-toggle {position:static!important;inset:auto!important;transform:none!important;float:none!important;display:flex!important;align-self:auto!important;margin:0 auto 0 0!important;width:max-content!important;max-width:100%!important;z-index:1!important;}
 body.student-page .hackathon-logo-header > .premium-event {display:none!important;}
 body.student-page .v4hero {padding:20px 16px!important;min-height:0!important;height:auto!important;}
 body.student-page .v4hero p, body.student-page .infathon-intro {font-size:clamp(14px,3.8vw,17px)!important;line-height:1.8!important;overflow-wrap:break-word!important;}
 body.student-page .v4hero h1 {font-size:clamp(25px,7vw,36px)!important;line-height:1.35!important;}
 body.student-page :is(.interest-section,.consent-section) {width:100%!important;max-width:100%!important;min-width:0!important;padding:18px 14px!important;margin-block:14px!important;}
 body.student-page :is(.interest-section,.consent-section) h3 {font-size:clamp(18px,5vw,23px)!important;line-height:1.5!important;margin:0 0 12px!important;}
 body.student-page .interest-section .muted {margin:0 0 12px!important;font-size:14px!important;}
 body.student-page #interestChoices {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;width:100%!important;}
 body.student-page :is(.interest-item,.consent-item) {display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-start!important;gap:12px!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;padding:14px 12px!important;margin:0 0 10px!important;text-align:start!important;}
 body.student-page :is(.interest-item,.consent-item) input[type=checkbox] {display:block!important;flex:0 0 21px!important;width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;margin:2px 0 0!important;padding:0!important;position:static!important;transform:none!important;appearance:auto!important;accent-color:#17634b;}
 body.student-page :is(.interest-item,.consent-item) span {display:block!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;text-align:start!important;line-height:1.65!important;font-size:clamp(14px,3.9vw,16px)!important;font-weight:400!important;overflow-wrap:break-word!important;white-space:normal!important;}
 body.student-page .consent-section {display:flex!important;flex-direction:column!important;gap:0!important;}
 body.student-page #apply {width:100%!important;min-width:0!important;padding:18px 12px!important;}
 body.student-page #apply :is(.field,input:not([type=checkbox]),textarea,select) {max-width:100%!important;min-width:0!important;}
 body.student-page #apply :is(input:not([type=checkbox]),textarea,select) {font-size:16px!important;}
 body.student-page #apply .cols {display:grid!important;grid-template-columns:minmax(0,1fr)!important;}
 body.student-page #submitBtn {width:100%!important;max-width:100%!important;min-height:48px!important;position:relative!important;inset:auto!important;}
 body.student-page .notice {padding:14px!important;font-size:14px!important;line-height:1.7!important;}
 body.student-page #cases {grid-template-columns:minmax(0,1fr)!important;}
 body.student-page #cases > * {min-width:0!important;}
}
/* Follow document language for all selection labels and their checkbox positions. */
html[lang=ar] body.student-page :is(.interest-item,.consent-item) {direction:rtl!important;text-align:right!important;}
html[lang=en] body.student-page :is(.interest-item,.consent-item) {direction:ltr!important;text-align:left!important;}
html[lang=ar] body.student-page :is(.interest-item,.consent-item) span {direction:rtl!important;text-align:right!important;}
html[lang=en] body.student-page :is(.interest-item,.consent-item) span {direction:ltr!important;text-align:left!important;}
