/* =================================================================== */
/* === PRO DRIVER CAREERS - FINAL REFINED & POLISHED STYLESHEET (V2) === */
/* =================================================================== */

/* --- 1. GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-color: #005A9C;
    --secondary-color: #D4382C;
    --dark-color: #2c3e50;
    --light-color: #ffffff;
    --bg-light-grey: #f9fafb;
    --text-color: #4a4a4a;
    --border-color: #e7e7e7;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: var(--primary-color); }
h1, h2, h3 { color: var(--dark-color); font-weight: 600; line-height: 1.3; }
section { padding: 80px 0; }

/* --- 2. HEADER & NAVIGATION --- */
header {
    background: var(--light-color); padding: 1rem 0; border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.7rem; font-weight: 700; color: var(--primary-color); letter-spacing: -1px; }
.logo i { color: var(--secondary-color); margin-right: 5px; }

.desktop-nav a {
    color: var(--dark-color); margin-left: 30px; font-weight: 500; transition: color 0.3s;
    position: relative; padding-bottom: 5px;
}
.desktop-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--secondary-color); transition: width 0.3s;
}
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }

.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dark-color); }
.mobile-nav { display: none; background: var(--dark-color); position: fixed; top: 70px; left: 0; width: 100%; transform: translateY(-150%); transition: transform 0.4s ease-in-out; box-shadow: 0 5px 10px rgba(0,0,0,0.2); text-align: center; }
.mobile-nav.active { transform: translateY(0); }
.mobile-nav a { display: block; color: var(--light-color); padding: 15px 0; font-size: 1.2rem; border-bottom: 1px solid #444; }
.mobile-nav a:last-child { border-bottom: none; }


/* --- 3. HERO SECTION --- */
.hero {
    height: 100vh; position: relative; display: flex; justify-content: center; align-items: center; text-align: center; color: var(--light-color);
    background: linear-gradient(rgba(0,30,60,0.7), rgba(0,30,60,0.7)), url('https://images.pexels.com/photos/2199293/pexels-photo-2199293.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
}
.hero-content { max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: 4rem; color: var(--light-color); margin-bottom: 1rem; font-weight: 700; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); }
.hero-content p { font-size: 1.2rem; margin: 0 auto 2.5rem auto; max-width: 700px; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); }


/* --- 4. BUTTONS & UTILITIES --- */
.btn {
    display: inline-block; padding: 14px 35px; background: var(--secondary-color); color: var(--light-color);
    border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.btn:hover { background: #b02a20; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(212, 56, 44, 0.4); }
.section-bg { background-color: var(--bg-light-grey); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; }


/* --- 5. PAGE SECTIONS (HOME, ABOUT, ETC.) --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.application-section .container { display: flex; gap: 50px; align-items: flex-start; }
.job-details, .form-container { flex: 1; }

.benefit-card { text-align: center; padding: 30px; }
.benefit-card .icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }

.form-container { background: var(--light-color); padding: 40px; border-radius: 12px; box-shadow: var(--box-shadow); }
.form-row { display: flex; gap: 20px; }
.form-group { margin-bottom: 20px; width: 100%; }
label { margin-bottom: 8px; font-weight: 600; color: var(--dark-color); font-size: 0.9rem; display: block; }
input, textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; font-family: 'Poppins', sans-serif; transition: all 0.3s ease; }
input:focus, textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0,90,156,0.2); }

.testimonial-card { background: var(--light-color); padding: 30px; border-radius: 12px; box-shadow: var(--box-shadow); text-align: center; }
.testimonial-card .stars { color: #f39c12; margin-bottom: 10px; }
.testimonial-card .author { font-weight: bold; margin-top: 15px; color: var(--primary-color); }

.job-card { background: var(--light-color); border-radius: 12px; box-shadow: var(--box-shadow); padding: 30px; transition: all 0.3s ease; border-left: 5px solid var(--primary-color); }
.job-card:hover { transform: translateY(-5px); }
.job-card ul { list-style: none; padding-left: 0; margin: 20px 0; }
.job-card ul li { margin-bottom: 10px; }
.job-card ul li i { color: var(--secondary-color); margin-right: 10px; }

/* About Us Page Specifics */
.about-content { display: flex; align-items: center; gap: 50px; }
.about-content .image { flex: 1; }
.about-content .image img { width: 100%; border-radius: 12px; }
.about-content .text { flex: 1; }
.team-member { text-align: center; }
.team-member img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; box-shadow: var(--box-shadow); }

/* Contact Page Specifics */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: flex-start; }
.contact-info .info-item { display: flex; align-items: flex-start; margin-bottom: 20px; }
.contact-info .icon { font-size: 1.5rem; color: var(--primary-color); margin-right: 20px; width: 30px; text-align: center; }
.contact-info .info-text { flex: 1; }
.map-container { width: 100%; height: 350px; border-radius: 12px; overflow: hidden; margin-top: 30px; }
.map-container iframe { width: 100%; height: 100%; border: 0; }

.thank-you-container { text-align: center; padding: 80px 40px; margin-top: 50px; }
.thank-you-container .icon { font-size: 5rem; color: #2ecc71; margin-bottom: 30px; }


/* --- 6. FOOTER --- */
footer { background: var(--dark-color); color: rgba(255,255,255,0.8); padding: 50px 0 30px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--light-color); margin-bottom: 20px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.3s; }
.footer-links li { list-style: none; margin-bottom: 10px; }
.footer-links a:hover { color: var(--light-color); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #444; }


/* ==================================================== */
/* --- 7. MEDIA QUERIES (RESPONSIVE STYLES) --- */
/* ==================================================== */

/* --- Tablet Size (e.g., iPads) --- */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .application-section .container, .about-content, .contact-grid { flex-direction: column; grid-template-columns: 1fr; }
    .job-details { margin-bottom: 40px; }
    .hero-content h1 { font-size: 3.2rem; }
    .hero-content p { font-size: 1.1rem; }
    .section-title h2 { font-size: 2.2rem; }
}

/* --- Mobile Size (e.g., iPhones, Android) --- */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    .mobile-nav { display: block; }

    .hero { height: 90vh; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .section-title h2 { font-size: 2rem; }

    .grid-3 { grid-template-columns: 1fr; gap: 40px; } /* Added more gap */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    
    .form-row { flex-direction: column; gap: 0; }
    .form-group { margin-bottom: 20px; }
    .form-container { padding: 30px 20px; } /* Adjusted padding */

    /* === FIX FOR ABOUT US PAGE ON MOBILE === */
    .about-content .image {
        order: -1; /* Image ko text se upar le aayega */
        margin-bottom: 30px;
    }
    .about-content .text {
        text-align: center; /* Text ko center kar dega */
    }
    .team-member {
        margin-bottom: 20px;
    }

    /* === FIX FOR CONTACT PAGE ON MOBILE === */
    .contact-grid {
        gap: 40px;
    }
    .contact-info {
        text-align: center;
    }
    .contact-info .info-item {
        flex-direction: column; /* Icon aur text ko upar-neeche kar dega */
        align-items: center;
        margin-bottom: 30px;
    }
    .contact-info .icon {
        margin-right: 0;
        margin-bottom: 10px; /* Icon ke neeche thodi jagah */
    }
    .map-container {
        height: 300px;
    }
}