@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/* ==========================================================================
   GLOBAL VARIABLES & BASE STYLES
   ========================================================================== */

:root {
  --body: #fff;
  --black: #000;
  --white: #fff;
  --theme: #e13833;
  --theme-2: #0048b4;
  --header: #151a26;
  --text: #535761;
  --bg: #f8f8f9;
  --bg-2: #153888;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  color: var(--header);
}

/* Optimize layout for very large screens (1920px+) */
@media (min-width: 1920px) {
  /* Make container wider to fill more of the screen */
  .container {
    max-width: 1800px !important;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* Increase base font sizes */
  body {
    font-size: 18px;
  }

  /* Scale up headings */
  h1 {
    font-size: 3.5rem !important;
  }

  h2 {
    font-size: 3rem !important;
  }

  h3 {
    font-size: 2rem !important;
  }

  h4 {
    font-size: 1.5rem !important;
  }

  /* Increase paragraph text */
  p {
    font-size: 1.125rem;
    line-height: 1.75;
  }

  /* Scale up text in specific utility classes */
  .text-sm {
    font-size: 1rem !important;
  }

  .text-base {
    font-size: 1.125rem !important;
  }

  .text-lg {
    font-size: 1.25rem !important;
  }

  .text-xl {
    font-size: 1.5rem !important;
  }

  .text-2xl {
    font-size: 2rem !important;
  }

  .text-3xl {
    font-size: 2.5rem !important;
  }

  .text-4xl {
    font-size: 3.5rem !important;
  }

  .text-5xl {
    font-size: 4rem !important;
  }

  /* Increase button text and padding */
  a,
  button {
    font-size: 1.125rem;
  }

  /* Keep navigation links at their intended size */
  header a,
  header button {
    font-size: inherit;
  }
}

/* ==========================================================================
   GLOBAL ANIMATIONS & TRANSITIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.animate-fade-in-left {
  animation: fadeInLeft 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 0.2s;
}
.delay-200 {
  animation-delay: 0.4s;
}
.delay-300 {
  animation-delay: 0.6s;
}
.delay-400 {
  animation-delay: 0.8s;
}
.delay-500 {
  animation-delay: 1s;
}
.delay-600 {
  animation-delay: 1.2s;
}
.delay-700 {
  animation-delay: 1.4s;
}

/* ─── Scroll-Triggered Card Animations ─── */
.scroll-card {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fade-up {
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Hero Section */
.hero-section {
  background-color: #f7f8fa;
}

/* Hero & Global Animations */
.hero-video-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.hero-video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  width: 100%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-15px) rotate(-2deg);
  }
}

@keyframes float-fast {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-25px) rotate(5deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 4s ease-in-out infinite;
}

/* Utilities */
.no-scrollbar::-webkit-scrollbar,
#awards-scroll::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Testimonial Carousel */
.testimonial-carousel .owl-dots {
  margin-top: 1.5rem;
  text-align: center;
}

.testimonial-carousel .owl-dot span {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  border-radius: 50%;
  display: inline-block;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.testimonial-carousel .owl-dot.active span {
  background: #e13833;
  width: 24px;
  border-radius: 4px;
}
/* ===== AWARD CAROUSEL STYLING ===== */
#awards-carousel {
  padding: 10px 0;
}

#awards-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 20;
}

#awards-carousel .owl-nav button.owl-prev,
#awards-carousel .owl-nav button.owl-next {
  position: absolute;
  width: 48px;
  height: 48px;
  background: #fff !important;
  color: #151a26 !important;
  border-radius: 50%;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: all;
  border: 1px solid #f1f5f9 !important;
}

#awards-carousel .owl-nav button.owl-prev:hover,
#awards-carousel .owl-nav button.owl-next:hover {
  background: #e13833 !important;
  color: #fff !important;
  border-color: #e13833 !important;
  transform: scale(1.1);
}

#awards-carousel .owl-nav button.owl-prev {
  left: -24px;
}

#awards-carousel .owl-nav button.owl-next {
  right: -24px;
}

#awards-carousel .owl-nav button.disabled {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  #awards-carousel .owl-nav {
    display: none;
  }
  .awards-section-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Force Owl items to fill full height */
.testimonial-carousel .owl-item {
  height: 450px;
}
.testimonial-carousel .owl-item > div {
  height: 100%;
}
.testimonial-carousel .owl-item > div > div {
  height: 100% !important;
  width: 100% !important;
}

/* ===== PARTNER SLIDER ===== */
@media (max-width: 768px) {
  .partner-logo-item img {
    height: 35px;
  }
}

.partners-container {
  overflow: hidden;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  transition: transform 0.3s ease;
}

.partner-logo-item:hover {
  transform: scale(1.1);
}

.partner-logo-item img {
  height: 45px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.partner-logo-item:hover img {
  filter: grayscale(0%);
}

/* Instant pause: Kill the sliding transition when hovering over the carousel */
.partners-container .owl-carousel:hover .owl-stage {
  transition-duration: 0ms !important;
}

/* ==========================================================================
   PAGE-SPECIFIC: HOME PAGE STYLES
   ========================================================================== */
/* Select2 Custom Styling to match theme */
.select2-container--default .select2-selection--single {
  height: 56px;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: normal;
  color: #374151;
  font-size: 0.875rem;
  padding-left: 0;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 54px;
  right: 12px;
}
.select2-dropdown {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.select2-results__option {
  padding: 8px 16px;
  font-size: 0.875rem;
}
.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #f8f8f9;
  color: #e13833;
}

/* ==========================================================================
   PAGE-SPECIFIC: BRANCH PAGE STYLES
   ========================================================================== */

.branch-icon-shape {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.branch-filter-bar {
  background: white;
  border-bottom: 1px solid #f1f5f9;
  z-index: 1000;
  top: 72px; /* Set this according to your header height */
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .branch-filter-bar {
    top: 56px;
  }
}

.filter-btn {
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  color: #e13833;
  background-color: #fef2f2;
}

.filter-btn.active {
  color: white;
  background-color: #e13833;
  box-shadow: 0 4px 12px rgba(225, 56, 51, 0.25);
}

.branch-card {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: opacity, transform;
}

.branch-card.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.95);
}
/* pre and post departure */
.section-line { display:flex; align-items:center; gap:.5rem; }
  .check-list li {
    display:flex; align-items:flex-start; gap:.75rem;
    font-size:.9rem; color:#374151; line-height:1.7;
  }
  .check-list li::before {
    content:''; flex-shrink:0; margin-top:.35rem;
    width:1rem; height:1rem; background-color:#E13833;
    clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%);
  }
  @keyframes spin-slow{from{transform:rotate(0)}to{transform:rotate(360deg)}}
  .animate-spin-slow{animation:spin-slow 26s linear infinite}
  .hero-wave path{fill:#fff}

  /* test preparation */

    /* ── Page-specific extras ── */
    @keyframes spin-slow { from{transform:rotate(0)} to{transform:rotate(360deg)} }
    .animate-spin-slow { animation: spin-slow 22s linear infinite; }

    /* Service card number badge */
    .svc-number {
      
      font-size: 4.5rem;
      font-weight: 800;
      line-height: 1;
      color: transparent;
      -webkit-text-stroke: 1.5px #E13833;
      opacity: .12;
      position: absolute;
      top: .5rem;
      right: 1rem;
      transition: opacity .4s ease;
      user-select: none;
    }
    .svc-card:hover .svc-number { opacity: .22; }

    /* Icon circle */
    .svc-icon-wrap {
      width: 3rem; height: 3rem;
      border-radius: .875rem;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s;
    }
    .svc-card:hover .svc-icon-wrap { transform: scale(1.12) rotate(-4deg); }

    /* Card hover lift */
    .svc-card {
      transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
    }
    .svc-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px -10px rgba(225,56,51,.15); }

    /* Hero connector wave */
    .hero-wave path { fill: #fff; }

    /* Floating label pill */
    .pill {
      display: inline-flex; align-items: center; gap: .5rem;
      padding: .375rem 1rem;
      border-radius: 9999px;
      font-size: .7rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: .1em;
    }

    /* Stats bar gradient border */
    .stats-bar {
      background: linear-gradient(135deg, #fff 0%, #f7f8fa 100%);
      border: 1px solid #e9eaec;
    }

    /* Featured big card */
    .featured-card {
      background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
      border: 1px solid #e2e8f0;
    }
/* animation  */
/* animation  */
@keyframes bounceSlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ── STUDENT TESTIMONIALS & VIDEO GALLERY ── */

/* Video card & Gallery */
.video-card-container {
  height: 450px;
}
.play-overlay {
  transition: opacity 0.3s ease;
  opacity: 1;
}
.video-card-container:hover .play-overlay:not(.opacity-0) {
  opacity: 0.8;
}

/* Play button ring pulse */
@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
.play-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  animation: ripple 2s infinite;
}

/* Quote slider */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}
.slide-in {
  animation: slideIn 0.45s ease forwards;
}
.slide-out {
  animation: slideOut 0.45s ease forwards;
}

/* Lightbox overlay */
#lightbox {
  transition: opacity 0.3s ease;
}

/* Video card hover effects */
.video-card:hover .thumb-img {
  transform: scale(1.06);
}
.video-card:hover .play-btn {
  transform: scale(1.12);
}
.thumb-img {
  transition: transform 0.5s ease;
}
.play-btn {
  transition: transform 0.3s ease;
}

/* Statistics and Flags utility */
.stat-num {
  font-variant-numeric: tabular-nums;
}
.flag {
  font-size: 1.1rem;
  line-height: 1;
}

#videoModalContent {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}


/* ==========================================================================
   PAGE-SPECIFIC: VISA SUCCESS STORIES
   ========================================================================== */

/* Enhanced fade-up animation for visa success page */
.visa-success-page .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 1, 1);
}

.visa-success-page .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover effects */
.success-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-card:hover {
  transform: translateY(-10px);
}

.stat-card {
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
}


/* ==========================================================================
   PROMO POPUP STYLES
   ========================================================================== */
#promoPopup {
  transition: opacity 0.4s ease;
}

#promoPopup .max-w-4xl {
  animation: modalSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#promoPopup img {
  transition: transform 10s linear;
}

#promoPopup:not(.hidden) img {
  transform: scale(1.15);
}

@media (max-width: 767px) {
  #promoPopup .max-w-4xl {
    height: auto !important;
    max-height: 90vh;
    overflow-y: auto;
  }

/* = [ FOOTER MAP STYLES ] = */
.footer-map-container {
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-map-container:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 56, 51, 0.3);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.footer-map-container iframe {
  transition: opacity 0.5s ease;
}
}
@media (max-width: 1024px) {
  .footer-map-container {
    height: 160px;
  }
}
