/* Sub-Section Styling for Homepage */
/* This CSS file provides styling for all sub-section types */

/* Base Sub-Section Styles */
.subsection-title {
    font-weight: 600;
    color: var(--bs-dark, #212529);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.subsection-subtitle {
    color: var(--bs-secondary, #6c757d);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.subsection-content {
    line-height: 1.6;
    font-size: 1rem;
}

/* Hero Sub-Sections */
.hero-subsection {
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-subsection .subsection-title {
    color: var(--bs-primary, #0d6efd);
    font-size: 2rem;
}

/* Text Sub-Sections */
.text-subsection {
    padding: 2rem 0;
    transition: all 0.3s ease;
}

.text-subsection:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Image + Text Sub-Sections */
.image-text-subsection {
    padding: 3rem 0;
}

.image-text-subsection img {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-text-subsection img:hover {
    transform: scale(1.02);
}

.image-text-subsection .subsection-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Testimonial Sub-Sections */
.testimonial-subsection {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--bs-primary, #0d6efd);
    position: relative;
    overflow: hidden;
}

.testimonial-subsection::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: var(--bs-primary, #0d6efd);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-subsection blockquote {
    font-size: 1.3rem;
    font-style: italic;
    margin: 0;
    position: relative;
    z-index: 1;
}

.testimonial-subsection .blockquote-footer {
    font-size: 1rem;
    margin-top: 1rem;
}

.testimonial-subsection .blockquote-footer cite {
    font-weight: 600;
    color: var(--bs-primary, #0d6efd);
}

/* Statistics Sub-Sections */
.stats-subsection {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.stats-subsection .subsection-title {
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-subsection .subsection-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.stats-content {
    font-size: 1.2rem;
    font-weight: 500;
}

.stats-content .stat-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 0.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stats-content .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stats-content .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: #fff;
}

.stats-content .stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Call-to-Action Sub-Sections */
.cta-subsection {
    background: linear-gradient(135deg, var(--bs-primary, #0d6efd) 0%, #0056b3 100%);
    margin: 3rem 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.cta-subsection::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-subsection .subsection-title {
    color: white;
    font-size: 2.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-subsection .subsection-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.cta-subsection .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-subsection .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Generic Sub-Sections */
.generic-subsection {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.generic-subsection:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subsection-title {
        font-size: 1.5rem;
    }
    
    .subsection-subtitle {
        font-size: 1rem;
    }
    
    .hero-subsection .subsection-title {
        font-size: 1.7rem;
    }
    
    .image-text-subsection .subsection-title {
        font-size: 1.6rem;
    }
    
    .image-text-subsection .col-md-6:first-child {
        margin-bottom: 2rem;
    }
    
    .testimonial-subsection::before {
        font-size: 3rem;
        top: 10px;
        left: 20px;
    }
    
    .testimonial-subsection blockquote {
        font-size: 1.1rem;
    }
    
    .stats-subsection .subsection-title {
        font-size: 2rem;
    }
    
    .stats-content .stat-number {
        font-size: 2rem;
    }
    
    .cta-subsection .subsection-title {
        font-size: 1.8rem;
    }
    
    .cta-subsection {
        margin: 2rem 0;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .subsection-title {
        font-size: 1.3rem;
    }
    
    .hero-subsection,
    .text-subsection,
    .generic-subsection {
        padding: 1.5rem 0;
    }
    
    .image-text-subsection {
        padding: 2rem 0;
    }
    
    .stats-content .stat-item {
        margin: 0.25rem;
        padding: 0.75rem;
    }
    
    .cta-subsection .btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Utility Classes for Sub-Sections */
.subsection-spacing-sm { padding: 1rem 0; }
.subsection-spacing-md { padding: 2rem 0; }
.subsection-spacing-lg { padding: 3rem 0; }
.subsection-spacing-xl { padding: 4rem 0; }

.subsection-border-top { border-top: 2px solid var(--bs-primary, #0d6efd); }
.subsection-border-bottom { border-bottom: 2px solid var(--bs-primary, #0d6efd); }

.subsection-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subsection-shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}