/* Training Detail Styles - Desktop Preserving */

/* Hero Slider */
.td-hero-slider {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.9), rgba(0, 136, 204, 0.9));
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.3);
}

.td-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 119, 181, 0.1), rgba(0, 136, 204, 0.1));
    z-index: 1;
}

.td-hero-cap {
    position: relative;
    z-index: 2;
}

.td-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #FFFFFF;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #FFFFFF, #E1E8ED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

/* Top Bar */
.td-top-bar {
    background: linear-gradient(135deg, var(--success-color), #059669);
    height: 60px;
    box-shadow: var(--shadow-medium);
}

.td-marquee-text {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Job Cards */
.td-job-card-desktop {
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.td-job-card-mobile {
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.td-job-items {
    padding: 25px;
}

.td-job-items-mobile {
    padding: 0px;
}

.td-job-header-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
}

.td-company-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 2px solid var(--accent-color);
}

.td-company-img-mobile {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 2px solid var(--accent-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-company-img-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.td-job-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.td-job-title {
    margin-left: 10px;
}

.td-job-title-mobile {
    margin-left: 10px;
    flex: 1;
}

.td-job-title-h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
    line-height: 1.3;
    width: 600px;
}

.td-job-title-h4-mobile {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
    width: auto;
}

.td-job-subtitle {
    font-size: 16px;
    color: var(--light-text-color);
    font-weight: 500;
    width: 600px;
}

.td-job-subtitle-mobile {
    font-size: 14px;
    color: var(--light-text-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.td-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.td-info-grid-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.td-info-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: linear-gradient(145deg, #F8F9FA, #FFFFFF);
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.td-info-item-location {
    border-left-color: var(--primary-color);
}

.td-info-item .fas {
    color: var(--success-color);
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.td-info-item .fas.fa-map-marker-alt {
    color: var(--primary-color);
}

.td-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.td-info-label {
    font-size: 12px;
    color: var(--light-text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.td-info-value {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
    word-wrap: break-word;
    line-height: 1.3;
}

.td-info-item-mobile {
    display: flex;
    align-items: center;
    padding: 6px;
    background: linear-gradient(145deg, #F8F9FA, #FFFFFF);
    border-radius: 8px;
}

.td-info-item-mobile .fas {
    font-size: 14px;
    color: var(--success-color);
    margin-right: 10px;
    flex-shrink: 0;
}

.td-info-item-mobile .fas.fa-map-marker-alt {
    color: var(--primary-color);
}

.td-info-label {
    font-size: 12px;
    color: var(--light-text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.td-info-label-mobile {
    font-size: 12px;
    color: var(--light-text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.td-info-value {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
    width: 300px;
}

.td-info-value-mobile {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 600;
}

/* Section Titles */
.td-section-title-container {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.td-section-title-container-success {
    border-bottom-color: var(--success-color);
}

.td-section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.td-section-bar {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 2px;
}

.td-section-bar-success {
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
}

/* Content Boxes */
.td-content-box {
    background: linear-gradient(145deg, #FFFFFF, #F8F9FA);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-color);
}

.td-content-box-success {
    border-left-color: var(--success-color);
}

.td-content-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

/* Job Overview */
.td-job-overview {
    border-radius: 10px;
}

.td-job-overview-title {
    font-weight: 900;
    color: #0ca3a3;
    font-size: 24px;
}

.td-list-bold {
    font-weight: bold;
}

/* Job Overview List Styles */
.td-job-overview-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.td-overview-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.td-overview-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.td-label-fixed {
    font-weight: 600;
    color: var(--text-color);
    min-width: 120px;
    flex-shrink: 0;
    margin-right: 15px;
}

.td-value-dynamic {
    color: var(--text-color);
    flex: 1;
    word-wrap: break-word;
    max-width: calc(100% - 135px);
}

/* Fees Section */
.td-fees-title {
    font-weight: 900;
    font-size: 26px;
}

/* Modal */
.td-modal-close-btn {
    font-size: 1.5rem;
    padding: 15px;
}

/* Login Button Container */
.td-login-btn-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-self: center;
  
}

/* Center apply buttons on web and mobile */
.apply-btn2 {
    justify-content: center !important;
}

.apply-btn2 .d-flex {
    justify-content: center;
}

/* Mobile Responsive Rules */
@media (max-width: 767.98px) {
    .td-hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .td-top-bar {
        height: auto;
        padding: 10px;
    }

    .td-marquee-text {
        font-size: 18px;
    }

    .td-job-items {
        padding: 15px;
    }

    .td-company-img {
        width: 60px;
        height: 60px;
        border-radius: 8px;
    }

    .td-job-title-h4 {
        font-size: 18px;
        width: auto;
        margin-bottom: 10px;
    }

    .td-job-subtitle {
        font-size: 14px;
        width: auto;
    }

    .td-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .td-info-item {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }

    .td-info-item .fas {
        margin-bottom: 5px;
        margin-right: 0;
    }

    .td-info-value {
        width: auto;
    }

    .td-section-title {
        font-size: 24px;
    }

    .td-content-box {
        padding: 15px;
    }

    .td-content-text {
        font-size: 14px;
        line-height: 1.5;
    }

    .td-job-overview-title {
        font-size: 18px;
    }

    .td-fees-title {
        font-size: 20px;
    }

    .td-login-btn-container {
        margin-left: 0;
        justify-content: center;
    }

    /* Ensure images are responsive */
    .td-job-img,
    .slot-adds-img,
    .share-popup-image {
        max-width: 100%;
        height: auto;
    }

    /* Stack columns */
    .row {
        flex-direction: row;
    }

    .col-xl-7,
    .col-lg-8,
    .col-xl-4,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Adjust spacing */
    .td-section-title-container {
        margin-bottom: 15px;
    }

    .td-content-box {
        margin-bottom: 15px;
    }

    /* Button adjustments */
    .phone-button,
    .whatsapp-button {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Job Overview responsive */
    .td-label-fixed {
        min-width: 100px;
        font-size: 14px;
    }

    .td-value-dynamic {
        max-width: calc(100% - 115px);
        font-size: 14px;
    }

    .td-overview-item {
        margin-bottom: 10px;
        padding: 6px 0;
    }

    /* Hide non-essential elements if needed */
    .d-none.d-lg-block {
        display: none !important;
    }

    /* Mobile adds arrangement */
    .td-adds-container {
        margin-bottom: 20px;
    }

    .td-adds-col {
        padding: 5px;
    }

    .slot-adds-item {
        height: 120px !important;
        margin-bottom: 10px;
    }

    .slot-adds-img {
        height: 120px !important;
        border-radius: 8px !important;
        object-fit: fill;
    }

    /* Ensure no horizontal scroll */
    body,
    html {
        overflow-x: hidden;
    }

    .container,
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Tablet breakpoint if needed */
@media (min-width: 768px) and (max-width: 991.98px) {
    .td-hero-title {
        font-size: 3rem;
    }

    .td-info-grid {
        gap: 15px;
    }

    .td-section-title {
        font-size: 26px;
    }
}