/* ========================================
   CSS for Blog Page
   Inherits base styles and adds blog-specific styling
   ======================================== */

/* Import or duplicate base styles from main site */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   Container
   ======================================== */

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

/* ========================================
   Navigation Bar (Same as main site)
   ======================================== */

.navbar {
    background-color: #1a365d;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

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

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #63b3ed;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* ========================================
   Blog Header
   ======================================== */

.blog-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   Blog Posts Section
   ======================================== */

.blog-posts {
    padding: 80px 0;
    background-color: #f7fafc;
}

.blog-post {
    background-color: #fff;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-date {
    color: #718096;
}

.post-category {
    color: #3182ce;
    font-weight: 600;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.post-title a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #3182ce;
}

.post-excerpt {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #3182ce;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2c5282;
}

/* ========================================
   Footer (Same as main site)
   ======================================== */

.footer {
    background-color: #1a365d;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    color: #cbd5e0;
}

/* ========================================
   Responsive Design - Mobile
   ======================================== */

@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a365d;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

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

    .nav-menu li {
        text-align: center;
        padding: 0.75rem 0;
    }

    /* Blog Header */
    .blog-header {
        padding: 60px 0;
    }

    .blog-title {
        font-size: 2.2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    /* Blog Posts */
    .blog-posts {
        padding: 60px 0;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.8rem;
    }

    .post-title {
        font-size: 1.3rem;
    }
}

/* ========================================
   Cookie Consent Banner
   ======================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-consent-text {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.cookie-consent-text strong {
    color: #fff;
    font-size: 1rem;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-consent-buttons .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.cookie-consent-buttons .btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cookie-consent-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent-text {
        font-size: 0.875rem;
    }
}
