/*========================================
  CLC ABROAD - Custom Styles
  Color Palette: Navy Blue (#0a1f56), Orange (#e85d26), Light Blue (#3b82f6)
========================================*/

/* ===== Typography Overrides ===== */
body {
  font-family: 'Inter', 'Poppins', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', 'Montserrat', sans-serif;
  color: #0a1f56;
}

/* ===== Color System Overrides ===== */
.bg-primary {
  background: #0a1f56 !important;
}

.text-primary {
  color: #e85d26 !important;
}

.btn-primary {
  background: linear-gradient(135deg, #e85d26 0%, #ff7a42 100%);
  border: none;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(232, 93, 38, 0.3);
  transition: all 0.3s ease;
}

.btn-primary::before {
  background: #fff;
}

.btn-primary:active,
.btn-primary:hover,
.btn-primary.focus,
.btn-primary:focus,
.btn-primary.active {
  color: #e85d26 !important;
  background: linear-gradient(135deg, #e85d26 0%, #ff7a42 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(232, 93, 38, 0.45);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: #e85d26;
  border: 2px solid #e85d26;
  background: transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-primary::before {
  background: #e85d26;
}

.btn-outline-primary:active,
.btn-outline-primary:hover,
.btn-outline-primary.focus,
.btn-outline-primary:focus,
.btn-outline-primary.active {
  color: #fff !important;
  background: #e85d26 !important;
  border-color: #e85d26 !important;
}

.btn-light {
  color: #0a1f56;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  font-weight: 600;
}

.btn-light::before {
  background: #e85d26;
}

.btn-light:active,
.btn-light:hover,
.btn-light.focus,
.btn-light:focus,
.btn-light.active {
  color: #fff !important;
  background: #fff !important;
  border: 2px solid #fff !important;
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, #ffffff 60%, #f4f6fc 100%) !important;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader img {
  max-width: 650px;
  max-height: 650px;
  width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(10, 31, 86, 0.08));
  animation: floatPlane 3s ease-in-out infinite;
}

/* Floating effect for the aeroplane */
@keyframes floatPlane {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Enlarge on mobile to crop transparent margins */
@media (max-width: 767px) {
  .preloader img {
    width: 150%;
    max-width: 500px;
  }
}

/* ===== Selection ===== */
::selection {
  background: rgba(232, 93, 38, 0.3);
  color: #0a1f56;
}

::-moz-selection {
  background: rgba(232, 93, 38, 0.3);
  color: #0a1f56;
}

/* ===== Navigation ===== */
.navigation {
  background: transparent;
}
@media (max-width: 991px) {
  .navigation {
    background: transparent;
  }
}

/* Create the blue background starting exactly before HOME */
@media (min-width: 992px) {
  .navbar-nav {
    position: relative;
    padding-left: 40px !important;
  }
  .navbar-nav::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -100vw;
    background: #0a1f56;
    z-index: -1;
  }
}

.navbar-nav {
  background: transparent;
}

@media (max-width: 991px) {
  .navbar-nav {
    background: #0a1f56;
  }
}

.nav-bg {
  background: #0a1f56 !important;
}

.nav-item::before {
  background: #e85d26;
}

a:hover {
  color: #e85d26;
}

a.text-primary:hover {
  color: #e85d26 !important;
}

.navbar .dropdown-menu {
  border-bottom: 5px solid #e85d26;
}

.navbar .dropdown .dropdown .dropdown-toggle:hover,
.navbar .dropdown-item:hover {
  color: #e85d26;
}

.top-header .btn-free-counseling-top {
  background: linear-gradient(135deg, #e85d26 0%, #ff7a42 100%);
  color: #fff !important;
  border-radius: 20px;
  padding: 6px 18px !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.top-header .btn-free-counseling-top:hover {
  box-shadow: 0 4px 15px rgba(232, 93, 38, 0.4);
  transform: translateY(-1px);
}

/* ===== Hero Section ===== */
.hero-section {
  padding: 260px 0 180px;
}

.hero-section .overlay::before,
.overlay::before {
  background: transparent;
}

.hero-slider .slick-dots li.slick-active button {
  background: #e85d26;
}

.hero-slider .prevArrow:hover,
.hero-slider .nextArrow:hover {
  color: #e85d26;
}

.hero-slider .prevArrow,
.hero-slider .nextArrow {
  background: transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
}

/* ===== Feature Icons ===== */
.feature-icon {
  color: #e85d26;
}

/* ===== Hover Shadow ===== */
.hover-shadow:hover {
  box-shadow: 0 10px 40px rgba(10, 31, 86, 0.12);
}

/* ===== Border Primary ===== */
.border-primary {
  border-color: #e9ecf2 !important;
}

/* ===== Stats Section ===== */
.clc-stat-card {
  padding: 20px;
}

.clc-stat-card h2 {
  color: #fff !important;
  font-size: 48px;
}

.clc-stat-card p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ===== Destination Cards ===== */
.clc-destination-card {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: all 0.4s ease;
}

.clc-destination-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(10, 31, 86, 0.15);
}

.clc-destination-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.clc-destination-card .card-img-wrapper img {
  transition: transform 0.5s ease;
  height: 220px;
  object-fit: cover;
}

.clc-destination-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.destination-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.destination-flag {
  font-size: 24px;
}

.clc-destination-card .card-body {
  padding: 24px;
}

.clc-destination-card .card-title {
  font-size: 20px;
  color: #0a1f56;
  margin-bottom: 12px;
}

.clc-destination-card .card-text {
  color: #5c6987;
  line-height: 1.7;
}

/* ===== Service Cards ===== */
.clc-service-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e9ecf2;
  transition: all 0.4s ease;
  height: 100%;
}

.clc-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px rgba(10, 31, 86, 0.1);
  border-color: rgba(232, 93, 38, 0.3);
}

.clc-service-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 93, 38, 0.1) 0%, rgba(255, 122, 66, 0.1) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.clc-service-icon i {
  font-size: 28px;
  color: #e85d26;
}

.clc-service-card:hover .clc-service-icon {
  background: linear-gradient(135deg, #e85d26 0%, #ff7a42 100%);
  transform: scale(1.1);
}

.clc-service-card:hover .clc-service-icon i {
  color: #fff;
}

.clc-service-card h4 {
  font-size: 18px;
  color: #0a1f56;
  margin-top: 12px;
}

.clc-service-card p {
  color: #5c6987;
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Test Prep Cards ===== */
.clc-test-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  border: 1px solid #e9ecf2;
  transition: all 0.4s ease;
  height: 100%;
}

.clc-test-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(10, 31, 86, 0.12);
  border-color: #e85d26;
}

.clc-test-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a1f56 0%, #1a3a7a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.clc-test-icon span {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
}

.clc-test-card:hover .clc-test-icon {
  background: linear-gradient(135deg, #e85d26 0%, #ff7a42 100%);
  transform: scale(1.1) rotate(5deg);
}

.clc-test-card h4 {
  font-size: 18px;
  color: #0a1f56;
}

.clc-test-card p {
  color: #5c6987;
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Course Finder ===== */
.clc-course-finder {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(10, 31, 86, 0.08);
  border: 1px solid #e9ecf2;
}

.clc-course-finder label {
  font-size: 14px;
  margin-bottom: 6px;
  color: #0a1f56;
}

.clc-course-finder .form-control {
  border-radius: 8px;
  border: 2px solid #e9ecf2;
  height: 50px;
  transition: all 0.3s ease;
}

.clc-course-finder .form-control:focus {
  border-color: #e85d26;
  box-shadow: 0 0 0 3px rgba(232, 93, 38, 0.1);
}

.clc-alert-result {
  background: linear-gradient(135deg, rgba(10, 31, 86, 0.05) 0%, rgba(232, 93, 38, 0.08) 100%);
  border: 1px solid rgba(232, 93, 38, 0.2);
  border-radius: 12px;
  color: #0a1f56;
  padding: 20px;
}

.clc-alert-result .alert-link {
  color: #e85d26;
  font-weight: 600;
}

/* ===== Reviews Section ===== */
.clc-review-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e9ecf2;
  transition: all 0.3s ease;
  height: 100%;
}

.clc-review-card:hover {
  box-shadow: 0 10px 35px rgba(10, 31, 86, 0.1);
  transform: translateY(-4px);
}

.clc-reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a1f56 0%, #1a3a7a 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clc-stars {
  color: #FFB800;
  font-size: 16px;
  letter-spacing: 2px;
}

.clc-review-card p {
  color: #5c6987;
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
}

.clc-review-card h6 {
  color: #0a1f56;
}

/* ===== FAQ Section ===== */
.clc-faq-card {
  border: 1px solid #e9ecf2 !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: all 0.3s ease;
}

.clc-faq-card:hover {
  box-shadow: 0 5px 20px rgba(10, 31, 86, 0.08);
}

.clc-faq-card .card-header {
  background: #fff;
  border-bottom: none;
  padding: 0;
}

.clc-faq-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  color: #0a1f56;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal !important;
  word-break: break-word !important;
}

.clc-faq-btn:hover,
.clc-faq-btn:focus {
  color: #e85d26;
  text-decoration: none;
}

.clc-faq-btn .ti-plus {
  transition: transform 0.3s ease;
  color: #e85d26;
}

.clc-faq-btn:not(.collapsed) .ti-plus {
  transform: rotate(45deg);
}

.clc-faq-card .card-body {
  padding: 0 24px 20px;
  color: #5c6987;
  line-height: 1.8;
}

/* ===== Free Counselling Form ===== */
.clc-form-wrapper {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(10, 31, 86, 0.08);
  border: 1px solid #e9ecf2;
}

.clc-form-wrapper label {
  font-size: 14px;
  margin-bottom: 6px;
  color: #0a1f56;
}

.clc-form-wrapper .form-control {
  border-radius: 8px;
  border: 2px solid #e9ecf2;
  height: 50px;
  transition: all 0.3s ease;
}

.clc-form-wrapper .form-control:focus {
  border-color: #e85d26;
  box-shadow: 0 0 0 3px rgba(232, 93, 38, 0.1);
}

.clc-form-wrapper textarea.form-control {
  height: 100px;
}

.clc-success-message {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.1) 100%);
  border-radius: 16px;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

/* ===== WhatsApp Button ===== */
.clc-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite;
}

.clc-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.clc-whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: #fff;
  color: #333;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.clc-whatsapp-btn:hover .clc-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== Newsletter Override ===== */
.newsletter {
  background-image: linear-gradient(to right, transparent 50%, #0a1f56 50%);
}

.newsletter-block {
  background: #0a1f56 !important;
}

.newsletter-block .form-control {
  border-radius: 8px;
}

@media (max-width: 991px) {
  /* ===== Newsletter Mobile Overlap Fix ===== */
  .newsletter {
    margin-bottom: 0 !important;
    position: static !important;
    background: #0a1f56 !important; /* Solid navy background for mobile banner */
    padding: 40px 0 !important;
  }

  .footer {
    padding-top: 40px !important;
  }

  /* Adjust newsletter card padding and layout on mobile */
  .newsletter-block {
    background: transparent !important; /* Make transparent since parent has solid background */
    padding: 0 15px !important;
    border-radius: 0 !important;
    text-align: center !important;
    box-shadow: none !important;
  }

  .newsletter-block h3 {
    margin-bottom: 20px !important;
    font-size: 20px !important;
  }

  .input-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    position: relative !important;
    width: 100% !important;
  }
  
  .newsletter-block .form-control {
    height: 50px !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  .input-wrapper button {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    height: 50px !important;
    border-radius: 8px !important;
    margin-top: 0 !important;
  }
}

/* ===== Footer Override ===== */
.bg-footer {
  background-color: #071238;
}

.footer {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.copyright p {
  color: rgba(255, 255, 255, 0.5);
}

.copyright .text-primary {
  color: #e85d26 !important;
}

.footer h4 {
  color: #fff !important;
  font-size: 16px;
  letter-spacing: 1px;
}

.footer .text-color {
  color: rgba(255, 255, 255, 0.6) !important;
  transition: all 0.3s ease;
}

.footer .text-color:hover {
  color: #e85d26 !important;
  padding-left: 5px;
}

/* ===== Card Date Override ===== */
.card-date {
  background: linear-gradient(135deg, #e85d26 0%, #ff7a42 100%);
}

/* ===== Play Button ===== */
.play-btn {
  background: linear-gradient(135deg, #e85d26 0%, #ff7a42 100%);
}

.play-btn::after {
  background: linear-gradient(135deg, #e85d26 0%, #ff7a42 100%);
}

/* ===== Form Controls Global ===== */
.form-control:focus {
  border-color: #e85d26;
  box-shadow: 0 0 0 3px rgba(232, 93, 38, 0.1);
}

/* ===== Section Title Divider ===== */
.section-title {
  position: relative;
}

.d-flex .section-title+.border-top {
  border-color: #e85d26 !important;
}

/* ===== Smooth Scroll Behavior ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 767px) {
  .hero-section {
    padding: 200px 0 120px;
  }

  .clc-stat-card h2 {
    font-size: 36px;
  }

  .clc-whatsapp-btn {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .clc-whatsapp-tooltip {
    display: none;
  }
}

@media (max-width: 575px) {
  .hero-section {
    padding: 180px 0 100px;
  }

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .clc-destination-card .card-img-wrapper img {
    height: 180px;
  }
}

/* ===== Filter Controls ===== */
.filter-controls li.active {
  color: #e85d26;
}

.filter-controls li:hover {
  color: #e85d26;
}

/* ===== Animated gradient background for CTA ===== */
#ctaSection {
  background: linear-gradient(135deg, #0a1f56 0%, #1a3a7a 40%, #0a1f56 100%) !important;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ===== Section Title Enhancement ===== */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #e85d26, #ff7a42);
  margin-top: 12px;
  border-radius: 2px;
}

.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.d-flex .section-title::after {
  display: none;
}

/* ===== Logo Styling ===== */
.navbar-brand {
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 14px !important;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  background: #f0f4ff;
}

.navbar-brand img {
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .navbar-brand {
    padding: 4px 8px !important;
    margin-top: 1px !important;
    margin-bottom: 1px !important;
    display: inline-block !important;
  }
  .navbar-brand img {
    max-height: 30px !important;
  }
}

/* ===== Global Overflow Prevention ===== */
html,
body {
  width: 100%;
  overflow-x: hidden;
}

/* ===== Global Image Safety ===== */
img {
  max-width: 100%;
  height: auto;
}

/* iframes (Google Maps) */
iframe {
  max-width: 100%;
}

/* ===========================
   NAVBAR & DROPDOWN — MOBILE
   =========================== */

/* Fix mobile dropdown item text cutoff (Bootstrap default: white-space:nowrap) */
@media (max-width: 991px) {
  .navbar .dropdown-item {
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
    padding: 10px 20px !important;
    line-height: 1.4 !important;
  }

  /* Mega menu items also wrap */
  .mega-menu .dropdown-item {
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
  }

  /* Mega menu takes full width on mobile */
  .mega-menu {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
  }

  /* Ensure the collapsed navbar doesn't overflow the viewport */
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* ===========================
   LARGE DESKTOP (≥ 1200px)
   =========================== */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 52px;
  }
}

/* ===========================
   TABLET LANDSCAPE (≤ 1199px)
   =========================== */
@media (max-width: 1199px) {
  .hero-section h1 {
    font-size: 42px;
  }

  .clc-stat-card h2 {
    font-size: 40px;
  }
}

/* ===========================
   TABLET PORTRAIT (≤ 991px)
   =========================== */
@media (max-width: 991px) {
  /* Hero */
  .hero-section {
    padding: 200px 0 120px !important;
  }

  .hero-section h1 {
    font-size: 36px !important;
    line-height: 1.25 !important;
  }

  .hero-section p {
    font-size: 15px !important;
  }

  /* Hero video navigation arrows — move inward */
  #prevVideo {
    left: 10px !important;
    font-size: 36px !important;
  }

  #nextVideo {
    right: 10px !important;
    font-size: 36px !important;
  }

  /* Section headings */
  h1, .h1 { font-size: 34px !important; line-height: 1.2 !important; }
  h2, .h2, .section-title { font-size: 26px !important; line-height: 1.3 !important; }
  h3, .h3 { font-size: 20px !important; }
  h4, .h4 { font-size: 18px !important; }

  /* Stat card numbers */
  .clc-stat-card h2 {
    font-size: 38px !important;
  }

  /* 3C Feature banner — stack image above blocks */
  .col-xl-4.col-lg-5 {
    order: -1;
  }

  /* Branch map iframe — reduce height on tablets */
  .clc-branch-map iframe {
    height: 180px !important;
  }
}

/* ===========================
   MOBILE (≤ 767px)
   =========================== */
@media (max-width: 767px) {
  /* Hero */
  .hero-section {
    padding: 160px 0 80px !important;
  }

  .hero-section h1 {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .hero-section p {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  .hero-section .btn {
    display: block !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 12px !important;
    text-align: center !important;
  }

  /* Hero arrows hidden on small screens */
  #prevVideo,
  #nextVideo {
    display: none !important;
  }

  /* Section headings */
  h1, .h1 { font-size: 28px !important; line-height: 1.2 !important; }
  h2, .h2, .section-title { font-size: 22px !important; line-height: 1.3 !important; }
  h3, .h3 { font-size: 18px !important; }
  h4, .h4 { font-size: 16px !important; }

  /* Section padding */
  .section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  /* Stat cards */
  .clc-stat-card h2 {
    font-size: 32px !important;
  }

  .clc-stat-card p {
    font-size: 13px !important;
  }

  /* Feature blocks text align */
  .feature-blocks .col-sm-6 {
    text-align: center !important;
  }

  /* Destination card image height */
  .clc-destination-card .card-img-wrapper img {
    height: 180px !important;
  }

  /* Service card icon */
  .clc-service-icon {
    width: 60px !important;
    height: 60px !important;
  }

  .clc-service-icon i {
    font-size: 24px !important;
  }

  /* Test prep cards — full width stacking */
  .clc-test-card {
    padding: 24px 16px !important;
  }

  /* Branch cards */
  .clc-branch-header {
    padding: 16px 16px 12px !important;
  }

  .clc-branch-header h4 {
    font-size: 18px !important;
  }

  .clc-branch-map iframe {
    height: 160px !important;
  }

  .clc-branch-footer {
    padding: 14px 16px 18px !important;
  }

  /* Review card height — auto on mobile */
  .clc-review-card {
    height: auto !important;
  }

  /* FAQ buttons */
  .clc-faq-btn {
    font-size: 14px !important;
    padding: 14px 16px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* Course finder — stack form fields */
  .clc-course-finder .row .col-md-4,
  .clc-course-finder .row .col-md-3 {
    margin-bottom: 12px;
  }

  /* WhatsApp button */
  .clc-whatsapp-btn {
    bottom: 16px !important;
    right: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }

  .clc-whatsapp-tooltip {
    display: none !important;
  }



  /* Footer columns */
  .footer .col-lg-4,
  .footer .col-lg-2,
  .footer .col-sm-6 {
    margin-bottom: 24px !important;
  }

  /* Footer headings and links */
  .footer h4 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  /* Copyright text */
  .copyright p {
    font-size: 12px !important;
    text-align: center !important;
  }

  .copyright .text-sm-right {
    text-align: center !important;
  }


  /* CTA section heading */
  #ctaSection h2 {
    font-size: 24px !important;
  }

  #ctaSection p {
    font-size: 14px !important;
  }

  #ctaSection .btn {
    display: block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
  }
}

/* ===========================
   SMALL MOBILE (≤ 575px)
   =========================== */
@media (max-width: 575px) {
  /* Hero */
  .hero-section {
    padding: 140px 0 70px !important;
  }

  .hero-section h1 {
    font-size: 24px !important;
  }

  /* Headings — smallest viewport scale */
  h2, .h2, .section-title {
    font-size: 20px !important;
  }

  h3, .h3 {
    font-size: 17px !important;
  }

  /* Stat cards — 2-per-row → ensure they don't overflow */
  .clc-stat-card h2 {
    font-size: 28px !important;
  }

  /* Destination card image */
  .clc-destination-card .card-img-wrapper img {
    height: 160px !important;
  }

  /* Branch map */
  .clc-branch-map iframe {
    height: 140px !important;
  }

  /* Navbar brand (logo) */
  .navbar-brand {
    padding: 3px 6px !important;
  }

  .navbar-brand img {
    max-height: 26px !important;
  }

  /* Form controls */
  .form-control {
    font-size: 14px !important;
  }

  /* Section */
  .section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* Preloader image */
  .preloader img {
    width: 130% !important;
    max-width: 360px !important;
  }

  /* FAQ Accordion mobile adjustments */
  .clc-faq-btn {
    font-size: 14px !important;
    padding: 12px 14px !important;
  }

  .clc-faq-card .card-body {
    padding: 0 14px 16px !important;
    font-size: 13.5px !important;
  }
}

/* ===========================
   EXTRA SMALL (≤ 480px)
   =========================== */
@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 21px !important;
  }

  .hero-section p {
    font-size: 13px !important;
  }

  h2, .h2, .section-title {
    font-size: 18px !important;
  }

  .clc-stat-card h2 {
    font-size: 26px !important;
  }

  .clc-faq-btn {
    font-size: 13px !important;
    padding: 12px 14px !important;
  }

  .clc-branch-header h4 {
    font-size: 16px !important;
  }

  /* Container padding tighten */
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}


/* ===== Mega Menu ===== */
@media (min-width: 992px) {
  .mega-menu-nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .mega-menu {
    width: 700px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(10, 31, 86, 0.15);
  }
}

.mega-menu .dropdown-item {
  padding: 10px 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mega-menu .dropdown-item:hover {
  background-color: #f0f4ff;
  color: #e85d26;
}

.mega-menu .mega-flag {
  font-size: 20px;
  width: 35px;
  display: inline-block;
  text-align: center;
}

/* Fix mega menu bugs */
.navbar .dropdown-menu.mega-menu {
  padding: 20px !important;
}

.mega-menu-nav-item::before {
  display: none !important;
}

.mega-menu-nav-item>.nav-link {
  position: relative;
}

.mega-menu-nav-item>.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 6px;
  width: 100%;
  background: #e85d26;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.mega-menu-nav-item:hover>.nav-link::before,
.mega-menu-nav-item.active>.nav-link::before {
  transform: scaleY(1);
  transform-origin: bottom;
}

.mega-menu .btn {
  padding: 8px 15px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  margin-bottom: 5px !important;
}

.mega-menu .btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(232, 93, 38, 0.3) !important;
}

/* ===== Social Icons ===== */
.clc-social-icon {
  color: #5c5c77;
  border-radius: 6px;
  transition: all 0.25s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clc-social-icon svg {
  display: block;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.clc-social-icon:hover {
  color: #fff !important;
  transform: translateY(-2px);
}

.clc-social-icon[aria-label="Facebook"]:hover {
  background: #1877f2;
}

.clc-social-icon[aria-label="Instagram"]:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.clc-social-icon[aria-label="LinkedIn"]:hover {
  background: #0A66C2;
}

.clc-social-icon[aria-label="YouTube"]:hover {
  background: #ff0000;
}

/* ===== Footer Social Icons ===== */
.clc-footer-social {
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clc-footer-social svg {
  display: block;
  fill: currentColor;
}

.clc-footer-social:hover {
  color: #e85d26 !important;
  transform: translateY(-2px);
}

/* ===== Branches dropdown map ===== */
.clc-branches-dropdown {
  top: 96px !important;
}

@media (max-width: 991px) {
  .clc-branches-dropdown {
    top: auto !important;
  }
}

/* ===== Branch Cards ===== */
.clc-branch-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(10, 31, 86, 0.10);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.clc-branch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(10, 31, 86, 0.16);
}

.clc-branch-header {
  background: linear-gradient(135deg, #0a1f56 0%, #1a3a7a 100%);
  color: #fff;
  padding: 24px 24px 20px;
}

.clc-branch-header h4 {
  color: #fff !important;
  font-size: 22px;
}

.clc-branch-badge {
  display: inline-block;
  background: #e85d26;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.clc-branch-badge--secondary {
  background: rgba(255, 255, 255, 0.2);
}

.clc-branch-map {
  flex: 1;
  overflow: hidden;
}

.clc-branch-map iframe {
  display: block;
}

.clc-branch-footer {
  padding: 20px 24px 24px;
  background: #fff;
}

.clc-branch-contact {
  display: block;
  color: #0a1f56;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.clc-branch-contact:hover {
  color: #e85d26;
}