:root {
    --primary-color: #003285;
}

/* .devicon-plain--postgresql-wordmark {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
} */

#icon-style{
    color: #1d58a5;
    font-size: xx-large
    
}

/* General Styles */
.myColor {
    background-color: #1d58a5;
}

#services_main {
    /* font-family: 'Roboto', sans-serif; */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#services_header {
    text-align: center;
    padding: 20px;
    color: #f4f4f4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Category Title Styles */
.category-title {
    font-size: 32px;
    font-weight: bold;
    /* color: var(--primary-color); */
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    width: 100%;
}

/* Service Styles */
.service {
    position: relative;
    padding: 20px;
    padding-bottom: 60px;
    border: 1px solid #e0e0e0;
    margin: 10px;
    min-height: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    background-color: var(--service-background-color);
    /* color:#666; */
    border-radius: 10px;
}

/* .dark-mode .service {
    background-color: var(--project-item-background-color);
    border: solid 1px #fff;
} */

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 6px #1d58a5;
}

.service img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

#service-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

#service-description {
    font-size: 16px;
    /* color: #666; */
    margin-bottom: 20px;
    text-align: justify;
}

#service-tasks-title {
    font-size: 18px;
    font-weight: bold;
    /* color: #333; */
    margin-top: 20px;
    margin-bottom: 10px;
}

#service-tasks-description {
    font-size: 16px;
    /* color: #666; */
    font-weight: normal;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 2px solid #1d58a5;
    width: 80%;
    color: var(--bs-primary);
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    padding: 6px 10px;
}

.close:hover {
    color: #ff0000;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Base styles for the button */
.btn_learn_more {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 10px 20px;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #1d58a5;
    border: 2px solid #1d58a5;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn_purchase {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 10px 20px;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #1d58a5;
    border: 2px solid #1d58a5;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn_learn_more:hover, .btn_purchase:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.cta-service {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #1d58a5;
    border: solid 1px var(--secondary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    transform: rotate(-90deg);
    transform-origin: left bottom;
    white-space: nowrap;
    margin: 20px;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.cta-service:hover {
    background-color: var(--primary-color);
    font-weight: bold;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .cta-service {
        font-size: 14px;
        padding: 8px 16px;
        bottom: 20px;
        left: 20px;
    }

    #services {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 15px;
    }

    .service {
        padding-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .cta-service {
        font-size: 12px;
        padding: 6px 12px;
        bottom: 30px;
        left: 30px;
    }

    #services {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px;
    }

    .service {
        padding-bottom: 40px;
    }
}