/*
Theme Name: My Custom Theme
Theme URI: http://yourdomain.com
Author: Your Name
Author URI: http://yourdomain.com
Description: A custom theme converted from HTML.
Version: 1.0
*/

/* ========================
   Global Styles
   ======================== */
:root {
    --maroon: #800000;
    --maroon-dark: #600000;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --light-gray: #eeeeee;
    --dark-gray: #333333;
    --transition: all 0.3s ease;
}

/* ========================
   Service Hero Section
   ======================== */
.service-hero {
    background: linear-gradient(rgba(128, 0, 0, 0.9), rgba(128, 0, 0, 0.8));
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 6rem 1rem;
    margin-bottom: 3rem;
}

.service-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-hero .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    color: var(--white);
}

/* ========================
   Service Container
   ======================== */
.service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.service-container h2 {
    color: var(--maroon);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================
   Card Layout (Merged Styles)
   ======================== */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Ensures cards are centered */
    gap: 20px; /* Consistent gap between cards */
    margin: 3rem 0;
}

.card {
    flex: 0 0 300px; /* Fixed width for better control */
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--maroon);
}

/* For 3 cards per row (default) */
@media (min-width: 1000px) {
    .card {
        flex: 0 0 calc(33.333% - 14px); /* Adjusts for gap */
    }
}

/* For 2 cards per row */
@media (max-width: 999px) and (min-width: 601px) {
    .card {
        flex: 0 0 calc(50% - 10px); /* Adjusts for gap */
    }
}

/* For 1 card per row (mobile) */
@media (max-width: 600px) {
    .card {
        flex: 0 0 100%;
    }
}
/* Rest of your existing CSS remains the same */

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card i {
    font-size: 2em;
    color: var(--maroon);
    margin-bottom: 10px;
    color: black;
}

.card h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--maroon);
    color: black;
}

.card p {
    font-size: 0.95em;
    color: var(--dark-gray);
    margin-bottom: 0;
    color: black;
}

/* ========================
   CTA Section
   ======================== */
.service-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--off-white);
    border-radius: 8px;
    border-left: 4px solid var(--maroon);
}

.service-cta p {
    font-size: 1.3rem;
    color: var(--maroon);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--maroon);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background: var(--maroon-dark);
    transform: translateY(-2px);
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .service-hero .subtitle {
        font-size: 1.2rem;
    }
    
    .service-container h2 {
        font-size: 1.8rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card {
        padding: 20px;
    }
}

/* ========================
   Footer Styles
   ======================== */
.footer-content {
    text-align: center;
    padding: 2rem;
    background: var(--maroon);
    color: var(--white);
}

.footer-content p {
    margin: 0;
}