/* ============================================================
   S.S. Girls Degree College, Agra — Stylesheet
   ============================================================ */

:root {
  --primary: #b22222;        /* college banner red */
  --primary-dark: #8a1414;
  --accent: #e8821e;         /* building orange */
  --dark: #1f2937;
  --muted: #6b7280;
  --light: #f7f4ef;
  --white: #ffffff;
  --border: #e5e0d8;
  --shadow: 0 4px 14px rgba(0,0,0,.08);
  --radius: 12px;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Noto Sans", Tahoma, Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 92%; max-width: var(--max); margin: 0 auto; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: .85rem;
}
.topbar .container {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 6px; padding: 7px 0;
}
.topbar a { color: #ffe9e0; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  box-shadow: var(--shadow);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem; letter-spacing: 1px;
  flex-shrink: 0;
}
.brand .logo-img { height: 56px; width: auto; flex-shrink: 0; }
@media (max-width: 520px) { .brand .logo-img { height: 46px; } }
.brand h1 { font-size: 1.12rem; color: var(--primary); line-height: 1.2; }
.brand p { font-size: .74rem; color: var(--muted); }

.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 2px; list-style: none; }
.nav-links a {
  color: var(--dark); font-weight: 500; font-size: .86rem;
  padding: 7px 9px; border-radius: 8px; display: block; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary); color: #fff; text-decoration: none;
}
.menu-toggle {
  display: none; background: var(--primary); color: #fff;
  border: 0; font-size: 1.5rem; line-height: 1;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: 90px 0;
  background: linear-gradient(rgba(20,10,5,.62), rgba(20,10,5,.72)),
              url("../images/gate.jpg") center/cover no-repeat;
}
.hero h2 { font-size: 2.3rem; margin-bottom: 8px; }
.hero .sub { font-size: 1.05rem; opacity: .95; max-width: 720px; margin: 0 auto 22px; }
.hero .lang-hi { display: block; font-size: 1.4rem; margin-top: 6px; }

.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 12px 26px; border-radius: 30px; font-weight: 600;
  border: 0; cursor: pointer; transition: .2s;
}
.btn:hover { background: #c96d12; text-decoration: none; transform: translateY(-2px); }
.btn.outline { background: transparent; border: 2px solid #fff; margin-left: 8px; }
.btn.outline:hover { background: #fff; color: var(--primary); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(rgba(20,10,5,.55), rgba(20,10,5,.65)),
              url("../images/building.jpg") center/cover no-repeat;
  color: #fff; text-align: center; padding: 56px 0;
}
.page-banner h2 { font-size: 2rem; }
.page-banner p { opacity: .9; }
.breadcrumb { font-size: .85rem; margin-top: 6px; opacity: .9; }
.breadcrumb a { color: #ffe1d4; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 38px; }
.section-title h3 { font-size: 1.7rem; color: var(--primary); }
.section-title span { color: var(--muted); font-size: .95rem; }
.section-title::after {
  content: ""; display: block; width: 70px; height: 3px;
  background: var(--accent); margin: 12px auto 0; border-radius: 3px;
}
.alt-bg { background: var(--light); }

.lead { font-size: 1.05rem; color: #374151; }
.hi { color: var(--muted); font-style: normal; }
p + p { margin-top: 12px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: .2s;
}
.card:hover { transform: translateY(-4px); }
.card img { height: 200px; object-fit: cover; width: 100%; }
.card .card-body { padding: 18px; }
.card h4 { color: var(--primary); margin-bottom: 6px; font-size: 1.15rem; }
.card .icon { font-size: 2rem; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.director-card { text-align: center; }
.director-card img {
  width: 200px; height: 240px; object-fit: cover; border-radius: var(--radius);
  margin: 0 auto 14px; border: 4px solid var(--accent);
}

/* ---------- Courses table ---------- */
.table-wrap { overflow-x: auto; }
table.info {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
table.info th, table.info td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.info th { background: var(--primary); color: #fff; }
table.info tr:last-child td { border-bottom: 0; }
table.info tr:nth-child(even) td { background: #faf7f2; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; background: #000; position: relative;
}
.gallery img { height: 230px; width: 100%; object-fit: cover; transition: .3s; }
.gallery figure:hover img { transform: scale(1.06); opacity: .9; }
.gallery figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff; padding: 18px 12px 10px; font-size: .85rem;
}

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.9); place-items: center; padding: 20px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 90%; max-height: 85vh; border-radius: 8px; }
.lightbox .close {
  position: absolute; top: 18px; right: 26px; color: #fff;
  font-size: 2.4rem; cursor: pointer; line-height: 1;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-info li { list-style: none; margin-bottom: 16px; display: flex; gap: 12px; }
.contact-info .ci-icon { font-size: 1.4rem; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .9rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: .95rem;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.map-embed iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* ---------- Legal / text pages ---------- */
.legal h3 { color: var(--primary); margin: 26px 0 10px; font-size: 1.25rem; }
.legal p, .legal li { color: #374151; }
.legal ul, .legal ol { margin: 8px 0 8px 22px; }
.legal .note {
  background: #fff7ed; border-left: 4px solid var(--accent);
  padding: 12px 16px; border-radius: 6px; margin: 16px 0; font-size: .92rem;
}
.placeholder { background: #fff3cd; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* ---------- Stats strip ---------- */
.stats { background: var(--primary); color: #fff; }
.stats .grid { grid-template-columns: repeat(4,1fr); text-align: center; }
.stats .num { font-size: 2rem; font-weight: 700; color: #ffd9c2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cbd5e1; padding: 46px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 30px; }
.site-footer h5 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-logo {
  height: 78px; width: auto; margin-bottom: 14px;
  background: #fff; border-radius: 50%; padding: 4px;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #374151; margin-top: 34px; padding: 16px 0;
  text-align: center; font-size: .85rem;
}
.footer-bottom a { color: #ffd9c2; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 10px; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .grid-3, .grid-2, .gallery { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: repeat(2,1fr); gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 1.7rem; }
}
@media (max-width: 520px) {
  .grid-3, .grid-2, .gallery { grid-template-columns: 1fr; }
  .brand h1 { font-size: .95rem; }
  .topbar { font-size: .78rem; }
}
