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

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f39c12;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    margin-top: 80px;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

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

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

/* Posts Grid */
.featured-posts {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto;
}

.archive-subtitle {
    text-align: center;
    margin-bottom: 2.5rem;
}

.archive-subtitle a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.archive-subtitle a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-content p {
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 500;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.post-meta i {
    margin-right: 5px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

/* Archive Page Styles */
.archive-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.archive-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    line-height: 1.6;
}

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

.archive-date {
    color: var(--text-light);
    font-weight: 600;
    margin-right: 15px;
    min-width: 100px;
    display: inline-block;
    font-size: 0.9rem;
}

.archive-link-item {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.archive-link-item:hover {
    color: var(--primary-color);
}

/* About Page Styles */
.about-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
    line-height: 1.8;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Chats Section */
.chats-section {
    padding: 3rem 0;
}

.chats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.chat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.chat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.chat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1.2rem;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
}

.chat-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-content p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.footer-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        position: relative;
    }
    
    .header-content {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .logo {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .nav {
        width: 100%;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .nav li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        display: block;
        padding: 0.8rem;
        font-size: 1.1rem;
    }
    
    .nav a.active::after {
        display: none;
    }
    
    .hero {
        height: 50vh;
        margin-top: 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .chat-card {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }
    
    .chat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .archive-container {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .post-image {
        height: 180px;
    }
    
    .about-content h2 {
        font-size: 1.6rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .archive-item {
        padding: 0.8rem 0;
    }
    
    .archive-date {
        display: block;
        margin-bottom: 5px;
        min-width: auto;
    }
    
    .chats-grid {
        grid-template-columns: 1fr;
    }
    
    .logo a {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 1.7rem;
    }
}

/* Animation for better user experience */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card,
.chat-card {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Loading state for images */
.post-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}