/* Nassar Education Hub — homepage styles */
:root{
  --navy:#0a1f4d;
  --navy-dark:#081833;
  --gold:#e8a020;
  --gold-dark:#c98613;
  --pink:#e6317a;
  --text:#333;
  --muted:#6b7280;
  --border:#e5e7eb;
  --bg:#f7f8fa;
  --radius:10px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Poppins',-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.5;
}
img{max-width:100%;display:block;}
a{text-decoration:none;color:inherit;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3{margin:0;line-height:1.2;}
.container{max-width:1200px;margin:0 auto;padding:0 20px;}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);}

/* Topbar */
.topbar{background:var(--navy-dark);color:#cbd5e1;font-size:.8rem;}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;height:34px;flex-wrap:nowrap;gap:10px;}
.topbar-left{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.topbar-right{flex-shrink:0;}
.topbar-right .login-link{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--gold);color:var(--navy-dark);
  font-weight:700;padding:4px 14px;border-radius:20px;
  font-size:.78rem;white-space:nowrap;
}
.topbar-right .login-link:hover{background:#fff;color:var(--navy-dark);}

/* Header */
.site-header{border-bottom:1px solid var(--border);position:sticky;top:0;background:#fff;z-index:50;}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:84px;gap:16px;}
.logo{flex-shrink:0;}
.logo img{height:56px;width:auto;}
.main-nav{flex:1 1 auto;min-width:0;overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none;}
.main-nav::-webkit-scrollbar{display:none;}
.main-nav ul{display:flex;gap:22px;white-space:nowrap;}
.main-nav a{font-weight:600;font-size:.92rem;color:var(--navy);letter-spacing:.2px;}
.main-nav a.active,.main-nav a:hover{color:var(--gold-dark);}

/* Hero */
.hero{background:linear-gradient(120deg,var(--navy) 55%,var(--navy-dark));color:#fff;overflow:hidden;}
.hero-inner{display:flex;align-items:center;gap:40px;padding:56px 20px;}
.hero-text{flex:1 1 480px;}
.eyebrow{color:var(--gold);font-weight:700;letter-spacing:1px;font-size:.8rem;margin-bottom:10px;}
.hero-text h1{font-size:2.4rem;font-weight:800;margin-bottom:16px;}
.hero-text h1 span{color:var(--gold);}
.hero-sub{color:#cbd5e1;max-width:520px;margin-bottom:24px;}
.hero-search{display:flex;max-width:480px;background:#fff;border-radius:6px;overflow:hidden;}
.hero-search input{flex:1;border:0;padding:14px 16px;font-size:.95rem;outline:none;min-width:0;}
.hero-search button{background:var(--gold);border:0;padding:0 24px;font-weight:700;color:var(--navy-dark);cursor:pointer;flex-shrink:0;}
.hero-search button:hover{background:var(--gold-dark);color:#fff;}
.hero-media{flex:1 1 380px;position:relative;}
.hero-media-fade{position:relative;overflow:hidden;border-radius:var(--radius);}
.hero-media-fade img{
  display:block;width:100%;height:auto;
  mask-image:linear-gradient(to right, transparent 0%, black 18%);
  -webkit-mask-image:linear-gradient(to right, transparent 0%, black 18%);
}
.hero-media-fade::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to bottom, transparent 78%, var(--navy) 100%);
}
.hero-badge{position:absolute;top:10px;right:0;font-family:cursive,Poppins;color:var(--gold);font-size:1.1rem;transform:rotate(-3deg);text-align:right;}

/* Categories */
.categories{background:var(--bg);padding:24px 0;border-bottom:1px solid var(--border);}
.cat-grid{
  display:flex;gap:12px;overflow-x:auto;padding-bottom:2px;
  -ms-overflow-style:none;scrollbar-width:none;
}
.cat-grid::-webkit-scrollbar{display:none;}
.cat-card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  padding:14px 10px;text-align:center;transition:transform .15s,box-shadow .15s;position:relative;
  flex:1 1 0;min-width:118px;
}
.cat-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(10,31,77,.08);}
.cat-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--navy);color:#fff;margin-bottom:8px;}
.cat-icon svg{width:20px;height:20px;}
.cat-card:nth-child(even) .cat-icon{background:var(--gold);color:var(--navy-dark);}
.cat-title{display:block;font-weight:700;color:var(--navy);font-size:.82rem;margin-bottom:2px;}
.cat-desc{display:block;font-size:.68rem;color:var(--muted);margin-bottom:4px;white-space:normal;line-height:1.25;}
.cat-arrow{color:var(--gold-dark);font-weight:700;font-size:.8rem;}

.scroll-hint{
  display:none;
  align-items:center;justify-content:flex-end;gap:6px;
  max-width:1200px;margin:10px auto 0;padding:0 20px;
  font-size:.72rem;font-weight:600;color:var(--gold-dark);
}
.scroll-hint-arrow{
  display:inline-block;
  animation:scroll-hint-move 1.4s ease-in-out infinite;
}
@keyframes scroll-hint-move{
  0%,100%{transform:translateX(0);}
  50%{transform:translateX(5px);}
}

/* Content grid: news + opportunities */
.content-grid{display:grid;grid-template-columns:2fr 1fr;gap:40px;padding:48px 20px;}
.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;}
.section-head h2{font-size:1.3rem;color:var(--navy);display:flex;align-items:center;gap:8px;}
.bar{width:5px;height:20px;background:var(--gold);display:inline-block;border-radius:2px;}
.view-all{font-size:.85rem;color:var(--gold-dark);font-weight:600;}

.news-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;}
.news-featured{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:block;}
.news-featured img{height:190px;object-fit:cover;}
.news-featured .tag{display:inline-block;background:var(--gold);color:var(--navy-dark);font-size:.7rem;font-weight:700;padding:3px 10px;border-radius:4px;margin:12px 0 8px 16px;}
.news-featured h3{padding:0 16px;font-size:1.05rem;color:var(--navy);margin-bottom:8px;}
.news-featured p{padding:0 16px;color:var(--muted);font-size:.85rem;margin-bottom:10px;}
.news-featured .meta{padding:0 16px 16px;display:block;font-size:.75rem;color:var(--muted);}

.news-list li + li{margin-top:16px;padding-top:16px;border-top:1px solid var(--border);}
.news-list a{display:flex;gap:12px;}
.news-list img{width:80px;height:64px;object-fit:cover;border-radius:6px;flex-shrink:0;}
.news-list strong{display:block;color:var(--navy);font-size:.9rem;margin:4px 0;}
.tag.small{font-size:.65rem;font-weight:700;color:var(--gold-dark);}
.meta{font-size:.75rem;color:var(--muted);}

.opps-list li + li{margin-top:14px;}
.opps-list a{display:block;border:1px solid var(--border);border-radius:var(--radius);padding:14px;}
.opps-list a:hover{border-color:var(--gold);}
.pill{display:inline-block;font-size:.65rem;font-weight:700;padding:3px 10px;border-radius:4px;color:#fff;margin-bottom:6px;}
.pill-scholarship{background:var(--gold-dark);}
.pill-job{background:#c62828;}
.pill-internship{background:#2e7d32;}
.pill-admission{background:#ad1457;}
.opps-list strong{display:block;color:var(--navy);font-size:.88rem;margin-bottom:6px;}

/* Quick links */
.quicklinks{display:grid;grid-template-columns:1fr 2fr;gap:18px;padding-bottom:48px;}
.ql-promo{background:var(--navy);color:#fff;border-radius:var(--radius);padding:26px;}
.ql-promo h2{font-size:1.2rem;margin-bottom:6px;}
.ql-promo p{color:#cbd5e1;font-size:.85rem;margin-bottom:16px;}
.btn-gold{display:inline-block;background:var(--gold);color:var(--navy-dark);font-weight:700;padding:10px 18px;border-radius:6px;}
.btn-gold:hover{background:var(--gold-dark);color:#fff;}
.ql-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.ql-grid a{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:20px 14px;text-align:center;font-weight:600;color:var(--navy);font-size:.88rem;}
.ql-grid a:hover{border-color:var(--gold);}

/* Footer */
.site-footer{background:var(--navy-dark);color:#cbd5e1;padding:48px 0 0;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px;padding-bottom:30px;}
.footer-brand img{height:44px;margin-bottom:10px;}
.footer-brand p{font-size:.85rem;color:#94a3b8;}
.site-footer h3{color:#fff;font-size:.95rem;margin-bottom:14px;}
.site-footer ul li{margin-bottom:8px;font-size:.85rem;}
.site-footer a:hover{color:var(--gold);}
.footer-social{display:flex;gap:10px;margin-bottom:20px;}
.footer-social a{width:32px;height:32px;border-radius:50%;background:#1e2f57;display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;}
.footer-sub{display:flex;}
.footer-sub input{flex:1;border:0;padding:10px 12px;border-radius:4px 0 0 4px;font-size:.85rem;}
.footer-sub button{background:var(--gold);border:0;padding:0 16px;border-radius:0 4px 4px 0;font-weight:700;color:var(--navy-dark);cursor:pointer;}
.footer-contact li{font-size:.85rem;}
.footer-bottom{display:flex;justify-content:space-between;border-top:1px solid #1e2f57;padding:18px 20px;font-size:.78rem;color:#94a3b8;}
.footer-bottom a{color:#94a3b8;}
.footer-bottom a:hover{color:var(--gold);}

/* Responsive */
@media (max-width:960px){
  .content-grid{grid-template-columns:1fr;}
  .news-layout{grid-template-columns:1fr;}
  .quicklinks{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:720px){
  .hero-inner{flex-direction:row;align-items:flex-start;text-align:left;padding:18px 14px;gap:12px;}
  .hero-text{flex:1 1 46%;min-width:0;}
  .hero-media{flex:0 0 50%;max-width:50%;}
  .eyebrow{font-size:.6rem;margin-bottom:4px;}
  .hero-text h1{display:none;}
  .hero-sub{
    font-size:.7rem;margin-bottom:10px;
    display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;
  }
  .hero-search{margin:0;max-width:100%;}
  .hero-search input{padding:8px 10px;font-size:.72rem;}
  .hero-search button{padding:0 10px;font-size:.72rem;}
  .hero-media-fade img{max-height:230px;object-fit:cover;}
  .hero-badge{display:none;}

  .scroll-hint{display:flex;}

  .topbar-right .login-link{font-size:.66rem;padding:3px 10px;}

  .header-inner{height:64px;}
  .logo img{height:40px;}
  .main-nav ul{gap:16px;}
  .main-nav a{font-size:.82rem;}
  .cat-card{min-width:100px;}
  .footer-grid{grid-template-columns:1fr;}
}

/* Small progressive-enhancement script for the mobile menu is added inline
   at the bottom of index.php's HTML if you want it — kept out of the CSS
   file so this stays pure styling. */

/* ===== Article single page ===== */
.article-page{max-width:760px;margin:0 auto;padding-top:32px;padding-bottom:60px;}
.breadcrumb{font-size:.72rem;font-weight:600;margin-bottom:16px;display:flex;flex-wrap:wrap;align-items:center;gap:5px;}
.breadcrumb a{color:var(--navy);}
.breadcrumb a:hover{color:var(--gold-dark);text-decoration:underline;}
.breadcrumb .sep{color:var(--gold);}
.breadcrumb .sep::before{content:"›";}
.breadcrumb .current{color:var(--gold-dark);}
.article-title{font-size:1.5rem;font-weight:800;color:var(--navy);margin:12px 0 10px;line-height:1.3;}
.article-meta{color:var(--muted);font-size:.85rem;margin-bottom:20px;display:flex;flex-wrap:wrap;align-items:center;gap:6px;}
.article-meta .stat{color:var(--pink);font-weight:700;}
.article-meta .dot{color:var(--border);}
.article-hero-img{width:100%;height:auto;border-radius:var(--radius);margin-bottom:24px;object-fit:cover;}
.article-body{font-size:1rem;line-height:1.75;color:var(--text);}
.article-body p{margin-bottom:1.1em;}
.article-share{display:flex;align-items:center;gap:12px;margin:32px 0;padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:.85rem;}
.article-share a{font-weight:600;color:var(--navy);}
.article-share a:hover{color:var(--gold-dark);}
.related-news{margin-top:20px;}
.related-news h2{font-size:1.2rem;color:var(--navy);margin-bottom:16px;}
.popular-news{margin-top:36px;padding-top:28px;border-top:1px solid var(--border);}
.popular-news h2{font-size:1.2rem;color:var(--navy);margin-bottom:16px;}
.popular-news .news-list li a{align-items:center;}
.popular-news .rank{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:var(--navy);color:#fff;font-weight:700;font-size:.8rem;display:flex;align-items:center;justify-content:center;}

/* ===== News listing page ===== */
.news-page{padding-top:32px;padding-bottom:60px;}
.page-title{font-size:1.7rem;font-weight:800;color:var(--navy);margin:8px 0 6px;}
.page-sub{color:var(--muted);font-size:.9rem;margin-bottom:22px;}

.news-filter{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;margin-bottom:28px;-ms-overflow-style:none;scrollbar-width:none;}
.news-filter::-webkit-scrollbar{display:none;}
.news-filter a{flex-shrink:0;padding:7px 16px;border-radius:20px;border:1px solid var(--border);font-size:.82rem;font-weight:600;color:var(--navy);white-space:nowrap;}
.news-filter a:hover{border-color:var(--gold);}
.news-filter a.active{background:var(--navy);border-color:var(--navy);color:#fff;}

.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.news-card{display:block;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#fff;transition:box-shadow .15s,transform .15s;}
.news-card:hover{box-shadow:0 8px 20px rgba(10,31,77,.1);transform:translateY(-2px);}
.news-card img{width:100%;height:170px;object-fit:cover;}
.news-card-body{padding:16px;}
.news-card .tag{display:inline-block;background:var(--gold);color:var(--navy-dark);font-size:.68rem;font-weight:700;padding:3px 10px;border-radius:4px;margin-bottom:8px;}
.news-card h2{font-size:1rem;color:var(--navy);line-height:1.35;margin-bottom:6px;}
.news-card p{color:var(--muted);font-size:.83rem;line-height:1.5;margin-bottom:10px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.news-card .meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:.74rem;color:var(--muted);}
.news-card .meta .stat{color:var(--pink);font-weight:700;}
.news-card .meta .dot{color:var(--border);}

.news-empty{color:var(--muted);padding:40px 0;text-align:center;}

.pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:36px;font-size:.85rem;}
.pagination a{font-weight:700;color:var(--navy);}
.pagination a:hover{color:var(--gold-dark);}
.pagination-status{color:var(--muted);}

@media (max-width:900px){.news-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.news-grid{grid-template-columns:1fr;}}

/* ===== Hub/listing page (Students, Teachers, etc.) ===== */
.hub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.hub-card{position:relative;display:block;padding:24px 22px 22px;border:1px solid var(--border);border-radius:var(--radius);background:#fff;transition:box-shadow .15s,transform .15s,border-color .15s;}
.hub-card:hover{box-shadow:0 8px 20px rgba(10,31,77,.1);transform:translateY(-2px);border-color:var(--gold);}
.hub-icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:12px;background:var(--bg);color:var(--navy);margin-bottom:14px;}
.hub-card h2{font-size:1.02rem;color:var(--navy);margin-bottom:6px;}
.hub-card p{font-size:.85rem;color:var(--muted);line-height:1.5;padding-right:10px;}
.hub-card .hub-arrow{position:absolute;top:22px;right:20px;color:var(--gold);font-weight:700;opacity:0;transition:opacity .15s,transform .15s;}
.hub-card:hover .hub-arrow{opacity:1;transform:translateX(3px);}

@media (max-width:900px){.hub-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.hub-grid{grid-template-columns:1fr;}}

/* ===== Students section listing page ===== */
.section-icon{margin-bottom:10px;}
.news-card .ext-arrow{color:var(--gold-dark);font-size:.85em;}

/* ===== Info box (deadline + official-source CTA) ===== */
.info-box{background:var(--bg);border-left:4px solid var(--gold);border-radius:8px;padding:16px 18px;margin:18px 0 24px;display:flex;flex-wrap:wrap;align-items:center;gap:14px;justify-content:space-between;}
.info-deadline{color:var(--navy);font-size:.9rem;margin:0;}
.info-deadline strong{color:var(--pink);}

/* ===== Notes: file badges + subject sub-filter ===== */
.tag-outline{background:transparent;border:1px solid var(--gold);color:var(--navy);margin-left:6px;}
.news-filter-sub{margin-top:-16px;margin-bottom:26px;}
.news-filter-sub a{font-size:.78rem;padding:5px 13px;}

.file-badges{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px;}
.file-badge{background:var(--navy);color:#fff;font-size:.68rem;font-weight:700;padding:2px 8px;border-radius:4px;letter-spacing:.3px;}
.file-badge-lg{font-size:.72rem;padding:4px 10px;flex-shrink:0;}

/* ===== Downloads box on the single note page ===== */
.downloads-box{margin:28px 0;padding:20px;background:var(--bg);border-radius:var(--radius);}
.downloads-box h2{font-size:1.05rem;color:var(--navy);margin-bottom:14px;}
.download-list{display:flex;flex-direction:column;gap:10px;}
.download-item{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:12px 14px;transition:border-color .15s,box-shadow .15s;}
.download-item:hover{border-color:var(--gold);box-shadow:0 4px 12px rgba(10,31,77,.08);}
.download-name{flex:1;color:var(--navy);font-weight:600;font-size:.9rem;display:flex;flex-direction:column;gap:2px;}
.download-meta{color:var(--muted);font-weight:500;font-size:.76rem;}
.download-icon{color:var(--gold-dark);font-size:1.1rem;flex-shrink:0;}
