/* === TODAH SYSTEMS - MAIN STYLESHEET V2 (CORRECTED) === */

/* 1. VARIABLES & BASIC RESET */
:root {
    --primary-color: #0056b3; /* A deeper, more professional blue */
    --secondary-color: #f4f7fa; /* A very light grey for backgrounds */
    --dark-color: #2c3e50; /* A dark navy instead of pure black for text */
    --light-color: #ffffff;
    --border-radius-sm: 8px;
    --border-radius-lg: 15px;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.07);
    --shadow-strong: 0 8px 25px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
}

/* 2. HEADER & NAVIGATION */
.main-header {
    background: var(--light-color);
    padding: 1.2rem 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}
.logo img {
    height: 50px; /* Adjust this value to get the perfect size */
    width: auto;
    display: block; /* Helps with alignment */
    opacity: 0.65;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 3. HERO SECTION (IMPROVED SLIDESHOW DESIGN) */
.hero-slideshow {
    position: relative; /* Parent for the absolute positioned slides */
    padding: 9rem 0;
    color: var(--light-color);
    text-align: center;
    overflow: hidden; /* Hides parts of slides that might stick out */
}

/* The container for the text now needs a higher z-index to be on top */
.hero-slideshow .container {
    position: relative;
    z-index: 2; /* Ensures text is above the slides */
    max-width: 900px;
}

/* Individual Slide Styling */
.slide {
    position: absolute; /* Stack all slides on top of each other */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Parallax effect */
    opacity: 0; /* Hidden by default */
    z-index: 0; /* Behind the overlay */
    transition: opacity 1.5s ease-in-out; /* The fade transition */
}

/* The active slide becomes visible */
.slide.active {
    opacity: 1;
}

/* The dark overlay */
.hero-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.75);
    z-index: 1; /* Sits between the slides and the text container */
}

.hero-slideshow h1 { /* No changes here, just for context */
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero-slideshow p { /* No changes here, just for context */
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-slideshow .btn { /* No changes here, just for context */
    font-size: 1.1rem;
    padding: 16px 35px;
}

/* 4. NEW 2-COLUMN LAYOUT (Expertise + Blog) */
.main-layout {
    padding: 4rem 0;
}

.main-layout .container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.expertise-column h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-item {
    background: var(--light-color);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column; 
    height: 100%;
}

.feature-item p {
    flex-grow: 1;
    margin-top: 0.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.feature-item .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

a.feature-link {
    text-decoration: none;
    color: inherit;
}

/* Sidebar for blog links */
.sidebar-widget {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-light);
    border: 1px solid #e0e0e0;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 0.75rem;
}

.sidebar-widget ul a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-widget ul a:hover {
    text-decoration: underline;
}

/* 5. OTHER SECTIONS (CTA, Footer etc.) */
.cta-section {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0;
    text-align: center;
}
.cta-section h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-section p { font-size: 1.1rem; margin-bottom: 2rem; }
.cta-section .btn { background: var(--primary-color); color: var(--light-color); }
.cta-section .btn:hover { background: #0069d9; }

.main-footer {
    background: var(--dark-color);
    color: #ccc;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 2rem;
}

/* 6. SERVICE DETAILS PAGE */
.service-detail-page {
    padding: 4rem 0;
    background: var(--light-color);
}

.service-detail-page h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.service-detail-page .service-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.btn-back {
    display: inline-block;
    margin-top: 3rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

/* === RESPONSIVE NAVIGATION STYLES === */
.nav-toggle {
    display: none; /* The checkbox is hidden */
}
.nav-toggle-label {
    display: none; /* The hamburger icon is hidden on desktop */
    cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--dark-color);
    height: 3px;
    width: 25px;
    border-radius: 2px;
    position: relative;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
    transition: all 0.3s ease;
}
.nav-toggle-label span::before {
    top: -8px;
}
.nav-toggle-label span::after {
    top: 8px;
}

/* For Tablets and smaller desktops */
@media(max-width: 992px) {
    /* --- GENERAL LAYOUTS --- */
    .main-layout .container {
        grid-template-columns: 1fr; /* Stack homepage columns */
    }

    /* --- ABOUT US PAGE --- */
    .mission-section .container {
        flex-direction: column; /* Stack About Us columns */
    }
    .mission-section .text-content {
        order: 1; /* Text first */
    }
    .mission-section .image-content {
        order: 2; /* Image second */
        margin-top: 2rem;
    }

    /* --- SERVICE DETAILS PAGE (THE FIX) --- */
    .service-details-layout {
        grid-template-columns: 1fr; /* Stack service details columns */
    }

    /* --- MOBILE NAVIGATION --- */
    .nav-toggle-label {
        display: block;
    }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--light-color);
        box-shadow: var(--shadow-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        align-items: center;
    }
    .main-nav ul li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .main-nav ul a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    .nav-toggle:checked ~ .main-nav {
        max-height: 500px;
    }
    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }
    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }
    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

/* For Phones */
@media(max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-slideshow h1 {
        font-size: 2.8rem;
    }
    .hero-slideshow p {
        font-size: 1.1rem;
    }
    .service-detail-page h1 {
        font-size: 2.2rem;
    }
    .approach-grid {
        grid-template-columns: 1fr;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* General Button styles - CORRECTED */
.btn {
    display: inline-block;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: none; /* Make sure no default borders are applied */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    
    /* Default button colors */
    background: var(--primary-color);
    color: var(--light-color) !important; /* !important ensures text color is always light */
}

.btn:hover {
    background: #00418a;
    transform: translateY(-3px);
}

/* Specific styles for the hero button to override any conflicts */
.hero-slideshow .btn {
    font-size: 1.1rem;
    padding: 16px 35px;
    background: var(--primary-color); /* Explicitly set the background again */
}

/* === 7. ABOUT US PAGE STYLES === */

/* Page Header (for About, Services, Contact etc.) */
.page-header {
    padding: 5rem 0;
    text-align: center;
    color: var(--light-color);
    background:
        linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
        url('../images/hero-bg-2.jpg'); /* Using one of our existing cool images */
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    font-size: 3rem;
}

/* Mission Section (Updated with 2-column layout) */
.mission-section {
    padding: 5rem 0;
    background: var(--light-color);
}
.mission-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.mission-section .text-content {
    flex: 1; /* Takes up 50% of the space */
}
.mission-section .image-content {
    flex: 1; /* Takes up the other 50% */
    text-align: center;
}
.mission-section .image-content img {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-strong);
}
.mission-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.mission-section p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Team Section */
.team-section {
    padding: 4rem 0;
}
.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.team-member {
    background: var(--light-color);
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-light);
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes the image a circle */
    object-fit: cover; /* Prevents image stretching */
    margin-bottom: 1.5rem;
    border: 5px solid var(--secondary-color);
}
.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}
.team-member p.role {
    color: var(--primary-color);
    font-weight: 600;
}

.team-member p.bio {
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.6;
}

/* Core Values Section */
.values-section {
    padding: 4rem 0;
    background: var(--light-color);
}
.values-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* === 8. SERVICES PAGE STYLES === */

/* We can reuse the .page-header style from the About page */

.services-intro {
    padding: 4rem 0;
    background: var(--light-color);
    text-align: center;
}

.services-intro .container {
    max-width: 900px;
}

.services-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.services-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Service Grid Section */
.services-grid-section {
    padding: 4rem 0;
}

/* Our Approach Section */
.approach-section {
    padding: 4rem 0;
    background: var(--light-color);
}
.approach-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.approach-step {
    padding: 1.5rem;
}
.approach-step .step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--light-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.approach-step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments for the approach grid */
@media(max-width: 768px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }
}

/* === 9. ENHANCED SERVICE DETAILS PAGE === */

.service-detail-page .container {
    max-width: 1200px;
}

.service-details-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr; /* Main content is 2.5x wider than the sidebar */
    gap: 50px;
    margin-top: 2rem;
}

.service-details-main h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.service-details-main p, .service-details-main li {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Styling for our bulleted lists */
.feature-list {
    list-style: none;
    padding-left: 0;
}
.feature-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 0.75rem;
}
.feature-list li::before {
    content: '\f00c'; /* Font Awesome checkmark icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1.2rem;
}

/* Sidebar Styling for Benefits */
.service-details-sidebar .widget {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-light);
    border: 1px solid #e0e0e0;
}
.service-details-sidebar .widget h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}
/* === 10. ROBUST CONTACT PAGE STYLES === */

.contact-section {
    padding: 4rem 0;
    background: var(--light-color);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info on the left, form on the right */
    gap: 50px;
}

/* Contact Info Block */
.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.contact-info p {
    margin-bottom: 2rem;
}
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.contact-info-item .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 30px; /* Aligns the text nicely */
}
.contact-info-item span {
    font-size: 1.1rem;
}

/* Contact Form */
.contact-form {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-strong);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}
.honeypot { /* Style for our hidden anti-spam field */
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Success/Error Message Styling */
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-sm);
    color: var(--light-color);
    font-weight: 600;
}
.form-message.success {
    background-color: #28a745; /* Green */
}
.form-message.error {
    background-color: #dc3545; /* Red */
}

/* Map Section */
.map-section {
    padding: 4rem 0;
}
.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-strong);
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive adjustments for contact page */
@media(max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}
/* === 11. WHY CHOOSE US SECTION (ABOUT PAGE) === */
.why-choose-us-section {
    padding: 4rem 0;
}
.why-choose-us-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* === 12. UPDATED CONTACT PAGE STYLES === */
.what-to-expect-list {
    list-style: none;
    padding-left: 0;
}
.what-to-expect-list li {
    display: flex;
    margin-bottom: 2rem;
}
.what-to-expect-list .step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 20px;
    line-height: 1;
}
.what-to-expect-list .step-details h4 {
    margin-bottom: 0.25rem;
}
/* === 13. PHILOSOPHY SECTION (ABOUT PAGE) === */
.philosophy-section {
    padding: 4rem 0;
    /* Uses the default secondary background color to stand out from the white sections */
}
.philosophy-section .container {
    max-width: 900px; /* Tighter container for better text readability */
    text-align: center;
}
.philosophy-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.philosophy-section p {
    font-size: 1.2rem; /* Slightly larger font for impact */
    line-height: 1.8;
}
/* === 15. BLOG & POST STYLES === */
.blog-listing-section {
    padding: 4rem 0;
}
.blog-listing-section .container {
    max-width: 900px;
}
.post-preview {
    margin-bottom: 2rem;
}
.post-preview h2 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}
.post-preview h2 a:hover {
    color: var(--primary-color);
}
.post-meta {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}
.post-excerpt {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
hr.post-divider {
    margin: 3rem 0;
}

/* Single Post Page */
.post-page {
    padding: 4rem 0;
}
.post-page .container {
    max-width: 900px;
}
.post-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}
.post-header h1 {
    font-size: 2.8rem;
}
.post-content {
    font-size: 1.1rem;
    line-height: 1.9;
}
.post-content p {
    margin-bottom: 1.5rem;
}
/* === 16. EXECUTIVE SWOT DASHBOARD STYLES === */
.dashboard-container { padding: 4rem 0; }
.dashboard-container h1 { text-align: center; margin-bottom: 0.5rem; }
.dashboard-container .intro-text { text-align: center; color: #555; font-style: italic; margin-bottom: 3rem; }

.swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 4rem;
}
.swot-card {
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-strong);
}
.swot-card h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid;
}
.swot-card ul {
    list-style: none;
    padding-left: 0;
}
.swot-card li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}
.swot-card li i {
    font-size: 1.2rem;
    margin-top: 5px;
}
.swot-card li .item-title {
    font-weight: 700;
    line-height: 1.3;
}
.swot-card li .item-desc {
    grid-column: 2 / 3; /* Description spans the second column */
    font-size: 0.95rem;
    color: #444;
}

/* Card specific colors from your screenshot */
.swot-strengths { background-color: #f0f9f3; }
.swot-strengths h2, .swot-strengths i { color: #28a745; }
.swot-strengths h2 { border-color: #d1f0d9; }

.swot-weaknesses { background-color: #fef2f2; }
.swot-weaknesses h2, .swot-weaknesses i { color: #dc3545; }
.swot-weaknesses h2 { border-color: #fbd6d8; }

.swot-opportunities { background-color: #eff6ff; }
.swot-opportunities h2, .swot-opportunities i { color: #3b82f6; }
.swot-opportunities h2 { border-color: #d3e5ff; }

.swot-threats { background-color: #fffbeb; }
.swot-threats h2, .swot-threats i { color: #f59e0b; }
.swot-threats h2 { border-color: #fee9b9; }

/* Individual scores section */
.individual-breakdown {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-strong);
}
.individual-breakdown h2 { text-align: center; margin-bottom: 2rem; }
.individual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.individual-card h3 { margin-bottom: 1rem; }
.results-table { width: 100%; border-collapse: collapse; }
.results-table th, .results-table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
.results-table th { font-weight: 700; }
.score-badge { font-weight: 700; font-size: 1.2rem; }

@media(max-width: 992px) {
    .swot-grid, .individual-grid { grid-template-columns: 1fr; }
}

/* Partner Scroll Section */
.partner-scroll-section {
    background-color: #f4f4f4; /* Light grey background */
    padding: 2rem 0;
    overflow: hidden; /* Hides the scrollbar */
    text-align: center;
}

.partner-intro {
    font-weight: 600;
    color: #666;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider {
    height: 80px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    -webkit-animation: scroll 20s linear infinite;
    animation: scroll 20s linear infinite;
    display: flex;
    width: calc(250px * 8); /* Width of slide * number of total slides (originals + duplicates) */
}

.slide {
    height: 80px;
    width: 250px; /* Adjust based on how wide you want logos separated */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-height: 60px; /* Ensures logos are the same height */
    max-width: 200px;
    filter: grayscale(100%); /* Optional: makes logos B&W until hovered */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* The Animation Logic */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 4)); } /* Move left by width of original 4 slides */
}


/* Partners Section Styling */
.partners-section {
    padding: 4rem 0;        /* Adds space above and below */
    text-align: center;     /* Centers the Heading and Text */
    background-color: #fff; /* White background */
}

.partners-section h2 {
    margin-bottom: 1rem;    /* Space between Heading and Description */
    color: #333;            /* Dark text color */
}

/* Styles the description paragraph to make it distinct from the tiles */
.partners-section > .container > p {
    max-width: 800px;       /* Keeps text from stretching too wide */
    margin: 0 auto 3rem;    /* Centers text and adds space below it */
    color: #666;
    font-size: 1.1rem;
}


/* =========================================
   SCROLLING PARTNER LOGOS
   ========================================= */
.partner-scroll-section {
    background-color: #f9f9f9;
    padding: 30px 0;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

.partner-intro {
    text-align: center;
    font-weight: 600;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.slider {
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    display: flex;
    width: calc(250px * 8); /* 250px per slide * 8 slides */
    animation: scroll 20s linear infinite;
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide i {
    font-size: 3rem; /* Icon size */
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.slide span {
    font-weight: bold;
    color: #555;
    font-size: 1.1rem;
}

/* Animation Keyframes */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 4)); }
}
