/* ===================================================
   Version 3 Blog Details - Custom Styles
   =================================================== */

/* Banner Center Alignment */
.breadcrumb__content--center {
    text-align: center;
}

.breadcrumb__content--center .breadcrumb__content--title {
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.breadcrumb__content--center .breadcrumb__content--menu {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Blog Details Rich-Text Content */
.blog__details--content {
    color: var(--text-gray-color, #555555);
    font-size: 1.6rem;
    line-height: 1.85;
    word-break: break-word;
    overflow-wrap: break-word;
}

.blog__details--content[dir="rtl"],
html[dir="rtl"] .blog__details--content {
    direction: rtl;
    text-align: right;
}

.blog__details--content[dir="ltr"],
html[dir="ltr"] .blog__details--content {
    direction: ltr;
    text-align: left;
}

/* Headings */
.blog__details--content h1,
.blog__details--content h2,
.blog__details--content h3,
.blog__details--content h4,
.blog__details--content h5,
.blog__details--content h6 {
    color: var(--secondary-color, #222222);
    margin-top: 2.4rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}

.blog__details--content h1:first-child,
.blog__details--content h2:first-child,
.blog__details--content h3:first-child,
.blog__details--content h4:first-child {
    margin-top: 0;
}

.blog__details--content h1 { font-size: 2.8rem; }
.blog__details--content h2 { font-size: 2.4rem; }
.blog__details--content h3 { font-size: 2.0rem; }
.blog__details--content h4 { font-size: 1.8rem; }
.blog__details--content h5 { font-size: 1.6rem; }
.blog__details--content h6 { font-size: 1.4rem; }

/* Paragraphs & Text Formatting */
.blog__details--content p {
    margin-bottom: 1.6rem;
    line-height: 1.85;
}

.blog__details--content p:last-child {
    margin-bottom: 0;
}

.blog__details--content strong,
.blog__details--content b {
    font-weight: 700;
}

.blog__details--content em,
.blog__details--content i {
    font-style: italic;
}

.blog__details--content u {
    text-decoration: underline;
}

.blog__details--content s,
.blog__details--content strike,
.blog__details--content del {
    text-decoration: line-through;
}

.blog__details--content sub {
    vertical-align: sub;
    font-size: smaller;
}

.blog__details--content sup {
    vertical-align: super;
    font-size: smaller;
}

/* Authored Highlights and Colors */
.blog__details--content mark,
.blog__details--content [style*="background-color"] {
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

/* Bulleted and Numbered Lists */
.blog__details--content ul,
.blog__details--content ol {
    margin-top: 0.8rem;
    margin-bottom: 1.8rem;
    padding-inline-start: 2.5rem;
    padding-inline-end: 0;
}

.blog__details--content ul {
    list-style-type: disc !important;
}

.blog__details--content ol {
    list-style-type: decimal !important;
}

.blog__details--content ul ul {
    list-style-type: circle !important;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.blog__details--content ul ul ul {
    list-style-type: square !important;
}

.blog__details--content ol ol {
    list-style-type: lower-latin !important;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.blog__details--content ol ol ol {
    list-style-type: lower-roman !important;
}

.blog__details--content li {
    display: list-item !important;
    margin-bottom: 0.6rem;
    line-height: 1.75;
}

/* Direction-specific list padding fallback */
.blog__details--content[dir="rtl"] ul,
.blog__details--content[dir="rtl"] ol,
html[dir="rtl"] .blog__details--content ul,
html[dir="rtl"] .blog__details--content ol {
    padding-right: 2.5rem;
    padding-left: 0;
}

.blog__details--content[dir="ltr"] ul,
.blog__details--content[dir="ltr"] ol,
html[dir="ltr"] .blog__details--content ul,
html[dir="ltr"] .blog__details--content ol {
    padding-left: 2.5rem;
    padding-right: 0;
}

/* Text Alignment and Indentation */
.blog__details--content .text-center,
.blog__details--content [style*="text-align: center"] {
    text-align: center;
}

.blog__details--content .text-right,
.blog__details--content [style*="text-align: right"] {
    text-align: right;
}

.blog__details--content .text-left,
.blog__details--content [style*="text-align: left"] {
    text-align: left;
}

.blog__details--content .text-justify,
.blog__details--content [style*="text-align: justify"] {
    text-align: justify;
}

/* Blockquotes */
.blog__details--content blockquote {
    margin: 2.2rem 0;
    padding: 1.4rem 1.8rem;
    background: var(--bg-gray-color, #f8f8f8);
    font-style: italic;
    color: #444444;
}

.blog__details--content[dir="rtl"] blockquote,
html[dir="rtl"] .blog__details--content blockquote {
    border-right: 4px solid var(--secondary-color, #ad724b);
    border-left: none;
    border-radius: 8px 0 0 8px;
}

.blog__details--content[dir="ltr"] blockquote,
html[dir="ltr"] .blog__details--content blockquote {
    border-left: 4px solid var(--secondary-color, #ad724b);
    border-right: none;
    border-radius: 0 8px 8px 0;
}

/* Images */
.blog__details--content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.2rem 0;
    display: inline-block;
}

/* Tables */
.blog__details--content table {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
}

.blog__details--content table th,
.blog__details--content table td {
    border: 1px solid var(--border-color2, #e5e5e5);
    padding: 1rem 1.4rem;
    font-size: 1.45rem;
}

.blog__details--content table th {
    background-color: rgba(0, 0, 0, 0.04);
    font-weight: 700;
}

/* Links */
.blog__details--content a {
    color: var(--secondary-color, #ad724b);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog__details--content a:hover {
    color: #8b5a2b;
}

/* Code & Preformatted Text */
.blog__details--content code {
    background-color: rgba(0, 0, 0, 0.06);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog__details--content pre {
    background-color: #2d3748;
    color: #f7fafc;
    padding: 1.2rem 1.6rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.8rem;
}

.blog__details--content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Long Content - Read More / Collapse */
.blog-content-wrapper {
    position: relative;
    transition: max-height 0.4s ease-in-out;
}

.blog-content-wrapper.is-collapsed {
    max-height: 480px;
    overflow: hidden;
}

.blog-content-wrapper.is-collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.96) 100%);
    pointer-events: none;
}

.blog__read-more--btn-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: flex-start;
}

.blog__read-more--btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

.blog__read-more--btn svg {
    transition: transform 0.25s ease;
}

/* Videos Section & Slider */
.blog__videos--section {
    margin-top: 4rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--border-color2, #eaeaea);
    position: relative;
}

.blog__videos--header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.blog__videos--title {
    font-size: 2.2rem;
    color: var(--secondary-color, #222);
    font-weight: 600;
    margin: 0;
}

.blog__videos--slider-container {
    position: relative;
    width: 100%;
}

.blog__videos--nav {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.blog__videos--nav.is-locked,
.blog__videos--nav .swiper__nav--btn.swiper-button-lock {
    display: none !important;
}

/* Force navigation buttons to remain visible when overflow exists */
.blog__videos--nav .swiper__nav--btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    background: var(--bg-gray-color, #f7f8fc);
    border: 1px solid var(--border-color2, #e4e4e4);
    color: var(--secondary-color, #222);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.25s ease;
    z-index: 10;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog__videos--nav .swiper__nav--btn::after {
    display: none !important;
}

.blog__videos--nav .swiper__nav--btn .blog__videos--nav-icon {
    width: 16px;
    height: 16px;
    display: block;
    color: currentColor;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.blog__videos--nav .swiper__nav--btn:hover:not(.swiper-button-disabled) {
    background: var(--secondary-color, #222222);
    border-color: var(--secondary-color, #222222);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.blog__videos--nav .swiper__nav--btn:focus-visible {
    outline: 2px solid var(--primary-color, #d4a373);
    outline-offset: 2px;
}

.blog__videos--nav .swiper__nav--btn.swiper-button-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ---------------------------------------------------
   1. Desktop (>= 992px): Place arrows outside card row, vertically centered on video thumbnails
   --------------------------------------------------- */
@media only screen and (min-width: 992px) {
    .blog__videos--nav {
        position: static;
    }

    .blog__videos--btn-prev {
        position: absolute !important;
        left: -20px !important;
        top: 72px !important;
        transform: translateY(-50%) !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
    }

    .blog__videos--btn-prev:hover:not(.swiper-button-disabled) {
        transform: translateY(-50%) scale(1.08) !important;
    }

    .blog__videos--btn-next {
        position: absolute !important;
        right: -20px !important;
        top: 72px !important;
        transform: translateY(-50%) !important;
        left: auto !important;
        bottom: auto !important;
        margin: 0 !important;
    }

    .blog__videos--btn-next:hover:not(.swiper-button-disabled) {
        transform: translateY(-50%) scale(1.08) !important;
    }
}

/* ---------------------------------------------------
   2. Mobile and Narrow Tablet (< 992px): Keep arrows in header beside "Article Videos" heading
   --------------------------------------------------- */
@media only screen and (max-width: 991px) {
    .blog__videos--header {
        position: relative;
        padding-right: 90px;
        margin-bottom: 2rem;
    }

    .blog__videos--title {
        font-size: 2rem;
    }

    .blog__videos--nav {
        position: absolute;
        top: -50px;
        right: 0;
        display: flex !important;
        align-items: center;
        gap: 0.8rem;
        z-index: 5;
    }

    .blog__videos--nav .swiper__nav--btn {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
    }

    .blog__videos--nav .swiper__nav--btn:hover:not(.swiper-button-disabled) {
        transform: translateY(-2px) !important;
    }
}

@media only screen and (max-width: 575px) {
    .blog__videos--header {
        padding-right: 86px;
        margin-bottom: 1.8rem;
    }

    .blog__videos--title {
        font-size: 1.8rem;
    }

    .blog__videos--nav {
        top: -46px;
        gap: 0.6rem;
    }

    .blog__videos--nav .swiper__nav--btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* Swiper Slider Container */
.blog__videos--swiper {
    position: relative;
    overflow: hidden;
    padding: 4px 2px 10px 2px;
}

.blog__videos--swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Video Card Styling */
.blog__video--card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color2, #e8e8e8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog__video--card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--border-color, #c8c8c8);
}

.blog__video--card-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
}

.blog__video--thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f7f3ee;
    overflow: hidden;
}

.blog__video--thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog__video--card:hover .blog__video--thumbnail:not(.is-fallback-logo) {
    transform: scale(1.06);
}

/* Fallback Indoors Logo */
.blog__video--thumbnail.is-fallback-logo {
    object-fit: contain !important;
    padding: 2.2rem 2.8rem;
    background-color: #f7f3ee;
    transform: none !important;
}

.blog__video--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.08) 60%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.blog__video--card:hover .blog__video--overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0) 100%);
}

.blog__video--play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--secondary-color, #AD724B);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.blog__video--play-btn svg {
    margin-left: 2px;
}

.blog__video--card:hover .blog__video--play-btn {
    transform: translate(-50%, -50%) scale(1.12);
    background: #ffffff;
}

.blog__video--badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.blog__video--badge-youtube { background: #e50914; }
.blog__video--badge-instagram { background: #d62976; }
.blog__video--badge-tiktok { background: #000000; border: 1px solid rgba(255, 255, 255, 0.3); }
.blog__video--badge-facebook { background: #1877f2; }
.blog__video--badge-snapchat { background: #fffc00; color: #000000; }
.blog__video--badge-vimeo { background: #1ab7ea; }

/* Video Card Info */
.blog__video--info {
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    background: #ffffff;
}

.blog__video--card-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--secondary-color, #222);
    margin-bottom: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog__video--card-title a {
    color: inherit;
    transition: color 0.2s ease;
}

.blog__video--card-title a:hover {
    color: var(--secondary-color, #AD724B);
}

.blog__video--action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color, #AD724B);
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.blog__video--action-link:hover {
    gap: 0.8rem;
    opacity: 0.85;
}

/* Sidebar Styling */
.articl__post--items {
    margin-bottom: 2rem;
}

.articl__post--items:last-child {
    margin-bottom: 0;
}

.articl__post--items__thumbnail {
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.articl__post--items__img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.articl__post--items:hover .articl__post--items__img {
    transform: scale(1.05);
}

.articl__post--items__content--title {
    font-size: 1.5rem;
    line-height: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.articl__post--items__content--title a:hover {
    color: var(--primary-color);
}

/* ===================================================
   Social Share & Copy Link Controls
   =================================================== */
.blog__tags--social__media {
    padding: 2.5rem 0 1.5rem;
}

.blog__social--media {
    flex-wrap: wrap;
    gap: 1rem;
}

.blog__social--media ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog__social--media__list {
    margin-right: 0 !important;
}

.blog__social--media__link {
    width: 3.2rem;
    height: 3.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary-color, #222222);
    color: var(--white-color, #ffffff);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.blog__social--media__link:hover {
    background: var(--primary-color, #d4a373);
    color: var(--white-color, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.blog__social--media__link:focus-visible {
    outline: 2px solid var(--primary-color, #d4a373);
    outline-offset: 2px;
}

.blog__copy-link--item {
    position: relative;
}

.blog__copy-link--btn {
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
}

.blog__copy-link--tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #222222;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

.blog__copy-link--tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #222222 transparent transparent transparent;
}

.blog__copy-link--item.is-copied .blog__copy-link--tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.blog__copy-link--item.is-copied .blog__copy-link--btn {
    background: var(--primary-color, #d4a373);
    color: var(--white-color, #ffffff);
}

@media only screen and (max-width: 575px) {
    .blog__tags--social__media {
        justify-content: flex-start !important;
    }

    .blog__social--media {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
}

