/* Industries We Work With — 2×3 image cards (custom-post-default shortcode) */

.industry-card-main {
    position: relative;
    padding: 5rem 0 5.5rem;
    background: #050a12;
    color: #fff;
    overflow: hidden;
}

.industry-card-main .industry-container {
    max-width: 100%;
    margin: 0 auto;
}

.industry-card-main .industry-container > .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.industry-card-main .industry-container > .container > div:first-child {
    text-align: center;
    margin-bottom: 11rem;
}

.industry-heading {
    font-family: "Inter", Aeonik, "Segoe UI", sans-serif;
    font-size: clamp(1.75rem, 4vw, 5.5rem);
    font-weight: 600;
    color: #fff;
    margin: 0 0 4rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.industry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-family: "Inter", Aeonik, "Segoe UI", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: #5a7aad;
    border: none;
    transition: background 0.25s ease, transform 0.2s ease;
}

.industry-btn:hover {
    background: #6a8ac0;
    color: #fff;
    transform: translateY(-1px);
}

/* Shortcode target — allow transparent wrapper */
.industry-card-main .bottom-row.custom-shortcode {
    width: 100%;
    min-height: 2rem;
}

/* Grid — uses same flip-card pattern as services-cards.css */
.industries-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 1200px) {
    .industries-cards-grid {
        gap: 1.5rem;
    }
}

/* Fill grid: override global .flip-card fixed width/height from services-cards.css */
.industry-card-main .industries-cards-grid .flip-card.industry-flip-card {
    width: 100%;
    max-width: none;
    /* aspect-ratio: 4 / 5; */
    height: 400px;
    width: 400px;
    min-height: 0;
    margin: 0;
}

.industry-card-main .industries-cards-grid .flip-card .flip-card-inner {
    min-height: 0;
    height: 100%;
}

/* Front title sizing in dark industries section (inherits flip animation from services-cards.css) */
.industry-card-main .flip-card-front {
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.35s ease;
}

.industry-card-main .flip-card:hover .flip-card-front {
    box-shadow: 0 20px 44px -10px rgba(0, 0, 0, 0.6);
}

.industry-card-main .flip-card-back .flip-card-btn {
    flex-shrink: 0;
    align-self: flex-start;
}

.industries-cards-empty,
.industries-cards-error {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    padding: 2rem 1rem;
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .industry-card-main .industries-cards-grid .flip-card.industry-flip-card {
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 900px) {
    .industries-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .industry-card-main {
        padding: 3.5rem 0 4rem;
    }

    .industries-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .industry-card-main .industries-cards-grid .flip-card.industry-flip-card {
        aspect-ratio: 3 / 4;
    }
}
