/* General body and container styles */
body {
    font-family: "Inter", sans-serif;
    color: #1a202c;
    background-color: #f7fafc;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Scoped Study Abroad Page Hero */
.ca-study-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 20px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 138, 31, 0.22), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #123a91 0%, #2563EB 52%, #0f255d 100%);
}

.ca-study-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.ca-study-hero-content-left,
.ca-study-hero-content-right {
  min-width: 0;
}

.ca-study-hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ca-study-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.ca-study-hero-subtitle {
  max-width: 700px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
}

.ca-study-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.ca-study-hero-btn-primary,
.ca-study-hero-btn-secondary {
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.ca-study-hero-btn-primary {
  color: #2563EB;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 35, 80, 0.24);
}

.ca-study-hero-btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.ca-study-hero-visual-card {
  padding: clamp(20px, 3vw, 30px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 70px rgba(5, 20, 45, 0.28);
  backdrop-filter: blur(10px);
}

.ca-study-hero-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ca-study-hero-pill {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #172033;
  background: #fff;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 26px rgba(8, 30, 74, 0.18);
}

.ca-study-hero-pill--service {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

@media (max-width: 991px) {
  .ca-study-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ca-study-hero-badge,
  .ca-study-hero-buttons {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .ca-study-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .ca-study-hero {
    padding: 44px 16px 56px;
  }

  .ca-study-hero-buttons {
    flex-direction: column;
  }

  .ca-study-hero-btn-primary,
  .ca-study-hero-btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ca-study-hero-pill-grid {
    grid-template-columns: 1fr;
  }
}

/* Container now stretches to full width with side padding */
.main-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 5px; /* Adjusted padding to 5px on both sides */
}


/* ===================================
   Study Abroad Page Styles
=================================== */

/* Hero Section */
.study-hero {
  background: linear-gradient(90deg, #2563eb 60%, #1e40af 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.study-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.study-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}
.study-hero .btn-primary {
  background: #fff;
  color: #2563eb;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}
.study-hero .btn-primary:hover {
  background: #2563eb;
  color: #fff;
}
/* Hero Section */
.hero {
  /* margin-top: 50px; */
  background: linear-gradient(to right, #2563eb, #0a2342);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.2rem;
  color: #e0e7ff;
}

/* Countries Section */
.countries {
  padding: 60px 20px;
  background: #f9fafb;
  text-align: center;
}
.countries h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #0a2342;
}
.country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.country-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.country-card img {
  width: 80px;
  height: auto;
  margin-bottom: 16px;
}
.country-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #2563eb;
}
.country-card p {
  font-size: 1rem;
  color: #555;
}
.country-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Countries Section */
.countries-section {
  background: #fff;
  padding: 64px 0;
}
.countries-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 40px;
  font-weight: 700;
}
.countries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.country-card {
  background: #f1f5fb;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(37, 99, 235, 0.07);
  overflow: hidden;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.country-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 32px rgba(37, 99, 235, 0.15);
}
.country-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.country-card h3 {
  font-size: 1.3rem;
  color: #2563eb;
  margin: 16px 0 8px 0;
  font-weight: 700;
}
.country-card p {
  font-size: 1rem;
  color: #222;
  padding: 0 16px 16px 16px;
}

/* Courses Section */
.courses-section {
  background: #f1f5fb;
  padding: 64px 0;
}
.courses-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 40px;
  font-weight: 700;
}
.courses-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.course-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(37, 99, 235, 0.07);
  padding: 28px 22px;
  flex: 1 1 220px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 32px rgba(37, 99, 235, 0.15);
}
.course-icon {
  font-size: 2.2rem;
  color: #2563eb;
  margin-bottom: 12px;
}
.course-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}
.course-card p {
  font-size: 1rem;
  color: #222;
}

/* Responsive */
@media (max-width: 900px) {
  .countries-grid,
  .courses-grid {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
}

/* Testimonials Section */
.testimonials {
  background: #fff;
  padding: 48px 0;
}
.testimonials h2 {
  text-align: center;
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 32px;
  font-weight: 700;
}
.testimonials-grid {
  display: flex;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.testimonial-card {
  background: #f1f5fb;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(37, 99, 235, 0.07);
  padding: 28px 22px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-content p {
  color: #222;
  font-size: 1.05rem;
  margin-bottom: 0;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.testimonial-author h4 {
  font-size: 1rem;
  color: #2563eb;
  margin-bottom: 2px;
  font-weight: 700;
}
.testimonial-author p {
  color: #222;
  font-size: 0.95rem;
  margin: 0;
}

/* CTA Section */
.cta {
  background: linear-gradient(90deg, #2563eb 60%, #1e40af 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.cta p {
  font-size: 1.1rem;
  margin-bottom: 24px;
}
.btn-primary {
  background: #fff;
  color: #2563eb;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  background: #2563eb;
  color: #fff;
}
.btn-large {
  font-size: 1.2rem;
  padding: 18px 44px;
}

/* ===================================
   Admission Support Section
=================================== */
.admission-support {
  background: #f9fafb;
  padding: 64px 20px;
}
.admission-support h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 40px;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.support-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(37, 99, 235, 0.08);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.support-card i {
  font-size: 2.2rem;
  color: #2563eb;
  margin-bottom: 16px;
}
.support-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}
.support-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}
.support-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.15);
}

/* Responsive */
@media (max-width: 1000px) {
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.ripple {
  position: absolute;
  background: rgba(0, 102, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  width: 100px;
  height: 100px;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Main FAQ Section Layout */
.faq-section {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.faq-content {
  flex: 1 1 60%;
  max-width: 600px;
}

.faq-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1a2435;
  letter-spacing: -1.5px;
}

.faq-subtitle {
  font-size: 1.1rem;
  color: #7a7a7a;
  margin-bottom: 28px;
}

/* FAQ List and Items */
.faq-list {
  margin-top: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid #e3e8ee;
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.faq-item.active {
  box-shadow: 0px 2px 8px rgba(80, 100, 140, 0.08);
  border-color: #b8d0fe;
}

/* FAQ Question Button */
.faq-question {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  text-align: left;
  /* Reduced padding and font size to make the box less tall */
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #112240;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  position: relative;
}

.faq-item.active .faq-question {
  color: #2563eb;
  font-weight: 700;
}

/* Arrow icon */
.faq-question::before {
  content: "›";
  font-size: 1.3rem;
  color: #2563eb;
  margin-right: 16px;
  transition: transform 0.2s;
}

.faq-item.active .faq-question::before {
  transform: rotate(90deg);
}

/* FAQ Answer */
.faq-answer {
  background: #f7f9fc;
  color: #3a4b60;
  font-size: 1.06rem;
  line-height: 1.65;
  padding: 0 24px; /* Padding is handled by JS for the effect */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.33s cubic-bezier(0.42, 0, 0.58, 1),
    padding 0.33s cubic-bezier(0.42, 0, 0.58, 1), opacity 0.22s;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust this per answer length */
  padding: 18px 24px;
  opacity: 1;
}

/* Image on the side */
.faq-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0;
}

.faq-image img {
  max-width: 450px;
  border-radius: 40px 0 40px 0;
  box-shadow: 0 16px 28px rgba(40, 52, 80, 0.13);
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 950px) {
  .faq-section {
    flex-direction: column;
    padding: 0 10px;
  }
  .faq-image {
    padding-left: 0;
    margin-top: 28px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .study-hero {
    padding: 48px 20px;
  }
  .study-hero h1 {
    font-size: 2.1rem;
  }
  .study-hero p {
    font-size: 1rem;
    max-width: 100%;
  }
  .country-grid,
  .courses-grid,
  .support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .country-card,
  .course-card,
  .support-card {
    width: 100%;
  }
  .faq-section {
    padding: 0 12px;
  }
  .faq-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 600px) {
  .study-hero {
    padding: 36px 15px;
  }
  .study-hero .btn-primary {
    width: 100%;
    padding: 14px 20px;
  }
  .country-card img {
    height: 160px;
  }
  .faq-question {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
  .faq-answer {
    padding: 16px 18px;
  }
}
