* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

#consultation {
  scroll-margin-top: 110px;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container > .logo {
  width: 170px;
  display: inline-block;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.menu-toggle {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.32);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-panel {
  width: min(86vw, 430px);
  height: 100%;
  margin-left: auto;
  background: #edf2f2;
  border-left: 1px solid #d1d5db;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(110%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.mobile-menu-overlay.active .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-top .logo {
  width: 170px;
  display: inline-block;
}

.menu-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 2.1rem;
  color: #5a6168;
  cursor: pointer;
  line-height: 1;
}

.mobile-tagline {
  margin: 18px 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d1d5db;
  color: #343a40;
  font-size: clamp(1.05rem, 1.1vw, 1.22rem);
  line-height: 1.45;
}

.mobile-menu-links a {
  display: block;
  padding: 13px 14px;
  margin-bottom: 6px;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  font-weight: 500;
  color: #2f343b;
  border-radius: 0;
  transition: background 0.25s ease, color 0.25s ease;
}

.mobile-menu-links a:first-child {
  background: #c8d0d5;
  color: #2bb537;
  text-decoration: underline;
}

.mobile-menu-links a:hover {
  background: #d6dde0;
}

.mobile-contact {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #d1d5db;
}

.mobile-contact h4 {
  color: #8a989d;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.mobile-contact a {
  display: block;
  margin-bottom: 10px;
  color: #1f2937;
  font-weight: 500;
  font-size: clamp(1rem, 1.05vw, 1.08rem);
}

.contact-btn {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #f5f5f5;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 65px;
  padding-bottom: 150px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("hero-section.jpeg");
  /* background-size: cover; */
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 100px 20px 50px;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 35px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
  background: rgb(75, 191, 40);
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(126, 211, 33, 0.4);
  text-transform: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126, 211, 33, 0.6);
  background: rgb(75, 191, 40);
}

.cta-button:active {
  transform: translateY(0);
}
.bold-text {
  font-weight: bold;
}
/* About Card - Overlaying Hero */
.about-card {
  position: relative;
  z-index: 3;
  background-color: #f5f1e8;
  border-radius: 30px;
  padding: 60px 40px 60px;
  max-width: 1100px;
  width: 90%;
  margin: 50px auto 0;
  box-shadow: 0 5px 40px rgba(0, 0, 0, 0.2);
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-text {
  font-size: 1.07rem;
  line-height: 1.8;
  color: #444;
  text-align: left;
}

/* Why MBBS Abroad Section */
.why-mbbs-section {
  background-color: #2c2c2c;
  padding: 80px 20px;
  position: relative;
  z-index: 4;
}

.why-mbbs-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.why-mbbs-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 30px;
  line-height: 1.3;
}

.why-mbbs-subtitle {
  font-size: 1.18rem;
  color: white;
  margin-bottom: 40px;
  line-height: 1.6;
}

.why-mbbs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-mbbs-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: white;
  font-size: 1.08rem;
  line-height: 1.6;
}

.check-icon {
  background-color: #7ed321;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.item-text {
  flex: 1;
}

/* Top Countries Section */
.countries-section {
  background-color: #ffffff;
  padding: 80px 20px;
  position: relative;
  z-index: 4;
}

.countries-container {
  max-width: 1200px;
  margin: 0 auto;
}

.countries-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.3;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.country-card {
  position: relative;
  background-color: rgb(255, 255, 255);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.country-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.country-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.country-content {
  position: relative;
  z-index: 1;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.country-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.2;
}

.country-description {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #555;
  flex: 1;
  margin-bottom: 15px;
}

.country-arrow {
  font-size: 1.8rem;
  color: #333;
  font-weight: 300;
  align-self: flex-end;
}

/* Why 4indegree Section */
.why-4indegree-section {
  background-color: #ffffff;
  padding: 80px 20px;
  position: relative;
  z-index: 4;
}

.why-4indegree-container {
  max-width: 900px;
  margin: 0 auto;
}

.why-4indegree-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.4;
}

.why-4indegree-text {
  font-size: 1.07rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
  text-align: left;
}

.why-4indegree-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-top: 40px;
  margin-bottom: 30px;
  line-height: 1.4;
}

.why-4indegree-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-4indegree-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: #333;
  font-size: 1.06rem;
  line-height: 1.6;
}

.check-icon-green {
  background-color: #7ed321;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* How 4indegree Helps Section */
.how-helps-section {
  background-color: #ffffff;
  padding: 80px 20px;
  position: relative;
  z-index: 4;
}

.how-helps-container {
  max-width: 900px;
  margin: 0 auto;
}

.how-helps-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.3;
}

.how-helps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-helps-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: #333;
  font-size: 1.06rem;
  line-height: 1.6;
}

/* Student Success Stories Section */
.success-stories-section {
  background-color: #ffffff;
  padding: 80px 20px;
  position: relative;
  z-index: 4;
}

.success-stories-container {
  max-width: 900px;
  margin: 0 auto;
}

.success-stories-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.3;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.story-card {
  display: flex;
  flex-direction: column;
}

.story-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 12px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-caption {
  font-size: 0.95rem;
  color: #333;
  text-align: left;
  font-weight: 600;
  line-height: 1.3;
}

/* Contact Form Section */
.contact-form-section {
  background-color: #3a3a3a;
  padding: 100px 20px 80px;
  position: relative;
  clip-path: ellipse(130% 100% at 50% 100%);
  padding-top: 150px;
}

.contact-form-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  background-color: #3a3a3a;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact-form-subtitle {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 15px;
  font-weight: 400;
}

.contact-form-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 50px;
  line-height: 1.4;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  max-width: 520px;
  margin: 0 auto;
}

.form-input {
  width: 100%;
  padding: 18px 25px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background-color: white;
  color: #333;
  outline: none;
}

.form-input::placeholder {
  color: #999;
}

.form-input.error {
  border: 1px solid #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-submit-btn {
  background: #7ed321;
  color: white;
  border: none;
  padding: 16px 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 10px;
  align-self: flex-end;
  width: auto;
  transition: all 0.3s ease;
}

.form-submit-btn:hover {
  background: #8ee932;
  transform: translateY(-2px);
}

.form-submit-btn:active {
  transform: translateY(0);
}

.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 22px;
  text-align: left;
  color: #e5e7eb;
}

.form-status-pending {
  color: #dbeafe;
}

.form-status-success {
  color: #86efac;
}

.form-status-error {
  color: #fca5a5;
}

/* Latest Blogs Section */
.blogs-section {
  background-color: #ffffff;
  padding: 80px 20px;
  position: relative;
  z-index: 4;
}

.blogs-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blogs-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.3;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.blog-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: #f0e800;
  color: #333;
  padding: 8px 15px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-content {
  padding: 25px;
}

.blog-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 12px;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-description {
  font-size: 1.02rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.blog-link {
  color: #00a8ff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-link:hover {
  color: #0088cc;
}

/* FAQs Section */
.faqs-section {
  background-color: #ffffff;
  padding: 80px 20px;
  position: relative;
  z-index: 4;
}

.faqs-container {
  max-width: 900px;
  margin: 0 auto;
}

.faqs-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.3;
}

.faqs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background-color: white;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f9f9f9;
}

.faq-number {
  font-weight: 700;
  flex-shrink: 0;
}

.faq-text {
  flex: 1;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background-color: white;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 25px 20px;
}

.faq-answer p {
  font-size: 1.06rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

footer {
  background: #111827;
  color: #9ca3af;
  padding: 60px 0;
  font-size: 0.95rem;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

footer h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

footer p {
  margin: 0;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer li {
  margin-bottom: 10px;
}

footer i {
  margin-right: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  .contact-btn {
    display: none;
  }

  .hero-content {
    padding: 80px 20px 40px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 0.95rem;
  }

  .about-card {
    width: 95%;
    padding: 50px 25px 50px;
    border-radius: 25px;
    margin-top: 30px;
  }

  .about-title {
    font-size: 1.9rem;
    margin-bottom: 30px;
  }

  .nav-container {
    padding: 0 15px;
  }

  .nav-container > .logo {
    width: 150px;
  }

}
/* --- Custom Search Section Styles --- */

.mbbs-search-section {
    padding: 34px 20px 18px;
    margin-bottom: 56px;
    background-color: #fff;
}

.mbbs-search-container {
    max-width: 1140px; /* Standard container width */
    margin: 0 auto;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 22px;
    padding: 24px 28px 20px;
}

.mbbs-search-row {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
    margin-bottom: 20px;
}

.mbbs-search-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Column Widths */
.mbbs-country-col {
    width: 100%;
}

.mbbs-budget-col {
    width: 100%;
}

/* Labels */
.mbbs-search-label {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 0;
    color: #000;
    line-height: 1.35;
}

/* Shared Input Box Style (Shadow box) */
.mbbs-input-box {
    background: #ffffff;
    box-shadow: 0px 3px 6px #0000001a;
    border-radius: 17px;
    border: 1px solid #f0f4f4;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    height: 56px; /* Fixed height for consistency */
    box-sizing: border-box;
}

/* --- Country Selector Specifics --- */
.mbbs-flag-icon {
    width: 33px;
    height: 33px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

.mbbs-custom-select {
    font-size: 15px;
    font-weight: 500;
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    color: #333;
    cursor: pointer;
}

.mbbs-custom-select:focus {
    outline: 2px solid #4bbf28;
    border-radius: 8px;
}

/* --- Slider Specifics --- */
.mbbs-slider-box {
    justify-content: center; /* Center slider inside box */
    padding: 0 18px; /* More side padding for handles */
}

.mbbs-range-wrapper {
    position: relative;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
}

.mbbs-slide-visual {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
}

/* Grey Background Line */
.mbbs-slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    z-index: 1;
}

/* Green Active Line */
.mbbs-slider-fill {
    position: absolute;
    top: 0;
    height: 4px;
    background-color: #4bbf28;
    z-index: 2;
}

/* Green Knobs (Thumbs) */
.mbbs-slider-thumb {
    position: absolute;
    z-index: 3;
    width: 18px;
    height: 18px;
    background-color: #4bbf28;
    border: 1px solid #4bbf28;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Let clicks pass to inputs */
}

/* Actual Range Inputs (Hidden but clickable) */
.mbbs-range-input {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    z-index: 4;
    height: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0; /* Invisible */
    margin: 0;
}

/* Enable pointer events only on the thumb of the invisible input */
.mbbs-range-input::-webkit-slider-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    -webkit-appearance: none;
    cursor: pointer;
}

.mbbs-range-input::-moz-range-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Budget Text Below Slider */
.mbbs-budget-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 5px;
}

.mbbs-amount-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

/* --- Search Button --- */
.mbbs-search-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.mbbs-btn-search {
    font-size: 16px;
    font-weight: 600;
    background-color: #121212;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 13px 36px;
    width: 100%;
    max-width: 320px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mbbs-btn-search:hover {
    background-color: #333;
}

.mbbs-btn-search:focus {
    outline: 2px solid #4bbf28;
    outline-offset: 3px;
}

.mbbs-search-result {
    margin-top: 12px;
    text-align: center;
    font-size: 0.9rem;
    color: #2f3d2a;
    min-height: 20px;
}

.mbbs-search-result.is-error {
    color: #b42318;
}

.country-card-hidden {
    display: none;
}

@media (min-width: 769px) {
    .mbbs-search-row {
        display: grid !important;
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr) !important;
        align-items: start !important;
        column-gap: 16px !important;
        row-gap: 0 !important;
    }

    .mbbs-search-label {
        min-height: 46px;
        display: flex;
        align-items: flex-end;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .mbbs-search-section {
        padding: 24px 14px 12px;
        margin-bottom: 42px;
    }

    .mbbs-search-container {
        padding: 16px 14px 14px;
        border-radius: 18px;
    }

    .mbbs-search-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: stretch;
        column-gap: 0;
        row-gap: 12px;
        margin-bottom: 14px;
    }

    .mbbs-country-col, 
    .mbbs-budget-col {
        max-width: none;
        width: 100%;
        min-width: 0;
        flex: unset;
    }
    
    .mbbs-search-label {
        margin-left: 0;
        font-size: 13px;
        line-height: 1.25;
    }

    .mbbs-input-box {
        height: 48px;
        border-radius: 14px;
        padding: 8px 10px;
    }

    .mbbs-custom-select {
        font-size: 13px;
    }

    .mbbs-amount-text {
        font-size: 12px;
    }

    .mbbs-btn-search {
        font-size: 14px;
        padding: 11px 18px;
        max-width: 100%;
    }

    .mbbs-search-result {
        font-size: 0.84rem;
    }
}

@media only screen and (max-width: 600px) {
  footer {
    padding: 42px 0;
  }

  footer .container {
    padding: 0 14px;
  }

  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 60px 15px 30px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .cta-button {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .about-card {
    padding: 40px 20px 40px;
    border-radius: 20px;
  }

  .about-title {
    font-size: 1.5rem;
  }

  .about-text {
    font-size: 1rem;
  }

  .why-mbbs-title {
    font-size: 1.9rem;
  }

  .why-mbbs-subtitle {
    font-size: 1.02rem;
  }

  .why-mbbs-item {
    font-size: 1rem;
  }

  .countries-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .countries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .country-name {
    font-size: 1.5rem;
  }

  .country-description {
    font-size: 0.98rem;
  }

  .why-4indegree-title {
    font-size: 1.8rem;
  }

  .why-4indegree-subtitle {
    font-size: 1.1rem;
  }

  .why-4indegree-text {
    font-size: 1rem;
  }

  .why-4indegree-item {
    font-size: 1rem;
  }

  .how-helps-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .how-helps-item {
    font-size: 1rem;
  }

  .success-stories-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .story-image {
    height: 220px;
  }

  .story-caption {
    font-size: 0.85rem;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .why-mbbs-section {
    padding: 60px 15px;
  }

  .why-mbbs-title {
    font-size: 1.5rem;
  }

  .why-mbbs-subtitle {
    font-size: 1.02rem;
  }

  .why-mbbs-item {
    font-size: 0.98rem;
    gap: 12px;
  }

  .check-icon {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }

  .countries-section {
    padding: 60px 15px;
  }

  .countries-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .countries-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .country-card {
    min-height: 200px;
  }

  .country-content {
    padding: 25px 20px;
  }

  .country-name {
    font-size: 1.4rem;
  }

  .country-description {
    font-size: 0.98rem;
  }

  .why-4indegree-section {
    padding: 60px 15px;
  }

  .why-4indegree-title {
    font-size: 1.5rem;
  }

  .why-4indegree-subtitle {
    font-size: 1rem;
  }

  .why-4indegree-text {
    font-size: 0.98rem;
  }

  .why-4indegree-item {
    font-size: 0.98rem;
    gap: 12px;
  }

  .check-icon-green {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }

  .how-helps-section {
    padding: 60px 15px;
  }

  .how-helps-title {
    font-size: 1.6rem;
    margin-bottom: 35px;
  }

  .how-helps-item {
    font-size: 0.98rem;
    gap: 12px;
  }

  .success-stories-section {
    padding: 60px 15px;
  }

  .success-stories-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .stories-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .story-image {
    height: 250px;
  }

  .story-caption {
    font-size: 0.85rem;
    padding: 12px;
  }

  .contact-form-section {
    padding: 80px 15px 60px;
  }

  .contact-form-section::before {
    top: -40px;
    height: 80px;
  }

  .contact-form-title {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .contact-form-subtitle {
    font-size: 1rem;
  }

  .form-input {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .form-submit-btn {
    padding: 14px 60px;
    font-size: 1rem;
  }

  .blogs-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .blog-image {
    height: 180px;
  }

  .blog-content {
    padding: 20px;
  }

  .blog-title {
    font-size: 1.2rem;
  }

  .blog-description {
    font-size: 0.98rem;
  }

  .faqs-title {
    font-size: 2rem;
    margin-bottom: 35px;
  }

  .faq-question {
    font-size: 1rem;
    padding: 18px 20px;
  }

  .faq-answer p {
    font-size: 1rem;
  }
}
