section.hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%);
    min-height: 100dvh;
    width: 100vw;
}

@media (max-width: 768px) {
    section.hero {
        min-height: auto;
        width: 100%;
        padding-top: 5rem;
    }
}

.hero-blog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.blog-hero {
    grid-column: span 2;
    text-align: center;
    color: white;
}

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

.blog-hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .blog-hero {
        grid-column: span 1;
    }

    .blog-hero h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .blog-hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

.hero-blog .blog-card {
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.blog-post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.blog-icon {
    font-size: 2rem;
    color: var(--brand);
}

.blog-post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
    color: #333;
    font-family: 'Ubuntu', sans-serif;
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

.article-link {
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-weight: 500;
}

.article-link.brand-3 {
    color: var(--base-200);
    background-color: var(--brand-3);
}

.article-link.brand-3:hover {
    background-color: var(--surface);
    color: var(--brand-3);
}

.article-link.brand {
    color: var(--base-200);
    background-color: var(--brand);
}

.article-link.brand:hover {
    background-color: var(--surface);
    color: var(--brand);
}

p.post-meta {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
}

@media (max-width: 768px) {
    .blog-hero h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .blog-hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-blog {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-bottom: 2rem;
    }
}

#blog-post {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    #blog-post {
        height: 100vh;
        width: 100%;
    }
}

#blog-post.image-background {
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    padding: 80px 20px 80px 20px;
}

#blog-post.image-background.article-1 {
    background-image: url('/houses-8618837_1280.jpg');
}

#blog-post.image-background.article-2 {
    background-image: url('/spain-4967963_1280.jpg');
}

#blog-post .container {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    width: 45vw;
    max-height: calc(100vh - 160px);
    height: auto;
    overflow-y: auto;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

@media (max-width: 1024px) {
    #blog-post .container {
        width: 55vw;
        max-height: calc(100vh - 160px);
    }
}

@media (max-width: 768px) {
    #blog-post .container {
        width: 90vw;
        max-height: calc(100vh - 160px);
        padding: 1.5rem;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
}

#blog-post .container.bg-brand-3 {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Custom scrollbar for blog post containers */
#blog-post .container::-webkit-scrollbar {
    width: 6px;
}

#blog-post .container::-webkit-scrollbar-track {
    background: transparent !important;
}

#blog-post .container::-webkit-scrollbar-thumb {
    background: rgba(78, 123, 232, 0.4);
    border-radius: 3px;
}

#blog-post .container::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 123, 232, 0.6);
}

/* Blog post content styling */
#blog-post .post-content {
    color: var(--text);
    line-height: 1.7;
}

#blog-post .post-content h2,
#blog-post .post-content h3 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

#blog-post .post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--brand);
    padding-bottom: 0.5rem;
}

#blog-post .post-content h3 {
    font-size: 1.4rem;
    color: var(--brand);
}

@media (max-width: 768px) {
    #blog-post .post-content h2 {
        font-size: 1.4rem;
        margin-top: 1.5rem;
    }

    #blog-post .post-content h3 {
        font-size: 1.1rem;
    }
}

#blog-post .post-content p {
    color: var(--text);
    margin-bottom: 1.2rem;
}

#blog-post .post-content ul {
    color: var(--text);
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

#blog-post .post-content li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

#blog-post .post-content strong {
    color: var(--brand);
    font-weight: 600;
}