@import url('./styles.css');

/* =========================================
    SERVICE PAGE LAYOUT
========================================= */

/* ---------- Main Section ---------- */
div.main {
    padding: 100px 0 80px 0;
    margin: auto;
    max-width: 1000px;
    min-height: 500px;
    font-family: basic, sans-serif;
    animation: appear 1s ease forwards;
    font-weight: bold;
}

table#services-container{
    width:100%;
    border-spacing: 20px; 
}

div.title {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

/* Headings */
div.title h1 {
    font-size: 48px;
    color: #9B0718;
    font-family: arial black,arial-w01-black,sans-serif;
}

div.tagline h1 {
    font-size: 22px;
    color: #1e3a8a;
    font-family:arial black,arial-w01-black,arial-w02-black,arial-w10 black,sans-serif;
}

div.tagline h1.red {
    color: #9B0718;
}

div.title > a{
    margin: 10px 0px;
}

div.key-service{
    color: #9b0619;
}

td > p {
    text-align: justify;
    color: #5677A7;
}

td > ul{
    display: grid;
}

td > ul.short{
    grid-template-columns: repeat(2, auto);
}

td > ul > li{
    margin: 0 15px;
    word-wrap: break-word; /* Ensures long words wrap */
}

@keyframes appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ---------- Desktop (1200px - 1399px) ---------- */
@media (max-width: 1399px) {

    div.title h1 {
        font-size: 42px;
    }

    td > ul.short{
        grid-template-columns: repeat(1, auto);
    }
}

/* ---------- Laptop (992px - 1199px) ---------- */
@media (max-width: 1199px) {
    div.title h1 {
        font-size: 36px;
    }
}

/* ---------- Tablet (768px - 991px) ---------- */
@media (max-width: 991px) {

    div.title h1 {
        font-size: 32px;
    }

    div.tagline h1 {
        font-size: 20px;
    }

}

/* ---------- Mobile Large (576px - 767px) ---------- */
@media (max-width: 767px) {

    div.title h1 {
        font-size: 28px;
    }

    div.tagline h1 {
        font-size: 18px;
    }

    tr {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    

    td.title {
        padding-top: 20px;
    }
}

/* ---------- Mobile Small (below 576px) ---------- */
@media (max-width: 575px) {

    div.title h1 {
        font-size: 26px;
    }

    div.tagline h1 {
        font-size: 16px;
    }
}
