:root {
    --HARS-Red :rgb(195, 0, 47);
    --HARS-Red-2 :rgb(163,10,26);
    --HARS-Yellow :rgb(255, 209, 63);
    --HARS-Gray :rgb(99, 102, 106);
    --HARS-Black :rgb(0, 0, 0);
    --TH-Font : 'Silapakorn72', sans-serif;
    --EN-Font : 'Century Gothic', sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--TH-Font);
    font-size: 11.5pt;
    font-weight: 300;
    line-height: 1.7;
}

a {
    color: var(--HARS-Black);
    text-decoration: none;
    background-color: transparent;
}

a:hover{
    color: var(--HARS-Red);
    text-decoration:none !important;
}

.text-red {
    color: var(--HARS-Red);
}

.text-yellow {
    color: var(--HARS-Yellow);
}

.text-gray {
    color: var(--HARS-Gray);
}

.bg-white {
    background-color: #ffffff;
    color: #000;
}

.bg-red {
    background-color: var(--HARS-Red);
    color: #ffffff;
}

.bg-yellow {
    background-color: var(--HARS-Yellow);
    color: var(--HARS-Black);
}

.bg-gray {
    background-color: var(--HARS-Gray);
    color: #ffffff;
}

.fw-300 {
    font-weight: 300;
}

.fw-normal {
    font-weight: normal;
}

.fw-bold {
    font-weight: bold;
}

.Title-list {
    color: linear-gradient(45deg, var(--HARS-Red), var(--HARS-Yellow));
}

.page-section {
    padding: 1rem 0;
}

hr, .hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px dashed rgba(0,0,0,.1);
}

.clear-fix, .clearfix{
    clear:both;
}

/* NAVBAR */
#header {
    display: block;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: auto;
    z-index: 100;
}

.navbar-brand {
    display: inline-block;
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
    font-size: 1.25rem !important;
    line-height: inherit !important;
}

.logo-HARS img {
    height: 50px;
    padding-left: 25px;
}

#mainNav {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    background-color: #fff;
    transition: background-color .2s ease;
}

#mainNav .navbar-nav .nav-item .nav-link {
    font-size: 13pt;
    padding: 0 11px;
    font-weight: 300;
    color: var(--HARS-Black);
    height: 85px;
}

.first-section {
    margin-top: 102px;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
    font-size: 13pt;
    color: var(--HARS-Red);
}

#mainNav .navbar-nav .nav-item .nav-link.active {
    font-weight: bold;
}

/* Dropdown Fullscreen Menu */
#fullScreenMenu .menu-title {
    font-weight: bold;
    color: var(--HARS-Red);
}

#fullScreenMenu .sub-menu-overlay {
    list-style-type: none;
    padding-left: 0; 
}

#fullScreenMenu .sub-menu-overlay li::before {
    content: "\f192"; 
    font-family: "Font Awesome 6 Pro";
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

.menu-desktop {
    display: flex;
    margin-right: 20px;
    align-items: center;
}

.bg-white {
    background-color: #ffffff;
    color: #000;
}

/*  Footer  */
.logo-HARS-footer img {
    height: 55px;
    padding-left: 25px;
}

.bg-footer {
    /* background-color: var(--HARS-Red); */
    background-color: #ffffff;
    font-size: 15px;
    border-top: 2px solid #eaeaea ;
}

.bg-footer-2{
    background-color: var(--HARS-Red-2);
    font-size: 14px;
}

/* #footer a,
#footer a:hover {
    color: #ffffff;
} */

#footer-menu {
    padding-left: 15px;
}

#footer-menu .footer-link {
    list-style: none;
    border-bottom: 1px dashed rgba(255,255,255,.1);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

#footer-menu .footer-link a:hover {
    color: var(--HARS-Yellow);
}

#footer-menu .footer-link-icon {
    display: inline-block;
    list-style: none;
    font-size: 1.5rem;
    margin-right: 10px;
}

.text-footer-HARS,
.text-footer-HARS a.header-link {
    color: var(--HARS-Yellow);
    font-size: 18pt;
}

.text-footer-HARS-2 {
    color: var(--HARS-Yellow);
    font-size: 14pt;
}

/*  carousel  */
#carouselExampleIndicators {
    transition:
    background-color 0.3s ease,
    border 0.3s ease,
    border-radius 0.3s ease,
    box-shadow 0.3s ease;
}

.carousel-fade {
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        border-radius 0.3s ease,
        box-shadow 0.3s ease;
}

.carousel-indicators li {
    width: 8px;
    height: 8px;
    background-color: var(--HARS-Yellow);
    border-radius: 99999px !important;
    transition: all .3s ease;
    margin: 0 4px;
    z-index:3
}

.carousel-indicators li.active {
    width: 24px;
    background-color: var(--HARS-Yellow);
}

/* button */
.btn-HARS-red--outline {
    color: rgb(163,10,26);
    border: 1px solid rgb(163,10,26);
    background-color: transparent;
    padding: .1rem .375rem;
    font-size: .675rem;
    line-height: 1.0rem;
    border-radius: .125rem;
}

.btn-HARS-red--outline:hover,
.btn-HARS-red--outline:focus {
    color: #FFFFFF;
    border: 1px solid rgb(163,10,26);
    background-color: rgb(163,10,26);
}

.box-btn {
    background-color: rgb(193, 27, 50);
    padding: 1.25rem 0.95rem;
    font-size: 1.45rem;
}

.box-btn:hover {
    background-color: rgba(148, 21, 38, 1);
    padding: 1.25rem 0.95rem;
    font-size: 1.45rem;
}

/* News Section */
.news .card.card-news,
.news .card-img-top.news-img {
    border-radius: 0;
    border: 0;
}

.card-news {
    overflow: hidden;
    background-color: transparent;
}

.card-news .card-body {
    padding-left: 0;
    padding-right: 0;
}

.news .card-img-top.news-img {
    height: 217px;
}

.news img.card-img-top.news-img {
    transition: transform 0.3s ease;
}

.news img.card-img-top.news-img:hover {
    transform: scale(1.05);
}

/* Indentity Section */
.identity .column-right {
    padding: 5rem 2.75rem;
}

a.identity, a.identity:hover {
    color: #fff;
}

ul.-about--list-menu {
    list-style: none;
    padding-left: 0;
}

ul.-about--list-menu .-item--list {
    padding-top: .45rem;
    padding-bottom: .45rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.5);
    font-size: 1.55rem;
}

ul.-about--list-menu .-item--list a:hover {
    font-weight: bold;
}

.banner {
    height: 14.5rem;
    background-color: rgba(224, 0, 27, 0.6);
    background-image: linear-gradient(135deg,rgba(224, 0, 27, 0.6),rgba(255, 201, 41, 0.6));
}

.banner-red {
    height: 14.5rem;
    background-color: rgba(193, 27, 50);
}

.breadcrumb {
    background-color: transparent;
    font-size: 10pt;
}

.breadcrumb .breadcrumb-item.first::before {
    content: "";
    display: inline-block;
    width: 15px;   /* กำหนดความกว้าง */
    height: 15px;  /* กำหนดความสูง */
    background-image: url(/vendor/images/icon-breadcrumb.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "→";
    color: #000;
    padding: 0 0.5rem 0 0;
}

.service-box {
    height: 16rem;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 5px solid #ffffff;
}

/* overlay ปกติ */
.service-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    transition: opacity .3s ease;
}

/* overlay ตอน hover */
.service-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(224, 198, 81, 0.95) 0%,
        rgba(227, 7, 7, 0.95) 100%
    );
    opacity: 0;
    z-index: 2;
    transition: opacity .3s ease;
}

.service-box:hover::after {
    opacity: 1;
}

/* content */
.service-box a {
    position: relative;
    z-index: 3;
    display: block;
    height: 100%;
    text-decoration: none;
}

.service-box h2,
.service-box p {
    transition: transform .3s ease, opacity .3s ease;
}

/* hover ขยับข้อความ */
.service-box:hover h2,
.service-box:hover p {
    transform: translateY(-6px);
}



/*-------------------mobile----------------*/
#mainNav .navbar-nav .nav-item .nav-link:active,
#mainNav .navbar-nav .nav-item .nav-link:focus {
    box-shadow: none !important;
    outline: none;
}

@media only screen and (min-width: 200px) and (max-width: 576px) {
    /* For tablets: */
    .container {
        max-width: 690px;
    }

    .boxMainMenu {
        display: block;
        position: relative;
        height: 70px;
        background-color: #ffffff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    .first-section {
        margin-top: 70px !important;
    }

    /* .logo-HARS {
        display: block;
        position: absolute;
        left: 0px;
        right: 0px;
        margin: auto;
        top: 2px;
        width: 10PX;
        height: 40px;
    } */

    .logo-HARS img {
        height: 40px !important;
        width: auto !important;
        padding-left: 15px !important;
    }

    /* Icon Bars */
    .navbar-light .navbar-toggler {
        color: #000;
        border-color: transparent;
        background: transparent;
        font-size: 1.5rem;
    }

    .menu-desktop {
        display: none;
    }

    .w-100 {
        width: 100% !important;
        height: 40vh;
    }

    .page-section {
        padding: 1rem 0;
    }

    .h-100 {
        height: 25vh !important;
    }

    .h-25 {
        height: 75% !important;
    }

    .box-announce-mobile {
        display: block;
    }

    .box-announce-desktop {
        display: none;
    }

    .identity .identity-col-left {
        padding-left: 0;
        padding-right: 0;
    }
}

@media only screen and (min-width: 576px) and (max-width: 768px) {
    /* For desktop: */
    .boxMainMenu {
        display: block;
        position: relative;
        height: 70px;
        background: #ffffff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    .first-section {
        margin-top: 70px !important;
    }
 
    /* .logo-HARS {
        display: block;
        position: absolute;
        left: 0px;
        right: 0px;
        margin: auto;
        top: 2px;
        width: 75%;
        height: 40px;
    } */

    .logo-HARS img {
        height: 40px !important;
        width: auto !important;
        padding-left: 15px !important;
    }

    .navbar-light .navbar-toggler {
        color: #000;
        border-color: transparent;
        background: transparent;
        font-size: 1.5rem;
    }

    .menu-desktop {
        display: none;
    }

    .w-100 {
        width: 100% !important;
        height: 45vh;
    }

    .h-100 {
        height: 40vh !important;
    }

    .h-25 {
        height: 50% !important;
    }

    .box-announce-mobile {
        display: block;
    }

    .box-announce-desktop {
        display: none;
    }

    .box-announce-home-mobile {
        margin-top: 270px;
        display: block;
    }

    .box-announce-home-desktop {
        display: none;
    }
    
    .identity .identity-col-left {
        padding-left: 0;
        padding-right: 0;
    }
}

@media only screen and (min-width: 576px) and (max-width: 991px) {
    /* For desktop: */
    .boxMainMenu {
        display: block;
        position: relative;
        height: 70px;
        background: #ffffff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    .first-section {
        margin-top: 70px !important;
    }

    /* .logo-HARS {
        display: block;
        position: absolute;
        left: 0px;
        right: 0px;
        margin: auto;
        top: 2px;
        width: 75%;
        height: 40px;
    } */

    .logo-HARS img {
        height: 40px !important;
        width: auto !important;
        padding-left: 15px !important;
    }

    .navbar-light .navbar-toggler {
        color: #000;
        border-color: transparent;
        background: transparent;
        font-size: 2.5rem;
    }

    .menu-desktop {
        display: none;
    }

    .w-100 {
        width: 100% !important;
        height: 45vh;
    }

    .h-100 {
        height: 20vh !important;
    }

    .h-25 {
        height: 50% !important;
    }

    .box-announce-mobile {
        display: block;
    }

    .box-announce-desktop {
        display: none;
    }

    .box-announce-home-mobile {
        display: block;
        width:100%;
        margin-top: 480px;
    }

    .box-announce-home-desktop {
        display: none;
    }

    .identity .identity-col-left {
        padding-left: 0;
        padding-right: 0;
    }
}
