/* SUPERTUTE - MODERN MINIMALIST DESIGN */
/* Color: Red (#DC2626), Black (#000), White (#FFF) */
/* Font: Space Grotesk */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.section__subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 3rem;
}

/* BUTTONS & LINKS */
.btn, a.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
}

.btn--primary, a.btn--primary {
    background: #DC2626;
    color: white;
    border: 2px solid #DC2626;
}

.btn--primary:hover, a.btn--primary:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    transform: translateY(-2px);
}

.btn--outline, a.btn--outline {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

.btn--outline:hover, a.btn--outline:hover {
    background: #000;
    color: white;
    transform: translateY(-2px);
}

.btn--lg, a.btn--lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn--full-width, a.btn--full-width {
    width: 100%;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    border-bottom: 2px solid #000;
    z-index: 1000;
}

.navbar__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar__brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #DC2626;
}

.navbar__menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    flex: 1;
    margin-left: 4rem;
}

.navbar__link {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #DC2626;
    transition: width 0.3s;
}

.navbar__link:hover::after {
    width: 100%;
}

.navbar__cta {
    background: #DC2626;
    color: white;
    border: 2px solid #DC2626;
    padding: 10px 24px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.navbar__cta:hover {
    background: white;
    color: #DC2626;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar__toggle span {
    width: 25px;
    height: 3px;
    background: #000;
    border-radius: 2px;
}

/* HERO SECTION */
.hero {
    padding: 120px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-bottom: 3px solid #000;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero__title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    letter-spacing: -2px;
}

.hero__subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
}

.hero__ctas {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    border: 3px solid #000;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.hero__visual img,
.illustration-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ABOUT SECTION */
.about {
    padding: 120px 2rem;
    border-bottom: 3px solid #000;
}

.about__container {
    max-width: 1400px;
    margin: 0 auto;
}

.about__header {
    margin-bottom: 4rem;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about__card {
    background: #f5f5f5;
    padding: 3rem;
    border: 2px solid #000;
}

.about__card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #DC2626;
    text-transform: uppercase;
}

.about__card-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* APPROACH SECTION */
.approach {
    padding: 120px 2rem;
    background: #000;
    color: white;
    border-bottom: 3px solid #DC2626;
}

.approach__container {
    max-width: 1400px;
    margin: 0 auto;
}

.approach__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step {
    border: 2px solid #DC2626;
    padding: 2rem;
    background: #111;
}

.step__number {
    font-size: 3rem;
    font-weight: 700;
    color: #DC2626;
    margin-bottom: 1rem;
}

.step__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.step__description {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

.approach__visual {
    background: #1a1a1a;
    min-height: 350px;
    border: 2px solid #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approach__visual .illustration-placeholder {
    color: #555;
}

/* SERVICES SECTION */
.services {
    padding: 120px 2rem;
    border-bottom: 3px solid #000;
    position: relative;
    overflow: hidden;
}

.services__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.services__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
}

.services__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.services__container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.services__title {
    text-align: center;
    margin-bottom: 4rem;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.service {
    background: white;
    padding: 3rem 2rem;
    border: 2px solid #000;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service:hover {
    background: #f9f9f9;
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service__icon {
    width: 70px;
    height: 70px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
    flex-shrink: 0;
}

.service__icon svg {
    width: 36px;
    height: 36px;
}

.service__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service__description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
}

.btn--sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.services__visual {
    background: #f5f5f5;
    min-height: 350px;
    border: 3px solid #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services__visual .illustration-placeholder {
    color: #999;
}

/* VALUES SECTION */
.values {
    padding: 120px 2rem;
    background: white;
    border-bottom: 3px solid #000;
}

.values__container {
    max-width: 1400px;
    margin: 0 auto;
}

.values__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: start;
}

.values__header .section__title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.values__description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.values__link {
    display: inline-block;
    text-decoration: underline;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.values__link:hover {
    color: #DC2626;
}

.values__projects {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

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

.project--reverse {
    direction: rtl;
}

.project--reverse > * {
    direction: ltr;
}

.project__content {
    display: flex;
    flex-direction: column;
}

.project__tag {
    font-size: 0.9rem;
    font-weight: 600;
    color: #DC2626;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.project__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.project__description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

.project__image {
    width: 100%;
    height: 300px;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.project__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.project__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project__link {
    display: inline-block;
    text-decoration: underline;
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.project__link:hover {
    color: #DC2626;
}

/* Responsive */
@media (max-width: 768px) {
    .values__header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project--reverse {
        direction: ltr;
    }
    
    .project__image {
        height: 250px;
    }
}

/* CONTACT SECTION */
.contact {
    padding: 120px 2rem;
    background: white;
    border-bottom: 3px solid #000;
}

.contact__container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact__form {
    background: #f9f9f9;
    padding: 3rem;
    border: 2px solid #000;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #000;
    background: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form__input:focus {
    outline: none;
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact__card {
    background: white;
    padding: 2rem;
    border: 2px solid #000;
}

.contact__card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #DC2626;
    text-transform: uppercase;
}

.contact__card a,
.contact__card p {
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact__card a:hover {
    color: #DC2626;
}

/* FOOTER */
.footer {
    background: #000;
    color: white;
    padding: 60px 2rem 30px;
    border-top: 3px solid #DC2626;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer__content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #DC2626;
}

.footer__brand h3 {
    font-size: 1.5rem;
    color: #DC2626;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer__brand p {
    font-size: 0.9rem;
    color: #999;
}

.footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer__col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: #DC2626;
}

.footer__col ul {
    list-style: none;
}

.footer__col li {
    margin-bottom: 0.5rem;
}

.footer__col a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer__col a:hover {
    color: #DC2626;
}

.footer__bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    padding-top: 2rem;
    border-top: 2px solid #333;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar__container {
        padding: 1rem 1.5rem;
    }

    .navbar__menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 2px solid #000;
        padding: 2rem;
        gap: 1rem;
        margin-left: 0;
    }

    .navbar__menu.active {
        display: flex;
    }

    .navbar__toggle {
        display: flex;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__visual {
        min-height: 300px;
    }

    .hero__title {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

    .about__grid,
    .approach__steps,
    .services__grid {
        grid-template-columns: 1fr;
    }

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

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    /* Testimonial slider responsive fixes (2D Fade) */
    .testimonial-slider-wrapper {
        perspective: none;
        min-height: 0; /* Let content define height */
    }

    /* Reset slide positions */
    .testimonial-card {
        position: relative; /* Change from absolute to stack */
        width: 100%; 
        max-width: 100%; 
        transform: none !important; /* !important to override 3D transforms */
        opacity: 0;
        z-index: 1;
        transition: opacity 0.6s ease;
        margin-bottom: 2rem; /* Add space below */
        padding: 2rem 1rem 1.5rem; /* Consistent padding */
    }
    
    /* Show only the active slide */
    .testimonial-card.slide-active {
        position: relative;
        opacity: 1;
        z-index: 10;
        display: block; /* Ensure it's visible */
    }

    /* Hide all other slides */
    .testimonial-card:not(.slide-active) {
        position: absolute; /* Take out of flow so active one is sized */
        display: none; /* Hide non-active slides */
    }

    .testimonial-card--video {
        padding: 2rem 1rem 1.5rem; /* Ensure consistent padding */
    }
    
    .video-wrapper {
        /* This is no longer hardcoded, JS will add classes */
    }

    /* --- THIS IS THE REVERTED CODE --- */
    /* Dynamic Ratio Classes for Mobile */
    .video-wrapper.ratio-16-9 {
        padding-bottom: 56.25%; /* 16:9 */
    }
    .video-wrapper.ratio-9-16 {
        padding-bottom: 177.78%; /* 9:16 */
    }
    /* --- END OF REVERTED CODE --- */
    
    .slider-nav {
        display: none; /* Already hidden, but good to be explicit */
    }

    /* Responsive rules for scrolling grid */
    .testimonial-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    .testimonial-column {
        max-height: 400px; /* Shorter mask on mobile */
    }
}

@media (max-width: 480px) {
    .navbar__brand {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .section__title {
        font-size: 1.8rem;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__ctas {
        flex-direction: column;
    }

    .btn, a.btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Make 3D carousel smaller on very small phones */
    .testimonial-slider-wrapper {
        /* Allow side slides to be partially off-screen */
        overflow: visible; 
        max-width: 100%;
    }

    /* This section is now overridden by the 2D fade, 
       but we leave the selector for any future 3D re-introduction on small screens */
    .testimonial-card.slide-prev-1 {
        transform: translateX(-40%) translateZ(-100px) rotateY(30deg) scale(0.7);
    }
    .testimonial-card.slide-next-1 {
        transform: translateX(40%) translateZ(-100px) rotateY(-30deg) scale(0.7);
    }
}

/* CUSTOM CURSOR HIDE */
* {
    cursor: none !important;
}


.activities-page {
    padding: 120px 2rem 60px; /* Add padding for navbar */
    background: #ffffff;
    border-bottom: 3px solid #000;
}

.activities__container {
    max-width: 1400px;
    margin: 0 auto;
}

.activity-grid {
    display: grid;
    /* Creates a responsive grid of cards */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.activity-card {
    display: block;
    text-decoration: none;
    color: #000000;
    background: #fdfdfd;
    border: 2px solid #000;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border-color: #DC2626; /* Highlight with red border on hover */
}

.activity-card__image {
    height: 220px;
    overflow: hidden;
    border-bottom: 2px solid #000;
}

.activity-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Apply the same grayscale filter as your other images */
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.activity-card:hover .activity-card__image img {
    filter: grayscale(0%) contrast(1); /* Show color on hover */
    transform: scale(1.05);
}

.activity-card__content {
    padding: 2rem;
}

.activity-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #DC2626; /* Use theme red for titles */
}

.activity-card__description {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.7;
}

/* --- TESTIMONIALS SECTION (3D CAROUSEL) --- */
.testimonials {
    padding: 160px 2rem;
    border-bottom: 3px solid #000;
    background: #f9f9f9; /* Light BG to separate from white sections */
}

.testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* NEW: This container now handles positioning and width */
.testimonial-carousel-container {
    position: relative;
    max-width: 1000px; /* This controls the overall width */
    margin: 0 auto;
}

/* MODIFIED: This wrapper is ONLY for 3D perspective now */
.testimonial-slider-wrapper {
    position: relative;
    /* max-width and margin are removed, now handled by parent */
    overflow: hidden; 
    perspective: 1000px; 
    min-height: 500px; /* Give it space */
    border: none; 
    background: none; 
}

.testimonial-slider {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d; 
}

/* Base styles for all slides in the 3D carousel */
.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto; 
    width: 70%; 
    max-width: 800px; 
    transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease;
    border: 2px solid #000;
    background: #fff;
}

.testimonial__author {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #DC2626; 
}

/* Style for Video Testimonials */
.testimonial-card--video {
    padding: 2rem 1rem 1.5rem; 
}

.testimonial-card--video .testimonial__author {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #DC2626;
    margin-top: 1rem;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (default for desktop) */
    height: 0;
    overflow: hidden;
    border: 2px solid #000;
    background: #000; 
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* NEW: Styles for video thumbnails and play button */
.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s ease;
}

.play-button-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px; /* Creates a triangle */
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

/* Hide play button on active slide (since video will play) */
.testimonial-card.slide-active .play-button-overlay {
    opacity: 0;
}

/* NEW: Hide the video data div */
.video-data {
    display: none;
}


/* 3D CAROUSEL STATE CLASSES (NEW) */
.testimonial-card.slide-active {
    transform: translateX(0) translateZ(0) rotateY(0) scale(1);
    opacity: 1;
    z-index: 10;
}

.testimonial-card.slide-prev-1 {
    transform: translateX(-50%) translateZ(-200px) rotateY(35deg) scale(0.85); 
    opacity: 0.7;
    z-index: 5;
}

.testimonial-card.slide-next-1 {
    transform: translateX(50%) translateZ(-200px) rotateY(-35deg) scale(0.85); 
    opacity: 0.7;
    z-index: 5;
}

/* This class is for any slides that are not active or adjacent */
.testimonial-card.slide-hidden {
    transform: translateX(0) translateZ(-500px) scale(0.4);
    opacity: 0;
    z-index: 1;
}


/* MODIFIED: Buttons are now hidden */
.slider-nav {
    display: none; /* Removed buttons, auto-scroll enabled */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #000;
    color: #DC2626;
    font-size: 1.5rem;
    font-weight: 700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100; 
}

.slider-nav:hover {
    background: #000;
    color: white;
}

/* MODIFIED: Pushed buttons further out to be clear of the side slides */
.slider-nav.prev {
    left: -30px; /* Was 0px */
}

.slider-nav.next {
    right: -30px; /* Was 0px */
}

/* --- Testimonial Scrolling Wall --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-column {
    max-height: 500px; 
    overflow: hidden;
    position: relative; 
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.testimonial-column__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: scroll-up var(--scroll-duration, 30s) linear infinite;
}

.testimonial-column:hover .testimonial-column__inner {
    animation-play-state: paused;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%); 
    }
}

.text-review-card {
    background: #ffffff;
    border: 2px solid #000;
    padding: 1.5rem;
    border-radius: 4px;
    text-align: left;
}

.text-review-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.text-review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #DC2626;
    flex-shrink: 0;
}

.text-review-card__author {
    font-weight: 700;
    color: #000;
}

.text-review-card__source {
    font-size: 0.85rem;
    color: #666;
}

.text-review-card__text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

/* --- RESPONSIVE FIX FOR TESTIMONIAL GRID --- */
/* This rule MUST be at the end, or near the end, of the mobile styles */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
}