/*
Theme Name: StudyReviewer
Theme URI: https://example.com/
Author: Ehyperlink
Description: Campus Compass — a cinematic education editorial theme for StudyReviewer.
Version: 1.0.0
Text Domain: studyreviewer
Requires at least: 6.0
Requires PHP: 7.4
*/

:root{
  --sr-navy:#081b2b;
  --sr-navy2:#0d2e49;
  --sr-blue:#2b79ff;
  --sr-cyan:#67b8ff;
  --sr-white:#f8fbff;
  --sr-ink:#13283a;
  --sr-muted:#73808c;
  --sr-line:#d9e2eb;
  --sr-bg:#eef4f8;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--sr-ink);font-family:Arial,Helvetica,sans-serif}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.wrap{width:min(1240px,calc(100% - 32px));margin:auto}

/* Header */
.sr-header{
  position:sticky;top:0;z-index:999;
  background:rgba(7,24,38,.97);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 8px 26px rgba(0,0,0,.2);
}
.admin-bar .sr-header{top:32px}
.sr-head{min-height:82px;display:grid;grid-template-columns:270px 1fr 230px;gap:18px;align-items:center}
.sr-logo img{display:block;width:265px;max-height:62px;object-fit:contain;filter:brightness(1.45)}
.sr-nav ul{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.sr-nav a{display:block;padding:11px 10px;border-radius:5px;font-size:11px;font-weight:700;color:#e8f0f7}
.sr-nav a:hover,.sr-nav .current-menu-item>a{background:#123451;color:#76bdff}
.sr-search{height:42px;display:grid;grid-template-columns:1fr 42px;border:1px solid #214765;border-radius:5px;overflow:hidden;background:#0a2236}
.sr-search input{border:0;outline:0;padding:0 13px;background:transparent;color:#eef5fa;font-size:12px}
.sr-search button{border:0;background:#2b79ff;color:#fff;font-size:17px}

/* Hero */
.sr-hero{position:relative;min-height:560px;overflow:hidden;background:#0a2134}
.sr-hero-bg{position:absolute;inset:0}
.sr-hero-bg img{width:100%;height:100%;object-fit:cover;filter:brightness(.5) saturate(.95)}
.sr-hero-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,22,35,.96) 0%,rgba(5,22,35,.80) 46%,rgba(5,22,35,.18) 78%)}
.sr-hero-inner{position:relative;z-index:2;min-height:560px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center}
.sr-hero-copy{padding:54px 0;color:#fff}
.sr-kicker{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#70bcff;font-weight:900}
.sr-hero h1{margin:12px 0 18px;font:700 clamp(3.5rem,5.7vw,6rem)/.94 Georgia,serif;letter-spacing:-.045em}
.sr-hero h1 em{font-style:normal;color:#2b79ff}
.sr-hero p{max-width:580px;margin:0;color:#d6e3ec;font-size:15px;line-height:1.65}
.sr-actions{display:flex;gap:12px;margin-top:24px}
.sr-btn{display:inline-flex;align-items:center;min-height:46px;padding:0 20px;border-radius:6px;font-size:11px;font-weight:900;border:1px solid #4c9cff}
.sr-btn.primary{background:#2b79ff;color:#fff}
.sr-btn.secondary{background:rgba(255,255,255,.03);color:#fff}

/* Category ribbon */
.sr-category-ribbon{position:relative;margin-top:-42px;z-index:4}
.sr-category-grid{
  display:grid;grid-template-columns:repeat(12,1fr);
  background:rgba(8,27,43,.96);
  border:1px solid #234965;
  border-radius:14px;
  padding:14px;
  box-shadow:0 18px 42px rgba(0,0,0,.2);
}
.sr-category-grid a{display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 5px;color:#eaf3fa;border-right:1px solid rgba(255,255,255,.06)}
.sr-category-grid a:last-child{border-right:0}
.sr-category-grid b{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#103550;color:#6fc1ff;font-size:15px}
.sr-category-grid span{font-size:9px;text-align:center;line-height:1.15;font-weight:700}
.sr-category-grid a:hover{background:#103149}

/* Sections */
.sr-section{padding:54px 0}
.sr-section.alt{background:#f1f5f9;border-top:1px solid #e0e8ee;border-bottom:1px solid #e0e8ee}
.sr-section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:20px}
.sr-section-head h2{margin:0;font:700 2.35rem/1.05 Georgia,serif;color:#112b40}
.sr-section-head p{margin:6px 0 0;color:#7a8792;font-size:12px}
.sr-section-head>a{font-size:11px;font-weight:800;color:#246edb}

/* Featured + latest */
.sr-feature-layout{display:grid;grid-template-columns:1.12fr .88fr;gap:18px}
.sr-feature-main{position:relative;min-height:420px;overflow:hidden;border-radius:12px;box-shadow:0 12px 30px rgba(24,55,78,.12)}
.sr-feature-main img{width:100%;height:420px;object-fit:cover}
.sr-feature-main:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(5,22,35,.94))}
.sr-feature-copy{position:absolute;z-index:2;left:20px;right:20px;bottom:18px}
.sr-feature-copy small{color:#7dc6ff;font-size:8px;font-weight:900;text-transform:uppercase}
.sr-feature-copy h3{margin:6px 0 0;color:#fff;font:700 1.9rem/1.08 Georgia,serif}

.sr-latest-list{background:#fff;border:1px solid #dbe5ec;border-radius:12px;padding:18px}
.sr-latest-list h3{margin:0 0 10px;font:700 1.35rem Georgia,serif;color:#17344d}
.sr-list-item{display:grid;grid-template-columns:72px 1fr 18px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #e4ebf0}
.sr-list-item:last-child{border-bottom:0}
.sr-list-item img{width:72px;height:58px;object-fit:cover;border-radius:6px}
.sr-list-item strong{font-size:.95rem;line-height:1.2}
.sr-list-item span{color:#2b79ff}

/* Stage cards */
.sr-stage-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.sr-stage-card{padding:20px;border:1px solid #dbe4eb;border-radius:12px;background:#fff;box-shadow:0 8px 18px rgba(24,55,78,.05)}
.sr-stage-card small{display:block;color:#2b79ff;font-weight:900;font-size:9px;text-transform:uppercase}
.sr-stage-card h3{margin:7px 0 6px;font:700 1.2rem Georgia,serif;color:#153048}
.sr-stage-card p{margin:0;color:#78848f;font-size:11px;line-height:1.5}

/* Articles */
.sr-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.sr-card{overflow:hidden;background:#fff;border:1px solid #dbe5ec;border-radius:12px;box-shadow:0 10px 24px rgba(24,55,78,.06)}
.sr-card-img{display:block;height:210px;overflow:hidden}
.sr-card-img img{width:100%;height:100%;object-fit:cover}
.sr-card-body{padding:15px 16px 17px}
.sr-card-body>small{color:#2470de;font-size:8px;font-weight:900;text-transform:uppercase}
.sr-card h3{margin:7px 0 8px;font:700 1.15rem/1.18 Georgia,serif;color:#17344c}
.sr-card p{margin:0;color:#7d8993;font-size:11px;line-height:1.5}
.sr-meta{display:flex;justify-content:space-between;margin-top:12px;color:#9ba5ad;font-size:9px}

/* Single */
.sr-post-hero{background:#eef4f8;padding:42px 0 28px;border-bottom:1px solid #dce5ec}
.sr-post-hero h1{max-width:920px;margin:8px 0 10px;font:700 clamp(2.6rem,5vw,4.4rem)/.98 Georgia,serif;color:#163149}
.sr-post-meta{display:flex;gap:8px;color:#7a8792;font-size:10px}
.sr-post-wrap{width:min(1080px,calc(100% - 32px));margin:auto;padding:38px 0 60px}
.sr-article{background:#fff;border:1px solid #dce5eb;border-radius:14px;box-shadow:0 16px 34px rgba(22,52,75,.08);padding:34px 38px}
.sr-featured img{display:block;width:100%;height:520px;object-fit:cover;border-radius:12px;border:1px solid #d7e0e7;box-shadow:0 14px 30px rgba(21,49,72,.12);margin-bottom:28px}
.sr-entry{font:16px/1.8 Georgia,"Times New Roman",serif;color:#384b5a}
.sr-entry>*{max-width:100%;box-sizing:border-box}
.sr-entry h2,.sr-entry h3{color:#19364e}
.sr-entry img{max-width:100%;height:auto;border-radius:10px}
.sr-entry a{color:#246fd9;text-decoration:underline}

/* Contextual internal links */
.sr-context-link{margin:28px 0;padding:14px 16px;background:#f3f8fd;border:1px solid #d4e3f0;border-left:4px solid #2b79ff;border-radius:9px}
.sr-context-link small{display:block;margin-bottom:6px;color:#3278cf;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.13em}
.sr-context-link a{display:flex;justify-content:space-between;gap:12px;color:#1d3f58!important;text-decoration:none!important;font-weight:700}
.sr-context-link b{color:#2b79ff}

/* Related */
.sr-related{margin-top:38px;padding-top:26px;border-top:1px solid #dfe7ed}
.sr-related h2{margin:0 0 18px;font:700 2rem Georgia,serif;color:#18364e}
.sr-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.sr-related-card{display:block;background:#fff;border:1px solid #dbe5eb;border-radius:9px;overflow:hidden}
.sr-related-card img{width:100%;height:175px;object-fit:cover}
.sr-related-card div{padding:12px}
.sr-related-card h3{margin:0;font:700 1rem/1.2 Georgia,serif}

/* Footer */
.sr-footer{background:#081b2b;color:#edf5fb;border-top:3px solid #2b79ff}
.sr-footer-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr 1fr;gap:34px;padding:42px 0 30px}
.sr-footer-brand img{width:275px;max-height:62px;filter:brightness(1.45)}
.sr-footer-brand p{max-width:360px;color:#b9cad7;font-size:11px;line-height:1.6}
.sr-footer-col{display:flex;flex-direction:column;gap:8px}
.sr-footer h3{margin:0 0 8px;font:700 1rem Georgia,serif;color:#fff}
.sr-footer a{color:#c8d7e2;font-size:10px}
.sr-footer a:hover{color:#70bdff}
.sr-footer-bottom{display:flex;justify-content:space-between;gap:20px;padding:14px 0 20px;border-top:1px solid rgba(255,255,255,.1);font-size:9px;color:#98abb9}

@media(max-width:1100px){
  .sr-head{grid-template-columns:220px 1fr}.sr-search{grid-column:1/-1}
  .sr-category-grid{grid-template-columns:repeat(6,1fr)}
  .sr-stage-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:820px){
  .admin-bar .sr-header{top:46px}
  .sr-header{position:relative}
  .sr-head{grid-template-columns:1fr;gap:10px;padding:12px 0}
  .sr-nav ul{justify-content:flex-start}
  .sr-hero-inner,.sr-feature-layout{grid-template-columns:1fr}
  .sr-category-ribbon{margin-top:0;padding-top:16px}
  .sr-article-grid{grid-template-columns:repeat(2,1fr)}
  .sr-footer-grid{grid-template-columns:1fr 1fr}
  .sr-featured img{height:360px}
}
@media(max-width:560px){
  .sr-category-grid,.sr-stage-grid,.sr-article-grid,.sr-related-grid,.sr-footer-grid{grid-template-columns:1fr}
  .sr-hero h1{font-size:3rem}
  .sr-actions{flex-direction:column;align-items:flex-start}
  .sr-article{padding:20px 16px}
  .sr-featured img{height:260px}
  .sr-footer-bottom{flex-direction:column}
}
