/* --- Mobile: Feature Grid Horizontal Scroll --- */
@media (max-width: 768px) {

    /* 1. Container ko Row banaya */
    .feature-grid {
        display: flex !important;        /* Row Layout */
        grid-template-columns: none !important; /* Purana Grid hataya */
        overflow-x: auto !important;     /* Swipe Enable */
        gap: 20px !important;            /* Cards ke beech gap */
        padding-bottom: 30px !important; /* Scroll karne ke liye neeche jagah */
        
        /* Magnetic Scroll Effect */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .feature-grid::-webkit-scrollbar { display: none; }

    /* 2. Card Size Fix */
    .feature-card {
        height: 100px !important;         /* Sab cards ki height fix */
        width: 200px !important;          /* Sab cards ki width fix */
        min-width: 85vw !important;      /* Screen ka 85% hissa lega */
        flex-shrink: 0 !important;       /* Pichkega nahi */
        scroll-snap-align: center;       /* Center mein aake rukega */
        height: auto !important;         /* Height content ke hisaab se */
        
        /* Thoda shadow taaki alag dikhe */
        box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
    }
}





/* --- Mobile: Reduce Gap between Job Description & CTA --- */
@media (max-width: 768px) {

    /* 1. Job Description ka bottom gap hatana */
    .jd-section {
        margin-bottom: 0 !important;      /* Neeche ka margin 0 */
        padding-bottom: 20px !important;  /* Thoda sa padding bas */
    }

    /* 2. CTA Section (Blue Box) ka top gap kam karna */
    /* Hum inline style wale section ko override kar rahe hain */
    section[style*="background: var(--primary)"] {
        padding-top: 40px !important;    /* 80px se kam karke 40px kiya */
        padding-bottom: 40px !important; /* Neeche bhi thoda balance kiya */
        margin-top: 0 !important;        /* Margin bilkul khatam */
    }

    /* 3. Optional: CTA Text thoda compact karna */
    section[style*="background: var(--primary)"] h2 {
        margin-bottom: 10px !important;
        font-size: 1.5rem !important;
    }
    
    section[style*="background: var(--primary)"] p {
        margin-bottom: 20px !important;
    }
}









@media (max-width: 768px) {

    /* 1. Key Stats ka neeche ka margin khatam karna */
    .feature-grid {
        margin-bottom: 10px !important; /* Pehle 80px tha, ab sirf 10px */
        padding-bottom: 20px !important; /* Scroll karne ke liye thodi jagah */
    }

    /* 2. Job Description ka upar ka margin adjust karna */
    .jd-section {
        margin-top: 0 !important; /* Upar se chipka diya */
        padding-top: 0 !important;
    }

    /* 3. Container ki extra padding hatana (Safety ke liye) */
    .jd-section .container {
        padding-top: 0 !important;
    }
}












/* --- 1. Variables & Reset --- */
:root {
    /* Colors derived from your HTML context */
    --primary: #1e3a8a;       /* Trustworthy Navy Blue */
    --accent: #059669;        /* Success Green */
    --text-dark: #1f2937;     /* Dark Grey for headings */
    --text-light: #4b5563;    /* Softer Grey for paragraphs */
    --bg-light: #f3f4f6;      /* Light background */
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* --- 2. Layout Utilities --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px; /* Padding prevents content touching edges on mobile */
    width: 100%;
}

/* Global Button Style */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
    text-align: center;
}

.btn:hover {
    background-color: #047857; /* Darker Green */
    transform: translateY(-2px);
}

/* --- 3. Hero Section --- */
.g-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.g-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.g-hero h1 span {
    color: #fbbf24; /* Gold accent for "Trust Partner" */
}

.g-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* --- 4. Feature Grid (Key Stats) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default: 3 Columns */
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: #e0f2fe;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- 5. Job Description Section --- */
.jd-section {
    margin-bottom: 80px;
}

.jd-box {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.jd-header {
    background: #f8fafc;
    padding: 30px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.salary-tag {
    background: #d1fae5;
    color: #065f46;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.jd-body {
    padding: 40px;
}

.job-list {
    list-style: none;
}

.job-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.job-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* --- 6. Mobile & Tablet Responsiveness --- */

/* Tablet (Max Width: 1024px) */
@media (max-width: 1024px) {
    .g-hero h1 {
        font-size: 2.5rem;
    }
    
    /* Reduce gap in grid */
    .feature-grid {
        gap: 20px;
    }
}

/* Mobile (Max Width: 768px) */
@media (max-width: 768px) {
    
    /* Hero Adjustments */
    .g-hero {
        padding: 50px 0;
    }
    
    .g-hero h1 {
        font-size: 2rem; /* Smaller font for mobile */
    }
    
    .g-hero p {
        font-size: 1rem;
    }

    /* Stack Feature Cards vertically */
    .feature-grid {
        grid-template-columns: 1fr; /* 1 Column */
    }

    /* Fix JD Header stacking */
    .jd-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* CRITICAL: Override Inline Styles for JD Grid */
    /* We use !important to force the inline styles (grid-template-columns: 1fr 1fr) to break */
    .jd-body > div {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Force single column */
        gap: 30px !important;
    }

    .jd-body {
        padding: 20px; /* Less padding on mobile */
    }
    
    /* Adjust CTA Section font size */
    section[style*="padding: 80px"] {
        padding: 50px 0 !important;
    }
}
