/* =================================================================
   V2 Content with Social Block - Optimized Responsive Styles
   ================================================================= */

/* Base Section Styles */
.v2-content-social {
    position: relative;
}

/* Main Wrapper - Flexbox Layout */
.v2-content-social__wrapper {
    display: flex;
    gap: 0;
    align-items: flex-start;
    flex-wrap: wrap;
}

.v2-content-social__wrapper.has-video {
    gap: 30px;
    align-items: center;
}

/* Content Column - Default with Social Icons */
.v2-content-social__wrapper.has-social .v2-content-social__content {
    flex: 1 1 calc(100% - 85px);
}

/* Content Column - Full Width when No Social Icons */
.v2-content-social__wrapper.no-social .v2-content-social__content {
    flex: 1 1 100%;
}

/* Social Column */
.v2-content-social__social {
    flex: 1 1 85px;
    margin-top: 5px;
}

/* When video is present: 40/60 split layout */
.v2-content-social__wrapper.has-video .v2-content-social__social {
    flex: 0 0 350px;
    max-width: 350px;
    margin-top: 0;
}

.v2-content-social__wrapper.has-video .v2-content-social__content {
    flex: 0 0 calc(100% - 380px);
    max-width: calc(100% - 380px);
}

/* =================================================================
   VIDEO THUMBNAIL & POPUP
   ================================================================= */

/* Video Thumbnail Container */
.v2-content-social__video-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 15px;
    line-height: 0;
}

.v2-content-social__video-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Play Button Overlay */
.v2-content-social__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: transform 0.3s ease;
}

.v2-content-social__video-thumb:hover .v2-content-social__play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Popup Overlay */
.v2-content-social__video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.v2-content-social__video-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Video Modal */
.v2-content-social__video-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.v2-content-social__video-modal.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Video Container (16:9 aspect ratio) */
.v2-content-social__video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.v2-content-social__video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video Close Button */
.v2-content-social__video-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    z-index: 10;
    transition: background 0.2s ease;
}

.v2-content-social__video-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* =================================================================
   DECORATIVE LINE
   ================================================================= */

.v2-content-social__decor-line {
    display: block;
    width: 35px;
    height: 6px;
    background-color: var(--secondary-clr, #ea580c);
    margin: -8px 0 20px 0;
    border-radius: 6px;
}

.v2-content-social.text-center .v2-content-social__decor-line {
    margin-left: auto;
    margin-right: auto;
}

.v2-content-social.text-right .v2-content-social__decor-line {
    margin-left: auto;
}



/* Heading Styles */
.v2-content-social__heading {
    font-size: var(--heading-font-size, 36px);
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #002e5b;
}

/* Content Text */
.v2-content-social__text {
    font-size: var(--content-font-size, 16px);
    line-height: 1.6;
    color: #333;
}

.v2-content-social__text p {
    margin: 0 0 15px 0;
}

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

/* Social Icons Container */
.v2-content-social__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
}

/* Individual Social Icon */
.v2-content-social__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 5px;
    background-color: transparent;
    color: #002e5b;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #002e5b;
}

.v2-content-social__icon:hover {
    animation-name: push-animation;
    animation-duration: .3s;
    animation-timing-function: linear;
    animation-iteration-count: 1;
}

/* Text Alignment Options */
.v2-content-social.text-left {
    text-align: left;
}

.v2-content-social.text-center {
    text-align: center;
}

.v2-content-social.text-center .v2-content-social__icons {
    justify-content: center;
}

.v2-content-social.text-right {
    text-align: right;
}

.v2-content-social.text-right .v2-content-social__icons {
    justify-content: flex-end;
}

/* =================================================================
   RESPONSIVE STYLES
   ================================================================= */

/* Tablet Portrait - 992px and below */
@media (max-width: 992px) {
    /* Override any inline font sizes for responsive design */
    .v2-content-social__heading {
        font-size: 32px !important;
    }

    .v2-content-social__wrapper {
        gap: 30px;
    }

    .v2-content-social__icons {
        flex-direction: row;
    }
     
    .hsb-stats__icon--right {
        display: none;
    }

    .v2-content-social__text {
        font-size: 15px;
    }
}

/* Tablet - 768px and below */
@media (max-width: 768px) {
    /* Force font size override on tablets */
    .v2-content-social__heading {
        font-size: 28px !important;
    }

    .v2-content-social__wrapper {
        gap: 25px;
    }

    .v2-content-social__wrapper.has-social .v2-content-social__content,
    .v2-content-social__wrapper.has-video .v2-content-social__content,
    .v2-content-social__wrapper.has-video .v2-content-social__social,
    .v2-content-social__social {
        flex: 1 1 100% !important;
        min-width: 100%;
        max-width: 100% !important;
    }

    .v2-content-social__icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .v2-content-social__video-modal {
        width: 95%;
    }
}

/* Mobile - 576px and below */
@media (max-width: 576px) {
    /* Force smaller font size on mobile */
    .v2-content-social__heading {
        font-size: 24px !important;
        margin-bottom: 15px;
    }

    .v2-content-social__text {
        font-size: 14px;
    }

    .v2-content-social__wrapper {
        gap: 20px;
    }

    .v2-content-social__icons {
        gap: 12px;
    }

    .v2-content-social__icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Reduce section padding on mobile */
    .v2-content-social {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* Small Mobile - 400px and below */
@media (max-width: 400px) {
    .v2-content-social__heading {
        font-size: 22px !important;
    }

    .v2-content-social__text {
        font-size: 13px;
    }

    .v2-content-social__icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

/* Full Width Alignment */
.alignfull.v2-content-social {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Wide Alignment */
.alignwide.v2-content-social .container {
    max-width: 1400px;
}

/* Print Styles */
@media print {
    .v2-content-social__icon {
        background-color: transparent;
        border: 1px solid #000;
    }
}
