:root {
    --pink: #f8e1e7;
    --green: #d6f5e3;
    --white: #fff;
    --text: #3a3a3a;
    --soft-green: #eafaf1;
    --soft-pink: #fbeff3;
    --hover: #f3d6e3;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
    background: var(--soft-pink);
    color: var(--text);
    min-height: 100vh;
    text-align: center;
}

/* Sticky Navbar */
nav {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(220, 180, 220, 0.08);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
    transition: background 0.3s;
}

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

nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--hover);
    color: #b85c8c;
    transform: scale(1.08);
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0.5rem 0 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #b85c8c;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Home Section */
.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 0;
    min-height: unset;
}

.home h1 {
    font-size: 2.7rem;
    color: #b85c8c;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home p {
    font-size: 1.3rem;
    color: #5e5e5e;
    margin-bottom: 2rem;
}

/* Blog Posts Container */
.blog-posts {
    background: transparent;
    border-radius: 18px;
    box-shadow: none;
    margin-bottom: 2rem;
}

.blog-posts h2 {
    color: #b85c8c;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

/* Blog Grid - Tile Format */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0;
    margin-bottom: 2rem;
}

/* Individual Blog Post Tile */
.blog-post {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid transparent;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #b85c8c;
}

.blog-post h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #b85c8c;
    line-height: 1.4;
    flex-grow: 0;
}

.blog-post .date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
    font-style: italic;
    font-weight: 500;
}

.blog-post p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post .read-more {
    color: #b85c8c;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    align-self: flex-start;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.blog-post .read-more:hover {
    color: #7bb274;
    text-decoration: underline;
    margin-left: 5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding-bottom: 2rem;
}

.pagination a,
.pagination span {
    background: var(--white);
    color: #b85c8c;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination a:hover {
    background: var(--hover);
    transform: scale(1.05);
}

.pagination span.disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

/* Section Styles */
section {
    padding: 1.5rem 0.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Post Content - For Individual Blog Posts */
.post-content {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(220, 180, 220, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.post-content h1 {
    color: #7bb274;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.post-content h2 {
    color: #b85c8c;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.post-content h3 {
    color: #7bb274;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

.post-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.post-date {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.post-navigation a {
    flex: 1;
    background: var(--soft-green);
    color: #7bb274;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.post-navigation a:hover {
    background: var(--hover);
    color: #b85c8c;
    transform: scale(1.02);
}

.back-to-blog {
    display: inline-block;
    background: var(--white);
    color: #b85c8c;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.back-to-blog:hover {
    background: var(--hover);
}

/* Footer */
footer {
    background: var(--white);
    color: #7bb274;
    text-align: center;
    padding: 1.5rem 1rem 1rem 1rem;
    font-size: 1rem;
    border-top: 1px solid #e3c6f7;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0 15px;
    gap: 8px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Responsive Design */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .post-content {
        padding: 1.5rem;
    }

    .post-content h1 {
        font-size: 1.5rem;
    }

    .post-navigation {
        flex-direction: column;
    }

    section {
        padding: 1.5rem 0.5rem;
    }

    .home h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    nav ul {
        gap: 0.3rem;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-post {
        padding: 1.2rem;
    }

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

    .blog-post p {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .post-content {
        padding: 1rem;
    }

    .post-content h1 {
        font-size: 1.3rem;
    }

    .post-content h2 {
        font-size: 1.1rem;
    }

    .home h1 {
        font-size: 1.8rem;
    }

    .home p {
        font-size: 1rem;
    }

    section {
        padding: 1rem 0.2rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pagination a,
    .pagination span {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
