/* Custom Color Variables */
:root {
    --primary-blue-green: #1A9C90;
    --primary-dark: #0F7569;
    --accent-lilac: #C9B7FF;
    --cream-bg: #FFF9F0;
    --cream-base: #FBF7F0;
    --cream-alternate: #F4FBF7;
}

/* Tailwind Custom Colors */
body {
    font-family: 'Inter', sans-serif;
}

/* Main Grid Container */
.main-grid-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: var(--cream-base);
}

/* Alternating section backgrounds — safe, reversible */
.hero-grid,
.cta-section,
.how-it-works,
.delegate-carousel-section,
.testimonials-section {
    background-color: var(--cream-base);
    transition: background-color 320ms ease;
    padding: 60px 80px;
    box-sizing: border-box;
}

/* Apply alternate tint to even sections */
.delegate-carousel-section {
    background-color: var(--cream-alternate);
}

/* CTA Section - Green-teal background */
.cta-section {
    background-color: var(--primary-blue-green);
    padding-top: 48px;
    padding-bottom: 48px;
}

@media (min-width: 1024px) {
    .cta-section {
        padding-top: 60px;
        padding-bottom: 60px;
        padding-left: 120px;
        padding-right: 120px;
    }
}

@media (max-width: 767px) {
    .cta-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }
}

/* Responsive padding adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-grid,
    .how-it-works,
    .delegate-carousel-section,
    .testimonials-section {
        padding: 60px 60px;
    }
    
    .cta-section {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (max-width: 767px) {
    .hero-grid,
    .how-it-works,
    .delegate-carousel-section,
    .testimonials-section {
        padding: 40px 24px;
    }
    
    .cta-section {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    .hero-grid,
    .how-it-works,
    .delegate-carousel-section,
    .testimonials-section {
        padding: 80px 120px;
    }
}

/* Hero Grid Section */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
    justify-items: center;
    margin-bottom: 0;
}

/* Hero Text Section */
.hero-text {
    text-align: left;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Notepad Section */
.hero-notepad {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    width: 100%;
    max-width: 100%;
}

/* Form Header */
.form-header {
    margin-bottom: 24px;
    text-align: left;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue-green);
    margin-bottom: 8px;
    line-height: 1.3;
}

.form-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

/* Desktop Grid Layout */
@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
        justify-items: stretch;
    }
    
    .hero-text {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-notepad {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .notepad-container {
        width: 100%;
        max-width: 100%;
    }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-grid {
        gap: 50px;
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .hero-grid {
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-notepad {
        justify-content: center;
    }
}

/* Notepad Styling */
.notepad-container {
    background: white;
    border-radius: 12px;
    box-shadow: 
        0 20px 60px rgba(26, 156, 144, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: rotate(-1.5deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.notepad-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: repeating-linear-gradient(
        transparent,
        transparent 31px,
        rgba(201, 183, 255, 0.1) 31px,
        rgba(201, 183, 255, 0.1) 32px
    );
    border-right: 2px solid rgba(201, 183, 255, 0.2);
}

.notepad-container:hover {
    transform: rotate(-0.5deg) translateY(-5px);
    box-shadow: 
        0 25px 70px rgba(26, 156, 144, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.notepad-header {
    background: var(--accent-lilac);
    padding: 20px 30px;
    padding-left: 50px;
    border-bottom: 2px solid rgba(201, 183, 255, 0.3);
}

.notepad-body {
    padding: 30px;
    padding-left: 50px;
    background: white;
    min-height: 300px;
    background-image: 
        repeating-linear-gradient(
            transparent,
            transparent 31px,
            rgba(0, 0, 0, 0.03) 31px,
            rgba(0, 0, 0, 0.03) 32px
        );
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 18px;
    color: #2d3748;
    font-weight: 500;
    position: relative;
}

.task-item.clickable-task {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.task-item.clickable-task:hover {
    opacity: 0.8;
}

.task-item.clickable-task:active {
    transform: scale(0.98);
}

.task-item.completed {
    opacity: 0.5;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    position: relative;
}

.task-item.completed::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    background: var(--primary-dark);
    transform: translateY(-50%);
    z-index: 1;
}

.checkbox {
    font-size: 24px;
    color: var(--primary-blue-green);
    font-weight: normal;
    min-width: 24px;
}

.task-text {
    flex: 1;
    line-height: 1.6;
}

.task-item.placeholder {
    opacity: 0.3;
    font-style: italic;
}

/* CTA Banner - White form container */
.cta-banner {
    background: white;
    padding: 32px 30px 40px 30px;
    transition: box-shadow 0.3s ease;
    margin-bottom: -24px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .cta-banner {
        padding: 40px 40px 48px 40px;
        margin-bottom: -32px;
    }
}

.cta-banner:hover {
    box-shadow: 
        0 20px 60px rgba(26, 156, 144, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Form input focus ring color */
input:focus,
textarea:focus {
    --tw-ring-color: #C9B7FF;
}

/* Mobile-only floating labels (≤640px) */
@media (max-width: 640px) {
    .form-field-wrapper {
        position: relative;
        margin-bottom: 24px;
    }
    
    /* Hide original labels on mobile */
    .form-label {
        display: none !important;
    }
    
    .form-label-floating {
        position: absolute;
        left: 16px;
        top: 20px;
        font-size: 1rem;
        font-weight: 400;
        color: #94a3b8;
        pointer-events: none;
        opacity: 0;
        transform: translateY(0);
        transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, font-size 0.2s ease;
        z-index: 1;
        background: white;
        padding: 0 4px;
        line-height: 1.5;
    }
    
    .form-input:focus ~ .form-label-floating,
    .form-input.has-value ~ .form-label-floating {
        opacity: 1;
        transform: translateY(-50%);
        font-size: 0.84375rem;
        color: #64748b;
        top: 0px;
        line-height: 1.4;
    }
    
    .form-input {
        padding-top: 20px;
        padding-bottom: 20px;
        min-height: 56px;
    }
    
    .form-textarea {
        padding-top: 20px;
        padding-bottom: 16px;
    }
    
    /* Ensure textarea label positioning - always visible */
    .form-textarea ~ .form-label-floating {
        top: 0px;
        transform: translateY(-50%);
        font-size: 0.84375rem;
        line-height: 1.4;
        opacity: 1;
        color: #64748b;
    }
}

/* Desktop: keep original label behavior */
@media (min-width: 641px) {
    .form-label-floating {
        display: none;
    }
}

/* Form Input */
.task-input {
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-input::placeholder {
    color: #a0aec0;
}

.task-input:focus {
    background: white;
    box-shadow: 0 4px 12px rgba(201, 183, 255, 0.3);
}

/* Submit Button */
.submit-btn {
    background: var(--accent-lilac);
    color: var(--primary-dark);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(201, 183, 255, 0.4);
}

.submit-btn:hover {
    background: #b8a3ff;
    box-shadow: 0 6px 16px rgba(201, 183, 255, 0.5);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Desktop Layout Enhancements */
@media (min-width: 1024px) {
    .notepad-container {
        max-width: 100%;
    }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .notepad-container {
        transform: rotate(-0.5deg);
    }
    
    .notepad-container:hover {
        transform: rotate(0deg) translateY(-3px);
    }
    
    .notepad-body {
        padding: 20px;
        padding-left: 40px;
        min-height: 250px;
    }
    
    .notepad-container::before {
        width: 30px;
    }
    
    .notepad-header {
        padding: 15px 20px;
        padding-left: 40px;
    }
    
    .task-item {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .cta-banner {
        padding: 24px 20px 32px 20px;
        margin-bottom: -20px;
    }
}

/* Animation for form submission */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-animate {
    animation: slideUp 0.5s ease-out;
}

/* How It Works Section */
.how-it-works {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}

.how-it-works-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue-green);
    text-align: center;
    margin-bottom: 48px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 
        0 4px 20px rgba(26, 156, 144, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
}

.step-item:nth-child(1) {
    animation-delay: 0.1s;
}

.step-item:nth-child(2) {
    animation-delay: 0.2s;
}

.step-item:nth-child(3) {
    animation-delay: 0.3s;
}

.step-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(26, 156, 144, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.step-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(26, 156, 144, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue-green);
    transition: background 0.3s ease, transform 0.3s ease;
}

.step-item:hover .step-icon {
    background: rgba(26, 156, 144, 0.15);
    transform: scale(1.05);
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue-green);
    margin-bottom: 8px;
    line-height: 1.4;
}

.step-description {
    font-size: 1rem;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Fade-up animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Header Responsive */
@media (min-width: 768px) {
    .form-title {
        font-size: 1.875rem;
    }
    
    .form-subtitle {
        font-size: 1.0625rem;
    }
}

@media (max-width: 640px) {
    .form-title {
        font-size: 1.375rem;
    }
    
    .form-subtitle {
        font-size: 0.9375rem;
    }
    
    .form-header {
        margin-bottom: 20px;
    }
}

/* Responsive adjustments for How It Works */
@media (min-width: 768px) {
    .how-it-works {
        margin-top: 0;
    }
    
    .how-it-works-title {
        font-size: 2.5rem;
        margin-bottom: 60px;
    }
    
    .step-item {
        padding: 32px;
        gap: 24px;
    }
    
    .step-icon {
        width: 64px;
        height: 64px;
    }
    
    .step-heading {
        font-size: 1.5rem;
    }
    
    .step-description {
        font-size: 1.0625rem;
    }
}

@media (max-width: 640px) {
    .how-it-works {
        margin-top: 0;
    }
    
    .how-it-works-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }
    
    .step-item {
        padding: 20px;
        gap: 16px;
    }
    
    .step-icon {
        width: 48px;
        height: 48px;
    }
    
    .step-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .step-heading {
        font-size: 1.125rem;
        margin-bottom: 6px;
    }
    
    .step-description {
        font-size: 0.9375rem;
    }
}

/* Things You Can Delegate Carousel Section */
.delegate-carousel-section {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.delegate-carousel-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.delegate-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue-green);
    text-align: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

.carousel-wrapper {
    position: relative;
    margin-bottom: 32px;
    width: 100%;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 8px 0;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Offset to show 2/3 of first card + 1/3 of next */
    padding-left: 16.666%;
    padding-right: 0;
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Mobile: Cards are 2/3 width with peek */
.carousel-card {
    min-width: 73%;
    width: 73%;
    height: auto;
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 0 8px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.carousel-card:first-child {
    padding-left: 16px;
}

.carousel-card:last-child {
    padding-right: 16px;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 
        0 4px 20px rgba(26, 156, 144, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(26, 156, 144, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue-green);
    margin-bottom: 16px;
    line-height: 1.3;
}

.category-text {
    font-size: 1rem;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.delegate-final-line {
    font-size: 1rem;
    font-weight: 400;
    color: #4a5568;
    text-align: center;
    font-style: italic;
    margin-top: 40px;
    padding: 0 20px;
}

/* Desktop: Show all 3 cards side by side */
@media (min-width: 1024px) {
    .delegate-carousel-section {
        margin-top: 0;
    }
    
    .delegate-carousel-container {
        max-width: 900px;
        padding: 0 20px;
    }
    
    .delegate-title {
        font-size: 2.5rem;
        margin-bottom: 48px;
        padding: 0;
    }
    
    .carousel-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    
    .carousel-container {
        overflow-x: visible;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 1fr;
        gap: 24px;
        scroll-snap-type: none;
        padding-left: 0;
        padding-right: 0;
        align-items: stretch;
        margin: 0;
    }
    
    .carousel-card {
        min-width: auto;
        width: 100%;
        height: 100%;
        padding: 0;
        display: flex;
        align-items: stretch;
    }
    
    .category-card {
        width: 100%;
        max-width: 100%;
        height: 100%;
        padding: 40px;
    }
    
    .category-title {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }
    
    .category-text {
        font-size: 1.0625rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .delegate-carousel-section {
        margin-top: 0;
    }
    
    .delegate-carousel-container {
        max-width: 900px;
        padding: 0 20px;
    }
    
    .delegate-title {
        font-size: 2.5rem;
        margin-bottom: 48px;
        padding: 0;
    }
    
    .carousel-wrapper {
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px;
    }
    
    .category-card {
        padding: 40px;
        width: 100%;
        height: 100%;
    }
    
    .category-title {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }
    
    .category-text {
        font-size: 1.0625rem;
    }
    
    /* Tablet: Still show carousel but wider cards */
    .carousel-container {
        padding-left: 12.5%;
        padding-right: 0;
        margin: 0;
    }
    
    .carousel-card {
        min-width: 75%;
        padding: 0 8px;
        height: auto;
        display: flex;
        align-items: stretch;
    }
    
    .carousel-card:first-child {
        padding-left: 0;
    }
    
    .carousel-card:last-child {
        padding-right: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .delegate-carousel-section {
        margin-top: 0;
    }
    
    .delegate-carousel-container {
        padding: 0;
    }
    
    .delegate-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
        padding: 0 16px;
    }
    
    .carousel-wrapper {
        margin-left: -12px;
        margin-right: -12px;
        padding: 0 12px;
    }
    
    .carousel-container {
        padding-left: 13.5%;
        padding-right: 0;
        margin: 0;
    }
    
    .carousel-card {
        min-width: 73%;
        padding: 0 4px;
        height: auto;
        display: flex;
        align-items: stretch;
    }
    
    .carousel-card:first-child {
        padding-left: 0;
    }
    
    .carousel-card:last-child {
        padding-right: 0;
    }
    
    .category-card {
        padding: 24px;
        width: 100%;
        height: 100%;
    }
    
    .category-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .category-text {
        font-size: 0.9375rem;
    }
    
    .delegate-final-line {
        font-size: 0.9375rem;
        margin-top: 32px;
        padding: 0 16px;
    }
}

/* Testimonials Section */
.testimonials-section {
    width: 100%;
    box-sizing: border-box;
}

.testimonials-container {
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.testimonials-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue-green);
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 
        0 4px 20px rgba(26, 156, 144, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(26, 156, 144, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.testimonial-header {
    margin-bottom: 16px;
}

.testimonial-task-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue-green);
    margin-bottom: 4px;
    line-height: 1.4;
}

.testimonial-task-subtext {
    font-size: 0.9375rem;
    font-weight: 400;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.testimonial-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 16px 0;
    width: 100%;
}

.testimonial-screenshot {
    width: 100%;
    margin-top: auto;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.screenshot-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mobile adjustments - brick wall layout with 2 columns */
@media (max-width: 767px) {
    .testimonials-container {
        padding: 20px 12px;
    }
    
    .testimonials-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
        padding: 0 12px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 100%;
        grid-auto-rows: min-content;
    }
    
    .testimonial-card {
        padding: 8px;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
    }
    
    /* Brick wall effect - different heights for different cards */
    .testimonial-card:nth-child(1) {
        min-height: 180px;
        grid-row: span 2;
    }
    
    .testimonial-card:nth-child(2) {
        min-height: 140px;
        grid-row: span 1;
    }
    
    .testimonial-card:nth-child(3) {
        min-height: 160px;
        grid-row: span 2;
    }
    
    .testimonial-header {
        margin-bottom: 6px;
    }
    
    .testimonial-task-title {
        font-size: 0.625rem;
        margin-bottom: 2px;
        line-height: 1.2;
    }
    
    .testimonial-task-subtext {
        font-size: 0.5rem;
        line-height: 1.3;
    }
    
    .testimonial-divider {
        margin: 4px 0;
        height: 0.5px;
    }
    
    .testimonial-screenshot {
        border-radius: 6px;
        margin-top: auto;
        flex: 1;
        min-height: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
    }
    
    .screenshot-image {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: cover;
    }
    
    /* Vary image heights for brick effect */
    .testimonial-card:nth-child(1) .screenshot-image {
        max-height: 120px;
    }
    
    .testimonial-card:nth-child(2) .screenshot-image {
        max-height: 80px;
    }
    
    .testimonial-card:nth-child(3) .screenshot-image {
        max-height: 100px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .testimonials-container {
        padding: 60px 60px;
    }
    
    .testimonials-title {
        font-size: 2rem;
        margin-bottom: 48px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .testimonial-card {
        padding: 28px;
    }
    
    .testimonial-task-title {
        font-size: 1.375rem;
    }
    
    .testimonial-task-subtext {
        font-size: 1rem;
    }
}

/* Desktop adjustments - masonry grid */
@media (min-width: 1024px) {
    .testimonials-container {
        max-width: 1200px;
    }
    
    .testimonials-title {
        font-size: 2.5rem;
        margin-bottom: 60px;
        padding: 0;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        grid-auto-rows: min-content;
    }
    
    .testimonial-card {
        padding: 32px;
        display: flex;
        flex-direction: column;
    }
    
    /* Brick wall effect - different heights for different cards */
    .testimonial-card:nth-child(1) {
        min-height: 500px;
        grid-row: span 3;
    }
    
    .testimonial-card:nth-child(2) {
        min-height: 400px;
        grid-row: span 2;
    }
    
    .testimonial-card:nth-child(3) {
        min-height: 450px;
        grid-row: span 3;
    }
    
    .testimonial-task-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .testimonial-task-subtext {
        font-size: 1.0625rem;
    }
    
    .testimonial-divider {
        margin: 20px 0;
    }
    
    .testimonial-screenshot {
        flex: 1;
        min-height: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
    }
    
    /* Vary image heights for brick effect */
    .testimonial-card:nth-child(1) .screenshot-image {
        max-height: 350px;
        object-fit: cover;
    }
    
    .testimonial-card:nth-child(2) .screenshot-image {
        max-height: 250px;
        object-fit: cover;
    }
    
    .testimonial-card:nth-child(3) .screenshot-image {
        max-height: 300px;
        object-fit: cover;
    }
}

