/* ===========================================
   MADANI ACADEMY — Public page styles
   Appended to homepage.css via CSS import-free
   concat. This file is for reference / fallback.
   =========================================== */

:root {
  --brand-primary: #1f7a4d; /* deep emerald */
  --brand-secondary: #c9a227; /* warm gold */
  --brand-dark: #0e3b2a;
  --brand-light: #f4f8f6;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
}

body.public-landing {
  background: #ffffff;
  color: var(--text-dark);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  padding-top: 68px; /* offset for fixed navbar */
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  position: relative;
}

.nav-brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-menu .nav-item {
  margin: 0;
}

.nav-menu .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition:
    color 0.2s ease,
    background 0.2s ease;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-menu .nav-link:hover {
  color: var(--brand-primary);
  background: var(--brand-light);
}

.nav-menu .nav-link.active,
.nav-menu .nav-link.active:hover {
  color: var(--brand-primary);
  font-weight: 600;
}

.nav-link.btn-login {
  background: var(--brand-primary);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.88rem;
}
.nav-link.btn-login:hover {
  background: var(--brand-dark);
  color: #fff !important;
}

/* Nav toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  background: none;
  border: none;
}
.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
  display: block;
}
.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Tablet / medium screens — reduce nav spacing */
@media (max-width: 992px) {
  .nav-menu .nav-link {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.35s ease,
      box-shadow 0.35s ease;
    box-shadow: none;
    padding: 0;
    gap: 0;
  }
  .nav-menu.active {
    max-height: 600px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
  }
  .nav-menu .nav-item {
    width: 100%;
  }
  .nav-menu .nav-link {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
  }
  .nav-menu .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  .nav-link.btn-login {
    margin: 8px 16px 8px;
    text-align: center;
    justify-content: center;
    border-radius: 6px;
  }
}

.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #e9f5ef 0%, #fdfaf0 100%);
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--brand-primary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 22px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-meta i {
  color: var(--brand-primary);
  margin-right: 6px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-graphic {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 200px;
  z-index: 2;
}
.graphic-circle {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--brand-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: spin 30s linear infinite;
}
.graphic-shape {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(31, 122, 77, 0.08),
    rgba(201, 162, 39, 0.08)
  );
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 40px;
  }
  .hero-graphic {
    width: 240px;
    height: 240px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-secondary:hover {
  background: var(--brand-primary);
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}
.btn-light:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--brand-dark);
}
.btn-block {
  width: 100%;
  justify-content: center;
}

.stats-section {
  padding: 60px 0;
  background: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat-item {
  padding: 20px;
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1;
}
.stat-label {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

.features {
  padding: 80px 0;
  background: #fafafa;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 2.1rem;
  color: var(--brand-dark);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  padding: 30px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  color: var(--brand-dark);
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.highlights {
  padding: 80px 0;
  background: #fff;
}
.highlights-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 768px) {
  .highlights-container {
    grid-template-columns: 1fr;
  }
}
.highlights-text h2 {
  font-size: 1.9rem;
  color: var(--brand-dark);
  margin-bottom: 16px;
}
.highlights-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.highlights-list {
  list-style: none;
  padding: 0;
}
.highlights-list li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}
.highlights-list i {
  color: var(--brand-primary);
  font-size: 1.1rem;
}

.cta {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-dark) 100%
  );
  color: #fff;
  padding: 60px 0;
}
.cta-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cta h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}
.cta p {
  opacity: 0.9;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-header {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, #e9f5ef 0%, #fdfaf0 100%);
  text-align: center;
}
.page-header h1 {
  font-size: 2.4rem;
  color: var(--brand-dark);
  margin-bottom: 10px;
}
.page-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.about-section {
  padding: 60px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.about-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.about-card h2 {
  color: var(--brand-dark);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.about-card h2 i {
  color: var(--brand-primary);
  margin-right: 8px;
}
.info-list {
  list-style: none;
  padding: 0;
}
.info-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}
.info-list li:last-child {
  border-bottom: none;
}
.about-mission p {
  color: var(--text-muted);
  line-height: 1.7;
}

.values-section {
  padding: 60px 0;
  background: var(--brand-light);
}
.text-center {
  text-align: center;
}
.values-section h2 {
  color: var(--brand-dark);
  margin-bottom: 30px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.value-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.value-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.value-card h3 {
  color: var(--brand-dark);
  margin-bottom: 6px;
}
.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.admission-section {
  padding: 60px 0;
}
.step-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 30px auto 0;
}
.step-item {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.step-number {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step-body h3 {
  color: var(--brand-dark);
  margin-bottom: 4px;
}
.step-body p {
  color: var(--text-muted);
}

.documents-section {
  padding: 60px 0;
  background: var(--brand-light);
}
.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
}
.documents-section h2 {
  color: var(--brand-dark);
  margin-bottom: 10px;
}
.documents-section h2 i {
  color: var(--brand-primary);
  margin-right: 8px;
}
.documents-list {
  list-style: none;
  padding: 0;
}
.documents-list li {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.documents-list i {
  color: var(--brand-primary);
}

.contact-section {
  padding: 60px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-info-card,
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.contact-info-card h2,
.contact-form-card h2 {
  color: var(--brand-dark);
  margin-bottom: 20px;
}
.contact-list {
  list-style: none;
  padding: 0;
}
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
  align-items: flex-start;
}
.contact-list li:last-child {
  border-bottom: none;
}
.contact-list i {
  color: var(--brand-primary);
  font-size: 1.1rem;
  margin-top: 2px;
}
.contact-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--brand-dark);
}
.contact-list p,
.contact-list a {
  color: var(--text-muted);
  text-decoration: none;
}
.contact-list a:hover {
  color: var(--brand-primary);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}
.contact-form .form-group {
  margin-bottom: 14px;
}
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.92rem;
}
.contact-form .required {
  color: #dc2626;
}
.contact-form .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.contact-form .form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.12);
}
.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}
.mt-3 {
  margin-top: 1rem;
}

.public-footer {
  background: var(--brand-dark);
  color: #e6f1ea;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.public-footer h4 {
  color: #fff;
  margin-bottom: 8px;
}
.public-footer h5 {
  color: #fff;
  margin-bottom: 12px;
}
.public-footer ul {
  list-style: none;
  padding: 0;
}
.public-footer ul li {
  padding: 4px 0;
}
.public-footer a {
  color: #cfe5d8;
  text-decoration: none;
}
.public-footer a:hover {
  color: #fff;
}
.public-footer .contact-list a {
  color: #cfe5d8;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 16px 0;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #cfe5d8;
}

/* ===========================================
   Certificate Verification Quick Section
   =========================================== */
.verify-quick {
  padding: 60px 0;
  background: var(--brand-light);
}
.verify-quick .section-header {
  text-align: center;
  margin-bottom: 30px;
}
.verify-quick .section-header h2 {
  font-size: 1.8rem;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.verify-quick .section-header h2 i {
  color: var(--brand-primary);
  margin-right: 6px;
}
.verify-quick .section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}
.verify-quick-card {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 28px 30px;
}
.verify-quick-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.verify-quick-field {
  flex: 1;
}
.verify-quick-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-size: 0.85rem;
}
.verify-quick-field label i {
  color: var(--brand-primary);
  margin-right: 4px;
}
.verify-quick-field input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  font-family: inherit;
}
.verify-quick-field input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.12);
}
.verify-quick-field input::placeholder {
  color: #aaa;
}
.verify-quick-btn {
  flex-shrink: 0;
}
.verify-quick-btn .btn {
  white-space: nowrap;
  padding: 12px 24px;
}
@media (max-width: 640px) {
  .verify-quick-row {
    flex-direction: column;
    gap: 12px;
  }
  .verify-quick-btn {
    width: 100%;
  }
  .verify-quick-btn .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
