/* 
=======================================
🌿 WhatsApp Theme Variables (Color Scheme)
=======================================
*/
:root {
    --whatsapp-green: #25D366;
    --whatsapp-dark-green: #128C7E;
    --whatsapp-bg: #ECE5DD;
    --text-color: #075E54;
    --text-hover-color: #064C43;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-radius: 16px;
    --glass-effect: rgba(255, 255, 255, 0.2);
    --box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    --neon-glow: 0px 0px 12px rgba(37, 211, 102, 0.8);
    --gradient: linear-gradient(135deg, #25D366, #128C7E);
}

/* 
=======================================
🔄 Global Reset & Typography
=======================================
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", Arial, sans-serif;
    scroll-behavior: smooth;
}

/* 
=======================================
📜 Global Styles
=======================================
*/
body {
    background: var(--whatsapp-bg);
    color: var(--text-color);
    padding-top: 70px; /* Prevents header overlap */
    padding-bottom: 70px; /* Prevents footer overlap */
}

/* 
=======================================
📌 Sticky Header (Navigation Bar)
=======================================
*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--gradient);
    padding: 18px;
    text-align: center;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(8px);
}

.header a {
    color: white;
    font-size: 22px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.header a:hover {
    text-shadow: var(--neon-glow);
}

/* 
=======================================
📦 Main Content Container
=======================================
*/
.container {
    max-width: 1200px;
    margin: auto;
    padding: 10px;
}

/* 
=======================================
🏷️ Tags Scroller (Horizontal Scrolling)
=======================================
*/
.tags-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    scrollbar-width: none;
    gap: 10px;
}

.tags-container a {
    display: inline-block;
    padding: 10px 18px;
    background: var(--whatsapp-green);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tags-container a:hover {
    background: var(--whatsapp-dark-green);
    transform: scale(1.1);
}

/* 
=======================================
📖 Blog Section (Merged & Optimized)
=======================================
*/

/* 📰 Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 30px 0;
}

/* Responsive Grid */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 📦 Blog Card */
.blog-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px;
    margin: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 🖼️ Blog Image */
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* 📝 Blog Title */
.blog-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 12px;
}

.blog-card h3 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--whatsapp-green);
}

/* 📅 Blog Date */
.blog-card p {
    font-size: 14px;
    color: var(--text-hover-color);
    opacity: 0.8;
    margin-bottom: 5px;
}

/* 📝 Blog Description */
.blog-description {
    font-size: 15px;
    color: var(--text-hover-color);
    opacity: 0.85;
    line-height: 1.5;
    margin-top: 8px;
}

/* 🏷️ Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.blog-tags a {
    background: var(--whatsapp-green);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-tags a:hover {
    background: var(--whatsapp-dark-green);
    transform: scale(1.1);
}

/* 
=======================================
📸 Blog Hero Section (Featured Image)
=======================================
*/
.blog-hero {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.blog-hero:hover .blog-hero-image {
    transform: scale(1.05);
}

/* 📝 Blog Title Below Image */
.blog-container {
    background: white; /* White background */
    padding: 5px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 1100px;
    margin: auto;
}

.blog-container h1 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: var(--text-color);
    margin-top: 20px;
}

/* 📄 Blog Content */
.blog-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
    padding: 15px;
}

/* 🕒 Blog Date */
.blog-date {
    font-size: 14px;
    color: var(--text-hover-color);
    margin-bottom: 15px;
    opacity: 0.8;
    text-align: center;
}

/* 
=======================================
📍 Sticky Footer
=======================================
*/
.footer {
    background: var(--whatsapp-dark-green);
    color: white;
    text-align: center;
    padding: 12px;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    font-size: 15px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Buttons container */
.footer-content {
    display: flex;
    gap: 12px;
    margin-bottom: 8px; /* Adds space between buttons and text */
}

/* Button Styles */
.footer-btn {
    background: white;
    color: var(--whatsapp-dark-green);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.footer-btn:hover {
    background: #f0f0f0;
}
