/* ============================================================
   Jai Narayan Vyas School of Pharmacy, Barmer
   Simple, conventional institutional website
   ============================================================ */

:root {
  --green:      #0b6e4f;   /* primary pharmacy green */
  --green-dark: #095a40;
  --green-darker:#074733;
  --accent:     #e8a33d;   /* warm gold accent */
  --ink:        #1f2a26;
  --text:       #3c4a44;
  --muted:      #6b7872;
  --bg:         #ffffff;
  --bg-soft:    #f3f6f4;
  --line:       #e2e8e4;
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: "Merriweather", Georgia, serif; color: var(--ink); line-height: 1.3; font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.section { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--green); color: #fff;
  padding: 11px 24px; border-radius: 4px; font-weight: 600; font-size: 0.95rem;
  transition: background .2s;
}
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn--accent { background: var(--accent); color: #3a2a05; }
.btn--accent:hover { background: #d8922f; }
.btn--outline { background: transparent; color: #fff; border: 2px solid #fff; padding: 9px 22px; }
.btn--outline:hover { background: #fff; color: var(--green); }

/* ============================================================
   HEADER
   ============================================================ */
.topbar { background: var(--green-darker); color: #d7e7e0; font-size: 0.8rem; }
.topbar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; }

.brandbar { background: #fff; border-bottom: 1px solid var(--line); }
.brandbar .wrap { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brandbar__logo {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  background: var(--green); display: grid; place-items: center; color: #fff;
}
.brandbar__logo svg { width: 34px; height: 34px; }
.brandbar__name h1 { font-size: 1.45rem; color: var(--green-dark); line-height: 1.15; }
.brandbar__name p { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.brandbar__hindi { margin-left: auto; text-align: right; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.brandbar__hindi strong { display: block; color: var(--green-dark); font-size: 1rem; }

/* ---------- nav ---------- */
.mainnav { background: var(--green); position: sticky; top: 0; z-index: 50; }
.mainnav .wrap { display: flex; align-items: center; justify-content: space-between; }
.mainnav ul { display: flex; flex-wrap: wrap; }
.mainnav li a {
  display: block; color: #fff; padding: 14px 20px; font-size: 0.92rem; font-weight: 600;
  transition: background .15s;
}
.mainnav li a:hover { background: var(--green-dark); text-decoration: none; }
.mainnav li a.active { background: var(--green-darker); }
.nav-toggle { display: none; color: #fff; padding: 12px 16px; font-size: 1.4rem; }

/* ============================================================
   HERO / BANNER
   ============================================================ */
.banner { position: relative; background: var(--green-darker); }
.banner img { width: 100%; height: 440px; object-fit: cover; opacity: 0.55; }
.banner__caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
}
.banner__caption .wrap { color: #fff; }
.banner__caption span { display: inline-block; background: var(--accent); color: #3a2a05; font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.banner__caption h2 { color: #fff; font-size: 2.4rem; margin: 16px 0 10px; max-width: 18ch; }
.banner__caption p { font-size: 1.1rem; max-width: 46ch; margin-bottom: 22px; color: #eaf3ef; }
.banner__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* quick info strip */
.quickinfo { background: #fff; border-bottom: 1px solid var(--line); }
.quickinfo .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.quickinfo div { text-align: center; padding: 22px 12px; border-right: 1px solid var(--line); }
.quickinfo div:last-child { border-right: 0; }
.quickinfo strong { display: block; font-family: "Merriweather", Georgia, serif; font-size: 1.7rem; color: var(--green); }
.quickinfo small { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.sec-title { text-align: center; margin-bottom: 36px; }
.sec-title h2 { font-size: 1.9rem; color: var(--green-dark); }
.sec-title h2::after { content: ""; display: block; width: 60px; height: 3px; background: var(--accent); margin: 12px auto 0; }
.sec-title p { color: var(--muted); margin-top: 10px; max-width: 60ch; margin-left: auto; margin-right: auto; }
.sec-title--left { text-align: left; }
.sec-title--left h2::after { margin-left: 0; }
.sec-title--left p { margin-left: 0; }

/* ============================================================
   WELCOME (text + image)
   ============================================================ */
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.welcome img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; border-radius: 6px; }
.welcome h2 { font-size: 1.9rem; color: var(--green-dark); margin-bottom: 16px; }
.welcome h2::after { content: ""; display: block; width: 60px; height: 3px; background: var(--accent); margin-top: 12px; }
.welcome p { margin-bottom: 14px; }
.welcome .btn { margin-top: 8px; }

/* ============================================================
   WHY US
   ============================================================ */
.why { background: var(--green); color: #fff; }
.why .sec-title h2 { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item .tick {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: grid; place-items: center; color: var(--accent);
}
.why-item .tick svg { width: 18px; height: 18px; }
.why-item h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.why-item p { color: #dcebe5; font-size: 0.95rem; }

/* ============================================================
   CARDS (course / facility)
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 26px rgba(11,110,79,0.12); transform: translateY(-3px); }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card__body { padding: 18px 20px 22px; }
.card__body h3 { font-size: 1.15rem; color: var(--green-dark); margin-bottom: 8px; }
.card__body p { font-size: 0.93rem; color: var(--text); }

/* ============================================================
   COURSE HIGHLIGHT BOX
   ============================================================ */
.course-box { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.course-box__img { min-height: 320px; }
.course-box__img img { width: 100%; height: 100%; object-fit: cover; }
.course-box__body { padding: 34px 36px; }
.course-box__body .tag { display: inline-block; background: var(--bg-soft); color: var(--green-dark); border: 1px solid var(--line); font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 3px; text-transform: uppercase; }
.course-box__body h3 { font-size: 1.6rem; color: var(--green-dark); margin: 14px 0 12px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 26px; margin: 20px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.course-meta span { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.course-meta strong { font-family: "Merriweather", Georgia, serif; font-size: 1.25rem; color: var(--green); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { position: relative; overflow: hidden; border-radius: 6px; cursor: pointer; }
.gallery img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px;
  background: linear-gradient(to top, rgba(7,71,51,0.85), transparent);
  color: #fff; font-size: 0.9rem; font-weight: 600;
}
.center-btn { text-align: center; margin-top: 32px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(7,71,51,0.93); z-index: 200; display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 4px; }
.lightbox__close { position: absolute; top: 16px; right: 22px; color: #fff; font-size: 2.2rem; background: none; border: 0; cursor: pointer; }

/* ============================================================
   PAGE HEADER (interior)
   ============================================================ */
.page-head { background: var(--green-dark); color: #fff; padding: 46px 0; }
.page-head h1 { color: #fff; font-size: 2.1rem; }
.page-head .crumb { font-size: 0.85rem; color: #cfe3db; margin-top: 8px; }
.page-head .crumb a { color: #fff; }

/* prose */
.prose p { margin-bottom: 16px; }
.prose h3 { color: var(--green-dark); margin: 26px 0 12px; font-size: 1.3rem; }
.prose ul.bullets { margin: 0 0 16px 0; }
.prose ul.bullets li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }

/* two-col info layout */
.twocol { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.infobox { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 24px 26px; }
.infobox h3 { color: var(--green-dark); font-size: 1.2rem; margin-bottom: 14px; }
.infobox dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 0.95rem; }
.infobox dt { color: var(--muted); }
.infobox dd { font-weight: 600; color: var(--ink); }

/* subject list */
.subjects { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.subjects li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 4px; padding: 16px 18px; }
.subjects li strong { display: block; color: var(--green-dark); font-family: "Merriweather", Georgia, serif; }
.subjects li span { font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-card .ico { flex: none; width: 42px; height: 42px; border-radius: 6px; background: var(--bg-soft); display: grid; place-items: center; color: var(--green); }
.contact-card .ico svg { width: 20px; height: 20px; }
.contact-card h4 { color: var(--green-dark); font-size: 1rem; margin-bottom: 2px; }
.contact-card p, .contact-card a { font-size: 0.95rem; color: var(--text); }

form.enquiry { display: grid; gap: 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
form.enquiry h3 { color: var(--green-dark); }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px;
  font-family: inherit; font-size: 0.95rem; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,110,79,0.12); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { display: none; padding: 11px 14px; border-radius: 4px; background: #e6f3ee; color: var(--green-dark); font-size: 0.92rem; }
.form-status.show { display: block; }

.map-embed { margin-top: 24px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--green-darker); color: #cfe3db; padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 34px; }
.footer h4 { color: #fff; font-family: "Open Sans", sans-serif; font-size: 1rem; margin-bottom: 16px; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }
.footer-about strong { color: #fff; font-family: "Merriweather", serif; font-size: 1.1rem; display: block; margin-bottom: 10px; }
.footer-about p { font-size: 0.9rem; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #cfe3db; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-contact p { font-size: 0.92rem; margin-bottom: 8px; }
.footer-contact a { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding: 18px 0; text-align: center; font-size: 0.85rem; color: #a8c6ba; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .welcome, .course-box, .twocol, .contact-grid { grid-template-columns: 1fr; }
  .cards, .why-grid, .gallery, .quickinfo .wrap, .footer-grid, .subjects { grid-template-columns: 1fr 1fr; }
  .course-box__img { min-height: 240px; }
  .brandbar__hindi { display: none; }
}
@media (max-width: 600px) {
  .banner__caption h2 { font-size: 1.6rem; }
  .banner img { height: 380px; }
  .cards, .why-grid, .gallery, .quickinfo .wrap, .footer-grid, .subjects, .field-row { grid-template-columns: 1fr; }
  .quickinfo div { border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .mainnav ul { display: none; width: 100%; flex-direction: column; }
  .mainnav ul.open { display: flex; }
  .mainnav li a { padding: 13px 18px; border-top: 1px solid var(--green-dark); }
  .mainnav .wrap { flex-direction: column; align-items: stretch; }
  .nav-toggle { align-self: flex-end; }
}
