* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Jost", sans-serif;
}

body {
    overflow-x: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
}

/* Container */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Styles for Hero / Banner Section */

.hero-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url("../images/industry-banner.jpg");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-text {
    text-align: center;
    color: #ffffff;
    z-index: 2;
    position: relative;
    padding-top: 4rem;
}

.hero-text h3 {
    font-weight: 400;
    font-size: 40px;
    line-height: 70px;
}

.hero-text p {
    font-weight: 400;
    font-size: 16px;
    line-height: 28.34px;
    text-align: center;
}

@media screen and (max-width: 675px) {
    .hero-text h3 {
        font-weight: 400;
        font-size: 30px;
        line-height: 45px;
    }

    .hero-text p {
        font-weight: 400;
        font-size: 12px;
        line-height: 18.34px;
    }
}

/* Industry Cards / Grid Section */

.w-wrapper {
    width: 100%;
    margin: 5rem auto;
    text-align: center;
}

.t-head {
    line-height: 26.6px;
    font-weight: 700;
    font-size: 18px;
    color: #e42b29;
}

.b-head {
    font-size: 22px;
    line-height: 55px;
    font-weight: 700;
    color: #000;
}

.industry-grid {
    width: 100%;
    margin: 3rem auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.industry-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.industry-card img {
    width: 40px;
    height: auto;
    margin-bottom: 1rem;
}

.industry-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #000;
    font-weight: 700;
}

.industry-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.industry-desc,
.industry-desc * {
    font-family: "Jost", sans-serif !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    text-align: left !important;
}

.industry-desc p {
    margin: 0;
}

.industry-card a {
    margin-top: auto;
    align-self: flex-start;
    text-decoration: none;
    font-weight: 600;
    color: #000;
    border: 1px solid #000;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.industry-card a:hover {
    background-color: #000;
    color: white;
}

.industry-card span {
    top: 0.1rem;
    position: relative;
}

.industry-card p {
    font-size: 16px !important;
    color: #000;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left !important;
}

.cta-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.cta-button {
    background-color: #e42b29;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background-color: #000;
    color: white;
}

/* Description / Tab-like Section (Food / Industry details) */

.des-wrapper {
    display: flex;
    max-width: 90%;
    margin: 4rem auto;
    gap: 2rem;
    padding: 0 1rem;
    flex-wrap: wrap;
}

/* Left Side Buttons */
.des-selector {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.des-selector button {
    width: 12rem;
    padding: 1rem;
    font-size: 12px;
    margin-bottom: 0.5rem;
    border: none;
    background-color: #f2f2f2;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    border-left: 5px solid transparent;
}

.des-selector button:hover {
    background-color: #e9e9e9;
}

.des-selector button:active,
.des-selector button.active {
    background-color: #e42b29;
    color: white;
}

/* Right Content Layout */
.des-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-wrap: nowrap;
    align-items: flex-start;
}

/* Image Box */
.des-img {
    flex: 1 1 40%;
    min-width: 100%;
}

.des-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Detail Text */
.des-detail {
    flex: 1 1 55%;
}

.des-detail h2 {
    font-size: 33px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.des-detail p {
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
    margin-bottom: 1rem;
}

.des-detail h4 {
    margin-top: 1.5rem;
    font-weight: 600;
    color: #000;
}

.des-detail ul {
    margin: 1rem 0 2rem;
    padding-left: 1.2rem;
}

.des-detail li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: #000;
}

/* Responsive adjustments for industries page */

@media (max-width: 992px) {
    .des-wrapper {
        flex-direction: column;
    }

    .des-section {
        flex-direction: column;
        gap: 1.5rem;
    }

    .des-img,
    .des-detail {
        flex: 1 1 100%;
        min-width: auto;
    }

    .des-selector {
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 1rem;
    }

    .des-selector button {
        flex-shrink: 0;
        white-space: nowrap;
        border-left: none;
        border-bottom: 4px solid transparent;
        padding: 0.75rem 1rem;
    }

    .des-selector button.active {
        background-color: #e42b29;
        color: white;
        border-bottom: 4px solid #c41f1d;
    }
}

@media (max-width: 680px) {
    .des-section {
        padding: 0;
        gap: 1rem;
    }

    .des-img img {
        border-radius: 8px;
    }

    .des-detail h2 {
        font-size: 1.5rem;
    }

    .des-detail p,
    .des-detail li {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .b-head {
        font-size: 22px;
        line-height: 38px;
    }

    .t-head {
        font-size: 16px;
    }

    .industry-card h4 {
        font-size: 1rem;
    }

    .industry-card p {
        font-size: 16px;
    }

    .cta-button {
        padding: 0.5rem 2rem;
    }

    .industry-card a {
        font-size: 0.85rem;
    }

    .w-wrapper {
        margin: 2rem auto;
    }
}

@media (max-width: 455px) {
    .b-head {
        font-size: 16px;
        line-height: 26px;
    }

    .t-head {
        font-size: 13px;
    }

    .detail p {
        font-size: 12px;
    }
}

/* Very large screens – minor layout tweaks */

@media screen and (min-width: 1900px) and (max-width: 2800px) {
    .industry-grid {
        width: 100%;
    }
}

@media screen and (min-width: 1600px) and (max-width: 1900px) {
    .industry-grid {
        width: 100%;
    }
}
