/* ==========================================================================
   Margdeep NEET PG 2026-27 Portal (https://neetpg.margdeep.in/)
   Universal Multi-Screen Responsive Stylesheet (320px Mobile -> 4K Ultra-Wide)
   Static Non-Fixed Header | Fluid Typography | Touch-Scrollable Data Tables
   ========================================================================== */
:root {
  --bg-page: #f4f7fb;
  --bg-card: #ffffff;
  --bg-navy: #0a2240;
  --bg-navy-light: #12345e;
  --teal-primary: #0d9488;
  --teal-dark: #0f766e;
  --amber-accent: #d97706;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #dbe3ef;
  --wa-green: #16a34a;
  --call-blue: #1d4ed8;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-sm: 0 2px 8px rgba(10, 34, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 34, 64, 0.09);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 68px;
}

a {
  color: var(--call-blue);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 28px);
}

/* Top Utility Bar (Static, Never Fixed) */
.top-utility-bar {
  background: #061529;
  color: #e2e8f0;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-utility-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
}
.top-utility-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.badge-live {
  background: var(--teal-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.top-utility-right {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.utility-link {
  color: #f8fafc;
  font-weight: 500;
}
.utility-wa {
  color: #4ade80;
}

/* Static Site Header */
.site-header {
  position: static;
  background: var(--bg-navy);
  color: #ffffff;
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none !important;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-primary), #14b8a6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.brand-accent {
  color: #2dd4bf;
}
.brand-sub {
  font-size: 0.76rem;
  color: #cbd5e1;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.nav-link {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s;
  text-decoration: none !important;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-cta-btn {
  background: var(--amber-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none !important;
}

/* Breadcrumbs */
.breadcrumb-bar {
  background: #eaf0f8;
  border-bottom: 1px solid var(--border-color);
  padding: 9px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.breadcrumb-list li::after {
  content: "›";
  margin-left: 6px;
  color: #94a3b8;
}
.breadcrumb-list li:last-child::after {
  content: "";
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #0a2240 0%, #113a69 60%, #0f5257 100%);
  color: #ffffff;
  padding: clamp(22px, 4vw, 42px) 0;
  border-bottom: 4px solid var(--teal-primary);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.hero-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
}
.hero-pill-gold {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  color: #fef3c7;
}
.hero-title {
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #ffffff;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: #dbeafe;
  max-width: 960px;
  margin-bottom: 18px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-primary-call, .btn-primary-wa, .btn-primary-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 18px;
  border-radius: 9px;
  text-decoration: none !important;
  transition: transform 0.15s;
}
.btn-primary-call {
  background: #2563eb;
  color: #ffffff;
}
.btn-primary-wa {
  background: #16a34a;
  color: #ffffff;
}
.btn-primary-form {
  background: #f59e0b;
  color: #0f172a;
}

/* Main Two-Column Layout (Zero Overflow) */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(18px, 3vw, 28px);
  padding: clamp(20px, 3.5vw, 36px) 0;
  align-items: start;
}
.main-column, .sidebar-column {
  min-width: 0;
  width: 100%;
}

/* Content Cards */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.8vw, 28px);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.aeo-box {
  background: linear-gradient(to right, #f0fdfa, #f8fafc);
  border-left: 5px solid var(--teal-primary);
}
.section-h2 {
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  color: var(--bg-navy);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}
.section-h3 {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--bg-navy-light);
  font-weight: 700;
  margin: 16px 0 8px;
}
.content-card p {
  margin-bottom: 12px;
  color: #1e293b;
  font-size: clamp(0.94rem, 1.2vw, 1.02rem);
}
.content-card ul, .content-card ol {
  padding-left: 20px;
  margin-bottom: 14px;
}
.content-card li {
  margin-bottom: 7px;
  color: #1e293b;
}

/* 6 KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 16px 0 6px;
}
.kpi-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 13px 14px;
  min-width: 0;
}
.kpi-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.kpi-val {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 800;
  color: var(--bg-navy);
}
.kpi-sub {
  font-size: 0.78rem;
  color: var(--teal-dark);
  margin-top: 3px;
}

/* Responsive Touch-Scrollable Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 14px 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  font-size: 0.9rem;
}
.data-table th {
  background: var(--bg-navy);
  color: #ffffff;
  text-align: left;
  padding: 11px 13px;
  font-weight: 700;
  font-size: 0.84rem;
}
.data-table td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}
.data-table tr:nth-child(even) td {
  background: #f8fafc;
}
.data-table tr:hover td {
  background: #f0fdfa;
}

/* FAQ Accordion / Cards */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 11px;
  background: #fcfdff;
}
.faq-q {
  font-weight: 700;
  color: var(--bg-navy);
  font-size: 1rem;
  margin-bottom: 6px;
}
.faq-a {
  color: #334155;
  font-size: 0.94rem;
  margin: 0 !important;
}

/* Interlinking Mesh Pills & Grid */
.interlink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.interlink-card {
  display: block;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--bg-navy);
  transition: border-color 0.15s, background 0.15s;
}
.interlink-card:hover {
  border-color: var(--teal-primary);
  background: #f0fdfa;
  text-decoration: none;
}
.interlink-meta {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
}

/* Sidebar Lead Capture Card */
.lead-card {
  background: #ffffff;
  border: 2px solid var(--bg-navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}
.lead-card-header {
  background: linear-gradient(135deg, var(--bg-navy), var(--bg-navy-light));
  color: #ffffff;
  padding: 16px 18px;
}
.lead-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.lead-card-sub {
  font-size: 0.82rem;
  color: #cbd5e1;
}
.lead-form {
  padding: 16px 18px;
}
.form-group {
  margin-bottom: 12px;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.form-input, .form-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px; /* Prevents iOS auto-zoom */
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text-main);
}
.form-input:focus, .form-select:focus {
  outline: 2px solid var(--teal-primary);
  background: #fff;
}
.form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--teal-primary), var(--teal-dark));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.form-submit-btn:hover {
  opacity: 0.95;
}
.lead-direct-box {
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  padding: 12px 18px;
  font-size: 0.85rem;
  text-align: center;
}

.lead-alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
}
.lead-alert-success {
  background: #dcfce7;
  border: 1px solid #16a34a;
  color: #14532d;
}
.lead-alert-error {
  background: #fee2e2;
  border: 1px solid #dc2626;
  color: #7f1d1d;
}

/* Footer */
.site-footer {
  background: #061529;
  color: #cbd5e1;
  padding: 40px 0 24px;
  margin-top: 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.footer-brand {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-about {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 14px;
}
.footer-contact-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.86rem;
}
.footer-contact-box a {
  color: #38bdf8;
  font-weight: 700;
}
.footer-heading {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #cbd5e1;
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: #2dd4bf;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: center;
}
.footer-bottom a {
  color: #38bdf8;
}

/* Floating Right-Side Call & WhatsApp Logo Buttons */
.floating-cta-stack {
  position: fixed;
  right: 16px;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.fab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 999px;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none !important;
}
.fab-wa {
  background: #16a34a;
}
.fab-call {
  background: #1d4ed8;
}

/* Mobile Bottom Sticky Action Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #061529;
  border-top: 2px solid var(--teal-primary);
  padding: 8px 10px;
  z-index: 1000;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.mbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 6px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff !important;
  text-decoration: none !important;
  text-align: center;
}
.mbar-call { background: #2563eb; }
.mbar-wa { background: #16a34a; }
.mbar-form { background: #d97706; }

/* Responsive Breakpoints across All Screens */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .nav-link, .nav-cta-btn {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 6px;
    font-size: 0.82rem;
  }
  .nav-cta-btn {
    grid-column: span 2;
    background: var(--amber-accent);
  }
  .hero-cta-row > a {
    flex: 1 1 100%;
  }
  .fab-label {
    display: none;
  }
  .fab-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
  }
  .mobile-bottom-bar {
    display: grid;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .data-table {
    min-width: 480px;
    font-size: 0.82rem;
  }
}
