/* ==========================================================================
   KNISP_PEO MAIN STYLESHEET
   Comprehensive responsive styling for all pages, sections, and widgets.
   ========================================================================== */

/* Typography & Layout Utilities */
.section-padding {
  padding: 70px 0;
}

.section-padding-sm {
  padding: 40px 0;
}

.bg-white {
  background-color: #ffffff;
}

.bg-subtle {
  background-color: #f8fafc;
}

.bg-primary-subtle {
  background-color: #f0fdf4;
}

.text-center {
  text-align: center;
}

.section-header {
  margin-bottom: 45px;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  background: var(--primary-subtle);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #143e06 0%, #1e700a 60%, #2b9912 100%);
  color: #ffffff;
  padding: 85px 0 95px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-content h1 span {
  color: #fef08a;
  display: block;
}

.hero-tagline {
  font-size: 1.2rem;
  color: #d1fae5;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge-icon {
  font-size: 2rem;
}

.hero-badge-text {
  font-size: 0.9rem;
  color: #e2e8f0;
}

.hero-image-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-logo-img {
  max-width: 280px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

.hero-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 500;
}

.hero-highlights li i, .hero-highlights li .check {
  color: #fef08a;
  font-weight: bold;
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 10px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   FEATURE CARDS & METHODOLOGIES
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.feature-card .contact-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   SCHOOLS & PROGRAMS (2-SCHOOL SYSTEM)
   ========================================================================== */
.schools-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.school-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.school-box.academics {
  border-top: 6px solid var(--primary-color);
}

.school-box.venture {
  border-top: 6px solid var(--secondary-color);
}

.school-box:hover {
  box-shadow: var(--shadow-lg);
}

.school-box h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.school-box .badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.badge-academics {
  background: var(--primary-subtle);
  color: var(--primary-color);
}

.badge-venture {
  background: #fef3c7;
  color: #92400e;
}

.school-programs-list {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.school-programs-list li {
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.school-programs-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 800;
}

/* ==========================================================================
   SUBJECTS TABLE & PRICING
   ========================================================================== */
.pricing-banner {
  background: linear-gradient(to right, #f0fdf4, #ecfdf5);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.price-card {
  text-align: center;
}

.price-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.peo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.peo-table th {
  background-color: #f1f5f9;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
}

.peo-table td {
  padding: 14px 18px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.peo-table tr:hover td {
  background-color: #f8fafc;
}

.curriculum-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.tag-caps { background: #dbeafe; color: #1e40af; }
.tag-ieb { background: #fef3c7; color: #92400e; }
.tag-cambridge { background: #fee2e2; color: #991b1b; }

/* ==========================================================================
   TEAM MEMBERS
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 16px;
  border: 3px solid #bbf7d0;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.team-qual {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   POLICIES PORTAL & TABS
   ========================================================================== */
.policy-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.policy-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.policy-tab-btn {
  flex: 1;
  min-width: 220px;
  padding: 18px 24px;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.policy-tab-btn.active {
  background: #ffffff;
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.policy-content-pane {
  padding: 40px;
  display: none;
}

.policy-content-pane.active {
  display: block;
}

.policy-body {
  font-size: 0.96rem;
  line-height: 1.8;
  color: #334155;
}

.policy-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 28px 0 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.policy-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 20px 0 10px;
}

.policy-body p {
  margin-bottom: 16px;
}

.policy-body ul, .policy-body ol {
  margin: 14px 0 20px 24px;
}

.policy-body li {
  margin-bottom: 8px;
}

.policy-callout {
  background: #f0fdf4;
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
  font-weight: 500;
}

/* ==========================================================================
   CONTACT US SECTION & FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  transition: var(--transition);
  background-color: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 112, 10, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #0f2a05;
  color: #94a3b8;
  padding: 70px 0 25px;
  border-top: 4px solid var(--primary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 35px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background: var(--primary-light);
}

.footer-logo {
  height: 55px;
  margin-bottom: 16px;
  filter: brightness(1.2);
}

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

.footer-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fef08a;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #cbd5e1;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-badge-wrap {
    justify-content: center;
  }
  .schools-split {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .policy-content-pane {
    padding: 20px;
  }
}
