/* ========================================
   Home Page Styles
   ======================================== */

/* ========== STEP CARD HOVER ========== */
.-stepCard-hover {
  transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.-stepCard-hover .stepCard__icon > *,
.-stepCard-hover .stepCard__title,
.-stepCard-hover .stepCard__text {
  transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.-stepCard-hover:hover {
  background-color: white !important;
}

.-stepCard-hover:hover .stepCard__icon > * {
  color: var(--color-fd-blue-4) !important;
}

.-stepCard-hover:hover .stepCard__title {
  color: var(--color-fd-blue-4) !important;
}

.-stepCard-hover:hover .stepCard__text {
  color: var(--color-light-1) !important;
}

/* ========== SIDE BADGE ========== */
.side-badge {
  position: absolute;
  top: -6px;
  left: -6px;
}

/* ========== MASTHEAD STYLES ========== */

.masthead.-type-3 {
  position: relative;
  z-index: 0;
  margin-top: 70px;
  padding-top: 120px;
  overflow: hidden;
}

@media (max-width: 1199px) {
  .masthead.-type-3 {
    padding-top: 100px;
  }
}

@media (max-width: 991px) {
  .masthead.-type-3 {
    padding-top: 80px;
  }
}

@media (max-width: 767px) {
  .masthead.-type-3 {
    padding-top: 25px;
  }

  .masthead.-type-3 .masthead__content {
    text-align: center;
  }

  .masthead.-type-3 .masthead-search {
    display: flex;
    justify-content: center;
  }
}

.masthead.-type-3 .masthead-image {
  position: relative;
  margin-top: -40px;
}

@media (max-width: 991px) {
  .masthead.-type-3 .masthead-image {
    padding-left: 0;
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
    width: 85%;
  }
}

@media (max-width: 767px) {
  .masthead.-type-3 .masthead-image {
    width: 100%;
  }
}

.masthead.-type-3 .masthead-image__img1 img {
  max-width: unset;
  width: 100%;
}

.masthead.-type-3 .masthead-image__shape > img {
  position: absolute;
  top: -18vw;
  right: -15vw;
  z-index: -1;
  width: 40vw;
}

.masthead.-type-3 .masthead-search__form {
  position: relative;
  width: 600px;
}

@media (max-width: 767px) {
  .masthead.-type-3 .masthead-search__form {
    width: 100%;
  }
}

.masthead-search__form input {
  width: 100%;
  height: 80px;
  border-radius: 100px;
  box-shadow: 0px 6px 15px 0px #404F680D;
  border: 1px solid #ECEDF2;
  padding: 0 80px 0 40px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.masthead-search__form input:focus {
  outline: none;
  border-color: var(--color-fd-green-4);
  box-shadow: 0px 6px 15px 0px rgba(64, 79, 104, 0.05), 0 0 0 3px rgba(133, 147, 0, 0.15);
}

@media (max-width: 767px) {
  .masthead-search__form input {
    height: 64px;
    padding: 0 60px 0 30px;
  }
}

.masthead-search__form input::-moz-placeholder {
  color: var(--color-light-1);
}

.masthead-search__form input:-ms-input-placeholder {
  color: var(--color-light-1);
}

.masthead-search__form input::placeholder {
  color: var(--color-light-1);
}

.masthead-search__form .button {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 10px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  border-radius: 100%;
}

@media (max-width: 767px) {
  .masthead-search__form .button {
    width: 44px;
  }
}

.masthead.-type-3 .masthead__content {
  padding-left: 32px;
}

@media (max-width: 1199px) {
  .masthead.-type-3 .masthead__content {
    padding-left: 0;
  }
}

.masthead.-type-3 .masthead__title {
  text-transform: capitalize;
  font-weight: 700;
  font-size: 50px;
  line-height: 70px;
}

@media (max-width: 1399px) {
  .masthead.-type-3 .masthead__title {
    font-size: 50px;
    line-height: 1.3;
  }
  .masthead.-type-3 .masthead__title br {
    display: none;
  }
}

@media (max-width: 991px) {
  .masthead.-type-3 .masthead__title {
    font-size: 45px;
  }
  .masthead.-type-3 .masthead__title br {
    display: block;
  }
}

@media (max-width: 767px) {
  .masthead.-type-3 .masthead__title {
    font-size: 40px;
  }
}

@media (max-width: 575px) {
  .masthead.-type-3 .masthead__title {
    font-size: 32px;
  }
}

.masthead.-type-3 .masthead__title span {
  white-space: nowrap;
}

/* ========== FEATURED COURSES SECTION ========== */

/* Desktop CTA visible, Mobile CTA hidden by default */
.featured-courses__cta-desktop {
  display: inline-block;
}

.featured-courses__cta-mobile {
  display: none;
}

/* Mobile: show mobile CTA, hide desktop CTA, reduce padding */
@media (max-width: 576px) {
  .featured-courses__cta-desktop {
    display: none;
  }

  .featured-courses__cta-mobile {
    display: block;
  }

  section[aria-labelledby="featured-courses-heading"] {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  section[aria-labelledby="featured-courses-heading"] .sectionTitle__title {
    font-size: 24px;
    line-height: 1.3;
  }

  section[aria-labelledby="featured-courses-heading"] .sectionTitle__text {
    font-size: 14px;
    margin-top: 8px;
  }

  section[aria-labelledby="featured-courses-heading"] .y-gap-30 {
    row-gap: 20px !important;
  }
}

/* ========== WHY FLIGHTDEMY SECTION ========== */

.why-flightdemy {
  position: relative;
}

/* Cards row - equal heights */
.why-flightdemy .why-cards-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.why-flightdemy .why-cards-row > [class*="col-"] {
  display: flex;
}

.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px 15px;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.why-card__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 90px;
  margin: 0 auto;
  font-size: 26px;
  color: var(--color-dark-1);
  background: linear-gradient(145deg, var(--color-fd-green-5), #6b7a00);
  border-radius: 50%;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover .why-card__icon {
  transform: scale(1.08);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.why-card__content {
  margin-top: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.why-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.why-card__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.6;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Tablet */
@media (max-width: 991px) {
  .why-card {
    padding: 25px 15px;
  }

  .why-card__icon {
    width: 80px;
    height: 80px;
    font-size: 22px;
  }

  .why-card__content {
    margin-top: 20px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .why-flightdemy .row.pt-60 {
    padding-top: 30px !important;
  }

  .why-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    gap: 20px;
  }

  .why-card__icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin: 0;
    margin-top: 4px;
    font-size: 18px;
  }

  .why-card__content {
    margin-top: 0;
  }

  .why-card__title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .why-card__text {
    font-size: 13px;
    max-width: none;
    margin: 0;
  }
}

/* Small Mobile */
@media (max-width: 575px) {
  .why-card {
    padding: 16px;
    gap: 16px;
  }

  .why-card__icon {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .why-card__title {
    font-size: 15px;
  }

  .why-card__text {
    font-size: 12px;
    line-height: 1.5;
  }
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-card__content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card__quote {
  color: #859300;
  margin-bottom: 15px;
}

.testimonial-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  margin-bottom: 20px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.testimonial-card__author > img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__author-info {
  margin-left: 15px;
}

.testimonial-card__author-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a3b5d;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  text-transform: capitalize;
}

.testimonial-card__verified {
  color: #1da1f2;
  font-size: 13px;
}

.testimonial-card__flag {
  width: 16px !important;
  max-width: 16px !important;
  height: auto !important;
  border-radius: 2px !important;
}

.testimonial-card__author-course {
  font-size: 13px;
  color: #666;
  margin-top: 3px;
}

/* Read more/less button */
.testimonial-card__text-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-card__text.is-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-card__text:not(.is-truncated) {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.testimonial-card__read-more {
  background: none;
  border: none;
  color: var(--color-fd-green-4);
  font-size: 13px;
  font-weight: 500;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.testimonial-card__read-more:hover {
  color: var(--color-fd-green-5);
  text-decoration: underline;
}

/* Testimonial Cards - Tablet */
@media (max-width: 991px) {
  .testimonial-card__content {
    padding: 24px;
  }

  .testimonial-card__text {
    font-size: 14px;
  }

  .testimonial-card__text.is-truncated {
    -webkit-line-clamp: 4;
  }
}

/* Testimonial Cards - Mobile Carousel */
@media (max-width: 575px) {
  .testimonial-cards-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
    gap: 15px;
  }

  .testimonial-cards-container::-webkit-scrollbar {
    height: 6px;
  }

  .testimonial-cards-container::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 3px;
  }

  .testimonial-cards-container::-webkit-scrollbar-thumb {
    background: var(--color-fd-green-4);
    border-radius: 3px;
  }

  .testimonial-cards-container > .col-lg-4,
  .testimonial-cards-container > .col-md-6 {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: start;
  }

  .testimonial-card__content {
    padding: 20px;
  }

  .testimonial-card__quote {
    margin-bottom: 12px;
  }

  .testimonial-card__quote i {
    font-size: 24px;
  }

  .testimonial-card__text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .testimonial-card__text.is-truncated {
    -webkit-line-clamp: 4;
  }

  .testimonial-card__author {
    padding-top: 16px;
  }

  .testimonial-card__author > img {
    width: 44px;
    height: 44px;
  }

  .testimonial-card__author-info {
    margin-left: 12px;
  }

  .testimonial-card__author-name {
    font-size: 14px;
    gap: 4px;
  }

  .testimonial-card__author-course {
    font-size: 12px;
  }
}

.flex-grow-1 {
  flex-grow: 1;
}

.mt-auto {
  margin-top: auto;
}

.object-cover {
  object-fit: cover;
}

.h-full {
  height: 100%;
}

/* ========== BANNER PARALLAX ========== */
.cta.-type-1.layout-pt-lg.layout-pb-lg {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 767px) {
  .cta.-type-1.layout-pt-lg.layout-pb-lg {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media (max-width: 575px) {
  .cta.-type-1.layout-pt-lg.layout-pb-lg {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.cta__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* ========== TESTIMONIALS SECTION TITLE ========== */
.bg-fd-light-2 .sectionTitle__title {
  white-space: nowrap;
}

/* ========== GLIGHTBOX FIX ========== */
.glightbox-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 999999 !important;
}
.goverlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.9) !important;
  z-index: -1 !important;
}
.gslider {
  position: relative !important;
  z-index: 1 !important;
}

/* Note: Course cards now use .fd-course-card from main.css */

/* ==========================================================================
   Home Blog Section
   ========================================================================== */

/* Grid - Equal heights */
.home-blog__grid {
    display: flex;
    flex-wrap: wrap;
}

.home-blog__grid > [class*="col-"] {
    display: flex;
}

/* CTA visibility */
.home-blog__cta-desktop {
    display: block;
}

.home-blog__cta-mobile {
    display: none;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .home-blog__cta-desktop {
        display: none;
    }

    .home-blog__cta-mobile {
        display: block;
    }

    /* Reduce gap between cards */
    .home-blog__grid {
        padding-top: 30px !important;
    }

    .home-blog__grid.y-gap-30 > * {
        padding-top: 20px;
    }

    /* Hide third card on mobile */
    .home-blog__grid > [class*="col-"]:nth-child(3) {
        display: none;
    }

    /* Smaller content padding */
    .home-blog__grid .fd-blog-card__content {
        padding: 14px;
    }

    /* Smaller category */
    .home-blog__grid .fd-blog-card__category {
        font-size: 10px;
        margin-bottom: 6px;
    }

    /* Smaller title */
    .home-blog__grid .fd-blog-card__title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    /* Compact meta */
    .home-blog__grid .fd-blog-card__meta {
        font-size: 12px;
        padding-top: 10px;
        gap: 4px;
    }
}
