/*  FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/*  GLOBAL VARIABLES */
:root {
  --blue: #163C85;
  --blue-hover: #1551cc;
  --yellow: #ffc107;
  --gray: #6c757d;
  --light-gray: #f8f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/*  RESET & BODY */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  color: #333;
  background-color: #fafafa;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/*  HERO SECTION */
.welcome {
  margin-top: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  /* padding: 20px 0; */
}

.welcome-text {
  flex: 1;
  max-width: 500px;
  animation: fadeInLeft 0.8s ease-out;
}

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

.slogan {
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  /* font-size: 65px; */
  margin-bottom: 16px;
  color: #222;
}

.slogan span {
  color: var(--blue);
  transition: var(--transition);
}

.slogan span:hover {
  transform: translateY(-2px);
}

.comma {
  color: var(--yellow);
  font-weight: 700;
}

.subtext {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: #555;
  margin-bottom: 48px;
  font-weight: 500;
}

.panner {
  flex: 1;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  transition: var(--transition);
  animation: fadeInRight 0.8s ease-out;
}

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


/*  SECTION */
.section {
  margin-top: 64px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #222;
  position: relative;
  padding-bottom: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-hover));
  border-radius: 2px;
}

.see-all-link {
  color: var(--blue);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: 8px;
}

.see-all-link:hover {
  color: var(--blue-hover);
  background-color: rgba(22, 60, 133, 0.05);
  transform: translateX(4px);
}

/*  CARD GRID CONTAINER - HORIZONTAL SCROLLER */
.card-grid {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.card-grid-wrapper {
  /* background-color: red; */
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 15px 4px 24px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling for Chrome, Safari and Opera */
.card-grid-wrapper::-webkit-scrollbar {
  height: 8px;
}

.card-grid-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.card-grid-wrapper::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 10px;
  transition: var(--transition);
}

.card-grid-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--blue-hover);
}

/* For Firefox */
.card-grid-wrapper {
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #f1f1f1;
}

/* Fade edges effect */
.card-grid::before,
.card-grid::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 24px;
  width: 40px;
  pointer-events: none;
  z-index: 2;
  transition: var(--transition);
}

.card-grid::before {
  left: 0;
  /* background: linear-gradient(to right, #fafafa, transparent); */
}

.card-grid::after {
  right: 0;
  /* background: linear-gradient(to left, #fafafa, transparent); */
}

/*  CARD LINK */
.card-link {
  display: block;
  transition: var(--transition);
  min-width: 320px;
  max-width: 320px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.card-link:hover {
  transform: translateY(-8px);
}

.card-link:focus {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.card-link .btn {
  pointer-events: none;
}

/*  CARD DESIGN */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

/*  SWIPER STYLING */
.swiper {
  width: 100%;
  height: 220px;
  background-color: #f0f0f0;
}

.swiper-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.swiper-slide:hover img {
  transform: scale(1.05);
}

.swiper-pagination-bullet {
  background: var(--white);
  opacity: 0.7;
  transition: var(--transition-fast);
}


/*  CARD BODY */
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  background-color: var(--white);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  flex: 1;
  transition: var(--transition-fast);
}

.card:hover .card-header h3 {
  color: var(--blue);
}

.rating {
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.rating i {
  font-size: 0.95rem;
}

.review-count {
  color: #666;
  font-size: 0.85rem;
  font-weight: 400;
}

.location {
  font-size: 0.95rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.location i {
  color: var(--blue);
  font-size: 1rem;
}

/*  BUTTON */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(22, 60, 133, 0.2);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 60, 133, 0.3);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(22, 60, 133, 0.2);
}

/*  PARTNERS SECTION */
.partners {
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.partners-title {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--blue);
  position: relative;
}

.partners-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-hover));
  display: block;
  margin: 20px auto 0;
  border-radius: 2px;
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 80px;
    opacity: 1;
  }
}

.partners-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 40px 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.partners-track {
  display: flex;
  gap: 60px;
  animation: scroll 30s linear infinite;
  width: fit-content;
  will-change: transform;
}

.partners-slider:hover .partners-track {
  animation-play-state: paused;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 100px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(22, 60, 133, 0.15);
  border-color: rgba(22, 60, 133, 0.1);
}

.partner-card img {
  max-height: 65px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.9);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-card:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.08);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 30px));
  }
}

/*  RESPONSIVE DESIGN */

/*  Large screens (≥1200px) */
@media (min-width: 1200px) {
  .card-link {
    min-width: 340px;
    max-width: 340px;
  }
}

/*  Medium screens (tablets ≤992px) */
@media (max-width: 992px) {
  .welcome {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    margin-top: 48px;
  }

  .panner {
    max-width: 80%;
  }

  .section {
    margin-top: 48px;
  }
}

/*  Small tablets (≤768px) */
@media (max-width: 768px) {
  .welcome {
    gap: 24px;
  }

  .panner {
    max-width: 100%;
  }

  .card-link {
    min-width: 280px;
    max-width: 280px;
  }

  .card-grid-wrapper {
    gap: 20px;
    /* padding: 8px 4px 20px 4px; */
  }

  .section-header {
    margin-bottom: 24px;
  }

  .partners {
    padding: 60px 15px;
  }

  .partners-track {
    gap: 40px;
    animation-duration: 20s;
  }

  .partner-card {
    min-width: 140px;
    height: 80px;
    padding: 15px;
  }

  .partner-card img {
    max-height: 50px;
    max-width: 110px;
  }
}

/*  Mobile phones (≤576px) */
@media (max-width: 576px) {
  .welcome {
    margin-top: 32px;
  }

  .card-link {
    min-width: 260px;
    max-width: 260px;
  }

  .card-grid-wrapper {
    gap: 16px;
  }

  .card-body {
    padding: 20px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-header h3 {
    font-size: 1.1rem;
  }

  .btn {
    width: 100%;
    padding: 12px;
  }

  .section {
    margin-top: 40px;
  }

  .partners-track {
    gap: 30px;
    animation-duration: 20s;
  }

  .partner-card {
    min-width: 120px;
    height: 70px;
    padding: 12px;
  }

  .partner-card img {
    max-height: 45px;
    max-width: 95px;
  }
}

/*  ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .partners-track {
    animation: none;
  }
}

/*  FOCUS STYLES */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/*  SMOOTH SCROLLING */
html {
  scroll-behavior: smooth;
}

/*  LOADING ANIMATION */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite;
  background: linear-gradient(
    to right,
    #f0f0f0 0%,
    #e0e0e0 20%,
    #f0f0f0 40%,
    #f0f0f0 100%
  );
  background-size: 1000px 100%;
}