/* ========================================================
   Instagram Reels Carousel Section Styles
   ======================================================== */

.insta-reels-section {
    position: relative;
    padding: 24px 0 10px;
    background: linear-gradient(180deg, #ffffff 0%, #faf6f7 100%);
    overflow: hidden;
    max-width: 100%;
}

.insta-reels-section .section-title {
    margin-bottom: 0;
}

.insta-reels-section .section-title__title {
    margin-bottom: 0;
}

.insta-reels-section .section-title__tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #bc1888;
    background: rgba(220, 39, 67, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.insta-reels-section .section-title__tagline i {
    font-size: 16px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.insta-reels__header-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    margin-bottom: 6px;
}

.insta-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 50px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
}

.insta-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(220, 39, 67, 0.35);
    color: #ffffff !important;
}

.insta-follow-btn i {
    font-size: 18px;
}

/* Card Styling */
.insta-reel-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 420px;
    background-color: #1a1414;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    user-select: none;
}

.insta-reel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.insta-reel-card__video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.insta-reel-card__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlays */
.insta-reel-card__overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.insta-reel-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.insta-reel-card__badge i {
    font-size: 14px;
    color: #ff5e7e;
}

.insta-reel-card__sound-btn {
    display: none !important;
}

.insta-reel-card__overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0) 100%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insta-reel-card__footer-action {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.insta-reel-card__view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 50px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.insta-reel-card__view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.insta-reel-card__view-btn:hover::before {
    left: 100%;
}

.insta-reel-card__view-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(220, 39, 67, 0.55);
    color: #ffffff !important;
}

.insta-reel-card__view-btn i.fa-instagram {
    font-size: 15px;
}

.insta-reel-card__view-btn i.fa-external-link-alt {
    font-size: 11px;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.insta-reel-card__view-btn:hover i.fa-external-link-alt {
    transform: translate(2px, -2px);
}

/* Play/Pause Center Indicator */
.insta-reel-card__play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 2;
}

.insta-reel-card.is-paused .insta-reel-card__play-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Owl Carousel Custom Controls for Reels & Headroom Fix */
.insta-reels__carousel {
    position: relative;
    padding-top: 4px;
    max-width: 100%;
}

.insta-reels__carousel .owl-stage-outer {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    margin-top: -14px !important;
    margin-bottom: -14px !important;
}

.insta-reels__carousel .owl-nav {
    margin-top: 14px;
    text-align: center;
}

.insta-reels__carousel .owl-nav button.owl-prev,
.insta-reels__carousel .owl-nav button.owl-next {
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    color: #1a1414 !important;
    margin: 0 6px;
    transition: all 0.3s ease !important;
}

.insta-reels__carousel .owl-nav button.owl-prev:hover,
.insta-reels__carousel .owl-nav button.owl-next:hover {
    background: var(--satvaa-pink, #c298a2) !important;
    color: #ffffff !important;
}

.insta-reels__carousel .owl-dots {
    margin-top: 8px;
    text-align: center;
}

.insta-reels__carousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 4px 5px;
    background: #ded6d3;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.insta-reels__carousel .owl-dots .owl-dot.active span {
    width: 26px;
    border-radius: 12px;
    background: var(--satvaa-pink-dark, #a25a6b);
}

@media (max-width: 767px) {
    .insta-reels-section {
        padding: 18px 0 10px;
    }
    .insta-reels__header-action {
        justify-content: flex-start;
        margin-top: 10px;
        margin-bottom: 0;
    }
    .insta-reel-card {
        height: 380px;
    }
    .insta-reel-embed-frame {
        height: 420px;
        min-height: 420px;
    }
}

@media (max-width: 480px) {
    .insta-reel-card {
        height: 350px;
    }
    .insta-reel-embed-frame {
        height: 390px;
        min-height: 390px;
    }
}

/* ========================================================
   Instagram Direct Embed Card Styles (Exact Links)
   ======================================================== */
.insta-embed-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
}

.insta-embed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.13);
}

.insta-embed-card__frame-wrap {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #fafafa;
}

.insta-reel-embed-frame {
    width: 130%;
    min-height: 490px;
    height: 490px;
    transform: scale(0.77);
    transform-origin: top left;
    border: none;
    display: block;
    background: #fafafa;
}

.insta-embed-card__action {
    padding: 10px 14px 12px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.insta-embed-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 50px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.insta-embed-card__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.insta-embed-card__btn:hover::before {
    left: 100%;
}

.insta-embed-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(220, 39, 67, 0.5);
    color: #ffffff !important;
}

.insta-embed-card__btn i.fa-instagram {
    font-size: 15px;
}

.insta-embed-card__btn i.fa-external-link-alt {
    font-size: 11px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.insta-embed-card__btn:hover i.fa-external-link-alt {
    transform: translate(2px, -2px);
}

.insta-embed-card__footer {
    display: none !important;
}

@media (max-width: 767px) {
    .insta-embed-card__frame-wrap {
        height: 360px;
    }
    .insta-reel-embed-frame {
        width: 125%;
        height: 450px;
        min-height: 450px;
        transform: scale(0.8);
        transform-origin: top left;
    }
}

@media (max-width: 480px) {
    .insta-embed-card__frame-wrap {
        height: 340px;
    }
    .insta-reel-embed-frame {
        width: 125%;
        height: 425px;
        min-height: 425px;
        transform: scale(0.8);
        transform-origin: top left;
    }
}

