/* ============================================
   RR ACADEMY - UI/UX COMPREHENSIVE FIXES 2026
   Fullstack Engineer Audit & Implementation
   ============================================ */

/* ========== GLOBAL SPACING & LAYOUT FIXES ========== */

:root {
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
}

html, body {
  overflow-x: hidden;
}

/* ========== PRICING PAGE HERO FIXES ========== */

.pricing-page .sub_banner {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-page .sub_banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(130deg, rgba(9, 18, 42, 0.78), rgba(23, 48, 92, 0.78));
  z-index: 1;
  height: 100%;
}

.pricing-page .sub_banner_con {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  width: 100%;
}

.pricing-page .sub_banner_content {
  animation: fadeInUp 0.6s ease-out;
}

/* ========== PRICING INTRO SECTION - IMPROVED SPACING ========== */

.pricing-page .pricing-intro {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #f7fafc 0%, #f2f6fb 100%);
}

.pricing-page .pricing-meta-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 36px;
  border: 1px solid #d6e4ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.pricing-page .pricing-story {
  padding: 32px;
  background: #ffffff;
  border: 1px solid #d7e3f5;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.pricing-page .pricing-story h2 {
  margin-bottom: 16px;
  font-size: 28px;
  line-height: 1.3;
}

.pricing-page .pricing-story p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
}

.pricing-page .registration-card {
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 28, 54, 0.95), rgba(26, 45, 78, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(11, 18, 33, 0.24);
}

.pricing-page .pricing-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.pricing-page .pricing-list-grid h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.pricing-page .pricing-list-grid li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 14px;
}

/* ========== PACKAGE CARDS - 4 IN A ROW ========== */

.pricing-page .package-individual .package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.pricing-page .package-individual .col-lg-3 {
  flex: 1 1 calc(25% - 15px);
  min-width: 260px;
}

.pricing-page .package-card {
  height: 100%;
  border-radius: 16px;
  padding: 24px;
  border: 1.5px solid #d7e3f5;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-page .package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
  border-color: #b9cdf1;
}

.pricing-page .package-header {
  margin-bottom: 12px;
}

.pricing-page .package-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.pricing-page .package-card .subject-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.pricing-page .package-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 16px;
}

.pricing-page .package-price .amount {
  font-size: 44px;
  font-weight: 800;
  color: #0b3a9a;
  letter-spacing: -0.02em;
}

.pricing-page .package-price .period {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.pricing-page .package-subjects {
  margin: 12px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef1f8;
}

.pricing-page .package-features {
  flex-grow: 1;
  margin-bottom: 12px;
}

.pricing-page .package-features li {
  font-size: 13px;
  margin-bottom: 6px;
  color: #475569;
}

.pricing-page .package-card .recommended {
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: 0;
  margin-bottom: 0;
  border-top: 1px solid #eef1f8;
  font-size: 13px;
  color: #64748b;
}

.pricing-page .package-cta {
  width: 100%;
  padding: 12px 16px;
  margin-top: auto;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: #f1f5f9;
  color: #1e40af;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-page .package-cta:hover {
  background: #1e40af;
  color: #ffffff;
  border-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

/* ========== GROUP TUITION CARDS - 3 IN A ROW ========== */

.pricing-page .package-group .package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.pricing-page .package-group .col-lg-4 {
  flex: 1 1 calc(33.333% - 14px);
  min-width: 300px;
}

/* ========== SUBJECT GRID CARDS ========== */

.subjects-page .subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.subjects-page .subject-card {
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #d7e3f5;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.subjects-page .subject-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: #b9cdf1;
}

.subjects-page .subject-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.subjects-page .subject-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.subjects-page .subject-card p {
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.6;
}

.subjects-page .subject-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.subjects-page .subject-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 14px;
  color: #475569;
}

.subjects-page .subject-card li i {
  color: #2563eb;
  margin-top: 3px;
  flex-shrink: 0;
}

.subjects-page .subject-card .primary_btn {
  margin-top: auto;
}

/* ========== CONTACT PAGE IMPROVEMENTS ========== */

.contact-page .contact-highlights {
  padding: 80px 0;
  background: #ffffff;
}

.contact-page .contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.contact-page .contact-card {
  padding: 28px;
  border-radius: 14px;
  border: 1px solid #d7e3f5;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.contact-page .contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  border-color: #b9cdf1;
}

.contact-page .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.contact-page .contact-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.contact-page .contact-card a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.contact-page .contact-card a:hover {
  text-decoration: underline;
}

.contact-page .contact-card .helper {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 0;
}

.contact-page .contact-form-wrap {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
}

.contact-page .contact-form-card {
  padding: 32px;
  background: #ffffff;
  border: 1px solid #d7e3f5;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.contact-page .contact-form-card h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #0f172a;
}

.contact-page .form-control {
  padding: 12px 14px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  font-size: 14px;
  background: #f8fbff;
  transition: all 0.2s ease;
}

.contact-page .form-control:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.contact-page .form_style {
  padding: 12px 14px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  font-size: 14px;
  background: #f8fbff;
}

.contact-page .form_style:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* ========== SUB-BANNER HEIGHT FIXES ========== */

.sub_banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.sub_banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  z-index: 0;
  height: 100%;
}

.sub_banner_con {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub_banner_content {
  text-align: center;
  width: 100%;
}

/* ========== FOOTER SOCIAL BUBBLE PLACEMENT ========== */

.footer-social-bubble {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-social-bubble a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  transition: all 0.2s ease;
}

.footer-social-bubble a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

/* ========== MOBILE RESPONSIVENESS FIXES ========== */

@media screen and (max-width: 1199px) {
  .pricing-page .package-individual .col-lg-3 {
    flex: 1 1 calc(50% - 10px);
    min-width: 260px;
  }

  .pricing-page .package-group .col-lg-4 {
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
  }
}

@media screen and (max-width: 991px) {
  .pricing-page .sub_banner {
    min-height: 400px;
  }

  .pricing-page .sub_banner_con {
    padding: 40px 0;
  }

  .pricing-page .pricing-intro {
    padding: 60px 0 40px;
  }

  .pricing-page .pricing-story {
    padding: 24px;
    margin-bottom: 24px;
  }

  .pricing-page .registration-card {
    margin-top: 24px;
  }

  .pricing-page .pricing-list-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-page .package-individual .package-grid,
  .pricing-page .package-group .package-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-page .package-individual .col-lg-3,
  .pricing-page .package-group .col-lg-4 {
    flex: 1 1 100%;
    min-width: unset;
  }

  .subjects-page .subject-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-page .contact-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .contact-page .contact-card {
    padding: 20px;
  }

  .contact-page .contact-form-card {
    padding: 24px;
  }

  .footer-social-bubble {
    flex-direction: row;
    justify-content: center;
  }
}

@media screen and (max-width: 767px) {
  .pricing-page .sub_banner {
    min-height: 300px;
  }

  .pricing-page .sub_banner_content h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .pricing-page .sub_banner_content p {
    font-size: 14px;
  }

  .pricing-page .pricing-intro {
    padding: 40px 0 30px;
  }

  .pricing-page .pricing-story {
    padding: 20px;
  }

  .pricing-page .pricing-story h2 {
    font-size: 22px;
  }

  .pricing-page .pricing-meta-note {
    padding: 12px 14px;
    gap: 10px;
    margin-bottom: 24px;
  }

  .pricing-page .registration-card {
    padding: 24px;
  }

  .pricing-page .registration-price {
    font-size: 36px;
  }

  .pricing-page .package-card {
    padding: 20px;
  }

  .pricing-page .package-card h3 {
    font-size: 18px;
  }

  .pricing-page .package-price .amount {
    font-size: 36px;
  }

  .subjects-page .subject-card {
    padding: 20px;
  }

  .subjects-page .subject-card h3 {
    font-size: 18px;
  }

  .contact-page .contact-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-page .contact-card {
    padding: 20px;
  }

  .contact-page .contact-card h4 {
    font-size: 16px;
  }

  .contact-page .icon-circle {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .contact-page .contact-form-card {
    padding: 20px;
  }

  .footer-social-bubble {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 575px) {
  .pricing-page .sub_banner {
    min-height: 250px;
  }

  .pricing-page .sub_banner_con {
    padding: 30px 0;
  }

  .pricing-page .sub_banner_content h1 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .pricing-page .pricing-intro {
    padding: 30px 0 20px;
  }

  .pricing-page .pricing-story,
  .pricing-page .registration-card {
    margin-bottom: 20px;
  }

  .pricing-page .package-card {
    padding: 16px;
  }

  .pricing-page .package-card h3 {
    font-size: 16px;
  }

  .pricing-page .package-price .amount {
    font-size: 32px;
  }

  .subjects-page .subject-card {
    padding: 16px;
  }

  .contact-page .contact-form-card {
    padding: 16px;
  }

  .contact-page .form-control,
  .contact-page .form_style {
    font-size: 16px;
  }

  .contact-page .primary_btn {
    width: 100%;
  }
}

/* ========== GENERAL UI IMPROVEMENTS ========== */

/* Smooth transitions */
* {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a, button {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improved button styling */
.primary_btn, .secondary_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary_btn:hover {
  transform: translateY(-2px);
}

/* Card consistency */
.card, .detail-card, .package-card, .subject-card, .contact-card {
  border-radius: 16px;
  transition: all 0.3s ease;
}

/* Improved spacing consistency */
section {
  padding: 60px 0;
}

section.section-xs {
  padding: 30px 0;
}

section.section-sm {
  padding: 40px 0;
}

section.section-lg {
  padding: 80px 0;
}

section.section-xl {
  padding: 100px 0;
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus states for accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Improved link styling */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Animation helpers */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== DIRECTOR MESSAGE SECTION IMPROVEMENTS ========== */

.director-message-con {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.director-message-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  border: 1px solid #dbe7f8;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  position: relative;
  overflow: hidden;
}

.director-message-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.director-message-card .row {
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 30px;
}

.director-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
  border: 3px solid rgba(37, 99, 235, 0.1);
}

.director-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.director-message-card:hover .director-photo img {
  transform: scale(1.05);
}

.director-content {
  padding: 20px 0;
}

.director-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 6px;
}

.director-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.director-content p {
  font-size: 15px;
  color: #475569;
  margin-bottom: 14px;
  line-height: 1.7;
}

.director-signoff {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid #eef1f8;
  display: block;
}

.director-signoff::before {
  content: '— ';
  margin-right: 4px;
}

/* ========== HOME PAGE SECTION IMPROVEMENTS ========== */

.banner2-con {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.banner_content {
  margin-bottom: 0;
}

.banner-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #dcfd7d;
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  line-height: 1.6;
}

.button_wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.about-con {
  padding: 80px 0;
  background: #ffffff;
}

.about_content h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #0f172a;
}

.about_content p {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 16px;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.about-stat {
  text-align: center;
}

.about-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 4px;
}

.about-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== HEADER & FOOTER SEO IMPROVEMENTS ========== */

header {
  position: relative;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.navbar {
  padding: 14px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: #0f172a;
}

.navbar-brand:hover {
  color: #2563eb;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
}

.nav-link.active::after {
  width: 100%;
}

footer {
  background: linear-gradient(135deg, #0f1f3e, #173261);
  color: #e2ebff;
  padding: 60px 0 20px;
  margin-top: 40px;
}

footer h3, footer h4 {
  color: #f8fbff;
  margin-bottom: 16px;
}

footer p {
  font-size: 14px;
  line-height: 1.6;
  color: #c8d4ff;
}

footer a {
  color: #dcfd7d;
  text-decoration: none;
  transition: all 0.2s ease;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

footer ul li {
  margin-bottom: 8px;
}

footer ul li i {
  margin-right: 8px;
  color: #dcfd7d;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.footer-link-section h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.footer-link-section ul {
  margin-bottom: 12px;
  padding: 0;
  margin: 0;
}

.footer-link-section ul li {
  margin-bottom: 8px;
  display: grid;
  gap: 12px;
}
}
  margin-bottom: 0;
}

  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
}
.footer-link-section ul li a {
  margin-top: 3px;
  min-width: 16px;
  font-size: 13px;
  color: #c8d4ff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  padding: 2px 0;
  text-align: center;
  font-size: 13px;
  color: #a8b5d1;
}

/* ========== RESPONSIVE FOOTER ========== */

@media screen and (max-width: 991px) {
  footer {
    padding: 40px 0 20px;
  }

  .footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    flex-direction: column;
    gap: 10px;
  }

    margin-top: 2px;
  }
  .footer-left,
  .footer-links {
    width: 100%;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact-panel {
    width: 100%;
    min-width: 0;
  }

  .footer-social-bubble {
    position: static;
    margin-bottom: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-bottom {
    margin-top: 32px;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .director-message-card {
    padding: 30px;
  }

  .director-message-card .col-lg-5,
  .director-message-card .col-md-5 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 24px;
  }

  .director-message-card .col-lg-7,
  .director-message-card .col-md-7 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 0;
  }

  .hero-title {
    font-size: 36px;
  }
}

@media screen and (max-width: 767px) {
  footer {
    padding: 30px 0 20px;
  }

  .footer-links {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-contact-panel {
    padding: 12px 14px;
  }

  .footer-contact-panel ul li a {
    align-items: flex-start;
    line-height: 1.5;
  }

  .footer-bottom-links {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .director-message-card {
    padding: 24px;
  }

  .director-message-card::before {
    display: none;
  }

  .director-photo {
    margin-bottom: 20px;
  }

}


/* Simplified footer presentation */
.footer-con {
  background: #171717;
  color: #d7deea;
  padding: 72px 0 28px;
}

.footer-card {
  padding: 0;
}

.footer-social-bubble {
  position: absolute;
  top: 32px;
  right: 32px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  gap: 10px;
  width: auto;
  z-index: 2;
}

.footer-social-bubble a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-top {
  gap: 48px;
  align-items: flex-start;
}

.footer-left {
  max-width: 460px;
}

.footer-kicker {
  color: #b2bac7;
}

.footer-title {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
  margin-bottom: 18px;
}

.footer-brand {
  flex-wrap: wrap;
}

.footer-brand .brand-tagline {
  max-width: 280px;
  color: #c7cfdb;
}

.footer-links {
  gap: 40px;
}

.footer-col {
  min-width: 150px;
}

.footer-col h5 {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a,
.footer-bottom-links a,
.footer-company-reg,
.footer-admin-access {
  color: #cfd6e4;
}

.footer-col ul li a:hover,
.footer-bottom-links a:hover,
.footer-admin-access a {
  color: #dcfd7d;
}

.footer-contact-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.footer-contact-panel ul li a i,
.footer-contact-panel ul li a span {
  color: #d7deea;
}

.footer-hours-text {
  color: #a8b3c5;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 991px) {
  .footer-top {
    flex-direction: column;
    gap: 28px;
  }

  .footer-left,
  .footer-links {
    width: 100%;
  }

  .footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .footer-brand,
  .footer-contact-panel {
    width: 100%;
  }

  .footer-social-bubble {
    position: static;
    margin-bottom: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .footer-con {
    padding: 56px 0 24px;
  }

  .footer-title {
    font-size: 28px;
  }

  .footer-links {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-contact-panel {
    padding: 12px 14px;
  }

  .footer-contact-panel ul li a {
    align-items: flex-start;
    line-height: 1.5;
  }

  .footer-bottom {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-links {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
}
  .director-content h2 {
    font-size: 22px;
  }

  .hero-title {
    font-size: 28px;
  }

  .button_wrap {
    flex-direction: column;
  }

  .primary_btn, .secondary_btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== ADDITIONAL MOBILE OPTIMIZATIONS ========== */

@media screen and (max-width: 576px) {
  /* Navbar adjustments for small screens */
  .navbar-brand {
    font-size: 16px;
  }

  /* Ensure buttons are touch-friendly */
  button,
  .btn,
  .primary_btn,
  .secondary_btn,
  a.btn {
    min-height: 44px;
    padding: 10px 16px;
  }

  /* Form improvements */
  .form-control,
  .form_style,
  input,
  textarea,
  select {
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
  }

  /* Pricing table responsiveness */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-service-table {
    font-size: 13px;
  }

  .pricing-service-table th,
  .pricing-service-table td {
    padding: 10px 8px;
  }

  /* Ensure images are responsive */
  img {
    max-width: 100%;
    height: auto;
  }

  figure {
    margin: 0;
  }

  /* Improve spacing on small screens */
  section {
    padding: 40px 0;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Navigation link improvements */
  .nav-link {
    padding: 12px 0;
    display: block;
  }

  /* Improve card spacing */
  .package-card,
  .subject-card,
  .contact-card {
    margin-bottom: 16px;
  }

  /* List improvements */
  ul, ol {
    padding-left: 20px;
  }

  li {
    margin-bottom: 8px;
    font-size: 14px;
  }

  /* Text improvements */
  p {
    margin-bottom: 12px;
    line-height: 1.6;
  }

  h1 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  h5, h6 {
    font-size: 12px;
    margin-bottom: 6px;
  }
}

/* ========== PRINT STYLES ========== */

@media print {
  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  .navbar,
  footer,
  .back-to-top,
  button,
  .btn,
  .primary_btn,
  .secondary_btn {
    display: none !important;
  }

  section {
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  img {
    max-width: 100%;
  }
}

/* ========== REQUESTED FINAL PAGE FIXES ========== */

/* Remove duplicate parent banner pseudo-layer; page overlays are handled on .sub_banner_con::before */
.sub_banner::before {
  content: none !important;
}

/* Pricing hero cleanup */
.pricing-page .sub_banner {
  min-height: auto;
  display: block;
}

.pricing-page .sub_banner_con {
  padding-top: 124px;
  padding-bottom: 92px;
}

.pricing-page .sub_banner_content h1 {
  color: #ffffff;
  text-shadow: 0 10px 28px rgba(7, 18, 44, 0.4);
}

.pricing-page .sub_banner_content p {
  color: #e6eeff;
}

/* Subject strip: remove odd overlap/gap behavior and keep clean transition */
.pricing-page .subject-strip {
  margin-top: 0;
  padding: 24px 0 8px;
  background: linear-gradient(180deg, #f2f6fb 0%, #f8fbff 100%);
}

.pricing-page .subject-strip-card {
  margin-top: 0;
  border-color: #cfe0ff;
}

/* Reduce visible spacing between pricing cards */
.pricing-page .package-grid {
  column-gap: 12px;
  row-gap: 12px;
}

.pricing-page .package-grid > [class*="col-"] {
  margin-bottom: 12px !important;
  padding-left: 8px;
  padding-right: 8px;
}

/* Smaller package badge */
.pricing-page .package-badge {
  top: 12px;
  right: 12px;
  font-size: 10px;
  padding: 4px 9px;
  letter-spacing: 0.04em;
}

/* Dark-blue overlay for sub-banners across inner pages */
.sub_banner .sub_banner_con::before {
  background-image: linear-gradient(140deg, rgba(6, 18, 54, 0.9) 0%, rgba(18, 52, 122, 0.86) 52%, rgba(4, 20, 70, 0.9) 100%), url(../images/subbanner-contactbackground.jpg);
}

.sub_banner .faq_banner_con::before {
  background-image: linear-gradient(140deg, rgba(6, 18, 54, 0.9) 0%, rgba(18, 52, 122, 0.86) 52%, rgba(4, 20, 70, 0.9) 100%), url(../images/subbanner-faqbackground.jpg);
}

.sub_banner .team_banner_con::before {
  background-image: linear-gradient(140deg, rgba(6, 18, 54, 0.9) 0%, rgba(18, 52, 122, 0.86) 52%, rgba(4, 20, 70, 0.9) 100%), url(../images/subbanner-teambackground.jpg);
}

.sub_banner .course_banner_con::before {
  background-image: linear-gradient(140deg, rgba(6, 18, 54, 0.9) 0%, rgba(18, 52, 122, 0.86) 52%, rgba(4, 20, 70, 0.9) 100%), url(../images/subbanner-coursebackground.jpg);
}

.sub_banner .about_banner_con::before {
  background-image: linear-gradient(140deg, rgba(6, 18, 54, 0.9) 0%, rgba(18, 52, 122, 0.86) 52%, rgba(4, 20, 70, 0.9) 100%), url(../images/subbanner-aboutbackground.jpg);
}

/* Pricing intro story visibility */
.pricing-page .pricing-story {
  background: #ffffff;
  border-color: #d7e3f5;
}

.pricing-page .pricing-story h6 {
  color: #1e40af;
}

.pricing-page .pricing-story h2,
.pricing-page .pricing-story h4,
.pricing-page .pricing-story p,
.pricing-page .pricing-story li span {
  color: #0f172a;
}

.pricing-page .pricing-story p {
  color: #334155;
}

.pricing-page .pricing-story li i {
  color: #2563eb;
}

/* Payment terms readability */
.pricing-page .pricing-details .detail-card {
  background: #0b1d4b;
  border-color: rgba(255, 255, 255, 0.16);
}

.pricing-page .pricing-details .detail-card h3,
.pricing-page .pricing-details .detail-card h4,
.pricing-page .pricing-details .detail-card li span {
  color: #f8fbff;
}

.pricing-page .pricing-details .detail-card li i {
  color: #dcfd7d;
}

/* Additional services table visibility on dark card */
.pricing-page .pricing-details .detail-table-card {
  background: #0b1d4b;
}

.pricing-page .pricing-details .pricing-service-table th,
.pricing-page .pricing-details .pricing-service-table td {
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-page .pricing-details .pricing-service-table th {
  background: rgba(255, 255, 255, 0.12);
}

.pricing-page .pricing-details .pricing-service-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Make contact Hours and Location text fully legible */
.contact-page .contact-cards {
  gap: 14px;
}

.contact-page .contact-card {
  text-align: left;
}

.contact-page .contact-card p,
.contact-page .contact-card a {
  color: #1e293b;
  font-weight: 500;
}

.contact-page .contact-card p strong {
  color: #0f172a;
}

.contact-page .contact-card .helper {
  color: #475569;
}

/* Contact form heading and copy visibility */
.contact-page .contact-form-card h6 {
  color: #1e40af;
}

.contact-page .contact-form-card h2 {
  color: #0f172a;
}

.contact-page .contact-form-card p {
  color: #334155;
}

/* Center contact visual image */
.contact-page .contact-visual {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-page .contact-visual figure {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.contact-page .contact-visual img {
  max-width: 92%;
  margin: 0 auto;
  display: block;
}

/* Director message: image left, content right, no white card background */
.director-message-card {
  background: linear-gradient(145deg, rgba(7, 18, 44, 0.95), rgba(24, 52, 104, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(8, 18, 45, 0.34);
}

.director-message-card .row {
  flex-wrap: nowrap;
  align-items: center;
}

.director-message-card .col-lg-5,
.director-message-card .col-md-5 {
  flex: 0 0 42%;
  max-width: 42%;
}

.director-message-card .col-lg-7,
.director-message-card .col-md-7 {
  flex: 0 0 58%;
  max-width: 58%;
  margin-top: 0 !important;
}

.director-content h2 {
  color: #f8fbff;
}

.director-content p {
  color: rgba(232, 239, 255, 0.9);
}

.director-signoff {
  color: #ffffff;
}

/* Pricing page: keep 2 cards per row on laptop widths */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .pricing-page .package-individual .package-grid,
  .pricing-page .package-group .package-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .pricing-page .package-individual .package-grid > [class*="col-"],
  .pricing-page .package-group .package-grid > [class*="col-"] {
    max-width: 100%;
    flex: 0 0 100%;
    min-width: 0;
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 0 !important;
  }
}

/* Subjects page: lock "What We Teach" cards to a clean 2-up full-width layout */
.subjects-page .subjects-grid-section .subject-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
  column-gap: 20px;
  row-gap: 20px;
}

.subjects-page .subjects-grid-section .subject-grid > [class*="col-"] {
  display: flex;
  box-sizing: border-box;
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px);
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0 !important;
}

.subjects-page .subjects-grid-section .subject-grid .subject-card {
  width: 100%;
  margin-bottom: 0;
}

@media screen and (max-width: 767px) {
  .pricing-page .sub_banner_con {
    padding-top: 112px;
    padding-bottom: 74px;
  }

  .pricing-page .subject-strip {
    padding-top: 16px;
  }

  .contact-page .contact-visual img {
    max-width: 100%;
  }

  .director-message-card .col-lg-5,
  .director-message-card .col-md-5 {
    flex-basis: 40%;
    max-width: 40%;
  }

  .director-message-card .col-lg-7,
  .director-message-card .col-md-7 {
    flex-basis: 60%;
    max-width: 60%;
  }

  .director-content h2 {
    font-size: clamp(18px, 4.4vw, 24px);
  }

  .director-content p {
    font-size: 14px;
    line-height: 1.6;
  }

  .subjects-page .subjects-grid-section .subject-grid {
    margin-left: 0;
    margin-right: 0;
    column-gap: 0;
    row-gap: 14px;
  }

  .subjects-page .subjects-grid-section .subject-grid > [class*="col-"] {
    flex-basis: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}
