/* instagram-success.css */

.instagram-success-section {
    background-color: #f7fafc;
    position: relative;
}

/* Grid & Section Headings */
.iss-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .iss-grid-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.iss-section-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1f36;
    margin-bottom: 8px;
    line-height: 1.3;
}

.iss-section-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 30px;
}

/* Reels Container */
.iss-reels-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .iss-reels-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.iss-reel-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 380px;
    position: relative;
}

.iss-reel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.iss-reel-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Visa Slider Marquee (Right-to-Left Infinite Animation) */
.iss-slider-container {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    overflow: hidden;
}

.iss-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
    background: #fafafa;
    border-radius: 10px;
}

.iss-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: issMarqueeLoop 20s linear infinite;
}

/* Pause animation on hover */
.iss-marquee-wrapper:hover .iss-marquee-track {
    animation-play-state: paused;
}

.iss-slide-card {
    width: 180px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 5px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.iss-slide-card:hover {
    border-color: #ba131a;
    transform: scale(1.02);
}

.iss-slide-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 4px;
}

.iss-slide-card span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #ba131a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.iss-slide-card p {
    font-size: 13px;
    font-weight: 600;
    color: #1a1f36;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Keyframes for seamless looping marquee */
@keyframes issMarqueeLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
