/*
Theme Name: Healthy Duniya
Theme URI: https://healthyduniya.com
Author: Your Name
Author URI: https://healthyduniya.com
Description: A modern, responsive health and wellness blog theme inspired by Shape.com, featuring custom affiliate product integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthy-duniya
Tags: blog, e-commerce, entertainment, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================
   1. CSS VARIABLES (Design System)
   ========================================= */
:root {
    /* Color Palette */
    --hd-dark-green: #1A4332;    /* Primary brand color, headers, footer */
    --hd-light-green: #52B788;   /* Accent color, buttons, links */
    --hd-pale-green: #D8F3DC;    /* Soft backgrounds, badges */
    --hd-white: #FFFFFF;         /* Main background */
    --hd-black: #212529;         /* Main text (softer than pure black) */
    --hd-grey-dark: #495057;     /* Secondary text */
    --hd-grey-light: #F8F9FA;    /* Section backgrounds, borders */
    --hd-grey-border: #DEE2E6;   /* Dividers */

    /* Typography (Apple System Fonts) */
    --font-primary: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-heading: var(--font-primary);

    /* Font Sizes */
    --fs-xs: 0.75rem;   /* 12px */
    --fs-sm: 0.875rem;  /* 14px */
    --fs-base: 1rem;    /* 16px */
    --fs-md: 1.125rem;  /* 18px */
    --fs-lg: 1.25rem;   /* 20px */
    --fs-xl: 1.5rem;    /* 24px */
    --fs-2xl: 2rem;     /* 32px */
    --fs-3xl: 2.5rem;   /* 40px */
    --fs-4xl: 3.0rem;   /* 56px */

    /* Spacing & Layout */
    --container-max: 1200px;
    --container-padding: 20px;
    --border-radius: 8px;
    --transition: all 0.3s ease-in-out;
}

/* =========================================
   2. GLOBAL RESETS & BASE STYLES
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--hd-black);
    background-color: var(--hd-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--hd-light-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--hd-dark-green);
    text-decoration: none;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--hd-dark-green);
    margin-bottom: 0.5em;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
    margin-bottom: 1.5em;
    color: var(--hd-grey-dark);
}

/* =========================================
   4. LAYOUT & CONTAINERS
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 60px 0;
}

.section-bg {
    background-color: var(--hd-grey-light);
}

/* =========================================
   5. BUTTONS (Shape.com style)
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--hd-light-green);
    color: var(--hd-white);
    border-color: var(--hd-light-green);
}

.btn-primary:hover {
    background-color: var(--hd-dark-green);
    border-color: var(--hd-dark-green);
    color: var(--hd-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--hd-dark-green);
    border-color: var(--hd-dark-green);
}

.btn-outline:hover {
    background-color: var(--hd-dark-green);
    color: var(--hd-white);
}

/* =========================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================= */
/* Tablets and below */
@media (max-width: 991px) {
    :root {
        --fs-4xl: 2.5rem;
        --fs-3xl: 2rem;
        --fs-2xl: 1.5rem;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    :root {
        --fs-4xl: 2rem;
        --fs-3xl: 1.75rem;
        --container-padding: 15px;
    }
    
    body {
        font-size: 15px;
    }
}

/* =========================================
   7. HEADER STYLES
   ========================================= */

/* Top Bar */
.header-top-bar {
    background-color: var(--hd-dark-green);
    color: var(--hd-white);
    padding: 8px 0;
    font-size: var(--fs-base);
    text-align: center;
}

.top-bar-text {
    margin: 0;
    font-weight: 500;
}

/* Main Header */
.site-header {
    background-color: var(--hd-white);
    border-bottom: 1px solid var(--hd-grey-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.site-title-link {
    display: inline-block;
}

.site-title {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--hd-dark-green);
    margin: 0;
    letter-spacing: -0.5px;
}

.site-title:hover {
    text-decoration: none;
    color: var(--hd-light-green);
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

/* Desktop Navigation */
.desktop-nav {
    flex-grow: 1;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 8px 0;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--hd-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.primary-menu a:hover {
    color: var(--hd-light-green);
    text-decoration: none;
}

/* Dropdown Menu (for submenus) */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--hd-white);
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    margin-top: 10px;
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu a {
    padding: 10px 20px;
    text-transform: none;
    font-weight: 500;
    border-bottom: 1px solid var(--hd-grey-light);
}

.primary-menu .sub-menu a:hover {
    background-color: var(--hd-pale-green);
    color: var(--hd-dark-green);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.search-toggle,
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--hd-dark-green);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
    color: var(--hd-light-green);
}

/* Hamburger Menu Icon */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--hd-dark-green);
    transition: var(--transition);
    border-radius: 2px;
}

/* Search Form */
.search-form-wrapper {
    background-color: var(--hd-white);
    border-bottom: 1px solid var(--hd-grey-border);
    padding: 20px 0;
    display: none;
}

.search-form-wrapper.active {
    display: block;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-field {
    flex-grow: 1;
    padding: 12px 20px;
    font-size: var(--fs-base);
    border: 2px solid var(--hd-grey-border);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
    transition: var(--transition);
}

.search-field:focus {
    border-color: var(--hd-light-green);
}

.search-submit {
    padding: 12px 24px;
    background-color: var(--hd-light-green);
    border: 2px solid var(--hd-light-green);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    color: var(--hd-white);
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background-color: var(--hd-dark-green);
    border-color: var(--hd-dark-green);
}

/* Mobile Navigation */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--hd-white);
    z-index: 2000;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-navigation.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--hd-grey-border);
}

.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--hd-dark-green);
}

.mobile-nav-menu {
    padding: 20px 0;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--hd-grey-light);
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--hd-black);
    transition: var(--transition);
}

.mobile-menu a:hover {
    background-color: var(--hd-pale-green);
    color: var(--hd-dark-green);
    text-decoration: none;
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid var(--hd-grey-border);
}

.mobile-search form {
    display: flex;
}

.mobile-search input {
    flex-grow: 1;
    padding: 12px;
    border: 2px solid var(--hd-grey-border);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.mobile-search button {
    padding: 12px 20px;
    background-color: var(--hd-light-green);
    border: 2px solid var(--hd-light-green);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    color: var(--hd-white);
    cursor: pointer;
    font-weight: 600;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Screen Reader Text */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================
   8. RESPONSIVE HEADER STYLES
   ========================================= */

/* Tablet - Hide top bar */
@media (max-width: 991px) {
    .header-top-bar {
        display: none;
    }
    
    .primary-menu {
        gap: 20px;
    }
    
    .primary-menu a {
        font-size: var(--fs-xs);
    }
}

/* Mobile - Show hamburger, hide desktop nav */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-wrapper {
        padding: 12px 0;
    }
    
    .site-title {
        font-size: var(--fs-lg);
    }
    
    .custom-logo {
        max-height: 40px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-actions {
        gap: 10px;
    }
    
    .search-toggle {
        display: none; /* Hide search icon on very small screens, use mobile menu instead */
    }
}

/* Desktop - Hide mobile toggle */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* =========================================
   9. FOOTER STYLES
   ========================================= */
.site-footer {
    background-color: var(--hd-dark-green);
    color: var(--hd-white);
    margin-top: 60px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 60px 0;
}

.footer-title {
    color: var(--hd-white);
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-sm);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--hd-white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--hd-light-green);
    color: var(--hd-white);
    text-decoration: none;
    transform: translateY(-3px);
}

/* Footer Menus */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-sm);
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--hd-light-green);
    text-decoration: none;
    padding-left: 5px;
}

/* Newsletter Form */
.footer-newsletter-form {
    display: flex;
    margin-top: 15px;
}

.footer-newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: var(--fs-sm);
    outline: none;
}

.footer-newsletter-form button {
    padding: 12px 20px;
    background-color: var(--hd-light-green);
    color: var(--hd-white);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter-form button:hover {
    background-color: var(--hd-white);
    color: var(--hd-dark-green);
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #112b20; /* Slightly darker than main footer */
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    margin: 0;
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.6);
}

.copyright-text a {
    color: var(--hd-white);
    font-weight: 600;
}

/* Back to Top Button */
.back-to-top {
    background-color: var(--hd-light-green);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--hd-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.back-to-top:hover {
    background-color: var(--hd-white);
    color: var(--hd-dark-green);
    transform: translateY(-3px);
}

/* =========================================
   10. RESPONSIVE FOOTER STYLES
   ========================================= */
@media (max-width: 991px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* =========================================
   11. BLOG GRID & POST CARDS (Shape.com style)
   ========================================= */

/* Archive Header */
.archive-header {
    text-align: center;
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--hd-grey-border);
    margin-bottom: 40px;
}

.archive-title {
    font-size: var(--fs-3xl);
    margin-bottom: 10px;
}

.archive-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--hd-grey-dark);
}

/* Posts Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Individual Post Card */
.post-card {
    background-color: var(--hd-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hd-grey-border);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.post-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Keeps images uniform */
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* Category Tag (Overlaid on image) */
.post-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--hd-light-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-category a {
    color: var(--hd-white);
    text-decoration: none;
}

.post-card-category a:hover {
    text-decoration: none;
}

/* Card Content */
.post-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-title {
    font-size: var(--fs-lg);
    line-height: 1.3;
    margin-bottom: 15px;
}

.post-card-title a {
    color: var(--hd-dark-green);
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--hd-light-green);
    text-decoration: none;
}

.post-card-excerpt {
    font-size: var(--fs-sm);
    color: var(--hd-grey-dark);
    margin-bottom: 20px;
    flex-grow: 1;
    /* Limit excerpt to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--hd-grey-light);
    padding-top: 15px;
    margin-top: auto;
}

.post-card-date {
    font-size: var(--fs-xs);
    color: var(--hd-grey-dark);
    font-weight: 500;
}

.read-more-btn {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--hd-dark-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    color: var(--hd-light-green);
    text-decoration: none;
}

/* Pagination */
.pagination-wrapper {
    margin: 40px 0 80px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .nav-links {
    display: flex;
    gap: 10px;
}

.pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--hd-grey-border);
    border-radius: var(--border-radius);
    color: var(--hd-dark-green);
    font-weight: 600;
    transition: var(--transition);
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background-color: var(--hd-light-green);
    border-color: var(--hd-light-green);
    color: var(--hd-white);
    text-decoration: none;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

/* =========================================
   12. RESPONSIVE BLOG GRID
   ========================================= */
@media (max-width: 991px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-header {
        padding: 40px 0 30px;
    }
    
    .archive-title {
        font-size: var(--fs-2xl);
    }
}
/* =========================================
   13. SINGLE POST STYLES
   ========================================= */

/* Post Header */
.single-post-header {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 40px;
}

.post-categories a {
    display: inline-block;
    background-color: var(--hd-pale-green);
    color: var(--hd-dark-green);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-decoration: none;
}

.post-categories a:hover {
    background-color: var(--hd-light-green);
    color: var(--hd-white);
}

.single-post-title {
    font-size: var(--fs-4xl);
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--hd-dark-green);
}

.single-post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: var(--fs-sm);
    color: var(--hd-grey-dark);
    border-top: 1px solid var(--hd-grey-border);
    border-bottom: 1px solid var(--hd-grey-border);
    padding: 15px 0;
}

/* Layout Grid */
.single-post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

/* Featured Image */
.single-featured-image {
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Entry Content Typography (Crucial for reading) */
.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--hd-black);
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: var(--fs-2xl);
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.entry-content h3 {
    font-size: var(--fs-xl);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content blockquote {
    border-left: 4px solid var(--hd-light-green);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--hd-grey-dark);
    font-size: 20px;
}

.entry-content img {
    border-radius: var(--border-radius);
    margin: 20px 0;
}

/* Post Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--hd-grey-border);
    font-size: var(--fs-sm);
    color: var(--hd-grey-dark);
}

.post-tags a {
    color: var(--hd-light-green);
    text-decoration: none;
    margin-right: 10px;
}

.post-tags a:hover {
    text-decoration: underline;
}

/* Author Bio Box */
.author-bio {
    display: flex;
    gap: 25px;
    background-color: var(--hd-grey-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 50px;
    border: 1px solid var(--hd-grey-border);
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    color: var(--hd-grey-dark);
    margin-bottom: 5px;
}

.author-display-name {
    font-size: var(--fs-lg);
    margin-bottom: 10px;
}

.author-description {
    font-size: var(--fs-sm);
    margin-bottom: 0;
}

/* =========================================
   14. SIDEBAR WIDGETS
   ========================================= */
.widget-area {
    position: sticky;
    top: 100px; /* Sticks to top when scrolling */
}

.widget {
    background-color: var(--hd-white);
    border: 1px solid var(--hd-grey-border);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: var(--fs-md);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--hd-light-green);
    display: inline-block;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 12px;
    border-bottom: 1px solid var(--hd-grey-light);
    padding-bottom: 12px;
}

.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget ul li a {
    color: var(--hd-black);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.widget ul li a:hover {
    color: var(--hd-light-green);
}

/* =========================================
   15. RESPONSIVE SINGLE POST
   ========================================= */
@media (max-width: 991px) {
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .widget-area {
        position: static; /* Remove sticky on tablet */
    }
    
    .single-post-title {
        font-size: var(--fs-3xl);
    }
}

@media (max-width: 576px) {
    .single-post-header {
        margin: 40px auto 30px;
    }
    
    .single-post-title {
        font-size: var(--fs-2xl);
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .entry-content {
        font-size: 16px;
    }
}
/* =========================================
   16. FRONT PAGE / HERO SECTION
   ========================================= */

/* Hero Section */
.hero-section {
    width: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--hd-white);
    margin-bottom: 0;
}

.hero-content {
    max-width: 700px;
    padding: 40px 0;
}

.hero-category a {
    background-color: var(--hd-light-green);
    color: var(--hd-white);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
}

.hero-title {
    font-size: var(--fs-4xl);
    color: var(--hd-white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title a {
    color: var(--hd-white);
    text-decoration: none;
}

.hero-title a:hover {
    text-decoration: none;
}

.hero-excerpt {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button: Light version for Hero */
.btn-light {
    background-color: var(--hd-white);
    color: var(--hd-dark-green);
    border-color: var(--hd-white);
}

.btn-light:hover {
    background-color: var(--hd-light-green);
    border-color: var(--hd-light-green);
    color: var(--hd-white);
}

/* Section Header (Title + View All) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--hd-grey-border);
    padding-bottom: 15px;
}

.section-title {
    margin: 0;
    font-size: var(--fs-2xl);
    color: var(--hd-dark-green);
}

.view-all-btn {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--hd-light-green);
    text-decoration: none;
}

.view-all-btn:hover {
    color: var(--hd-dark-green);
}

/* Recent Posts Grid (3 Columns) */
.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Newsletter Banner */
.newsletter-banner {
    background-color: var(--hd-light-green);
    padding: 60px 0;
    text-align: center;
    color: var(--hd-white);
}

.newsletter-content h2 {
    color: var(--hd-white);
    margin-bottom: 10px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.inline-newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.inline-newsletter-form input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: var(--fs-base);
    outline: none;
}

.inline-newsletter-form button {
    padding: 15px 30px;
    background-color: var(--hd-dark-green);
    color: var(--hd-white);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: 700;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.inline-newsletter-form button:hover {
    background-color: var(--hd-black);
}

/* =========================================
   17. RESPONSIVE FRONT PAGE
   ========================================= */
@media (max-width: 991px) {
    .hero-section {
        min-height: 450px;
    }
    
    .hero-title {
        font-size: var(--fs-3xl);
    }
    
    .recent-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 400px;
        align-items: flex-end; /* Push content to bottom on mobile */
    }
    
    .hero-content {
        padding-bottom: 30px;
    }
    
    .hero-title {
        font-size: var(--fs-2xl);
    }
    
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .inline-newsletter-form {
        flex-direction: column;
    }
    
    .inline-newsletter-form input,
    .inline-newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .inline-newsletter-form button {
        margin-top: 10px;
    }
}
/* =========================================
   18. SEARCH PAGE STYLES
   ========================================= */

/* Highlight the search term in the title */
.archive-title span {
    color: var(--hd-light-green);
    font-style: italic;
}

/* Search Suggestions */
.search-suggestion {
    background-color: var(--hd-grey-light);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.search-suggestion h3 {
    font-size: var(--fs-md);
    margin-bottom: 15px;
    color: var(--hd-dark-green);
}

.search-suggestion ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.search-suggestion li a {
    display: block;
    padding: 10px 15px;
    background-color: var(--hd-white);
    border: 1px solid var(--hd-grey-border);
    border-radius: var(--border-radius);
    color: var(--hd-dark-green);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.search-suggestion li a:hover {
    background-color: var(--hd-light-green);
    color: var(--hd-white);
    border-color: var(--hd-light-green);
}

@media (max-width: 576px) {
    .search-suggestion ul {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   19. 404 ERROR PAGE STYLES
   ========================================= */
.error-404 {
    text-align: center;
    padding: 80px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--hd-pale-green);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -5px;
}

.error-404 .page-title {
    font-size: var(--fs-2xl);
    color: var(--hd-dark-green);
    margin-bottom: 20px;
}

.error-message {
    font-size: var(--fs-md);
    color: var(--hd-grey-dark);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.error-search {
    margin-bottom: 40px;
}

.error-search h3,
.error-links h3 {
    font-size: var(--fs-md);
    margin-bottom: 20px;
    color: var(--hd-dark-green);
}

/* Style the search form specifically for 404 page */
.error-search .search-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Helpful Links */
.error-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.error-links li a {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--hd-grey-light);
    color: var(--hd-dark-green);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--hd-grey-border);
}

.error-links li a:hover {
    background-color: var(--hd-light-green);
    color: var(--hd-white);
    border-color: var(--hd-light-green);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .error-code {
        font-size: 80px;
    }
    
    .error-links ul {
        flex-direction: column;
        align-items: center;
    }
    
    .error-links li a {
        width: 100%;
        max-width: 300px;
    }
}
/* =========================================
   20. SINGLE AFFILIATE PRODUCT STYLES
   ========================================= */

/* Breadcrumbs */
.product-breadcrumbs {
    padding: 20px 0;
    font-size: var(--fs-sm);
    color: var(--hd-grey-dark);
}

.product-breadcrumbs a {
    color: var(--hd-grey-dark);
    text-decoration: none;
}

.product-breadcrumbs a:hover {
    color: var(--hd-light-green);
}

.product-breadcrumbs span {
    color: var(--hd-black);
    font-weight: 600;
}

/* Product Main Layout (2 Columns) */
.product-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    background-color: var(--hd-white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--hd-grey-border);
}

/* Product Image */
.product-main-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--hd-grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Keeps image perfectly square */
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole product is visible */
    padding: 20px;
}

/* Product Info */
.product-category span {
    display: inline-block;
    background-color: var(--hd-pale-green);
    color: var(--hd-dark-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.product-title {
    font-size: var(--fs-3xl);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--hd-dark-green);
}

/* Price */
.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hd-grey-border);
}

.price-label {
    font-size: var(--fs-md);
    color: var(--hd-grey-dark);
    font-weight: 500;
}

.price-value {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--hd-black);
}

.product-short-desc {
    font-size: var(--fs-base);
    color: var(--hd-grey-dark);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* The Big Affiliate CTA Button */
.affiliate-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 30px;
    background-color: var(--hd-light-green); /* Bright green for high conversion */
    color: var(--hd-white);
    font-size: var(--fs-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(82, 183, 136, 0.4);
    margin-bottom: 10px;
}

.affiliate-cta-btn:hover {
    background-color: var(--hd-dark-green);
    color: var(--hd-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 67, 50, 0.4);
}

.affiliate-disclaimer {
    font-size: var(--fs-xs);
    color: var(--hd-grey-dark);
    text-align: center;
    margin-bottom: 30px;
}

/* Key Features */
.product-features h3 {
    font-size: var(--fs-md);
    margin-bottom: 15px;
    color: var(--hd-dark-green);
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: var(--fs-sm);
    color: var(--hd-grey-dark);
}

.product-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--hd-light-green);
    font-weight: bold;
}

/* Detailed Content Section */
.product-detailed-content {
    max-width: 800px;
    margin: 0 auto 80px;
}

.product-detailed-content h2 {
    font-size: var(--fs-2xl);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--hd-light-green);
    padding-bottom: 10px;
    display: inline-block;
}

/* =========================================
   21. RESPONSIVE PRODUCT STYLES
   ========================================= */
@media (max-width: 991px) {
    .product-main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .product-title {
        font-size: var(--fs-2xl);
    }
}

@media (max-width: 576px) {
    .product-main-image {
        aspect-ratio: 4 / 3;
    }
    
    .affiliate-cta-btn {
        font-size: var(--fs-base);
        padding: 15px 20px;
    }
}
/* =========================================
   22. AFFILIATE PRODUCTS ARCHIVE STYLES
   ========================================= */

/* Shop Header Specifics */
.shop-header {
    margin-bottom: 50px;
}

/* Products Grid Spacing */
.products-grid {
    gap: 30px;
}

/* Product Card Overrides */
.product-card {
    text-align: center;
    border: 1px solid var(--hd-grey-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--hd-white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--hd-light-green);
}

.product-card-image {
    background-color: var(--hd-grey-light);
    aspect-ratio: 1 / 1; /* Square images for products */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full product without cropping */
    padding: 20px;
    transition: transform 0.5s ease;
}

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

.product-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-title {
    font-size: var(--fs-md);
    line-height: 1.4;
    margin-bottom: 15px;
}

.product-card-title a {
    color: var(--hd-dark-green);
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--hd-light-green);
}

/* Price Tag */
.product-card-price {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--hd-black);
    margin-bottom: 20px;
}

/* View Button */
.product-view-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--hd-dark-green);
    color: var(--hd-white);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto; /* Pushes button to the bottom */
}

.product-view-btn:hover {
    background-color: var(--hd-light-green);
    color: var(--hd-white);
    text-decoration: none;
}

/* =========================================
   23. RESPONSIVE PRODUCTS GRID
   ========================================= */
@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   24. AUTHOR BIO BOX (Refined)
   ========================================= */
.author-bio {
    display: flex;
    gap: 25px;
    background-color: var(--hd-pale-green); /* Light green background for highlight */
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 50px;
    margin-bottom: 60px;
    border: 1px solid rgba(82, 183, 136, 0.2);
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--hd-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    color: var(--hd-light-green);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.author-display-name {
    font-size: var(--fs-lg);
    margin-bottom: 10px;
    color: var(--hd-dark-green);
}

.author-description {
    font-size: var(--fs-sm);
    margin-bottom: 0;
    color: var(--hd-grey-dark);
    line-height: 1.6;
}

/* =========================================
   25. COMMENTS SECTION STYLES
   ========================================= */

/* Main Comments Container */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--hd-grey-border);
}

.comments-title {
    font-size: var(--fs-xl);
    color: var(--hd-dark-green);
    margin-bottom: 30px;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 40px; /* Indent for replies */
    margin-top: 20px;
    border-left: 2px solid var(--hd-grey-border);
}

/* Individual Comment */
.comment {
    margin-bottom: 30px;
}

.comment-body {
    display: flex;
    gap: 20px;
    background-color: var(--hd-grey-light);
    padding: 25px;
    border-radius: var(--border-radius);
}

/* Comment Author Avatar */
.comment-author {
    flex-shrink: 0;
}

.comment-author .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Comment Content Area */
.comment-content-wrap {
    flex-grow: 1;
}

.comment-metadata {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-author-name {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--hd-dark-green);
    text-decoration: none;
}

.comment-author-name:hover {
    color: var(--hd-light-green);
}

.comment-date {
    font-size: var(--fs-xs);
    color: var(--hd-grey-dark);
}

.comment-content {
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--hd-black);
    margin-bottom: 15px;
}

.comment-content p {
    margin-bottom: 10px;
}

/* Reply Button */
.reply {
    font-size: var(--fs-xs);
}

.reply a {
    display: inline-block;
    color: var(--hd-light-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.reply a:hover {
    color: var(--hd-dark-green);
}

/* =========================================
   26. COMMENT FORM STYLES
   ========================================= */
.comment-respond {
    margin-top: 50px;
    background-color: var(--hd-white);
    padding: 30px;
    border: 1px solid var(--hd-grey-border);
    border-radius: var(--border-radius);
}

.comment-reply-title {
    font-size: var(--fs-lg);
    color: var(--hd-dark-green);
    margin-bottom: 20px;
}

.comment-notes {
    font-size: var(--fs-xs);
    color: var(--hd-grey-dark);
    margin-bottom: 20px;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Full width for the message box */
.comment-form-comment {
    grid-column: 1 / -1;
}

/* Labels */
.comment-form label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--hd-dark-green);
    margin-bottom: 8px;
}

.comment-form label .required {
    color: #e74c3c; /* Red color for required star */
}

/* Inputs and Textarea */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--hd-grey-border);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    background-color: var(--hd-grey-light);
    transition: var(--transition);
    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--hd-light-green);
    background-color: var(--hd-white);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit Button */
.form-submit {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.form-submit input[type="submit"] {
    background-color: var(--hd-dark-green);
    color: var(--hd-white);
    border: none;
    padding: 15px 30px;
    font-size: var(--fs-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.form-submit input[type="submit"]:hover {
    background-color: var(--hd-light-green);
    transform: translateY(-2px);
}

/* =========================================
   27. RESPONSIVE COMMENTS & AUTHOR
   ========================================= */
@media (max-width: 768px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .comment-body {
        flex-direction: column;
        text-align: center;
    }
    
    .comment-metadata {
        flex-direction: column;
        gap: 5px;
    }
    
    .comment-list .children {
        padding-left: 20px;
    }
    
    .comment-form {
        grid-template-columns: 1fr; /* Stack form fields on mobile */
    }
}

/* =========================================
   28. HOMEPAGE PRODUCTS GRID (4 Columns)
   ========================================= */
.home-products-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
    .home-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .home-products-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   FIX: PRODUCTS GRID LAYOUT (Perfect Size & Alignment)
   ========================================= */

/* Grid Layout Fix */
.products-grid,
.home-products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Desktop par 3 bade cards ek line mein */
    gap: 30px !important;
    margin-bottom: 60px;
}

/* Note: Agar aapko Homepage par 4 cards chahiye to upar ki line mein repeat(3, 1fr) ki jagah repeat(4, 1fr) kar dein */

/* Card Size Fix (Taaki wo overflow na karein) */
.product-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid var(--hd-grey-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--hd-white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

/* Image Fix */
.product-card-image {
    background-color: var(--hd-grey-light);
    aspect-ratio: 1 / 1; /* Square image */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Image ko bina crop kiye fit karega */
    padding: 20px;
    transition: transform 0.5s ease;
}

/* Tablet par 2 columns */
@media (max-width: 991px) {
    .products-grid,
    .home-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile par 1 column (Taaki wo bade aur clear dikhein) */
@media (max-width: 576px) {
    .products-grid,
    .home-products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   29. HERO SECTION WITH TRENDING SIDEBAR (Shape.com Style)
   ========================================= */

.hero-section-wrapper {
    padding: 40px 0;
    background-color: var(--hd-white);
}

.hero-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 left, 1/3 right */
    gap: 40px;
    align-items: start;
}

/* Main Hero Article */
.hero-main-content {
    width: 100%;
}

.hero-article {
    background-color: var(--hd-white);
}

.hero-image-wrapper {
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.hero-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-article:hover .hero-image-wrapper img {
    transform: scale(1.02);
}

.hero-article-content {
    padding: 0;
}

.hero-category a {
    display: inline-block;
    background-color: var(--hd-pale-green);
    color: var(--hd-dark-green);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-decoration: none;
}

.hero-category a:hover {
    background-color: var(--hd-light-green);
    color: var(--hd-white);
}

.hero-title {
    font-size: var(--fs-3xl);
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--hd-dark-green);
}

.hero-title a {
    color: var(--hd-dark-green);
    text-decoration: none;
}

.hero-title a:hover {
    color: var(--hd-light-green);
}

.hero-excerpt {
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--hd-grey-dark);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    font-size: var(--fs-sm);
    color: var(--hd-grey-dark);
}

.hero-author {
    font-weight: 600;
}

/* Trending Sidebar */
.trending-sidebar {
    background-color: var(--hd-grey-light);
    padding: 30px;
    border-radius: var(--border-radius);
    position: sticky;
    top: 100px;
}

.trending-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--hd-light-green);
}

.trending-title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--hd-dark-green);
    margin: 0;
    letter-spacing: 1px;
}

.trending-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending-post-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hd-grey-border);
}

.trending-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-post-thumbnail {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.trending-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trending-post-item:hover .trending-post-thumbnail img {
    transform: scale(1.1);
}

.trending-post-content {
    flex-grow: 1;
}

.trending-post-title {
    font-size: var(--fs-sm);
    line-height: 1.4;
    margin-bottom: 5px;
}

.trending-post-title a {
    color: var(--hd-black);
    text-decoration: none;
    font-weight: 600;
}

.trending-post-title a:hover {
    color: var(--hd-light-green);
}

.trending-post-author {
    font-size: var(--fs-xs);
    color: var(--hd-grey-dark);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-grid-layout {
        grid-template-columns: 1fr; /* Stack on tablet */
        gap: 30px;
    }
    
    .trending-sidebar {
        position: static;
        order: -1; /* Show trending first on mobile if needed, or remove this */
    }
    
    .hero-image-wrapper img {
        height: 350px;
    }
    
    .hero-title {
        font-size: var(--fs-2xl);
    }
}

@media (max-width: 576px) {
    .hero-section-wrapper {
        padding: 20px 0;
    }
    
    .hero-image-wrapper img {
        height: 250px;
    }
    
    .hero-title {
        font-size: var(--fs-xl);
    }
    
    .trending-sidebar {
        padding: 20px;
    }
    
    .trending-post-thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .trending-post-title {
        font-size: var(--fs-xs);
    }
}

/* =========================================
   30. INLINE PRODUCT CARD (Inside Articles)
   ========================================= */
.inline-product-card {
    display: flex;
    gap: 25px;
    background-color: var(--hd-pale-green);
    border: 2px solid var(--hd-light-green);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    align-items: center;
}

.inline-product-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background-color: var(--hd-white);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.inline-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.inline-product-details {
    flex-grow: 1;
}

.inline-product-badge {
    display: inline-block;
    background-color: var(--hd-dark-green);
    color: var(--hd-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.inline-product-title {
    font-size: var(--fs-lg);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.inline-product-title a {
    color: var(--hd-dark-green);
    text-decoration: none;
}

.inline-product-title a:hover {
    color: var(--hd-light-green);
}

.inline-product-price {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--hd-black);
    margin-bottom: 15px;
}

.inline-buy-btn {
    display: inline-block;
    background-color: var(--hd-light-green);
    color: var(--hd-white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: var(--transition);
}

.inline-buy-btn:hover {
    background-color: var(--hd-dark-green);
    color: var(--hd-white);
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .inline-product-card {
        flex-direction: column;
        text-align: center;
    }
    
    .inline-product-image {
        width: 120px;
        height: 120px;
    }
}

/* =========================================
   31. RELATED POSTS SECTION (More from Category)
   ========================================= */
.related-posts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--hd-grey-border);
}

.related-header {
    margin-bottom: 30px;
    text-align: center;
}

.related-title {
    font-size: var(--fs-2xl);
    color: var(--hd-dark-green);
    margin: 0;
}

.related-title a {
    color: var(--hd-light-green);
    text-decoration: none;
    border-bottom: 2px solid var(--hd-light-green);
}

.related-title a:hover {
    color: var(--hd-dark-green);
    border-bottom-color: var(--hd-dark-green);
}

/* Ensure grid fits 3 items perfectly in the single post layout */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Responsive adjustments for the related grid */
@media (max-width: 991px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-title {
        font-size: var(--fs-xl);
    }
}
/* =========================================
   32. CONTACT PAGE STYLES
   ========================================= */

/* Page Header */
.contact-page-header {
    text-align: center;
    max-width: 700px;
    margin: 60px auto 50px;
}

.contact-page-header .page-title {
    font-size: var(--fs-3xl);
    color: var(--hd-dark-green);
    margin-bottom: 15px;
}

.contact-page-header .page-description {
    font-size: var(--fs-md);
    color: var(--hd-grey-dark);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Contact Layout (2 Columns) */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--hd-white);
    border: 1px solid var(--hd-grey-border);
    border-radius: var(--border-radius);
    padding: 40px;
}

.form-heading {
    font-size: var(--fs-xl);
    color: var(--hd-dark-green);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--hd-light-green);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--hd-dark-green);
    margin-bottom: 8px;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--hd-grey-border);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    background-color: var(--hd-grey-light);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--hd-light-green);
    background-color: var(--hd-white);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Submit Button */
.form-submit {
    margin-top: 10px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--hd-light-green);
    color: var(--hd-white);
    border: none;
    padding: 15px 35px;
    font-size: var(--fs-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.submit-btn:hover {
    background-color: var(--hd-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 67, 50, 0.3);
}

/* Success/Error Messages */
.form-success-message {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--hd-pale-green);
    border-radius: var(--border-radius);
    border: 2px solid var(--hd-light-green);
}

.form-success-message svg {
    color: var(--hd-light-green);
    margin-bottom: 15px;
}

.form-success-message h3 {
    color: var(--hd-dark-green);
    margin-bottom: 10px;
}

.form-success-message p {
    color: var(--hd-grey-dark);
    margin-bottom: 0;
}

.form-error-message {
    background-color: #fee;
    color: #c33;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid #c33;
    font-weight: 500;
}

/* Contact Info Cards */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    gap: 20px;
    background-color: var(--hd-white);
    border: 1px solid var(--hd-grey-border);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--hd-light-green);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--hd-pale-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hd-dark-green);
}

.info-content h3 {
    font-size: var(--fs-md);
    color: var(--hd-dark-green);
    margin-bottom: 8px;
}

.info-content p {
    font-size: var(--fs-sm);
    color: var(--hd-grey-dark);
    margin-bottom: 5px;
}

.info-content a {
    color: var(--hd-dark-green);
    text-decoration: none;
    font-weight: 600;
}

.info-content a:hover {
    color: var(--hd-light-green);
}

.info-note {
    font-size: var(--fs-xs);
    color: var(--hd-grey-dark);
    font-style: italic;
}

/* Social Links */
.contact-social {
    background-color: var(--hd-dark-green);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    text-align: center;
}

.contact-social h3 {
    color: var(--hd-white);
    font-size: var(--fs-md);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hd-white);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--hd-light-green);
    color: var(--hd-white);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .contact-page-header {
        margin: 40px auto 30px;
    }
    
    .contact-page-header .page-title {
        font-size: var(--fs-2xl);
    }
    
    .contact-page-header .page-description {
        font-size: var(--fs-base);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .contact-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto;
    }
}