/*
Theme Name: Bảo Tàng Tinh
Theme URI: https://baotang.gialai.gov.vn/
Author: QNSOFT
Author URI: https://qnsoft.vn/
Description: Theme WordPress dành cho Bảo Tàng Tỉnh Gia Lai, được chuyển đổi từ mẫu HTML với sự hỗ trợ của Tailwind CSS 4, SwiperJS và SCF/ACF.
Version: 1.0.0
Text Domain: baotangtinh
*/

/* ══════════════════════════════════════
   WORDPRESS CORE TYPOGRAPHY & LAYOUTS
   ══════════════════════════════════════ */

/* ── ALIGNMENTS ── */
.alignleft {
    float: left;
    margin: 0.5em 1.5em 0.5em 0;
}
.alignright {
    float: right;
    margin: 0.5em 0 0.5em 1.5em;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

/* ── CAPTIONS ── */
.wp-block-image {
    margin-bottom: 1.5rem;
}
.wp-block-image figcaption,
.wp-caption-text {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.5em;
    margin-bottom: 1em;
    line-height: 1.4;
}
.wp-caption {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    max-width: 100%;
    padding: 6px;
    text-align: center;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}
.wp-caption img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ── ENTRY CONTENT STYLE ── */
.entry-content h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}
.entry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.entry-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.entry-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #4b5563;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.entry-content h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b7280;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.entry-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #374151;
}
.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.2s;
}
.entry-content a:hover {
    color: var(--color-primary-dark);
}
.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.25rem;
    font-style: italic;
    color: #4b5563;
    margin: 1.5rem 0;
    background-color: #f9fafb;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 0 6px 6px 0;
}
.entry-content ul {
    list-style-type: disc;
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
}
.entry-content ol {
    list-style-type: decimal;
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
}
.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.entry-content th,
.entry-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}
.entry-content th {
    background-color: #f3f4f6;
    font-weight: 700;
}
.entry-content pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    font-family: monospace;
}
.entry-content code {
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}
.entry-content img {
    border-radius: 6px;
    height: auto;
    max-width: 100%;
    margin: 1.5rem auto;
    display: block;
}

/* ══════════════════════════════════════
   ANIMATED HAMBURGER BUTTON
   ══════════════════════════════════════ */
#hamburger {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#hamburger.is-active {
    background-color: #9b1c1c !important;
    color: #ffffff !important;
    border-color: #9b1c1c !important;
    box-shadow: 0 4px 14px rgba(155, 28, 28, 0.3);
}
#hamburger.is-active .bar-top {
    transform: rotate(45deg) translate(2.5px, -1.5px);
}
#hamburger.is-active .bar-middle {
    opacity: 0;
    transform: scaleX(0);
}
#hamburger.is-active .bar-bottom {
    transform: rotate(-45deg) translate(2.5px, 1.5px);
}

/* ══════════════════════════════════════
   HERO RUNNING TICKER (PLEIKU STYLE)
   ══════════════════════════════════════ */
.loptintuc {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 25;
    pointer-events: auto;
}
.maqueettt {
    width: 100%;
    height: 40px;
    background: #ffffffd6;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.ticker-label {
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 16px 0 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.ticker-label::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--color-primary);
}
@media (max-width: 640px) {
    .ticker-label-text {
        display: none;
    }
    .ticker-label {
        padding: 0 10px;
    }
    .ticker-label::after {
        right: -6px;
        border-left-width: 6px;
    }
}
.ticker-content {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.ticker-content marquee {
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.newsticker {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}
.newsticker li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0 24px;
    position: relative;
}
.newsticker li::after {
    content: "•";
    position: absolute;
    right: 0;
    color: #9ca3af;
    font-size: 13px;
}
.newsticker li .tk-thumb {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.newsticker li .tk-dot {
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
}
.newsticker li .recent-title {
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-size: 13.5px;
    line-height: 1.4;
    display: inline-block;
}
.newsticker li .recent-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.newsticker li .recent-title a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ══════════════════════════════════════
   NEWS CONTAINER (DANANG MUSEUM STYLE)
   ══════════════════════════════════════ */
.news-container {
    text-align: justify;
}
.featured-article:hover .featured-image {
    transform: scale(1.03);
}
.featured-image {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-title {
    transition: color 0.2s ease;
}
.article-date {
    color: #d97706;
    font-weight: 500;
}
.side-article:hover .side-image {
    transform: scale(1.05);
}
.side-image {
    transition: transform 0.3s ease;
}
.view_more {
    color: var(--color-primary);
    font-weight: 600;
    transition: all 0.2s ease;
}
.view_more:hover {
    text-decoration: underline;
}
