﻿
:root {
    --primary: #16989A;
    --secondary: #e74c3c;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --accent: #086d6e;
}

/* Isolated Solutions Section with Header */
.intro-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.intro-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0px 0px 40px 0px;
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.intro-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.intro-card h3 {
    margin-bottom: 15px;
    color: #16989A;
    font-size: 1.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.intro-card h6 {
    font-size: 1.2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #707070;
}

.solutions-section-title {
    text-align: center;
    margin-bottom: 30px;
}

    .solutions-section-title h2 {
        font-size: 2.2rem;
        color: #086d6e;
        display: inline-block;
        padding-bottom: 10px;
        background: #086d6e;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

        .solutions-section-title h2::after {
            content: '';
            display: block;
            width: 100px;
            height: 4px;
            background: #086d6e;
            margin: 10px auto 0;
            border-radius: 2px;
        }

.solutions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.solution-card-header {
    background: linear-gradient(135deg, #16989A, #2c3e50);
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .solution-card-header i {
        font-size: 1.8rem;
        margin-right: 15px;
    }

    .solution-card-header h3 {
        font-size: 1.5rem;
        margin: 0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

.solution-card-body {
    padding: 10px;
}

    .solution-card-body ul {
        list-style-type: none;
        padding: 0;
    }

    .solution-card-body li {
        padding: 5px 0;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: flex-start;
        font-size: 1.2rem;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

        .solution-card-body li:last-child {
            border-bottom: none;
        }

        .solution-card-body li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: black;
            margin-right: 10px;
            margin-top: 3px;
        }

.section-title h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: 0;
    border-radius: 2px;
}

.section-title h2 {
    display: inline-block;
    font-size: 2.2rem;
    color: var(--dark);
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px;
}

.solution-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    width: 480px;
    height: 270px;
}

    .solution-card:hover {
        transform: scale(1.03);
    }

.card-header {
    background: linear-gradient(135deg, #16989A, var(--dark));
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

    .card-header i {
        font-size: 2rem;
        margin-right: 15px;
    }


.card-body {
    padding: 25px;
    padding-top: 0px;
}

    .card-body ul {
        list-style-type: none;
    }

    .card-body li {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        font: 1.2rem;
    }

        .card-body li:last-child {
            border-bottom: none;
        }

        .card-body li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: var(--primary);
            margin-right: 10px;
        }
.benefits-section {
    background: linear-gradient(135deg, var(--dark), #1a252f);
    color: white;
    padding: 20px 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

    .benefits-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/assets/images/IMAGES/GrainSpicesCondiments/1bgimg.jpg') center/cover;
        opacity: 0.1;
        z-index: 0;
    }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1; /* Ensure content is above pseudo-element */
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
    width: 100%;
}

    .benefit-card:hover {
        transform: translateY(-10px);
        background: rgba(255,255,255,0.2);
    }

    .benefit-card i {
        font-size: 2rem;
        color: #16a085;
        margin-bottom: 15px;
    }

    .benefit-card h3 {
        margin-bottom: 10px;
        font-size: 1.5rem;
    }

    .benefit-card p {
        font-size: 1.2rem;
    }

p {
    color: white;
    font-size: 15px;
    line-height: 21px;
}

/* Hero section with animated gradient */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align content to the right */
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(to left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.9)), /* Transparent (left) → Black (right) */
        url(/assets/images/IMAGES/GrainSpicesCondiments/1bgimg.jpg);
        background-size: cover;
        background-position: center;
        background-blend-mode: multiply; /* Darkens the image under the gradient */
        filter: brightness(50%);
    }

.hero-content {
    width: 100%;
    z-index: 2;
    position: relative; /* Required for pseudo-elements */
    display: inline-block; /* Ensures the lines wrap the text properly */
    padding: 10px 60px;
}

    .hero-content::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 3px; /* Thickness of the line */
        height: 100%; /* Length of the vertical part */
        background: white;
    }

.hero h1 {
    font-size: 3rem;
    font-weight: bolder;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease forwards 0.3s;
    color: white;
    position: relative; /* Required for pseudo-elements */
    display: inline-block; /* Ensures the lines wrap the text properly */
    padding: 10px 20px; /* Adds space around the text for the lines */
    max-width: 526px;
}

    /* Top-left corner line */
    .hero h1::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 20px; /* Length of the horizontal part */
        height: 3px; /* Thickness of the line */
        background: white;
    }

    /* Top-left vertical line */
    .hero h1::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 3px; /* Thickness of the line */
        height: 20px; /* Length of the vertical part */
        background: white;
    }

    /* Bottom-right corner line (requires an additional wrapper or another pseudo-element) */
    .hero h1 span::before {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 20px;
        height: 3px;
        background: white;
    }

    .hero h1 span::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        width: 3px;
        height: 20px;
        background: white;
    }

    .hero h1 span {
        color: #009999;
    }

.hero p {
    font-size: 20px;
    color: white;
    font-weight: bolder;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.6s;
    text-align: justify;
    max-width: 526px;
    font-family: 'Segoe UI';
    line-height: 1.2;
}

/* Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        justify-content: center;
        text-align: center;
        height: 90vh !important;
    }

    .hero-content {
        max-width: 90%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    .row {
        flex-direction: column;
    }


}

/* Fix for header visibility */
header {
    position: relative;
    z-index: 1000; /* Ensure header stays above everything */
}

.main-slogan {
    text-align: center;
    font-size: 2.8rem;
    letter-spacing: 3px;
    line-height: 1.3;
    animation: glow 2s infinite alternate;
    transition: transform 0.3s ease;
    padding-bottom: 40px;
    margin-top: 100px; /* Adjusted from -90px to prevent overlap */
}

    .main-slogan:hover {
        transform: scale(1.03);
    }

@keyframes glow {
    0% {
        text-shadow: 0 0 10px black, 0 0 10px black, 0 0 15px black;
    }

    100% {
        text-shadow: 0 0 20px black, 0 0 30px black; /* Added black for consistency */
    }
}

/* Normal desktop view for Packing Solutions */
.packing-solutions-section {
    margin-bottom: 60px;
    padding: 0 20px; /* Add some default horizontal padding */
}

.packing-solutions-wrapper {
    display: flex;
    justify-content: center; /* Center the whole wrapper */
    align-items: flex-start; /* Align items to the top if they have different heights */
    gap: 20px; /* Space between image and cards */
}

.packing-solutions-image-col {
    flex-shrink: 0; /* Prevent shrinking */
}

.packing-solutions-cards-col {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between thin-boxes */
    flex-grow: 1; /* Allow cards column to grow */
    max-width: 518px; /* Max width for consistency with thin-box width */
}

.thin-box {
    width: 518px; /* Fixed width for desktop */
    height: 250px;
    border: 5px solid #16989A;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .thin-box p {
        font-size: 1.2rem;
    }

.brimg {
    border: 10px solid #16989A;
    box-sizing: border-box;
    height: 870px; /* Fixed height for desktop */
    filter: brightness(70%);
}

.section1 {
    display: flex;
    min-background-color: #04467a;
    overflow: hidden;
}

.column {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.image-container {
    height: 100%;
    width: 100%;
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0% 100%);
}

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.text-column {
    background-color: #16989A;
    color: white;
    padding: 60px 200px;
    display: flex;
    flex-direction: column; /* Changed to column for better stacking */
    align-items: center;
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0% 100%);
    justify-content: center;
    text-align: center; /* Center text within the column */
}

.text-column1 {
    background: url('/assets/images/IMAGES/GrainSpicesCondiments/image.jpg') center/cover no-repeat;
    color: white;
    padding: 60px 203px;
    display: flex;
    align-items: center;
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0% 100%);
    filter: brightness(70%);
    margin-left: -170px;
}

.text-column h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.text-column p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.material h3 {
    color: white;
    font-weight: bolder;
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 15px; /* Added some top margin */
}

/* Adjust the solution-card-body within material for better spacing */
.material .solution-card-body {
    padding: 0 20px 20px; /* Adjust padding */
}

    .material .solution-card-body ul {
        text-align: left; /* Align list items to the left */
    }

/* Responsive Media Queries */
@media (min-width: 1023px) {



    .benefits-grid {
        grid-template-columns: repeat(3, minmax(250px, 1fr));
    }
}

@media (max-width: 1200px) {


    .main-slogan {
        font-size: 2.5rem;
        margin-top: 80px;
    }

    .text-column {
        padding: 60px 100px;
    }

    .text-column1 {
        padding: 60px 103px;
        margin-left: -100px;
    }

    .thin-box {
        width: 450px; /* Adjusted for consistency */
    }

    .brimg {
        height: 700px; /* Adjusted for consistency */
    }
}

@media (max-width: 992px) {


    .main-slogan {
        font-size: 2.2rem;
        margin-top: 60px;
    }



    .text-column {
        padding: 40px 60px;
    }

    .text-column1 {
        padding: 40px 63px;
        margin-left: -60px;
    }

    .thin-box {
        width: 400px;
    }

    .brimg {
        height: 600px; /* Adjusted for consistency */
    }
}

@media (max-width: 768px) {


    .main-slogan {
        font-size: 1.8rem;
        margin-top: 40px;
        padding-bottom: 30px;
    }



    .section1 {
        flex-direction: column;
    }

    .image-container,
    .text-column,
    .text-column1 {
        clip-path: none;
        margin-left: 0;
    }

    .text-column {
        padding: 40px 20px;
    }

    .text-column1 {
        padding: 160px 20px;
        margin-left: 0;
        height: 300px;
    }
    /* Packing Solutions Section Mobile Adjustments */
    .packing-solutions-wrapper {
        flex-direction: column; /* Stack image and cards vertically */
        align-items: center; /* Center horizontally when stacked */
        gap: 30px; /* Space between stacked elements */
    }

    .packing-solutions-image-col {
        display: none; /* Hide the image on mobile */
    }

    .packing-solutions-cards-col {
        width: 100%; /* Make cards column take full width */
        max-width: none; /* Remove max-width restriction */
        padding: 0 20px; /* Add internal padding for cards */
        gap: 20px; /* Adjust gap between cards */
    }

    .thin-box {
        width: 100%; /* Make thin-boxes take full width */
        height: auto; /* Auto height for content */
        margin-bottom: 0; /* Remove individual margin-bottom as gap handles it */
    }
    /* General mobile adjustments for other sections */
    .solutions-section-title h2 {
        font-size: 1.8rem;
    }

    .benefit-card h3 {
        font-size: 1.5rem;
    }

    .benefit-card p {
        font-size: 1.2rem;
    }

    .benefit-card i {
        font-size: 1.8rem;
    }

    .solutions-container {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .solution-card-header h3 {
        font-size: 1.3rem;
    }

    .card-body li {
        font-size: 1rem;
    }

    .material h3 {
        font-size: 1.3rem;
    }

    .solution-card-body li {
        font-size: 1rem;
        padding: 8px 0;
    }
}

@media (max-width: 576px) {

    .packing-solutions-cards-col {
        max-width: 400px; /* Max width for consistency with thin-box width */
    }

    .main-slogan {
        font-size: 1.5rem;
        margin-top: 30px;
        padding-bottom: 20px;
        letter-spacing: 1px;
    }



    .intro-card {
        width: 100%;
        padding: 20px;
    }

        .intro-card h3 {
            font-size: 1.3rem;
        }

        .intro-card h6 {
            font-size: 1rem;
        }

    .text-column h1 {
        font-size: 2rem;
    }
    /* Packing Solutions Section Mobile Adjustments */
    .packing-solutions-cards-col {
        padding: 0 10px; /* Reduce padding further for very small screens */
    }

    .thin-box {
        padding: 10px;
    }

    .solution-card-header {
        padding: 8px;
    }

        .solution-card-header i {
            font-size: 1.5rem;
            margin-right: 10px;
        }
}

/* General Improvements for Mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Adjust image container on smaller screens */
@media (max-width: 992px) {
    .image-container img {
        object-position: center;
    }
}
@media (max-width: 768px) {
    .packing-solutions-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 15px;
    }

    .solution-card {
        max-width: 100%;
        width: 100%;
    }

    .card-body {
        padding: 15px;
    }

        .card-body li {
            font-size: 1rem;
            padding: 6px 0;
        }

    .solution-card-header {
        padding: 10px;
    }

        .solution-card-header i {
            font-size: 1.4rem;
            margin-right: 10px;
        }

        .solution-card-header h3 {
            font-size: 1.2rem;
        }
}
@media (max-width: 768px) {
    .packing-solutions-image-col {
        display: block; /* ✅ This makes the image visible again */
        width: 100%;
        text-align: center;
    }

    .brimg {
        width: 100%;
        height: auto;
        max-height: 400px; /* Optional: adjust image size on mobile */
        object-fit: cover;
    }
}