/**
 * Industries/Materials Grid Styles
 * Generated from Figma: ind-mat-grid-parsed.json
 * Toggle section switching between Industries and Materials grids
 */

/* Section */
.ind-mat-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 96px 50px;
    gap: 64px;
    background: linear-gradient(89.81deg, #093C71 62.95%, #072C52 100%);
    margin-top: 0 !important;
}

/* Container */
.ind-mat-grid__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    max-width: 1248px;
    width: 100%;
}

/* Toggle Buttons Container */
.ind-mat-grid__toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

/* Toggle Button */
.ind-mat-grid__toggle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 170px;
    height: 56px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid #FFFFFF;
    background: transparent;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.ind-mat-grid__toggle-btn:hover,
.ind-mat-grid__toggle-btn.active {
    border: none;
    background: #FFFFFF;
    color: #093C71;
}

/* Content Container */
.ind-mat-grid__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 1248px;
    width: 100%;
}

/* Panel */
.ind-mat-grid__panel {
    display: none;
    width: 100%;
}

.ind-mat-grid__panel.active {
    display: block;
}

/* Header */
.ind-mat-grid__header {
    text-align: center;
    margin-bottom: 32px;
}

/* Title */
.ind-mat-grid__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 60px;
    line-height: 60px;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 16px 0;
}

/* Description */
.ind-mat-grid__desc,
.ind-mat-grid__desc p {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    line-height: 28px !important;
    color: #FFFFFF !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Grid */
.ind-mat-grid__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* Grid Card */
.ind-mat-grid__card {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding: 16px;
    height: 281px;
    border-radius: 10px;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.ind-mat-grid__card:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.3), 0px 4px 6px -4px rgba(0, 0, 0, 0.3) !important;
    text-decoration: none !important;
}

/* Card Overlay */
.ind-mat-grid__card-overlay {
    background: linear-gradient(0deg, rgba(9, 60, 113, 0.9) 0%, rgba(9, 60, 113, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    transition: all 0.3s ease;
}

.ind-mat-grid__card:hover .ind-mat-grid__card-overlay {
    background: linear-gradient(0deg, rgba(9, 60, 113, 0.95) 0%, rgba(9, 60, 113, 0.6) 50%, rgba(0, 0, 0, 0.1) 100%);
}

/* Card Title */
.ind-mat-grid__card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 38px;
    color: #FFFFFF;
    position: relative;
    z-index: 2;
    text-transform: capitalize;
}

/* Card Content */
.ind-mat-grid__card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Features List — hidden by default */
.ind-mat-grid__features {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Show features on hover */
.ind-mat-grid__card:hover .ind-mat-grid__features {
    max-height: 200px;
    opacity: 1;
}

/* Hover state — scale up, yellow border */
.ind-mat-grid__card--material,
.ind-mat-grid__card:not(.ind-mat-grid__card--material) {
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    border: none;
    z-index: 1;
}

.ind-mat-grid__card:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.3), 0px 4px 6px -4px rgba(0, 0, 0, 0.3) !important;
}

.ind-mat-grid__features li {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    color: #FFFFFF;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.ind-mat-grid__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #FFF200;
    border-radius: 50%;
}

/* Hidden materials (beyond 9) */
.ind-mat-grid__card--hidden {
    display: none !important;
}

/* Load More Button */
.ind-mat-grid__load-more {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 56px;
    background: #FFFFFF;
    border: 2px solid #093C71;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    color: #093C71;
    cursor: pointer;
    margin: 32px auto 0;
    transition: all 0.3s ease;
}

.ind-mat-grid__load-more:hover {
    background: #093C71;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

/* Responsive - Tablet */
@media (max-width: 1023.98px) {
    .ind-mat-grid__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ind-mat-grid__title {
        font-size: 48px;
        line-height: 48px;
    }

    /* No hover scale on tablet */
    .ind-mat-grid__card:hover,
    .ind-mat-grid__card--material:hover {
        transform: none;
        z-index: 1;
    }

    /* Show material features always on tablet */
    .ind-mat-grid__features {
        max-height: 200px !important;
        opacity: 1 !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 767.98px) {
    .ind-mat-grid {
        padding: 29px 21px 50px;
        gap: 50px;
        background: linear-gradient(87.26deg, #093C71 81.18%, #072C52 100%);
    }

    .ind-mat-grid__container {
        gap: 50px;
    }

    /* Toggle buttons */
    .ind-mat-grid__toggle {
        gap: 16px;
        width: 100%;
    }

    .ind-mat-grid__toggle-btn {
        width: 172px;
        height: 56px;
        font-size: 16px;
        flex: 1;
    }

    /* Header */
    .ind-mat-grid__header {
        text-align: left;
    }

    .ind-mat-grid__title {
        font-size: 40px;
        line-height: 60px;
        font-weight: 600;
        text-align: left;
    }

    .ind-mat-grid__desc,
    .ind-mat-grid__desc p {
        font-size: 18px !important;
        line-height: 28px !important;
        text-align: left !important;
    }

    /* Grid → horizontal swiper */
    .ind-mat-grid__grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        scrollbar-width: none;
        grid-template-columns: none;
        max-width: 100%;
    }

    .ind-mat-grid__grid::-webkit-scrollbar {
        display: none;
    }

    /* Cards — fixed width, snap */
    .ind-mat-grid__card {
        flex: 0 0 85%;
        max-width: 85%;
        height: 254px;
        scroll-snap-align: center;
        border-radius: 10px;
    }

    /* No hover scale on mobile */
    .ind-mat-grid__card:hover,
    .ind-mat-grid__card--material:hover {
        transform: none;
        z-index: 1;
    }

    .ind-mat-grid__card-title {
        font-size: 24px;
        line-height: 28px;
    }

    /* Show material features always on mobile */
    .ind-mat-grid__features {
        max-height: 200px !important;
        opacity: 1 !important;
    }

    .ind-mat-grid__features li {
        font-size: 10px;
        line-height: 12px;
        padding: 2px 0 2px 12px;
    }

    .ind-mat-grid__features li::before {
        width: 4px;
        height: 4px;
    }

    /* Show all cards on mobile (no hidden) */
    .ind-mat-grid__card--hidden {
        display: flex !important;
    }

    /* Hide Load More button on mobile */
    .ind-mat-grid__load-more {
        display: none !important;
    }
}
