/* New CSS for talent-acquisition.css */

#hiring-posts .job-listing {
    padding: 25px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    margin-bottom: 30px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    height: 100%; /* Ensure all boxes are the same height */
    display: flex;
    flex-direction: column;
}

#hiring-posts .job-listing:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

#hiring-posts .job-listing h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* Ensure the row containing job listings has some space at the bottom */
#hiring-posts .row {
    margin-bottom: 20px;
}

/* Portfolio Button and Modal Styles */
.portfolio-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.portfolio-modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}

.portfolio-modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 30px;
    border: 1px solid #ddd;
    width: 90%;
    max-width: 600px; 
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.portfolio-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
}

.portfolio-close:hover,
.portfolio-close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

#portfolioForm .form-group {
    margin-bottom: 20px; 
}

#portfolioForm label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Custom styling for file input */
.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 15px; /* space between button and text */
}

.custom-file-upload input[type="file"] {
    display: none; /* Hide the default input */
}

.custom-file-upload label.btn {
    margin-bottom: 0; /* Override default btn margin */
}

#file-chosen {
    font-style: italic;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


#portfolioForm .btn-block {
    margin-top: 25px;
    padding: 12px;
    font-size: 16px;
}

.mandatory {
    color: red;
    font-weight: bold;
    margin-left: 3px;
}


.section {
    padding: 80px 0;
}

#talent-acquisition-intro {
    background-color: #f9f9f9;
    padding-top: 140px; /* Add space below the navbar */
}

#talent-acquisition-intro h1 span {
    color: #001e96;
}

/* Blue Banner Section */
#talent-banner {
    padding: 0;
}

.blue-banner {
    background-color: #001e96;
    color: #fff;
    padding: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blue-banner .text-content {
    flex-basis: 60%;
}

.blue-banner .text-content h2 {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 300;
}

.blue-banner .logo-content {
    flex-basis: 35%;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.blue-banner .logo-content img {
    max-width: 100%;
    height: auto;
}

/* Hiring Philosophy Section */
#hiring-philosophy {
    background-color: #f9f9f9;
}

.philosophy-title {
    border: 1px solid #ccc;
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    margin-bottom: 60px;
    font-size: 24px;
}

.philosophy-title strong {
    font-weight: 700;
    color: #001e96;
}

.philosophy-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.philosophy-item {
    text-align: center;
}

.philosophy-item .icon-container {
    font-size: 48px;
    color: #333;
    margin-bottom: 20px;
    height: 100px;
    width: 100px;
    line-height: 100px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.philosophy-item:hover .icon-container {
    background-color: #001e96;
    color: #fff;
    border-color: #001e96;
}

.philosophy-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #001e96;
}

/* Responsive Styles */
.services-heading{
    color:#fff;
    font-size:36px;
    font-weight:700;
    letter-spacing:0.5px;
    text-transform:uppercase;
    margin-bottom:40px;
    position:relative;
}
.services-heading::after{
    content:'';
    width:80px;
    height:4px;
    background:#fff;
    position:absolute;
    bottom:-15px;
    left:50%;
    transform:translateX(-50%);
    border-radius:2px;
}

.services-list{
    display:flex;
    flex-wrap:wrap;
    gap:25px;
    justify-content:center;
}
.service-item{
    flex:1 1 220px;
    background:#fff;
    color:#001e96;
    border-radius:10px;
    padding:25px 20px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:transform .2s ease;
}
.service-item:hover{transform:translateY(-5px);}
.service-item i{
    font-size:32px;
    margin-bottom:15px;
}
.service-item h4{
    font-size:18px;
    font-weight:600;
    margin-bottom:10px;
}
.service-item p{color:#555;font-size:14px;line-height:1.5;}

/* New Why Choose Us Section */
#why-choose-us {
    padding: 80px 0;
    background-color: #ffffff;
}

.why-choose-us-container {
    display: grid;
    grid-template-columns: 1fr 280px 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.center-circle {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    width: 230px;
    height: 230px;
    background-color: #001e96;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 30, 150, 0.2);
    justify-self: center;
    align-self: center;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.center-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 30, 150, 0.3);
}

.center-circle h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.feature-box {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.top-left {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: end;
    align-self: end;
}

.top-right {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    justify-self: start;
    align-self: end;
}

.bottom-left {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    justify-self: end;
    align-self: start;
}

.bottom-right {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    justify-self: start;
    align-self: start;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.feature-box p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .why-choose-us-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .center-circle {
        grid-column: auto;
        grid-row: auto;
        order: -1; /* Puts circle at the top */
        width: 200px;
        height: 200px;
    }
    .center-circle h2 {
        font-size: 22px;
    }
    .feature-box {
        width: 100%;
        max-width: 500px;
        text-align: center;
    }
}

@media (max-width: 767px) {
    #why-choose-us {
        padding: 60px 0;
    }
    .center-circle {
        width: 180px;
        height: 180px;
    }
    .center-circle h2 {
        font-size: 20px;
    }
    .feature-box {
        padding: 25px;
    }
    .feature-box h4 {
        font-size: 18px;
    }
}

@media (max-width: 991px) {
    .blue-banner {
        flex-direction: column;
        text-align: center;
    }

    .blue-banner .text-content {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .philosophy-grid {
        flex-wrap: wrap;
    }

    .philosophy-item {
        flex-basis: 45%;
        margin-bottom: 30px;
    }
    
    .blue-banner .text-content h2 {
        font-size: 20px;
    }

    .philosophy-title {
        font-size: 20px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .philosophy-item {
        flex-basis: 100%;
    }
}

/* Hiring Posts Section */
#hiring-posts {
    background:#ffffff;
    padding-top:80px;
}

#hiring-posts .heading span {
    color: #001e96;
}

.job-listing {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
    height: 100%;
}

.job-listing:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.job-listing h4 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
}

.job-listing p {
    color: #777;
}

.job-listing .btn {
    background-color: #001e96;
    color: #fff;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.job-listing .btn:hover {
    background-color: #00146e;
}

/* Portfolio Floating Button */
.portfolio-btn {
    position: fixed;
    right: 20px;
    bottom: 80px; /* Above footer */
    z-index: 1000;
    background-color: #001e96;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.portfolio-btn:hover {
    background-color: #00146e;
}

/* Portfolio Modal Styles */
.portfolio-modal-content h3{
    margin-top:0;
    margin-bottom:25px;
    font-weight:600;
    color:#001e96;
}

/* Form grid */
#portfolioForm{
    display:grid;
    grid-template-columns:1fr;
    gap:15px;
}
@media(min-width:576px){
    #portfolioForm{grid-template-columns:1fr 1fr;}
}
#portfolioForm .form-group{margin-bottom:0;}
#portfolioForm textarea,
#portfolioForm input[type="file"],
#portfolioForm button{
    grid-column:1/-1; /* full width on grid */
}
#portfolioForm .form-control{
    border-radius:6px;
    border:1px solid #ccc;
    padding:10px 12px;
    box-shadow:none;
    transition:border-color .2s ease,box-shadow .2s ease;
}
#portfolioForm .form-control:focus{
    border-color:#001e96;
    box-shadow:0 0 5px rgba(0,30,150,.3);
    outline:none;
}
#portfolioForm button{
    background:#001e96;
    border:none;
    padding:12px 30px;
    font-weight:600;
    border-radius:30px;
    transition:background .2s ease;
}
#portfolioForm button:hover{
    background:#00146e;
}
.portfolio-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.portfolio-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.portfolio-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.portfolio-close:hover,
.portfolio-close:focus {
    color: black;
}

/* Back to Home Button */
.back-to-home {
    margin-top: 30px;
    margin-bottom: 30px;
}

.back-to-home .btn-primary {
    background-color: #001e96;
    color: #fff;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.back-to-home .btn-primary:hover {
    background-color: #fff;
    color: #001e96;
    border-color: #001e96;
}

