/* Home page styles (Original) */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background-color: #f8f9fa; /* Original hero background */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: black;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    padding: 4rem 2rem;
    background-color: white; /* Original features background */
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: black;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
}

.feature-card {
    padding: 1.5rem;
    border-radius: 0;
    /* box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1); */
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    color: black;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: black;
}

/* Modern Homepage Styles - Hero Section */
.hero-section {
    position: relative;
    height: 100dvh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background:white;
    border-bottom: 1px solid #e0e0e0;
    /* margin-bottom: 1px; */
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto; /* Centering modern hero content */
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: left; /* Overriding older centered hero */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.welcome-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem; 
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    display: inline-block;
    max-width: 18ch;
}

.hero-subtitle {
    font-size: 1.25rem; 
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 45ch;
    display: inline-block;
}

.value-prop {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
    max-width: 800px; /* From older style */
    /* text-align from .hero-text will apply if nested, or center if top level */
}

.value-prop p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #333;
}

.btn-sign-up {
    display: inline-block;
    padding: 1rem 2rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
    transition: transform 0.2s;
}

.btn-sign-up:hover {
    transform: translateY(-2px);
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image img {
    height: 100%;
    width: 600px;
    height: 70vh;
    object-fit: contain;
}

/* Floating profiles (decorative for hero) */
.floating-profiles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.profile-img {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.p1 { top: 10%; left: 15%; }
.p2 { top: 5%; right: 20%; }
.p3 { top: 40%; left: 5%; }
.p4 { top: 30%; right: 10%; }
.p5 { bottom: 20%; left: 20%; }
.p6 { bottom: 15%; right: 25%; }


/* Logos Section */
.logos-section {
    padding: 2rem 0;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logos-title {
    text-align: center;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-item {
    width: 140px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Featured Section (Modern) */
.featured-section {
    padding: 4rem 0 8rem 0;
    background: #ffffff;
}

.stats-grid { /* Modern stats grid for homepage */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem auto;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
}

.stat-item { /* from modern homepage styles */
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.stat-label { /* from modern homepage styles, distinct from dashboard .stat-label */
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-grid { /* Modern featured grid, distinct from older .features-grid */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.featured-item {
    padding: 2rem;
    transition: background-color 0.2s;
}

.featured-image {
    width: 100%;
    aspect-ratio: 1/1;
    max-height: 160px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    max-width: 160px;
    object-fit: contain;
}

.featured-title {
    margin-bottom: 1.5rem;
}

.featured-description {
    color: #666;
    line-height: 1.6;
}

/* Reconciled/Modern Features Section (from lines 2577-2603) */
.features-section { /* This replaces the older .features */
    padding: 6rem 0;
    background: #fff;
}

/* This is the modern .features-grid, different from the one at line 785 */
.features-section .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* This is the modern .feature-card */
.features-section .feature-card {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 16px;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #000;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

.feature-content p { /* From line 2970 */
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 10rem 0;
    min-height: 100dvh;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-section::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/dwayne-joe-ViRd-VjY9y4-unsplash.webp);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.125rem;
    color: rgb(255 255 255 / 80%);
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
}

/* Gallery Section */
.gallery-section {
    padding: 8rem 0;
    background: #f8f8f8;
}

.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
}

.gallery-item {
    aspect-ratio: 1;
    background: #eee;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0%;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 100%;
}

.gallery-text {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Testimonials Section Styles */
.testimonials-section {
    padding: 6rem 0; 
    background-color: white;
    position: relative; 
}

.testimonials-section .container-fluid {
    max-width: 1400px;
    margin: 0 auto; 
    padding: 0 2rem; 
}

.testimonials-carousel-wrapper {
    position: relative;
    max-width: 1000px; /* Or your preferred max-width */
    margin: 0 auto;
    overflow: hidden; /* THIS IS CRUCIAL */
}

.testimonials-grid {
    display: flex; /* THIS IS CRUCIAL */
    /* No width set here, it will expand to fit all cards */
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%; /* Each card takes full width of the wrapper */
    background: white;
    box-sizing: border-box;
    padding: 3rem;
}

.testimonial-card blockquote {
    margin: 0;
    padding: 0;
    position: relative;
}

.testimonial-card blockquote p {
    font-size: 1.25rem; /* Slightly larger base font */
    line-height: 1.7;
    color: #555; /* Slightly lighter default text */
    margin-bottom: 2rem;
    position: relative;
    padding-left: 0; /* Remove old padding for quote mark */
}

.testimonial-card blockquote p .bold-text {
    font-weight: 600; /* Bolder */
    color: #000;
}

.testimonial-card blockquote p .light-text {
    font-weight: 300; /* Lighter */
    color: #777;
}

.testimonial-card blockquote p::before {
    content: '\201C'; /* Unicode for left double quotation mark */
    position: absolute;
    left: -1.5rem; /* Adjust as needed */
    top: -0.5rem;   /* Adjust as needed */
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card cite {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-card .author-name {
    font-weight: 500;
    font-size: 1rem; /* Adjusted size */
    color: #000;
}

.testimonial-card .author-title {
    font-size: 0.875rem;
    color: #666;
}

.carousel-controls {
    position: absolute;
    top: 100%;
    gap: .5rem;
    right: 1rem;
    transform: translateY(-5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: none;
    z-index: 20;
}

.carousel-prev,
.carousel-next {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
    border: 1px solid rgba(0, 0, 0, 0.1);    /* Subtle border */
    color: #2c3e50;                         /* Darker, muted color for the icon */
    border-radius: 50%;                     /* Circular shape */
    width: 46px;                            /* Button size */
    height: 46px;                           /* Button size */
    font-size: 18px;                        /* Icon size */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;                   /* Make buttons clickable */
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth transition */
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); Subtle shadow for depth */
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    transform: scale(1.05); /* Slight zoom on hover */
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12); */
    color: #000;
}

/* Responsive Styles for Home Page */
@media (max-width: 768px) {
    .hero h1 { /* Original hero responsive */
        font-size: 2rem;
    }

    .hero p { /* Original hero responsive */
        font-size: 1rem;
    }

    .features-grid { /* Original features-grid responsive */
        grid-template-columns: 1fr;
    }

    .logos-grid {
        gap: 1.5rem;
    }

    .logo-item {
        width: 100px;
        height: 50px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid, 
    .features-section .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-section {
        padding: 4rem 0;
    }
    .testimonial-card blockquote p {
        font-size: 1.1rem;
    }
    .testimonial-card blockquote p::before {
        left: -1rem;
        font-size: 2.5rem;
    }
    .carousel-controls {
        padding: 0 0.5rem;
    }
    .carousel-prev, .carousel-next {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 1200px) { 
    /* Ensure section headline and carousel wrapper stack naturally */
}

.features-grid,
.hero-content,
.stats-grid,
.gallery-grid,
.logos-grid,
.cta-content,
.testimonials-carousel-wrapper
{
    overflow-x: hidden; /* General overflow prevention for these containers */
}

/* Styles moved from index.php <style> block */

/* Hero trusted logos styles */
.hero-trusted-logos {
    margin-top: 2.5rem;
    width: 100%;
    text-align: center;
}

.trusted-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    margin-bottom: 1rem;
}

.trusted-logos-img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
}

/* Section Headlines */
.section-headline {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    text-align: left;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-headline.centered {
    text-align: center;
}

.section-tag {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-headline h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.1;
    color: #000;
}

/* Live Tenders Section Styles */
.live-tenders-section {
    padding: 4rem 0;
    background-color:rgb(245, 245, 245);
}

.live-tenders-section .tenders-grid { /* Homepage specific tender grid */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.tender-preview-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.tender-preview-card:hover {
    /* transform: translateY(-5px); */
}

.tender-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.tender-preview-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.tender-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tender-preview-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tender-preview-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tender-category, .tender-location {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
}

.tender-preview-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #000;
}

.tender-preview-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tender-preview-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #555;
    margin-top: auto;
}

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

/* How It Works Section Styles */
.how-it-works-section {
    padding: 8rem 0;
    background-color: white;
    position: relative;
}

.process-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.process-visual {
    position: relative;
    margin: 3.5rem 0 0 0;
}

.process-horizontal-line {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: #bbb;
    z-index: 1;
}

.process-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    gap: 5rem;
}

.process-step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    padding: 0 1rem;
}

.step-number {
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1.5px solid #bbb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 400;
    color: #444;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    box-shadow: none;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    margin-top: 1rem;
    letter-spacing: 0.01em;
    color: #222;
}

.step-content p {
    font-size: 0.98rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.process-cta {
    text-align: center;
    margin-top: 4rem;
}

.process-image-container {
    margin-top: 2rem;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.process-image {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-height: 650px;
}

/* Homepage Bottom CTA Section */
.cta-section {
    /* This selector already exists from earlier extraction for a different CTA. 
       The styles from index.php (lines 457-506) are for the one with .cta-layout. 
       Keeping this distinct for now. If it was meant to replace, original would be removed. */
}

.cta-layout { /* Specific to bottom CTA */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-section .cta-content { /* Scoped to bottom CTA to avoid conflict */
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-section .cta-content h2 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff; /* Overrides if .text-white not on element */
}

.cta-section .cta-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
    color: #fff; /* Overrides if .text-white not on element */
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.btn-minimal {
    padding: 1rem 2rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.btn-minimal:hover {
    background: #f0f0f0;
}

.btn-minimal-outline {
    padding: 1rem 2rem;
    background: transparent;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

.btn-minimal-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero CTA Group and Buttons */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    /* justify-content: center; */ /* hero-text is text-align:left for modern hero */
}

.btn-cta { /* Updated from index.php */
    padding: 1rem 2rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: #333;
}

.hero-cta-group .btn-secondary { /* Hero specific secondary button */
    padding: 1rem 2rem;
    background: transparent;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #000;
    transition: all 0.3s ease;
}

.hero-cta-group .btn-secondary:hover {
    background: rgba(0,0,0,0.05);
}

/* Gallery grid update for 992px breakpoint */
@media (max-width: 992px) {
    .hero-grid {
        display: flex; /* Change to flexbox */
        flex-direction: column-reverse; /* Reverse the order */
        text-align: center;
        align-items: center; /* Center items in flex container */
        gap: 2rem;
    }

    .hero-text {
        /* text-align: center; /* Ensure text remains centered if needed */
        /* Add any specific margin for text if needed after reorder, e.g. margin-top: 2rem; */
    }

    .hero-image-container {
        max-width: 500px;
        margin: 9rem auto 0; /* Adjust margin, e.g., add bottom margin */
        width: 100%; /* Ensure it takes available width up to max-width */
    }

    .hero-cta-group {
        justify-content: center; /* Center buttons when stacked under centered text */
    }
    .hero-image img {
        height: 40vh; /* Ensure image fills container */
        width: auto; /* Maintain aspect ratio */
        max-width: 100%;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-cta {
        margin-top: 2rem;
    }
    
    .cta-section .cta-content h2 { 
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 4rem; /* Adjust padding for hero on mobile */
        padding-bottom: 4rem;
        min-height: auto; /* Allow hero to shrink */
        margin-bottom: 4rem;
    }
    .hero-title {
        font-size: 2.5rem; 
        margin-bottom: 1.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem; 
        /* margin-bottom: 2rem; */
    }
    .hero-cta-group {
        flex-direction: column; /* Stack buttons */
        align-items: center; /* Center stacked buttons */
        gap: 1rem;
    }
    .hero-cta-group .btn-cta,
    .hero-cta-group .btn-secondary {
        width: 100%; /* Make buttons full width */
        max-width: 320px; /* Max width for stacked buttons */
        padding: 0.875rem 1.5rem; /* Adjust padding for smaller buttons */
    }
    .hero-trusted-logos {
        margin-top: 3rem;
    }
    .trusted-label {
        font-size: 0.8rem;
    }

    .section-headline {
        margin-bottom: 3rem;
        align-items: center; /* Center align for mobile (was in 1200px) */
        text-align: center; /* Center align for mobile (was in 1200px) */
    }
    .section-tag {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    .section-headline h2 {
        font-size: 2rem; /* Reduce section heading size */
    }

    .how-it-works-section,
    .live-tenders-section {
        padding: 4rem 0; /* Uniform padding for sections */
    }
    .testimonials-section {
        padding: 4rem 0;
    }
     .cta-section {
        padding: 5rem 0;
    }

    .process-step {
        /* gap: 1rem; */
        text-align: center; /* Center process step content */
    }


    .cta-section .cta-content h2 {
        font-size: 2rem;
    }
    .cta-section .cta-content p {
        font-size: 1.125rem;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .btn-minimal,
    .btn-minimal-outline {
        width: 100%;
        text-align: center;
    }

    .live-tenders-section .tenders-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Reduce gap for stacked tender cards */
    }
    .tender-preview-content {
        padding: 1.25rem;
    }
    .tender-preview-title {
        font-size: 1.15rem;
    }

    .testimonials-carousel-wrapper {
        /* Ensure controls are not overlapping content too much */
    }
    .carousel-controls {
        padding: 0 0.5rem; /* Keep padding from previous rules */
        /* Adjust top/transform if needed to ensure visibility and no overlap */
        /* top: 100%; transform: translateY(-4rem); /* Example adjustment */
    }
    .carousel-prev, .carousel-next {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .testimonial-card {
        padding: 2rem 1.5rem; /* Adjust padding for mobile */
    }
    .testimonial-card blockquote p {
        font-size: 1rem; /* Adjust font for smaller screens */
        line-height: 1.6;
    }
    .testimonial-card blockquote p::before {
        left: -1rem;
        font-size: 2.5rem;
    }

    /* Original responsive for old hero/features (review if still used or can be removed) */
    /* .hero h1 { font-size: 2rem; } */
    /* .hero p { font-size: 1rem; } */
    /* .features-grid { grid-template-columns: 1fr; } */

    .logos-grid {
        gap: 1.5rem;
    }
    .logo-item {
        width: 100px;
        height: 50px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Reduce gap for stats grid */
    }
    .stat-item {
        margin-bottom: 1rem; /* Add some space between stacked stat items */
    }
    .stat-number {
        font-size: 2rem; /* Reduce stat number size */
    }
    .stat-label {
        font-size: 0.8rem; /* Reduce stat label size */
    }

    .featured-grid, 
    .features-section .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem; /* Adjust gap for featured/features grid */
    }
    .gallery-grid {
        /* Already set to 2 columns at 992px, if 1 column needed for 768px: */
        /* grid-template-columns: 1fr; */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem; /* Even smaller for very small screens */
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-headline h2 {
        font-size: 1.75rem;
    }
    .live-tenders-section .tender-preview-title {
        font-size: 1.1rem;
    }
    .testimonial-card blockquote p {
        font-size: 0.9rem;
    }
    .photo-placeholder { /* from our-story, but good to keep consistent small screen handling */
        width: 100%;
        max-width: 200px; /* Smaller placeholder on very small screens */
        height: 250px;
    }
}

@media (max-width: 900px) {
  .process-container {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .process-grid {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }
  .process-horizontal-line {
    display: none;
  }
  .process-step {
    align-items: center;
    text-align: center;
    padding: 0 0 2rem 0;
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .process-step {
    padding-bottom: 2.5rem;
    max-width: 100%;
  }
} 