/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-gradient: linear-gradient(135deg, #ffffff 0%, #ff4d4d 100%);
    --theme-red: #ff4d4d;
    --dark-grey: #333;
    --light-grey: #f9f9f9;
    --white: #ffffff;
    --btn-gradient: linear-gradient(180deg, #ff6b6b 0%, #ff4d4d 100%);
    --btn-hover-gradient: linear-gradient(180deg, #ff4d4d 0%, #e60000 100%);
}

body {
    background-color: var(--white);
    color: var(--dark-grey);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--theme-red);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--theme-red);
}

/* Buttons */
.btn-primary {
    background: var(--btn-gradient);
    color: var(--white) !important;
    padding: 6px 20px; /* Slightly more padding for a "fat" modern button */
    border-radius: 7px; /* Fully rounded pill shape */
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    /* This shadow uses a semi-transparent version of your red for a "glow" effect */
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
    text-align: center;
}

.btn-primary:hover {
    background: var(--btn-hover-gradient);
    transform: translateY(-2px); /* Lifts up slightly on hover */
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
}

.btn-primary:active {
    transform: translateY(0); /* "Sinks" when clicked */
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: var(--white);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.subtitle-wrapper {
    display: inline-block;
    padding: 10px 30px;
    margin-bottom: 20px;
    position: relative;

    /* 1. Create the rounded shape */
    border-radius: 10px;

    /* 2. Magic Border: This creates a 1px gap that shows the gradient behind it */
    border: 1px solid transparent;
    background:
        linear-gradient(white, white) padding-box, /* Inner background (stays white) */
        var(--btn-gradient) border-box;            /* Border background (shows gradient) */
}

.subtitle-1 {
    font-size: 1.2rem;
    color: #666;
}

.subtitle-2 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* Cards & Grid */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1em;
    margin-bottom: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    padding: 40px 20px;
    text-align: center;
    transition: 0.3s;
}

.card-border {
    border: 1px solid var(--theme-red);
    border-radius: 10px;
}

.icon-theme {
    color: var(--theme-red);
    margin-bottom: 20px;
}

/* Toggle Buttons */
.toggle-container {
    text-align: center;
    margin-bottom: 40px;
    display: inline-flex; /* Keeps buttons in a single row */
    background: #fff;
    border: 1px solid var(--theme-red); /* The outer border */
    border-radius: 15px; /* Overall corner roundness */
    overflow: hidden; /* Ensures the inner buttons don't spill out */
}

.toggle-btn {
    padding: 12px 35px;
    border: none; /* Remove individual borders */
    background: transparent;
    color: var(--theme-red);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    /* Add a thin line between buttons */
    border-right: 1px solid var(--theme-red);
}

/* Remove the line from the very last button */
.toggle-btn:last-child {
    border-right: none;
}

.toggle-btn.active {
    background: var(--theme-red);
    color: white;
}

.toggle-btn:hover:not(.active) {
    background: rgba(255, 77, 77, 0.05); /* Subtle hover for inactive buttons */
}

/* Job Cards */
.job-card {
    background: white;
    border: 1px solid var(--theme-red);;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.job-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.applicants {
    font-size: 0.85rem;
    color: #888;
}

.badge-row {
    display: flex;
    flex-wrap: wrap; /* Allows badges to wrap on mobile */
    gap: 8px;
    margin-bottom: 15px;
}

.badge {
    /* Very light red background (95% white, 5% red) */
    background: #fff5f5;
    /* Subtle border to define the shape */
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: #333; /* Dark/Black font for readability */
    padding: 6px 14px;
    border-radius: 50px; /* Fully rounded pill shape */
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Space between icon and text */
}

.badge i {
    font-size: 0.7rem;
    color: #000; /* Pure black icon */
}

.settlement {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
    font-size: 0.85rem;
    color: #666666;
}
/* --- Toggle Button Styles --- */
.toggle-container {
    text-align: center;
    margin-bottom: 40px;
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--theme-red);
    border-radius: 15px;
    overflow: hidden;
}

.toggle-btn {
    padding: 12px 25px;
    border: none;
    background: transparent;
    color: var(--theme-red);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    border-right: 1px solid var(--theme-red);
    display: flex;
    align-items: center;
}

.toggle-btn:last-child { border-right: none; }

.toggle-btn.active {
    background: var(--theme-red);
    color: white;
}

.count-badge {
    background: red;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    min-width: 20px;
}

.toggle-btn.active .count-badge {
    background: white;
    color: var(--theme-red);
}



.job-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    display: none; /* Controlled by JS */
}

/* 1. Reset the counter on the parent container */
#job-list {
    counter-reset: job-idx;
}

/* 2. Increment the counter whenever a card is VISIBLE */
/* This covers both PC (block) and Mobile (flex) */
.job-card[style*="display: block"],
.job-card[style*="display: flex"] {
    counter-increment: job-idx !important;
    display: flex; /* Ensure it stays flex if JS sets it */
    animation: fadeIn 0.4s ease forwards;
}

/* 3. Style the Numbering Box */
.job-card[style*="display: block"] .job-title-group::before,
.job-card[style*="display: flex"] .job-title-group::before {
    content: counter(job-idx, decimal-leading-zero);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--theme-red);
    background: #fff5f5;
    padding: 5px 10px;
    border-radius: 8px;
    margin-right: 15px;
    display: inline-block;
    line-height: 1;
    flex-shrink: 0; /* Prevents the red box from squishing on mobile */
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.job-title-group {
    display: flex;
    align-items: center;
}

.job-desc {
    font-size: 0.85rem;
    color: #666666;
    margin: 10px 0;
    line-height: 1.6;
}

.settlement {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    /* 1. Use a specific class for the flex behavior instead of forcing all cards */
    .job-card {
        flex-direction: column;
        align-items: stretch;
    }

    /* 2. CRITICAL: Update numbering to look for flex OR block */
    .job-card[style*="display: block"] .job-title-group::before,
    .job-card[style*="display: flex"] .job-title-group::before {
        content: counter(job-idx, decimal-leading-zero);
        margin-bottom: 0px;
        margin-right: 15px;
        display: inline-block; /* Ensures it shows up */
    }

    .job-header {
        display: contents;
    }

    .job-title-group {
        order: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 15px;
    }

    .badge-row { order: 2; }
    .job-desc { order: 3; }
    .settlement { order: 4; }

    .job-card .btn-primary {
        order: 10;
        align-self: center;
        width: 100%;
        max-width: 280px;
        margin: 20px auto 5px auto;
        text-align: center;
    }
}

/* Stats Section */
.stats-section {
    /* Keep your gradient but add a pattern overlay */
    background:
        linear-gradient(rgba(255, 77, 77, 0.1), rgba(255, 77, 77, 0.1)), /* Tint layer */
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.05) 20px, rgba(255,255,255,0.05) 40px), /* Pattern */
        var(--primary-gradient); /* Your original gradient */
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Add a subtle "shimmer" or glow effect to the numbers */
.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Steps Section */
.working-model {
    background: white;
    padding: 60px 40px; /* More breathing room */
    text-align: left;
}

.working-header {
    margin-bottom: 50px;
    /* Red vertical line accent on the left */
    border-left: 4px solid var(--theme-red);
    padding-left: 20px;
}

.working-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between steps */
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-icon {
    min-width: 50px;
    height: 50px;
    background: #fff5f5; /* Very light red to match your badges */
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: 12px; /* Soft square/rounded shape */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--theme-red);
    font-size: 1.4rem;
}

/* Specific color for WhatsApp icon to make it pop */
.step-icon .fa-whatsapp {
    color: #25D366;
}

.step-content h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.step-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .working-model {
        padding: 40px 20px;
    }

    .step-item {
        gap: 15px;
    }
}

/* Testimonials */
.testimonial-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px; /* Increased padding for longer text */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative; /* For the quote icon */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-box:hover {
    transform: translateY(-5px);
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 25px;
    color: rgba(255, 77, 77, 0.1); /* Very faint theme red */
    font-size: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.user-info img {
    border-radius: 50%;
    border: 2px solid #fff5f5;
}

.user-info strong {
    display: block;
    font-size: 1.1rem;
    color: #333;
}

.user-meta {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin: 2px 0;
}

.stars {
    color: #f1c40f;
    font-size: 0.9rem;
    margin-top: 4px;
}

.testimonial-box p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

/* Ensure all boxes in the row are the same height */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background-color: #fcfcfc; /* Very light clean grey */
    padding: 80px 0 30px;
    border-top: 1px solid #eee;
    color: #444;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr; /* Brand gets more space */
    gap: 60px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* Red underline for column titles */
.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--theme-red);
}

.footer-brand p {
    margin: 20px 0;
    line-height: 1.8;
    color: #666;
    font-size: 0.95rem;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--theme-red);
    padding-left: 5px; /* Subtle movement effect */
}

.footer-contact i {
    color: var(--theme-red);
    margin-top: 4px;
    width: 16px; /* Keeps text aligned */
}

.footer-contact a {
    text-decoration: none;
    color: #666;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: #eee;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background: var(--theme-red);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack everything on mobile */
        gap: 40px;
    }
}

/* Responsive (Mobile View) */
.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Contact Section Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 30px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--theme-red);
}

.contact-info p {
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.contact-form-container {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-height: 650px;
}

/* Target all section tags that are even-numbered in the body */
section:nth-child(even) {
    background-color: #f9f9f9; /* Very light grey */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Ensure sections have consistent padding for the "striped" look to work */
section {
    padding: 80px 0;
    width: 100%;
}

.user-info img {
    /* Set a fixed size */
    width: 55px;
    height: 55px;

    /* This is the magic part: it crops the image to fit the circle without stretching */
    object-fit: cover;

    /* Makes it a perfect circle */
    border-radius: 50%;

    /* Optional: adds a thin border to make it look cleaner */
    border: 2px solid #fff5f5;

    /* Ensures the image doesn't shrink in a flex container */
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
}

.logo-img {
    /* Set the height to match your font size (usually 30px-40px for navbars) */
    height: 30px;
    width: auto; /* Maintains original aspect ratio */

    /* Ensures the image stays crisp and centered */
    object-fit: contain;

    /* Optional: If your logo is a perfect square/circle and you want it small */
    /* width: 35px; */
}




/* Mobile Adjustment for Contact Section */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 30px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-icon {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .subtitle-1 {
        font-size: 1rem;
    }

    .subtitle-2 {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    #apply-btn {
        display: block;
        width: 280px;
        margin: 30px auto 0;
        text-align: center;
    }
}