:root {
    --primary-green: #7ab55c;
    --dark-green: #2d5016;
    --light-green: #a4d68c;
    --warm-brown: #8b5a2b;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --shadow-light: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-heavy: 0 15px 50px rgba(0,0,0,0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --navbar-height: 80px; /* Adjust this value based on your actual navbar height */
}

/* Blog Hero Section */
.blog-hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--primary-dark);
    margin-top: 100px;
    overflow: hidden;
}
.hero-content.blog_page-no-text{
  padding: 130px 0;
}
.hero-content{
    padding: 10px;
}
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.leaf {
    position: absolute;
    background: rgba(164, 214, 140, 0.3);
    border-radius: 50% 0 50% 0;
    animation: float 6s ease-in-out infinite;
}

.leaf-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.leaf-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.leaf-3 {
    width: 50px;
    height: 50px;
    top: 80%;
    left: 70%;
    animation-delay: 4s;
}

.spice-particle {
    position: absolute;
    background: rgba(139, 90, 43, 0.4);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.particle-1 {
    width: 20px;
    height: 20px;
    top: 30%;
    left: 80%;
    animation-delay: 1s;
}

.particle-2 {
    width: 15px;
    height: 15px;
    top: 70%;
    left: 20%;
    animation-delay: 3s;
}

.particle-3 {
    width: 25px;
    height: 25px;
    top: 40%;
    right: 30%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Single Blog Post Styles */
.single-blog-post {
    max-width: 900px;
    margin: 40px auto 0; /* Added top margin to account for navbar */
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.single-blog-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.single-blog-title {
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1.7rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.single-blog-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.blog-date {
    color: var(--secondary);
    font-weight: 600;
    background: rgba(122, 181, 92, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.blog-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.single-blog-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.single-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.single-blog-content {
    padding: 3rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Multiple Blogs Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-green), var(--dark-green));
    margin: 0 auto;
    border-radius: 2px;
}

/* Blog Cards Container */
.blogs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Card Styles */
.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    height: fit-content;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.blog-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.blog-category {
    background: rgba(255,255,255,0.9);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-updated-badge {
    background: var(--warm-brown);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-title {
    margin-bottom: 1rem;
    flex: 1;
}

.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    transition: var(--transition);
    display: block;
}

.blog-title a:hover {
    color: var(--primary-green);
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-green);
    border-radius: 25px;
    background: transparent;
}

.read-more-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateX(4px);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.read-more-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --navbar-height: 70px; /* Smaller navbar on tablets */
    }
    
    .blogs-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 60px; /* Even smaller navbar on mobile */
    }
    
    .container {
        padding: 0 15px;
    }
    
    .blog-hero {
       height: auto;
        min-height: auto;
        margin-top: 0px;
        padding: 100px 0 60px;
    }

    .section-title {
        font-size: 2.5rem;
    }
    
    .single-blog-title {
        font-size: 2.5rem;
    }
    
    .single-blog-header,
    .single-blog-content {
        padding: 2rem;
    }
    
    .single-blog-image {
        height: 300px;
    }
    
    .blogs-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-content-wrapper {
        padding: 60px 0;
    }
    
    /* Hide some floating elements on mobile */
    .leaf-2, .leaf-3, .particle-2, .particle-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --navbar-height: 50px; /* Smallest navbar on very small screens */
    }
    .section-title {
        font-size: 2rem;
    }
    
    .single-blog-title {
        font-size: 2rem;
    }
    
    .blog-content-wrapper {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .single-blog-header,
    .single-blog-content {
        padding: 1.5rem;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .blog-title a {
        font-size: 1.2rem;
    }
    
    .blogs-container {
        padding: 0 5px;
    }
    
    /* Ensure all floating elements are hidden on very small screens */
    .floating-elements {
        display: none;
    }
    
    /* Fix for single blog post header */
    .single-blog-post {
        margin-top: calc(var(--navbar-height) + 20px); /* Add navbar height plus some spacing */
    }
}

@media (max-width: 360px) {   
    .section-title {
        font-size: 1.6rem;
    }
    
    .single-blog-title {
        font-size: 1.6rem;
    }
    
    /* Adjust single blog post spacing for very small screens */
    .single-blog-post {
        margin-top: calc(var(--navbar-height) + 10px);
    }
    
    .single-blog-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .single-blog-content {
        padding: 1.5rem 1rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.read-more-btn:focus,
.blog-title a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}
    @media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }
}