/* Base styles */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Video container styles */
.video-container {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
}

.video-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: #fff;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-title {
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.latestVideoEmbed {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    background-color: #f5f5f5;
}

.latestVideoEmbed iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
}

/* YouTube subscribe button */
#youtube-subscribe {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 2rem;
    padding: 0 0.75rem;
}

.g-ytsubscribe {
    display: flex;
    justify-content: flex-start;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FF0000;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.youtube-link:hover {
    background-color: #cc0000;
    color: white;
    text-decoration: none;
}

/* Loading and error states */
.loading-indicator {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.error-message {
    padding: 0.75rem;
}

.fallback-content {
    padding: 2rem 0.75rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .video-container {
        padding: 0.5rem;
    }
    
    #youtube-subscribe {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .youtube-link {
        width: 100%;
        justify-content: center;
    }
    
    .video-title {
        font-size: 13px;
        height: 55px;
    }
}

/* Legacy styles kept for compatibility */
.boxes3 {
    height: 175px;
    width: 153px;
}

#n img {
    max-height: none !important;
    max-width: none !important;
    background: none !important;
}

#inst i {
    max-height: none !important;
    max-width: none !important;
    background: none !important;
}

.instagram-feed {
    margin-bottom: 2rem;
}

.instagram-feed img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}