.topbar-brand img{
    max-width: 170px;
}

.header{
    padding: 200px 100px;
    background-position: center;
    background-size: cover;
    height: 650px;
}
.offer-header{
    padding: 200px 100px;
    background-position: center;
    background-size: cover;
    height: 300px;

}
.card{
    border-radius: 4px ;
}

.job-opening-card:hover .card {
    background: var(--main-color);
    border-color: var(--main-color);
}


.job-opening-card:hover .card h5, .job-opening-card:hover .card .text-info {
    color: #fff !important;
}

.job-opening-card .card .text-info {
    color: var(--main-color) !important;
}

.job-filters .btn-outline.btn-info.active, .job-filters .btn-outline.btn-info:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #ffffff;
}

.job-filters .btn-outline.btn-info{
    color: var(--main-color);
    border-color: var(--main-color);
}

.topbar-right .btn-primary{
    background: var(--main-color);
    border-color: var(--main-color);
}

.theme-color{
    color: var(--main-color) !important;
}

.theme-background{
    background: var(--main-color) !important;
}

.btn.theme-background, .btn.theme-background:hover{
    background: var(--main-color) !important;
    border-color: var(--main-color) !important;
}

/* .sidebar{
    padding: 0 20px;
} */

.select-file{
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #c9d7df;
    cursor: pointer;
}

.has-error .help-block,
.has-error .control-label,
.has-error .radio,
.has-error .checkbox,
.has-error .radio-inline,
.has-error .checkbox-inline,
.has-error.radio label,
.has-error.checkbox label,
.has-error.radio-inline label,
.has-error.checkbox-inline label {
    color: #ee1127;
}

.company-title{
    margin-bottom: 0.5rem;
}

a.applyWithLinkedin {
    display: block;
    text-align: center;
}

.select2-container--default .selection .select2-selection.select2-selection--single {
    border: none;
}

.select2-container--default .selection .select2-selection.select2-selection--single .select2-selection__rendered {
    color: inherit;
}

.select2-container--default .selection .select2-selection.select2-selection--single .select2-selection__arrow {
    height: auto;
    top: 50%;
}

/** New css **/

@font-face {
    font-family: Roboto;
    src: url(../fonts/Roboto-Regular.ttf) format("OTF");
    /* font-weight: 400; */
    font-style: normal;
}
.rounded-pill {
    border-radius: 50rem!important;
}

.border-none{
    border:0px;    
}

.height-50{
    height: 50px;
}

.height-48{
    height: 48px;
}

.position-relative{
    position: relative;
}

.bg-img-shape{
    /* background-image: url('../img/banner-shape.svg'); */
    overflow: hidden;
    /* height: 600px; */
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #f4f7f6;
}

.main-content{
    background-color: #f4f7f6;
    min-height: auto !important; /* Remove min-height that causes footer gaps */
}

.card-location span, .site-footer a, .site-footer p{
    color: #000000;
}
.job-opening-card:hover .card h5, .job-opening-card:hover .card small, .job-opening-card:hover .card .text-info, .job-opening-card:hover .card span {
    color: #fff !important;
}
.search-btn .btn {
    width: 97.5%;
}

.site-footer a:hover{
    color: #494949;
}

.location-search .dropdown .btn{
    color: #000000;
}

.location{
    width: 25%;
}

.space{
    width: 1%;
}

.designation{
    width: 49%;
}

.text-color{
    color: #3d3d3d;
}

.space:before{
    border-left: 1px solid #dcdada;
    position: absolute;
    top: 11px;
    height: 35px;
    content: '';
    left: 5px;
}

.job-detail-header .header{
    height: 370px;
}

.bb-1{
    border-bottom: 1px solid #f4f7f6;
}

u{
    text-underline-position: under;
}

.select2-container--default .selection .select2-selection.select2-selection--single{
    background-color: transparent;
}

.select2-container--default .selection .select2-selection.select2-selection--single .select2-selection__rendered{
    line-height: 34px !important;
    text-align: left !important;
    padding: 0px 20px !important;
    font-weight: 400 !important;
    color: #000 !important;
}

.select2.select2-container.select2-container--default{
    width: 100% !important;
}

.select2-dropdown.select2-dropdown--below{
    border-radius: 4px;
    margin-top: 20px;
    outline: none !important;
}

.select2-search--dropdown .select2-search__field{
    outline: none !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #000000 !important;
    color: white;
}

.fixed{
    position: sticky;
    top: 1px;
}

@media (max-width:767px) {
    .select2-dropdown.select2-dropdown--below{
        margin-top: 0px !important;
    }
    .topbar-brand img {
        max-width: 145px !important;
    }
    .header{
        height: 460px;
    }
    .header .mb-30 {
        margin-bottom: 15px !important;
    }
    .header .mb-40 {
        margin-bottom: 25px !important;
    }
    .location-search{
        display: block !important;
        border-radius: 4px !important;
    }
    .location, .designation, .location-search .search-btn{
        width: 100% !important;
        border-bottom: 1px solid #f4f7f6;
        border-radius: 0px !important;
    }
    .search-btn{
        padding: 12px;
    }
    .search-btn .btn{
        margin-right: auto !important;
        width: 100%;
    }

    /* Mobile spacing fixes */
    .section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .py-60 {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    .section-header {
        margin-bottom: 20px;
    }

    /* Remove excessive gaps */
    .gap-y {
        margin-left: -10px;
        margin-right: -10px;
    }

    .gap-y > [class*='col-'] {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 15px;
    }

    /* Footer fixes */
    .site-footer {
        padding: 20px 0 !important;
        font-size: 0.875rem;
        margin-top: 30px !important;
    }

    /* Job cards mobile */
    .portfolio-2 {
        margin-bottom: 20px;
    }

    .card-block {
        padding: 20px !important;
    }

    .card-title {
        font-size: 1.1rem !important;
    }

    .card-location {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .card-location span {
        margin-bottom: 8px;
    }

    /* Touch-friendly buttons */
    .btn,
    a.btn,
    button {
        min-height: 44px;
        padding: 12px 20px;
    }

    select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Tablet responsive (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .portfolio-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .section {
        padding-top: 45px !important;
        padding-bottom: 45px !important;
    }
}

/* Desktop enhancements (992px+) */
@media (min-width: 992px) {
    .portfolio-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Global fixes for all screen sizes */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-footer {
    margin-top: auto; /* Push footer to bottom */
}

/* Prevent content from adding unwanted height */
.main-content > section:last-child,
.main-content > .section:last-child {
    padding-bottom: 40px !important;
}

/* Job card hover effects */
.job-opening-card {
    display: block;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-opening-card:hover {
    transform: translateY(-5px);
}

.card-bordered {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Job Detail Page Mobile Optimization */
@media (max-width: 767px) {
    .job-detail-header .header {
        height: 300px !important;
        padding: 100px 20px !important;
    }

    .sidebar {
        margin-top: 20px !important;
    }

    .sidebar .p-30 {
        padding: 20px !important;
    }

    .sidebar-item-title {
        font-size: 15px !important;
    }

    /* Stack sidebar below main content on mobile */
    .col-lg-3, .col-md-5 {
        order: 2;
    }

    .col-lg-9, .col-md-7 {
        order: 1;
    }
}

/* Job Application Form Mobile Optimization */
@media (max-width: 767px) {
    .form-control,
    .custom-file-label {
        font-size: 16px !important; /* Prevent iOS zoom */
    }

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

    /* File upload button */
    .select-file {
        padding: 12px !important;
        font-size: 14px;
    }

    /* Application form layout */
    .application-form .col-md-6 {
        margin-bottom: 15px;
    }
}