/***
 ### GENERAL ###
 */
@font-face {
    font-family: 'SVN-Jeko-Regular';
    src: url('/static/fonts/SVN-JEKO-REGULAR.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SVN-Jeko-Bold';
    src: url('/static/fonts/SVN-JEKO-BOLD.TTF') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'SVN-Jeko-Regular', sans-serif;
}

h1, h2, h3, h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'SVN-Jeko-Bold', sans-serif !important;
}


.h1, .h2, .h3, .h4, .h5, .h6, .h1 > a, .h2 > a, .h3 > a, .h4 > a, .h5 > a, .h6 > a {
    font-family: 'SVN-Jeko-Bold', sans-serif !important;
    /*letter-spacing: -0.05rem !important;*/
}

h1, h2 {
    letter-spacing: -1.5px;
}

h3, h4 {
    letter-spacing: -1px;
}

.breadcrumb .breadcrumb-item:first-child a {
    text-transform: uppercase;
}

.ads-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ads-wrapper .ads-text {
    font-size: 12px;
    color: #ccc;
    text-align: center;
    display: none;
}

/*
.ad-container img {
    padding: 32px;
}
*/

.htmx-indicator {
    opacity: 0;
    display: none;
}

.btn.btn-primary {
    border-radius: 0 !important;
    background-color: #000 !important;
    border-color: #000 !important;
}

/* Listing */
body.listing .featured-image canvas {
    max-height: 100%;
}

/* Profile */
body.profile .sidebar-wrap.uc-sticky {
    z-index: 0 !important;
}

/* Profile Gallery Swiper */
.profile-gallery {
    min-height: 300px !important;
    transition: height 0.3s ease;
}

.profile-gallery .swiper-wrapper {
    align-items: stretch;
}

.profile-gallery .swiper-slide {
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-gallery-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.profile-gallery-image:not(.loaded) {
    /*opacity: 0.8;*/
}

/* Mobile pagination styling */
.profile-gallery-pagination .swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.4) !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 4px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.profile-gallery-pagination .swiper-pagination-bullet-active {
    background: #000 !important;
    transform: scale(1.3) !important;
}

/* Mobile swipe indicator */
.mobile-swipe-indicator {
    font-size: 11px;
    border-radius: 12px !important;
    backdrop-filter: blur(4px);
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Hide swipe indicator after user interaction */
.profile-gallery.user-interacted .mobile-swipe-indicator {
    display: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
/*
    .ad-container img {
        padding: 16px;
    }
*/

    .profile-gallery {
        min-height: 250px !important;
    }

    .profile-gallery-pagination {
        gap: 4px !important;
        padding: 8px 0 !important;
        justify-content: center;
    }

    .profile-gallery-pagination .swiper-pagination-bullet {
        width: 10px !important;
        height: 10px !important;
        margin: 0 3px !important;
        background: rgba(0, 0, 0, 0.3) !important;
    }

    .profile-gallery-pagination .swiper-pagination-bullet-active {
        background: #000 !important;
        transform: scale(1.2) !important;
    }
}

/* Homepage */
.homepage #wrapper .swiper-parent {
    max-width: 1366px;
    margin: 0 auto;
}
.homepage .swiper-slide-thumb-active {
    background-color: #333;
    color: white;
}

.homepage .swiper-slide-thumb-active .slide-thumb-text {
    color: white;
}


.homepage .swiper-slide .post-content {
    position: relative;
    color: white; /* or another high-contrast color */
    padding: 1em;
    box-shadow: inset 0 -150px 100px 0 rgba(0, 0, 0, 0.6);
}

.homepage .swiper-slide .post-link {
    text-shadow: 4px 4px 16px rgba(0,0,0,.85);
}

.post-header .post-comments {
    display: none !important;
}

.form-control, .form-select {
    border-radius: 0 !important;
}

/* === PROFILE === */
/* Profile badge */
.featured-profile:after {
    content: "Nổi bật";
    z-index: 1;
    overflow: hidden;
    font-size: 13px;
    font-weight: bold;
    color: #987e00;
    text-transform: uppercase;
    text-align: center;
    line-height: 24px;
    transform: rotate(45deg);
    width: 120px;
    display: block;
    background: #a79f0a;
    background: linear-gradient(#ffd41b 0%, #deb800 100%);
    box-shadow: 0 3px 5px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 20px; right: -30px;
    clip-path: polygon(120px 20px, 90px -10px, 30px -10px, 0px 20px, 10px 30px,  110px 30px)
}

.featured-wreath {
    position: relative;
    display: flex;
    justify-content: center;
}

.featured-wreath .featured-wreath-content {
    position: relative;
    background: url('/static/images/laurel.svg') no-repeat center center;
    background-size: contain;
    padding: 0 64px 64px;
    min-width: 200px;
}

.featured-wreath .featured-wreath-content small {
    font-size: 10px;
}

.profile-gallery-nav.swiper-button-next:after, .profile-gallery-nav.swiper-button-prev:after {
    font-size: 16px;
}

.profile-gallery-nav[tabindex="-1"] {
    opacity: 0.3;
}

/* ### GLOBAL ### */
.uc-navbar-item, .uc-navbar-nav > li > a, .uc-navbar-toggle {
    font-family: 'SVN-Jeko-Bold', sans-serif !important;
}

.uc-nav > li > a, .nav-y .uc-parent > a, .nav-y .uc-nav-sub a {
    font-family: 'SVN-Jeko-Bold', sans-serif !important;
}

/*article .post-content img {*/
/*    border-radius: 8px;*/
/*    margin-top: 1.5rem;*/
/*    margin-bottom: 1.5rem;*/
/*    display: block;*/
/*}*/

.post {
    z-index: 0;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 16px;
    margin-bottom: 16px;
    justify-content: space-between;
    row-gap: 6px;
}

.gallery.columns-2 > figure {
    flex: 50%;
    max-width: 49.5%;
    padding: 0;
}

.gallery.columns-3 > figure {
    flex: 33%;
    max-width: 33%;
    padding: 0;
}


.gallery.columns-4 > figure {
    flex: 25%;
    max-width: 24%;
    padding: 0;
}

.gallery > figure img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
}

.gallery-item {
    /*max-width: 512px;*/
    /*border: 1px solid red;*/
}

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

.gallery-icon > a:first-child {
    display: none !important;
}


.header-transparent {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.profile-cover {
    position: absolute;
    top: 0;
    left: 0;
}

.backtotop-wrap {
    z-index: 1000 !important;
}

.uc-modal-full.uc-modal.uc-open {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

#subnav a.active {
    color: red;
}

:target {
    scroll-margin-top: 120px;
}

.loading-indicator {
    display: none;
}

#pagination-trigger {
    position: absolute;
    visibility: hidden;
    bottom: 0;
    z-index: -9999;
}

#uc-newsletter-modal {
    display: none !important;
    z-index: -9999 !important;
}

.uc-modal-page {
    --body-scroll-width: unset !important;
    overflow-y: unset !important;
    touch-action: unset !important;
}

/* Article */
.post-template .post-content img {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.post-title_custom {
    line-height: 2rem;
    font-family: 'SVN-Jeko-Bold', sans-serif !important;
    letter-spacing: -2px !important;
}

.post-content {
    color: #111c2d;
}

.post-content-wrapper {
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* E-Magazine */
.emagazine .post-content-wrapper {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0;
}

.emagazine .post-content-wrapper .post-content .container-default {
    max-width: 800px;
}

    .post-content a {
    color: blue;
}

.post-content li {
    margin-bottom: 0.25rem;
}

.post-content li[data-list="bullet"] {
    list-style: disc;
}

.post-content iframe {
    width: 100%;
    margin: 16px auto !important;
}

.post-content figure {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    overflow: auto;
    position: relative;
}

.post-content figure img {
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.post-content figcaption {
    margin-top: 4px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #666;
    text-align: center;
    font-style: italic;
}

.embed-container iframe {
    margin: 16px auto !important;
}

.gallery .gallery-item {
    margin: 0;
}

.gallery-item .gallery-image-wrapper, .gallery-item .gallery-image-wrapper a {
    position: relative !important;
}

.gallery-item .gallery-image-wrapper img {
    margin: 0 !important;
}

/* reset theme style */
.post-content blockquote p:first-child::first-letter {
    font-size: inherit;
    float: none;
    line-height: inherit;
    margin-right: 0;
}

.post-content blockquote {
    position: relative;
    max-width: 70%;
    margin: 16px auto;
    padding-left: 48px;
    padding-right: 48px;
    font-style: normal;
}

.post-content blockquote::before {
    content: "\ea70";
    font-family: Unicons !important;
    position: absolute;
    top: -16px;
    left: 0;
    font-size: 32px;
}

.post-content blockquote::after {
    content: "\ea70";
    font-family: Unicons !important;
    position: absolute;
    bottom: -16px;
    right: 0;
    transform: rotate(180deg);
    font-size: 32px;
}

.post-content .row blockquote::before, .post-content .row blockquote::after {
    display: none !important;
    content: '' !important;
}

.post-content .row p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-content .row.style-center {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.post-content .row.style-bottom {
    align-items: flex-end;
}

.post-content .row figure {
    margin: 0 auto !important;
}

.post-content em {
    color: inherit;
}


.post-content b {
    display: block;
    margin-top: 16px;
    margin-bottom: 8px;
}

.post-content * > b {
    display: inline;
    margin-top: inherit;
    margin-bottom: inherit;
}

.post-content > p {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.post-content p span, .post-content > strong {
    display: inline;
}

.post-content .row {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.post-content .row blockquote {
    font-size: 1rem;
    padding: 1rem;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    margin: 0;
    max-width: 100%;
}

.post-content .row img {
    margin: 0;
    position: relative;
}

.post-content .embed-content {
    display: block;
    margin: 16px auto;
    height: 100%;
    max-width: 100%;
}

.empty-paragraph-deletable {
    border: 0 !important;
    background: transparent !important;
}

.post-content p {
    background: transparent !important;
}


.post-content p * {
    background: transparent !important;
}

/* Post tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.post-tags li:not(:first-child) {
    list-style: none;
    margin: 0;
    border: 1px solid #555;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #666;
    text-align: center;
    font-style: italic;
}

.empty-paragraph-deletable {
    visibility: hidden !important;
}

@media screen and (min-width: 768px) {
    .post-title_custom {
        line-height: 4.85rem !important;
    }
}

@media screen and (max-width: 768px) {
    .post-title_custom {
        letter-spacing: -1px !important;
    }

    .post-content blockquote {
        max-width: 100% !important;
    }
}

/* ===== Button ===== */
.btn {
    font-family: inherit !important;
}

.editor-container {
    height: 500px;
}

/*** REFACTORING ***/
.bg-primary, .bg-primary-hover:hover, .hover\:bg-primary:hover, .bg-primary-focus:focus, .focus\:bg-primary:focus {
    background-color: #000 !important;
}

/* :where(.uc-dark) .dark\:text-primary-400, :where(.uc-dark) .dark\:text-primary-400-hover:hover, :where(.uc-dark) .dark\:hover\:text-primary-400:hover, :where(.uc-dark) .dark\:text-primary-400-focus:focus, :where(.uc-dark) .dark\:focus\:text-primary-400:focus {
    color: #000 !important;
} */

.text-primary {
    color: #000;
}

/* === EDITOR MATCHING STYLE === */
/* Center alignment */
.ql-align-center {
    text-align: center;
}

/* Left alignment (default, but included for completeness) */
.ql-align-left {
    text-align: left;
}

/* Right alignment */
.ql-align-right {
    text-align: right;
}

/* Justify alignment */
.ql-align-justify {
    text-align: justify;
}
