/* Cdiscussion.com V2 - Premium Styles (Superio Inspired) */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #337ab7;
    --primary-hover: #286090;
    --primary-light: rgba(51, 122, 183, 0.08);
    /* For badges/tags */
    --primary-gradient: linear-gradient(135deg, #337ab7 0%, #2e6da4 100%);
    --secondary-color: #e74c3c;
    --text-dark: #1b2032;
    /* Deep modern dark */
    --text-muted: #696969;
    --bg-light: #f5f7fc;
    /* Softer blueish-grey background */
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.05);
    --radius-lg: 20px;
}

body {
    font-family: 'Jost', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Navbar Upgrade */
.navbar-premium {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 15px 0;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 15px !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Buttons Upgrade */
.btn-premium {
    background: var(--primary-color);
    border: none;
    color: white;
    font-weight: 500;
    padding: 14px 30px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-premium:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(51, 122, 183, 0.2);
    color: white;
}

.btn-outline-premium {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 10px;
}

.btn-outline-premium:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Premium Cards */
.glass-card {
    background: white;
    border: 1px solid #ecedf2;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-8px);
}

/* Hero Modernized */
.hero-premium {
    background-color: #f5f7fc;
    background-image: url('../img/hero_premium_workspace_africa.png'), linear-gradient(135deg, #f5f7fc 0%, #eef2f7 100%);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    padding: 140px 0 100px;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@media (max-width: 991px) {
    .hero-premium {
        background-image: none;
        padding: 80px 0;
        text-align: center;
    }
}

.search-box-v2 {
    background: white;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-box-v2 .field-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-right: 1px solid #ecedf2;
}

@media (max-width: 768px) {
    .search-box-v2 .field-group {
        border-right: none;
        border-bottom: 1px solid #ecedf2;
    }
}

.search-box-v2 .field-group:last-child {
    border: none;
    flex: 0;
    min-width: 150px;
}

.search-box-v2 input,
.search-box-v2 select {
    border: none !important;
    background: transparent;
    font-weight: 400;
    width: 100%;
}

.search-box-v2 input:focus,
.search-box-v2 select:focus {
    outline: none;
    box-shadow: none;
}

.search-box-v2 i {
    color: #9fa4b0;
    margin-right: 12px;
}

/* Grayscale Partners */
.grayscale-logos img {
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.5s ease;
    max-width: 120px;
}

.grayscale-logos .col-6:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Section Headings */
.section-title h2 {
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Testimonials Styling */
.testimonial-card {
    background: white;
    border: 1px solid #ecedf2;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s ease;
}

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

.testimonial-avatar {
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    background: #eee;
}

.quote-icon {
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0.2;
}

/* Newsletter Section */
.newsletter-box {
    background: var(--primary-color);
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    box-shadow: none;
    color: white;
}

/* Utilities */
.bg-white {
    background-color: #ffffff !important;
}

.bg-light-blue {
    background-color: #f5f7fc !important;
}