/* Article v2 - Single article page */

.article-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    padding-top: 32px;
    background: #ffffff;
}

.article-v2 * {
    box-sizing: border-box;
}

/* Breadcrumbs */
.article-v2__breadcrumbs {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    line-height: 15px;
    margin-bottom: 32px;
}

.article-v2__breadcrumbs a {
    color: #113555;
    text-decoration: none;
}

.article-v2__breadcrumbs a:hover {
    text-decoration: underline;
}

.article-v2__breadcrumb-sep {
    color: #bdbdbd;
    margin: 0 5px;
}

.article-v2__breadcrumb--current {
    color: #2f2f2f;
}

/* Hero */
.article-v2__hero {
    border-radius: 7px;
    overflow: hidden;
    height: 334px;
    margin-bottom: 32px;
    background-color: #eeeeee;
    background-size: cover;
    background-position: center;
}

.article-v2__hero--no-img {
    background: #113555;
}

.article-v2__hero-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.77);
    padding: 40px 50px;
}

.article-v2__title {
    font-family: Montserrat, sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    text-align: center;
    margin: 0;
    max-width: 1000px;
}

.article-v2__date {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: #ffbd45;
    text-align: center;
}

/* Container */
.article-v2__container {
    display: flex;
    gap: 24px;
}

/* Main content */
.article-v2__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* TOC - Table of Contents */
.article-v2__toc {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-v2__toc-title {
    font-family: Montserrat, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #113555;
    margin: 0;
}

.article-v2__toc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-v2__toc-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 7px;
    background: #f6f7f9;
    padding: 8px 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.article-v2__toc-item:hover {
    background: #eaebed;
}

.article-v2__toc-item--sub {
    margin-left: 24px;
}

.article-v2__toc-num {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: #3674a9;
    flex-shrink: 0;
}

.article-v2__toc-text {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: #2f2f2f;
}

/* Article body - WordPress content styling */
.article-v2__body {
    overflow: hidden;
}

.article-v2__body h2 {
    font-family: Montserrat, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #113555;
    margin: 48px 0 16px;
    line-height: 1.2;
}

.article-v2__body h3 {
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #113555;
    margin: 40px 0 16px;
    line-height: 1.3;
}

.article-v2__body h4 {
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #113555;
    margin: 32px 0 16px;
    line-height: 1.4;
}

.article-v2__body p {
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    line-height: 30px;
    color: #2f2f2f;
    margin: 0 0 16px;
}

.article-v2__body p:last-child {
    margin-bottom: 0;
}

.article-v2__body strong,
.article-v2__body b {
    font-weight: 600;
}

.article-v2__body a {
    color: #3674a9;
    text-decoration: underline;
}

.article-v2__body a:hover {
    color: #ffbd45;
}

/* Ordered lists */
.article-v2__body ol {
    list-style: none;
    counter-reset: ol-counter;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-v2__body ol li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    line-height: 30px;
    color: #2f2f2f;
    counter-increment: ol-counter;
}

.article-v2__body ol li::before {
    content: counter(ol-counter) ".";
    font-weight: 700;
    color: #3674a9;
    flex-shrink: 0;
    min-width: 30px;
    text-align: right;
}

/* Unordered lists */
.article-v2__body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-v2__body ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    line-height: 30px;
    color: #2f2f2f;
}

.article-v2__body ul li::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 6px;
    background: url("../blog-v2/img/mles5b7m-mpiwosr.svg") center / contain
        no-repeat;
}

/* Blockquote */
.article-v2__body blockquote::before {
  position: relative;
  content: "";
  width: 32px;
  height: 32px;
  display: inline-block;
  background: url("../blog-v2/img/quote.svg") center / contain no-repeat;
}

.article-v2__body blockquote {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 4px solid #0e3456;
    border-radius: 7px;
    background: #f6f7f9;
    padding: 24px 32px 24px 28px;
    margin: 32px 0;
}

.article-v2__body blockquote p {
    font-size: 22px;
    font-style: italic;
    line-height: 33px;
    margin: 0;
}

.article-v2__body blockquote cite {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    line-height: 24px;
    color: #2f2f2f;
    opacity: 0.6;
}

/* Tables */
.article-v2__body table {
    width: 100%;
    /* display: flex; */
    border-collapse: unset !important;
    border: 1px solid #eaebed;
    border-radius: 7px;
    border-spacing: 0;
    overflow: hidden;
    margin: 16px 0;
}

.article-v2__body table thead td {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #2f2f2f;
    background: #f4f5f7;
    padding: 9px 12px 10px 11px;
    text-align: left;
    border-bottom: 1px solid #eaebed;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

.article-v2__body table thead td:last-child {
    border-right: none;
}

.article-v2__body table td {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 18px;
    color: #2f2f2f;
    padding: 9px 12px 10px 11px;
    border-bottom: 1px solid #eaebed;
    border-right: 1px solid #eaebed;
    background: #ffffff;
}

.article-v2__body table td:last-child {
    border-right: none;
}

.article-v2__body table tr:last-child td {
    border-bottom: none;
}

/* Images in article */
.article-v2__body .article-gallery {
    display: flex;
    gap: 12px;
    margin: 32px 0;
}

.article-v2__body .article-gallery--single {
    flex-direction: column;
    gap: 6px;
}

.article-v2__body .article-gallery__item {
    flex: 1;
    min-width: 0;
    position: relative;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
}

.article-v2__body .article-gallery--single .article-gallery__item {
    max-height: 400px;
}

.article-v2__body .article-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 7px;
}

.article-v2__body .article-gallery__item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 7px;
    background-image: url("../blog-v2/img/mles5b7m-oi2i0xw.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px;
}

.article-v2__body .article-gallery__item:hover::after {
    opacity: 1;
}

.article-v2__body .article-gallery__caption {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #2f2f2f;
    opacity: 0.6;
    text-align: center;
}

/* Gallery heights by count */
.article-v2__body .article-gallery--2 .article-gallery__item {
    height: 360px;
}

.article-v2__body .article-gallery--3 .article-gallery__item {
    height: 250px;
}

.article-v2__body .article-gallery--4 .article-gallery__item {
    height: 180px;
}

/* Share buttons */
.article-v2__share {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.article-v2__share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px;
    background: #f6f7f9;
    border: none;
    padding: 0 24px;
    height: 55px;
    cursor: pointer;
    transition: background 0.3s;
}

.article-v2__share-link:hover {
    background: #eaebed;
}

.article-v2__share-link--copied {
    background: #113555;
}

.article-v2__share-link--copied .article-v2__share-link-text {
    color: #ffffff;
}

.article-v2__share-link--copied .article-v2__share-icon {
    filter: brightness(0) invert(1);
}

.article-v2__share-icon {
    width: 24px;
    height: 24px;
}

.article-v2__share-link-text {
    font-family: "Exo 2", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.68px;
    color: #113555;
    text-transform: uppercase;
}

.article-v2__share-social {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

.article-v2__share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.article-v2__share-btn:hover {
    opacity: 0.8;
}

.article-v2__share-btn img {
    width: 55px;
    height: 55px;
    border-radius: 4px;
}

.article-v2__share-btn--bg {
    background: #f6f7f9;
}

.article-v2__share-btn--bg img {
    width: 24px;
    height: 24px;
    border-radius: 0;
}

/* Related articles */
.article-v2__related {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-v2__related-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.article-v2__related-title {
    font-family: Montserrat, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #113555;
    margin: 0;
}

.article-v2__related-subtitle {
    font-family: Montserrat, sans-serif;
    font-size: 20px;
    line-height: 30px;
    color: #2f2f2f;
    margin: 0;
}

.article-v2__related-arrows {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.article-v2__related-arrow {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.article-v2__related-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.article-v2__related-arrow img {
    width: 44px;
    height: 44px;
}

.article-v2__related-arrow--next img {
    transform: rotate(-180deg);
}

.article-v2__related-slider {
    overflow: hidden;
}

.article-v2__related-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
}

.article-v2__related-card {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
}

.article-v2__related-img {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 7px;
    height: 160px;
    background-color: #eeeeee;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.article-v2__related-card:hover .article-v2__related-img {
    transform: scale(1.03);
}

.article-v2__related-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-v2__related-card-title {
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 23px;
    color: #113555;
    margin: 0;
}

.article-v2__related-card:hover .article-v2__related-card-title {
    color: #ffbd45;
}

.article-v2__related-card-date {
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 21px;
    color: #2f2f2f;
    opacity: 0.6;
}

.article-v2__related-all {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #0e3456;
    border-radius: 4px;
    padding: 17px 18px 14px;
    height: 50px;
    text-decoration: none;
    transition: background 0.3s;
}

.article-v2__related-all:hover {
    background: #f6f7f9;
}

.article-v2__related-all span {
    font-family: "Exo 2", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 13px;
    letter-spacing: 0.56px;
    color: #113555;
    text-transform: uppercase;
}

/* Sidebar */
.article-v2__sidebar {
    width: 367px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Video widget */
.article-v2__video-widget {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-v2__video-title {
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 29px;
    color: #113555;
    margin: 0;
}

.article-v2__video-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 7px;
    background: #f6f7f9;
    padding: 8px;
}

.article-v2__video-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 7px;
    background: #ffffff;
    padding: 4px;
    width: 100%;
}

.article-v2__video-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 7px;
    padding: 8px 19px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2f2f2f;
    transition: all 0.3s;
}

.article-v2__video-tab--active {
    background: #f6f7f9;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.article-v2__video-tab-icon {
    width: 18px;
    height: 18px;
}

.article-v2__video-player-wrap {
    display: none;
    width: 100%;
    margin-top: 8px;
}

.article-v2__video-player-wrap--active {
    display: block;
}

/* Shortcode form placeholder */
.article-v2__body .article-shortcode-form {
    margin: 32px 0;
}

/* Mobile gallery scroll */
@media (max-width: 991px) {
    .article-v2__main {
        gap: 20px;
    }

    .article-v2__container {
        flex-direction: column;
    }

    .article-v2__sidebar {
        width: 100%;
    }

    /* Hide sidebar form on mobile */
    .article-v2__sidebar .blog-v2__form-widget-wrapper {
        display: none;
    }

    /* Hide sidebar video widget (moved into main via JS) */
    .article-v2__sidebar .article-v2__video-widget {
        display: none;
    }

    .article-v2__title {
        font-size: 32px;
    }

    .article-v2__hero {
        height: 250px;
    }

    .article-v2__body h2 {
        font-size: 26px;
    }

    .article-v2__body h3 {
        font-size: 20px;
    }

    .article-v2__body p,
    .article-v2__body ol li,
    .article-v2__body ul li {
        font-size: 17px;
        line-height: 27px;
    }

    .article-v2__body blockquote p {
        font-size: 18px;
        line-height: 28px;
    }

    .article-v2__share {
        flex-direction: column;
        gap: 16px;
    }

    .article-v2__related-slider {
        overflow-x: auto;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .article-v2__related-track {
        gap: 12px;
        transform: none !important;
    }

    .article-v2__related-card {
        flex: 0 0 260px;
    }

    /* Gallery mobile scroll */
    .article-v2__body .article-gallery:not(.article-gallery--single) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        flex-wrap: nowrap;
    }

    .article-v2__body
        .article-gallery:not(.article-gallery--single)
        .article-gallery__item {
        flex: 0 0 80%;
        scroll-snap-align: start;
        height: 220px;
    }

    .article-v2__body .article-gallery--2 .article-gallery__item,
    .article-v2__body .article-gallery--3 .article-gallery__item,
    .article-v2__body .article-gallery--4 .article-gallery__item {
        height: 220px;
    }

    .article-v2__body .article-gallery {
        margin: 24px 0;
    }

    /* Hide scrollbar for clean slider look */
    .article-v2__body .article-gallery:not(.article-gallery--single) {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .article-v2__body
        .article-gallery:not(.article-gallery--single)::-webkit-scrollbar {
        display: none;
    }

    /* Merged consecutive galleries into one slider */
    .article-v2__body .article-gallery--merged {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        flex-wrap: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .article-v2__body .article-gallery--merged::-webkit-scrollbar {
        display: none;
    }

    .article-v2__body .article-gallery--merged .article-gallery__item {
        flex: 0 0 80%;
        scroll-snap-align: start;
        height: 220px;
    }
}

@media (max-width: 767px) {
    .article-v2 {
        padding: 20px 15px 40px;
    }

    .article-v2__hero {
        height: 200px;
        margin-bottom: 20px;
    }

    .article-v2__title {
        font-size: 24px;
    }

    .article-v2__hero-overlay {
        padding: 20px;
    }

    .article-v2__body h2 {
        font-size: 22px;
        margin-top: 32px;
    }

    .article-v2__body h3 {
        font-size: 18px;
    }

    .article-v2__body p,
    .article-v2__body ol li,
    .article-v2__body ul li {
        font-size: 16px;
        line-height: 25px;
    }

    .article-v2__toc-title {
        font-size: 24px;
    }

    .article-v2__related-title {
        font-size: 24px;
    }

    .article-v2__related-arrows {
        display: none;
    }

    .article-v2__share-link {
        width: 100%;
    }

    .article-v2__share-social {
        width: 100%;
        justify-content: center;
    }

    .article-v2__body
        .article-gallery:not(.article-gallery--single)
        .article-gallery__item {
        flex: 0 0 85%;
    }

    .article-v2__body .article-gallery__caption {
        font-size: 12px;
        line-height: 18px;
    }

    .article-v2__body .article-gallery--single {
        gap: 4px;
    }

    .article-v2__body .article-gallery--merged .article-gallery__item {
        flex: 0 0 85%;
    }

    .article-v2__body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575px) {
    .article-v2__title {
        font-size: 20px;
    }

    .article-v2__hero {
        height: 180px;
    }

    .article-v2__date {
        font-size: 14px;
    }
}
