/* Custom Section Templates */

/* Cards Grid Templates */
.cards-grid {
    display: grid;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cards-grid.cards-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cards-grid.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cards-grid.cards-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

.card p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Two Column Grid */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.two-column-grid .column h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    margin: 0 0 1.5rem;
}

/* Three Column Grid */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.three-column-grid .column {
    text-align: center;
}

.three-column-grid .column img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.three-column-grid .column h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

/* Alternating Image/Text */
.alternating-content {
    max-width: 1200px;
    margin: 0 auto;
}

.alternating-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.alternating-row:last-child {
    margin-bottom: 0;
}

.alternating-row.image-right {
    direction: rtl;
}

.alternating-row.image-right > * {
    direction: ltr;
}

.alternating-row img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 2px;
}

.alternating-row h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    margin: 0 0 1.5rem;
}

/* Centered Content */
.centered-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.centered-content h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    margin: 2rem 0 1.5rem;
}

.centered-content img {
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 2px;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background: rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    border-radius: 2px;
    position: relative;
    border-left: 4px solid var(--accent);
    font-style: italic;
}

.testimonial::before {
    content: '"';
    font-family: 'Crimson Pro', serif;
    font-size: 5rem;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    opacity: 0.2;
    line-height: 1;
}

.testimonial p:last-child {
    font-style: normal;
    font-weight: 600;
    margin-top: 1.5rem;
    color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .cards-grid.cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-grid.cards-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .three-column-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .alternating-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .alternating-row img {
        height: 300px;
    }
    
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .cards-grid.cards-2,
    .cards-grid.cards-3,
    .cards-grid.cards-4 {
        grid-template-columns: 1fr;
    }
    
    .card img {
        height: 250px;
    }
    
    .testimonial {
        padding: 2rem 1.5rem;
    }
}
