@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Roboto:wght@400;700&family=Playfair+Display:wght@800&family=Roboto+Slab:wght@700&display=swap');

/* General Body Styles */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
}


/* Services Section Styles */
.services-padding {
    padding: 60px 0;
}

.services-light-blue {
    position: relative; /* Napakahalaga nito para gumana ang 'position: absolute' ng pseudo-element */
    background-image: url('back.jpeg'); /* Siguraduhin na ito ang tamang path ng iyong photo */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    /* Maaaring mag-adjust ng padding kung kinakailangan */
    padding-top: 50px; /* Example padding */
    padding-bottom: 50px; /* Example padding */
}

.services-light-blue::before {
    content: ""; /* Kailangan ito para lumabas ang pseudo-element */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Ito ang overlay: itim na may 60% opacity */
    z-index: 1; /* Ilagay sa ibabaw ng background image pero sa ilalim ng content */
}

/* Kailangan mo ring tiyakin na ang nilalaman (content) ng section ay nasa ibabaw ng overlay */
.services-light-blue > * { /* Ibig sabihin: Lahat ng direct children ng .services-light-blue */
    position: relative;
    z-index: 2; /* Siguraduhin na mas mataas sa overlay */
}

/* Optional: Para mas madaling basahin ang text sa ibabaw ng madilim na background */
.services-light-blue .section-title-object,
.services-light-blue .services-card-title {
    color: white; /* Palitan ng puti o light color ang text */
}

.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.8em;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #e7ba51;
    letter-spacing: 0.05em;
}

.services-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 90px;
    height: 5px;
    background: #e7ba51;
    border-radius: 2px;
}



/* Card Grid Styles */
.card-grid-services {
    display: grid;
    /* Para 2 columns sa desktop, pantay ang lapad */
    grid-template-columns: repeat(2, 1fr); /* KEY: Dalawang column, pantay lapad */
    gap: 30px; /* Space between cards */
    margin-top: 50px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px; /* KEY: Limitahan ang max-width para maging 2-column layout */
                      /* Pwedeng i-adjust depende sa desired width ng 2 columns */
}

.card-services {
    background-color: transparent;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
}

.card-services:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.service-image:hover {
    transform: scale(1.03);
}

.services-card-title {
    font-family: 'Monospace text';
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e7ba51;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.services-card-text {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #cccccc;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    /* Maaari pa rin itong 2 columns dito kung gusto, or gawing 1 column earlier */
    .card-grid-services {
        grid-template-columns: repeat(2, 1fr); /* Still 2 columns on slightly smaller desktops/laptops */
        max-width: 650px; /* Adjust as needed for smaller screen 2-column layout */
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .services-title {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    .card-grid-services {
        grid-template-columns: 1fr; /* KEY: 1 column sa mobile */
        max-width: 350px; /* Adjust for 1 column */
        gap: 20px;
    }
    .card-services {
        padding: 15px;
    }
    .service-image {
        height: 180px;
    }
    .services-card-title {
        font-size: 1.3em;
    }
    .services-card-text {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 1.8em;
    }
    .card-grid-services {
        max-width: 90%;
    }
    .service-image {
        height: 160px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    padding-top: 50px;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
    text-align: left;
}

@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;
}