/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header Section */
.section:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.section:first-child .container {
    position: relative;
    z-index: 2;
}

.header-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow:
        0 3px 6px rgba(0, 0, 0, 0.8),
        0 6px 12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 0, 0, 0.3),
        0 1px 0px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out;
    background: rgba(0, 0, 0, 0.35);
    padding: 20px 35px;
    border-radius: 18px;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 1;
    font-weight: 500;
    color: #f8fafc;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow:
        0 3px 6px rgba(0, 0, 0, 0.8),
        0 6px 12px rgba(0, 0, 0, 0.5),
        0 1px 0px rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 24px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    margin-top: 15px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Header links styling */
.section:first-child a {
    color: #fef3c7;
    text-decoration: underline;
    text-decoration-color: rgba(254, 243, 199, 0.6);
    text-underline-offset: 2px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.section:first-child a:hover {
    color: #fbbf24;
    text-decoration-color: #fbbf24;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(251, 191, 36, 0.4);
}

.section:first-child a:visited {
    color: #fbbf24;
    text-decoration-color: rgba(251, 191, 36, 0.8);
}

.section:first-child a:visited:hover {
    color: #f59e0b;
    text-decoration-color: #f59e0b;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(245, 158, 11, 0.5);
}

/* Contact links block */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px auto;
    max-width: 600px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fef3c7;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-link:hover {
    color: #fbbf24;
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 10px rgba(251, 191, 36, 0.2);
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-text {
    font-weight: 500;
}

.section:first-child p {
    font-size: 1.1rem;
    color: #f1f5f9;
    margin: 15px auto;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Content section */
.section:not(:first-child) {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

/* Blog card */
.blog-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.blog-card-body ul {
    margin: 20px 0;
    padding-left: 0;
}

.blog-card-body li {
    list-style: none;
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card-body a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-card-body a:hover {
    color: #764ba2;
    text-decoration: underline;
    text-decoration-color: rgba(118, 75, 162, 0.5);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
        padding: 15px 25px;
    }

    .header-subtitle {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .section:first-child {
        padding: 60px 15px;
    }

    .section:not(:first-child) {
        padding: 40px 15px;
    }

    .blog-card {
        padding: 20px;
    }

    .contact-links {
        gap: 15px;
        margin: 20px auto;
    }

    .contact-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .contact-icon {
        font-size: 1.1rem;
    }
}

.legal-links {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* Date styling for blog posts */
.blog-card-body .date {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.8;
    font-style: italic;
    flex-shrink: 0;
    margin-left: 20px;
}

.blog-card-body a:hover+.date {
    color: #6b7280;
    opacity: 1;
}