/* Modern WHMCS Theme Custom CSS */

:root {
    --primary-color: #4e73df;
    --primary-dark: #224abe;
    --secondary-color: #2c3e50;
    --accent-color: #36b9cc;
    --text-color: #5a5c69;
    --light-bg: #f8f9fc;
    --dark-bg: #1a1c23;
    --footer-bg: #15171e;
    --footer-text: #858796;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
}

/* Helper Classes */
.section-padding {
    padding: 80px 0;
}

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

/* Hero Carousel */
.hero-carousel {
    position: relative;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    /* Fallback gradient */
}

.hero-carousel .carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-carousel .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-carousel .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-carousel .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #fff;
    max-width: 600px;
}

.hero-carousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

.hero-carousel .carousel-indicators .active {
    background-color: #fff;
    width: 30px;
    border-radius: 10px;
}

/* News Section */
.news-card {
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.news-body {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.news-title a {
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--primary-color) !important;
}

.news-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Features Section */
.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: transform 0.3s ease;
    height: 100%;
    text-align: center;
}

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

.icon-wrapper {
    height: 80px;
    width: 80px;
    background: rgba(78, 115, 223, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Pricing Section */
.pricing-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e3e6f0;
    position: relative;
}

.pricing-card:hover {
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-tag {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 5px 0;
    font-size: 0.8rem;
    font-weight: 700;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.pricing-card .card-header {
    background: #fff;
    padding: 2rem 1rem;
    border-bottom: 1px solid #e3e6f0;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.price .period {
    font-size: 1rem;
    color: #858796;
}

.pricing-card .card-body {
    padding: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Footer */
.modern-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

.contact-info li {
    display: flex;
    align-items: center;
}

.contact-info i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-btns .btn {
        width: 100%;
        margin-right: 0 !important;
    }

    .pricing-card.popular {
        transform: scale(1);
        margin: 20px 0;
    }

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