/* --- Base Card --- */
.industry-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
    padding: 30px 25px;
    border-radius: 16px;
    flex-wrap: wrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* --- Reverse layout (image on right) --- */
.industry-card-reverse {
    flex-direction: row-reverse;
}

/* --- Image Container --- */
.industry-card .card-image-container {
    flex: 1 1 400px;
    min-width: 300px;
    overflow: hidden;
    border-radius: 16px;
}

.industry-card .card-image-container img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.industry-card .card-image-container img:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* --- Card Content --- */
.industry-card .card-content {
    flex: 1 1 400px;
    min-width: 300px;
}

.industry-card h3 {
    font-size: 30px;
    margin-bottom: 18px;
    color: #0a0f33;
    font-weight: 600;
}

.industry-card p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #2c3e50;
    line-height: 1.7;
}

/* --- Highlights List --- */
.industry-highlights {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.industry-highlights li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: #2c3e50;
}

.industry-highlights .highlights-icon {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    color: var(--color-topbar-blue);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.industry-highlights li:hover .highlights-icon {
    transform: scale(1.2);
}

/* --- Button --- */
.btn-get-in-touch {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-topbar-blue);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-get-in-touch:hover {
    background-color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* --- Responsive styles for tablets and mobile devices --- */
/* ... (Your existing CSS code) ... */

/* --- Responsive styles for tablets and mobile devices --- */
@media (max-width: 480px) 
{
    .industry-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
        margin: 10px 0;
    }

    .industry-card-reverse {
        flex-direction: column;
    }

    .industry-card .card-content {
        /*
         * This rule is what was causing the content to appear first.
         * The 'order' property specifies the order of a flexible item.
         * Items are laid out in ascending order.
         * We want the image to come first, so its order value should be lower.
         */
        order: 2;
        margin-top: 0px;
    }

    .industry-card .card-image-container {
        /*
         * By setting the image container's order to 1, it will be displayed
         * before the content block, which has an order of 2.
         * The default order for all flex items is 0.
        */
        order: 1;
        flex: 1 1 300px;
        min-width: 300px;
        overflow: hidden;
        border-radius: 16px;

    }

    /* ... (Rest of your existing mobile styles) ... */

    .industry-card h3 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .industry-card p {
        font-size: 15px;
        margin-bottom: 18px;
        text-align: justify;
    }

    .industry-highlights {
        text-align: left;
    }

    .industry-highlights li {
        justify-content: flex-start;
        font-size: 14px;
    }

    .industry-highlights .highlights-icon {
        margin-right: 10px;
    }

    .cta-section {
        position: relative;
        width: 100%;
        padding: 0;
        /* background: var(--color-light-gray-f8f8f8); */
        overflow: hidden;
        text-align: center;
        font-family: 'Nunito', sans-serif;
        color: var(--color-text-dark);
    }
    .industries-page .container {
    max-width: 90%;
    display: contents;
    margin: 0 auto;
    }
}

/* Tablet Styles (portrait + landscape tablets) */
@media (min-width: 480px) and (max-width: 767px) {

    .industry-card {
        flex-direction: row;
        align-items: center;
        padding: 30px 20px;
        margin: 15px 0;
        text-align: left;
        gap: 20px;
    }

    .industry-card-reverse {
        flex-direction: row-reverse;
    }

    .industry-card .card-content {
        order: 2;
        flex: 1;
        margin-top: 0;
    }

    .industry-card .card-image-container {
        order: 1;
        flex: 1 1 100%;
        max-width: 100%;
        border-radius: 16px;
        overflow: hidden;
    }

    .industry-card h3 {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .industry-card p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .industry-highlights li {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .industries-page .container {
        max-width: 95%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .cta-section {
        padding: 20px;
        text-align: center;
    }
}

