/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1a4d7a;
    --primary-red: #dc2626;
    --dark-blue: #0f3554;
    --light-gray: #f5f5f5;
    --border-gray: #e5e7eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    background: var(--primary-blue);
    color: white;
    border-bottom: 4px solid var(--primary-red);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.logo p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.language-select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.language-select option {
    background: var(--primary-blue);
    color: white;
}

.nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
    overflow-x: auto;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    transition: all 0.2s;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero-section {
    background: var(--light-gray);
    padding: 3rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Featured News */
.featured-news {
    position: relative;
}

.news-card-large {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-card-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    padding: 2rem;
    color: white;
}

.news-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.news-overlay h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.3;
}

.news-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.author-info span {
    color: white;
}

/* Latest Posts Sidebar */
.latest-posts {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.latest-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-red);
}

.posts-sidebar-list {
    display: flex;
    flex-direction: column;
}

.sidebar-post-item {
    padding: 1rem 0;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-gray);
    transition: all 0.2s;
}

.sidebar-post-item:last-child {
    border-bottom: none;
}

.sidebar-post-item:hover {
    background: var(--light-gray);
    margin: 0 -0.5rem;
    padding: 1rem 0.5rem;
}

.sidebar-post-content h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar-post-item:hover h4 {
    color: var(--primary-blue);
}

.sidebar-post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.post-category {
    color: var(--primary-red);
    font-weight: 500;
}

.post-date {
    color: var(--text-light);
}

/* Main Content */
.main-content {
    background: var(--light-gray);
    padding: 3rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
}

/* Authors Sidebar */
.authors-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
}

.sidebar-card {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-gray);
    font-weight: 600;
}

.authors-list {
    display: flex;
    flex-direction: column;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
    border-radius: 4px;
}

.author-item:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

.author-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Category Blocks */
.category-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-block {
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
}

.category-header {
    background: var(--primary-red);
    color: white;
    padding: 0.75rem 1rem;
}

.category-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.featured-post {
    padding: 1rem;
}

.featured-post img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s;
    border-radius: 4px;
}

.featured-post img:hover {
    transform: scale(1.02);
}

.featured-post h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 600;
    line-height: 1.4;
}

.featured-post h4:hover {
    color: var(--primary-blue);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-gray);
}

.post-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.posts-list {
    padding: 0 1rem;
    flex: 1;
}

.post-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.2s;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item:hover {
    color: var(--primary-blue);
}

.post-item p {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.post-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.more-btn {
    margin: 1rem;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    border-radius: 4px;
    font-size: 1rem;
}

.more-btn:hover {
    background: rgba(26, 77, 122, 0.1);
}

/* Map Section */
.map-section {
    background: white;
    padding: 3rem 0;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}

.map-header {
    margin-bottom: 2rem;
}

.map-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.map-header p {
    color: var(--text-light);
}

.map-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.map-container {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.map-svg {
    width: 100%;
    height: auto;
}

.country path {
    fill: var(--primary-blue);
    fill-opacity: 0.7;
    stroke: white;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.2s;
}

.country:hover path {
    fill-opacity: 0.9;
    filter: brightness(0.9);
}

.country text {
    fill: white;
    font-size: 14px;
    pointer-events: none;
    user-select: none;
}

.country[data-country="turkey"] path { fill: #10b981; }
.country[data-country="syria"] path { fill: #3b82f6; }
.country[data-country="iraq"] path { fill: #8b5cf6; }
.country[data-country="iran"] path { fill: #ec4899; }
.country[data-country="saudi"] path { fill: #f59e0b; }
.country[data-country="israel"] path { fill: #ef4444; }
.country[data-country="jordan"] path { fill: #a855f7; }
.country[data-country="egypt"] path { fill: #06b6d4; }

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.map-info {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
}

.map-info-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.map-info-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.country-list {
    margin-top: 1rem;
}

.country-list p {
    margin-bottom: 0.5rem;
}

.country-list ul {
    list-style: none;
    margin-top: 0.5rem;
}

.country-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: color 0.2s;
}

.country-list li:hover {
    color: var(--primary-blue);
}

.country-info {
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    background: white;
    padding: 1.5rem;
}

.country-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-stat {
    margin-bottom: 1.5rem;
}

.info-stat p:first-child {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.info-stat p:last-child {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
}

.publications-list {
    margin-top: 1rem;
}

.publications-list > p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.publications-list ul {
    list-style: none;
}

.publications-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.2s;
}

.publications-list li:hover {
    color: var(--primary-blue);
}

.country-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
}

.country-btn:hover {
    background: var(--dark-blue);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 0.875rem;
}

.social-links a:hover {
    background: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .authors-sidebar {
        position: static;
    }

    .category-blocks {
        grid-template-columns: 1fr;
    }

    .map-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .news-card-large {
        height: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-top {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .search-input {
        flex: 1;
    }

    .nav {
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .logo p {
        font-size: 0.75rem;
    }

    .news-content h2 {
        font-size: 1.25rem;
    }

    .map-header h2 {
        font-size: 1.5rem;
    }
}
