.header-top-bar {
    background-color: #f5f6f5 !important;
}

.header-main {
    background-color: var(--theme-bg-light) !important;
}

.header-top-icon, .nav-link {
    color: var(--theme-text-light) !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3) !important;
}

.header-logo {
    content: url('assets/logo-siyah.webp') !important;
}

.filter-section {
    background-color: #f8f9fb;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-section.sticky {
    position: sticky;
    top: 20px;
}

.campaign-section {
    margin-bottom: 40px;
}

.campaign-card {
    display: none;
    position: relative;
}

.campaign-card.show {
    display: block;
}

.compare-button-section {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.compare-button {
    background: linear-gradient(90deg, #2196f3, #00d4ff);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.compare-button:hover {
    background: linear-gradient(90deg, #1976d2, #00b8e6);
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.6);
    transform: translateY(-2px);
}

.compare-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.compare-checkbox-section {
    display: none;
    text-align: center;
    margin-top: 10px;
}

.compare-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: none;
    width: 20px;
    height: 20px;
    accent-color: #2196f3;
    border: 2px solid #2196f3;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.compare-checkbox:checked {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.5);
}

.apply-compare-button {
    background: linear-gradient(90deg, #28a745, #34c759);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    margin-top: 10px;
    display: none;
}

.apply-compare-button:hover {
    background: linear-gradient(90deg, #218838, #2db34a);
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.6);
    transform: translateY(-2px);
}

.apply-compare-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.modal-header {
    background: linear-gradient(135deg, #005eb8 0%, #00a8e0 100%);
    color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom: none;
    padding: 20px;
    position: relative;
}

.modal-title {
    font-weight: 700;
    font-size: 24px;
}

.modal-body {
    padding: 30px;
    background-color: #f8f9fb;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow-x: auto; /* Allow horizontal scrolling if cards overflow */
}

.modal-footer {
    border-top: none;
    padding: 20px;
    background-color: #f8f9fb;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    justify-content: center;
}

.modal-footer .btn {
    background: linear-gradient(90deg, #2196f3, #00d4ff);
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.modal-footer .btn:hover {
    background: linear-gradient(90deg, #1976d2, #00b8e6);
    transform: translateY(-2px);
}

.promo-card {
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.promo-header {
    background: linear-gradient(135deg, #005eb8 0%, #00a8e0 100%);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    text-align: left;
    color: #fff;
}

.promo-label {
    font-size: 14px;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 10px;
}

.promo-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.promo-details {
    margin-bottom: 10px;
}

.promo-details p:first-child {
    font-size: 24px;
    font-weight: 700;
}

.promo-details p:last-child {
    font-size: 16px;
}

.promo-limit {
    position: absolute;
    top: 20px;
    right: 20px;
}

.promo-limit span {
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
}

.promo-footer {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.promo-footer-left {
    flex-grow: 1;
}

.details-link {
    font-size: 14px;
    color: var(--theme-primary-color);
    text-decoration: none;
}

.details-link i {
    font-size: 16px;
}

.promo-duration {
    font-size: 12px;
    color: #666;
}

.promo-pricing {
    text-align: right;
}

.promo-price-wrapper {
    justify-content: flex-end;
}

.promo-price-final .price-value {
    font-size: 24px;
    font-weight: 700;
}

.promo-price-final .price-period {
    font-size: 12px;
    color: #666;
}

@media (max-width: 767px) {
    .promo-details p:last-child {
        color: #fff;
    }
}

.promo-action a {
    width: 30px;
    height: 30px;
    background-color: #e6f0fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-action i {
    font-size: 16px;
    color: var(--theme-primary-color);
}

.details-list li {
    font-size: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.details-bullet {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    background-color: #666;
    border-radius: 50%;
}

.compare-card {
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    width: 100%;
    max-width: 300px;
    flex: 0 0 300px; /* Fixed width for each card */
}

.compare-card-header {
    background: linear-gradient(135deg, #005eb8 0%, #00a8e0 100%);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    text-align: left;
    color: #fff;
    position: relative;
}

.compare-card-label {
    font-size: 14px;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 10px;
}

.compare-card-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.compare-card-details {
    margin-bottom: 10px;
}

.compare-card-details p:first-child {
    font-size: 24px;
    font-weight: 700;
}

.compare-card-details p:last-child {
    font-size: 16px;
}

.compare-card-limit {
    position: absolute;
    top: 20px;
    right: 20px;
}

.compare-card-limit span {
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
}

.compare-card-details-content {
    background: #fff;
    color: #333;
    padding: 15px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.compare-card-details-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compare-card-details-content li {
    font-size: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.compare-card-details-content .details-bullet {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    background-color: #666;
    border-radius: 50%;
}

.compare-card-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.compare-card-remove:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.compare-card-remove i {
    font-size: 16px;
    color: #fff;
}

.btn-close {
    filter: invert(1);
    background: none;
    border: none;
    font-size: 24px;
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

.compare-cards-container {
    display: flex;
    flex-direction: row; /* Cards side by side */
    gap: 20px; /* Space between cards */
    flex-wrap: nowrap; /* Prevent wrapping */
    justify-content: flex-start; /* Align cards to the start */
    min-width: 100%; /* Ensure container takes full width */
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
    }
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .col-md-3, .col-md-4, .col-md-9 {
        padding-left: 15px;
        padding-right: 15px;
    }
    .filter-section {
        padding: 20px;
        margin-bottom: 15px;
    }
    .filter-section .form-label {
        font-size: 16px;
    }
    .filter-section .form-select {
        font-size: 16px;
        padding: 8px;
    }
    .filter-section .btn {
        font-size: 16px;
        padding: 10px;
    }
    .compare-button-section {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .compare-button {
        font-size: 16px;
        padding: 12px 24px;
    }
    .compare-checkbox-section {
        margin-top: 15px;
    }
    .compare-checkbox {
        top: 10px;
        left: 10px;
    }
    .apply-compare-button {
        font-size: 14px;
        padding: 10px 20px;
    }
    .campaign-section h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .modal-body {
        padding: 20px;
    }
    .compare-cards-container {
        flex-direction: column; /* Stack cards vertically on mobile */
        align-items: center;
        gap: 15px;
    }
    .compare-card {
        max-width: 100%; /* Full width on mobile */
        margin-bottom: 20px;
    }
    .modal-footer .btn {
        font-size: 16px;
        padding: 10px 20px;
    }
    .campaign-section .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        scroll-behavior: smooth; /* Smooth scrolling for better UX */
    }
    .campaign-section .row.single-card {
        overflow-x: visible; /* Allow the card to be fully visible */
        justify-content: center; /* Center the single card */
        scroll-snap-type: none; /* Disable snap scrolling */
        flex-wrap: wrap; /* Allow wrapping to ensure centering */
    }
    .campaign-section .row.single-card .col-md-4 {
        flex: 0 0 100%; /* Full width for the single card */
        max-width: 100%;
        margin-right: 0; /* Remove margin to prevent extra space */
        margin-left: auto;
        margin-right: auto;
    }
    .campaign-section .col-md-4 {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: start;
        margin-right: 15px;
    }
    .campaign-section .col-md-4:last-child {
        margin-right: 0;
    }
    .campaign-section::-webkit-scrollbar {
        height: 8px;
    }
    .campaign-section::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 10px;
    }
    .campaign-section::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    /* Footer adjustments for mobile */
    .footer-bottom {
        padding: 20px 10px; /* Add padding to ensure spacing, reduced horizontal padding */
        overflow: visible; /* Prevent clipping of content */
    }

    .footer-legal {
        flex-direction: column; /* Stack elements vertically on mobile */
        align-items: center; /* Center align all items */
        text-align: center; /* Center text within each item */
        width: 100%; /* Ensure it takes full width */
        overflow: visible; /* Prevent overflow issues */
    }

    .footer-legal-links {
        margin-bottom: 10px; /* Space between links and copyright */
        display: flex; /* Use flex to manage links */
        flex-wrap: wrap; /* Allow links to wrap if needed */
        justify-content: center; /* Center the links */
        gap: 5px; /* Space between links */
    }

    .footer-legal-links a {
        font-size: 12px; /* Smaller font for mobile readability */
        white-space: normal; /* Allow text to wrap */
        margin: 0; /* Remove default margin */
    }

    .footer-copyright {
        margin-bottom: 10px; /* Space between copyright and back-to-top */
        width: 100%; /* Ensure it takes full width */
    }

    .footer-copyright p {
        font-size: 10px; /* Smaller font to fit better */
        margin: 0; /* Remove default margin */
        white-space: normal; /* Allow text to wrap */
        line-height: 1.4; /* Improve readability */
        padding: 0 10px; /* Add padding to prevent text from touching edges */
    }

    .back-to-top {
        font-size: 12px; /* Smaller font for mobile */
        white-space: nowrap; /* Prevent wrapping for this link */
    }

    /* Fallback for very narrow screens */
    @media (max-width: 360px) {
        .footer-legal-links a {
            font-size: 10px; /* Even smaller font for very narrow screens */
        }

        .footer-copyright p {
            font-size: 9px; /* Even smaller font */
        }

        .back-to-top {
            font-size: 10px;
        }
    }
}