:root {
  --color-primary: #0b5c4b;
  --color-primary-dark: #084a3c;
  --color-accent: #c9a227;
  --color-accent-hover: #b8921f;
  --color-bg: #f7f9f8;
  --color-surface: #ffffff;
  --color-text: #1a2e28;
  --color-muted: #5a6f68;
  --color-border: #dde8e4;
  --shadow-sm: 0 2px 8px rgba(11, 92, 75, 0.08);
  --shadow-md: 0 8px 32px rgba(11, 92, 75, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.urdu {
  font-family: var(--font-urdu);
  line-height: 2;
}

.section {
  padding: 5rem 0;
}

.section-muted {
  background: #eef4f2;
}

.section-dark {
  background: var(--color-primary-dark);
  color: #e8f2ef;
}

.section-dark a {
  color: var(--color-accent);
}

.section-label {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-dark .section-label {
  color: var(--color-accent);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-head h2,
.split-copy h2,
.mission-layout h2,
.admissions-card h2,
.contact-grid h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.section-intro {
  margin-top: 1rem;
  color: var(--color-muted);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
  transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-app {
  background: var(--color-accent);
  color: #1a2e28;
  border-color: var(--color-accent);
}

.btn-app:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #1a2e28;
}

.btn-app-large {
  background: rgba(201, 162, 39, 0.95);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--slide-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 74, 60, 0.88) 0%,
    rgba(11, 92, 75, 0.72) 45%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  color: #fff;
  max-width: 720px;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.15);
}

/* Notice */
.notice-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.notice-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.notice-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.notice-card p {
  margin: 0;
  color: var(--color-muted);
}

/* About */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.check-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.chairman-card {
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.chairman-photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
}

.chairman-name {
  margin: 1rem 0 0.25rem;
  font-weight: 700;
}

.chairman-role {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(11, 92, 75, 0.1);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Branches */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.branch-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.branch-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.branch-card h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}

.branch-card p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.branch-card a {
  font-weight: 600;
  font-size: 0.92rem;
}

/* Mission */
.mission-layout {
  display: grid;
  gap: 1.5rem;
  max-width: 860px;
}

.mission-text {
  font-size: 1.05rem;
  color: var(--color-muted);
}

/* Admissions */
.admissions-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.admissions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admissions-card .btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.admissions-card .btn-outline:hover {
  background: rgba(11, 92, 75, 0.08);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  background: #062e26;
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
}

.btn-app-footer {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 3rem 0;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.5rem 0;
  }

  .notice-card {
    flex-direction: column;
  }

  .admissions-card {
    padding: 1.5rem;
  }

  .brand-text small {
    display: none;
  }
}
