/* ================================================= */
/* Base Styles & Typography */
/* ================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reusable Button Styling */
.read-more-btn, .apply-btn {
    display: inline-block;
    padding: 12px 28px; /* Base padding */
    background: #0F766E;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.read-more-btn:hover, .apply-btn:hover {
    background: #095048;
}

/* ================================================= */
/* 1. Career Hero Section */
/* ================================================= */
.career-hero {
    position: relative;
    height: 400px; /* Base height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.career-hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
    z-index: 1;
}

.career-hero-overlay {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 0 1rem; /* Prevent text clipping on edges */
}

.career-hero-overlay h1 {
    font-size: 3.5rem; /* Base desktop size */
    font-weight: 900;
    font-family: 'Montserrat', 'Arial Black', Impact, sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================= */
/* 2. Short About Us Section (Includes your existing query) */
/* ================================================= */
.career-about {
    background: #f9fafb;
    padding: 60px 20px; /* Base padding */
    font-family: 'Montserrat', sans-serif;
}

.career-about-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Base desktop grid */
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 400px; /* Base height */
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    color: #0F766E;
    margin-bottom: 15px;
}

.about-text p {
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

/* ================================================= */
/* 3. Why Work With Us Section */
/* ================================================= */
.why-work {
    padding: 4rem 2rem; /* Base padding */
    background: #fff;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.section-title {
    font-family: 'Georgia', serif;
    font-size: 2.3rem; /* Base desktop size */
    font-weight: 700;
    color: #0F766E;
    margin-bottom: 3rem;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.why-work .icon {
    flex-shrink: 0;
    background: #ecfdf5;
    padding: 10px;
    border-radius: 8px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-work .icon svg {
    width: 28px;
    height: 28px;
    stroke: #0F766E;
    fill: none;
}


.text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.25rem;
}

.text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}


/* ================================================= */
/* 4. Apply Now Section */
/* ================================================= */
.apply-now {
    background: #fff;
    padding: 80px 20px; /* Base padding */
}

.apply-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Base desktop grid */
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.apply-text h2 {
    font-family: 'Georgia', serif;
    font-size: 2.5rem; /* Base desktop size */
    font-weight: 700;
    margin-bottom: 15px;
    color: #0F766E;
}

.apply-text p {
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #444;
    line-height: 1.6;
}

/* Right side images */
.apply-images {
    display: flex;
    justify-content: center;
    align-items: center;
}

.apply-images img {
    width: 100%;
    max-width: 450px;
    height: 460px; /* Base height */
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* ================================================= */
/* Media Queries for Responsiveness */
/* ================================================= */

/* Tablet and Smaller Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    /* General Padding */
    .why-work, .apply-now {
        padding: 40px 15px;
    }
    .career-about {
        padding: 40px 15px;
    }

    /* 1. Career Hero */
    .career-hero {
        height: 350px;
    }
    .career-hero-overlay h1 {
        font-size: 2.8rem;
    }

    /* 2. Short About Us (Existing rules re-verified) */
    .career-about-container {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 30px;
    }
    .about-image img {
        height: 300px;
    }
    .about-text h2 {
        font-size: 1.8rem;
    }

    /* 3. Why Work With Us */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .why-item {
        padding: 1rem;
    }

    /* 4. Apply Now */
    .apply-content {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 30px;
    }
    .apply-text h2 {
        font-size: 2rem;
    }
    .apply-text p {
        font-size: 1rem;
    }
    .apply-images img {
        height: 350px; /* Reduced height */
    }
}


/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    /* General Padding */
    .why-work, .apply-now, .career-about {
        padding: 30px 10px;
    }

    /* 1. Career Hero */
    .career-hero {
        height: 250px;
    }
    .career-hero-overlay h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    /* 2. Short About Us */
    .about-image img {
        height: 250px;
    }
    .about-text h2 {
        font-size: 1.5rem;
    }
    .about-text p {
        font-size: 0.9rem;
    }

    /* 3. Why Work With Us */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    .why-item {
        /* On small screens, stack icon and text for better flow */
        flex-direction: column;
        align-items: flex-start;
    }
    .why-work .icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .text h3 {
        font-size: 1.1rem;
    }
    .text p {
        font-size: 0.85rem;
    }

    /* 4. Apply Now */
    .apply-text h2 {
        font-size: 1.8rem;
    }
    .apply-text p {
        font-size: 0.95rem;
    }
    .apply-btn {
        padding: 10px 20px; /* Smaller button */
    }
    .apply-images img {
        height: 300px; /* Further reduced height */
    }
}