/* ===== Global ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===== Slider ===== */
.slider-track {
    display: flex;
    width: 100%;
}

.slide-item {
    min-width: 100%;
    position: relative;
    height: 380px;
}

.slide-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Nav dropdown ===== */
.group:hover .dropdown-menu {
    display: block !important;
}

/* ===== Line clamp ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Smooth card hover ===== */
.group {
    transition: box-shadow 0.25s ease;
}

.group img {
    transition: transform 0.35s ease;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #f5c518;
    border-radius: 4px;
}

/* ===== Focus ring ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #f5c518;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.2);
}

/* ═══════════════════════════ Book Landing Page Custom ══════════════════════════ */

.book-img-wrap-custom {
    border: 2px dashed rgb(137, 20, 173);
    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.book-img-wrap-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(137, 20, 173, 0.1);
}

.book-title-main {
    color: var(--epa-logo-color);
    font-weight: 800;
}

.book-img-wrap-custom {
    background: #fff;
    overflow: hidden;
    border: 1px solid #eee;
}

.product-img {
    width: 100%;
    transition: transform 0.4s ease;
}

.book-img-wrap-custom:hover .product-img {
    transform: scale(1.15);
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--epa-offwhite);
}

.feature-list li::before {
    content: "★";
    position: absolute;
    left: 0;
    color: var(--epa-logo-color);
    font-size: 16px;
}

.price-tag {
    font-size: 28px;
    font-weight: 700;
    color: var(--epa-logo-color);
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 15px;
}

.quantity-btn {
    width: 42px;
    height: 42px;
    background-color: #f1f1f1;
    border: none;
    font-size: 18px;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background-color: var(--epa-offwhite);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    font-weight: 600;
}

.btn-epa-primary {
    background-color: var(--epa-logo-color) !important;
    border-color: var(--epa-logo-color) !important;
    color: black !important;
    font-weight: 500;
    transition: 0.2s;
}

.btn-epa-primary:hover {
    background-color: var(--epa-logo-color-dark) !important;
    border-color: var(--epa-logo-color-dark) !important;
}

.btn-epa-outline {
    border-color: var(--epa-logo-color) !important;
    color: var(--epa-logo-color) !important;
    background: transparent;
    font-weight: 500;
    transition: 0.2s;
}

.btn-epa-outline:hover {
    background-color: var(--epa-logo-color) !important;
    color: black !important;
}

.footer-text {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 40px;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.custom-breadcrumb {
    --bs-breadcrumb-divider: "\f105";
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.7);
}

/* book modal  */

.modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-header {
    background: var(--epa-logo-color);
    color: #fff;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* ================= Courses ================= */

.courses-section {
}

.section-subtitle {
    display: inline-block;
    color: var(--epa-logo-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.course-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transition: 0.35s;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.course-thumbnail {
    height: 220px;
    overflow: hidden;
    background: #f3f3f3;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.08);
}

.course-content {
    padding: 25px;
}

.course-label {
    display: inline-block;
    background: rgb(255, 214, 49);
    /* background:var(--epa-logo-color); */
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.course-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.course-meta i {
    color: var(--epa-logo-color);
    margin-right: 5px;
}

.course-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--epa-logo-color);
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #555;
}

.course-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--epa-logo-color);
    color: #000000;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 50px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }

    .course-meta {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .accordion-button {
    }

    .accordion-button:focus {
        box-shadow: none;
    }
}

/* affilation  */

#affiliateForm {
    transition: all 0.4s ease;
}

.success-icon {
    font-size: 80px;
    animation: popBounce 1s ease;
}

@keyframes popBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* checkout page  */

/* :root {
    --epa-yellow: #ffff00;
    --epa-yellow-dark: #ffa700;
    --epa-dark: #1a1a2ef5;
    --epa-offwhite: #d6d6d9;
    --epa-footer: #0f0f1a;

    --epa-logo-color: #8914ad;
    --epa-logo-color-dark: #8f22a8;
} */
:root {
    --epa-yellow: #ffd700; /* Logo's main gold */
    --epa-yellow-dark: #ffb300; /* Deeper gold for hover/gradient */
    --epa-dark: #000000; /* Logo's black center */
    --epa-offwhite: #f5f5f5; /* Clean white for text */
    --epa-footer: #0f0f1a; /* Footer background */
    --epa-green: #4acf9a; /* Accent green (unchanged) */

    --epa-logo-color: #ffd700; /* Brand gold (logo primary) */
    --epa-logo-color-dark: #ffb300; /* Brand gold dark */
}

/* ========== GLASS CARD (from your CSS + Tulies) ========== */
.glass-card {
    background: var(--epa-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* ========== BREADCRUMB BACK BUTTON ========== */

/* ========== ORDER SUMMARY CARD ========== */

/* Book image wrapper (from your CSS) */
.book-img-wrap-custom {
    border: 2px dashed var(--epa-logo-color);
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(45, 52, 73, 0.6);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    aspect-ratio: 3/4;
}

.book-img-wrap-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(137, 20, 173, 0.25);
}

.book-img-wrap-custom .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.book-img-wrap-custom:hover .product-img {
    transform: scale(1.08);
}

/* In-stock badge */
.badge-instock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: rgba(0, 165, 114, 0.15);
    border: 1px solid rgba(78, 222, 163, 0.3);
}

/* ========== SECURITY BADGES ========== */
.security-badge {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.security-badge .icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-badge .icon-wrap.purple {
    background: rgba(221, 183, 255, 0.12);
    color: var(--clr-primary);
}

.security-badge .icon-wrap.green {
    background: rgba(78, 222, 163, 0.12);
    color: var(--clr-secondary);
}

.security-badge p.title {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-on-surface);
    margin: 0 0 2px;
}

.security-badge p.sub {
    font-size: 12px;
    color: var(--clr-on-surface-variant);
    margin: 0;
}

/* Contact bar */
.contact-bar {
    background: var(--clr-surface-low);
    border: 1px solid rgba(221, 183, 255, 0.2);
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--clr-on-surface-variant);
}

.contact-bar strong {
    color: var(--clr-primary);
}

.glass-card {
    background: rgba(20, 24, 40, 0.85);
    backdrop-filter: blur(12px);
}

.payment-box input {
    display: none;
}

.payment-inner {
    cursor: pointer;
    transition: 0.2s;
    border-color: rgba(255, 255, 255, 0.1);
}

.payment-box input:checked + .payment-inner {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #666;
    display: inline-block;
    position: relative;
}

.payment-box input:checked + .payment-inner .radio-circle {
    border-color: #8b5cf6;
}

.payment-box input:checked + .payment-inner .radio-circle::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #8b5cf6;
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
}

.custom-input {
    color: white !important;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.761) !important;
}
.custom-input2 {
    color: white !important;
}

.custom-input2::placeholder {
    color: rgba(255, 255, 255, 0.537) !important;
}

/* ========== DIVIDERS ========== */
hr.brand-divider {
    border: none;
    border-top: 1px solid var(--clr-outline-variant);
    opacity: 1;
    margin: 20px 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .payment-panel {
        position: static;
    }

    .section-heading {
        font-size: 22px;
    }
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--clr-surface-low);
}

::-webkit-scrollbar-thumb {
    background: var(--epa-logo-color);
    border-radius: 4px;
}

/* Focus ring */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(221, 183, 255, 0.2);
}

.quantity-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #161922;
    border: 1px solid #2d313f;
    border-radius: 12px;
    padding: 8px 16px;
    min-width: 140px;
}

.stepper-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: opacity 0.2s;
}

.stepper-btn:hover {
    opacity: 0.7;
}

/* ইনপুট বক্সটিকে সাধারণ টেক্সটের মতো দেখানোর জন্য সিএসএস */
.stepper-input {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    background: transparent;
    border: none;
    text-align: center;
    width: 40px;
    outline: none;
    pointer-events: none;
    /* এটার কারণে ইউজার ক্লিক বা টাইপ করতে পারবে না */
}

.custom-badge {
    background: var(--epa-logo-color);
    color: black;
    opacity: 0.8;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 12px;
    opacity: 1;
}

/* আইকনের সাইজ পারফেক্ট করার জন্য */
.custom-badge i {
    font-size: 12px;
}

.accordion-button::after {
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

/* Form Floating Theme */
.form-floating {
    position: relative;
}

.form-floating .custom-input2 {
    height: 62px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-floating .custom-input2:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--epa-logo-color) !important;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.03),
        0 0 25px rgba(255, 255, 255, 0.06);
    color: #fff !important;
}

.form-floating .custom-input2::placeholder {
    color: transparent;
}

/* Floating Label */
.form-floating label {
    color: rgb(255, 255, 255) !important;
    padding-left: 18px;
    transition: 0.3s;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    /* color: white; */
    color: black;
    opacity: 1;
}

/* Autofill Fix */
.form-floating .custom-input2:-webkit-autofill,
.form-floating .custom-input2:-webkit-autofill:hover,
.form-floating .custom-input2:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.04) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Hover */
.form-floating .custom-input2:hover {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.form-icon {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 0;
    color: var(--epa-logo-color);
    border-radius: 14px 0 0 14px;
}

.input-group .custom-input2 {
    border-radius: 0 14px 14px 0 !important;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    z-index: 5;
    transition: 0.3s;
}

.password-toggle:hover {
    color: var(--epa-logo-color);
}

.form-floating .custom-input2.with-toggle {
    padding-right: 45px;
}

/* Terms Checkbox */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: var(--epa-logo-color);
    border-color: var(--epa-logo-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
    border-color: var(--epa-logo-color);
}

/* Error styling */
.is-invalid.custom-input2 {
    border-color: #ff4d4d !important;
}

.error-text {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 5px;
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak {
    width: 33%;
    background: #ff4d4d;
}

.strength-medium {
    width: 66%;
    background: #ffa500;
}

.strength-strong {
    width: 100%;
    background: #00cc66;
}

.form-floating > .form-control-plaintext ~ label::after,
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-floating > .form-select ~ label::after {
    /* background: #16192a; */
    background: #16192a00;
    color: white;
}
/* Login page specific */
.forgot-link {
    color: var(--epa-logo-color);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.forgot-link:hover {
    opacity: 0.8;
}

.border--theme {
    border: 2px solid var(--epa-logo-color) !important;
    box-shadow: 0 0 12px #8914ad93;
}

.form-floating > .form-control-plaintext ~ label::after,
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-floating > .form-select ~ label::after {
    /* background: #16192a; */
    background: #16192a00;
    color: white;
}

.breadcrumb {
    --bs-breadcrumb-divider: "";
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f054"; /* fa-chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 0.75rem;
}

.sort-select {
    position: relative;
    max-width: 250px;
    width: 100%;
}

.custom-sort {
    height: 50px;
    padding: 0 45px 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.custom-sort:focus {
    border-color: var(--epa-logo-color);
    box-shadow: 0 0 0 3px rgba(1, 91, 171, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.custom-sort option {
    background: #1b1b1b;
    color: #fff;
}

.sort-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--epa-logo-color);
    pointer-events: none;
    font-size: 15px;
}

@media (max-width: 576px) {
    .sort-select {
        max-width: 100%;
    }
}

/* ============= COURSE DETAILS COLLAPSE ============= */
.course-details-wrap {
    position: relative;
    margin-top: 15px;
}

/* Trigger Button */
.course-details-btn-white {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #0f0f1a;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.course-details-btn-white:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--epa-logo-color);
    color: var(--epa-logo-color);
}

.course-details-btn-white:not(.collapsed) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--epa-logo-color);
    color: var(--epa-logo-color);
}

.course-details-btn-white:focus {
    box-shadow: none;
    outline: none;
}

/* Popup Container */
.course-details-popup {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 12px);
    z-index: 50;

    background: #141824;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    padding: 20px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);

    /* Animation */
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;

    pointer-events: none;
}

.course-details-popup.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.course-details-popup::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);

    width: 16px;
    height: 16px;
    background: #141824;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    transform: translateX(-50%) rotate(45deg);
}

/* Features List */
.course-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.course-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

.course-features li:last-child {
    margin-bottom: 0;
}

.video-menu-card {
    background: #1b1b2b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    padding: 6px 0;
}

.video-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    text-align: left;
    transition: all 0.3s ease;
}

.video-menu-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-menu-item i {
    font-size: 12px;
}

.video-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 22px;
}

/* search   */
.search-input {
    height: 56px;
    padding-left: 18px;
    padding-right: 60px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-radius: 14px !important;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--epa-logo-color) !important;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.04),
        0 0 20px rgba(255, 255, 255, 0.08);
    color: #fff;
}

.search-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: var(--epa-logo-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}
.custom-range {
    height: 8px;
}

.custom-range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--epa-logo-color);
    margin-top: -7px;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.custom-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: var(--epa-logo-color);
    cursor: pointer;
}

.affiliate-sidebar {
    position: sticky;
    top: 120px;
    z-index: 10;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.affiliate-sidebar::-webkit-scrollbar {
    width: 6px;
}

.affiliate-sidebar::-webkit-scrollbar-thumb {
    background: var(--epa-logo-color);
    border-radius: 20px;
}

.pdf-preview-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-preview-backdrop.active {
    display: flex;
    opacity: 1;
}

body.pdf-modal-open {
    overflow: hidden;
}

.pdf-preview-modal {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: #141824;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.pdf-preview-backdrop.active .pdf-preview-modal {
    transform: scale(1);
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.pdf-modal-title {
    color: #fff;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.pdf-modal-title i {
    color: #ef4444;
}

.pdf-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
}

.pdf-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.pdf-modal-body {
    flex: 1;
    min-height: 500px;
    position: relative;
    background: #fff;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    display: block;
}

.pdf-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #141824;
    color: #fff;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--epa-logo-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pdf-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 576px) {
    .pdf-modal-footer {
        flex-direction: column;
        text-align: center;
    }

    .pdf-modal-body {
        min-height: 400px;
    }
}

/* Premium FREE Badge */
.free-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);

}




/* ===========================
   THEME MODAL
=========================== */

.modal--theme{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    backdrop-filter:blur(8px);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:99999;
    padding:20px;
}

.modal--theme.active{
    opacity:1;
    visibility:visible;
}

.modal--theme-content{
    width:100%;
    max-width:1100px;
    background:#111;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 30px 70px rgba(0,0,0,.45);
    transform:translateY(20px) scale(.96);
    transition:.3s;
}

.modal--theme.active .modal--theme-content{
    transform:none;
}

.modal--theme-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 24px;
    background:var(--theme-color,#ffd700);
}

.modal--theme-title{
    margin:0;
    font-size:20px;
    font-weight:700;
    color:#000;
    display:flex;
    align-items:center;
    gap:10px;
}

.modal--theme-body{
    background:#000;
}

.modal--theme-body iframe,
.modal--theme-body video{
    width:100%;
    border:0;
    display:block;
}

.modal--theme-close{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#fff;
    color:#000;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    transition:.25s;
}

.modal--theme-close:hover{
    background:#000;
    color:#fff;
}

body.modal-open-theme{
    overflow:hidden;
}

@media(max-width:768px){

    .modal--theme{
        padding:12px;
    }

    .modal--theme-header{
        padding:14px 16px;
    }

    .modal--theme-title{
        font-size:16px;
    }

    .modal--theme-close{
        width:36px;
        height:36px;
        font-size:16px;
    }
}

/* MOdal */
/* ============================================================
   HERO EXPLORE BUTTON  (Slider CTA)
   Usage: <a class="hero-explore-btn"><span>Text</span><i class="fas fa-arrow-right"></i></a>
============================================================ */

.hero-explore-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 13px 28px;
    border-radius: 50px;

    background: linear-gradient(135deg, var(--epa-yellow) 0%, var(--epa-yellow-dark) 100%);
    color: #000 !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-decoration: none !important;

    border: none;
    overflow: hidden;
    isolation: isolate;

    box-shadow: 0 8px 20px rgba(255, 179, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Shine sweep effect */
.hero-explore-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    z-index: -1;
    transition: left 0.6s ease;
}

.hero-explore-btn:hover::before {
    left: 125%;
}

.hero-explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 179, 0, 0.5);
    color: #000 !important;
}

.hero-explore-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.hero-explore-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform 0.3s ease;
}

.hero-explore-btn:hover .btn-icon {
    transform: translateX(4px);
}

.hero-explore-btn .btn-text-full {
    display: inline;
}

.hero-explore-btn .btn-text-short {
    display: none;
}

/* ============= Responsive ============= */

@media (max-width: 991.98px) {
    .hero-explore-btn {
        padding: 11px 22px;
        font-size: 14px;
        gap: 8px;
    }
}

@media (max-width: 767.98px) {
    .hero-explore-btn {
        padding: 10px 20px;
        font-size: 13px;
        margin-top: 6px;
    }

    .hero-explore-btn .btn-icon {
        font-size: 12px;
    }
}

@media (max-width: 575.98px) {
    .hero-explore-btn {
        padding: 8px 16px;
        font-size: 12px;
        gap: 6px;
        box-shadow: 0 5px 14px rgba(255, 179, 0, 0.35);
    }

    .hero-explore-btn .btn-text-full {
        display: none;
    }

    .hero-explore-btn .btn-text-short {
        display: inline;
    }

    .hero-explore-btn .btn-icon {
        font-size: 11px;
    }
}





/* =========================================================
   THEME PAGINATION
========================================================= */
.theme--pagi-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
}
/* Main pagination */
.theme--pagi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}


/* Pagination item */
.theme--pagi-item {
    margin: 0;
    padding: 0;
}
/* Pagination link */
.theme--pagi-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        all 0.25s ease;
}

/* Hover */
.theme--pagi-item:not(.theme--pagi-active):not(.theme--pagi-disabled)
.theme--pagi-link:hover {
    color: #0c0c0c !important;
    background: var(--epa-logo-color);
    border-color: var(--epa-logo-color);
    transform: translateY(-3px);
    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.18),
        0 0 15px rgba(255, 255, 255, 0.06);
}
/* Active */
.theme--pagi-active .theme--pagi-link {
    color: #0c0c0c !important;
    background: var(--epa-logo-color);
    border-color: var(--epa-logo-color);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.20),
        0 0 18px rgba(255, 255, 255, 0.08);
    /* transform: translateY(-2px); */
}
/* Previous / Next */
.theme--pagi-arrow {
    font-size: 20px;
}
/* Arrow icon */
.theme--pagi-arrow i {
    font-size: 21px;
    line-height: 1;
}
/* Disabled */
.theme--pagi-disabled .theme--pagi-link {
    color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
/* Dots */
.theme--pagi-dots .theme--pagi-link {
    border-color: transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    cursor: default;
    box-shadow: none;
}
/* Dots hover বন্ধ */
.theme--pagi-dots .theme--pagi-link:hover {
    background: transparent;
    border-color: transparent;
    color: rgba(255, 255, 255, 0.45);
    transform: none;
    box-shadow: none;
}


/* Focus */

.theme--pagi-link:focus {
    outline: none;
    color: #fff;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.05);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .theme--pagi-wrapper {
        margin-top: 20px;
    }
    .theme--pagi {
        gap: 5px;
    }
    .theme--pagi-link {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        font-size: 13px;
    }
    .theme--pagi-arrow i {
        font-size: 19px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {
    .theme--pagi-wrapper {
        width: 100%;
        padding: 0 5px;
    }
    .theme--pagi {
        gap: 4px;
    }
    .theme--pagi-link {
        width: 35px;
        height: 35px;
        border-radius: 8px;
        font-size: 12px;
    }
    .theme--pagi-arrow i {
        font-size: 18px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
    .theme--pagi {
        gap: 3px;
    }
    .theme--pagi-link {
        width: 32px;
        height: 32px;
        border-radius: 7px;
        font-size: 11px;    }
    .theme--pagi-arrow i {
        font-size: 16px;
    }
}
@media screen and (max-width: 1199px) {
    .dropdown-menu-end[data-bs-popper] {
        right: auto !important;
        left: 0 !important;
    }

    .dropdown-menu[data-bs-popper] {
        top: -243px !important;
        left: -4px !important;
        margin-top: var(--bs-dropdown-spacer) !important;
    }
}