/*  import google fonts */

:root {
    --primary: #001327;
    --blue-gradient: #011a34;
    --purple-gradient: #220b42;
    --warning: #ffa500;
    --danger: #dc3545;
    --white: #FFF;
    --dark: #161718;
}


/* all similar content styling codes */

.max-width {
    max-width: 1300px;
    padding: 0 20px;
    margin: auto;
}

section {
    padding: 100px 0;
}

section .title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    text-transform: uppercase;
}

section .title::after {
    position: absolute;
    bottom: -8px;
    left: 50%;
    font-size: 20px;
    color: var(--warning);
    padding: 0 5px;
    transform: translateX(-50%);
}

.title-header {
    margin: 50px 0;
    text-align: center;
}

.title-header h1 {
    font-size: 48px;
}

.title-header h1 span {
    color: var(--warning);
}

.services .serv-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* services section styling */

.services .title::before {
    color: var(--primary);
    font-weight: bold;
}

.services .title::after {
    content: "Our Service";
}

.services .serv-content .card {
    width: calc(33% - 20px);
    background: var(--primary);
    text-align: center;
    border-radius: 6px;
    padding: 50px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.services .serv-content .card:hover {
    background: var(--blue-gradient);
}

.services .serv-content .card .box {
    transition: all 0.3s ease;
}

.services .serv-content .card:hover .box {
    transform: scale(1.05);
}

.services .serv-content .card i {
    font-size: 50px;
    color: var(--warning);
    transition: color 0.3s ease;
}

.services .serv-content .card:hover i {
    color: #fff;
}

.services .serv-content .card .text {
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
    color: var(--white);
}

.services .serv-content .card p {
    color: var(--white);
}

.services .my-work {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 25px;
}

.services .my-work .card {
    margin: 15px;
}

.services .my-work .card img {
    width: 100%;
    border-radius: 5px;
}

.services .box-card {
    margin: 15px;
    padding: 25px;
    background: #FFF;
    color: #222;
    border-radius: 10px;
}

/* content section styling */
section.content {
    padding: 50px 0;
}

section.content iframe {
    width: 100%;
    height: auto;
}

section.content video {
    width: 100%;
    height: 360px;
    object-fit: cover;
    /* ครอบคลุมพื้นที่ทั้งหมดโดยอัตราส่วนภาพไม่เสีย */
}

section.content .grid-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 50px 0;
}

section.content .grid-content .box-item {
    padding: 20px;
    color: var(--dark);
    margin: auto;
}

section.content .grid-content .box-img img {
    width: 100%;
    border-radius: 10px;
}

section.content .layout-grid-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 50px 0;
}

section.content .layout-grid-content .card {
    margin: 15px;
    border: none;
}

section.content .layout-grid-content .card img {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

section.content .content-text {
    margin: 25px 0;
}

section.content .content-text img {
    width: 100%;
    border-radius: 5px;
}

section.content .content-text table {
    width: 100%;
}

@media screen and (max-width: 767px) {
    .title-header {
        margin: 25px 0;
    }

    .services .serv-content {
        display: block;
    }

    .services .serv-content .card {
        width: 100%;
    }

    .services .serv-content .card .text {
        font-size: 22px;
    }

    .services .serv-content .card p {
        font-size: 16px;
    }

}

@media screen and (min-width: 767px) and (max-width: 1023px) {
    .services .serv-content {
        display: block;
    }

    .services .serv-content .card {
        width: 100%;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {}