/* BISE Multan Official Emerald Theme Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-deep: #022c22;
  --primary-dark: #064e3b;
  --primary: #047857;
  --primary-light: #10b981;
  --primary-soft: #ecfdf5;
  --primary-glow: rgba(16, 185, 129, 0.25);
  
  --gold: #d97706;
  --gold-light: #fef3c7;
  --gold-border: #f59e0b;

  --surface-dark: #06231c;
  --surface-card: #ffffff;
  --surface-card-alt: #f8fafc;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e2e8f0;
  --border-emerald: #a7f3d0;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px -5px rgba(6, 78, 59, 0.08), 0 8px 10px -6px rgba(6, 78, 59, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(6, 78, 59, 0.15);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.3);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: #f3f7f5;
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-deep);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 1.3em;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
  border-radius: 4px;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

p {
  margin-bottom: 1rem;
  color: #334155;
  font-size: 1.025rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Top Bar Announcement Ticker */
.announcement-bar {
  background: linear-gradient(90deg, #022c22 0%, #064e3b 100%);
  color: #a7f3d0;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.ticker-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  gap: 1rem;
  width: 100%;
}

.ticker-badge {
  background: var(--gold);
  color: #ffffff;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ticker-text {
  white-space: nowrap;
  animation: ticker 25s linear infinite;
  color: #ecfdf5;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Navbar */
/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6, 78, 59, 0.12);
  box-shadow: var(--shadow-sm);
  min-height: 64px;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: 64px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-emblem {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-emerald);
  flex-shrink: 0;
}

.logo-text .brand-title {
  font-size: 1.15rem;
  margin: 0;
  color: var(--primary-deep);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-weight: 700;
  font-family: var(--font-heading);
}

.logo-text .brand-title::before { display: none; }

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.7vw, 0.85rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  white-space: nowrap;
  position: relative;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: color 0.2s ease;
  padding: 0.35rem 0.25rem;
  display: inline-block;
  text-decoration: none;
}

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

.nav-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white !important;
  padding: 0.45rem 0.95rem !important;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
  transition: all 0.25s ease;
  white-space: nowrap;
  font-weight: 700 !important;
  font-size: 0.83rem !important;
  flex-shrink: 0;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.4);
}

.mobile-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 1.35rem;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
}


/* Layout Containers */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero & Tool Box Section */
.hero-section {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 60%, #047857 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: white;
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-desc {
  color: #d1fae5;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  text-align: justify;
}

.hero-keyword-link {
  color: #fde047 !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  transition: color 0.2s ease;
}

.hero-keyword-link:hover {
  color: #ffffff !important;
}

.hero-desc-secondary {
  color: #a7f3d0;
  font-size: 0.975rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  text-align: justify;
}

/* AI Generated Banners Styling - 100% Full View Without Cropping */
.section-banner-box {
  width: 100%;
  margin: 0 0 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(2, 44, 34, 0.12);
  border: 2px solid var(--border-emerald);
  background: #022c22;
}

.section-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.section-banner-img:hover {
  transform: scale(1.01);
}

/* Interactive Result Tool Box */
.result-toolbox-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  color: var(--text-main);
  margin-top: 1.5rem;
  border: 2px solid var(--border-emerald);
}

.toolbox-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.toolbox-header h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.4rem;
  color: var(--primary-deep);
}

.toolbox-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tool-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 1rem;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.btn-search {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
}

.btn-search:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 22px rgba(4, 120, 87, 0.45);
}

/* Timer Countdown Loader Box */
.timer-loader-card {
  text-align: center;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
}

.spinner-ring {
  display: inline-block;
  width: 56px;
  height: 56px;
  border: 5px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.countdown-number {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin: 0.5rem 0;
  line-height: 1;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 50px;
  overflow: hidden;
  margin: 1.25rem 0;
  border: 1px solid var(--border-emerald);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50px;
  transition: width 1s linear;
}

.status-step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Quick Tool Links inside Tool Box */
.tool-quick-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.quick-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  background: var(--primary-soft);
  border-radius: 50px;
  border: 1px solid var(--border-emerald);
}

.quick-link-btn:hover {
  background: var(--primary-light);
  color: white;
  text-decoration: none;
}

/* Dynamic Content Card Styling */
.content-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.content-card p {
  color: #334155;
  line-height: 1.75;
}

/* Method Steps List */
.method-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.step-badge {
  background: var(--primary-dark);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}

.step-content {
  flex: 1;
}

.step-content strong {
  color: var(--primary-deep);
}

/* Tables Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: white;
  font-size: 0.95rem;
}

.custom-table th {
  background: linear-gradient(180deg, #064e3b 0%, #047857 100%);
  color: white;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.custom-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.custom-table tr:hover {
  background-color: #f1f5f9;
}

/* Status Badges */
.badge-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-announced {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.badge-coming {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
}

.badge-expected {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

/* Action Links in Tables */
.table-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem;
  background: var(--primary);
  color: white !important;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.table-btn:hover {
  background: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Grid Layouts for Class Cards & Districts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.grid-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-top: 4px solid var(--primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.grid-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

/* Boards List Grid */
.boards-grid-container {
  margin: 1.5rem 0;
}

.board-category-title {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin: 1.25rem 0 0.75rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--border-emerald);
}

.boards-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.board-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.board-item-link:hover {
  background: var(--primary-soft);
  border-color: var(--border-emerald);
  color: var(--primary-dark);
  text-decoration: none;
  transform: translateX(3px);
}

/* FAQs Accordion */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  text-align: left;
  background: #f8fafc;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--primary-soft);
}

.faq-answer {
  padding: 1.25rem;
  color: #334155;
  line-height: 1.7;
  border-top: 1px solid var(--border-light);
  background: white;
}

/* Student Support Comment Form */
.comment-box-section {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  border: 2px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.comment-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comment-form textarea {
  min-height: 110px;
  resize: vertical;
}

/* Modal for Simulated Result Sheet */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 44, 34, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: white;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-emerald);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  color: white;
  margin: 0;
}

.modal-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 1.5rem;
}

.marksheet-header-box {
  border: 2px solid var(--primary-dark);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  background: var(--primary-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.marksheet-info-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.marksheet-info-item strong {
  font-size: 1rem;
  color: var(--primary-deep);
}

/* Footer */
.footer {
  background: var(--primary-deep);
  color: #a7f3d0;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--primary-light);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 400;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  text-align: center;
  font-size: 0.85rem;
  color: #ffffff !important;
}

.footer-bottom p {
  color: #ffffff !important;
}

/* Responsive Media Queries */
@media (max-width: 1150px) {
  .logo-sub {
    display: none;
  }
}

@media (max-width: 1050px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--primary);
    gap: 0.75rem;
    animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.active li {
    width: 100%;
  }

  .nav-links.active a {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
  }

  .nav-links.active a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
  }

  .nav-links.active .nav-btn {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    margin-top: 0.35rem;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .tool-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    padding: 1rem 0.85rem;
  }

  .nav-container {
    padding: 0.75rem 1rem;
  }

  .hero-section {
    padding: 1.5rem 1.15rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .result-toolbox-card {
    padding: 1.25rem 1rem;
    margin-top: 1rem;
    border-radius: var(--radius-md);
  }

  .content-card {
    padding: 1.35rem 1.15rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-md);
  }

  .grid-card {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-md);
  }

  .comment-box-section {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .step-item {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.85rem 0.85rem;
  }

  .comment-input-grid {
    grid-template-columns: 1fr;
  }

  .custom-table th,
  .custom-table td {
    padding: 0.75rem 0.75rem;
    font-size: 0.9rem;
  }

  .table-responsive {
    margin: 1rem 0;
  }

  .footer {
    padding: 2rem 1rem 1rem 1rem;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .main-wrapper {
    padding: 0.85rem 0.75rem;
  }

  .hero-section,
  .content-card,
  .result-toolbox-card,
  .comment-box-section {
    padding: 1.15rem 0.85rem;
  }

  .custom-table th,
  .custom-table td {
    padding: 0.65rem 0.65rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Navigation Dropdown Menu Styles
   ========================================================================== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: " ▾";
  font-size: 0.8em;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 0.6rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li {
  margin: 0;
}
.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--text-main) !important;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.dropdown-menu li a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark) !important;
}

@media (max-width: 1040px) {
  .mobile-toggle {
    display: block !important;
  }

  .nav-links {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 1rem 1.25rem !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    border-bottom: 3px solid var(--primary) !important;
    display: none !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links li {
    width: 100% !important;
  }

  .nav-links a {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.95rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: block !important;
    width: 100% !important;
  }

  .nav-btn {
    text-align: center !important;
    margin-top: 0.75rem !important;
    display: block !important;
    width: 100% !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
  }

  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: rgba(4, 120, 87, 0.05) !important;
    padding-left: 1rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: var(--radius-sm) !important;
    display: block !important;
  }

  .dropdown-menu li a {
    padding: 0.5rem 0.8rem !important;
    font-size: 0.88rem !important;
    border-bottom: none !important;
  }
}


/* ==========================================================================
   Board Specific Landing Page Styling
   ========================================================================== */
.board-hero-card {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 60%, #047857 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.board-hero-card h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}
.board-banner-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
  border: 3px solid #ffffff;
}
.board-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem 0;
}
.stat-item-card {
  background: #ffffff;
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-item-card .stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.stat-item-card .stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Blog Category Directory & Article Layout Styling
   ========================================================================== */
.blog-header-hero {
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}
.blog-header-hero h1 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.blog-header-hero p {
  color: #e2e8f0;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-emerald);
}
.blog-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-category-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.blog-card-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.blog-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-card-title a:hover {
  color: var(--primary);
}
.blog-card-excerpt {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.blog-card-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

/* Article Page Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}
.article-main-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.article-banner-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 1.5rem 0 2rem 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.article-meta-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.article-author-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1e293b;
}
.article-content h2 {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  font-size: 1.65rem;
}
.article-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}
.toc-card {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0 2rem 0;
}
.toc-card h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}
.toc-card ul {
  padding-left: 1.2rem;
}
.toc-card li {
  margin-bottom: 0.4rem;
}
.toc-card a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.92rem;
}
.toc-card a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.sidebar-widget h4 {
  font-size: 1.1rem;
  color: var(--primary-deep);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-soft);
}
.recent-post-link {
  display: block;
  padding: 0.65rem 0;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px dashed #e2e8f0;
  transition: color 0.2s ease;
}
.recent-post-link:hover {
  color: var(--primary-light);
}

/* =========================================================
   Modern Distinct Hero Section & Unique Banner Color Schemes
   ========================================================= */

.hero-modern {
  position: relative;
  padding: 3rem 1.5rem 3.5rem;
  border-radius: var(--radius-lg);
  color: #ffffff;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* Gradient Presets */
.bg-theme-sahiwal { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%); }
.bg-theme-sargodha { background: linear-gradient(135deg, #042f2e 0%, #0f766e 50%, #0d9488 100%); }
.bg-theme-bahawalpur { background: linear-gradient(135deg, #451a03 0%, #78350f 50%, #d97706 100%); }
.bg-theme-dgkhan { background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #4f46e5 100%); }
.bg-theme-peshawar { background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #10b981 100%); }
.bg-theme-quetta { background: linear-gradient(135deg, #4c0519 0%, #881337 50%, #e11d48 100%); }
.bg-theme-tools { background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%); }
.bg-theme-rules { background: linear-gradient(135deg, #3b0764 0%, #6b21a8 50%, #9333ea 100%); }
.bg-theme-scheme { background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0284c7 100%); }
.bg-theme-gold { background: linear-gradient(135deg, #2a1b04 0%, #854d0e 50%, #ca8a04 100%); }

.hero-modern-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero-modern-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-modern h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-modern p.lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-quick-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-feature-tag {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  color: var(--text-main);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-glass-card h3 {
  color: var(--primary-deep);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Interlinking Section Style */
.interlink-grid-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.interlink-links-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.interlink-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.interlink-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* =========================================================
   Responsive Hero Theme Gradient Classes
   ========================================================= */

.hero-theme-sahiwal { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%) !important; }
.hero-theme-sargodha { background: linear-gradient(135deg, #042f2e 0%, #0f766e 60%, #0d9488 100%) !important; }
.hero-theme-bahawalpur { background: linear-gradient(135deg, #451a03 0%, #78350f 60%, #d97706 100%) !important; }
.hero-theme-dgkhan { background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 60%, #4f46e5 100%) !important; }
.hero-theme-peshawar { background: linear-gradient(135deg, #064e3b 0%, #047857 60%, #10b981 100%) !important; }
.hero-theme-quetta { background: linear-gradient(135deg, #4c0519 0%, #881337 60%, #e11d48 100%) !important; }
.hero-theme-tools { background: linear-gradient(135deg, #0f172a 0%, #334155 60%, #475569 100%) !important; }
.hero-theme-rules { background: linear-gradient(135deg, #3b0764 0%, #6b21a8 60%, #9333ea 100%) !important; }
.hero-theme-scheme { background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 60%, #0284c7 100%) !important; }
.hero-theme-gold { background: linear-gradient(135deg, #2a1b04 0%, #854d0e 60%, #ca8a04 100%) !important; }




