/* Theme Name: MiddleEastJobs Kenya
Color: Munsell Green #00A877
Mobile Optimized
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-green: #00A877;
    --dark-green: #008c63;
    --light-bg: #f8f9fa;
    --dark-text: #333333;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden; /* Prevents side scrolling on mobile */
}

/* --- NAVIGATION --- */
.navbar {
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-green) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-text) !important;
    transition: color 0.3s ease; /* Smooth color change */
    margin: 0 5px;
}

/* THE HOVER EFFECT YOU ASKED FOR */
.nav-link:hover {
    color: var(--primary-green) !important;
}

.nav-link.active {
    color: var(--primary-green) !important;
    font-weight: 700;
}

.btn-primary-custom {
    background-color: var(--primary-green);
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary-custom:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 168, 119, 0.3);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 60px 0; /* Reduced padding for mobile */
    background: rgb(248,249,250);
    background: linear-gradient(90deg, rgba(248,249,250,1) 0%, rgba(235,250,245,1) 100%);
}

.hero-title {
    font-weight: 700;
    font-size: 2.5rem; /* Slightly smaller for mobile safety */
    line-height: 1.2;
}

.hero-blob {
    position: absolute;
    top: 10%;
    right: 0;
    width: 80%;
    height: 80%;
    background-color: var(--primary-green);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    opacity: 0.15;
}

/* --- CARDS & UI ELEMENTS --- */
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 168, 119, 0.15);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 168, 119, 0.1);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 24px;
}

.job-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px; /* Comfortable padding for mobile */
    transition: all 0.3s ease;
    height: 100%;
}

.job-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.job-role {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.job-tags span {
    background: #f0fdf9;
    color: var(--primary-green);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}

/* --- PAYWALL STYLING --- */
.paywall-container {
    position: relative;
    overflow: hidden; /* Contains the blur */
}

.paywall-overlay {
    position: absolute;
    top: 300px; 
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient ensures text is readable */
    background: linear-gradient(to bottom, rgba(255,255,255,0.6) 0%, rgba(255,255,255,1) 30%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    padding-left: 15px; /* Prevent edge touching on mobile */
    padding-right: 15px;
}

.blur-content {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

/* --- SPECIFIC MOBILE ADJUSTMENTS (MEDIA QUERIES) --- */
@media (max-width: 991px) {
    /* Navbar Mobile Styles */
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 10px;
    }
    
    .nav-item {
        margin-bottom: 10px;
        text-align: center;
    }

    /* Make the Pay Button full width on mobile for easy tapping */
    .btn-primary-custom {
        width: 100%;
        display: block;
        margin-top: 10px;
    }

    /* Hero Text Adjustment */
    .hero-title {
        font-size: 2rem;
        margin-top: 20px;
        text-align: center;
    }
    
    .hero-section p {
        text-align: center;
    }

    /* Center the hero buttons on mobile */
    .hero-section .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Ensure the Paywall box fits on small screens */
    .paywall-overlay div {
        width: 100% !important;
        padding: 30px !important;
    }
    
    .paywall-overlay {
        top: 250px; /* Start blur earlier on mobile */
    }
}
/* --- CONTACT SECTION STYLES --- */
#contact-section {
    background-color: #f0fdf9; /* Very light green background */
    border-top: 1px solid #e0e0e0;
}

.contact-btn-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.contact-btn-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.contact-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    color: white;
}

.icon-whatsapp { background-color: #25D366; }
.icon-phone { background-color: #333; }
.icon-email { background-color: var(--primary-green); }

.contact-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Makes the whole box clickable */
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 119, 0.25);
}

/* --- HOW IT WORKS SECTION --- */
.step-circle {
    width: 70px;
    height: 70px;
    background-color: var(--light-bg);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px auto;
    position: relative;
    z-index: 1;
}

/* Connect the steps with a line on Desktop */
@media (min-width: 992px) {
    .step-connector::after {
        content: '';
        position: absolute;
        top: 35px;
        left: 50%;
        width: 100%;
        height: 2px;
        background-color: #e0e0e0;
        z-index: 0;
    }
    .step-connector:last-child::after {
        display: none;
    }
}

/* --- TESTIMONIALS SECTION --- */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary-green);
}

/* --- LEGAL MODAL TEXT --- */
.legal-text {
    font-size: 0.9rem;
    color: #666;
    max-height: 400px;
    overflow-y: auto;
}