/* Marslia Hosting — Homepage Products Sections */

.ml-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.ml-section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.12));
    color: #2563eb;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.ml-section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.ml-section-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0;
    line-height: 1.7;
}

/* Featured plans */
.ml-products-home {
    position: relative;
}

.ml-group-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ml-group-section-alt {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
}

.ml-domains-section {
    padding: 4rem 0 5rem;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.ml-plans-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ml-plans-container {
    max-width: 1200px;
}

.ml-plans-row {
    margin-left: -12px;
    margin-right: -12px;
}

.ml-plan-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.25rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.ml-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.ml-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.25);
}

.ml-plan-card:hover::before {
    opacity: 1;
}

.ml-plan-card.featured {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.18);
}

.ml-plan-card.featured::before {
    height: 5px;
    opacity: 1;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.ml-plan-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ml-plan-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: #2563eb;
}

.ml-plan-icon.accent-blue { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; }
.ml-plan-icon.accent-teal { background: linear-gradient(135deg, #ecfdf5, #ccfbf1); color: #0d9488; }
.ml-plan-icon.accent-purple { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #7c3aed; }
.ml-plan-icon.accent-amber { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; }

.ml-plan-icon img {
    max-width: 48px;
    height: auto;
}

.ml-plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    text-align: center;
}

.ml-plan-price-wrap {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e2e8f0;
}

.ml-billing-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.5rem;
    text-align: right;
}

.ml-billing-cycle-select {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 0.65rem 0.85rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    background-color: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ml-billing-cycle-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.ml-plan-from {
    display: block;
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.ml-plan-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1.2;
    margin: 0;
}

.ml-plan-cycle {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.ml-plan-secondary {
    display: block;
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

.ml-plan-custom {
    font-size: 1.35rem !important;
    color: #0f172a !important;
}

.ml-plan-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
    text-align: center;
    margin-bottom: 1rem;
}

.ml-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.ml-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    text-align: right;
}

.ml-plan-features li i {
    color: #22c55e;
    font-size: 0.9rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.ml-plan-btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.ml-plan-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.ml-plan-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
    color: #fff !important;
}

.ml-plan-btn-outline {
    background: #fff;
    color: #2563eb !important;
    border-color: #2563eb;
}

.ml-plan-btn-outline:hover {
    background: #eff6ff;
    color: #1d4ed8 !important;
}

/* Domain cards subsection */
.ml-subsection-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 3rem 0 1.5rem;
    text-align: center;
}

.ml-domain-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.ml-domain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.ml-domain-card h5 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.ml-domain-card p {
    color: #64748b;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.ml-domain-link {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none !important;
}

.ml-domain-link:hover {
    color: #1d4ed8;
}

.ml-domain-card img {
    flex-shrink: 0;
    opacity: 0.85;
}

/* Product categories section */
.ml-categories-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.ml-categories-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at 20% 20%, rgba(37, 99, 235, 0.15), transparent 60%),
        radial-gradient(600px 300px at 80% 80%, rgba(14, 165, 233, 0.1), transparent 60%);
    pointer-events: none;
}

.ml-categories-section .ml-section-title {
    color: #fff;
}

.ml-categories-section .ml-section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.ml-categories-section .ml-section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
    border-color: rgba(255, 255, 255, 0.15);
}

.ml-category-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    position: relative;
    z-index: 1;
}

.ml-category-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.ml-category-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.ml-category-icon.accent-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.ml-category-icon.accent-teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.ml-category-icon.accent-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.ml-category-icon.accent-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }

.ml-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.ml-category-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.5rem;
}

.ml-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #93c5fd;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none !important;
    transition: gap 0.25s ease, color 0.25s ease;
}

.ml-category-btn:hover {
    color: #fff;
    gap: 0.75rem;
}

.ml-category-btn i {
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .ml-plans-section,
    .ml-categories-section {
        padding: 3.5rem 0;
    }

    .ml-section-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .ml-domain-card {
        flex-direction: column;
        text-align: center;
    }

    .ml-plan-card {
        padding: 1.5rem 1.25rem;
    }
}

/* Testimonials section */
.ml-testimonials-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.ml-testimonial-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ml-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.ml-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.ml-testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.ml-testimonial-text {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1rem;
    min-height: 4.5rem;
}

.ml-testimonial-stars {
    display: flex;
    gap: 0.2rem;
    justify-content: flex-end;
}

.ml-star-filled {
    color: #f59e0b;
}

.ml-star-empty {
    color: #cbd5e1;
}

.ml-review-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.ml-review-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.ml-star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.35rem;
}

.ml-star-input input {
    display: none;
}

.ml-star-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #cbd5e1;
    margin: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ml-star-input label:hover,
.ml-star-input label:hover ~ label,
.ml-star-input input:checked ~ label {
    color: #f59e0b;
}

.ml-star-input label:hover {
    transform: scale(1.1);
}

.ml-testimonials-swiper {
    padding-bottom: 2.5rem;
}

.ml-testimonials-swiper .swiper-pagination-bullet-active {
    background: #2563eb;
}
