/* Explicit SEO Heading Styling Overrides to preserve design */
.slider-area .hero-cap h2.hero-subtitle,
.hero-cap h2.hero-subtitle {
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  margin-top: 1.5rem !important;
  text-transform: none !important;
}

.section-title, h2.section-title, h3.section-title {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #191a33;
}

h2.section-subtitle, h3.section-subtitle {
  font-size: 24px !important;
  font-weight: 700 !important;
}

.diag-content .card-title,
.diag-content h3.card-title,
.diag-content h5.card-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
}

.icon-box h3.core-val-title,
.icon-box h6 {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

/* Diagnostic / Quadrant Cards */
.diag-card {
  display: flex;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  height: 100%;
}

.diag-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.diag-color {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
}

.diag-content {
  padding: 20px;
}

.diag-content h5 {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 16px;
}

.diag-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.text-primary {
  color: #80CBC4 !important;
}

/* Parallax Eligibility & Duration Box */
.parallax-section {
  background-image: url('../../../IMAGES/parallax.webp');
  height: 40vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}

.parallax-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
}

.overlay {
  position: relative;
  display: flex;
  gap: 50px;
  z-index: 1;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
}

.content-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px 40px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.content-box h3 {
  margin-bottom: 10px;
  font-size: 22px;
  color: #FFD700;
}

.content-box p {
  font-size: 18px;
  margin: 0;
}

/* Accreditation Badges */
.counter-image {
  width: 100%;
  max-width: 230px;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.counter-image:hover {
  transform: scale(1.05);
}

/* Tab Container & Table Styles */
.tab-container {
  width: 90%;
  margin: auto;
  margin-top: 30px;
}

.tabs {
  display: flex;
  border-bottom: 2px solid #ccc;
  cursor: pointer;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 20px;
  background: #f5f5f5;
  margin-right: 5px;
  border-radius: 6px 6px 0 0;
  transition: background 0.3s;
  flex: 1;
  text-align: center;
}

.tab.active {
  background: #D81B60;
  color: #fff;
  font-weight: bold;
}

.tab-content {
  display: none;
  padding: 20px;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #fff;
}

.tab-content.active {
  display: block;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  min-width: 600px;
}

table, th, td {
  border: 1px solid #ccc;
  text-align: center;
  padding: 10px;
}

th {
  background: #D81B60;
  color: #fff;
}

@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
  }
  .tab {
    margin-bottom: 5px;
    border-radius: 6px;
  }
  .tab-content {
    border-radius: 6px;
    border-top: 1px solid #ccc;
  }
}

/* Life at JNU Section Stats Numbers */
div[style*="background: #161e40"] p.fw-bold.text-warning,
div[style*="background:#161e40"] p.fw-bold.text-warning,
div[style*="background: #161e40;"] p.fw-bold.text-warning {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.25rem !important;
  line-height: 1.2 !important;
}

@media (max-width: 576px) {
  div[style*="background: #161e40"] p.fw-bold.text-warning,
  div[style*="background:#161e40"] p.fw-bold.text-warning {
    font-size: 1.75rem !important;
  }
}



/* ==========================================================================
   Mobile Responsive Enhancements for Program Pages
   ========================================================================== */
.tab-content,
.table-wrapper,
.table-responsive,
.online-programs {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .tab-container {
    width: 100% !important;
    padding: 0 5px !important;
  }

  .tabs {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-bottom: 2px solid #D81B60 !important;
    padding-bottom: 5px !important;
  }

  .tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    margin-right: 4px !important;
    border-radius: 6px 6px 0 0 !important;
  }

  .tab-content {
    padding: 12px 10px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    border-radius: 0 0 6px 6px !important;
  }

  .tab-content table,
  table {
    display: table !important;
    width: 100% !important;
    min-width: 580px !important;
    font-size: 13px !important;
    white-space: normal !important;
  }

  table th, table td {
    padding: 8px 10px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  /* Responsive Hero Section on Mobile */
  .slider-height2 {
    min-height: 320px !important;
    height: auto !important;
    padding: 40px 0 !important;
  }

  .hero-cap {
    padding-top: 40px !important;
  }

  .hero-cap h1 {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  .hero-cap h2.hero-subtitle,
  .hero-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    margin-top: 0.5rem !important;
  }

  /* Section Titles on Mobile */
  .section-title, h2.section-title, h3.section-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  /* Parallax Box on Mobile */
  .parallax-section {
    height: auto !important;
    min-height: 300px !important;
    padding: 40px 15px !important;
  }

  .overlay {
    gap: 20px !important;
  }

  .content-box {
    padding: 15px 25px !important;
    width: 100% !important;
    max-width: 320px !important;
  }

  .content-box h3 {
    font-size: 18px !important;
  }

  .content-box p {
    font-size: 15px !important;
  }

  /* Counter Images / Accreditation Badges on Mobile */
  .counter-image {
    max-width: 180px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 576px) {
  .hero-cap h1 {
    font-size: 22px !important;
  }
  .hero-cap h2.hero-subtitle,
  .hero-subtitle {
    font-size: 1rem !important;
  }
}


/* Hero Form Visibility & Sizing */
.hero-form {
  background: rgba(255,255,255,0.95) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
  min-height: 480px !important;
  z-index: 10 !important;
  position: relative !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 991px) {
  .single-slider,
  .slider-height2 {
    height: auto !important;
    min-height: 100vh !important;
    padding: 40px 0 !important;
  }
  
  .hero-form {
    margin-top: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* Centered Carousel Background Images on Mobile */
@media (max-width: 768px) {
  .single-slider,
  .mobile-slide,
  .hero-overly,
  .slider-area .single-slider {
    background-position: center center !important;
    background-size: cover !important;
  }
}


/* Prevent Mobile WebKit Image Crop & Zoom Bug */
@media (max-width: 768px) {
  .parallax-section,
  .single-slider,
  .hero-overly,
  .count-wrapper,
  .count-bg {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
  }

  .mobile-slide {
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    height: 45vh !important;
    min-height: 220px !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }
}
