/* OTC Hackathon — challenge grid fix; scoped to student page */
.student-page #listing{max-width:1160px;margin:48px auto 0}
.student-page #listing .section-title{margin:0 0 26px;display:block}
.student-page #listing .section-title>div{width:100%}
.student-page #listing .section-title h2{font-size:clamp(27px,3.2vw,43px);line-height:1.25;letter-spacing:-.035em;margin:8px 0 12px}
.student-page #listing .section-title p{font-size:15px;line-height:1.7}
.student-page[dir="ltr"] #listing,.student-page[dir="ltr"] #listing *{text-align:left}
.student-page[dir="rtl"] #listing,.student-page[dir="rtl"] #listing *{text-align:right}
.student-page #cases.hack-challenges{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important;align-items:stretch!important;direction:inherit;max-width:none!important;margin:0!important}
.student-page #cases .v4challenge{display:flex!important;flex-direction:column!important;min-width:0!important;height:100%!important;padding:0!important;margin:0!important;border:1px solid #dfe8e2!important;border-radius:18px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 12px 32px rgba(17,48,34,.06)!important;transform:none;transition:transform .2s,box-shadow .2s}
.student-page #cases .v4challenge:hover{transform:translateY(-4px)!important;box-shadow:0 18px 38px rgba(17,48,34,.12)!important}
.student-page #cases .challenge-photo{height:190px;flex:none;position:relative;overflow:hidden;background-color:#dce7df;background-size:cover;background-position:center}
.student-page #cases .challenge-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,27,17,.03) 40%,rgba(5,27,17,.4) 100%)}
.student-page #cases .challenge-number{position:absolute;z-index:1;top:14px;inset-inline-start:14px;background:#fff;color:#b52136;border-radius:9px;padding:9px 12px;font-weight:800;font-size:12px;letter-spacing:1px}
.student-page #cases .challenge-body{padding:22px;display:flex;flex:1;flex-direction:column;gap:20px;min-height:182px}
.student-page #cases .challenge-body h3{margin:0!important;flex:1;font-size:clamp(16px,1.45vw,19px)!important;line-height:1.65!important;font-weight:750!important;letter-spacing:0!important;overflow-wrap:anywhere;color:#1a3025}
.student-page #cases .challenge-body button{width:100%;min-height:46px;margin:0!important;text-align:center!important;justify-content:center!important;border-radius:10px!important;font-size:13px}
.student-page #listing .v4cta{margin:34px 0 0;text-align:center!important;display:flex;justify-content:center}
.student-page #listing .v4cta button{text-align:center!important}
/* Photo URLs are real photography references; when offline, cards retain a neutral gradient. */
.student-page #cases .challenge-photo-1{background-image:linear-gradient(135deg,rgba(28,80,45,.08),rgba(109,118,57,.14)),url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1000&q=85')}
.student-page #cases .challenge-photo-2{background-image:linear-gradient(135deg,rgba(63,62,56,.12),rgba(112,68,43,.12)),url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=1000&q=85')}
.student-page #cases .challenge-photo-3{background-image:linear-gradient(135deg,rgba(34,85,74,.10),rgba(39,65,69,.16)),url('https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=1000&q=85')}
.student-page #cases .challenge-photo-4{background-image:linear-gradient(135deg,rgba(20,63,64,.12),rgba(27,83,69,.12)),url('https://images.unsplash.com/photo-1473968512647-3e447244af8f?auto=format&fit=crop&w=1000&q=85')}
.student-page #cases .challenge-photo-5{background-image:linear-gradient(135deg,rgba(12,45,66,.12),rgba(16,65,75,.14)),url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1000&q=85')}
.student-page .v4hero{height:auto!important;min-height:0!important}
.student-page .v4hero h1,.student-page .v4hero h2,.student-page .v4hero p{max-width:900px}
.student-page[dir="ltr"] .v4hero,.student-page[dir="ltr"] .v4hero *{text-align:left!important;direction:ltr!important}
.student-page[dir="rtl"] .v4hero,.student-page[dir="rtl"] .v4hero *{text-align:right!important;direction:rtl!important}
@media(max-width:980px){.student-page #cases.hack-challenges{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.student-page #listing{margin-top:30px}.student-page #cases.hack-challenges{grid-template-columns:1fr!important;gap:16px!important}.student-page #cases .challenge-photo{height:205px}.student-page #cases .challenge-body{min-height:0;padding:18px}.student-page #listing .section-title h2{font-size:27px}}

/* Infathon 2026 content and header updates */
.student-page .premium-event{display:none!important}
.student-page .hackathon-logo-header{justify-content:center!important;position:relative;min-height:116px}
.student-page .premium-logos{margin-inline:auto!important;justify-content:center!important;display:flex!important;align-items:center!important}
.student-page .lang-toggle{position:absolute;inset-inline-end:20px;top:50%;transform:translateY(-50%)}
.student-page .v4hero h1{line-height:1.4!important}
.student-page .infathon-title{display:inline-block;color:inherit}
.student-page .infathon-intro{line-height:2!important;max-width:1050px!important;margin-block:20px!important}
.student-page .infathon-download{margin-top:23px;display:flex;justify-content:flex-start}
.student-page[dir=rtl] .infathon-download{justify-content:flex-start}
.student-page .infathon-download a{white-space:normal;text-align:center}
@media(max-width:700px){.student-page .hackathon-logo-header{padding-bottom:72px!important}.student-page .lang-toggle{top:auto;bottom:12px;inset-inline-end:50%;transform:translateX(50%)}.student-page .premium-logos{max-width:100%;gap:12px}.student-page .infathon-intro{line-height:1.85!important}}

/* FIX: physical left edge regardless of Arabic RTL / English LTR. */
html body.student-page header.premium-header .hackathon-logo-header{position:relative!important}
html body.student-page header.premium-header .hackathon-logo-header > .lang-toggle{
 position:absolute!important;left:18px!important;right:auto!important;
 inset-inline-start:unset!important;inset-inline-end:unset!important;
 margin:0!important;float:none!important;top:50%!important;bottom:auto!important;
 transform:translateY(-50%)!important;direction:ltr!important;z-index:100!important;
}
@media(max-width:700px){
 html body.student-page header.premium-header .hackathon-logo-header{padding-bottom:78px!important}
 html body.student-page header.premium-header .hackathon-logo-header > .lang-toggle{
 left:14px!important;right:auto!important;top:auto!important;bottom:12px!important;
 transform:none!important;
 }
}

/* FINAL: language selector pinned to physical LEFT of the header in both directions */
html body.student-page header.premium-header .hackathon-logo-header {position:relative!important;direction:ltr!important;}
html body.student-page header.premium-header .hackathon-logo-header > .lang-toggle {
  position:absolute!important;left:16px!important;right:auto!important;
  inset-inline-start:auto!important;inset-inline-end:auto!important;
  top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;
  margin:0!important;float:none!important;direction:ltr!important;z-index:999!important;
}
html body.student-page .infathon-download-note {margin:26px 0 10px;line-height:1.8;}
html body.student-page .infathon-download-note strong {display:block;font-size:clamp(19px,2vw,25px);font-weight:800;}
html body.student-page .infathon-download-note p {margin:6px 0 0;}
@media(max-width:700px) {
 html body.student-page header.premium-header .hackathon-logo-header {padding-bottom:85px!important;}
 html body.student-page header.premium-header .hackathon-logo-header > .lang-toggle {
 left:12px!important;right:auto!important;top:auto!important;bottom:12px!important;transform:none!important;
 }
}

/* Aligned original OTC PDF + supplied Dhofar University logo, centered as a pair */
html body.student-page header.premium-header .hackathon-logo-header {
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;min-height:165px!important;padding:20px 150px!important;
  box-sizing:border-box!important;direction:ltr!important;
}
html body.student-page header.premium-header .premium-logos {
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:center!important;gap:clamp(18px,3vw,48px)!important;
  margin:0 auto!important;width:min(100%,700px)!important;direction:rtl!important;
}
html body.student-page header.premium-header .premium-partner {
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:min(42%,280px)!important;height:126px!important;flex:0 1 280px!important;
  padding:0!important;margin:0!important;min-width:0!important;
}
html body.student-page header.premium-header .premium-partner img {
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;object-fit:contain!important;
  object-position:center!important;margin:0!important;filter:none!important;
}
html body.student-page header.premium-header .premium-divider {
  display:block!important;width:1px!important;height:72px!important;flex:0 0 1px!important;
  background:#d7e2da!important;
}
html body.student-page header.premium-header .hackathon-logo-header > .lang-toggle {
  position:absolute!important;left:18px!important;right:auto!important;
  inset-inline-start:auto!important;inset-inline-end:auto!important;
  top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;
  z-index:1000!important;direction:ltr!important;
}
@media(max-width:750px){
 html body.student-page header.premium-header .hackathon-logo-header{
  min-height:185px!important;padding:14px 12px 65px!important;
 }
 html body.student-page header.premium-header .premium-logos{gap:12px!important;width:100%!important;}
 html body.student-page header.premium-header .premium-partner{
  width:44%!important;flex:1 1 44%!important;height:98px!important;
 }
 html body.student-page header.premium-header .premium-divider{height:52px!important;}
 html body.student-page header.premium-header .hackathon-logo-header > .lang-toggle{
  top:auto!important;bottom:12px!important;left:12px!important;right:auto!important;
  transform:none!important;
 }
}

/* Infathon 2026: updated challenge order, descriptions and registration */
.student-page #cases .v4challenge{position:relative}
.student-page #cases .challenge-summary{font-size:14px;line-height:1.8;color:#52665a;margin:0;max-height:0;opacity:0;overflow:hidden;transition:max-height .25s ease,opacity .25s ease}
.student-page #cases .v4challenge:hover .challenge-summary,.student-page #cases .v4challenge:focus-within .challenge-summary,.student-page #cases .v4challenge:focus .challenge-summary{max-height:170px;opacity:1}
@media (hover:none){.student-page #cases .challenge-summary{max-height:none;opacity:1}}
.student-page #cases .challenge-photo-1{background-image:linear-gradient(135deg,rgba(34,85,74,.10),rgba(39,65,69,.16)),url('https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=1000&q=85')}
.student-page #cases .challenge-photo-3{background-image:linear-gradient(135deg,rgba(20,63,64,.12),rgba(27,83,69,.12)),url('https://images.unsplash.com/photo-1473968512647-3e447244af8f?auto=format&fit=crop&w=1000&q=85')}
.student-page #cases .challenge-photo-4{background-image:linear-gradient(135deg,rgba(12,45,66,.12),rgba(16,65,75,.14)),url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1000&q=85')}
.student-page #cases .challenge-photo-5{background-image:linear-gradient(135deg,rgba(28,80,45,.08),rgba(109,118,57,.14)),url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1000&q=85')}
.student-page .interest-section,.student-page .consent-section{margin:26px 0;padding:22px;border:1px solid #dce8df;border-radius:16px;background:#f8fbf9}
.student-page .interest-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.student-page .interest-item,.student-page .consent-item{display:flex;align-items:flex-start;gap:12px;padding:13px;border:1px solid #e0e8e2;border-radius:11px;background:#fff;line-height:1.7;cursor:pointer}
.student-page .consent-item{margin:10px 0}
.student-page .interest-item input,.student-page .consent-item input{width:19px;height:19px;min-width:19px;margin-top:3px;accent-color:#236f45}
.student-page .member-row{padding:20px;margin:14px 0;border:1px solid #dce8df;border-radius:14px;background:#fff}
@media(max-width:720px){.student-page .interest-choices{grid-template-columns:1fr}}

/* Longer challenge descriptions: fully reveal on hover and keyboard focus. */
.student-page #cases .v4challenge:hover .challenge-summary,.student-page #cases .v4challenge:focus-within .challenge-summary,.student-page #cases .v4challenge:focus .challenge-summary{max-height:600px}
