/* Media and News Section - Modern 2-Card Layout */

.media-news-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08), 0 1px 5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 100%;
    min-height: 480px;
    max-height: 520px;
    transition: all 0.3s ease;
}

.media-news-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Card Header */
.media-card-header {
    background: linear-gradient(135deg, #1C2B78 0%, #2d3f9e 100%);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}

.news-header,
.social-header {
    background: linear-gradient(135deg, #1C2B78 0%, #2d3f9e 100%);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left i {
    font-size: 18px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-icon-link:hover {
    transform: scale(1.1);
}

.social-icon-link:first-child {
    background: #1877F2;
    color: #ffffff;
}

.social-icon-link:first-child:hover {
    background: #1565C0;
}

.social-icon-link:nth-child(2) {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.social-icon-link:nth-child(2):hover {
    opacity: 0.9;
}

.social-icon-link:last-child {
    background: #000000;
    color: #ffffff;
}

.social-icon-link:last-child:hover {
    background: #333333;
}

/* Card Content */
.media-card-content {
    flex: 1;
    background: #0d6efd0d;
    padding: 1rem 1.25rem;
    overflow-x: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.news-content {
    overflow-y: auto;
    padding: 0.75rem 1.25rem;
}


.social-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
}

/* News Items */
.news-item {
    margin-bottom: 0;
    position: relative;
    padding-left: 1rem;
    margin-left: -1.25rem;
    padding-left: calc(1.25rem + 0.5rem);
    transition: all 0.2s ease;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(28, 43, 120, 0.25) 0%, 
        rgba(28, 43, 120, 0.15) 30%, 
        rgba(28, 43, 120, 0.08) 70%, 
        rgba(28, 43, 120, 0.03) 100%);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.news-item:hover::before {
    width: 3px;
    left: calc(1.25rem - 0.5px);
    background: linear-gradient(to bottom, 
        rgba(255, 102, 0, 0.5) 0%, 
        rgba(255, 102, 0, 0.35) 30%, 
        rgba(255, 102, 0, 0.2) 70%, 
        rgba(255, 102, 0, 0.1) 100%);
}

.news-link {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
    padding: 0.625rem 0;
    transition: all 0.2s ease;
    position: relative;
}

.news-link:hover {
    background: rgba(28, 43, 120, 0.03);
    margin: 0 -1.25rem;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
}

.news-date-box {
    min-width: 60px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1C2B78 0%, #2d3f9e 100%);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(28, 43, 120, 0.2);
}

.news-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.news-month {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    display: block;
    margin-top: 3px;
    opacity: 0.9;
}

.news-text {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.news-title {
    font-size: 13px;
    font-weight: 500;
    color: #1C2B78;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    transition: color 0.2s ease;
}

.news-link:hover .news-title {
    color: #FF6600;
}

.news-badge {
    background: #dc3545;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.news-divider {
    height: 1px;
    background: linear-gradient(to right, 
        rgba(224, 224, 224, 0.6) 0%, 
        rgba(224, 224, 224, 0.3) 30%, 
        rgba(224, 224, 224, 0.15) 60%, 
        transparent 100%);
    margin: 0.5rem 0 0.5rem calc(1.25rem + 0.5rem);
    position: relative;
}

.news-divider::before {
    content: '';
    position: absolute;
    left: calc(-0.5rem - 1px);
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 8px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(224, 224, 224, 0.4) 50%, 
        transparent 100%);
    border-radius: 2px;
}

/* Main Video Section */
.media-main-video {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-video-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.3s ease;
}

.main-video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.main-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000000;
    overflow: hidden;
    border-radius: 8px;
}

.main-video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-video-link:hover .main-video-thumbnail {
    transform: scale(1.05);
}

.main-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.main-video-link:hover .main-video-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 64px;
    opacity: 0.95;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.main-video-link:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: #ffffff;
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.video-duration {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* Social Feed Content */
.social-profile {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #1C2B78;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: #1C2B78;
    margin: 0 0 3px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verified-badge {
    color: #1877F2;
    font-size: 16px;
}

.profile-followers {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.profile-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.follow-btn {
    background: #1877F2;
    color: #ffffff;
}

.follow-btn:hover {
    background: #1565C0;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
}

.share-btn {
    background: #e0e0e0;
    color: #333333;
}

.share-btn:hover {
    background: #d0d0d0;
    color: #333333;
    transform: translateY(-1px);
}

/* Social Media Feed - Scrollable Content Links */
.social-media-feed {
    margin-top: 0;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.media-feed-item {
    margin-bottom: 0;
    position: relative;
    padding-left: 1rem;
    margin-left: -1.25rem;
    padding-left: calc(1.25rem + 0.5rem);
    transition: all 0.2s ease;
}

.media-feed-item::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(28, 43, 120, 0.25) 0%, 
        rgba(28, 43, 120, 0.15) 30%, 
        rgba(28, 43, 120, 0.08) 70%, 
        rgba(28, 43, 120, 0.03) 100%);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.media-feed-item:hover::before {
    width: 3px;
    left: calc(1.25rem - 0.5px);
    background: linear-gradient(to bottom, 
        rgba(255, 102, 0, 0.5) 0%, 
        rgba(255, 102, 0, 0.35) 30%, 
        rgba(255, 102, 0, 0.2) 70%, 
        rgba(255, 102, 0, 0.1) 100%);
}

.media-feed-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
    padding: 0.625rem 0;
    transition: all 0.2s ease;
    position: relative;
}

.media-feed-link:hover {
    background: rgba(28, 43, 120, 0.03);
    margin: 0 -1.25rem;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
}

.media-feed-thumbnail {
    min-width: 60px;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1C2B78 0%, #2d3f9e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    box-shadow: 0 2px 6px rgba(28, 43, 120, 0.2);
}

.media-feed-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-feed-thumbnail i {
    font-size: 24px;
    opacity: 0.9;
}

.media-feed-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.media-feed-title {
    font-size: 13px;
    font-weight: 500;
    color: #1C2B78;
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-feed-link:hover .media-feed-title {
    color: #FF6600;
}

.media-feed-type {
    font-size: 11px;
    font-weight: 500;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-feed-divider {
    height: 1px;
    background: linear-gradient(to right, 
        rgba(224, 224, 224, 0.6) 0%, 
        rgba(224, 224, 224, 0.3) 30%, 
        rgba(224, 224, 224, 0.15) 60%, 
        transparent 100%);
    margin: 0.5rem 0 0.5rem calc(1.25rem + 0.5rem);
    position: relative;
}

.media-feed-divider::before {
    content: '';
    position: absolute;
    left: calc(-0.5rem - 1px);
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 8px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(224, 224, 224, 0.4) 50%, 
        transparent 100%);
    border-radius: 2px;
}


/* Scrollbar Styling */
.news-content::-webkit-scrollbar,
.social-media-feed::-webkit-scrollbar {
    width: 6px;
}

.news-content::-webkit-scrollbar-track,
.social-media-feed::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.news-content::-webkit-scrollbar-thumb,
.social-media-feed::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 10px;
}

.news-content::-webkit-scrollbar-thumb:hover,
.social-media-feed::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .media-news-card {
        min-height: 450px;
        max-height: 480px;
        margin-bottom: 1.5rem;
    }
    
    .news-content {
        max-height: 380px;
    }
    
    .social-media-feed {
        max-height: 240px;
    }
    
    .play-button {
        font-size: 56px;
    }
    
    .video-title {
        font-size: 14px;
    }
    
    .news-date-box {
        min-width: 55px;
        width: 55px;
        height: 55px;
    }
    
    .news-day {
        font-size: 18px;
    }
    
    .news-month {
        font-size: 9px;
    }
    
    .news-title {
        font-size: 12px;
    }
    
    .media-feed-thumbnail {
        min-width: 55px;
        width: 55px;
        height: 55px;
    }
    
    .media-feed-title {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .media-news-card {
        min-height: 420px;
        max-height: 450px;
    }
    
    .media-card-header {
        padding: 0.625rem 1rem;
        font-size: 14px;
    }
    
    .header-left i {
        font-size: 16px;
    }
    
    .social-icon-link {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .news-content {
        padding: 0.625rem 1rem;
        max-height: 320px;
    }
    
    .social-content {
        padding: 0.75rem 1rem;
    }
    
    .social-media-feed {
        max-height: 200px;
    }
    
    .main-video-container {
        padding-top: 60%;
    }
    
    .play-button {
        font-size: 48px;
    }
    
    .video-title {
        font-size: 13px;
    }
    
    .video-info {
        padding: 0.75rem;
    }
    
    .news-link {
        gap: 0.625rem;
    }
    
    .news-date-box {
        min-width: 50px;
        width: 50px;
        height: 50px;
    }
    
    .news-day {
        font-size: 16px;
    }
    
    .news-month {
        font-size: 9px;
    }
    
    .news-title {
        font-size: 11px;
    }
    
    .profile-avatar {
        width: 45px;
        height: 45px;
    }
    
    .profile-name {
        font-size: 13px;
    }
    
    .profile-followers {
        font-size: 11px;
    }
    
    .action-btn {
        padding: 0.35rem 0.625rem;
        font-size: 11px;
    }
    
    .media-feed-thumbnail {
        min-width: 50px;
        width: 50px;
        height: 50px;
    }
    
    .media-feed-thumbnail i {
        font-size: 20px;
    }
    
    .media-feed-title {
        font-size: 11px;
    }
    
    .media-feed-type {
        font-size: 10px;
    }
}

@media (max-width: 575px) {
    .news-text {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-badge {
        align-self: flex-start;
    }
    
    .profile-actions {
        width: 100%;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
}
