/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

body {
    background: #fff;
    color: blue;
    font-family: "Pridi", sans-serif;
    ;
}

a {
    color: #111;
    transition: 0.5s;
    text-decoration: none;
}

a:hover,
a:active,
a:focus {
    color: #18d36e;
    outline: none;
    text-decoration: none;
}

p {
    padding: 0;
    margin: 0 0 30px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Pridi", sans-serif;
    font-weight: 400;
    margin: 0 0 20px 0;
    padding: 0;
}

.back-to-top i {
    padding-top: 12px;
    color: #fff;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
    }
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

#header {
    transition: all 0.5s;
    padding: 13px 0;
    background: #fff;
    /*สีtabเมนู*/
}

#header.header-scrolled {
    background: #fff;
    /*สีtabเมนู*/
    padding: 13px 0;
}

#header .logo {
    font-size: 20px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-family: "Pridi", sans-serif;
    ;
    font-weight: 600;
    letter-spacing: 3px;
    padding-left: 0px;
    font-weight: 600;
}

#header .img {
    height: 40px;
    padding-left: 50px;
    /*​margin-left: ;*/
}

#header .logo a {
    color: blue;
    /*สีหัวเทศบาลนครนครศรีธรรมราช*/
}

#header .logo img {
    max-height: 80px;
}

@media (max-width: 992px) {
    #header .logo {
        font-size: 28px;
    }
}


/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/


/* Desktop Navigation */

.nav-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu>ul {
    display: flex;
}

.nav-menu>ul>li {
    position: relative;
    white-space: nowrap;
    padding: 10px 0 10px 28px;
}

.nav-menu a {
    display: block;
    position: relative;
    color: blue;
    /*สีเมนูก่อนคลิก*/
    transition: 0.3s;
    font-size: 15px;
    font-family: "Pridi", sans-serif;
    ;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-menu a:hover,
.nav-menu .active>a,
.nav-menu li:hover>a {
    color: #18d36e;
}

.nav-menu .drop-down ul {
    display: block;
    position: absolute;
    left: 14px;
    top: calc(100% + 30px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    padding: 10px 0;
    background: #fff;
    /*สีเมนูเมื่อคลิก*/
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    transition: 0.3s;
}

.nav-menu .drop-down:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
}

.nav-menu .drop-down li {
    min-width: 180px;
    position: relative;
}

.nav-menu .drop-down ul a {
    padding: 10px 20px;
    font-size: 13px;
    text-transform: none;
    color: blue;
}

.nav-menu .drop-down ul a:hover,
.nav-menu .drop-down ul .active>a,
.nav-menu .drop-down ul li:hover>a {
    color: #18d26e;
}

.nav-menu .drop-down>a:after {
    content: "\ea99";
    font-family: IcoFont;
    padding-left: 5px;
}

.nav-menu .drop-down .drop-down ul {
    top: 0;
    left: calc(100% - 30px);
}

.nav-menu .drop-down .drop-down:hover>ul {
    opacity: 1;
    top: 0;
    left: 100%;
}

.nav-menu .drop-down .drop-down>a {
    padding-right: 35px;
}

.nav-menu .drop-down .drop-down>a:after {
    content: "\eaa0";
    font-family: IcoFont;
    position: absolute;
    right: 15px;
}

@media (max-width: 1366px) {
    .nav-menu .drop-down .drop-down ul {
        left: -90%;
    }
    .nav-menu .drop-down .drop-down:hover>ul {
        left: -100%;
    }
    .nav-menu .drop-down .drop-down>a:after {
        content: "\ea9d";
    }
}


/* Mobile Navigation */

.mobile-nav-toggle {
    position: fixed;
    right: 15px;
    top: 15px;
    z-index: 9998;
    border: 0;
    background: none;
    font-size: 24px;
    transition: all 0.4s;
    outline: none !important;
    line-height: 1;
    cursor: pointer;
    text-align: right;
}

.mobile-nav-toggle i {
    color: #fff;
}

.mobile-nav {
    position: fixed;
    top: 55px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    z-index: 9999;
    overflow-y: auto;
    background: #fff;
    transition: ease-in-out 0.2s;
    opacity: 0;
    visibility: hidden;
    border-radius: 10px;
    padding: 10px 0;
}

.mobile-nav * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav a {
    display: block;
    position: relative;
    color: #333333;
    padding: 10px 20px;
    font-weight: 500;
    outline: none;
}

.mobile-nav a:hover,
.mobile-nav .active>a,
.mobile-nav li:hover>a {
    color: #18d26e;
    text-decoration: none;
}

.mobile-nav .drop-down>a:after {
    content: "\ea99";
    font-family: IcoFont;
    padding-left: 10px;
    position: absolute;
    right: 15px;
}

.mobile-nav .active.drop-down>a:after {
    content: "\eaa1";
}

.mobile-nav .drop-down>a {
    padding-right: 35px;
}

.mobile-nav .drop-down ul {
    display: none;
    overflow: hidden;
}

.mobile-nav .drop-down li {
    padding-left: 20px;
}

.mobile-nav-overly {
    width: 100%;
    height: 100%;
    z-index: 9997;
    top: 0;
    left: 0;
    position: fixed;
    background: rgba(26, 26, 26, 0.6);
    overflow: hidden;
    display: none;
    transition: ease-in-out 0.2s;
}

.mobile-nav-active {
    overflow: hidden;
}

.mobile-nav-active .mobile-nav {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-active .mobile-nav-toggle i {
    color: #fff;
}


/*--------------------------------------------------------------
# เนื้อหา
--------------------------------------------------------------*/

#intro {
    width: 100%;
    height: 65vh;
    background: #f7f7f7;
    /*สีพื้นหลังสไลด์*/
    overflow: hidden;
    position: relative;
}

@media (max-height: 65vh) {
    #intro {
        height: 65vh;
    }
}

#intro .carousel,
#intro .carousel-inner,
#intro .carousel-item,
#intro .carousel-item::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

#intro .carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/*#intro .carousel-item::before {
  content: '';
  background-color:
}*/

#intro .carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    top: 70px;
    left: 50px;
    right: 50px;
}

#intro .container {
    text-align: center;
}

#intro h2 {
    color: #111;
    margin-bottom: 30px;
    font-size: 48px;
    font-weight: 600;
}

@media (max-width: 768px) {
    #intro h2 {
        font-size: 28px;
    }
}

#intro p {
    width: 80%;
    margin: 0 auto 30px auto;
    color: #fff;
}

@media (min-width: 1024px) {
    #intro p {
        width: 60%;
    }
}

#intro .carousel-fade {
    overflow: hidden;
}

#intro .carousel-fade .carousel-inner .carousel-item {
    transition-property: opacity;
}

#intro .carousel-fade .carousel-inner .carousel-item,
#intro .carousel-fade .carousel-inner .active.carousel-item-left,
#intro .carousel-fade .carousel-inner .active.carousel-item-right {
    opacity: 0;
}

#intro .carousel-fade .carousel-inner .active,
#intro .carousel-fade .carousel-inner .carousel-item-next.carousel-item-left,
#intro .carousel-fade .carousel-inner .carousel-item-prev.carousel-item-right {
    opacity: 1;
    transition: 0.5s;
}

#intro .carousel-fade .carousel-inner .carousel-item-next,
#intro .carousel-fade .carousel-inner .carousel-item-prev,
#intro .carousel-fade .carousel-inner .active.carousel-item-left,
#intro .carousel-fade .carousel-inner .active.carousel-item-right {
    left: 0;
    transform: translate3d(0, 0, 0);
}

#intro .carousel-control-prev,
#intro .carousel-control-next {
    width: 10%;
}

@media (min-width: 1024px) {
    #intro .carousel-control-prev,
    #intro .carousel-control-next {
        width: 5%;
    }
}

#intro .carousel-control-next-icon,
#intro .carousel-control-prev-icon {
    background: none;
    font-size: 32px;
    line-height: 1;
}

#intro .carousel-indicators li {
    cursor: pointer;
}

#intro .btn-get-started {
    font-family: "Pridi", sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 8px 32px;
    border-radius: 50px;
    transition: 0.5s;
    margin: 10px;
    color: #fff;
    background: #18d26e;
}

#intro .btn-get-started:hover {
    background: #fff;
    color: #18d26e;
}


/* Sections Header
--------------------------------*/


/*หัวข้อใหญ่*/

.section-header h3 {
    font-size: 28px;
    color: #111;
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    margin: 0px;
}

.section-header h3::before {
    content: '';
    position: absolute;
    display: block;
    width: 120px;
    height: 1px;
    background: #ddd;
    bottom: 1px;
    left: calc(50% - 60px);
    margin-top: 1px;
}

.section-header h3::after {
    content: '';
    position: absolute;
    display: block;
    width: 40px;
    height: 3px;
    background: #18d26e;
    bottom: 0;
    left: calc(50% - 20px);
    margin-top: 1px;
}

.section-header p {
    text-align: center;
    padding-bottom: 30px;
    color: #333;
    margin-top: 1px;
}


/* Section with background
--------------------------------*/

.section-bg {
    background: #f7f7f7;
    /*สีพื้นหลังไฮไล*/
}


/* About Us Section
--------------------------------*/

#about .section-header {
    margin-bottom: 10px;
    /*ระยะห่างระหว่างหัวข้อกับรูป*/
}

#about {
    background: url("../img/about-bg.jpg") center top no-repeat fixed;
    background-size: auto;
    padding: 10px 0 10px 0;
    /*ระยะห่างระหว่างขอบ*/
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 9;
}

#about .container {
    position: relative;
    z-index: 10;
}

#about .about-col {
    background: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    /*ระยะห่างระหว่างรูป*/
}

#about .about-col .img {
    position: relative;
}

#about .about-col .img img {
    border-radius: 4px 4px 0 0;
}

#about .about-col .icon {
    width: 64px;
    height: 64px;
    padding-top: 8px;
    text-align: center;
    position: absolute;
    background-color: #18d26e;
    border-radius: 50%;
    text-align: center;
    border: 4px solid #fff;
    left: calc( 50% - 32px);
    bottom: -30px;
    transition: 0.3s;
}

#about .about-col i {
    font-size: 36px;
    line-height: 1;
    color: #fff;
    transition: 0.3s;
}

#about .about-col:hover .icon {
    background-color: #fff;
}

#about .about-col:hover i {
    color: #18d26e;
}

#about .about-col h2 {
    color: rgb(0, 0, 0);
    text-align: justify;
    text-justify: auto;
    font-weight: 600;
    font-size: 23px;
    padding: 0;
    margin: 10px 0 12px 0;
    /*ระยะห่างรูปกับหัวข้อข่าว*/
}

#about .about-col h2 a {
    color: blue
    /*สีพื้นอักษรข่าว6*/
}

#about .about-col h2 a:hover {
    color: #18d26e;
}


/*อักษรในกล่องข่าว อัลบั้มรูป*/

#about .about-col p {
    font-size: 14px;
    line-height: 24px;
    color: #333;
    margin-bottom: 0;
    padding: 0 20px 20px 20px;
}


/* Services Section
--------------------------------*/

#services {
    background: #fff;
    background-size: cover;
    padding: 10px 0 10px 0/*ระยะห่างระหว่างขอบ*/
}

#services .section-header {
    margin-bottom: 20px;
    /*ระยะห่างระหว่างหัวข้อกับรูป*/
}

#services .box {
    margin-bottom: 20px;
}

#services .icon {
    float: left;
}

#services .icon i {
    color: #18d26e;
    font-size: 36px;
    line-height: 1;
    transition: 0.5s;
}

#services .title {
    margin-left: 60px;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
}

#services .title a {
    color: blue
}

#services .box:hover .title a {
    color: #18d26e;
}

#services .description {
    font-size: 14px;
    margin-left: 60px;
    line-height: 24px;
    margin-bottom: 0;
}


/*พี่เอิร์ธ*/


/*ประชาสัมพันธ์เทศบาลนครนครศรีธรรมราช*/

a.filled-button {
    background-color: #a4c639;
    color: #111;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s;
}

a.filled-button:hover {
    background-color: #fff;
    color: #a4c639;
}


/* Testimonials Section
TODAY HIGHLIGHTS NAKHONCITY
--------------------------------*/

#testimonials {
    padding: 0px;
    /*ระยะห่างระหว่างขอบ*/
}

#testimonials .section-header {
    margin-bottom: 0px;
    /*ระยะห่างระหว่างหัวข้อกับรูป*/
}

#testimonials .testimonial-item {
    text-align: left;
}


/*รูปTODAY HIGHLIGHTS NAKHONCITY*/

#testimonials .testimonial-item .testimonial-img {
    max-width: 100%;
    max-height: 450px;
    position: relative;
    border-radius: 5%;
    border: 2px solid #fff;
    margin: 0 auto;
}


/*รูปมัลติมีเดีย*/

#testimonials .testimonial-item .testimonial-img1 {
    max-width: 100%;
    max-height: 100%;
    position: relative;
    border-radius: 1%;
    border: 2px solid #fff;
    margin-top: auto;
}

#testimonials .testimonial-item h3 {
    font-size: 10px;
    font-weight: bold;
    margin-top: px 0 px 0;
    color: #111;
}

#testimonials .testimonial-item h4 {
    font-size: 22px;
    color: #999;
    margin: 0 0 15px 0;
}


/*ปุ่มสไลด์*/

#testimonials .testimonial-item .quote-sign-left {
    margin-top: 1px;
    padding-right: 10px;
    display: noone;
    width: 10px;
}

#testimonials .testimonial-item .quote-sign-right {
    margin-top: 1px;
    padding-left: 10px;
    display: none;
    max-width: 100%;
    width: 10px;
}

#testimonials .testimonial-item p {
    font-style: italic;
    margin: 0 auto 30px auto;
}

@media (min-width: 992px) {
    #testimonials .testimonial-item p {
        width: 80%;
    }
}

#testimonials .owl-nav,
#testimonials .owl-dots {
    margin-top: 5px;
    text-align: center;
}

#testimonials .owl-dot {
    display: inline-block;
    margin: 0 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
}

#testimonials .owl-dot.active {
    background-color: #18d26e;
}


/*--------------------------------------------------------------
# tab
--------------------------------------------------------------*/

.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

.tab a {
    color: blue
}


/* Change background color of buttons on hover */

.tab a:hover {
    color: #18d26e;
}


/* Style the buttons inside the tab */

.tab button {
    background-color: #18d26e;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}


/* Change background color of buttons on hover */

.tab button:hover {
    background-color: #ddd;
}


/* Create an active/current tablink class */

.tab button.active {
    background-color: #ccc;
}


/* Style the tab content */

.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

.tabcontent a {
    color: blue
}

.tabcontent a:hover {
    color: rgb(34, 158, 22);
}


/*footer*/

#call-to-action {
    background: #C0BFBE;
    background-size: cover;
    padding: 20px;
    margin-bottom: 1px;
}

#call-to-action h3 {
    color: #111;
    font-size: 18px;
    font-weight: 100;
}

#call-to-action h2 {
    color: #111;
    font-size: 25px;
    font-weight: 100;
}

#call-to-action p {
    color: #111;
    margin-bottom: 5px;
}

#call-to-action .fa {
    font-size: 40px;
    padding: 5px;
}