/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
}

a {
    text-decoration: none;
}

/* Remove default padding */
ul,
ol {
  padding: 0;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}


@font-face {
    font-family: 'inter';
    src: url('../fonts/Inter-Regular.otf');
    font-display: swap;
}

body {
    font-weight: var(--font-weight--500);
    font-family: 'inter';
    font-size:var(--font-size--16);
    color: var(--primary-black);
    font-style: normal;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

.addimg .p-3 {
	padding: 30px !important;
	line-height: 2;
}

.dropdown-item.active, .dropdown-item:active {
    color: #1e2125;
    background-color: #e9ecef;
}

.highcharts-credits {
    display: none;
}

.ajax_waiting {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.ajax_waiting.loading {
    display: flex;
}
  
.loader {
    border: 10px solid var(--primary-white);
    border-top: 10px solid var(--primary-blue);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
}
  
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scroll-top {
    display: none;
    position: fixed;
    z-index: 90;
    bottom: 30px;
    right: 16px;
    background: var(--primary-blue);
    text-align: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    line-height: 37px;
    -moz-border-radius: 100%;
    -webkit-border-radius: 100%;
    border-radius: 100%;
}



/* *****************___header___************** */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
}
.navbar-toggler-icon {
    width: 52px;
    height: 36px;
}
.navbar-toggler-icon>img {
    width: 52px;
    height: 36px;
}
.navbar-toggler {
    padding:0px
}
.navbar-toggler:focus {
    box-shadow: none;
    padding:0px
}
.navbar-toggler[aria-expanded="true"]:focus {
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25)
}

.navbar .dropdown-fullwidth {
    position: static!important;
}

.navbar .dropdown-fullwidth .dropdown-menu {
    left: 0;
    margin: 1.25rem auto;
    max-width: 1140px;
    max-height: calc(100vh - 100px);
    overflow: auto;
    padding: 1rem 0;
    right: 0;
    top: 50px;
    border: none;
    border-radius: 0;
}

.navbar .dropdown-fullwidth .dropdown-menu .dropdown-item {
    padding-left: 2rem;
    position: relative;
    font-size: var(--font-size--14);
}

.navbar .dropdown-fullwidth .dropdown-menu .dropdown-item::before {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    content: "";
    width: 14px;
    height: 14px;
    background-image: url(../images/weather_today/arrow_right_header.svg);
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
}

.navbar-nav .dropdown-menu {
    position: static;
}

.navbar .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0 2px rgba(145,158,171,.2), 0 12px 24px -4px rgba(145,158,171,.12);
    color: var(--fc-gray-600);
    line-height: 1.2rem;
    min-width: 12rem;
    top: 40px;
}

.header__wrapper .header__top {
    background-color: #e4faff;
}

.header__wrapper .header__bottom {
    background-color: #004860
}

.header__wrapper .header__bottom .desktop .nav-link {
    color: #E0E0E0;
    font-size: var(--font-size--sub-title);
    padding: 8px 20px;
    font-weight: var(--font-weight--400);
}

.header__wrapper .header__bottom .desktop .nav-link:hover,
.header__wrapper .header__bottom .desktop .nav-link.active {
    color: var(--primary-white)
}

.dropdown-menu.province:hover ~ .nav-link.dropdown-toggle {
    color: var(--primary-white)
}

.header__wrapper .header__bottom .desktop .nav-item:first-child .nav-link {
    padding-left: 0px;
}

.header__wrapper .header__bottom .desktop .nav-item:not(:first-child) .nav-link{
    position: relative;
}

.header__wrapper .header__bottom .desktop .nav-item:not(:first-child) .nav-link::before {
    position: absolute;
    left: 0;
    top: 50%;
    content: '';
    transform: translateY(-50%);
    height: 50%;
    border-left: 1px solid var(--border-color-gray);
}

.header__wrapper .input-group-append {
    position: absolute;
    right: 0;
}

.header__wrapper .input-group-append button:focus {
    outline: none;
    box-shadow: none;
}

.header__wrapper .input-group {
    position: relative;
}

.clear-input-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: none;
    cursor: pointer;
}

.header__wrapper .input-group .dropdown-result-search {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 250px;
    overflow: auto;
    background-color: var(--primary-white);
    border-radius: var(--radius-button)!important;
    z-index: 10;
    padding: 6px 0px;
}

.header__wrapper .input-group .dropdown-result-search li a {
    color: var(--primary-black);
    text-decoration: none;
    display: block;
    width: 100%;
    padding:3px 20px;
}

.header__wrapper .input-group .dropdown-result-search li:hover>a{
    color: var(--primary-white);
    background-color: var(--primary-blue);
}

.header__wrapper .input-group input {
    border: 1px solid var(--border-color-gray--lighter);
}

#dropdown-max-mb {
    height: 320px;
    overflow: auto;
    width: 100%;
}

@media (min-width: 992px) {
    .navbar-expand-lg .offcanvas {
        background-color: transparent!important;
        border: 0!important;
        flex-grow: 1;
        height: auto!important;
        position: static;
        transform: none!important;
        transition: none;
        visibility: visible!important;
        width: auto!important;
        z-index: auto;
    }

    .navbar .nav-item .dropdown-menu{  display:block; opacity: 0;  visibility: hidden; transition:.3s; margin-top:0;  }
    .navbar .nav-item:hover .dropdown-menu{ transition: .3s; opacity:1; visibility:visible; top:100%; transform: rotateX(0deg); }
}

@media (max-width: 992px) {
    .navbar .navbar-nav .nav-item .nav-link {
        border-bottom: 1px solid var(--border-color-gray--lighter);
    }
}

/* *********----end header----************* */



/* **************---footer---************* */

footer {
    background: #D3DFE7;
}

footer .title__footer {
    padding-top: 33px;
}

footer .list__social__footer {
    display: grid;
    grid-template-columns: repeat(6,28px);
    grid-gap: 8px;
}

footer .list__social__footer .item>img {
    width: 28px;
    height: 28px;
}

footer .list__link__footer li>a {
    text-decoration: none;
    color: #00426D
}

/* *********----end footer----************* */


/* *************paginations********* */
ul.pagination li .page-link {
    color: var(--primary-black);
    padding: 3px 10px;
    border-left-color: transparent!important;
    border-right-color: transparent!important;
}

ul.pagination li:last-child .page-link {
    border-right-color: #dee2e6!important;
}

ul.pagination li:first-child .page-link {
    border-left-color: #dee2e6!important;
}

ul.pagination li.active .page-link {
    background-color: var(--primary-blue);
    color: var(--primary-white);
}


/* *********----ModalSetting----************* */


#myModalSettings .modal-content {
    color: var(--primary-black);
    border: none;
}

#myModalSettings .modal-body {
    background: var(--primary-white);
    padding: 0
}

#myModalSettings .modal-body .toggle-switch {
    background: #E0E0E0;
    width: 70px;
    float: right;
    border-radius: 6px;
    padding: 4px
}

#myModalSettings .modal-body .toggle-switch span {
    cursor: pointer
}

#myModalSettings .modal-body .toggle-switch span.active {
    background: var(--primary-blue);
    width: 27px;
    text-align: center;
    border-radius: 6px
}

#myModalSettings .modal-header {
    background: var(--primary-blue);
    border: none;
    color: var(--primary-white)
}

#myModalSettings .modal-header .btn-close {
    color: #fff
}

#myModalSettings .modal-body select {
    border: none;
    padding-right: 18px;
    position: absolute;
    right: 29px;
    background: var(--primary-white) url(../images/weather_today/arrow_right.svg) no-repeat;
    background-size: 16px;
    background-position: right 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px
}

#myModalSettings .modal-body select:focus-visible {
    border:none;
    outline:none;
}

#myModalSettings .modal-body table {
    margin-bottom: 0
}

#myModalSettings .modal-body table tr {
    border: none;
}

#myModalSettings .modal-body table tr td {
    padding: 15px 28px;
    border: none;
}


#myModalSettings .modal-body table tr td:first-child {
    width: 90%;
    display: flex;
    align-items: center;
}

#myModalSettings .modal-body table tr td:first-child>img {
    width: 28px;
    height: 28px;
}

#myModalSettings .modal-body table tr td:first-child>p {
    color: var(--primary-gray--darker);
    font-size: 16px;
    margin-left: 12px;
    word-wrap: break-word
}

#myModalSettings .modal-body table tr:first-child td {
    border-top: none
}

#myModalSettings .modal-body .toggle-switch span:first-child.active {
    float: left;
    color: var(--primary-white)

}

#myModalSettings .modal-body .toggle-switch span:last-child.active {
    float: right;
    color: var(--primary-white)
}

#myModalSettings #setting-config-ok {
    color: var(--primary-white);
    background-color: var(--primary-blue);
    padding: 6px 30px;
    border-radius: var(--radius-button);
    font-size: var(--font-size--sub-title);
}

/* *********----end ModalSetting----************* */



/* **********----Table Weather-----************** */

.table__weather {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap: var(--row-gap--table-weather) var(--column-gap--table-weather);
}

.table__weather .table__weather__item {
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-gap: 24px;
}

.table__weather .table__weather__item .icon {
    width: 100%;
    aspect-ratio: 1;
    background-color: #4c9ab4;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.table__weather .table__weather__item .icon>img {
    width: 43px;
    aspect-ratio: 1;
}

.table__weather .table__weather__item .information {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.table__weather .table__weather__item .information .main {
    font-weight: var(--font-weight--600);
    font-size: 24px;
    line-height: 1.5;
}

.table__weather .table__weather__item .information .sub {
    color: #E0E0E0;
    font-size: 14px;
}

/* **********----End Table Weather-----***************/




/* **********----Layout Article-----***************/

.layout__article .item img.thumb-nail {
    width: 100%;
    height: auto;
    aspect-ratio: 8/5;
}

.layout__article .item img.thumb-nail:hover {
    transform: scaleX(1.03);
    transition: 0.5s;
}

.layout__article .item .title__article{
    padding-top: 16px;
    font-size: var(--font-size--20);
    font-weight: var(--font-weight--700);
    color: var(--primary-black)
}

.layout__article--vertical.side-bar.layout__article .title__article{
    font-size: var(--font-size--16);
}

.layout__article .item .title__article:hover {
    color: var(--primary-blue)
}

.layout__article .item .description__article {
    font-size: var(--font-size--16);
    color: var(--primary-gray);
    overflow: hidden;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.top-post-area.layout__article .item {
    position: relative;
}

.top-post-area .item .feature__image {
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    overflow: hidden;
}

.top-post-area .item .feature__image .overlay__bg {
    background-image: linear-gradient(transparent, rgba(0,0,0,.8));
}

.top-post-area .item .feature__image .overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.top-post-area .top-post-details {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
}

.top-post-area .item:hover .feature__image img {
    transform: scale(1.04);
}

.top-post-area .item:hover .overlay__bg {
    display: none;
}

.top-post-area .top-post-details .title__article {
    color: var(--primary-white);
}

.top-post-area .top-post-right .top-post-details .title__article {
    font-size: var(--font-size--16);
}

.top-post-area .top-post-details hr {
    border-top: 1px dashed var(--primary-white);
    height: 0px;
    margin: 0.5rem 0 ;
}

.top-post-area .top-post-details .tag,
.layout__article--vertical .tag,
.list__tag .item {
    background: var(--primary-blue);
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: var(--font-size--14);
}

/* **********----End Layout Article-----***************/

#detail__current {
    border-radius: var(--radius-content--primary);
    background-color: var(--bg-main);
    color: var(--primary-white);
    padding: var(--padding-box-section);
    padding-left: 50px;
}

#detail__current .card__current_temp .text-right > img{
    width: 90px;
    height:90px
}
#detail__current .min__max {
    padding-top: 11px;
    padding-bottom: 23px;
}


/* ---------*******list weather city-------*******/

.list__weather--city {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-gap: 28px 12px
}

.list__weather--city .item {
    padding: 14px 4px;
    border-radius: var(--radius-content--secondary);
    background-color: #F3F3F3;
    border: 2px solid #F3F3F3;
    color: var(--primary-black);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list__weather--city .item .name {
    font-size: var(--font-size--16);
    font-weight: var(--font-weight--600);
}

.list__weather--city .item:hover {
    background: linear-gradient(to bottom, #fff 96%, var(--primary-blue) 4%);
}

.list__weather--city .item>img {
    width: 74%;
    aspect-ratio: 1;
}

/* ---------*******end-list weather city-------*******/


.main__title--wt {
    text-transform: uppercase;
    font-weight:var(--font-weight--600);
    font-size: var(--font-size--20);
    padding-bottom: var(--pb-main-title);
    line-height: 1.4;
}

.title--see__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--pb-main-title);
}

.title--see__more .see__more {
    position: relative;
    padding-right: 18px;
    color: var(--primary-blue);
}

.title--see__more .see__more::after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    content: "";
    width: 18px;
    height: 18px;
    background-image: url(../images/weather_today/arrow_right_see_more.svg);
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
}


