@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Roboto:wght@400;700&display=swap');

/* General Body Styles */
body {
    font-family: 'Open Sans', sans-serif;
}

/* Services Section Styles */
.services-padding {
    padding: 60px 0;
}

.services-light-blue {
    background-color: #f0f8ff;
}

.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-center {
    text-align: center;
}

.services-left {
    text-align: left;
}

.services-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.services-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 90px;
    height: 5px;
    background: #256cb8;
    border-radius: 2px;
}

.services-gradient-blue {
    background: #0265c2;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.card-grid-services {
    display: grid;
    /* Maaari mong itakda ang column sizes. Kung hindi mo gusto ng fixed width, pwede ang 1fr. */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Use auto-fit for flexible column count */
    gap: 30px;
    margin-top: 50px;
    justify-content: center; /* Ito ang magce-center ng buong grid items */
    margin-left: auto; /* Para masiguro na centered ang buong grid container */
    margin-right: auto; /* Para masiguro na centered ang buong grid container */
    max-width: 900px; /* Adjust this max-width based on your desired layout when 3 cards are present */
    /* This max-width will help center the entire grid itself when there are fewer items
       than the maximum columns set, by limiting its overall width. */
}

.section-title-object {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 70px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    letter-spacing: 0.03em;
    color: #195fab; /* O ibang dark color para sa light background */
}


.section-title-object::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: #195fab;
    border-radius: 2px;
}

/* Responsive adjustments for the card grid */
@media (max-width: 1200px) {
    .card-grid-services {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Keep auto-fit */
        max-width: 600px; /* Adjust for 2 columns */
    }
}

@media (max-width: 768px) {
    .card-grid-services {
        grid-template-columns: 1fr; /* 1 column on mobile */
        max-width: 320px; /* Adjust for 1 column */
    }
}

.card-services {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #000000;
    position: relative;
    text-align: center;
}

.card-services:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.services-card-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #0d4782;
    font-family:Arial Narrow;
}

.services-card-text {
    font-size: 0.96em;
    line-height: 1.5;
    color: #000000;
    font-family: Impact,;
}

.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease-in-out;
}

.service-image:hover {
    transform: scale(1.02);
}














/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding-top: 50px; /* Space from top */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%; /* Could be responsive */
    max-width: 700px; /* Max width for larger screens */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
    text-align: left; /* Adjust text alignment within modal */
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 36px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modalTitle {
    font-size: 2em;
    color: #0d4782;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

#modalProducts p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #333;
}

#modalProducts ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

#modalProducts ul li {
    margin-bottom: 8px;
    font-size: 1em;
    color: #555;
}