/* Newspaper International Widget */

.international-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header {
    padding: 25px 30px 15px;
    border-bottom: 3px solid #2196F3;
    position: relative;
}

.section-title {
    color: #2196F3;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-arrows {
    position: absolute;
    right: 30px;
    top: 20px;
    display: flex;
    gap: 8px;
}

.arrow {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
}

.arrow:hover {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.main-article {
    padding: 30px;
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #eee;
}

.main-image {
    flex-shrink: 0;
    width: 350px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 350 200"><rect width="350" height="200" fill="%23334155"/><circle cx="280" cy="50" r="30" fill="%23ffffff" opacity="0.3"/><path d="M50 150 Q100 120 150 140 T250 130 L300 135" stroke="%23ffffff" stroke-width="2" fill="none" opacity="0.4"/><rect x="20" y="160" width="40" height="20" fill="%2322c55e" opacity="0.6"/></svg>') center/cover;
}

.war-scene {
    color: white;
    font-size: 14px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #2196F3;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 3;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-icon::before {
    content: "✏️";
}

.time-icon::before {
    content: "🕒";
}

.comments-icon::before {
    content: "💬";
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 15px;
}

.main-title-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-title-link:hover {
    color: #2196F3;
    text-decoration: none;
}

.article-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.excerpt-tag {
    color: #666;
    font-weight: 600;
    margin-right: 8px;
}

.read-more {
    background: #2196F3;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
    font-weight: 500;
}

.read-more:hover {
    background: #1976D2;
}

.international-container .secondary-articles {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 30px;
    row-gap: 50px;
}

.secondary-article {
    flex: 1;
    display: flex;
    gap: 15px;
}

.secondary-image {
    width: 120px;
    height: 90px;
    background: #ddd;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    text-align: center;
    position: relative;
}

.gaza-scene {
    background: linear-gradient(135deg, #f4a261, #e76f51);
}

.gaza-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 90"><rect width="120" height="90" fill="%23be123c" opacity="0.3"/><rect x="10" y="60" width="20" height="25" fill="%23ffffff" opacity="0.4"/><rect x="40" y="50" width="15" height="35" fill="%23ffffff" opacity="0.5"/><circle cx="90" cy="30" r="8" fill="%23fbbf24" opacity="0.6"/></svg>') center/cover;
}

.ukraine-scene {
    background: linear-gradient(135deg, #ffd60a, #003566);
}

.ukraine-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 90"><rect width="120" height="45" fill="%23005bbf"/><rect y="45" width="120" height="45" fill="%23ffd500"/><rect x="20" y="20" width="80" height="8" fill="%23ffffff" opacity="0.3"/></svg>') center/cover;
}

.syria-scene {
    background: linear-gradient(135deg, #ce1126, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    text-align: center;
    position: relative;
}

.syria-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 90"><rect width="120" height="30" fill="%23ce1126"/><rect y="30" width="120" height="30" fill="%23ffffff"/><rect y="60" width="120" height="30" fill="%23000000"/><polygon points="20,15 35,35 5,35" fill="%23007a3d"/><polygon points="100,75 115,55 85,55" fill="%23007a3d"/></svg>') center/cover;
}

.yemen-scene {
    background: linear-gradient(135deg, #ce1126, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    text-align: center;
    position: relative;
}

.yemen-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 90"><rect width="120" height="90" fill="%23ce1126"/><polygon points="60,15 75,45 45,45" fill="%23ffffff"/><text x="60" y="70" text-anchor="middle" font-family="Arial" font-size="8" fill="%23ffffff">الله أكبر</text></svg>') center/cover;
}

.secondary-content {
    flex: 1;
}

.secondary-time {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.secondary-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    text-decoration: none;
}

.secondary-title:hover {
    color: #2196F3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .international-container {
        margin: 0;
        border-radius: 0;
    }

    .main-article {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .main-image {
        width: 100%;
    }

    .secondary-articles {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .main-title {
        font-size: 24px;
    }

    .header {
        padding: 20px;
    }

    .section-title {
        font-size: 20px;
    }
}

/* Focus States for Accessibility */
.nav-tab:focus,
.secondary-title:focus,
.main-title-link:focus,
.read-more:focus {
    outline: none;
    text-decoration: underline;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .international-container,
    .secondary-article {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .arrow,
    .read-more,
    .secondary-title,
    .main-title-link {
        transition: none;
    }
}