* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.language-selector {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    background: rgba(30, 30, 50, 0.8);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    max-width: 400px;
}

.lang-flag {
    width: 48px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid transparent;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
}

.lang-flag:hover {
    transform: scale(1.1);
    border-color: #8b9dc3;
    background: rgba(139, 157, 195, 0.1);
}

.lang-flag.active {
    border-color: #8b9dc3;
    box-shadow: 0 0 0 2px rgba(139, 157, 195, 0.2);
}

.theme-controls {
    display: flex;
    gap: 5px;
}

.theme-toggle {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #e0e0e0;
}

.theme-toggle:hover {
    background: rgba(30, 30, 50, 0.9);
    transform: scale(1.05);
}

.doctor-photo {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.doctor-photo:hover {
    transform: scale(1.05);
}

.header-content h1 {
    font-size: 2.8rem;
    background: linear-gradient(45deg, #8b9dc3, #ddb892);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: bold;
}

.header-content p {
    font-size: 1.2rem;
    color: #b0b0b0;
    font-style: italic;
    transition: color 0.3s ease;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-image::before {
    opacity: 1;
}

.article-content {
    padding: 25px;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.article-card:hover::before {
    transform: scaleX(1);
}

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

.article-category {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    color: #888;
    transition: color 0.3s ease;
}

.article-card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #e0e0e0;
    font-weight: bold;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-excerpt {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.read-more:hover {
    color: #764ba2;
    transform: translateX(5px);
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Light mode styles */
body.light-mode {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-mode .header-content h1 {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .header-content p {
    color: #666;
}

body.light-mode .article-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-mode .article-card h2 {
    color: #333;
}

body.light-mode .article-excerpt {
    color: #666;
}

body.light-mode .article-date {
    color: #999;
}

body.light-mode .theme-controls .theme-toggle,
body.light-mode .language-selector {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-mode .lang-flag {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

body.light-mode .theme-toggle:hover,
body.light-mode .lang-flag:hover {
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .lang-flag:hover {
    border-color: #667eea;
}

body.light-mode .lang-flag.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Responsive Design */
@media (max-width: 968px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .language-selector {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .header-main {
        flex-direction: column;
        text-align: center;
    }

    .header-controls {
        margin-top: 15px;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .language-selector {
        max-width: 100%;
        justify-content: center;
        grid-template-columns: repeat(4, 1fr);
    }

    .doctor-photo {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .header-content h1 {
        font-size: 2.2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .language-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Loading animations */
.article-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }
.article-card:nth-child(7) { animation-delay: 0.7s; }
.article-card:nth-child(8) { animation-delay: 0.8s; }
.article-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hidden elements */
.hidden {
    display: none !important;
}