/* Faujdar College of Pharmacy
   Palette taken from the college logo and admission posters. */
:root {
  --navy: #0F2A6B;
  --blue: #1F6FD6;
  --blue-soft: #E6F0FC;
  --red: #D6202A;
  --red-dark: #A8141D;
  --yellow: #FFD23F;
  --green: #1E9E57;
  --paper: #F4F8FD;
  --ink: #1C2433;
  --muted: #56627A;
  --line: #D5E0EE;
  --white: #fff;

  --display: "Baloo 2", "Mukta", system-ui, sans-serif;
  --body: "Mukta", "Nirmala UI", "Mangal", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1;
  padding: .85rem 1.3rem .75rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--lg { font-size: 1.15rem; padding: 1rem 1.6rem .9rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--red-dark); }
.btn--white:hover { background: var(--yellow); color: var(--navy); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #157A42; color: #fff; }

/* Top bar and header */
.topbar { background: var(--navy); color: #C9D6F0; font-size: .9rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar strong { color: #fff; }
.topbar__phones { display: flex; gap: 1.2rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { color: var(--yellow); }

.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand img { width: 56px; height: 56px; }
.brand strong { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1.1; }
.brand small { color: var(--muted); font-size: .88rem; }

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a:not(.btn) {
  display: flex; flex-direction: column; align-items: center; text-decoration: none;
  color: var(--ink); font-weight: 500; padding: .35rem .75rem; border-radius: var(--r-sm); line-height: 1.2;
}
.site-nav a:not(.btn) small { font-size: .75rem; color: var(--muted); }
.site-nav a:not(.btn):hover { background: var(--blue-soft); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }
.nav-cta { margin-left: .75rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span:not(.sr) { width: 22px; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, #DCEBFF 0, transparent 45%),
    var(--paper);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: end; padding-top: 3rem; }
.hero__text { padding-bottom: 3.5rem; }

.status {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: .45rem 1.1rem .4rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255,210,63,.8); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,210,63,0); } 100% { box-shadow: 0 0 0 0 rgba(255,210,63,0); } }

.hero__title { margin: 0 0 1.25rem; }
.hero__word {
  display: block; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(3.8rem, 11vw, 8.5rem); line-height: .85; color: var(--navy);
}
.hero__sub {
  display: inline-block; margin-top: .6rem; font-family: var(--body); font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem); color: var(--ink);
  background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 92%, transparent 92%);
  padding: 0 .2em;
}
.hero__sub em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .8em; }
.hero__lead { font-size: 1.2rem; max-width: 34em; color: #33405A; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }

.facts { display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin: 0; border-top: 2px solid var(--navy); max-width: 40rem; }
.facts div { padding: .8rem 1.2rem 0 0; }
.facts div + div { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--navy); line-height: 1.2; }

.hero__media { position: relative; align-self: end; }
.hero__media img { border-radius: var(--r-lg) var(--r-lg) 0 0; width: 100%; max-height: 640px; object-fit: cover; object-position: top; }

/* The one loud element: the scholarship stamp */
.stamp {
  position: absolute; left: -3.5rem; bottom: 2.5rem; width: 15.5rem;
  background: var(--red); color: #fff; text-decoration: none; text-align: center;
  padding: 1.1rem 1rem 1rem; border-radius: var(--r-md);
  border: 3px dashed rgba(255,255,255,.7); outline: 6px solid var(--red);
  transform: rotate(-6deg); box-shadow: 0 18px 40px -12px rgba(168,20,29,.55);
  transition: transform .2s;
}
.stamp:hover { transform: rotate(-3deg) scale(1.03); color: #fff; }
.stamp__top { display: block; font-size: .95rem; font-weight: 500; }
.stamp__big { display: block; font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1.05; margin: .25rem 0 .4rem; }
.stamp__en { display: block; font-size: .82rem; color: #FFE3E4; border-top: 1px solid rgba(255,255,255,.4); padding-top: .35rem; }

/* Bands and sections */
.band--red { background: var(--red); color: #fff; }
.band__in { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: 1.8rem 0; }
.band__hi { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; line-height: 1.1; }
.band__en { margin: 0; color: #FFE3E4; max-width: 38em; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--paper); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.h3 { font-size: 1.45rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media img { border-radius: var(--r-lg); width: 100%; max-height: 620px; object-fit: cover; object-position: top; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.25rem; margin-top: 2rem; }
.reason { border-left: 4px solid var(--blue); padding-left: 1rem; }
.reason:nth-child(2) { border-color: var(--green); }
.reason:nth-child(3) { border-color: #F08A1C; }
.reason:nth-child(4) { border-color: #6A3FB5; }
.reason h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.reason p { margin: 0; color: var(--muted); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 1.5rem 0 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--navy); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin-bottom: 1rem; position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 1.5rem; left: 3rem; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); margin: 0; }
.steps__help { margin: 2.5rem 0 0; font-weight: 500; }

.careers { list-style: none; padding: 0; margin: 2rem 0 0; columns: 2; column-gap: 3rem; }
.careers li { break-inside: avoid; padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.careers strong { color: var(--navy); display: block; font-size: 1.1rem; }

.notices { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.notice { display: block; background: #fff; padding: .75rem; border-radius: var(--r-md); border: 1px solid var(--line); }
.notice img { border-radius: var(--r-sm); }
.notice:hover { border-color: var(--blue); }

.cta { background: var(--navy); color: #C9D6F0; text-align: center; padding: 4rem 0; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta__phones { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 2.5rem; margin: 0 0 .75rem; }
.cta__phones a { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem); color: var(--yellow); text-decoration: none; line-height: 1.1; }
.cta__phones a:hover { color: #fff; }

/* Inner pages */
.page-head { background: var(--paper); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .25rem; }
.page-head p { margin: 0; font-size: 1.2rem; color: var(--muted); }

.prose-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prose { max-width: 40em; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.hi-note { font-weight: 700; color: var(--red); font-size: 1.15rem; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.75rem; position: sticky; top: 6.5rem; }
.glance { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.25rem; margin: 0 0 1.5rem; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; font-weight: 700; color: var(--navy); }

.facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.facilities h3 { font-size: 1.25rem; border-top: 3px solid var(--navy); padding-top: .75rem; }
.facilities p { color: var(--muted); margin: 0; }

.syllabus { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
.syllabus__year h3 { background: var(--navy); color: #fff; display: inline-block; padding: .3rem 1rem .15rem; border-radius: var(--r-sm); font-size: 1.2rem; }
.syllabus ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.syllabus li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.syllabus li strong { display: block; color: var(--navy); font-size: 1.08rem; }
.syllabus li span { color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: .5rem 0 .5rem 2rem; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: .8rem; height: .45rem; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

/* Form */
.form-card { background: #fff; border: 2px solid var(--navy); border-radius: var(--r-md); padding: 1.75rem; box-shadow: 8px 8px 0 var(--blue-soft); scroll-margin-top: 7rem; }
.form-card__intro { color: var(--muted); }
.form-card__fine { font-size: .9rem; color: var(--muted); margin: .75rem 0 0; text-align: center; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .7rem .85rem; border: 1.5px solid #B8C6DA; border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid var(--blue-soft); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--red); background: #FFF6F6; }
.field__err { color: var(--red-dark); font-size: .92rem; margin: .3rem 0 0; font-weight: 500; }
.notice-err { background: #FFF0F0; border-left: 4px solid var(--red); padding: .75rem 1rem; color: var(--red-dark); font-weight: 500; }
.notice-ok { text-align: left; }
.notice-ok h2 { color: var(--green); }

/* Contact */
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 4rem); max-width: 60rem; }
.contact-item { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-item:nth-child(-n+2) { padding-top: 0; }
@media (max-width: 860px) { .contact-item:nth-child(2) { padding-top: 1.25rem; } }
.contact-item h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.big-phone { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--navy); text-decoration: none; line-height: 1.25; }
.big-phone:hover { color: var(--red); }

/* Footer */
.site-foot { background: #0A1E4E; color: #B7C5E2; padding: 3.5rem 0 5.5rem; font-size: .98rem; }
.site-foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
.site-foot__logo { background: #fff; border-radius: 50%; margin-bottom: 1rem; }
.site-foot__name { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.25rem; line-height: 1.3; }
.site-foot h2 { color: #fff; font-size: 1.15rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .45rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: var(--yellow); text-decoration: underline; }
.site-foot__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }

/* Floating quick contact */
.quick-contact { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: flex; gap: .5rem; }
.quick-contact a {
  font-family: var(--display); font-weight: 700; text-decoration: none; color: #fff;
  padding: .75rem 1.1rem .65rem; border-radius: 999px; box-shadow: 0 8px 24px -8px rgba(15,42,107,.5);
}
.quick-contact__call { background: var(--navy); }
.quick-contact__wa { background: var(--green); }
.quick-contact a:hover { color: var(--yellow); }

/* Admin */
.admin-body { background: var(--paper); }
.login { max-width: 380px; margin: 5rem auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 2rem; text-align: center; }
.login img { margin: 0 auto 1rem; }
.login form { text-align: left; margin-bottom: 1rem; }
.admin-head { background: var(--navy); color: #fff; }
.admin-head__in { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font-family: var(--display); font-size: 1.2rem; }
.admin-head nav { display: flex; gap: 1.25rem; font-family: var(--body); font-size: 1rem; }
.admin-head a { color: #fff; }
.admin-main { padding: 2rem 0 4rem; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.admin-bar p { margin: 0 auto 0 0; }
.admin-search { display: flex; gap: .5rem; }
.admin-search input { font: inherit; padding: .6rem .8rem; border: 1.5px solid #B8C6DA; border-radius: var(--r-sm); min-width: 260px; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--blue-soft); color: var(--navy); white-space: nowrap; }
.table__msg { max-width: 22rem; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--r-md); padding: 2rem; text-align: center; color: var(--muted); }

/* Responsive */
@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: 0; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { flex-direction: row; justify-content: space-between; padding: .8rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--blue); padding-left: .9rem; }
  .nav-cta { margin: 1rem 0 0; }
  .facilities { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .steps li::after { display: none; }
}
@media (max-width: 860px) {
  .hero__grid, .split, .prose-grid, .contact-list, .site-foot__grid { grid-template-columns: 1fr; }
  .hero__grid { padding-top: 2rem; gap: 1rem; }
  .hero__text { padding-bottom: 0; }
  .hero__media { max-width: 420px; margin-inline: auto; }
  .stamp { left: -1rem; width: 13rem; }
  .stamp__big { font-size: 1.45rem; }
  .split__media { max-width: 420px; }
  .band__in { grid-template-columns: 1fr; gap: 1rem; text-align: left; }
  .panel { position: static; }
  .notices, .syllabus { grid-template-columns: 1fr; }
  .careers { columns: 1; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .topbar__in > span:first-child { display: none; }
  .topbar__in { justify-content: center; }
  .brand strong { font-size: 1rem; }
  .brand img { width: 46px; height: 46px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div, .facts div + div { padding: .7rem .5rem .2rem 0; border-left: 0; }
  .reasons, .facilities, .steps, .field-row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .quick-contact { left: 1rem; }
  .quick-contact a { flex: 1; text-align: center; }
  .admin-search input { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (min-width: 1021px) {
  .quick-contact__call { display: none; }
}

/* Privacy policy */
.policy ul { padding-left: 1.25rem; margin: 0 0 1em; }
.policy li { margin-bottom: .3rem; }
.site-foot__links { display: flex; gap: 1.5rem; }

/* Admin delete */
.table__del { background: none; border: 0; padding: 0; font: inherit; color: var(--red-dark); cursor: pointer; text-decoration: underline; }
.notice-ok-bar { background: #EAF7EF; border-left: 4px solid var(--green); padding: .75rem 1rem; margin-bottom: 1rem; }
