/* --- RESET & CORE STYLES --- */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

.container { 
    max-width: 1100px; 
    margin: auto; 
    padding: 20px; 
}

/* --- HEADER & LOGO FIX --- */
header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    /* REMOVED: border-bottom: 5px solid #ffca28; (This removes the yellow line) */
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns logo to the left */
    padding: 0;
    margin: 0; /* Removes extra spacing */
}

.site-logo {
    /* INCREASED SIZE FOR DESKTOP */
    height: 80px; 
    width: auto;
    display: block;
    object-fit: contain;
    margin: 0; /* Removes any internal spacing */
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    header {
        padding: 20px 10px;
    }
    
    .header-flex {
        justify-content: center; /* Centers logo on mobile */
    }

    .site-logo {
        height: 50px; /* Smaller but readable on phones */
    }
}




/* --- HEADER & HERO SECTION --- */

header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    text-align: center;
    padding: 10px 20px;
    border-bottom: 5px solid #ffca28;
}

.hero-section {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 80px 0;
    overflow: hidden;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight { color: #ffca28; }

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* FIX: Hero Badges Overlapping ---------------------------*/

/* ১. বাটন এবং ব্যাজের কমন স্টাইল (Design from BEFORE.png) */
.hero-badges span, .apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1); /* */
    border: 1px solid rgba(255, 255, 255, 0.4); /* */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px; /* পিল শেপ */
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    /* সব বাটন একই সাইজ নিশ্চিত করার জন্য */
    min-width: 180px; 
    box-sizing: border-box;
}

/* Apply Now বাটনকে একটু বেশি বোল্ড করা */
.apply-btn {
    font-weight: 800 !important; /* নজর কাড়ার জন্য অতিরিক্ত বোল্ড */
    text-transform: capitalize;
    margin-top: 10px;
}

/* ২. ডেস্কটপ ভিউ (বামে থাকবে) */
@media (min-width: 769px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .hero-badges {
        display: flex;
        gap: 12px;
        margin: 15px 0;
    }
}

/* ৩. মোবাইল ভিউ (সবকিছু সেন্টারে আসবে) */
@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center !important; /* সবকিছু সেন্টারে */
        text-align: center !important;
    }
    .hero-badges {
        display: flex;
        flex-direction: column; /* একটির নিচে আরেকটি */
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        width: 100%;
    }
    .hero-badges span, .apply-btn {
        width: 80%; /* মোবাইলে বাটনগুলো দেখতে সুন্দর লাগবে */
    }
}

/* নিশ্চিত করুন আপনার Apply Now বাটনটিও বামে আছে *
.apply-btn {
    display: inline-block;
    margin-left: 0;
    margin-right: auto;
}  */


/* --- HERO IMAGE --- */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 5px solid rgba(255,255,255,0.1);
}

/* --- FEATURES --- */
.features {
    display: flex; 
    justify-content: space-between; 
    gap: 20px; 
    margin: 40px 0;
}

.feature-box {
    background: white; 
    padding: 20px; 
    border-radius: 10px; 
    text-align: center;
    flex: 1; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.feature-box img { width: 50px; margin-bottom: 15px; }

/* --- JOB TABLE --- */
table {
    width: 100%; 
    border-collapse: collapse; 
    background: white;
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

th, td { padding: 18px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #1a73e8; color: white; text-transform: uppercase; font-size: 14px; }

.apply-btn {
    background: #2ecc71; 
    color: white; 
    border: none; 
    padding: 10px 20px;
    cursor: pointer; 
    border-radius: 5px; 
    font-weight: 600; 
    transition: 0.3s;
}

.apply-btn:hover { background: #27ae60; transform: scale(1.05); }

/*---Privacy_page----*/

/* Specific Styles for Policy Page Header */
.policy-header {
    background: linear-gradient(135deg, #0d47a1 0%, #0a316d 100%);
    padding: 60px 0;
    text-align: center;
    color: #ffffff !important; /* Forces text to be white */
    border-bottom: 4px solid #ffca28;
}

.policy-header h1 {
    font-size: 2.5rem;
    color: #ffffff !important;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* Adds a shadow for extra readability */
}

.policy-header p {
    font-size: 1.1rem;
    color: #e0e0e0 !important;
    max-width: 700px;
    margin: 0 auto;
}

/* Ensure the main content area has a clean background */
.policy-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    margin-top: -30px; /* Pulls the content slightly up into the header area for a modern look */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.policy-content h2 {
    color: #1a73e8;
    border-left: 5px solid #ffca28;
    padding-left: 15px;
    margin-top: 30px;
}




/* --- MODAL & FORM --- */


.overlay {
    display: none; 
    position: fixed; 
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.8); 
    justify-content: center; 
    align-items: center; 
    z-index: 10000; /* High enough for modal */
}

.modal {
    background: white; 
    padding: 30px; 
    border-radius: 15px;
    width: 90%; 
    max-width: 450px; 
    position: relative;
    max-height: auto;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* Ensure the main content area has a clean background */
.policy-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    margin-top: -30px; /* Pulls the content slightly up into the header area for a modern look */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.policy-content h2 {
    color: #1a73e8;
    border-left: 5px solid #ffca28;
    padding-left: 15px;
    margin-top: 30px;
}



/* FIX: Form Row Alignment */
.form-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.col-5 { width: 45%; }
.col-7 { width: 55%; }

form input, form select {
    width: 100%; 
    padding: 12px; 
    margin: 8px 0;
    border: 1px solid #ddd; 
    border-radius: 6px;
    font-family: inherit;
}

#submitBtn {
    width: 100%; 
    background: #1a73e8; 
    color: white; 
    border: none;
    padding: 15px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: bold;
    margin-top: 10px;
}

/* --- COOKIE BANNER --- */
.cookie-container {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: #222;
    color: #fff;
    padding: 20px;
    z-index: 10001; /* Must be higher than overlay */
    transition: bottom 0.5s ease-in-out;
}

.cookie-container.show {
    bottom: 0;
}

.disclaimer {
    margin-top: 40px; font-size: 12px; color: #777;
    text-align: center; padding: 20px; border-top: 1px solid #ddd;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-buttons { display: flex; gap: 10px; }
.cookie-btn { padding: 8px 20px; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
.cookie-btn.accept { background: #2ecc71; color: white; }
.cookie-btn.decline { background: #555; color: white; }

footer { background: #222; color: #ccc; text-align: center; padding: 20px; margin-top: 50px; }
/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }
    .hero-text { text-align: center; }
    .hero-badges { justify-content: center; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-image-container { margin-top: 30px; }
}

@media (max-width: 768px) {
    .features { flex-direction: column; }
    .site-logo { height: 50px; }
    
    /* Table to Cards */
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    tr { background: #fff; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 10px; padding: 10px; }
    td { border: none; position: relative; padding-left: 50%; text-align: right; border-bottom: 1px solid #eee; }
    td:before { 
        position: absolute; left: 10px; width: 45%; padding-right: 10px; 
        white-space: nowrap; text-align: left; font-weight: bold; color: #1a73e8; 
    }
    td:nth-of-type(1):before { content: "Job"; }
    td:nth-of-type(2):before { content: "Description"; }
    td:nth-of-type(3):before { content: "Earnings"; }
    td:nth-of-type(4):before { content: "Apply"; }

    .form-row { flex-direction: column; gap: 0; }
    .col-5, .col-7 { width: 100%; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.8rem; }
    .modal { padding: 20px; }
}


/* FORCE FIX FOR HERO BADGES */
.hero-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important; /* Centers them on all mobile screens */
    margin-top: 20px !important;
}

.hero-badges span {
    display: inline-block !important;
    white-space: nowrap !important; /* Prevents text from breaking inside badge */
}

/* Hide scrollbar for the form modal container */
.modal-content {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important;  /* IE/Edge */
    overflow-y: scroll !important;
}

.modal-content::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
}

/* FORCE FIX FOR MODAL FORM ALIGNMENT */
.form-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
    align-items: center !important;
}

.col-5 { width: 40% !important; }
.col-7 { width: 60% !important; }

/* MOBILE SPECIFIC OVERRIDE */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column !important; /* Stacks country/phone on small phones */
    }
    .col-5, .col-7 {
        width: 100% !important;
    }
    .hero-text h1 {
        font-size: 1.5rem !important; /* Prevents title from being too big */
    }
}

/*trust signal */

.testimonial-slider-section {
    padding: 60px 0;
    background: #f8fbff;
    overflow: hidden;
}
.testimonial-slider-section h2 { text-align: center; margin-bottom: 40px; color: #2c3e50; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

.slider-container {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.slider-track {
    display: flex;
    /* ১০টি স্লাইড + গ্যাপ মিলিয়ে সঠিক উইডথ */
    width: calc(320px * 10); 
    animation: scrollRight 40s linear infinite;
}

.slide {
    width: 300px;
    background: #ffffff;
    margin: 0 10px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.1);
    flex-shrink: 0;
    border: 1px solid #eef2f6;
    text-align: center;
}

.slide img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 2px solid #007bff;
}

.slide p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    font-style: italic;
    min-height: 70px;
}

.slide h4 { margin: 15px 0 5px; color: #2d3748; font-size: 16px; }
.slide span { color: #007bff; font-weight: 600; font-size: 13px; }

@keyframes scrollRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

.slider-track:hover {
    animation-play-state: paused;
}

