/**
 * Homepage Redesign CSS
 * Modern, clean layout with proper spacing and visual hierarchy
 *
 * @package KCNijmegen
 */

/* =============================================================================
   HERO SECTION - Full Width Image with Overlay
   ============================================================================= */

.hero-fullwidth {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

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

.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 80px 20px;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0 0 30px 0;
    color: rgba(255, 255, 255, 0.95);
}

.hero-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Hero Button Styles */
.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 200px;
}

.btn-hero-primary {
    background: white;
    color: #2e7d32;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-hero-primary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: #2e7d32;
    transform: translateY(-2px);
}

/* =============================================================================
   SECTION SPACING & STRUCTURE
   ============================================================================= */

.section-spacing {
    padding: 60px 20px;
}

.bg-light {
    background-color: #f8f9fa;
}

.bg-primary {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.bg-primary .section-title,
.section-contact .contact-title {
    color: white;
}

.section-description {
    font-size: 1.15rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.bg-primary .section-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Section CTA (bottom buttons) */
.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* =============================================================================
   BUTTONS - Consistent styling across all sections
   ============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-outline-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    background: white;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.btn-outline-large:hover {
    background: #2e7d32;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-light-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    background: white;
    color: #2e7d32;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-light-large:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-light-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-light-large:hover {
    background: white;
    color: #2e7d32;
    transform: translateY(-2px);
}

/* =============================================================================
   CURSUSSEN SECTION
   ============================================================================= */

.section-cursussen .cursussen-content {
    margin-bottom: 30px;
}

/* Override existing course card styles for better spacing */
.section-cursussen .course-card {
    margin-bottom: 25px;
}

/* =============================================================================
   WAAROM KC NIJMEGEN - Feature Cards
   ============================================================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.feature-icon-wrapper .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: white;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* =============================================================================
   ACTIVITEITEN SECTION
   ============================================================================= */

.activiteiten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.activiteit-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.activiteit-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.activiteit-date {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.date-display {
    text-align: center;
    color: white;
}

.date-display .day {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-display .month {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.activiteit-content {
    padding: 25px;
    flex: 1;
}

.activiteit-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.activiteit-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 10px 0;
}

.activiteit-location .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.activiteit-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0 0 15px 0;
}

.activiteit-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.activiteit-link:hover {
    color: #1b5e20;
    gap: 8px;
}

.no-activiteiten {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
}

/* =============================================================================
   CONTACT / CTA SECTION
   ============================================================================= */

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: white;
}

.contact-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 30px 0;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.contact-info .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease;
}

.contact-info a:hover {
    border-bottom-color: white;
}

/* =============================================================================
   TESTIMONIALS SECTION
   ============================================================================= */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #2e7d32;
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 1rem;
    color: #2e7d32;
}

/* =============================================================================
   RESPONSIVE DESIGN - Mobile First
   ============================================================================= */

/* Tablets and Small Desktops */
@media (max-width: 768px) {
    .hero-fullwidth {
        min-height: 400px;
    }

    .hero-content-wrapper {
        min-height: 400px;
        padding: 60px 20px;
    }

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

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

    .hero-cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
    }

    .section-spacing {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .activiteiten-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .activiteit-card {
        flex-direction: column;
    }

    .activiteit-date {
        min-width: auto;
        padding: 15px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-light-large,
    .btn-outline-light-large {
        width: 100%;
        max-width: 300px;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .hero-fullwidth {
        min-height: 350px;
    }

    .hero-content-wrapper {
        min-height: 350px;
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .feature-icon-wrapper .dashicons {
        font-size: 30px;
        width: 30px;
        height: 30px;
    }

    .feature-title {
        font-size: 1.2rem;
    }

    .activiteit-content {
        padding: 20px;
    }

    .contact-title {
        font-size: 2rem;
    }
}

/* =============================================================================
   LOADING OPTIMIZATION
   ============================================================================= */

/* Lazy load image placeholder */
.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    z-index: 0;
}

/* Smooth image loading */
.hero-image {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.hero-image.loaded {
    opacity: 1;
}

/* =============================================================================
   DARK MODE SUPPORT
   ============================================================================= */

@media (prefers-color-scheme: dark) {
    .section-title {
        color: #e8e8e8;
    }

    .section-description {
        color: #b0b0b0;
    }

    .feature-card {
        background: #2a2a2a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .feature-title {
        color: #e8e8e8;
    }

    .feature-description {
        color: #b0b0b0;
    }

    .activiteit-card {
        background: #2a2a2a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .activiteit-title {
        color: #e8e8e8;
    }

    .activiteit-location,
    .activiteit-excerpt {
        color: #b0b0b0;
    }

    .testimonial-card {
        background: #2a2a2a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .testimonial-content {
        color: #b0b0b0;
    }

    .no-activiteiten {
        background: #2a2a2a;
    }

    .bg-light {
        background-color: #1a1a1a;
    }
}
