/* Services Page Styles */

/* Hero Section */
.hero-small {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.hero-small .container {
    position: relative;
    z-index: 2;
}

.hero-small .hero-content {
    text-align: center;
    color: var(--white);
}

.hero-small h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 700;
    margin-top: 80px;
}

.hero-small p {
    font-size: 1.3rem;
    color: var(--white);
    margin: 0;
}

/* Services Section */
.services-section {
    padding: 5rem 2rem;
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: auto;
    width: auto;
    align-items: normal;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    background: #bbdefb;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    flex-shrink: 0; /* Prevent title from shrinking */
    z-index: 10;
}

.service-card > p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-shrink: 0; /* Prevent description from shrinking */
    z-index: 10;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1; /* Allow features to grow and fill space */
    z-index: 10;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-features i {
    color: #28a745;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.service-card .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    flex-shrink: 0; /* Prevent button from shrinking */
    z-index: 10;
}

/* Call to Action Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-section .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.cta-section .btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-section .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Responsive Styles */

/* Tablet-specific styles (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .hero-small {
        height: 35vh;
        min-height: 280px;
    }
    
    .hero-small h1 {
        font-size: 2.5rem;
        margin-top: 60px;
    }
    
    .hero-small p {
        font-size: 1.15rem;
    }
    
    .services-section {
        padding: 4rem 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.75rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.25rem;
    }
    
    .service-icon i {
        font-size: 1.75rem;
    }
    
    .service-card h3 {
        font-size: 1.35rem;
    }
    
    .service-card > p {
        font-size: 0.9rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 4rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-small h1 {
        font-size: 2rem;
    }
    
    .hero-small p {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-section .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 576px) {
    .services-section {
        padding: 3rem 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 3rem 1rem;
    }
}
