/* =====================================
   INDEX PAGE CSS
   ===================================== */

/* =========================
   HERO SECTION
========================= */
.hero-section {
  background-color: var(--white);
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.hero-title .text-dark {
  color: var(--heading) !important;
}

.hero-title .text-primary {
  color: var(--primary) !important;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--heading);
  font-weight: 400;
}

.hero-btn {
  border-width: 2px;
  padding: 11px 26px;
  font-size: 1.05rem;
}

/* =========================
   HERO BANNER
========================= */
.hero-banner-wrap {
  position: relative;
}

.hero-carousel {
  position: relative;
}

.hero-banner {
  border-radius: 22px;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

.hero-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* =========================
   HERO BANNER CTA OVERLAY
========================= */
.banner-slide-item {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
}

.banner-slide-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08));
  z-index: 1;
  pointer-events: none;
}

.banner-overlay-content {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: 75%;
}

.banner-slide-title {
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  margin-bottom: 14px;
}

.banner-overlay-content .btn {
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 3;
}

/* =========================
   HERO ARROWS
========================= */
.hero-arrow {
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 2.4rem;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.hero-arrow:hover {
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow-prev {
  left: -72px;
}

.hero-arrow-next {
  right: -72px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 56px 0;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3.2rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-banner-wrap {
    margin-top: 8px;
  }

  .hero-arrow-prev {
    left: -56px;
  }

  .hero-arrow-next {
    right: -56px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .banner-overlay-content {
    left: 16px;
    bottom: 16px;
    max-width: 85%;
  }

  .banner-slide-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .banner-overlay-content .btn {
    font-size: 0.85rem;
    padding: 8px 16px !important;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    margin-bottom: 1.25rem;
  }

  .hero-btn {
    width: 100%;
    max-width: 240px;
  }

  .hero-banner {
    border-radius: 18px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
  }

  .hero-arrow-prev {
    left: 10px;
  }

  .hero-arrow-next {
    right: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-btn {
    font-size: 1rem;
    padding: 10px 22px;
  }

  .hero-banner {
    border-radius: 16px;
  }

  .hero-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.35rem;
  }

  .hero-arrow-prev {
    left: 8px;
  }

  .hero-arrow-next {
    right: 8px;
  }
}

/* =====================================
   STORY STATS STRIP
===================================== */
.story-stats-section {
  background: var(--primary);
  padding: 28px 0 0px;
}

.story-stats-wrapper {
  position: relative;
  z-index: 2;
}

.story-stat-item {
  padding: 0 18px;
  position: relative;
}

.story-stat-border {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.story-stat-icon {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-stat-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* =====================================
   OUR STORY SECTION
===================================== */
.our-story-section {
  background: var(--white);
  margin-top: -55px;
}

.our-story-box {
  background: var(--white);
  border-radius: 38px 38px 0 0;
  padding: 64px 40px 60px;
}

.our-story-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
}

.our-story-heading {
  font-size: clamp(1.5rem, 1.8rem, 2.2rem);
  line-height: 1.28;
  font-weight: 700;
  color: var(--heading);
}

.our-story-content p,
.our-story-points li {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
}

.our-story-points li {
  margin-bottom: 6px;
}

.our-story-media {
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.our-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================
   OUR SERVICES (FIGMA MATCH)
===================================== */
.our-services-section {
  background: var(--white);
}

.our-services-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
}

.services-wrapper {
  position: relative;
}

.services-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 320px;
  width: 100%;
}

.services-grid {
  padding-top: 40px;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #f9f9f9;
  border: 1px solid var(--border);
  margin-bottom: 28px;
  transition: 0.25s ease;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

.service-card p {
  margin: 0;
  font-weight: 600;
}

.service-card .icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #eaf2fb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card.active .icon {
  background: rgba(255, 255, 255, 0.2);
}

.service-card-top {
  width: fit-content;
  min-width: 25vw;
}

.services-center-card {
  border-radius: 18px;
  overflow: hidden;
  padding: 10px;
}

/* Offset (Figma stagger effect) */
.services-wrap:first-of-type .service-card:nth-child(2) {
  transform: translateX(-40px);
}

.services-wrap:last-of-type .service-card:nth-child(2) {
  transform: translateX(40px);
}

/* Responsive Fix */
@media (max-width: 992px) {
  .services-wrap .service-card:nth-child(2) {
    transform: none !important;
  }
}

@media (max-width: 991.98px) {
  .services-center-card {
    margin: 0 auto 30px;
  }
}

/* =====================================
   HOW WE WORK
===================================== */
.how-we-work-section {
  background: var(--white);
}

.how-we-work-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
}

/* Custom 5-column support on large screens */
@media (min-width: 992px) {
  .col-lg-custom-5 {
    width: 20%;
    flex: 0 0 auto;
  }
}

.work-card {
  background: var(--white);
  border: 1px solid rgba(31, 95, 174, 0.18);
  border-radius: 18px;
  padding: 34px 22px;
  box-shadow: var(--shadow-sm);
  transition: 0.25s ease;
}

.work-card:hover {
  transform: translateY(-5px);
}

.work-card-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.work-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--heading);
  font-weight: 500;
  max-width: 180px;
  margin-inline: auto;
}

/* =====================================
   TESTIMONIALS
===================================== */
.testimonials-section {
  background: var(--white);
}

.testimonials-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
}

.testimonial-card {
  background: #eef2f7;
  border-radius: 10px;
  padding: 26px 24px 22px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #3f4349;
  margin-bottom: 24px;
}

.testimonial-author {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
}

/* =====================================
   VIDEO TESTIMONIALS
===================================== */
.video-testimonials-section {
  background: var(--white);
}

.video-testimonials-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
}

.video-testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 16px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.video-testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-testimonial-author {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-color);
}

/* =====================================
   BLOGS
===================================== */
.blogs-section {
  background: var(--white);
}

.blogs-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
}

.blog-card {
  position: relative;
}

.blog-card-image {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(31, 95, 174, 0.18);
  height: 250px;
  background: #f1f3f6;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-content {
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px 16px;
  width: calc(100% - 36px);
  margin: -84px auto 0;
  position: relative;
  z-index: 2;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card-text {
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.blog-card-time {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
}

/* =====================================
   CTA SECTION
===================================== */
.cta-section {
  background: var(--white);
}

.cta-content {
  max-width: 520px;
}

.cta-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
}

.cta-highlight {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
}

.cta-subtext {
  font-size: 1rem;
  color: var(--text);
}

/* Right Box */
.cta-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .cta-content {
    max-width: 100%;
  }

  .cta-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .cta-media {
    min-height: 260px;
  }
}

@media (max-width: 767.98px) {
  .cta-title {
    font-size: 2.2rem;
  }

  .cta-highlight {
    font-size: 1.1rem;
  }

  .cta-subtext {
    font-size: 0.95rem;
  }

  .cta-media {
    min-height: 220px;
  }
}

@media (max-width: 575.98px) {
  .cta-title {
    font-size: 1.9rem;
  }

  .cta-highlight {
    font-size: 1rem;
  }

  .cta-subtext {
    font-size: 0.92rem;
  }

  .cta-media {
    min-height: 200px;
    border-radius: 16px;
  }
}

/* =====================================
   FEATURED SECTION
===================================== */
.featured-section {
  background: var(--primary);
}

.featured-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
}

/* Logos */
.featured-logo-card {
  background: #fff;
  border-radius: 6px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-logo-card img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Article Cards */
.featured-article-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  height: 100%;
  transition: 0.25s ease;
}

.featured-article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.featured-article-image {
  height: 210px;
  background: #f2f2f2;
  overflow: hidden;
}

.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-article-content {
  padding: 14px 14px 18px;
  border-top: 1px solid rgba(31, 95, 174, 0.2);
  min-height: 78px;
  display: flex;
  align-items: center;
}

.featured-article-content p {
  color: #3f4349;
  font-size: 0.98rem;
  line-height: 1.5;
}
