/* Hero Section */
.hero {
    background: linear-gradient(rgba(40, 170, 225, 0.1), rgba(40, 170, 225, 0.05));
    padding: 6rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../photos/pattern-dots.svg');
    background-size: 20px;
    opacity: 0.15;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 2.8rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.primary-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

.primary-cta:hover {
    background-color: var(--primary-dark);
}

.secondary-cta {
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

.secondary-cta:hover {
    background-color: rgba(40, 170, 225, 0.1);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.hero-badge:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-badge:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-badge:nth-child(3) {
    animation-delay: 0.6s;
}

.badge-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.badge-text {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Section */
.services {
    background-color: var(--background-color);
    padding: 4rem 1rem;
}

.service-card {
    text-align: center;
    background-color: white;
    box-shadow: 0 4px 6px rgba(40, 170, 225, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(40, 170, 225, 0.15);
}

.service-icon {
    margin: 0 auto 1rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-background);
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: center;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-features li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

.service-link {
    margin-top: auto;
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.service-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--light-background);
    padding: 4rem 1rem;
}

/* Change from 3-column to 2-column layout */
.why-choose-us .features-grid {
    grid-template-columns: repeat(2, 1fr);
}

.feature {
    text-align: center;
    background-color: white;
    box-shadow: 0 4px 6px rgba(40, 170, 225, 0.1);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(40, 170, 225, 0.15);
}

.feature-icon {
    margin: 0 auto 1.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(40, 170, 225, 0.1);
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.feature:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
}

.feature h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-highlight {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.feature-highlight span {
    background-color: rgba(40, 170, 225, 0.1);
    color: var(--primary-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Participant Stories Section */
.participant-stories {
    text-align: center;
    background-color: var(--background-color);
    padding: 4rem 1rem;
}

.participant-stories p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--light-text);
}

/* Testimonials Carousel */
.testimonials-carousel {
    max-width: 900px;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial {
    background-color: var(--light-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    margin: 0 1rem;
    min-width: calc(100% - 2rem);
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(40, 170, 225, 0.1);
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial cite {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 1rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background-color: var(--primary-color);
    color: white;
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

/* CTA Section */
.cta-section {
    background-color: var(--light-background);
    padding: 4rem 1rem;
}

.cta-card {
    text-align: center;
    background-color: white;
    box-shadow: 0 4px 6px rgba(40, 170, 225, 0.1);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(40, 170, 225, 0.15);
}

.cta-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(40, 170, 225, 0.1);
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-card:hover .cta-icon {
    background-color: var(--primary-color);
    color: white;
}

.cta-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-card p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
    flex-grow: 1;
}

.cta-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.cta-benefits span {
    background-color: rgba(40, 170, 225, 0.1);
    color: var(--primary-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 0.5rem;
}

.contact-item strong {
    color: var(--primary-dark);
}

.cta-card .cta-button {
    margin-top: auto;
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-card .cta-button:hover {
    background-color: var(--primary-dark);
}

/* News Section */
.news-section {
    background-color: var(--background-color);
    padding: 4rem 1rem;
    text-align: center;
}

.news-carousel {
    max-width: 1200px;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
}

.news-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1.5rem;
    padding: 0.5rem;
}

.news-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(40, 170, 225, 0.1);
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(40, 170, 225, 0.15);
}

.news-card.highlight {
    border: 2px solid var(--primary-color);
    background-color: rgba(40, 170, 225, 0.05);
    position: relative;
}

.news-card.highlight::before {
    content: none;
}

.news-card.highlight::after {
    content: none;
}

.news-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.news-arrow:hover {
    background-color: var(--primary-color);
    color: white;
}

.news-arrow.prev {
    left: 10px;
}

.news-arrow.next {
    right: 10px;
}

.news-indicators {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.news-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.news-dot.active {
    background-color: var(--primary-color);
}

.news-date {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.news-date .month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
}

.news-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.news-content p {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.tag {
    background-color: rgba(40, 170, 225, 0.1);
    color: var(--primary-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.news-link::after {
    content: "→";
    margin-left: 0.3rem;
    transition: transform 0.2s ease;
}

.news-link:hover {
    color: var(--primary-dark);
}

.news-link:hover::after {
    transform: translateX(3px);
}

.news-cta {
    margin-top: 2rem;
}

.inreach-event-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* FAQ Section */
.faq-section {
    background-color: var(--light-background);
    padding: 4rem 1rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.faq-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    position: relative;
    cursor: pointer;
    padding-right: 2rem;
}

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.faq-item.active h3::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Increased to accommodate more content */
}

.faq-answer ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer p {
    margin-bottom: 1rem;
}

/* Performance Optimizations */
@media print {
    .hero, .cta-section, .nav-links {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .service-card, .feature {
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .feature,
    .cta-card,
    .news-card {
        animation: none;
    }
    
    .service-card:hover,
    .feature:hover,
    .cta-card:hover,
    .news-card:hover {
        transform: none;
    }
    
    .hero-badge {
        animation: none !important;
        opacity: 1;
    }
    
    .testimonials-container {
        transition: none;
    }
    
    .service-icon,
    .feature-icon,
    .cta-icon {
        transition: none;
    }
    
    .service-link:hover,
    .cta-card .cta-button:hover,
    .news-link:hover::after {
        transition: none;
        transform: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-badges {
        gap: 1rem;
    }

    .hero-badge {
        padding: 0.3rem 0.8rem;
    }
    
    /* Change features-grid to single column on mobile */
    .why-choose-us .features-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .feature {
        padding: 1.5rem;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
    }

    .services-grid,
    .features-grid,
    .cta-grid,
    .news-grid {
        gap: 1.5rem;
    }

    .service-icon,
    .feature-icon,
    .cta-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon svg,
    .feature-icon svg,
    .cta-icon svg {
        width: 30px;
        height: 30px;
    }

    .service-features,
    .feature-highlight,
    .cta-benefits {
        flex-direction: column;
        align-items: center;
    }

    .testimonials-carousel {
        margin: 0 auto 1.5rem;
    }

    .testimonial {
        padding: 1.5rem;
    }
    
    .news-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .news-arrow {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .hero-cta-container {
        flex-direction: column;
        gap: 1rem;
    }

    .primary-cta,
    .secondary-cta {
        width: 100%;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .carousel-arrow {
        display: none;
    }
}

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

.service-card,
.feature,
.cta-card,
.news-card {
    animation: fadeIn 0.6s ease-out forwards;
    will-change: transform, opacity;
}

.service-card:nth-child(2),
.feature:nth-child(2),
.news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3),
.feature:nth-child(3),
.news-card:nth-child(3) {
    animation-delay: 0.4s;
}

.service-card:nth-child(4),
.feature:nth-child(4) {
    animation-delay: 0.6s;
}

/* Responsive Adjustments for News Carousel */
@media (max-width: 992px) {
    .news-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 600px) {
    .news-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
} 