/*
Theme Name: Scholarship Hub Uganda
Author: OpenAI
Description: Lightweight scholarship and education support theme for Uganda.
Version: 2.2.4
*/
:root{--navy:#102d59;--orange:#f59b23;--cream:#fbfaf6;--ink:#121820;--muted:#667085;--card:#fff}*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;color:var(--ink);background:#fff}a{text-decoration:none;color:inherit}.wrap{max-width:1180px;margin:auto;padding:0 22px}.top{background:#fff;padding:18px 0;position:sticky;top:0;z-index:20;box-shadow:0 2px 12px #0000000d}.nav{display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-weight:800;font-size:22px;color:var(--navy)}.brand span{color:var(--orange)}nav a{margin:0 12px;font-weight:600}.btn{display:inline-block;background:var(--orange);padding:14px 20px;border-radius:9px;font-weight:700}.hero{background:linear-gradient(100deg,#fbfaf6 58%,#eef3fa 58%);padding:75px 0}.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:45px;align-items:center}.eyebrow{color:var(--orange);font-weight:800;text-transform:uppercase;letter-spacing:.08em}.hero h1{font-size:58px;line-height:1.02;margin:12px 0 20px}.hero h1 span{color:var(--orange)}.hero p{font-size:19px;line-height:1.65;color:#4b5563}.hero img{width:100%;height:480px;object-fit:cover;object-position:center;border-radius:26px}.hero-image-wrap{overflow:hidden;border-radius:26px;background:#fff}.section{padding:70px 0}.navy{background:var(--navy);color:#fff}.center{text-align:center}.section h2{font-size:38px;margin:0 0 14px}.sub{color:#667085;max-width:760px;margin:0 auto 35px;line-height:1.6}.navy .sub{color:#d8e2f0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:#fff;border:1px solid #e8e8e8;border-radius:16px;padding:24px;box-shadow:0 8px 30px #0000000a}.card h3{margin:10px 0}.tag{display:inline-block;background:#fff2df;color:#9b5700;padding:7px 10px;border-radius:20px;font-size:13px;font-weight:700}.meta{color:#667085;line-height:1.7}.navy .card{color:var(--ink)}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.step{padding:26px;border-radius:16px;background:#ffffff10}.num{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--orange);color:#111;font-weight:800}.formbox{background:#17396d;border-radius:22px;padding:35px}.formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.formbox input,.formbox select,.formbox textarea{width:100%;padding:14px;border:0;border-radius:8px;font:inherit}.formbox textarea{min-height:110px}.full{grid-column:1/-1}.formbox button{border:0;cursor:pointer}.dest{font-size:34px}.footer{background:#0b2142;color:#dbe5f3;padding:38px 0}.notice{background:#fff7e8;border-left:4px solid var(--orange);padding:16px;border-radius:6px;color:#6b4a15;margin-top:22px}@media(max-width:800px){.hero-grid,.cards,.steps,.formgrid{grid-template-columns:1fr}.hero h1{font-size:42px}.hero{padding:45px 0}.hero img{height:360px}nav{display:none}}

.pagination{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:34px}.pagination a,.pagination .page-numbers{min-width:38px;height:38px;padding:0 11px;border:1px solid #d8dee8;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:#fff;font-weight:700}.pagination a.current,.pagination .current{background:var(--navy);color:#fff;border-color:var(--navy)}.closed-card{opacity:.72}.closed-tag{background:#f3f4f6;color:#6b7280}.formbox small{display:block;color:#dbe5f3;margin-top:7px}.formbox select[multiple]{min-height:210px}
/* v1.4 scholarship selector */
.shu-choice-head{display:flex;justify-content:space-between;gap:12px;margin:9px 0;font-size:13px;font-weight:700}.shu-choice-list{background:#fff;border-radius:8px;max-height:300px;overflow:auto;padding:6px;color:#17233a;border:1px solid #d9e0ea}.shu-choice{display:flex;align-items:flex-start;gap:10px;padding:10px;border-bottom:1px solid #edf0f4;cursor:pointer}.shu-choice:last-child{border-bottom:0}.shu-choice:hover{background:#f7f9fc}.shu-choice input{width:auto;margin-top:4px}.shu-choice span{display:block}.shu-choice small{display:block;color:#667085;margin-top:3px}.shu-choice input:checked+span strong{color:#e88708}.disabled-btn{opacity:.55;cursor:not-allowed}.scholarship-detail{max-width:1000px}

/* v1.8 contact and footer */
.contact-section{background:#fbfaf6}.contact-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;text-align:left}.contact-card{background:#fff;border:1px solid #e7eaf0;border-radius:16px;padding:24px;box-shadow:0 8px 26px #00000008}.contact-card h3{color:var(--navy);margin:10px 0 8px}.contact-card p{color:#667085;line-height:1.6;margin:0;word-break:break-word}.contact-card a{color:var(--navy);font-weight:700}.contact-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#fff2df;font-size:20px}.footer-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:55px;align-items:start}.footer-brand{font-size:20px;color:#fff}.footer p{line-height:1.7}.footer a{color:#fff}.footer-contact strong{color:#fff}.footer-wa{color:#ffc46f!important;font-weight:800}@media(max-width:800px){.contact-cards,.footer-grid{grid-template-columns:1fr}.footer-grid{gap:28px}}

/* v1.9 premium contact + footer only */
.contact-section{background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);border-top:1px solid #edf1f6}.contact-heading{margin-bottom:34px}.contact-kicker{display:inline-block;color:var(--orange);font-size:13px;font-weight:800;letter-spacing:.13em;margin-bottom:10px}.contact-heading h2{color:#0b2142}.contact-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;text-align:left}.contact-card{display:flex;align-items:flex-start;gap:16px;min-height:178px;background:#fff;border:1px solid #e4eaf2;border-radius:18px;padding:24px;box-shadow:0 12px 34px rgba(16,45,89,.08);transition:transform .2s ease,box-shadow .2s ease}.contact-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(16,45,89,.12)}.contact-icon{flex:0 0 48px;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#fff1df;color:#f28c00;font-size:21px;font-weight:900}.phone-icon,.email-icon{background:#eaf2ff;color:#17396d}.whatsapp-icon{background:#e7f8ee;color:#12a150;font-size:16px}.contact-card h3{color:#102d59;font-size:18px;margin:2px 0 9px}.contact-card p{color:#536174;line-height:1.55;margin:0 0 10px;word-break:break-word}.contact-card p a{color:#102d59;font-weight:800}.contact-note{font-size:13px;color:#8994a5}.contact-action{display:inline-block;margin-top:3px;color:#e77f00!important;font-size:14px;font-weight:800}.whatsapp-action{color:#0b9447!important}
.premium-footer{background:linear-gradient(115deg,#071a35,#0d315e);padding:54px 0 22px;color:#dce6f3}.footer-grid-premium{display:grid;grid-template-columns:1.45fr .65fr 1fr;gap:58px}.footer-logo{color:#fff;font-size:23px;font-weight:800;margin-bottom:14px}.footer-about p{max-width:440px;line-height:1.7;margin:0 0 12px}.footer-about small{display:block;color:#aebdd0;line-height:1.6;max-width:480px}.footer-links strong,.footer-contact>strong{display:block;color:#fff;font-size:16px;margin-bottom:17px}.footer-links{display:flex;flex-direction:column;align-items:flex-start}.footer-links a{color:#dce6f3;margin:0 0 11px}.footer-links a:hover,.footer-contact a:hover{color:#ffc46f}.footer-contact-row{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px;line-height:1.5}.footer-contact-row a{color:#fff}.footer-wa{display:inline-block;margin-top:7px;color:#5de393!important;font-weight:800}.footer-bottom{border-top:1px solid rgba(255,255,255,.13);margin-top:38px;padding-top:20px;display:flex;justify-content:space-between;gap:20px;color:#9fb0c5;font-size:13px}
@media(max-width:950px){.contact-cards{grid-template-columns:repeat(2,1fr)}.footer-grid-premium{grid-template-columns:1.2fr .8fr}.footer-contact{grid-column:1/-1}}
@media(max-width:650px){.contact-cards,.footer-grid-premium{grid-template-columns:1fr}.contact-card{min-height:auto}.footer-contact{grid-column:auto}.footer-bottom{flex-direction:column}.contact-section{padding:52px 0}}

/* v2.1 selected scholarships summary */
.shu-selected-wrap{display:none;background:#f7faff;border:1px solid #cfdcf0;border-radius:10px;padding:12px;margin:9px 0 12px;color:#17233a}.shu-selected-wrap.has-selection{display:block}.shu-selected-title{font-size:13px;font-weight:800;color:#17396d;margin-bottom:8px}.shu-selected-list{display:flex;flex-wrap:wrap;gap:8px}.shu-selected-chip{display:flex;align-items:center;gap:9px;max-width:100%;border:1px solid #f1c27d;background:#fff7e8;color:#17396d;border-radius:9px;padding:8px 10px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;text-align:left}.shu-selected-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shu-selected-chip b{color:#c75e00;font-size:18px;line-height:1}.shu-selected-chip:hover{background:#fff0d5}


/* v2.2 mobile registration/detail fixes */
#apply{scroll-margin-top:100px}
.formgrid>*{min-width:0;max-width:100%}
.formbox,.formgrid,.formgrid .full,.shu-selected-wrap,.shu-selected-list,.shu-choice-list{min-width:0;max-width:100%}
.shu-selected-chip{min-width:0}
.shu-selected-chip span{min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word}
.shu-choice span{min-width:0;overflow-wrap:anywhere}
.shu-choice-head{flex-wrap:wrap}
.shu-choice-head span{min-width:0;overflow-wrap:anywhere}

@media(max-width:800px){
  html,body{max-width:100%;overflow-x:hidden}
  .wrap{width:100%;max-width:100%;padding-left:16px;padding-right:16px}
  .scholarship-detail{width:100%;max-width:100%}
  .scholarship-detail>.cards{grid-template-columns:1fr!important}
  .formbox{width:100%;max-width:100%;padding:24px 18px;border-radius:18px;overflow:hidden}
  .formbox h2{font-size:34px;line-height:1.08;overflow-wrap:anywhere}
  .formbox p{overflow-wrap:anywhere}
  .formgrid{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%}
  .formgrid input,.formgrid select,.formgrid textarea,.formgrid button{display:block;width:100%;max-width:100%;min-width:0}
  .formgrid label{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .shu-selected-wrap{width:100%;padding:12px 10px}
  .shu-selected-list{width:100%}
  .shu-selected-chip{width:100%;max-width:100%;justify-content:space-between}
  #shu-search{width:100%;max-width:100%}
  .shu-choice-head{display:flex;align-items:flex-start;justify-content:space-between;gap:6px 12px}
  .shu-choice-head span{flex:1 1 140px}
  .shu-choice-head span:last-child{text-align:right}
  .shu-choice-list{width:100%;max-width:100%}
  .shu-choice{width:100%;max-width:100%}
  #apply{scroll-margin-top:125px}
}

@media(max-width:480px){
  .formbox{padding:22px 14px}
  .formbox h2{font-size:32px}
  .shu-choice-head span{flex-basis:100%}
  .shu-choice-head span:last-child{text-align:left}
}

/* v2.2.1 mandatory course/programme fields */
.shu-course-fields{display:grid;gap:12px}.shu-course-card{background:#f7faff;color:#17396d;border:1px solid #cfdcf0;border-radius:10px;padding:12px}.shu-course-card label{display:block;margin-bottom:7px}.shu-course-card small{color:#667085}.shu-course-card select,.shu-course-card input{border:1px solid #d6deea!important;background:#fff}
