:root{--navy:#102b48;--gold:#b58a3a;--ink:#172235;--muted:#66758a;--bg:#f5f7fa;--line:#e3e8ef;--white:#fff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}.wrap{width:min(1180px,92%);margin:auto}.top{background:var(--white);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.nav{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font:700 29px Georgia;color:var(--navy)}.brand span{color:var(--gold)}.brand img{max-height:52px;max-width:220px;object-fit:contain}.navlinks{display:flex;gap:20px;font-weight:700;font-size:14px}.btn{display:inline-block;background:var(--navy);color:#fff;padding:12px 18px;border-radius:7px;border:0;cursor:pointer;font-weight:700}.btn.gold{background:var(--gold)}.hero{background:linear-gradient(120deg,#0c2440,#183c60);color:#fff;padding:90px 0}.eyebrow{color:#d8b56e;letter-spacing:2px;text-transform:uppercase;font-size:11px;font-weight:800}.hero h1{font:700 clamp(42px,6vw,74px)/1.04 Georgia;max-width:900px;margin:16px 0}.hero p{max-width:720px;font-size:18px;line-height:1.8;color:#dce6ef}.stats{background:#fff;border-bottom:1px solid var(--line)}.statsgrid{display:grid;grid-template-columns:repeat(3,1fr)}.stat{text-align:center;padding:30px;border-right:1px solid var(--line)}.stat strong{display:block;font:700 40px Georgia;color:var(--navy)}.stat small{text-transform:uppercase;letter-spacing:1.4px;color:var(--muted)}.section{padding:65px 0}.section h2{font:700 38px Georgia;color:var(--navy);margin:0 0 25px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px;box-shadow:0 8px 25px rgba(16,43,72,.04)}.tag{font-size:11px;color:var(--gold);font-weight:800;text-transform:uppercase;letter-spacing:1.3px}.card h3{font:700 22px/1.35 Georgia;color:var(--navy)}.meta{color:var(--muted);font-size:13px;line-height:1.7}.footer{background:#0d2138;color:#dce6ef;padding:42px 0;margin-top:30px}.footer a{color:#fff}.searchbar{background:#fff;border:1px solid var(--line);padding:20px;border-radius:12px;margin:25px 0}.searchbar input,.searchbar select,.form input,.form select,.form textarea{width:100%;padding:12px;border:1px solid #ccd5df;border-radius:7px;font:inherit}.form label{display:block;font-weight:700;margin:15px 0 7px}.form textarea{min-height:130px;resize:vertical}.article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:42px;margin:45px 0}.article h1{font:700 46px/1.15 Georgia;color:var(--navy)}.abstract{background:#f4f6f9;border-left:4px solid var(--gold);padding:22px;margin:25px 0;line-height:1.8}.authorbox{display:flex;align-items:center;gap:16px;padding:18px;background:#f7f8fa;border-radius:10px;margin:22px 0}.avatar{width:82px;height:82px;border-radius:50%;object-fit:cover;background:#dde3ea;display:block}.pdf{width:100%;height:820px;border:1px solid var(--line);border-radius:8px}.share{background:#f5f7fa;padding:20px;border-radius:10px;margin:28px 0}.share a,.share button{display:inline-block;background:var(--navy);color:#fff;border:0;border-radius:6px;padding:9px 13px;margin:5px;cursor:pointer}.metrics{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted)}.notice{padding:15px;border-radius:8px;background:#eef6ff;border:1px solid #cfe3f7}.success{background:#ecfdf5;border-color:#b7e5ce}.danger{background:#fff1f1;border-color:#f2baba}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:13px;border-bottom:1px solid var(--line);text-align:left}.table th{background:#f4f6f9;color:var(--navy)}@media(max-width:850px){.navlinks{display:none}.cards{grid-template-columns:1fr 1fr}.statsgrid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.cards,.statsgrid{grid-template-columns:1fr}.article{padding:23px}.article h1{font-size:33px}.pdf{height:600px}}
.mobile-menu-btn{display:none;background:transparent;border:0;color:var(--navy);font-size:30px;line-height:1;padding:4px 8px;cursor:pointer}.mobile-menu{display:none}
@media(max-width:850px){.nav{position:relative}.mobile-menu-btn{display:block}.mobile-menu{position:absolute;right:0;top:68px;display:none;flex-direction:column;min-width:210px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgba(16,43,72,.15);padding:8px;z-index:50}.mobile-menu.open{display:flex}.mobile-menu a{padding:11px 13px;border-radius:7px;font-weight:700;color:var(--navy)}.mobile-menu a:hover{background:var(--bg)}.navlinks{display:none}}

.avatar-placeholder{display:flex;align-items:center;justify-content:center;background:#eef2f6;color:#64748b;font-size:30px;overflow:hidden}

/* V17 responsive layout */
@media (max-width:850px){
  .wrap{width:min(100% - 28px,1180px)}
  .nav{min-height:62px;gap:10px}
  .brand{font-size:24px}
  .section{padding:38px 0}
  .section h2{font-size:30px}
  .article{margin:25px 0;padding:24px 18px;border-radius:10px}
  .article h1{font-size:34px;overflow-wrap:anywhere}
  .authorbox{align-items:flex-start;flex-wrap:wrap}
  .author-profile-head{padding:16px}
  .author-profile-text{min-width:0;flex:1}
  .author-profile-text h1{margin-top:0}
  .pdf{height:70vh;min-height:480px}
  .share{overflow:hidden}
  .share a,.share button{margin:4px 2px}
  .table{display:block;overflow-x:auto;white-space:nowrap}
  .formgrid{grid-template-columns:1fr!important}
}
@media (max-width:560px){
  .wrap{width:calc(100% - 20px)}
  .article{padding:18px 14px;margin:16px 0}
  .article h1{font-size:28px;line-height:1.18}
  .authorbox{gap:12px}
  .avatar{width:68px;height:68px;flex:0 0 68px}
  .author-profile-head{display:flex}
  .author-profile-text{font-size:13px}
  .author-profile-text h1{font-size:27px}
  .pdf{height:65vh;min-height:420px}
  .hero{padding:55px 0}
  .hero h1{font-size:42px}
  .hero p{font-size:16px}
  .cards{grid-template-columns:1fr}
  .card{padding:18px}
  .searchbar{padding:14px}
  .form{padding:16px}
  input,select,textarea{max-width:100%}
  .mobile-menu{right:0;top:58px;width:min(260px,calc(100vw - 30px));min-width:0}
}

/* =========================================================
   V18 — FULL MOBILE-FIRST RESPONSIVE LAYER
   Public website + Admin portal
   ========================================================= */
html{max-width:100%;overflow-x:hidden}
body{max-width:100%;overflow-x:hidden}
img,svg,video,canvas{max-width:100%;height:auto}
iframe{max-width:100%}
button,input,select,textarea{max-width:100%}
input[type="file"]{font-size:14px}

/* Public navigation */
@media (max-width:850px){
  .top .nav{padding:0 2px}
  .top .nav>a{min-width:0}
  .top .nav>a:not(.brand){font-size:13px}
  .brand{white-space:nowrap}
}

/* Public content */
.public-grid,.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.public-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.two-col{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:28px}
.responsive-flex{display:flex;flex-wrap:wrap;gap:15px}
.responsive-flex>*{min-width:0}
.long-text,.article,.card,.notice{overflow-wrap:anywhere;word-break:normal}
.article img:not(.avatar){max-width:100%;height:auto}
.article table{display:block;max-width:100%;overflow-x:auto}
.article pre,.article code{white-space:pre-wrap;overflow-wrap:anywhere}
.searchbar form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.searchbar form>*{min-width:0}
.share{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.share b{width:100%;margin-bottom:4px}
.authorbox{min-width:0}
.authorbox>div{min-width:0}
.authorbox h1,.authorbox h2,.authorbox p{overflow-wrap:anywhere}
.cards .card{min-width:0}
.card .btn{max-width:100%}
.footer .wrap{min-width:0}

/* Admin base */
.admin-shell{max-width:100%;overflow-x:hidden}
.side{z-index:100}
.main{min-width:0}
.main .section{min-width:0}
.main h1,.main h2,.main h3{overflow-wrap:anywhere}
.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-wrap .table{min-width:680px}
.main .table{min-width:680px}
.main .form{max-width:100%}
.main .form input,.main .form select,.main .form textarea{max-width:100%}
.action{max-width:100%}
.action input,.action select{min-width:0}

/* Admin dashboard cards */
.dash{min-width:0}
.dc{min-width:0;overflow:hidden}

/* Admin mobile navigation / sidebar */
@media (max-width:850px){
  .side{
    position:relative!important;
    left:auto!important;top:auto!important;bottom:auto!important;
    width:100%!important;
    padding:12px 12px 8px!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:4px!important;
  }
  .side>div{
    width:100%!important;
    margin:0 0 5px!important;
    font-size:22px!important;
  }
  .side a{
    display:inline-block!important;
    padding:8px 10px!important;
    margin:0!important;
    font-size:12px!important;
    white-space:nowrap;
  }
  .main{
    margin-left:0!important;
    padding:18px 12px!important;
  }
  .dash{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .dc{padding:15px!important}
  .dc strong{font-size:28px!important}
  .main .section{padding:25px 0!important}
}

/* All public/admin tables become scrollable instead of breaking the viewport */
.table{
  max-width:100%;
}
.table th,.table td{
  overflow-wrap:anywhere;
}
@media(max-width:700px){
  .table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap}
  .table thead,.table tbody{width:100%}
}

/* Forms */
@media(max-width:700px){
  .formgrid,.public-grid,.public-grid-3,.two-col{
    grid-template-columns:1fr!important;
  }
  .form{padding:16px!important}
  .form input,.form select,.form textarea,
  .field input,.field textarea{
    font-size:16px!important; /* prevents iOS zoom */
  }
  .action{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .action input,.action select,.action button{
    width:100%!important;
  }
}

/* Small phones */
@media(max-width:560px){
  .wrap{width:calc(100% - 18px)!important}
  .section{padding:28px 0!important}
  .section h2{font-size:27px!important}
  .hero{padding:48px 0!important}
  .hero h1{font-size:38px!important}
  .hero p{font-size:15px!important;line-height:1.65}
  .statsgrid{grid-template-columns:1fr!important}
  .stat{padding:20px!important;border-right:0;border-bottom:1px solid var(--line)}
  .stat strong{font-size:32px!important}
  .article{padding:16px 12px!important;margin:15px 0!important}
  .article h1{font-size:27px!important}
  .abstract{padding:15px!important}
  .authorbox{padding:13px!important}
  .share{padding:13px!important}
  .share a,.share button{font-size:13px!important;padding:8px 10px!important}
  .pdf{height:65vh!important;min-height:400px!important}
  .cards{grid-template-columns:1fr!important}
  .card{padding:17px!important}
  .searchbar{padding:13px!important}
  .searchbar form{grid-template-columns:1fr!important}
  .btn{max-width:100%;white-space:normal}
  .main h1{font-size:30px!important}
  .main .table{min-width:620px}
  .side a{font-size:11px!important;padding:7px 8px!important}
}

/* Prevent long URLs/email addresses from forcing horizontal scroll */
a[href],td,th,p,small,span,div{
  overflow-wrap:anywhere;
}

/* Mobile-friendly PDF and media */
.pdf{display:block}
@media(max-width:700px){
  .pdf{width:100%!important}
  .article iframe{width:100%!important}
}

/* Touch targets */
@media(max-width:850px){
  a.btn,button.btn,.mobile-menu a,.share a,.share button{
    min-height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
}

/* V19 — exact mobile navigation + author profile card */
@media (max-width:850px){
  .top .nav{
    min-height:60px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    padding:0 4px!important;
  }
  .top .nav .brand{
    flex:1 1 auto!important;
    min-width:0!important;
    font-size:23px!important;
  }
  .top .nav>a:not(.brand){
    display:none!important;
  }
  .mobile-menu-btn{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 44px!important;
    width:44px!important;
    height:44px!important;
    padding:0!important;
    margin:0!important;
    border:1px solid var(--line)!important;
    border-radius:8px!important;
    background:#fff!important;
    color:var(--navy)!important;
    font-size:28px!important;
    font-weight:700!important;
    line-height:1!important;
    cursor:pointer!important;
  }
  .mobile-menu{
    top:58px!important;
    right:0!important;
    width:240px!important;
    min-width:0!important;
    max-width:calc(100vw - 20px)!important;
    background:#fff!important;
    border:1px solid var(--line)!important;
    border-radius:12px!important;
    box-shadow:0 14px 35px rgba(16,43,72,.18)!important;
    padding:8px!important;
  }
  .mobile-menu a{
    display:flex!important;
    width:100%!important;
    min-height:44px!important;
    align-items:center!important;
    padding:10px 13px!important;
    border-radius:8px!important;
    font-size:14px!important;
    font-weight:700!important;
  }
}

/* Author listing cards: photo above, name below, details after */
@media (max-width:700px){
  .authors-grid .card,
  .cards .author-card{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    text-align:center!important;
  }
  .authors-grid .avatar,
  .cards .author-card .avatar{
    width:120px!important;
    height:120px!important;
    min-width:120px!important;
    min-height:120px!important;
    margin:0 auto 14px!important;
    border-radius:50%!important;
    object-fit:cover!important;
    display:block!important;
  }
  .authors-grid .avatar-placeholder,
  .cards .author-card .avatar-placeholder{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
}

/* Individual author profile: photo centered, then name, then details */
@media (max-width:700px){
  .author-profile{
    width:100%!important;
    margin:15px 0!important;
    padding:18px 14px!important;
  }
  .author-profile-head{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    padding:22px 14px!important;
    gap:12px!important;
  }
  .author-profile-head .avatar,
  .author-profile-head .avatar-placeholder{
    width:150px!important;
    height:150px!important;
    min-width:150px!important;
    min-height:150px!important;
    margin:0 auto!important;
    border-radius:50%!important;
    object-fit:cover!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .author-profile-text{
    width:100%!important;
    min-width:0!important;
    text-align:center!important;
  }
  .author-profile-text h1{
    font-size:28px!important;
    line-height:1.2!important;
    margin:4px 0 10px!important;
  }
  .author-profile-text p{
    margin:7px 0!important;
    line-height:1.55!important;
  }
}

/* Make authors page explicitly use a named grid without changing desktop appearance. */
@media (max-width:700px){
  .cards{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  .cards .card{
    width:100%!important;
    min-width:0!important;
  }
}

/* Article author box also becomes centered on phones */
@media (max-width:700px){
  .article .authorbox{
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
  .article .authorbox .avatar,
  .article .authorbox .avatar-placeholder{
    width:105px!important;
    height:105px!important;
    min-width:105px!important;
    min-height:105px!important;
  }
}

/* Hide desktop navigation everywhere on phones, not only pages that already do it. */
@media (max-width:850px){
  nav.navlinks{display:none!important}
}

/* =========================================================
   V21 — TRUE MOBILE UI OVERRIDES
   ========================================================= */
@media screen and (max-width: 768px){
  html,body{width:100%;max-width:100%;margin:0;padding:0;overflow-x:hidden}
  *{max-width:100%}
  .wrap{width:calc(100% - 24px)!important;max-width:none!important;margin-left:12px!important;margin-right:12px!important}

  /* ONE consistent mobile header */
  .top{width:100%!important;position:sticky!important;top:0!important;z-index:9999!important}
  .top .nav{width:100%!important;min-height:58px!important;padding:7px 12px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;position:relative!important;gap:8px!important}
  .top .brand{display:flex!important;align-items:center!important;flex:1 1 auto!important;min-width:0!important;font-size:22px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important}
  .top .brand img{max-width:155px!important;max-height:42px!important;width:auto!important;height:auto!important;object-fit:contain!important}
  .top .navlinks{display:none!important}
  .top .nav>a:not(.brand){display:none!important}

  .mobile-menu-btn{
    display:flex!important;flex:0 0 42px!important;width:42px!important;height:42px!important;
    align-items:center!important;justify-content:center!important;
    margin:0!important;padding:0!important;border:1px solid #dbe2ea!important;border-radius:9px!important;
    background:#fff!important;color:var(--navy)!important;font-size:28px!important;font-weight:700!important;
    line-height:1!important;cursor:pointer!important;
  }
  .mobile-menu{
    position:absolute!important;display:none!important;right:10px!important;top:55px!important;
    width:min(250px,calc(100vw - 24px))!important;min-width:0!important;
    flex-direction:column!important;gap:2px!important;padding:8px!important;
    background:#fff!important;border:1px solid #dbe2ea!important;border-radius:12px!important;
    box-shadow:0 16px 35px rgba(16,43,72,.20)!important;z-index:10000!important;
  }
  .mobile-menu.open{display:flex!important}
  .mobile-menu a{
    display:flex!important;width:100%!important;min-height:44px!important;
    align-items:center!important;padding:10px 13px!important;border-radius:8px!important;
    color:var(--navy)!important;font-size:14px!important;font-weight:700!important;
  }

  /* Page spacing */
  .section{padding:30px 0!important}
  main.wrap{width:calc(100% - 24px)!important}
  h1{overflow-wrap:anywhere!important}
  .section h1{font-size:34px!important;line-height:1.15!important}
  .section h2{font-size:27px!important;line-height:1.2!important}
  .hero{padding:52px 0!important}
  .hero .wrap{width:calc(100% - 24px)!important}
  .hero h1{font-size:39px!important;line-height:1.08!important;margin:12px 0 16px!important}
  .hero p{font-size:16px!important;line-height:1.65!important}
  .statsgrid{grid-template-columns:1fr!important}
  .stat{padding:20px 10px!important;border-right:0!important;border-bottom:1px solid var(--line)!important}

  /* Cards */
  .cards{grid-template-columns:1fr!important;gap:14px!important}
  .card{width:100%!important;padding:18px!important;min-width:0!important}
  .card h3{font-size:20px!important;line-height:1.3!important}
  .card p{line-height:1.55!important}
  .btn{min-height:44px!important;padding:11px 15px!important;white-space:normal!important;text-align:center!important}

  /* Authors: PHOTO -> NAME -> DETAILS */
  .authors-grid .author-card{
    display:flex!important;flex-direction:column!important;align-items:center!important;
    justify-content:flex-start!important;text-align:center!important;
  }
  .authors-grid .author-card .avatar,
  .authors-grid .author-card .avatar-placeholder{
    width:128px!important;height:128px!important;min-width:128px!important;min-height:128px!important;
    margin:0 auto 12px!important;border-radius:50%!important;object-fit:cover!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    flex:none!important;
  }
  .authors-grid .author-card h3{margin:2px 0 7px!important}
  .authors-grid .author-card .meta{margin:0 0 12px!important}

  /* Individual profile */
  .author-profile{padding:12px!important;margin:15px 0!important}
  .author-profile-head{
    display:flex!important;flex-direction:column!important;align-items:center!important;
    justify-content:center!important;text-align:center!important;gap:10px!important;padding:18px 8px!important;
  }
  .author-profile-head .avatar,.author-profile-head .avatar-placeholder{
    width:150px!important;height:150px!important;min-width:150px!important;min-height:150px!important;
    margin:0 auto!important;border-radius:50%!important;object-fit:cover!important;flex:none!important;
  }
  .author-profile-text{width:100%!important;min-width:0!important;text-align:center!important}
  .author-profile-text h1{font-size:28px!important;line-height:1.18!important;margin:4px 0 8px!important}
  .author-profile-text p{font-size:14px!important;line-height:1.55!important;margin:6px 0!important}

  /* Article */
  .article{width:100%!important;padding:18px 13px!important;margin:16px 0!important;border-radius:11px!important}
  .article h1{font-size:28px!important;line-height:1.2!important;margin-top:8px!important}
  .article .authorbox{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;padding:15px 10px!important}
  .article .authorbox .avatar,.article .authorbox .avatar-placeholder{
    width:105px!important;height:105px!important;min-width:105px!important;min-height:105px!important;
  }
  .abstract{padding:15px!important;line-height:1.7!important}
  .share{display:flex!important;flex-wrap:wrap!important;gap:5px!important;padding:13px!important}
  .share b{width:100%!important}
  .share a,.share button{margin:0!important;min-height:40px!important;font-size:12px!important;padding:8px 10px!important}
  .pdf{width:100%!important;height:68vh!important;min-height:420px!important}

  /* Forms */
  .form,.searchbar{width:100%!important;padding:15px!important}
  .form input,.form select,.form textarea,.searchbar input,.searchbar select{width:100%!important;font-size:16px!important;min-height:44px!important}
  .form textarea{min-height:150px!important}
  .searchbar{display:block!important}
  .searchbar br{display:none!important}
  .searchbar input,.searchbar select,.searchbar button{margin-top:8px!important}

  /* Tracking timeline */
  .track{width:calc(100% - 24px)!important}
  .timeline{width:100%!important}
  .step{padding:12px!important;font-size:14px!important}

  /* Tables never force page width */
  .table{display:block!important;width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;white-space:nowrap!important}
  .table-wrap{width:100%!important;overflow-x:auto!important}

  /* Images/media */
  img,video,iframe{max-width:100%!important}
}

@media screen and (max-width:400px){
  .wrap,main.wrap,.hero .wrap{width:calc(100% - 16px)!important;margin-left:8px!important;margin-right:8px!important}
  .top .nav{padding-left:8px!important;padding-right:8px!important}
  .top .brand{font-size:20px!important}
  .mobile-menu{right:8px!important;width:calc(100vw - 16px)!important}
  .hero h1{font-size:34px!important}
  .section h1{font-size:30px!important}
  .article h1{font-size:25px!important}
  .author-profile-head .avatar,.author-profile-head .avatar-placeholder{width:125px!important;height:125px!important;min-width:125px!important;min-height:125px!important}
}

/* =========================================================
   V22 — MOBILE-FIRST HOMEPAGE, INSPIRED BY THE PROVIDED
   MOBILE MOCKUP. Desktop remains intact.
   ========================================================= */
.home-page{padding-bottom:0}
.home-header{box-shadow:0 1px 10px rgba(16,43,72,.04)}
.home-hero-inner{position:relative}
.home-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.hero-secondary{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.35)}
.home-search{display:flex;align-items:center;gap:10px;max-width:780px;margin-top:32px;background:#fff;border-radius:16px;padding:8px 9px 8px 18px;box-shadow:0 12px 30px rgba(0,0,0,.14)}
.home-search-icon{font-size:30px;color:var(--navy);line-height:1}
.home-search input{flex:1;border:0;outline:0;background:transparent;font:16px Arial;color:var(--ink);min-width:0}
.home-search button{border:0;background:var(--navy);color:#fff;border-radius:10px;padding:12px 18px;font-weight:700;cursor:pointer}
.section-heading-row{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:25px}
.section-heading-row h2{margin-bottom:0}
.view-all{font-weight:700;color:#0b4fd4;white-space:nowrap}
.topic-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.topic-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:9px;min-width:0;box-shadow:0 7px 22px rgba(16,43,72,.04)}
.topic-card strong{color:var(--navy);font-size:17px;line-height:1.3}
.topic-card small{color:#0b4fd4}
.topic-icon{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef3ff;color:#0b4fd4;font-size:23px;font-weight:700}
.home-paper-card{min-width:0}
.home-submit-section{background:#eef2f6}
.home-submit-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:38px;box-shadow:0 10px 30px rgba(16,43,72,.04)}
.mobile-bottom-nav{display:none}

@media(max-width:850px){
  .home-page{padding-bottom:72px}
  .home-hero{padding:48px 0 38px!important;background:linear-gradient(145deg,#0b2746,#0f3a67)!important}
  .home-hero-inner{text-align:center}
  .home-hero .eyebrow{font-size:9px;letter-spacing:1.5px}
  .home-hero h1{font-size:39px!important;line-height:1.08!important;margin:13px auto!important;max-width:700px}
  .home-hero p{font-size:15px!important;line-height:1.65!important;max-width:520px;margin:0 auto}
  .home-actions{justify-content:center;margin-top:19px}
  .home-actions .btn{min-height:43px}
  .home-search{margin:25px auto 0;width:100%;border-radius:18px;padding:7px 8px 7px 13px}
  .home-search-icon{font-size:25px}
  .home-search input{font-size:15px}
  .home-search button{display:none}
  .home-stats{background:#fff}
  .home-stats-grid{grid-template-columns:repeat(3,1fr)!important}
  .home-stats .stat{padding:20px 8px!important;border-right:1px solid var(--line)!important;border-bottom:0!important}
  .home-stats .stat:last-child{border-right:0!important}
  .home-stats .stat strong{font-size:27px!important}
  .home-stats .stat small{font-size:9px!important;letter-spacing:.8px}
  .home-topic-section,.home-latest-section,.home-submit-section{padding:38px 0!important}
  .section-heading-row{align-items:center;margin-bottom:17px}
  .section-heading-row h2{font-size:27px!important}
  .view-all{font-size:13px}
  .topic-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
  .topic-card{padding:15px;border-radius:13px;min-height:145px}
  .topic-icon{width:38px;height:38px;font-size:20px}
  .topic-card strong{font-size:15px}
  .topic-card small{font-size:12px}
  .home-latest-cards{grid-template-columns:1fr!important}
  .home-paper-card{padding:17px!important}
  .home-paper-card h3{font-size:20px}
  .home-submit-card{padding:25px 18px;border-radius:15px}
  .mobile-bottom-nav{
    display:flex;position:fixed;left:0;right:0;bottom:0;height:66px;background:#fff;
    border-top:1px solid var(--line);z-index:9998;
    padding:5px 5px env(safe-area-inset-bottom,5px);
    box-shadow:0 -8px 25px rgba(16,43,72,.10);
  }
  .mobile-bottom-nav a{
    flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:2px;color:#687589;font-weight:700;min-width:0
  }
  .mobile-bottom-nav a span{font-size:22px;line-height:1}
  .mobile-bottom-nav a small{font-size:10px}
  .mobile-bottom-nav a.active{color:#0b4fd4}
}
@media(max-width:400px){
  .home-hero h1{font-size:33px!important}
  .home-hero p{font-size:14px!important}
  .home-stats .stat strong{font-size:23px!important}
  .home-stats .stat small{font-size:8px!important}
  .topic-card{min-height:132px;padding:13px}
  .topic-card strong{font-size:14px}
  .topic-card small{font-size:11px}
  .section-heading-row h2{font-size:24px!important}
  .mobile-bottom-nav{height:64px}
}
