html {
    font-size: 14px;
}

/* ── 7-Day Trial Banner ── */
.trial-banner {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    color: #1c1917;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1050;
}

.trial-banner-inner {
    flex: 1;
    text-align: center;
}

.trial-banner-link {
    color: #1c1917;
    font-weight: 700;
    text-decoration: underline;
}

.trial-banner-link:hover {
    color: #292524;
}

.trial-banner-close {
    background: none;
    border: none;
    color: #1c1917;
    opacity: 0.7;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.trial-banner-close:hover {
    opacity: 1;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* ============================================
   PURCHASE MODULES & VOUCHERS - SIDE BY SIDE
   ============================================ */
.card.bg-primary {
    background: linear-gradient(135deg, #9b7ab8 0%, #8464a0 100%) !important;
}

/* If you want to be more specific and only target the first statistics card: */
.row.mb-4 .col-md-3:first-child .card.bg-primary {
    background: linear-gradient(135deg, #9b7ab8 0%, #8464a0 100%) !important;
}
/* Row container - ensures cards display side by side */
.modules-vouchers-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    margin-left: -10px;
    margin-right: -10px;
}

    /* Column sizing */
    .modules-vouchers-row > .col-md-6 {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 20px;
    }

/* Individual card styling */
.card-module {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 40px 30px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    /* Decorative background wave */
    .card-module::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: linear-gradient(to top, rgba(60, 169, 210, 0.05), transparent);
        pointer-events: none;
    }

    /* Hover effect */
    .card-module:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        border-color: #3ca9d2;
    }

    /* Icon container - centered at top */
    .card-module .card-icon-container {
        text-align: center;
        margin-bottom: 25px;
        flex-shrink: 0;
    }

    .card-module .card-icon-img {
        max-width: 200px;
        max-height: 200px;
        width: auto;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    /* Content section - grows to fill space */
    .card-module .card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px 0;
    }

    .card-module .card-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #333333;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

        .card-module .card-title i {
            color: #3ca9d2;
        }

    .card-module .card-subtitle {
        font-size: 1rem;
        color: #666666;
        line-height: 1.6;
        max-width: 400px;
    }

    /* Button section - stays at bottom */
    .card-module .card-action {
        margin-top: auto;
        text-align: center;
        padding-top: 20px;
        flex-shrink: 0;
    }

/* Button styling */
.btn-visit-shop,
.btn-vouchers {
    display: inline-block;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-visit-shop {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white !important;
}

    .btn-visit-shop:hover {
        background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
        color: white !important;
        text-decoration: none;
    }

.btn-vouchers {
    background: linear-gradient(135deg, #9b7ab8 0%, #8464a0 100%);
    color: white !important;
}

    .btn-vouchers:hover {
        background: linear-gradient(135deg, #8464a0 0%, #6d5489 100%);
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(155, 122, 184, 0.3);
        color: white !important;
        text-decoration: none;
    }

/* Responsive design - Stack on tablets and mobile */
@media (max-width: 767px) {
    .modules-vouchers-row > .col-md-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .card-module {
        min-height: auto;
    }

        .card-module .card-icon-img {
            max-width: 150px;
            max-height: 150px;
        }

        .card-module .card-title {
            font-size: 1.3rem;
        }

        .card-module .card-subtitle {
            font-size: 0.95rem;
        }
}

/* Ensure proper Bootstrap grid behavior */
@media (min-width: 768px) {
    .modules-vouchers-row > .col-md-6 {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}
