/* Suluhu Corporate Colors - These are variables for easy color management throughout your project. */
:root {
    --suluhu-green: #1bb145; /* This green is used in your logo and for benefit card titles. */
    --suluhu-blue: #005eb8; /* This blue is used in your logo, main headings, and product card titles. */
    --suluhu-dark-blue: #003e7d; /* A darker blue, intended for accents or hover states. */
    --suluhu-red: #e32845; /* This red is used in your logo and for section title underlines. */
    --suluhu-yellowish-green: #DDEEDB; /* This is the new subtle yellowish-green for backgrounds. */
    --text-dark: #333333; /* Dark text color for general content. */
    --text-light: #ffffff; /* White text color, often used for text on dark backgrounds like card backgrounds. */
    --bg-light-grey: #f8f8f8; /* A light grey background color for sections. */
}

/* General Section Styling */
/* This styles the "Why Choose Suluhu Sacco?" section. */
.why-suluhu-section {
    padding: 80px 0; /* Adds vertical spacing above and below the section content. */
    background-color: var(--suluhu-yellowish-green); /* Sets the background to the new subtle yellowish-green. */
}

/* This styles the "Our Products and Services" section. */
.our-products-section {
    padding: 80px 0; /* Adds consistent vertical spacing. */
    background-color: var(--bg-light-grey); /* Sets a light grey background for this section to differentiate it. */
}

/* Section Titles - These styles apply to both "Why Choose Suluhu Sacco?" and "Our Products and Services" titles. */
.section-title {
    text-align: center; /* Centers the title and its description. */
    margin-bottom: 60px; /* Creates space between the title block and the content grid (benefits/products). */
}

.section-title h2 {
    font-size: 36px; /* Sets the main heading font size. */
    color: var(--suluhu-blue); /* Uses the Suluhu Blue for the main heading color. */
    margin-bottom: 15px; /* Space below the heading before its description or underline. */
    position: relative; /* Needed for positioning the `::after` pseudo-element (the underline). */
    padding-bottom: 10px; /* Provides space between the text and the underline. */
}

.section-title h2::after {
    content: ''; /* Required for pseudo-elements. */
    position: absolute; /* Positions the underline relative to the `h2`. */
    left: 50%; /* Starts the underline at the horizontal center of the `h2`. */
    bottom: 0; /* Aligns the underline to the bottom of the `h2`. */
    transform: translateX(-50%); /* Centers the underline horizontally. */
    width: 80px; /* Sets the length of the underline. */
    height: 3px; /* Sets the thickness of the underline. */
    background-color: var(--suluhu-red); /* Uses the Suluhu Red for the underline. */
    border-radius: 5px; /* Slightly rounds the corners of the underline. */
}

.section-title p {
    font-size: 18px; /* Sets the font size for the description text. */
    color: var(--text-dark); /* Uses a dark text color for readability. */
    max-width: 800px; /* Limits the width of the description for better readability. */
    margin: 0 auto; /* Centers the description horizontally. */
    line-height: 1.8; /* Improves line spacing for readability. */
}

/* Benefits Grid - Styles the container for the "Why Choose Suluhu Sacco?" cards. */
.benefits-grid {
    display: grid; /* Enables CSS Grid layout. */
    /* Creates a responsive grid: automatically fits columns, each at least 280px wide. */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* Sets the spacing between individual benefit cards. */
}

/* Benefit Card - Styles individual cards within the "Why Choose Suluhu Sacco?" section. */
.benefit-card {
    background-color: var(--text-light); /* White background for the cards. */
    padding: 30px; /* Inner spacing within each card. */
    border-radius: 8px; /* Rounded corners for the cards. */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* A subtle shadow for depth. */
    text-align: center; /* Centers text content within the card. */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth animation for hover effects. */
    display: flex; /* Uses flexbox to vertically center content if needed. */
    flex-direction: column; /* Stacks content (h3, p) vertically. */
    justify-content: center; /* Vertically centers the content if space allows. */
}

.benefit-card:hover {
    transform: translateY(-5px); /* Lifts the card slightly when hovered over. */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Makes the shadow more prominent on hover. */
}

.benefit-card h3 {
    font-size: 22px; /* Sets the font size for the benefit titles. */
    color: var(--suluhu-green); /* Uses the Suluhu Green for benefit titles. */
    margin-bottom: 15px; /* Space below the title. */
}

.benefit-card p {
    font-size: 16px; /* Sets the font size for the benefit descriptions. */
    color: var(--text-dark); /* Dark text color for descriptions. */
    line-height: 1.7; /* Improves line spacing. */
}

/* Products Carousel (using Grid for responsiveness) - Styles the container for "Our Products and Services" cards. */
.product-carousel {
    display: grid; /* Enables CSS Grid layout. */
    /* Creates a responsive grid: automatically fits columns, each at least 250px wide. */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Sets the spacing between individual product cards. */
}

/* Product Card - Styles individual cards within the "Our Products and Services" section. */
.product-card {
    background-color: var(--text-light); /* White background for the cards. */
    border-radius: 8px; /* Rounded corners. */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow. */
    overflow: hidden; /* Ensures the image respects the border-radius of the card. */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth animation for hover effects. */
    text-align: center; /* Centers text content within the card. */
}

.product-card:hover {
    transform: translateY(-5px); /* Lifts the card slightly on hover. */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Makes the shadow more prominent on hover. */
}

.product-card img {
    width: 100%; /* Image takes full width of its container. */
    height: 200px; /* Fixed height for consistent image size. */
    object-fit: cover; /* Ensures the image covers the area without distortion. */
    border-top-left-radius: 8px; /* Rounds the top-left corner to match the card. */
    border-top-right-radius: 8px; /* Rounds the top-right corner to match the card. */
    margin-bottom: 15px; /* Space below the image. */
}

.product-card h3 {
    font-size: 20px; /* Sets the font size for product titles. */
    color: var(--suluhu-blue); /* Uses the Suluhu Blue for product titles. */
    margin-bottom: 10px; /* Space below the title. */
    padding: 0 15px; /* Adds horizontal padding to the title, preventing it from touching the edges. */
}

.product-card p {
    font-size: 15px; /* Sets the font size for product descriptions. */
    color: var(--text-dark); /* Dark text for descriptions. */
    line-height: 1.6; /* Improves line spacing. */
    padding: 0 15px 25px; /* Adds horizontal and more bottom padding for descriptions. */
}

/* Basic Container for overall page structure (if not using Bootstrap) */
.container {
    max-width: 1200px; /* Sets a maximum width for content, keeping it readable. */
    margin: 0 auto; /* Centers the container on the page. */
    padding: 0 15px; /* Adds horizontal padding, especially for smaller screens. */
    box-sizing: border-box; /* Ensures padding is included in the element's total width. */
}

/* Responsive adjustments - Media queries for smaller screens. */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 30px; /* Reduces heading font size on smaller screens. */
    }
    .section-title p {
        font-size: 16px; /* Reduces description font size. */
    }
    .benefits-grid,
    .product-carousel {
        grid-template-columns: 1fr; /* Changes grid to a single column layout on small screens. */
    }
    .benefit-card,
    .product-card {
        padding: 25px; /* Adjusts padding for cards on smaller screens. */
    }
    .product-card img {
        height: 180px; /* Adjusts product image height on smaller screens. */
    }
}
/* ... (Your existing CSS code above this line) ... */

/* New CSS for the 'About Us' page to ensure a consistent look */

/* Styles for the main 'contact-us-area' which serves as a general content wrapper. */
.contact-us-area {
    padding: 80px 0;
}

.contact-us-area .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Styles for titles and paragraphs within the 'about-sacco' section. */
.about-sacco h3,
.why-join h3,
.contact-us-area h3 {
    font-size: 28px;
    color: var(--suluhu-blue);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.about-sacco h3::after,
.why-join h3::after,
.contact-us-area h3::after {
    content: '';
    position: absolute;
    left: 0; /* Positions the underline at the start of the text */
    bottom: 0;
    width: 60px; /* Shorter underline for subheadings */
    height: 3px;
    background-color: var(--suluhu-red);
    border-radius: 5px;
}

.contact-us-area p,
.about-sacco p,
.why-join p,
.about-sacco li,
.why-join li {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Style for the list of core values and benefits */
.about-sacco ul,
.why-join ul,
.contact-us-area ul {
    list-style: none; /* Removes default list bullets */
    padding-left: 0; /* Removes default padding */
}

.about-sacco li,
.why-join li {
    position: relative;
    padding-left: 25px; /* Creates space for a custom bullet */
    margin-bottom: 10px;
}

/* Custom bullet point using a pseudo-element for the lists */
.about-sacco li::before,
.why-join li::before {
    content: '✓'; /* Uses a checkmark as the bullet */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--suluhu-green); /* Colors the checkmark with Suluhu Green */
    font-weight: bold;
}

/* Quote styling for the Bible verse */
blockquote {
    font-style: italic;
    border-left: 4px solid var(--suluhu-green);
    padding: 10px 20px;
    margin: 20px 0;
    background-color: var(--bg-light-grey);
    color: var(--text-dark);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .about-sacco h3,
    .why-join h3,
    .contact-us-area h3 {
        font-size: 24px;
    }
}