body {
    font-family: Georgia;
    margin: 0;
    background-color: #FFD3AC; /* Set the background color of the page */
    color: #331C08; /* Set the default text color */
    line-height: 1.6;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: #FFD3AC;
    transition: color 0.3s ease;
}

/* Header */
/* Header */
.site-header {
    position: sticky;
    top: 0;
    background-color: #664C36;
    padding: 1em 2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    flex-wrap: nowrap; /* Important: Prevent wrapping */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}


/* Site Identity */
.site-identity h1 {
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    color: #FFD3AC;
    margin: 0;
}


/* Navigation */
.site-navigation ul {
    list-style: none;
    display: flex;
    gap: 2.5em;
}

.site-navigation li {
    position: relative;
}

.site-navigation li::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: #06c1db;
    transition: width .3s ease;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.site-navigation li:hover::after {
    width: 100%;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.burger .bar {
    width: 25px;
    height: 3px;
    background-color: #FFD3AC;
    transition: all 0.3s ease;
}

/* Animate to X */
.burger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active .bar:nth-child(2) {
    opacity: 0;
}

.burger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .site-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #664C36;
        padding-bottom: 1em;
    }

    .site-navigation.active {
        display: block;
    }

    .site-navigation ul {
        flex-direction: column;
        text-align: center;
    }

    .site-navigation li {
        padding: 1em 0;
        border-top: 1px solid #FFD3AC;
    }
}

/* Blog Section */
/* Blog Section */
.blog-section {
    padding: 2em 1em;
    text-align: center;
}

.blog-section h2 {
    font-size: 2em;
    margin-bottom: 1em;
    text-align: center;
    position: relative;
}

.blog-section h2::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #06c1db;
    transition: width .3s;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.blog-section h2:hover::after {
    width: 100%;
}

.blogs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Centered for better responsiveness */
}

.blog-post {
    flex: 1 1 calc(30% - 40px);
    max-width: calc(30% - 40px);
    box-sizing: border-box;
    background-color: #FFF;
    padding: 1em;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease;
}

.blog-post.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.blog-post img {
    width: 100%;
    border-radius: 10px;
}

.blog-post h3 {
    font-size: 1.3em;
    margin: 0.5em 0;
}

.blog-post p {
    font-size: 1em;
    color: #331C08;
}

.blog-post .read-more {
    display: inline-block;
    margin-top: 1em;
    color: #06c1db;
    font-weight: bold;
    padding: 0.5em 1.5em;
    border: 1px solid #06c1db;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.blog-post .read-more:hover {
    background-color: #06c1db;
    color: #fff;
    text-decoration: none;
}

/* ✅ Responsive for tablets and smaller devices */
@media (max-width: 992px) {
    .blog-post {
        flex: 1 1 calc(45% - 20px);
        max-width: calc(45% - 20px);
    }
}

/* ✅ Responsive for mobile screens */
@media (max-width: 600px) {
    .blog-post {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .blog-section h2 {
        font-size: 1.5em;
    }

    .blog-post h3 {
        font-size: 1.2em;
    }

    .blog-post p {
        font-size: 0.95em;
    }

    .blogs {
        gap: 15px;
    }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2em;
    background-color: #664C36;
    color: #FFD3AC;
    border-top: 1px solid #331C08;
}

.site-footer h2 {
    font-family: Georgia;
    margin-bottom: 1em;
    text-align: center;
    position: relative;
}

.site-footer h2::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #06c1db;
    transition: width .3s;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.site-footer h2:hover::after {
    width: 100%;
}

.site-footer a {
    margin: 0 1em;
    color: #FFD3AC;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: #CCBEB1;
}

.site-footer img {
    width: 30px;
    height: 30px;
    margin: 0 0.5em;
}

.site-footer p {
    margin: 1em 0 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-post {
        flex: 1 1 calc(45% - 40px); /* Two cards per row on tablets */
        max-width: calc(45% - 40px);
    }
}

@media (max-width: 768px) {
    .blogs {
        gap: 20px;
        justify-content: center;
    }

    .blog-post {
        flex: 1 1 100%; /* Full width on small screens */
        max-width: 100%;
    }

    .blog-post h3 {
        font-size: 1.25em;
    }

    .blog-post p {
        font-size: 0.95em;
    }

    .blog-section {
        padding: 1.5em 1em;
    }

    .blog-section h2 {
        font-size: 1.75em;
    }
}
