/* Reset default body and html padding/margin */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    overflow-x: hidden; /* Prevent sideways scroll */
}
 
/* Apply box-sizing border-box globally */
*, *::before, *::after {
    box-sizing: border-box;
}
/* NEPLAN Section */
.back-rice-mill {
    position: relative;
    padding-top: 60px;
    background-image: url(../images/banner/rmill.avif);/* Replace with your image URL */
    background-size: cover; /* Ensures the image covers the entire container */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    width: 100%; /* Full width for responsiveness */
    height: 600px; /* 85% of the viewport height */
    margin-top: 50px;
    display: flex; /* Use flexbox for better control of child positioning */
    align-items: center; /* Vertically centers the text */
    justify-content: flex-start; /* Aligns the  ` text to the left */
    padding-left: 20px; /* Adds some padding for left alignment */
  }
  
  .back-rice-mill h1 {
    font-size: 8rem;
    font-weight: bold;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    /* font-weight: bold;  */
    /* top: 55%; */
  
    /* padding: calc(300px/2) 20px 20px 20px; */
    margin-top: 200px;
    color: white; /* Adjust for readability */
    margin: 0; /* Removes default margin */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Optional: Adds text shadow for better visibility */
  }
  
  @media (max-width: 768px) {
    .back-rice-mill h1 {
        font-size: 3.5rem; /* Adjust font size for tablets */
    }
  }
  
  @media (max-width: 480px) {
    .back-rice-mill h1 {
        margin-top: 30px;
        /* font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; */
        font-weight: bold;
        /* text-shadow: 2px 2px 5px rgb(255, 255, 255); */
        font-size: 4.8rem; 
        /* Further adjustment for very small screens */
    }
  
    .back-rice-mill{
        padding-top: 1px;
        margin-top: 5rem;
        /* background-image: url(../images/software/cmms2.png); */
        /* margin-bottom: 30px; */
        /* background-size: contain;  */
        height:180px; /* 85% of the viewport height */
    }
  }

  /* Overlay */
  .back-rice-mill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.288);
    z-index: 1;
  }
  
  /* Text Styling */
  .back-rice-mill h1,
  .back-rice-mill p {
    position: relative;
    z-index: 2; /* Content above overlay */
  }

.back-neplan2 {
    position: relative;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.53);
    /* background-image: url(../images/software/neplan2.webp); */
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    padding: 40px 20px;
    margin-top: -30px;
}

.back-neplan2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15); /* Slight opacity overlay */
    z-index: 1;
}


/* Global body settings */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Content Section */
.content {
    width: 60%;
    padding: 40px;
    margin: 0 auto;
    text-align: center;
}

.content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.content p {
    font-size: 18px;
    line-height: 1.6;
}

/* Cards Container */
.cards-container {
    display: flex;
    justify-content: center;
    padding: 50px 0;
    /* background-color: rgba(244,244,249); */
    margin-top: -20px;
}

.flyer{
    padding: 20px;
    font-size:1.6rem;
  }

  .flyer :hover{
    color: red;
  }


/* Cards Section */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 80%;
}

/* Base Card Styling */
.card {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, opacity 0.3s;
    position: relative;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: filter 0.3s;
}

.card .card-content {
    padding: 15px;
    font-size: 1.4rem;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 1;
    transition: opacity 0.3s;
}

/* Hover Effect */
.card:hover img {
    filter: brightness(120%);
}

/* Card 1 Specific Styling */
.card1 .card-content {
    background-color: rgba(0, 0, 0, 0.7); /* Orange */
}

.card1:hover .card-content {
    opacity: 1;
}

/* Card 2 Specific Styling */
.card2 .card-content {
    background-color: rgba(0, 0, 0, 0.7); /* Green */
}

.card2:hover .card-content {
    opacity: 1;
}

/* Card 3 Specific Styling */
.card3 .card-content {
    background-color: rgba(0, 0, 0, 0.7); /* Blue */
}

.card3:hover .card-content {
    opacity: 1;
}

/* Responsive Design */

/* For Medium Screens */
@media (max-width: 992px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For Small Screens */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card img {
        height: 180px; /* Reduce image height for smaller screens */
    }
}


/* Neplan block */
.rice-mill-block {
    display: flex;
    justify-content: space-between;
    padding: 50px 0;
    margin-bottom: 20px;
    border-radius: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.rice-mill-info {
    margin-left: 20px;
    width: 50%;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    
}

.rice-mill-info h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
    
}
.rice-mill-info p{
    text-align: justify;
}
.rice-mill-info a {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
    background-color: #f38b2a85;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1;
    position: relative;
    cursor: pointer;
}

.rice-mill-info a:hover {
    background-color: #155a9a;
    transform: scale(1.05);
}

.rice-mill-info a:active {
    background-color: #0e3e6b;
    transform: scale(0.95);
}

.rice-mill-image {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rice-mill-image img {
    width: 150%;
    max-width: 400px;
    border-radius: 10px;
    transition: transform 0.5s;
}

.rice-mill-image img:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .rice-mill-info, .rice-mill-image {
        width: 100%;
        text-align: center;
    }

    .rice-mill-info {
        padding-bottom: 20px;
    }

    .rice-mill-image img {
        max-width: 80%;
    }
}

@media (max-width: 576px) {
    .rice-mill-info h2 {
        font-size: 20px;
    }

    .rice-mill-info {
        font-size: 14px;
    }
}
.rice-mill-text3{
    font-size: 2.5rem;
    /* line-height: 1.5; */
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

.rice-mill-text4{
    font-size: 1.8rem;
    /* line-height: 1.5; */
    padding-left: 20px;
    padding-right: 20px;
    text-align: justify;
}

.rice-mill-highlight-banner1 {
    /* background: linear-gradient(90deg, #FDC830, #F37335);  */
    /* background: linear-gradient(to bottom, rgb(36, 103, 154), rgb(92, 223, 237)); */
    color:#2b5797;
    padding: 15px;
    /* margin-bottom: 20px; */
    /* border-radius: 2px; */
    /* margin-top: -50px; */
    text-align: left;
    font-size: 3.6rem;
    font-weight: bold;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

/* Additional CSS for creating two-column layout */
.rice-mill-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding: 20px;
    /* margin: 20px; */
    
}

.rice-mill-column1,
.rice-mill-column2 {
    flex: 1;
    min-width: calc(50% - 15px); /* Adjust width to ensure sections are side by side with spacing */
    box-sizing: border-box;
    padding:20px;
}
.rice-mill-column2 h2{
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .rice-mill-column1,
    .rice-mill-column2 {
        min-width: 100%;
    }
}

/* Additional CSS for creating two-column layout */
.rice-mill-container2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: -50px;
}


/* Common Styles for both columns */
.rice-mill-section-container2 {
    font-family: Arial, sans-serif;
    margin: 30px;
    transition: all 0.3s ease-in-out;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.rice-mill-section-container2.visible {
    opacity: 1;
}

.rice-mill-section-title2 {
    font-size: 2.5rem;
    color: #2b5797;
    margin-bottom: 20px;
    /* border-bottom: 3px solid #2b972d; */
    padding-bottom: 10px;
    display: inline-block;
}

.rice-mill-section-content2 {
    line-height: 1.6;
}

.rice-mill-section-content2 ul {
    margin: 0;
    padding: 0;
    list-style: none;
    padding-left: 20px;
}

.rice-mill-section-content2 ul li {
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-align: justify;
    position: relative;
    padding-left: 25px;
}

.rice-mill-section-content2 ul li:before {
    content: '\25B6'; /* Triangle bullet */
    color: #2b5797;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0;
}

@media (max-width: 768px) {
    .rice-mill-section-container2 {
        padding: 20px;
    }

    .rice-mill-section-title2 {
        font-size: 2rem;
    }

    .rice-mill-section-content2 ul li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .rice-mill-section-container2 {
        padding: 15px;
    }
    .rice-mill-column2{
        padding:15px
    }

    .rice-mill-section-title2 {
        font-size: 1.5rem;
    }

    .rice-mill-section-content2 ul li {
        font-size: 0.9rem;
    }
}
.rice-mill-mid-highlight-banner {
    /* background: linear-gradient(90deg, #FDC830, #F37335);  */
    background: linear-gradient(to bottom, rgb(36, 103, 154), rgb(92, 223, 237));
    color: #000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 2px;
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



@media (max-width: 768px) {
    .rice-mill-mid-highlight-banner {
        font-size: 1em;
        padding: 15px;
    }
}
.rice-mill-mid-highlight-banner1 {
    /* background: linear-gradient(90deg, #FDC830, #F37335);  */
    /* background: linear-gradient(to bottom, rgb(36, 103, 154), rgb(92, 223, 237)); */
    color: #2b5797;
    /* margin-left: 20px; */
    padding-left:20px;
    /* margin-bottom: 20px; */
    /* border-radius: 2px; */
    /* margin-top: -50px; */
    text-align: left;
    font-size: 3.6rem;
    font-weight: bold;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

@media (max-width: 480px) {
    .rice-mill-mid-highlight-banner1 {
        /* background: linear-gradient(90deg, #FDC830, #F37335);  */
        /* background: linear-gradient(to bottom, rgb(36, 103, 154), rgb(92, 223, 237)); */
        color: #2b5797;
        /* margin-left: 20px; */
        padding: 15px;
        /* margin-bottom: 20px; */
        /* border-radius: 2px; */
        /* margin-top: -50px; */
        text-align: left;
        font-size: 2.6rem;
        font-weight: bold;
        /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    }
    .rice-mill-text2{
        font-size: 1.6rem;
        line-height: 1.5;
        text-align: left;
    }
    .rice-mill-mid-highlight-banner {
        font-size: 1.6em;
        padding: 10px;
    }
}


/* Heallthcare */
.rice-mill-container {
    display: flex;
    text-align: left;
    flex-direction: row;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.rice-mill-column1 {
    flex: 1;

    box-sizing: border-box;
}

.rice-mill-title1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color:#2b5797;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.rice-mill-text1 {
    font-size: 1.6rem;
    line-height: 1.5;
    
}

.rice-mill-column2 {
    flex: 1;
    min-width: px;
    box-sizing: border-box;
}

.rice-mill-title2 {
    font-size: 3.6rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2b5797;
}

.rice-mill-text2{
    font-size: 1.6rem;
    line-height: 1.5;
    text-align: justify;
}

.rice-mill-image-container {
    /* margin-top: 10px; */
    text-align: center;
  }
  
  .rice-mill-image {
    max-width: 100%;
    height: auto;
  }
  .rice-mill-image2 {
    max-width: 60%;
    height: auto;
  }

  .rice-mill-text-highlight{
    font-size: 2.3rem;
    color: rgb(140, 73, 223);
  }
  .rice-mill-text-highlight:hover{
    
    color: #f39c12;
  }
/* Responsive Design */
@media (max-width: 768px) {
    .rice-mill-container {
        flex-direction: column;
    }
}


/* General Styling for Health Boxes Section */
.rice-mill-box-block {
    padding: 20px;
    background-color: #ffffff;
    text-align: center;
}

/* Container Styling */
.rice-mill-box-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Health Box Styling */
.rice-mill-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    height: auto;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.rice-mill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Image Styling */
.rice-mill-box img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

/* Title Styling */
.rice-mill-box-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rice-mill-box-container {
        flex-direction: column;
        align-items: center;
    }
    .rice-mill-box {
        width: 90%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .rice-mill-box {
        width: 45%;
    }
}

@media (min-width: 1025px) {
    .rice-mill-box {
        width: 30%;
    }
}
