:root {
    --bs-primary: #245FA1;
    --bs-primary-dark: #1A4A7F;
    --bs-accent: #D4AF37;
    --bs-accent-dark: #B8942E;
    --bs-dark: #1E2A3E;
    --bs-gray: #5A6E8A;
    --bs-light-bg-start: #EFF5FB;
    --bs-light-bg-end: #E3EEF8;
    --bs-white: #ffffff;
    --bs-light-gray: #E9EEF3;
    --tab-inactive-bg: #F0F4F9;
    --card-header-bg: #F8FAFE;
    --radius-xl: 28px;
    --radius-lg: 20px;
}

/* Override Bootstrap primary */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: var(--bs-primary-dark);
    border-color: var(--bs-primary-dark);
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

.badge.bg-primary {
    background-color: var(--bs-primary) !important;
}

/* Gold accent */
.btn-gold {
    background-color: var(--bs-accent);
    border-color: var(--bs-accent);
    color: white;
}

.btn-gold:hover {
    background-color: var(--bs-accent-dark);
    border-color: var(--bs-accent-dark);
    color: white;
}

.text-accent {
    color: var(--bs-accent) !important;
}

/* Custom tab buttons (main) */
.main-tab-active {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border: none !important;
}

.main-tab-inactive {
    background-color: var(--tab-inactive-bg) !important;
    color: var(--bs-dark) !important;
    border: none !important;
}

.main-tab-inactive:hover {
    background-color: #e2e6ea !important;
    color: var(--bs-primary) !important;
}

/* Sub‑tab buttons */
.sub-tab-active {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border: none !important;
}

.sub-tab-inactive {
    background-color: var(--tab-inactive-bg) !important;
    color: var(--bs-dark) !important;
    border: none !important;
}

.sub-tab-inactive:hover {
    background-color: #e2e6ea !important;
    color: var(--bs-primary) !important;
}

/* General styles */
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--bs-dark);
    background: var(--bs-white);
}

.custom-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.75rem;
}

.section-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--bs-primary) 20%, var(--bs-primary) 80%, transparent);
}

/* Flip card */
.flip-card {
    perspective: 1000px;
    cursor: pointer;
    min-height: 320px;
}

.flip-card-inner {
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: var(--radius-xl);
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    backface-visibility: hidden;
    border-radius: var(--radius-xl);
    background: var(--bs-white);
    border: 1px solid var(--bs-light-gray);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.flip-back {
    transform: rotateY(180deg);
    background: var(--bs-primary);
    color: white;
}

@keyframes ken-burns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

.ken-burns {
    animation: ken-burns 5s ease-out forwards;
}

/* @keyframes scrollHorizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scrollHorizontal 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
} */

.line-clamp-2,
.line-clamp-5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-5 {
    -webkit-line-clamp: 5;
}

.bg-primary-soft {
    background: linear-gradient(135deg, var(--bs-light-bg-start), var(--bs-light-bg-end));
}

.itinerary-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.itinerary-detail-item i {
    width: 1.5rem;
    color: var(--bs-primary);
}

.divider-light {
    margin: 0.75rem 0;
    opacity: 0.25;
    background-color: var(--bs-gray);
}

/* Testimonial card */
.testimonial-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--bs-light-gray);
    height: 100%;
    transition: transform 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-stars i {
    color: #FBBC04;
    margin-right: 2px;
}

.testimonial-stars i.fa-star-o {
    color: #ccc;
}

.testimonial-text {
    color: var(--bs-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.testimonial-read-more {
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-indicator {
    font-size: 0.9rem;
    color: var(--bs-gray);
}

.page-btn {
    background: white;
    border: 1px solid var(--bs-light-gray);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: var(--bs-primary);
    color: white;
}

.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

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

.home-card:hover {
    transform: translateY(-5px);
}

.home-card .read-more i {
    transition: transform 0.3s ease;
}

.home-card:hover .read-more i {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

.tour-card .view-details i {
    transition: transform 0.3s ease;
}

.tour-card:hover .view-details i {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

/* Card header background override */
.card-header-custom {
    background-color: var(--card-header-bg);
}

.tour-type-tabs {
    padding: 15px 15px 0 15px;
}

.tour-type-tabs .nav-link {
    border-radius: 50px;
    background-color: #e9ecef;
    color: #6c757d;
    margin-right: 10px;
    font-weight: 600;
    padding: 15px 50px;
}

.tour-type-tabs .nav-link i {
    font-size: 18px;
    margin-right: 10px;
}

.tour-type-tabs .nav-link.active {
    background-color: var(--bs-primary);
    color: white;
}

.tour-type-sec-tabs {
    padding: 15px 15px 0 15px;
}

.tour-type-sec-tabs .nav-link {
    border-radius: 50px;
    background-color: #e9ecef;
    color: #6c757d;
    margin-right: 10px;
    font-weight: 600;
    padding: 10px 20px;
}

.tour-type-sec-tabs .nav-link i {
    font-size: 18px;
    margin-right: 10px;
}

.tour-type-sec-tabs .nav-link.active {
    background-color: var(--bs-primary);
    color: white;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
}

.carousel-indicators .active {
    background-color: #000;
}

.gallery {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 1280px;
    height: 340px;
  }

  .gallery .card {
    position: relative;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    transition: flex 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease;
    background: #f0ece8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  }

  /* Default: slight emphasis on middle card */
  .gallery:not(:hover) .card:nth-child(3) { flex: 1.5; }

  /* Hover: expand hovered, shrink others */
  .gallery:hover .card        { flex: 0.55; }
  .gallery:hover .card:hover  { flex: 3.8; box-shadow: 0 8px 40px rgba(0,0,0,0.18); }

  /* Image */
  .gallery .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s ease;
    filter: brightness(0.88) saturate(0.85);
  }

  .gallery .card:hover img {
    transform: scale(1.07);
    filter: brightness(0.95) saturate(1.15);
  }

  /* Bottom gradient overlay */
  .gallery .card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(15, 10, 5, 0.75) 0%,
      rgba(15, 10, 5, 0.15) 45%,
      transparent 68%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    pointer-events: none;
  }
  .gallery .card:hover::after { opacity: 1; }

  /* Instagram badge */
  .ig-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6) rotate(-15deg);
    transition: opacity 0.3s ease 0.08s,
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s;
    z-index: 4;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  }
  .gallery .card:hover .ig-badge {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  .ig-badge svg { width: 18px; height: 18px; fill: white; }

  /* Card number */
  .gallery .card-num {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 11px;
    border-radius: 20px;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease 0.05s;
  }
  .gallery .card:hover .card-num { opacity: 1; }

  /* Caption */
  .gallery .card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px 22px;
    z-index: 3;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.35s ease 0.06s,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.06s;
  }
  .gallery .card:hover .card-caption {
    opacity: 1;
    transform: translateY(0);
  }

  .gallery .card-caption .dest {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    color: #f5f0eb;
    line-height: 1.3;
    margin-bottom: 5px;
  }

  .gallery .card-caption .meta {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e8a878;
  }

  /* Thin left border accent on hover */
  .gallery .card::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(200,132,90,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
    border-radius: 2px;
  }
  .gallery .card:not(:first-child):hover::before { opacity: 1; }

  /* ── Footer dots ── */
  .dots {
    display: flex;
    gap: 7px;
    margin-top: 40px;
  }
  .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4cdc6;
    transition: background 0.3s;
  }
  .dot.active { background: #c8845a; width: 22px; border-radius: 3px; }


/* iframe {
    z-index: 1;
    position: absolute;
    width: 100%;
} */

.swiper-slide-video {
    position: relative;
    width: 100%;
    height: 100vh; /* অথবা আপনার slider height */
    overflow: hidden;
    background: #000;
}

.yt-bg-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* YouTube এর black bar সরাতে aspect ratio এর চেয়ে বড় করা */
    width: 177.78vh;  /* 16/9 * 100vh */
    height: 56.25vw;  /* 9/16 * 100vw */
    min-width: 100%;
    min-height: 100%;
}

.yt-iframe {
    position: absolute;
    /* এই -25% top/left এবং 150% size দিয়ে black bar clip হবে */
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    border: none;
    pointer-events: none;
    z-index: 1;
}

@media only screen and (max-width: 768px) {
    .swiper-slide {
        height: 270px;
    }

    .slide-content h2 {
        font-size: 36px;
    }
}

/* Optimized homepage hero and lazy YouTube slides */
.mySwiper {
    height: clamp(520px, calc(100vh - 76px), 820px);
    min-height: 520px;
    background: #101826;
}

.mySwiper .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mySwiper .swiper-slide::after {
    display: none;
}

.mySwiper .swiper-slide::before {
    pointer-events: none;
}

.hero-slide-img,
.yt-lite,
.yt-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide-img {
    object-fit: cover;
    z-index: 0;
}

.swiper-slide-video {
    height: 100%;
}

.yt-lite {
    border: 0;
    padding: 0;
    cursor: pointer;
    background-color: #101826;
    background-position: center;
    background-size: cover;
    z-index: 1;
}

.yt-lite::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .28));
}

.yt-lite-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(36, 95, 161, .9);
    transform: translate(-50%, -50%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
    transition: transform .18s ease, background .18s ease;
}

.yt-lite:hover .yt-lite-play {
    background: #1A4A7F;
    transform: translate(-50%, -50%) scale(1.06);
}

.yt-iframe {
    top: 0;
    left: 0;
    border: 0;
    pointer-events: none;
    z-index: 1;
    transform: scale(1.18);
}

.swiper-slide-video .slide-content,
.image-slide .slide-content {
    z-index: 3;
    padding: 0 1.25rem;
    margin: 0 auto;
    text-align: center;
    left: auto;
    right: auto;
}

.mySwiper .slide-content {
    display: block;
    text-align: center;
}

.mySwiper .slide-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: .35rem .45rem;
    vertical-align: middle;
}

@media only screen and (max-width: 768px) {
    .mySwiper {
        height: 460px;
        min-height: 460px;
    }

    .mySwiper .swiper-slide {
        height: 100%;
    }

    .slide-content h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .slide-content .btn {
        margin: .25rem;
        padding: 10px 18px;
    }
}
