.social-media-area {
    padding-top: 70px;
    padding-bottom: 80px;
}

.social-page-heading {
    justify-content: center;
    margin-bottom: 48px;
}

.social-platform-section + .social-platform-section {
    margin-top: 70px;
}

.social-platform-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.social-platform-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #FFBC00;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.social-platform-label i {
    font-size: 18px;
}

.social-platform-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 500;
}

.social-profile-link.theme-btn {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-profile-link.theme-btn:hover,
.social-profile-link.theme-btn:focus-visible {
    color: var(--dark);
}

.social-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.social-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 16px 16px 22px;
    border-radius: 20px;
    background: #171717;
    border: 1px solid rgba(255,255,255,.03);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
    transition: transform .3s ease, border-color .3s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,188,0,.18);
}

.social-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/bg1.png") center/cover no-repeat;
    opacity: .10;
    pointer-events: none;
}

.social-card-media {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
}

.social-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.social-card:hover .social-card-media img {
    transform: scale(1.04);
}

.social-card-body {
    position: relative;
    z-index: 1;
    padding: 18px 2px 0;
}

.social-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 7px;
}

.social-card-platform,
.social-card-date {
    color: #BCBCBC;
    opacity: .55;
    font-size: 12px;
    text-transform: uppercase;
}

.social-card-platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-card-platform i {
    font-size: 15px;
    color: #FFBC00;
}

.social-card-title {
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 500;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.social-card-caption {
    color: #BCBCBC;
    opacity: .72;
    font-size: 13px;
    line-height: 1.55;
    margin: 9px 0 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.social-card-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.social-card-arrow {
    position: absolute;
    right: 17px;
    bottom: 20px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.04);
    color: #fff;
    opacity: .25;
    transition: .3s;
}

.social-card:hover .social-card-arrow {
    opacity: 1;
    color: #FFBC00;
}

.social-feed-status {
    grid-column: 1 / -1;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    background: #171717;
    color: #BCBCBC;
    opacity: .7;
}

.social-feed-status.error {
    color: #d7a6a6;
}

@media (max-width: 991px) {
    .social-feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .social-media-area {
        padding-top: 55px;
        padding-bottom: 60px;
    }

    .social-page-heading {
        margin-bottom: 38px;
    }

    .social-platform-section + .social-platform-section {
        margin-top: 55px;
    }

    .social-platform-heading {
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .social-platform-heading h2 {
        font-size: 25px;
    }

    .social-profile-link {
        white-space: nowrap;
    }

    .social-feed-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 2px;
        padding: 0 4px 8px 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .social-feed-grid::-webkit-scrollbar {
        display: none;
    }

    .social-card {
        flex: 0 0 86%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .social-feed-status {
        flex: 0 0 86%;
        min-height: 140px;
    }
}

/* Social platform profile/channel actions use the existing header theme-btn styling. */

.social-preview-media-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0e0e0e;
}

/* Website-only social preview modal */
body.social-modal-open {
    overflow: hidden;
}

.social-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.78);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.social-preview-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.social-preview-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 24px;
    background: #171717;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    transform: translateY(16px) scale(.98);
    transition: transform .3s ease;
}

.social-preview-modal.is-open .social-preview-dialog {
    transform: translateY(0) scale(1);
}

.social-preview-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    color: #fff;
    cursor: pointer;
    transition: .3s;
}

.social-preview-close:hover,
.social-preview-close:focus-visible {
    color: #FFBC00;
    border-color: rgba(255,188,0,.45);
}

.social-preview-media {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0e0e0e;
}

.social-preview-media img,
.social-preview-media video {
    display: block;
    width: 100%;
    max-height: 62vh;
    object-fit: contain;
    background: #0e0e0e;
}

.social-preview-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,15,15,.78);
    color: #FFBC00;
    cursor: pointer;
    transition: .3s;
}

.social-preview-nav:hover,
.social-preview-nav:focus-visible {
    background: #FFBC00;
    color: #111;
    border-color: #FFBC00;
}

.social-preview-prev { left: 16px; }
.social-preview-next { right: 16px; }
.social-preview-nav[hidden] { display: none; }

.social-preview-indicator {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    transform: translateX(-50%);
    min-width: 54px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15,15,15,.78);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

.social-preview-indicator:empty { display: none; }

.social-preview-video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.social-preview-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.social-preview-content {
    position: relative;
    padding: 24px 28px 28px;
    background: url("../images/bg1.png") center/cover no-repeat;
}

.social-preview-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(23,23,23,.86);
    pointer-events: none;
}

.social-preview-content > * {
    position: relative;
    z-index: 1;
}

.social-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.social-preview-platform {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #FFBC00;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.social-preview-date {
    color: #BCBCBC;
    opacity: .65;
    font-size: 12px;
    text-transform: uppercase;
}

.social-preview-title {
    margin: 0;
    color: #fff;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 500;
}

.social-preview-caption {
    margin: 10px 0 18px;
    color: #BCBCBC;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.social-preview-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.social-preview-external:hover,
.social-preview-external:focus-visible {
    color: #111;
    background: #FFBC00;
}

.social-card-link {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 767px) {
    .social-preview-nav {
        width: 40px;
        height: 40px;
    }

    .social-preview-prev { left: 10px; }
    .social-preview-next { right: 10px; }

    .social-preview-modal {
        padding: 12px;
    }

    .social-preview-dialog {
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    .social-preview-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .social-preview-content {
        padding: 20px;
    }

    .social-preview-title {
        font-size: 21px;
    }

    .social-preview-caption {
        font-size: 13px;
    }
}
