﻿:root {
    --article-text-color: #333;
    --article-bg-color: #fff;
    --article-border-color: #eee;
    --article-quote-color: #666;
    --article-quote-border: #e30613;
    --article-link-color: #e30613;
    --article-tag-bg: #f5f5f5;
    --article-tag-color: #666;
    --article-meta-color: #777;
    --article-share-bg: #f9f9f9;
    --article-comment-bg: #f9f9f9;
    --article-comment-border: #eee;
    --article-related-bg: #f9f9f9
}

body.dark-theme {
    --article-text-color: #e0e0e0;
    --article-bg-color: #222;
    --article-border-color: #333;
    --article-quote-color: #bbb;
    --article-quote-border: #e30613;
    --article-link-color: #ff6b6b;
    --article-tag-bg: #333;
    --article-tag-color: #ccc;
    --article-meta-color: #aaa;
    --article-share-bg: #2a2a2a;
    --article-comment-bg: #2a2a2a;
    --article-comment-border: #333;
    --article-related-bg: #2a2a2a
}



.ph-wrap {
    position: relative;
    overflow: hidden;
    background: #eee
}

.ph-wrap .ratio {
    display: block;
    aspect-ratio: 1200 / 675
}

.ph-wrap>img.fade-img:not(.news-cover) {
    opacity: 0;
    transition: opacity .35s ease
}

.ph-wrap.loaded>img.fade-img:not(.news-cover) {
    opacity: 1
}

.news-cover {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover
}

.related-news-image .ph-wrap .ratio {
    aspect-ratio: 250 / 150
}

.ratio.skel {
    position: relative;
    overflow: hidden
}

.ratio.skel::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .4), transparent);
    animation: shine 1.2s infinite
}

@keyframes shine {
    100% {
        transform: translateX(100%)
    }
}

.embed-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    margin-bottom: 20px
}

.embed-16x9 {
    padding-bottom: 56.25%
}

.embed-slot,
.embed-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0
}

.article-body img,
.article-content img {
    display: block;
    max-width: 100%;
    height: auto
}

.article-body .embed,
.article-body iframe,
.article-content .embed,
.article-content iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    border: 0;
    display: block
}

.news-detail-section {
    padding: 10px 0 60px;
    background-color: var(--bg-color)
}

.news-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    margin: 0 auto
}

@media (min-width:1200px) {
    .container.news-detail-container {
        max-width: 1280px
    }
}

@media (max-width:991px) {
    .news-detail-container {
        gap: 20px;
        padding-left: 0 !important;
        padding-right: 0 !important
    }
}

@media (max-width:575px) {
    .news-detail-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 10px
    }
}

.news-detail-main {
    flex: 1;
    min-width: 0;
    position: relative
}

.news-detail-sidebar {
    width: 300px
}

.news-category-label {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 15px
}



.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--article-border-color);
    justify-content: flex-start
}

.news-author {
    display: flex;
    align-items: center;
    gap: 10px
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: visible
}

.author-avatar img {
    max-width: 100%;
    height: auto;
    object-fit: cover
}

.author-info {
    display: contents;
    flex-direction: column
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--article-text-color)
}

.author-title {
    font-size: 12px;
    color: var(--article-meta-color)
}

.news-date,
.news-views,
.news-comments {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--article-meta-color)
}

.news-date i,
.news-views i,
.news-comments i {
    font-size: 14px
}

.news-detail-content {
    background-color: var(--article-bg-color);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgb(0 0 0 / .05);
    overflow: hidden;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee
}

.news-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    aspect-ratio: 780 / 439;
    background: #eee
}

.news-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover
}

.image-caption {
    padding: 10px 15px;
    background-color: rgb(0 0 0 / .7);
    color: #fff;
    font-size: 13px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0
}

.article-content {
    padding: 15px;
    color: var(--article-text-color)
}

.article-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 500
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 20px;
    color: var(--article-text-color)
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px;
    color: var(--article-text-color)
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px 20px;
    padding: 0
}

.article-content li {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 10px
}

.article-content a {
    color: var(--article-link-color);
    text-decoration: none;
    border-bottom: 1px solid #fff0;
    transition: border-color .3s ease
}

.article-content a:hover {
    border-color: var(--article-link-color)
}

.article-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid var(--article-quote-border);
    background-color: var(--article-tag-bg);
    font-style: italic;
    color: var(--article-quote-color)
}

.article-content blockquote p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0
}

.article-content figure {
    margin: 30px 0
}

.article-content figcaption {
    font-size: 14px;
    color: var(--article-meta-color);
    text-align: center;
    margin-top: 10px
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--article-border-color)
}

.news-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--article-tag-bg);
    color: var(--article-tag-color);
    font-size: 13px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color .3s ease, color .3s ease
}

.news-tag:hover {
    background-color: var(--primary-color);
    color: #fff
}

.news-share {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--article-share-bg);
    border-radius: 5px
}

.share-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--article-text-color)
}



.about-author {
    margin-top: 30px;
    padding: 25px;
    background-color: var(--article-bg-color);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgb(0 0 0 / .05)
}

.about-author-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--article-text-color)
}

.author-card {
    display: flex;
    gap: 20px
}

.author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0
}

.author-card-avatar img {
    max-width: 100%;
    height: auto;
    object-fit: cover
}

.author-card-info {
    flex: 1
}

.author-card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--article-text-color)
}

.author-card-title {
    font-size: 14px;
    color: var(--article-meta-color);
    margin-bottom: 10px
}

.author-card-bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--article-text-color);
    margin-bottom: 15px
}

.author-card-social {
    display: flex;
    gap: 10px
}

.author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--article-tag-bg);
    color: var(--article-meta-color);
    font-size: 14px;
    transition: background-color .3s ease, color .3s ease
}

.author-social-link:hover {
    background-color: var(--primary-color);
    color: #fff
}

body.dark-theme .about-author {
    background-color: var(--article-bg-color);
    box-shadow: 0 2px 10px rgb(0 0 0 / .2)
}

body.dark-theme .about-author-header {
    color: var(--article-text-color)
}

body.dark-theme .author-card {
    background-color: var(--article-bg-color);
    color: var(--article-text-color)
}

body.dark-theme .author-card-name {
    color: var(--article-text-color)
}

body.dark-theme .author-card-title {
    color: var(--article-meta-color)
}

body.dark-theme .author-card-bio {
    color: var(--article-text-color)
}

body.dark-theme .author-social-link {
    background-color: #333;
    color: #aaa
}

body.dark-theme .author-social-link:hover {
    background-color: var(--primary-color);
    color: #fff
}

.news-comments-section {
    margin-top: 30px;
    background-color: var(--article-bg-color);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgb(0 0 0 / .05);
    padding: 25px
}

.comments-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--article-text-color)
}

.comment-form {
    margin-bottom: 30px
}

.comment-form textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid var(--article-border-color);
    border-radius: 5px;
    background-color: var(--article-bg-color);
    color: var(--article-text-color);
    font-size: 15px;
    resize: vertical;
    margin-bottom: 15px
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.comment-form-inputs {
    display: flex;
    gap: 15px;
    flex: 1
}

.form-group {
    flex: 1
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--article-border-color);
    border-radius: 5px;
    background-color: var(--article-bg-color);
    color: var(--article-text-color);
    font-size: 14px
}

.comment-submit {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .3s ease
}

.comment-submit:hover {
    background-color: #c00
}

.comments-list {
    margin-top: 30px
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--article-border-color)
}

.comment:last-child {
    border-bottom: none
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px
}

.comment-author {
    font-size: 16px;
    font-weight: 500;
    color: var(--article-text-color)
}

.comment-date {
    font-size: 14px;
    color: var(--article-meta-color)
}

.comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--article-text-color)
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 15px
}

.comment-action {
    font-size: 14px;
    color: var(--article-meta-color);
    cursor: pointer;
    transition: color .3s ease
}

.news-detail-header {
    margin-bottom: 0;
    border-bottom: 1px solid var(--article-border-color);
    padding-bottom: 10px
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px
}

.header-breadcrumb {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    line-height: 1.4
}

.header-breadcrumb a {
    text-decoration: none;
    color: var(--article-text-color);
    white-space: nowrap
}

.header-breadcrumb .category-link {
    color: var(--primary-color);
    white-space: normal
}

.header-breadcrumb .bc-sep {
    color: #ccc;
    font-size: 12px
}

.header-date-row {
    font-size: 13px;
    color: var(--article-meta-color);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px
}

.header-date-row .date-sep {
    color: #ddd
}



.header-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--article-border-color);
    width: 100%;
    flex-wrap: wrap;
    gap: 20px
}

.header-author .author-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none
}

.header-author .author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--article-border-color)
}

.header-author .author-meta {
    display: flex;
    flex-direction: column
}

.header-author .author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color)
}

.header-author .author-role {
    font-size: 12px;
    color: var(--article-meta-color);
    margin-top: 2px
}

.header-share-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto
}

.share-tool-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    outline: none
}

.share-tool-btn:hover {
    transform: translateY(-2px);
    opacity: .9;
    box-shadow: 0 3px 8px rgb(0 0 0 / .15)
}

.btn-fb {
    background-color: #1877f2
}

.btn-x {
    background-color: #000
}

.btn-wa {
    background-color: #25d366
}

.btn-in {
    background-color: #0077b5
}

.btn-mail {
    background-color: #6c757d
}

.btn-more,
.btn-audio,
.btn-font,
.font-btn {
    background-color: #f0f2f5;
    color: #555
}

.btn-more:hover,
.btn-audio:hover,
.btn-font:hover,
.font-btn:hover {
    background-color: #e4e6eb;
    color: #333
}

.font-resizer-wrapper {
    position: relative;
    padding-bottom: 0
}

.font-resizer-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 25px;
    background: #fff0;
    z-index: 99
}

.font-resizer-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    display: none;
    box-shadow: 0 5px 15px rgb(0 0 0 / .1);
    z-index: 100;
    min-width: 150px;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px
}

.font-resizer-wrapper:hover .font-resizer-menu,
.font-resizer-menu.active {
    display: flex
}

.font-resizer-menu .font-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--article-text-color);
    margin: 0 10px;
}

.font-resizer-menu .font-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f0f2f5;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.font-resizer-menu .font-btn:hover {
    background: #e4e6eb;
}

@media (max-width:768px) {
    .header-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px
    }

    .news-title {
        font-size: 24px
    }

    .news-subtitle {
        font-size: 16px
    }
}

.comment-replies {
    margin-left: 30px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--article-border-color)
}

.related-news {
    margin-top: 30px;
    background-color: var(--article-bg-color);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgb(0 0 0 / .05);
    padding: 25px
}

.related-news-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--article-text-color)
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.related-news-item {
    border-radius: 5px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease
}

.related-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgb(0 0 0 / .1)
}

.related-news-image {
    height: 150px;
    overflow: hidden
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease
}

.related-news-item:hover .related-news-image img {
    transform: scale(1.05)
}

.related-news-details {
    padding: 15px;
    background-color: var(--article-bg-color)
}

.related-news-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--article-text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.related-news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--article-meta-color)
}

.sidebar-widget {
    background-color: var(--article-bg-color);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgb(0 0 0 / .05);
    padding: 20px;
    margin-bottom: 30px
}

.widget-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--article-text-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color)
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.popular-post {
    display: flex;
    gap: 15px
}

.popular-post-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: .7;
    line-height: 1
}

.popular-post-content h4 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
    color: var(--article-text-color)
}

.popular-post-content .post-meta {
    font-size: 12px;
    color: var(--article-meta-color)
}

.poll-widget {
    margin-bottom: 30px
}

.poll-question {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--article-text-color)
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px
}

.poll-option {
    display: flex;
    align-items: center
}

.poll-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--article-text-color)
}

.poll-option input {
    margin-right: 10px
}

.progress-container {
    height: 8px;
    background-color: var(--article-border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
    width: 100%
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px
}

.percentage {
    font-size: 12px;
    color: var(--article-meta-color);
    margin-left: 5px
}

.poll-submit {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color .3s ease
}

.poll-submit:hover {
    background-color: #c00
}

.ad-widget {
    text-align: center;
    margin-bottom: 30px
}

.ad-content {
    padding: 15px;
    background-color: var(--article-tag-bg);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    position: relative
}

.ad-content span {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    color: var(--article-meta-color);
    text-transform: uppercase
}

.ad-slot {
    width: 100%;
    text-align: center;
    margin: 5px auto
}

.ad-slot--leader {
    min-height: 90px
}

.ad-slot--billboard {
    min-height: 250px
}

.ad-slot--mrec {
    min-height: 250px
}

.related-news-image img,
.ad-content img {
    max-width: 100%;
    height: auto;
    object-fit: cover
}

.ad-content {
    text-align: center;
    position: relative
}

.ad-content::before {
    content: "Reklam";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--article-meta-color)
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    margin: 20px 0;
    text-align: center
}

.loading-indicator .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgb(0 0 0 / .1);
    border-radius: 50%;
    border-top-color: #e30613;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px
}

.loading-indicator p {
    font-size: 14px;
    color: #666;
    margin: 0
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.next-news-separator {
    position: relative;
    text-align: center;
    margin: 50px 0;
    height: 1px;
    background-color: #e5e5e5
}

.next-news-separator span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: #e30613
}

[data-theme="dark"] .next-news-separator {
    background-color: #444
}

[data-theme="dark"] .next-news-separator span {
    background-color: #222;
    color: #ff6b6b
}

[data-theme="dark"] .loading-indicator .spinner {
    border-color: rgb(255 255 255 / .1);
    border-top-color: #ff6b6b
}

[data-theme="dark"] .loading-indicator p {
    color: #aaa
}

.page-load-status {
    display: none;
    padding: 20px;
    text-align: center;
    color: #777
}

.loader-ellips {
    font-size: 20px;
    position: relative;
    width: 4em;
    height: 1em;
    margin: 10px auto
}

.loader-ellips__dot {
    display: block;
    width: 1em;
    height: 1em;
    border-radius: .5em;
    background: #555;
    position: absolute;
    animation-duration: .5s;
    animation-timing-function: ease;
    animation-iteration-count: infinite
}

.loader-ellips__dot:nth-child(1),
.loader-ellips__dot:nth-child(2) {
    left: 0
}

.loader-ellips__dot:nth-child(3) {
    left: 1.5em
}

.loader-ellips__dot:nth-child(4) {
    left: 3em
}

@keyframes reveal {
    from {
        transform: scale(.001)
    }

    to {
        transform: scale(1)
    }
}

@keyframes slide {
    to {
        transform: translateX(1.5em)
    }
}

.infinite-scroll-last,
.infinite-scroll-error {
    padding: 20px;
    color: #666;
    font-style: italic
}

.loader-ellips__dot:nth-child(1) {
    animation-name: reveal
}

.loader-ellips__dot:nth-child(2),
.loader-ellips__dot:nth-child(3) {
    animation-name: slide
}

.loader-ellips__dot:nth-child(4) {
    animation-name: reveal;
    animation-direction: reverse
}

.infinite-container {
    margin-bottom: 40px
}

/* Body padding removed to allow full width for news detail */
body>:not(header):not(footer):not([class*="-wrapper"]) {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width:576px) {
    body>:not(header):not(footer) {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width:991px) {
    .news-detail-container {
        flex-direction: column
    }

    .news-detail-sidebar {
        width: 100%
    }

    .news-title {
        font-size: 28px
    }

    .related-news-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:768px) {
    .ad-slot--leader {
        min-height: 100px
    }

    .news-detail-sidebar {
        display: none !important
    }

    .news-detail-container {
        display: block !important
    }

    .next-news-separator {
        margin: 30px 0
    }

    .next-news-separator span {
        font-size: 14px;
        padding: 0 15px
    }

    .loading-indicator {
        padding: 20px 0
    }

    .loading-indicator .spinner {
        width: 30px;
        height: 30px
    }
}

@media (max-width:767px) {
    .news-title {
        font-size: 24px
    }

    .breadcrumb,
    .breadcrumb .container {
        min-height: 48px
    }

    .breadcrumb-item {
        font-size: 13px
    }

    .news-subtitle {
        font-size: 16px
    }

    .article-content {
        padding: 20px 5px
    }

    .article-content p {
        font-size: 16px
    }

    .comment-form-footer {
        flex-direction: column;
        gap: 15px
    }

    .comment-form-inputs {
        flex-direction: column
    }

    .related-news-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width:575px) {
    .news-title {
        font-size: 22px
    }

    .breadcrumb-list {
        font-size: 12px;
        margin-left: 12px
    }

    .article-content {
        padding: 15px 5px
    }

    .article-content p {
        font-size: 15px
    }

    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .author-card-social {
        justify-content: center
    }

    .article-content {
        padding: 10px 5px !important
    }
}

@media screen and (max-width:768px) {
    .top-bar {
        display: none
    }

    .news-detail-container {
        padding: 0
    }

    /* Remove container padding to utilize full width */
    .news-detail-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Make content box full width without radius/shadow */
    .news-detail-content {
        border-radius: 0;
        box-shadow: none;
        border: none;
        margin-bottom: 20px;
    }

    /* Make feature image full width */
    .news-featured-image {
        border-radius: 0;
        margin-bottom: 20px;
    }

    /* Add padding to inner content for readability since container is 0 */
    .news-detail-header {
        padding-left: 5px;
        padding-right: 5px;
    }

    .news-header {
        margin-bottom: 15px
    }

    .news-title {
        font-size: 24px;
        line-height: 1.3
    }

    .news-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 10px
    }

    .news-detail-header {
        text-align: center;
    }

    .news-title,
    .news-subtitle {
        text-align: center;
    }

    .header-bottom-row {
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .header-author {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 0;
    }

    .header-author .author-link {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 5px;
    }

    .header-author .author-meta {
        align-items: center;
    }

    .header-share-tools {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .news-author {
        flex-basis: 100%;
        margin-bottom: 10px;
        text-align: center;
        justify-content: center
    }

    .news-date,
    .news-views,
    .news-comments {
        font-size: 12px;
        display: inline-flex;
        align-items: center
    }

    .news-date i,
    .news-views i,
    .news-comments i {
        font-size: 12px
    }

    .news-image {
        height: 200px;
        margin: 15px 0
    }

    .article-content {
        padding: 10px 5px !important;
        font-size: 16px;
        line-height: 1.6
    }

    .news-share {
        padding-left: 5px;
        padding-right: 5px;
    }

    .news-tags {
        flex-wrap: wrap;
        gap: 5px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .news-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px
    }

    .related-news-grid {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .comments-section {
        padding: 15px
    }

    .news-comments-section {
        padding: 15px;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .comment-form textarea {
        height: 100px
    }

    .sidebar-widget .poll-widget,
    .sidebar-widget .news-tags {
        display: none
    }

    .sidebar-widget:has(.poll-widget),
    .sidebar-widget:has(.news-tags) {
        display: none
    }

    .ad-widget {
        margin: 15px 0
    }

    .ad-content {
        min-height: 100px
    }
}

@media screen and (min-width:769px) and (max-width:1024px) {

    .sidebar-widget .poll-widget,
    .sidebar-widget .news-tags {
        display: block
    }
}

@media screen and (max-width:480px) {
    .news-title {
        font-size: 20px;
        padding-top: 20px
    }

    .news-image {
        height: 180px
    }

    .news-content {
        font-size: 14px
    }

    .comment-item {
        padding: 10px
    }
}

[data-theme="dark"] .news-detail-content {
    border-bottom-color: #444
}

[data-theme="dark"] .infinite-scroll-last,
[data-theme="dark"] .infinite-scroll-error {
    color: #888
}

.embed-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #000
}

.embed-16x9 {
    aspect-ratio: 16 / 9
}

.embed-4x3 {
    aspect-ratio: 4 / 3
}

.embed-1x1 {
    aspect-ratio: 1 / 1
}

.embed-21x9 {
    aspect-ratio: 21 / 9
}

.embed-slot {
    position: absolute;
    inset: 0
}

.embed-iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0
}

@supports not (aspect-ratio:1 / 1) {
    .embed-16x9 {
        height: 0;
        padding-top: 56.25%
    }

    .embed-4x3 {
        height: 0;
        padding-top: 75%
    }

    .embed-1x1 {
        height: 0;
        padding-top: 100%
    }

    .embed-21x9 {
        height: 0;
        padding-top: 42.857%
    }

    .embed-slot {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0
    }
}

.article-body iframe:not(.embed-iframe),
.article-content iframe:not(.embed-iframe) {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    display: block;
    border: 0
}

.audio-reader-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative
}

.ar-btn {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #333;
    border-radius: 10px;
    padding: 6px 10px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.ar-btn:hover {
    background: #f8fafc
}

.ar-btn[hidden] {
    display: none !important
}

.ar-menu {
    position: relative;
    display: inline-block
}

.ar-menu>summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    outline: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.ar-menu>summary::-webkit-details-marker {
    display: none
}

.ar-menu-panel {
    position: absolute;
    top: 110%;
    left: 0;
    z-index: 70;
    min-width: 220px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / .12);
    display: none
}

.ar-menu[open] .ar-menu-panel {
    display: block
}

.ar-menu-section {
    font-weight: 600;
    margin: 6px 0 8px;
    color: #111827;
    font-size: 14px
}

.ar-speed {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.ar-speed-item {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px
}

.ar-speed-item:hover {
    background: #eef2f7
}

.ar-speed-item.is-active {
    border-color: #111827;
    background: #fff
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

[data-theme="dark"] .ar-btn,
[data-theme="dark"] .ar-menu>summary {
    background: #1f2937;
    color: #e5e7eb;
    border-color: #374151
}

[data-theme="dark"] .ar-menu-panel {
    background: #111827;
    border-color: #374151;
    color: #e5e7eb
}

[data-theme="dark"] .ar-speed-item {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb
}

[data-theme="dark"] .ar-speed-item.is-active {
    background: #111827;
    border-color: #9ca3af
}

.ar-menu>summary {
    display: none
}

.audio-reader-controls.is-disabled .ar-btn,
.audio-reader-controls.is-disabled .ar-speed-item {
    opacity: .55;
    cursor: not-allowed
}

.audio-reader-controls .ar-iab-note {
    font-size: 13px;
    color: #777;
    margin-left: 8px
}

.ar-menu>summary {
    display: none
}

.ar-speed-item.is-active {
    outline: 2px solid currentColor;
    border-radius: 8px
}

.article-body img {
    display: block;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin: 20px auto
}

.article-body img:not([width]):not([height]) {
    content-visibility: auto;
    contain-intrinsic-size: 200px 300px
}

.share-buttons .share-button i {
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1
}

@media (max-width:768px) {

    .news-detail-sidebar,
    .related-news {
        display: none !important
    }
}

#infiniteStatus {
    min-height: 56px
}

@keyframes ipls {
    0% {
        background-position: 0% 0
    }

    100% {
        background-position: 100% 0
    }
}

.mini-share {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    justify-content: flex-end
}

@media (max-width:600px) {
    .mini-share {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px
    }
}

.mini-share-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
    background-color: #f1f1f1
}

html.dark .mini-share-btn {
    background-color: #333
}

.mini-share-btn svg {
    width: 16px;
    height: 16px;
    fill: #555
}

html.dark .mini-share-btn svg {
    fill: #eee
}

.mini-share-btn:hover {
    transform: scale(1.1);
    opacity: .9
}

.mini-share-btn.fb {
    background: #1877F2
}

.mini-share-btn.fb svg {
    fill: #fff
}

.mini-share-btn.wa {
    background: #25D366
}

.mini-share-btn.wa svg {
    fill: #fff
}

.mini-share-more {
    position: relative
}

.mini-share-more-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #666;
    border: none;
    cursor: pointer;
    transition: background .2s
}

.mini-share-more-btn:hover {
    background: #555
}

.mini-share-more-btn svg {
    width: 16px;
    height: 16px;
    fill: #fff
}

.mini-share-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgb(0 0 0 / .15);
    padding: 10px;
    z-index: 1000;
    min-width: max-content
}

.mini-share-dropdown.show {
    display: flex;
    gap: 8px
}

.mini-share-dropdown a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: transform .2s, opacity .2s
}

.mini-share-dropdown a:hover {
    transform: scale(1.1);
    opacity: .9
}

.mini-share-dropdown a svg {
    width: 18px;
    height: 18px;
    fill: #fff
}

.mini-share-dropdown a.tw {
    background: #1DA1F2
}

.mini-share-dropdown a.tg {
    background: #08c
}

.mini-share-dropdown a.in {
    background: #0A66C2
}

.mini-share-dropdown a.mail {
    background: #666
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap
}

.share-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #333;
    transition: transform 0.2s
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff
}

.fb {
    background: #1877F2
}

.tw {
    background: #1DA1F2
}

.wa {
    background: #25D366
}

.tg {
    background: #08c
}

.in {
    background: #0A66C2
}

.mail {
    background: #444
}

.share-btn:hover {
    opacity: .8;
    transform: translateY(-2px)
}

html.dark .mini-share-dropdown {
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgb(0 0 0 / .4)
}

@media (min-width:768px) {
    .news-author {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between
    }

    .news-author .mini-share {
        margin-left: auto
    }
}

.intext-tag-link {
    display: inline-block;
    margin: 0 .2em;
    text-decoration: underline;
    font-weight: 600
}

.news-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -.5px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--article-text-color);
    margin-bottom: 12px;
    padding-top: 10px
}

.news-subtitle {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--article-text-color);
    margin-bottom: 20px
}

/* Dark Mode Title Fix */
body.dark-theme .news-title,
body.dark .news-title,
body.night-mode .news-title {
    color: #f5f5f5 !important
}

body.dark-theme .news-subtitle,
body.dark .news-subtitle,
body.night-mode .news-subtitle {
    color: #ddd !important
}

/* Share Dropdown */
.share-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.share-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background-color: var(--article-bg-color);
    border: 1px solid var(--article-border-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 10px 0;
    margin-top: 10px;
    flex-direction: column;
}

.share-dropdown-menu.show {
    display: flex;
}

.share-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--article-text-color);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.share-dropdown-menu .dropdown-item:hover {
    background-color: var(--article-tag-bg);
    color: var(--primary-color);
}

.share-dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Dark Mode fixes for dropdown */
[data-theme="dark"] .share-dropdown-menu {
    background-color: #222;
    border-color: #444;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .share-dropdown-menu .dropdown-item {
    color: #eee;
}


/* Next Article Popup */
#nextArticlePopup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 300px;
    border-left: 4px solid var(--primary-color);
}

#nextArticlePopup.is-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#nextArticlePopup .popup-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#nextArticlePopup .popup-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--article-text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] #nextArticlePopup {
    background: #222;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] #nextArticlePopup .popup-title {
    color: #fff;
}


/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 99999;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* Toast Notification */
.hbr-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.hbr-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Modern Tags */
.news-tags {
    margin-top: 20px;
    margin-bottom: 20px;
}

.news-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f2f5;
    color: #555;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.news-tag:hover {
    background: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .news-tag {
    background: #2a2a2a;
    color: #ccc;
}

[data-theme="dark"] .news-tag:hover {
    background: #333;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* Minimal Author Box (Bottom) */
.article-footer-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--article-bg-color);
    border: 1px solid var(--article-border-color);
    border-radius: 12px;
    margin: 30px 0;
}

.article-footer-author img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.article-footer-author .author-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
    color: var(--article-text-color);
}

.article-footer-author .author-info p {
    margin: 0;
    font-size: 13px;
    color: var(--article-meta-color);
}

@media (max-width: 768px) {
    #nextArticlePopup {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }

    .article-footer-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Google News Banner */
.google-news-banner {
    margin: 30px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.google-news-banner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
}

.google-news-banner a:hover {
    background: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.03);
    border-color: rgba(66, 133, 244, 0.3);
    /* Google Blue Tint */
}

.google-news-banner a:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.google-news-banner .gnews-text {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    color: #444;
    font-size: 15px;
    letter-spacing: -0.3px;
}

.google-news-banner img {
    height: 26px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

/* Dark Mode Enhancements */
[data-theme="dark"] .google-news-banner a {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .google-news-banner a:hover {
    background: #252f3f;
    border-color: rgba(66, 133, 244, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .google-news-banner .gnews-text {
    color: #e5e7eb;
}


.gallery-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    color: #fff;
    box-shadow: 0 8px 32px rgb(0 0 0 / .15)
}

body.dark-theme .gallery-info-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d0d14 100%);
    box-shadow: 0 8px 32px rgb(0 0 0 / .4)
}

.gallery-info-header .info-left {
    display: flex;
    align-items: center;
    gap: 12px
}

.gallery-info-header .info-left i {
    font-size: 24px;
    opacity: .9
}

.gallery-info-header .info-text {
    display: flex;
    flex-direction: column
}

.gallery-info-header .info-title {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -.3px
}

.gallery-info-header .info-count {
    font-size: 13px;
    opacity: .85
}

.gallery-info-header .info-right {
    display: flex;
    gap: 10px
}

.gallery-info-header .gallery-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgb(255 255 255 / .2);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px)
}

.gallery-info-header .gallery-nav-btn:hover {
    background: rgb(255 255 255 / .35);
    transform: scale(1.05)
}

.gallery-image-list {
    display: flex;
    flex-direction: column;
    gap: 24px
}

.gallery-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgb(0 0 0 / .08);
    transition: all 0.4s cubic-bezier(.25, .8, .25, 1);
    background: #fff;
    border: 1px solid rgb(0 0 0 / .04)
}

body.dark-theme .gallery-image-item {
    background: #1a1a1a;
    border-color: rgb(255 255 255 / .05);
    box-shadow: 0 10px 40px rgb(0 0 0 / .4)
}

.gallery-image-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgb(0 0 0 / .15)
}

body.dark-theme .gallery-image-item:hover {
    box-shadow: 0 20px 60px rgb(0 0 0 / .5)
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%)
}

body.dark-theme .gallery-image-wrapper {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%)
}

.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 1
}

.gallery-image-item img.loaded {
    opacity: 1
}

.gallery-image-item:hover img {
    transform: scale(1.03)
}

.gallery-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .4), transparent);
    transform: translateX(-100%);
    animation: galleryShimmer 1.5s infinite
}

.gallery-image-item.loaded .gallery-image-wrapper::before {
    display: none
}

@keyframes galleryShimmer {
    100% {
        transform: translateX(100%)
    }
}

.gallery-image-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, rgb(0 0 0 / .7) 0%, rgb(0 0 0 / .5) 100%);
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgb(0 0 0 / .3);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .5px
}

.gallery-image-counter i {
    font-size: 12px;
    opacity: .8
}

.gallery-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgb(0 0 0 / .8) 0%, transparent 100%);
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease
}

.gallery-image-item:hover .gallery-image-caption {
    opacity: 1;
    transform: translateY(0)
}

.gallery-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.8);
    width: 60px;
    height: 60px;
    background: rgb(255 255 255 / .95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgb(0 0 0 / .2);
    cursor: pointer
}

.gallery-zoom-icon i {
    font-size: 24px;
    color: #333
}

.gallery-image-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1)
}

.js-gallery-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 16px
}

.gallery-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #2c3e50;
    border-radius: 50%;
    animation: gallerySpin 0.8s linear infinite
}

body.dark-theme .gallery-spinner {
    border-color: #333;
    border-top-color: #4a90a4
}

@keyframes gallerySpin {
    to {
        transform: rotate(360deg)
    }
}

.gallery-loader-text {
    font-size: 14px;
    color: #666;
    font-weight: 500
}

body.dark-theme .gallery-loader-text {
    color: #aaa
}

@media (max-width:768px) {
    .gallery-info-header {
        flex-direction: column;
        gap: 12px;
        text-align: center
    }

    .gallery-info-header .info-left {
        flex-direction: column
    }

    .gallery-image-item {
        border-radius: 16px
    }

    .gallery-image-counter {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 12px
    }

    .gallery-image-caption {
        font-size: 14px;
        padding: 40px 16px 16px
    }
}

.elm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / .6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease
}

.elm-overlay.show {
    opacity: 1;
    visibility: visible
}

.elm-modal {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 30px 25px;
    border-radius: 16px;
    text-align: center;
    transform: scale(.8);
    transition: all 0.3s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 20px 60px rgb(0 0 0 / .25);
    position: relative;
    border: 1px solid rgb(0 0 0 / .05)
}

.elm-overlay.show .elm-modal {
    transform: scale(1)
}

.elm-icon {
    width: 60px;
    height: 60px;
    background: #fff5f5;
    color: #c00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgb(204 0 0 / .15)
}

.elm-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px
}

.elm-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6
}

.elm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center
}

.elm-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    flex: 1
}

.elm-btn:active {
    transform: scale(.96)
}

.elm-btn-cancel {
    background: #f0f0f0;
    color: #444
}

.elm-btn-cancel:hover {
    background: #e4e4e4
}

.elm-btn-confirm {
    background: #c00;
    color: #fff;
    box-shadow: 0 4px 10px rgb(204 0 0 / .2)
}

.elm-btn-confirm:hover {
    background: #b30000;
    box-shadow: 0 6px 14px rgb(204 0 0 / .3)
}

