@charset "utf-8";


body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fdfdfd;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin-bottom: 50px;
}

header {
    background-color: #a8d8ea;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    color: #2a4d69;
}

h2 {
    color: black;
    font-size: 1.7rem;
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #2a4d69;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: #2a4d69;
    color: #fff;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h2 {
    color: #2a4d69;
}

.hero img {
    max-height: 350px;
    object-fit: cover;
}

.about {
    background-color: #b1e1e1;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.service-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.service-columns div {
    flex: 1;
    background-color: #c7e7e7;
    padding: 15px;
    border-radius: 8px;
}

table {
    width: 80%;
    margin: 0 auto;
    margin-top: 40px;
    border: 1px solid rgba(6, 58, 179, 0.808);
    outline: 4px solid rgb(29, 20, 101);
    outline-offset: 4px;   
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
}

th, td {
    height: 25px;
    border: 2px solid #262228;
    padding: 10px;
}

thead {
    background-color: rgb(131, 154, 185);
    color: rgb(15, 14, 14);
}


tbody tr:nth-of-type(even) {
    background-color: #bee4f1;
}
tbody tr:nth-of-type(odd) {
    background-color: #90cadf;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #c7e7e7;
    padding: 20px;
    border-radius: 8px;
}

label {
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 1rem;
}

input[type="submit"],
input[type="reset"] {
    background-color: #2a4d69;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
    background-color: #1e364d;
}

.cta-box {
    background-color: #a8d8ea;
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    margin: 50px 0;
    color: #2a4d69;
}

.cta-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    background-color: #2a4d69;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #1e364d;
}

footer {
    background-color: #a8d8ea;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    color: #2a4d69;
}
.about-box {
    background-color: #c7e7e7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

@media only screen and (max-width: 1100px) {

    section {
        margin-bottom: 45px;
    }

    .hero img {
        max-height: 300px;
        object-fit: cover;
    }


    .gallery {
         flex: 48%;
    max-width: 50%;
    }
    table {
        font-size: 1rem;
    }

    .cta-box {
        padding: 35px 20px;
    }
}

@media only screen and (max-width: 768px) {

    form {
        width: 100%;
        font-size: large;
    }

    fieldset {
        width: 100%;
        padding: 10px;
        margin: 0 0 15px 0;
        border: none;
    }

    label {
        display: block;
        width: 100%;
        margin-bottom: 5px;
        position: static;
        text-align: left;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        width: 100%;
        padding: 10px;
        height: auto;
        border-radius: 6px;
        position: static;
        font-size: 1rem;
    }

    input[type="radio"] {
        width: auto;
        margin-right: 8px;
        position: static;
    }

    .radio-group {
        display: flex;
        gap: 15px;
        align-items: center;
        margin-bottom: 10px;
    }

    input[type="submit"],
    input[type="reset"] {
        width: 100%;
        margin: 10px 0;
        padding: 12px;
        font-size: 1.2rem;
        float: none;
    }
table, tbody, tr, td, th{
    display: block;
}
thead, tfoot{
    display: none;
}
tbody td{
    position: relative;
    padding-left: 40%;
    height: auto;
}
td::before{
    content: attr(data-label);
    position: absolute;
    top: 0px;
    left: 0px;
    padding: 10px;
    width: 40%;
}
}

@media only screen and (max-width: 400px) {

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    p, li {
        font-size: 1rem;
        line-height: 1.5;
    }
    div.imgGallery{
    flex: 100%;
    max-width: 100%;
}

    section {
        margin-bottom: 40px;
    }

    .cta-box {
        padding: 25px 15px;
    }

    .cta-button {
        padding: 14px;
        font-size: 1.1rem;
    }
}