/* ======================================
   TRAINING / INTERNSHIP RESPONSIVE LAYOUT
====================================== */

.training-wrapper {
    max-width: 1200px;
    margin: 80px auto 60px;
    padding: 0 20px;
    font-family: "Poppins", sans-serif;
}

/* Title */
.training-wrapper h1 {
    font-size: 38px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 45px;
    color: #1f2933;
}

/* Grid Layout */
.training-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
}

/* Image Box */
.image-box {
    background: #f8fafc;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-image {
    width: 100%;
    height: auto;        /* ✅ FIX */
     /* ✅ REMOVE LIMIT */
    object-fit: contain;
}

.image-box:hover .training-image {
    transform: scale(1.04);
}

/* Content Card */
.content-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 45px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    animation: fadeUp 0.6s ease;
}

.content-box p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 18px;
    color: #374151;
}

/* Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   TABLET RESPONSIVE
===================== */
@media (max-width: 992px) {

    .training-wrapper {
        margin-top: 60px;
    }

    .training-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .image-box {
        padding: 15px;
    }

    .training-image {
        max-height: 320px;
    }

    .training-wrapper h1 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .content-box {
        padding: 30px 30px;
    }

    .content-box p {
        font-size: 16.5px;
    }
}

/* =====================
   MOBILE RESPONSIVE
===================== */
@media (max-width: 576px) {

    .training-wrapper {
        margin-top: 40px;
        padding: 0 14px;
    }

    .training-wrapper h1 {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 22px;
    }

    .image-box {
        padding: 10px;
    }

    .training-image {
        width: 100%;
        height: auto;
        max-height: none;   /* ✅ THIS FIXES SMALL IMAGE */
    }
    .content-box {
        padding: 22px 20px;
        border-radius: 14px;
    }

    .content-box p {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* =====================
   ULTRA SMALL DEVICES
===================== */
@media (max-width: 360px) {

    .training-wrapper h1 {
        font-size: 22px;
    }

    .training-image {
        max-height: 200px;
    }

    .content-box p {
        font-size: 14px;
    }
}
