/* ============================================================
   MES College of Pharmacy — Final Polished Layout (v3.7)
   ============================================================ */
:root {
  --bg:#0b1d2a;
  --primary:#0ea5e9;
  --accent:#22c55e;
  --text:#0f172a;
  --muted:#475569;
  --surface:#ffffff;
  --surface-alt:#f9fafb;
  --shadow:rgba(15,23,42,0.08);
  --max:1100px;
}

/* Base */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font:16px/1.7 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans",Helvetica,Arial,sans-serif;
  color:var(--text);
  background:var(--surface-alt);
}

/* Header */
.header{
  position:sticky;top:0;z-index:50;
  background:rgba(11,29,42,0.95);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.nav{
  max-width:var(--max);margin:0 auto;padding:12px 16px;
  display:flex;align-items:center;gap:16px;color:#e2e8f0;
}

/* --- Brand (Logo + College Name) --- */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:#fff;
  font-weight:700;
  letter-spacing:.2px;
  font-size:1.55rem; /* slightly larger college name */
}
.brand img.crest{
  width:100px;
  height:auto;
  border-radius:10px;
  margin-right:6px;
  background:radial-gradient(rgba(255,255,255,0.15), transparent 70%);
  padding:3px;
}
@media(max-width:780px){
  .brand img.crest{width:42px}
  .brand{font-size:1rem}
}

.nav ul{margin-left:auto;display:flex;gap:20px;list-style:none}
.nav a{color:#cbd5e1;text-decoration:none;font-weight:500;transition:.2s}
.nav a:hover{color:#fff}
.nav .mobile{display:none}
@media(max-width:780px){.nav ul{display:none}.nav .mobile{display:inline-flex;margin-left:auto}}

/* Hero */
.hero{
  background:linear-gradient(135deg,#0b1d2a 0%,#1e3a8a 100%);
  color:#e2e8f0;
}
.hero .wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:90px 16px 70px;
}
.kicker{
  display:inline-block;
  background:rgba(34,197,94,0.18);
  color:#bbf7d0;
  border:1px solid rgba(34,197,94,0.3);
  padding:6px 12px;border-radius:999px;
  font-size:12px;text-transform:uppercase;letter-spacing:.4px;
}
.hero h1{
  font-size:clamp(32px,5vw,46px);
  line-height:1.2;margin:18px 0 10px;color:#fff;font-weight:700;
}
.hero p.big{
  font-size:18px;color:#dbeafe;max-width:850px;margin-bottom:20px;
}
.cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--primary);color:#fff;
  border:none;padding:12px 18px;border-radius:10px;
  text-decoration:none;font-weight:600;
  box-shadow:0 6px 16px rgba(14,165,233,0.25);
  transition:.25s;
}
.btn:hover{filter:brightness(1.1);transform:translateY(-2px)}
.btn.outline{
  background:transparent;color:#e2e8f0;
  border:1px solid rgba(226,232,240,.3);
}
.btn.outline:hover{background:rgba(255,255,255,0.1)}

/* --- Hero Stats (compact pill layout) --- */
.hero .stats {
  margin-top: 1.8rem !important;
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
}

.hero .stat {
  display: inline-block !important;
  white-space: nowrap !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  padding: 6px 14px !important;
  font-size: 14px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #f1f5f9 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  transition: all 0.25s ease !important;
}

.hero .stat strong {
  color: #fff !important;
  margin-left: 4px !important;
}

.hero .stat:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
}

/* Section structure */
.section{max-width:var(--max);margin:0 auto;padding:60px 16px}
.section:nth-of-type(even){background:var(--surface)}
.section:nth-of-type(odd){background:var(--surface-alt)}

/* Grid */
.grid{display:grid;gap:24px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
@media(max-width:920px){.grid-3{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.grid-3,.grid-2{grid-template-columns:1fr}}

/* Card */
.card{
  background:var(--surface);
  border:1px solid #e2e8f0;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 24px var(--shadow);
  transition:all .3s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:0 14px 36px rgba(2,6,23,0.1)}
.card .p{padding:24px}
.card h3{
  margin:0 0 10px;
  font-size:20px;
  font-weight:700;
  color:#0f172a;
}
.card p{
  margin:0;
  color:#334155;
  line-height:1.7;
}
.card strong{color:#0b1d2a}

/* Figure */
.figure{
  aspect-ratio:16/9;
  background:linear-gradient(to bottom,#edf2f7 0%,#f9fafb 100%);
  display:block;width:100%;
  background-position:center;
  background-size:cover;
}

/* Badge */
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;
  border-radius:10px;
  background:#ecfeff;
  color:#075985;
  border:1px solid #bae6fd;
  font-weight:600;
  font-size:14px;
}

/* Typography helpers */
.lead{font-size:18px;color:#0f172a;margin-bottom:8px}
.muted{color:#475569}

/* Notice */
.notice{
  background:#fff;
  border-left:4px solid var(--primary);
  padding:16px 18px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  margin-top:14px;
}

/* Footer */
.footer{
  background:var(--bg);
  color:#cbd5e1;
  border-top:1px solid rgba(255,255,255,0.08);
  margin-top:60px;
}
.footer .wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:48px 16px;
}
.footer strong{display:block;margin-bottom:6px;color:#fff}
.footer p{margin:0 0 4px;color:#cbd5e1}
.footer a{color:#38bdf8;text-decoration:none}
.footer small{color:#94a3b8}
.footer small::before{content:"© ";}

/* fallback gradient for empty figures */
.figure {
  aspect-ratio: 16/9;
  background: linear-gradient(180deg, #e9eef7 0%, #f8fafc 100%);
  display: block;
  width: 100%;
  background-position: center;
  background-size: cover;
}

/* --- Mobile Dropdown Menu (added v3.7) --- */
@media (max-width: 780px) {
  .nav {
    flex-wrap: wrap;
  }

  /* hide menu by default */
  .nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(11,29,42,0.98);
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 10px;
    padding: 10px 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }

  /* show when toggled */
  .nav ul.show {
    display: flex;
    max-height: 400px;
    opacity: 1;
  }

  .nav ul li {
    text-align: center;
    padding: 12px 0;
  }

  .nav a {
    color: #e2e8f0;
    font-size: 1rem;
    display: block;
  }

  .mobile {
    margin-left: auto;
    display: inline-flex !important;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
  }
}

/* Responsive tweaks */
@media(max-width:480px){
  .hero .wrap{padding:60px 16px 48px}
  .hero h1{font-size:28px}
  .cta{flex-direction:column}
  .btn{width:100%;justify-content:center}
}
