/* Features Section Styles */
.features-section {
    padding: 100px 0;
    background: var(--white);
}

.features-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Features Header Logo */
.features-logo {
    margin-bottom: 2rem;
}

.features-header-image {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.features-section .section-header h2 {
    font-size: 2.8rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-weight: 700;
}

.features-description {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Feature Cards with Light Background Images */
.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* White overlay to ensure text readability */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-red);
    z-index: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

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

.feature-card h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.feature-content {
    color: var(--text-light);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    z-index: 2;
}

/* HTML Content Styling */
.feature-content p {
    margin-bottom: 1rem;
}

.feature-content strong {
    color: var(--dark-gray);
    font-weight: 600;
}

.feature-content em {
    font-style: italic;
}

.feature-content a {
    color: var(--primary-red);
    text-decoration: underline;
    font-weight: 600;
}

.feature-content a:hover {
    color: var(--dark-red);
}

.feature-content ul, .feature-content ol {
    text-align: left;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.feature-content li {
    margin-bottom: 0.5rem;
}

/* Feature Link Button */
.feature-link {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.feature-link:hover {
    background: var(--dark-red);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-section .section-header h2 {
        font-size: 2.2rem;
    }
    
    .features-description {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .features-header-image {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .features-section {
        padding: 60px 0;
    }
    
    .features-section .section-header h2 {
        font-size: 1.8rem;
    }
    
    .features-header-image {
        max-width: 120px;
    }
}