
/* Hero Section */
.hero {
    background-color: var(--secondary-color); /* Light Blue background for hero */
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 2.5em;
    color: #005b96; /* Blue from the logo */
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    color: #555;
}

/* Services Section */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px;
    padding: 40px 20px;
    background-color: #fff; /* Background color for the services section */
}

/* Service Card */
.service-card {
    background-color: #ffffff; /* White card background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover transition */
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 280px; /* Ensures all cards have a uniform height */
}

/* Hover effect with animation */
.service-card:hover {
    transform: scale(1.05); /* Slightly zoom the card */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Deepen shadow on hover */
}

/* Service Title */
.service-card h3 {
    color: #005b96; /* Light Blue from the logo */
    margin-bottom: 10px;
    font-size: 1.2em;
}

.service-card i{
    margin-right: 0.4rem;
}
/* Service Description */
.service-card p {
    color: #666; /* Gray color for text */
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limits description to 3 lines */
    -webkit-box-orient: vertical;
}

/* Read More Button */
.read-more {
    background-color: #005b96;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-size: 0.9em;
    align-self: center;
    width: fit-content;
}

.read-more:hover {
    background-color: #004070;
}

/* Description section styles */
.description {
    max-width: 800px; /* Maximum width for better readability */
    margin: 40px auto; /* Center the section and add top margin */
    padding: 20px; /* Inner padding for the section */
    background-color: #ffffff; /* White background for the description */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    border-radius: 8px; /* Rounded corners */
    border: 1px solid #ddd; /* Light border for definition */
}

/* Heading styles */
.description h2 {
    font-size: 2em; /* Larger font size for headings */
    margin-bottom: 10px; /* Space below the heading */
    color: var(--primary-color); /* Use the primary color defined in your main CSS */
}

.description h3 {
    font-size: 1.5em; /* Slightly smaller than h2 for subheading */
    margin-top: 20px; /* Space above the subheading */
    margin-bottom: 10px; /* Space below the subheading */
    color: var(--secondary-color); /* Use the secondary color for contrast */
}

/* Paragraph and list styles */
.description p {
    margin-bottom: 20px; /* Space below paragraphs */
    line-height: 1.6; /* Improved line height for readability */
    color: #333; /* Dark text color for readability */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .services {
        padding: 20px 10px; /* Reduce padding on smaller devices */
    }

    .service-card {
        padding: 15px; /* Adjust card padding for smaller screens */
        height: auto; /* Adjust height for smaller screens */
    }

    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    .read-more {
        width: 100%;
        text-align: center;
    }
}
