/*
Template Name: Gate 3 Carbon -
Author: Robert adzie
Author URI: https:/Gate 3 Carbon Limited/
Version: 1.0
  */

/* -----------------------------------------------------------------------------
   Base – General & Typography
----------------------------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #a8ff60;
  --secondary: #00b09b;
  --accent: #96c93d;
  --dark: #0a0a0a;
  --darker: #000000;
  --light: #f8f9fa;
  --gray: #bbbbbb;
  --dark-gray: #aaaaaa;
  --card-bg: rgba(10, 10, 10, 0.7);
  --card-border: rgba(168, 255, 96, 0.15);
  
    --navbar-bg: #1a1a1a;
    --brand-color: #a8ff60;
    --brand-secondary: #f4c430;
    --link-color: #ffffff;
    --link-hover-bg: rgba(255, 255, 255, 0.08);
    --dropdown-bg: #ffffff;
    --dropdown-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);

}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--darker);
  color: var(--light);
  overflow-x: hidden;
  position: relative;
}
/* =============================================================================
   GATE3 CARBON NAVBAR — FULL RESPONSIVE CSS
   Supports: WordPress menu classes, Bootstrap 5, multi-level dropdowns
============================================================================= */

/* ==========================================================
   1. VARIABLES
========================================================== */


/* ==========================================================
   2. NAVBAR BASE
========================================================== */
.navbar {
    background-color: var(--navbar-bg);
    padding: 0.75rem 0;
    font-family: 'Segoe UI', sans-serif;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    color: var(--link-color);
}

.navbar-brand img {
    max-height: 40px;
}

/* ==========================================================
   3. MENU WRAPPER
========================================================== */
.navbar-nav {
    gap: 0.25rem;
}

/* ==========================================================
   4. MENU ITEMS (LI)
========================================================== */
.navbar-nav > .menu-item {
    position: relative;
}

/* ==========================================================
   5. MENU LINKS (A)
========================================================== */
.navbar-nav > .menu-item > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1rem;
    color: var(--link-color);
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.15s ease;
}

.navbar-nav > .menu-item > a:hover {
    color: var(--brand-color);
    background-color: var(--link-hover-bg);
    transform: translateY(-1px);
}

/* ==========================================================
   6. ACTIVE STATES
========================================================== */
.navbar-nav > .current-menu-item > a,
.navbar-nav > .current-menu-parent > a,
.navbar-nav > .current-menu-ancestor > a {
    color: var(--brand-color);
    font-weight: 600;
    background-color: rgba(244, 196, 48, 0.12);
}

/* ==========================================================
   7. DROPDOWN PARENT
========================================================== */
.navbar-nav .menu-item-has-children > a {
    padding-right: 2rem;
}

.navbar-nav .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.25s ease;
}

/* Rotate arrow when dropdown open */
.navbar-nav .menu-item-has-children.show > a::after {
    transform: translateY(-40%) rotate(-135deg);
}

/* ==========================================================
   8. DROPDOWN MENU
========================================================== */
.navbar-nav .dropdown-menu {
    margin-top: 0.5rem;
    border: none;
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    background-color: var(--dropdown-bg);
    box-shadow: var(--dropdown-shadow);
    min-width: 14rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 999;
}

.navbar-nav .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================
   9. DROPDOWN ITEMS
========================================================== */
.navbar-nav .dropdown-menu .menu-item > a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #212529;
    font-weight: 400;
    border-radius: 0;
    transition:
        background-color 0.2s ease,
        padding-left 0.2s ease,
        color 0.2s ease;
}

.navbar-nav .dropdown-menu .menu-item > a:hover {
    background-color: #f8f9fa;
    color: var(--brand-color);
    padding-left: 1.5rem;
}

.navbar-nav .dropdown-menu .current-menu-item > a {
    font-weight: 600;
    background-color: #f1f3f5;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
}

/* ==========================================================
   10. MULTI-LEVEL DROPDOWNS
========================================================== */
.navbar-nav .dropdown-menu .menu-item-has-children {
    position: relative;
}

.navbar-nav .dropdown-menu .menu-item-has-children > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    border-radius: 0.5rem;
    box-shadow: var(--dropdown-shadow);
}

/* ==========================================================
   11. MOBILE NAVIGATION
========================================================== */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-nav {
        gap: 0;
        margin-top: 1rem;
    }

    .navbar-nav > .menu-item > a {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 0;
    }

    .navbar-nav > .menu-item > a:hover {
        background-color: transparent;
        transform: none;
    }

    .navbar-nav .dropdown-menu {
        box-shadow: none;
        background-color: transparent;
        padding-left: 1rem;
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav .dropdown-menu .menu-item > a {
        padding: 0.5rem 1rem;
        color: var(--link-color);
    }

    .navbar-nav .menu-item-has-children > a::after {
        right: 1rem;
        transform: translateY(-50%) rotate(45deg);
    }

    /* Nested dropdowns mobile */
    .navbar-nav .dropdown-menu .menu-item-has-children > .dropdown-menu {
        left: 0;
        top: 0;
        margin-left: 0;
        padding-left: 1rem;
        border-radius: 0;
        box-shadow: none;
    }
}

/* ==========================================================
   12. ACCESSIBILITY
========================================================== */
.navbar-nav a:focus-visible {
    outline: 2px dashed var(--brand-color);
    outline-offset: 4px;
}

/* -----------------------------------------------------------------------------
   BLOG STYLES

/* ANIMATED BACKGROUND */
.animated-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary), transparent);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--secondary), transparent);
  bottom: 10%;
  right: 10%;
  animation-delay: 3s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* PARTICLES */
.particles {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: floatUp 8s linear infinite;
}

@keyframes floatUp {
  0% { 
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { 
    transform: translateY(-100px) translateX(var(--drift));
    opacity: 0;
  }
}

/* BLOG HERO */
.blog-hero {
  padding: 120px 20px 40px;
  position: relative;
  z-index: 1;
}

.blog-hero-content {
  max-width: 1400px;
  margin: 0 auto;
}

.blog-category {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  color: var(--gray);
  font-size: 0.95rem;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-meta i {
  color: var(--primary);
}

/* BLOG LAYOUT */
.blog-layout {
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

.blog-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

/* MAIN CONTENT */
.blog-main {
  position: relative;
}

.blog-featured-image {
  width: 100%;
  max-width: 600px;
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(168, 255, 96, 0.2);
}

.blog-featured-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.blog-featured-image:hover img {
  transform: scale(1.05);
}

.blog-content {
  background: var(--card-bg);
  border-radius: 25px;
  padding: 50px;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.blog-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168,255,96,0.05), transparent);
  opacity: 0;
  transition: opacity 0.5s;
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.blog-content:hover::before {
  opacity: 1;
}

.blog-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--gray);
  margin-bottom: 25px;
  position: relative;
}

.blog-content h2 {
  font-size: 1.9rem;
  color: var(--primary);
  margin: 50px 0 25px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.blog-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
}

.blog-content h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin: 35px 0 20px;
  font-weight: 600;
}

.blog-content ul, .blog-content ol {
  margin: 25px 0 25px 30px;
  color: var(--gray);
}

.blog-content li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.blog-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 25px 30px;
  margin: 35px 0;
  background: rgba(168, 255, 96, 0.05);
  border-radius: 10px;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--light);
  position: relative;
}

.blog-content blockquote::before {
  content: '"';
  font-size: 3.5rem;
  color: var(--primary);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 10px;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(0,176,155,0.1), rgba(150,201,61,0.05));
  border-left: 4px solid var(--secondary);
  padding: 25px;
  margin: 35px 0;
  border-radius: 15px;
  border: 1px solid rgba(168, 255, 96, 0.2);
}

.highlight-box h4 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* TAGS */
.blog-tags {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(168, 255, 96, 0.2);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.blog-tags-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

.blog-tag {
  padding: 6px 16px;
  background: rgba(168, 255, 96, 0.1);
  border: 1px solid rgba(168, 255, 96, 0.3);
  border-radius: 50px;
  color: var(--gray);
  font-size: 0.85rem;
  transition: all 0.3s;
  text-decoration: none;
}

.blog-tag:hover {
  background: rgba(168, 255, 96, 0.2);
  color: var(--primary);
  transform: translateY(-2px);
}

/* SHARE SECTION */
.blog-share {
  margin-top: 40px;
  padding: 35px;
  background: rgba(0, 176, 155, 0.05);
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(168, 255, 96, 0.2);
}

.blog-share h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--light);
  font-size: 1.1rem;
  transition: all 0.3s;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-5px);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(168, 255, 96, 0.2);
}

/* AUTHOR SECTION */
.author-section {
  margin-top: 50px;
  padding: 35px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  display: flex;
  gap: 25px;
  align-items: center;
  backdrop-filter: blur(10px);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(168, 255, 96, 0.3);
}

.author-info h4 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.author-bio {
  color: var(--gray);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* SIDEBAR */
.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
  transition: all 0.3s;
}

.sidebar-widget:hover {
  border-color: rgba(168,255,96,0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sidebar-widget h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 25px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.sidebar-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
}

/* SEARCH WIDGET */
.search-form {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(168, 255, 96, 0.2);
  border-radius: 50px;
  color: var(--light);
  font-size: 0.95rem;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(168, 255, 96, 0.2);
}

.search-input::placeholder {
  color: var(--gray);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 176, 155, 0.4);
}

/* CATEGORIES WIDGET */
.category-list {
  list-style: none;
}

.category-item {
  margin-bottom: 12px;
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  color: var(--gray);
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.category-link:hover {
  background: rgba(168, 255, 96, 0.1);
  color: var(--primary);
  border-color: rgba(168, 255, 96, 0.3);
  transform: translateX(5px);
}

.category-item.active a {
  background: rgba(168, 255, 96, 0.1);
  color: var(--primary);
  border-color: rgba(168, 255, 96, 0.3);
  transform: translateX(5px);
}

.category-item.active a:hover {
  background: rgba(168, 255, 96, 0.1);
  color: var(--primary);
  border-color: rgba(168, 255, 96, 0.3);
  transform: translateX(5px);
}


.category-count {
  background: rgba(168, 255, 96, 0.2);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* POPULAR POSTS WIDGET */
.popular-post {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(168, 255, 96, 0.1);
  text-decoration: none;
  transition: all 0.3s;
}

.popular-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.popular-post:hover {
  transform: translateX(5px);
}

.popular-post-image {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(168, 255, 96, 0.2);
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-content h4 {
  font-size: 0.95rem;
  color: var(--light);
  margin-bottom: 5px;
  line-height: 1.4;
  font-weight: 500;
}

.popular-post-date {
  font-size: 0.8rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* TAGS WIDGET */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  padding: 6px 14px;
  background: rgba(168, 255, 96, 0.1);
  border: 1px solid rgba(168, 255, 96, 0.2);
  border-radius: 50px;
  color: var(--gray);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s;
}

.tag-item:hover {
  background: rgba(168, 255, 96, 0.2);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* NEWSLETTER WIDGET */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(168, 255, 96, 0.2);
  border-radius: 10px;
  color: var(--light);
  font-size: 0.95rem;
  transition: all 0.3s;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(168, 255, 96, 0.2);
}

.newsletter-input::placeholder {
  color: var(--gray);
}

.newsletter-btn {
  padding: 12px 25px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 176, 155, 0.3);
}

/* RELATED POSTS */
.related-posts {
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}

.related-posts-container {
  max-width: 1400px;
  margin: 0 auto;
}

.related-posts h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.related-posts h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-card {
  position: relative;
  height: 350px;
  border-radius: 25px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: all 0.4s;
  border: 1px solid var(--card-border);
}

.related-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
  transition: all 0.4s;
}

.related-card:hover::before {
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.95) 100%);
}

.related-card:hover {
  transform: translateY(-10px);
  border-color: rgba(168,255,96,0.4);
  box-shadow: 0 20px 40px rgba(0,176,155,0.3);
}

.related-card-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-card:hover .related-card-image img {
  transform: scale(1.1);
}

.related-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  z-index: 2;
}

.related-card-category {
  display: inline-block;
  padding: 5px 15px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  border-radius: 50px;
  font-size: 0.75rem;
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-card-title {
  color: var(--light);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.related-card-meta {
  color: var(--gray);
  font-size: 0.85rem;
  display: flex;
  gap: 15px;
}

.product-story {
  position: relative;
  padding: 80px 0;
  background-color: var(--darker);
  color: #fff;
}

.product-story-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.product-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-story-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease;
}

.product-story-card:hover {
  transform: translateY(-5px);
}

.product-story-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1; /* Ensure stacking context for the overlay */
}

.product-story-wrapper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
  transition: transform 0.6s ease;
}

.product-story-card:hover img {
  transform: scale(1.05);
}

.product-story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: var(--light); /* Explicitly set text color from theme variable */
  padding: 40px 20px 20px;
  text-align: center;
  z-index: 2;
  opacity: 1; /* Always visible */
  transform: translateY(0); /* Always in position */
  transition: none; /* No transition as it's always visible */
}



.product-story-overlay h4 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--light); /* Ensure h4 color is explicit */
}

.product-story-overlay p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.4;
  max-width: 90%;
  margin: 0 auto;
  color: var(--light); /* Ensure p color is explicit */
}

.product-story-read-more {
  color: var(--primary); /* Use primary theme color for emphasis */
  text-decoration: underline;
  display: inline-block;
  margin-top: 10px; /* Space from title */
  font-weight: 500;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.product-story-read-more:hover {
  color: var(--accent); /* Change color on hover */
  text-decoration: none;
}


/* RESPONSIVE */
@media (max-width: 1024px) {
  .blog-container {
    grid-template-columns: 1fr;
  }
  
  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .blog-content {
    padding: 30px 25px;
  }
  
  .author-section {
    flex-direction: column;
    text-align: center;
  }
  
  .blog-featured-image img {
    height: 250px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-sidebar {
    grid-template-columns: 1fr;
  }
}



/* -----------------------------------------------------------------------------
   FOOTER
----------------------------------------------------------------------------- */
/* FOOTER */
.footer {
  background: var(--darker);
  padding: 60px 20px 30px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(168,255,96,0.1);
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--gray);
  font-size: 0.9rem;
}


/* -----------------------------------------------------------------------------
   CUSTOM NAVBAR STYLES
----------------------------------------------------------------------------- */



.navbar-toggler {
    border-color: var(--card-border);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(168, 255, 96, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    background-color: var(--darker);
    border: 1px solid var(--card-border);
}

.dropdown-item {
    color: var(--light);
}

.dropdown-item:hover, .dropdown-item:focus {
    color: var(--darker);
    background-color: var(--primary);
}

/* --- Footer & Copyright Enhancements --- */

.footer-col, .footer-col p, .footer-col li {
    color: var(--gray);
    font-size: 0.95rem;
}

.footer-col a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

.copyright {
    background-color: #000;
    padding: 25px 0;
    margin-top: 0;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.copyright p {
    margin: 0;
    color: var(--dark-gray);
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: var(--light);
}

/* Responsive adjustments for copyright section */
@media (max-width: 767px) {
    .copyright .col-lg-6 {
        text-align: center;
        margin-bottom: 15px;
    }
    .copyright .col-lg-6:last-child {
        margin-bottom: 0;
    }
    .social-icons ul {
        justify-content: center;
    }
    .social-icons li {
        margin: 0 7.5px;
    }
}

/* --- Generic Footer Widget Styles --- */

.footer-col .widget {
    font-size: 0.95rem;
}

.footer-col .widget-title {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.footer-col .widget p {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-col .widget p i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.footer-col .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col .widget ul li {
    color: var(--gray);
    margin-bottom: 12px;
}

.footer-col .widget ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col .widget ul li a:hover {
    color: var(--primary);
}

/* --- Native Widget Compatibility --- */

/* Search Widget */
.footer-col .widget_search .search-form {
    display: flex;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    overflow: hidden;
}
.footer-col .widget_search .search-form label {
    width: 100%;
}
.footer-col .widget_search .search-field {
    background-color: var(--dark);
    color: var(--light);
    border: none;
    padding: 10px 15px;
    width: 100%;
}
.footer-col .widget_search .search-field:focus {
    outline: none;
}
.footer-col .widget_search .search-submit {
    background-color: var(--primary);
    color: var(--darker);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.footer-col .widget_search .search-submit:hover {
    background-color: var(--light);
}

/* Calendar Widget */
.footer-col .widget_calendar #wp-calendar {
    width: 100%;
    color: var(--gray);
}
.footer-col .widget_calendar #wp-calendar caption {
    caption-side: top;
    text-align: center;
    color: var(--light);
    font-weight: 500;
    margin-bottom: 10px;
}
.footer-col .widget_calendar #wp-calendar th,
.footer-col .widget_calendar #wp-calendar td {
    text-align: center;
    padding: 5px;
}
.footer-col .widget_calendar #wp-calendar th {
    color: var(--dark-gray);
    font-size: 0.9em;
}
.footer-col .widget_calendar #wp-calendar tbody td {
    background-color: rgba(255, 255, 255, 0.05);
}
.footer-col .widget_calendar #wp-calendar tbody td:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.footer-col .widget_calendar #wp-calendar #today {
    background-color: var(--primary);
    color: var(--darker);
    font-weight: bold;
}
.footer-col .widget_calendar #wp-calendar a {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
}
.footer-col .widget_calendar #wp-calendar tfoot a {
    color: var(--dark-gray);
}

/* Tag Cloud Widget */
.footer-col .widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-col .widget_tag_cloud .tag-cloud-link {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gray);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9em !important; /* Override default inline font size */
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-col .widget_tag_cloud .tag-cloud-link:hover {
    background-color: var(--primary);
    color: var(--darker);
}

/* Social Icons Widget (Unified) */
.social-icons a,
.footer-col .wp-social-link a,
.footer-col .widget_social_icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #2a2a2a;
    border-radius: 50%;
    color: var(--light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icons a:hover,
.footer-col .wp-social-link a:hover,
.footer-col .widget_social_icons a:hover {
    background-color: var(--primary);
    color: var(--darker);
}

/* Style the icons themselves (Font Awesome and SVG) */
.social-icons a i,
.footer-col .widget_social_icons a i {
    transition: color 0.3s ease;
}

.footer-col .wp-social-link a svg {
    fill: var(--light);
    width: 20px;
    height: 20px;
    transition: fill 0.3s ease;
}

.social-icons a:hover i,
.footer-col .widget_social_icons a:hover i,
.footer-col .wp-social-link a:hover svg {
    color: var(--darker);
    fill: var(--darker);
}

/* Container adjustments for block widget */
.footer-col .wp-block-social-links {
    padding: 0;
}
.footer-col .wp-block-social-links.is-layout-flex {
    gap: 8px;
}

/* --- Footer Navigation Menu Widget --- */

.footer-col .widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col .widget_nav_menu ul li {
    margin-bottom: 12px;
}

.footer-col .widget_nav_menu ul li a {
    color: var(--gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.footer-col .widget_nav_menu ul li a:hover {
    color: var(--primary);
}

.footer-col .widget_nav_menu ul li a::before {
    content: '\f105'; /* Font Awesome angle-right icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary);
    font-size: 0.8rem;
}

/* --- Footer Custom Menu List --- */
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 12px;
}

.footer-menu-list li a {
    color: var(--gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.footer-menu-list li a:hover {
    color: var(--primary);
}

.footer-menu-list li a::before {
    content: '\f105'; /* Font Awesome angle-right icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary);
    font-size: 0.8rem;
}

/* --- Footer Social Links --- */
.footer .info-card {
  margin-top: 30px;
  margin-bottom: 30px;
}

.footer .info-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.footer .social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--light);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer .social-link:hover {
  background-color: var(--primary);
  color: var(--darker);
  transform: translateY(-3px);
  border-color: var(--primary);
}

/* Farm Map Table Styling */
.table-wrap .table {
  color: var(--light);
}

.table-wrap .table th {
  color: var(--primary);
}
