:root {
    --as-mobilemenu-menu-text-color: rgba(110, 109, 122, 1);
    --as-mobilemenu-backgroundcolor: rgba(248, 247, 244, 1);
    --as-stick-header-bg-color: var(--primary-color);
}

body {
    font-family: "Noto Sans Thai", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 95;
    /*line-height: 1.3rem;*/
    /*transition: padding-top 0.3s ease;*/
}

a {
    text-decoration: none;
    color: #333;
}

/* Color & Logo Classes */
.bg-green {
    background-color: #006633;
}

.bg-white {
    background-color: white;
}

.bg-orange {
    background-color: #ff9900;
}

.text-yellow {
    color: #ffcc00;
}

.text-green {
    color: #006633;
}

.text-blue {
    color: blue;
}

.text-red {
    color: red;
}

.logo {
    width: 300px;
    transition: width 0.3s ease;
}

/* Navigation & Header */
#nav-normal a.navbar-brand {
    display: none;
}

#nav-sticky a.navbar-brand {
    display: block;
}

.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--as-stick-header-bg-color);
    animation: slideInDown 0.7s forwards;
    z-index: 1020;
    display: flex;
}

.header-sticky.inactive {
    -webkit-animation-name: stickyOutUp;
    animation-name: stickyOutUp;
}

#sticky-header {
    border-bottom: 1px solid darkgray;
}

/* Toggler Icon & Buttons */
.navbar-toggler,
.offcanvas-header .btn-close {
    box-shadow: none;
    border: 0;
}

.navbar-toggler {
    width: 30px;
    height: 30px;
    position: relative;
    transition: 0.5s ease-in-out;
}

.toggler-icon .inner,
.toggler-icon .inner::before,
.toggler-icon .inner::after {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #006633;
    transition: 0.25s ease-in-out;
    content: "";
}

.toggler-icon .inner::before {
    top: -10px;
}

.toggler-icon .inner::after {
    bottom: -10px;
}

#sticky-header .toggler-icon .inner,
#sticky-header .toggler-icon .inner::before,
#sticky-header .toggler-icon .inner::after {
    background: #fff;
}

/* Toggler 1 Animations */
.toggler1-icon::before {
    transform: rotate(45deg);
}

.toggler1-icon .inner {
    opacity: 0;
}

.toggler1-icon::after {
    transform: rotate(-45deg);
}

/* Layout & Sections */
.hero {
    height: 70vh;
    background-size: cover;
    background-position: center;
}

.quick-links {
    display: flex;
    align-items: center;
    height: 14vh;
}

.quote-section {
    margin-top: 50px;
    text-align: center;
    background-color: #fee100;
}

.quote-section-img {
    min-width: 100%;
    min-height: 100%;
}

.full-header {
    min-height: 100vh;
}

.as-megamenu-section {
    border-top: 1px solid var(--bs-border-color);
}

.circle {
    border-radius: 100%;
}

/* Back to Top & Social Links */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    padding: 15px;
    line-height: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#backToTop>i {
    font-size: 20px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
}

#backToTop.show {
    display: flex;
    animation: fadeInUp 0.3s ease-out;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.readmore {
    margin-bottom: 0px;
    text-align: end;
}

.social-links {
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.social-links.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Dropdown & Mega Menu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.mega-panel.dropdown-menu {
    width: 100%;
    max-width: 800px;
    padding: 20px 15px;
    border-radius: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.mega-col .mega-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.mega-col .list-unstyled li a.dropdown-item {
    padding: 0.5rem 0;
    color: #555;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
}

.mega-col .list-unstyled li a.dropdown-item:hover,
.mega-col .list-unstyled li a.dropdown-item:focus {
    color: var(--cassiopeia-color-primary);
    background-color: transparent;
    padding-left: 5px;
}

/* Animations & Icon */
.fa-icon-sized {
    font-size: 100px;
    width: 100px;
    height: 100px;
    text-align: center;
    color: #006633;
    --fa-rotate-angle: -45deg;
}

.news-blog-section h2 a {
    color: #006633;
}

#news-blog .card,
#news-blog img,
.blog-item.card,
.blog-item img {
    border-radius: 16px;
    background-color: oldlace;
}

/* Animations */
@keyframes slideInDown {
    from {
        transform: translate3d(0, -100%, 0);
        visibility: visible;
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes stickyOutUp {
    0% {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
        display: none;
    }
}

.item-image img {
    width: 100%;
    height: auto;
}

.pagenavigation .pagination {
    display: flex;
    justify-content: space-between;
}

h2.item-title {
    font-size: 1.2rem;
    overflow: hidden;
    /*line-height: 1.2rem; default*/
    /*height: 4rem;*/
    height: 4.2rem;
}

dl.article-info {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

.article-info dd.published::after {
    content: "";
    color: #adb5bd;
    font-size: 1rem;
    padding: 0;
    margin: 0 8px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #adb5bd;
    display: inline-block;
    vertical-align: middle;
}

.offcanvas-menu-container .offcanvas-menu-inner ul {
    padding: 0;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.offcanvas-menu-container .offcanvas-menu-inner ul>li.menu-item:first-child {
    border-top: 1px solid #ddd;
}

.offcanvas-menu-container .offcanvas-menu-inner ul li.menu-item.menu-go-back {
    /*margin-top: 50px;*/
    border-top: 0;
}

.offcanvas-menu-container .offcanvas-menu-inner .menu-item {
    border-bottom: 1px solid #ddd;
    display: table;
    width: 100%;
}

.offcanvas-menu-container .offcanvas-menu-inner .menu-item a,
.offcanvas-menu-container .offcanvas-menu-inner .menu-item span.separator,
.offcanvas-menu-container .offcanvas-menu-inner .menu-item span.nav-header {
    cursor: pointer;
    outline: 0;
    width: calc(100% - 60px);
    text-decoration: none;
    vertical-align: middle;
    display: table-cell;
    color: #fee100;
    padding: 15px;
}

.offcanvas-menu-container .offcanvas-menu-inner .menu-item a:has(+ span) {
    color: white;
}

.offcanvas-menu-container .offcanvas-menu-inner .menu-item.divider.parent {
    position: relative;
}

.offcanvas-menu-container .offcanvas-menu-inner .menu-item.divider.parent span.separator~.menu-indicator {
    border-left: 0;
}

.offcanvas-menu-container .offcanvas-menu-inner .menu-item.divider.parent span.separator~.menu-indicator:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.offcanvas-menu-container .offcanvas-menu-inner .menu-item.nav-item-divider.nav-item-parent {
    position: relative;
}

.offcanvas-menu-container .offcanvas-menu-inner .menu-item.nav-item-divider.nav-item-parent a.item-link-separator~.menu-indicator {
    border-left: 0;
}

.offcanvas-menu-container .offcanvas-menu-inner .menu-item.nav-item-divider.nav-item-parent a.item-link-separator~.menu-indicator:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.offcanvas-menu-container .offcanvas-menu-inner .menu-item .menu-indicator {
    width: 60px;
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    border-left: 1px solid #ddd;
    cursor: pointer;
}

.offcanvas-menu-container .offcanvas-menu-inner .dropdown-menus {
    position: fixed;
    left: -150%;
    top: 70px;
    height: 100vh;
    /*width: 100% !important;*/
    width: var(--bs-offcanvas-width) !important;
    transition: all 0.5s;
    background-color: RGB(var(--bs-success-rgb));
}

.offcanvas-menu-container .offcanvas-menu-inner .dropdown-menus .menu-indicator-back {
    text-align: left;
    width: 100%;
    cursor: pointer;
    display: block;
    padding: 15px;
    box-sizing: border-box;
}

.offcanvas-menu-container .offcanvas-menu-inner .dropdown-menus .menu-indicator-back i {
    margin-right: 10px;
}

.offcanvas-menu-container .offcanvas-menu-inner .dropdown-menus .dropdown-menus-item {
    width: 100%;
}

.offcanvas-menu-container .offcanvas-menu-inner .dropdown-menus.menu_open {
    left: 0;
    z-index: 1;
}

.quote-banner-section {
    position: relative;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
    height: 80vh;
}

.quote {
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1.3;
}

.source {
    font-size: 1.1rem;
    margin-top: 10px;
}

.yellow-band {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(45deg, #ffd700 0%, #ffed4a 50%, #f39c12 100%);
    clip-path: polygon(0 20%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

.content-container {
    position: relative;
    z-index: 3;
    height: 40vh;
    display: flex;
    align-items: center;
}

.text-content {
    z-index: 4;
    position: relative;
}

.main-quote {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.sub-text {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 0;
}

.cartoon-image {
    position: absolute;
    /* Takes the image out of the normal flow */
    bottom: 0;
    /* Aligns the bottom of the image to the bottom of its parent */
    right: 0;
    /* Aligns the right of the image to the right of its parent height: 120%; */
    height: 110%;
    /* The key to the overflow effect. Makes the image taller than its container.   */
    width: auto;
    max-width: 50%;
    /* Overrides Bootstrap's default max-width for images */
    z-index: 5;
    /* Puts the image behind the text */
}

.media-top-center {
    text-align: center;
}

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

@media(min-width: 768px) {
    .infinity-wrap {
        width: 75%;
    }
}

@media (max-width: 768px) {
    #backToTop {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .main-quote {
        font-size: 1.5rem;
        font-weight: 500;
        color: #2c3e50;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    }

    .cartoon-image {
        display: none;
    }

    .infinity-wrap {
        width: 100%;
    }
}