/*
Theme Name: Dược phẩm
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
label {
    color: #7a9c59!important;
}

/* Ẩn Sidebar khi màn hình nhỏ hơn 1200px */
@media only screen and (max-width: 1199px) {

    /* Sidebar nội dung Flatsome */
    #main .page-sidebar,
    #main #secondary,
    #main .sidebar-left {
        display: none !important;
    }

    /* Mở rộng cột nội dung chính */
    #main .page-inner,
    #main .page-content,
    #main .col:has(> .page-inner) {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
    }
}



/* =====================================
   GSF NEWS - FULL RESPONSIVE
===================================== */

.gsf-news {
    width: 100%;
    margin: 20px auto 30px;
    font-family: Arial, sans-serif;
}

.gsf-news,
.gsf-news * {
    box-sizing: border-box;
}

/* =====================================
   HEADING
===================================== */

.gsf-news-heading {
    margin-bottom: 22px;
    background: #0754b8;
    border-radius: 7px 7px 0 0;
}

.gsf-news-heading h2 {
    margin: 0;
    padding: 15px 18px;
    color: #fff;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
}

.gsf-heading-icon {
    margin-right: 12px;
    font-size: 20px;
}

/* =====================================
   LAYOUT
===================================== */

.gsf-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
    gap: 20px;
    align-items: stretch;
}

.gsf-news-feature,
.gsf-news-side {
    background: #fff;
    border: 1px solid #e0e6ee;
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(0, 42, 100, .06);
    overflow: hidden;
    min-width: 0;
}

/* =====================================
   SLIDER
===================================== */

.gsf-slider {
    position: relative;
}

.gsf-slides {
    position: relative;
}

.gsf-slide {
    display: none;
    animation: gsfFade .4s ease;
}

.gsf-slide.active {
    display: block;
}

@keyframes gsfFade {
    from { opacity: .55; }
    to { opacity: 1; }
}

/* =====================================
   SLIDER IMAGE
===================================== */

.gsf-news-image {
    display: block;
    overflow: hidden;
    background: #f1f5fa;
}

.gsf-news-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.gsf-news-image:hover img {
    transform: scale(1.025);
}

.gsf-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: #e9f1fb;
    color: #0754b8;
    font-weight: 700;
}

/* =====================================
   SLIDER CONTENT
===================================== */

.gsf-news-content {
    padding: 17px 20px 18px;
}

.gsf-news-content h3 {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    min-height: 60px;
}

.gsf-news a {
    color: #12213a;
    text-decoration: none;
}

.gsf-news a:hover {
    color: #0754b8;
}

.gsf-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.gsf-news-date {
    color: #9299a5;
    font-size: 12px;
}

.gsf-news .gsf-news-more {
    display: inline-block;
    background: #0754b8;
    color: white;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s;
}

.gsf-news .gsf-news-more:hover {
    background: #003d91;
    color: #fff;
}

/* =====================================
   SLIDER ARROWS
===================================== */

.gsf-prev,
.gsf-next {
    position: absolute;
    top: 34%;
    transform: translateY(-50%);
    z-index: 5;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 38px;
    height: 42px;
    padding: 0;

    border: none;
    border-radius: 5px;
    background: rgba(0,0,0,.42);
    color: #fff;

    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .2s;
}

.gsf-prev {
    left: 12px;
}

.gsf-next {
    right: 12px;
}

.gsf-slider:hover .gsf-prev,
.gsf-slider:hover .gsf-next,
.gsf-prev:focus-visible,
.gsf-next:focus-visible {
    opacity: 1;
}

.gsf-prev:hover,
.gsf-next:hover {
    background: #0754b8;
}

/* =====================================
   SLIDER DOTS
===================================== */

.gsf-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 0 16px;
}

.gsf-dot {
    display: block;
    width: 9px;
    height: 9px;
    min-width: 9px;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: #bcc9d9;
    cursor: pointer;
    transition: background .2s, width .2s;
}

.gsf-dot.active {
    width: 23px;
    background: #0754b8;
}

/* =====================================
   RIGHT NEWS LIST
===================================== */

.gsf-news-side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 14px 16px;
    gap: 0;
}

.gsf-news-small {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    flex: 0 0 auto;
    padding: 15px 0;
}

.gsf-news-small:first-child {
    padding-top: 0;
}

.gsf-news-small + .gsf-news-small {
    border-top: 1px solid #e9edf2;
}

.gsf-news-small-image {
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

.gsf-news-small-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .3s;
}

.gsf-news-small-image:hover img {
    transform: scale(1.04);
}

.gsf-news-small-content {
    min-width: 0;
    align-self: start;
}

.gsf-news-small-content h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gsf-news-small-content .gsf-news-date {
    display: block;
    margin-top: 8px;
}

.gsf-news-empty {
    color: #999;
    font-size: 14px;
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 991px) {

    .gsf-news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .gsf-news-content h3 {
        min-height: 0;
    }

    .gsf-news-small {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .gsf-prev,
    .gsf-next {
        opacity: .8;
    }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 600px) {

    .gsf-news {
        margin: 15px auto 25px;
    }

    .gsf-news-heading {
        margin-bottom: 15px;
    }

    .gsf-news-heading h2 {
        font-size: 16px;
        padding: 13px 14px;
    }

    .gsf-news-grid {
        gap: 14px;
    }

    .gsf-news-content {
        padding: 14px 15px;
    }

    .gsf-news-content h3 {
        font-size: 17px;
        line-height: 1.45;
        margin-bottom: 14px;
    }

    .gsf-news-image img {
        aspect-ratio: 16 / 10;
    }

    .gsf-news-footer {
        gap: 10px;
    }

    .gsf-news .gsf-news-more {
        font-size: 12px;
        padding: 9px 12px;
    }

    .gsf-news-side {
        padding: 10px 12px;
    }

    .gsf-news-small {
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 12px;
        padding: 13px 0;
    }

    .gsf-news-small-content h3 {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 7px;
    }

    .gsf-news-small-content .gsf-news-date {
        font-size: 11px;
    }

    .gsf-prev,
    .gsf-next {
        width: 30px;
        height: 36px;
        font-size: 18px;
        opacity: .85;
    }

    .gsf-prev {
        left: 7px;
    }

    .gsf-next {
        right: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gsf-slide {
        animation: none;
    }

    .gsf-news-image img,
    .gsf-news-small-image img {
        transition: none;
    }
}

/* Cột phải: bài viết căn trên, khoảng cách gọn */
.gsf-news-side {
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 15px !important;
}

.gsf-news-small {
    flex: 0 0 auto !important;
    align-items: flex-start !important;
    padding: 14px 0 !important;
}

.gsf-news-small:first-child {
    padding-top: 0 !important;
}

.gsf-news-small-content h3 {
    font-size: 16px;
    line-height: 1.45;
}


/* MENU FOOTER - CONG DOAN HISON */
#menu-main-menu-1.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px auto;
    padding: 0;
    list-style: none;
}

/* Bo dau gach va khoang cach mac dinh */
#menu-main-menu-1.footer-nav > li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    list-style: none;
}

/* Nut menu */
#menu-main-menu-1.footer-nav > li > a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 11px 22px !important;

    background: #0755b8;
    color: #fff !important;

    border-radius: 7px;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4;
    letter-spacing: .3px;
    text-decoration: none;

    transition: background .2s ease,
                transform .2s ease;
}

/* Hover */
#menu-main-menu-1.footer-nav > li > a:hover {
    background: #003c8f;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Menu dang duoc chon */
#menu-main-menu-1.footer-nav > li.current-menu-item > a {
    background: #e9b72b;
    color: #142b50 !important;
}

/* Mobile */
@media (max-width: 600px) {
    #menu-main-menu-1.footer-nav {
        gap: 8px;
    }

    #menu-main-menu-1.footer-nav > li > a {
        font-size: 14px !important;
        padding: 10px 14px !important;
        min-height: 42px;
    }
}


/* HISON QR CHUYEN KHOAN */
.hison-bank-qr {
    text-align: center;
    background: #f7faff;
    border: 1px solid #d9e5f5;
    border-radius: 8px;
    padding: 20px 15px;
    margin: 20px 0 25px;
}

.hison-bank-qr h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0755b8;
    margin: 0 0 15px;
}

.hison-bank-qr img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 15px;
    border-radius: 5px;
}

.hison-bank-qr p {
    margin: 8px 0;
    font-size: 16px;
}

.hison-bank-code {
    color: #d60000;
    font-weight: 700;
}

.hison-bank-note {
    color: #666;
    font-size: 13px !important;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .hison-bank-qr {
        padding: 15px 10px;
    }

    .hison-bank-qr img {
        width: 220px;
    }

    .hison-bank-qr h3 {
        font-size: 16px;
    }
}

