:root {
    --primary-color: #1a2332;
    --secondary-color: #667eea;
    --accent-color: #f5576c;
    --text-dark: #1a1a2e;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bitter', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Header Styles */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.journal-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Bitter', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: -4px;
}

.main-nav {
    display: flex;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: var(--secondary-color);
}

.nav-item.active a {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item:hover .arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    list-style: none;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 12px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--secondary-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
    padding-left: 24px;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
    color: white;
    padding: 100px 20px 80px;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    animation: slideUp 0.8s ease-out 0.3s backwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 22px;
    max-width: 700px;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.95;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.hero-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    animation: slideUp 0.8s ease-out 0.5s backwards;
}

.hero-separator {
    opacity: 0.5;
}

.hero-decoration {
    position: absolute;
    top: 0;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* Featured Section */
.featured-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.section-title {
    font-size: 42px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.6s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.featured-main {
    grid-row: 1 / 3;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.featured-main:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.article-content {
    padding: 32px;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), #764ba2);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.article-title {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-dark);
    line-height: 1.3;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

/* Secondary Featured Articles */
.featured-secondary {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-secondary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-image-small {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
}

.article-content-small {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title-small {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.3;
    flex-grow: 1;
}

.read-more-small {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.read-more-small:hover {
    transform: translateX(4px);
}

/* Categories Section */
.categories-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.category-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary-color);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.category-card:hover .category-icon {
    animation: none;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.category-title {
    font-size: 24px;
    margin-bottom: 12px;
}

.category-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .featured-main {
        grid-column: 1 / 3;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-main {
        grid-column: 1;
        grid-row: auto;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Article Page Styles */
.article-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    background: var(--bg-white);
}

.article-header {
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-out;
}

.article-page .article-category {
    margin-bottom: 20px;
}

.article-page h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.article-body h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--text-dark);
}

.article-body h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body strong {
    font-weight: 700;
    color: var(--text-dark);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 12px;
}


/* Lottie Animation */
#lottie-animation {
    position: absolute;
    bottom: 30px;
    right: 50px;
    width: 220px;
    height: 220px;
    pointer-events: none;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 1050px) {
    #lottie-animation {
        width: 100px;
        height: 100px;
        bottom: 50px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    #lottie-animation {
        bottom: 58px;
        right: 30px;
        width: 100px;
        height: 100px;
    }
}