/*
Theme Name: MindMingles Blog
Theme URI: https://www.mindmingles.com/blog
Author: Antigravity
Author URI: https://www.mindmingles.com/
Description: Custom WordPress theme for MindMingles Blog, optimized for performance and SEO.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: mindmingles-blog
*/

/* 
 * Core Variables based on MindMingles brand colors:
 * Primary: #043038
 * Secondary (Accent): #eb5d07
 */
:root {
  --mm-primary: #043038;
  --mm-accent: #eb5d07;
  --mm-text: #333333;
  --mm-bg: #ffffff;
  --mm-light-bg: #f8f9fa;
  --mm-border: #e9ecef;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--mm-primary);
  background-color: var(--mm-bg);
}

a {
  color: var(--mm-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--mm-primary);
}

.bg-mm-primary {
  background-color: var(--mm-primary) !important;
  color: white;
}

.bg-mm-accent {
  background-color: var(--mm-accent) !important;
  color: white;
}

.text-mm-primary {
  color: var(--mm-primary) !important;
}

.text-mm-accent {
  color: var(--mm-accent) !important;
}
.border-top {
    border-top: 1px solid rgb(235 93 7 / 30%) !important;
}
.hero-section {
  background-color: var(--mm-primary);
  color: white;
  padding: 4rem 0;
}
.meta-cate {
  background:#043038;
  color: #fff;
  border-radius:4px;
  padding:0px 5px;
}
.article-card {
    border: 1px solid rgba(235, 93, 7, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgb(235 93 7 / 7%);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.article-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-title a {
  color: var(--mm-primary);
}

.article-title a:hover {
  color: var(--mm-accent);
}

.read-more {
  margin-top: auto;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.single-post-hero {
  background-color: var(--mm-light-bg);
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--mm-border);
}

.single-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.single-post-content h2,
.single-post-content h3 {
  color: var(--mm-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
}

.widget {
  border: 1px solid rgba(235, 93, 7, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.wp-block-heading {
  color: #eb5d07;
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mm-primary);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--mm-accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(235, 93, 7, 0.3);
}

:where(.wp-block-search__input) {
  border: 1px solid rgba(235, 93, 7, 0.3);
  border-radius: 5px;
}

.wp-block-search__label {
  display: none;
}

.widget ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget ul li a {
  color: var(--mm-primary);
}

.widget ul li a:hover {
  color: var(--mm-accent);
}

.pagination {
  margin-top: 3rem;
  justify-content: center;
}

.page-numbers {
  padding: 0.5rem 1rem;
  border: 1px solid var(--mm-border);
  margin: 0 0.2rem;
  border-radius: 4px;
  color: var(--mm-primary);
}

.page-numbers.current {
  background-color: var(--mm-primary);
  color: white;
  border-color: var(--mm-primary);
}

.page-numbers:hover:not(.current) {
  background-color: var(--mm-light-bg);
}

.tm-nav-menu .nav-item {
  margin-left: 1rem;
}

.tm-nav-menu .nav-link {
  color: #333 !important;
  font-weight: 500;
  font-size: 15px;
  padding: 0.5rem 0 !important;
  position: relative;
  transition: color 0.3s ease;
}

.tm-nav-menu .nav-link:hover,
.tm-nav-menu .current-menu-item>.nav-link {
  color: var(--mm-primary) !important;
}

.tm-nav-menu .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--mm-primary);
  transition: width 0.3s ease;
}

.tm-nav-menu .nav-link:hover::after,
.tm-nav-menu .current-menu-item>.nav-link::after {
  width: 100%;
}

.entry-content {
  border: 1px solid rgba(235, 93, 7, 0.3);
  padding: 25px;
  border-radius: 10px;
}

.entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: separate;
    border-spacing: 0;
    width: max-content; 
    min-width: 100%;
    table-layout: auto;
    scrollbar-width: thin;
}

.entry-content table th {
  background-color: #043038;
  color: #eb5d07;
  font-weight: 600;
  padding: 1rem 1.25rem;
  text-align: center;
}

.entry-content table td {
  padding: 10px;
  color: #043038;
  border: 1px solid #04303845;
}

.entry-content table tbody tr:nth-of-type(even) td {
  background-color: #f8f9fa;
}

.entry-content table tbody tr:hover td {
  background-color: #e9ecef;
  transition: background-color 0.2s ease-in-out;
}

@media screen and (max-width: 768px) {
  .entry-content table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .entry-content table th,
  .entry-content table td {
    min-width: 120px;
    padding: 10px 15px !important;
  }
}

.wp-block-categories select {
  word-wrap: normal;
  width: 100%;
  height: 50px;
  padding: 6px;
  border: 1px solid rgba(235, 93, 7, 0.3);
  border-radius: 5px;
}

.article-card p {
  color: #043038;
}

.border-light-subtle {
  border-color: rgba(235, 93, 7, 0.3) !important;
}

/* =========================================
   Hero Section & Animated SVG Background
   ========================================= */
.mm-hero-section {
  background-color: var(--mm-primary, #043038);
  color: #ffffff;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(235, 93, 7, 0.2);
}

.mm-hero-svg-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.mm-svg-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

/* Hardware-accelerated Keyframe Animations */
@keyframes mmFloatOrb1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.08);
  }
}

@keyframes mmFloatOrb2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-35px, 25px) scale(1.05);
  }
}

@keyframes mmWaveMotion1 {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-12px);
    opacity: 1;
  }
}

@keyframes mmWaveMotion2 {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.9;
  }
}

@keyframes mmPulseParticle {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.9;
  }
}

.mm-orb-1 {
  animation: mmFloatOrb1 14s ease-in-out infinite;
  transform-origin: center;
}

.mm-orb-2 {
  animation: mmFloatOrb2 18s ease-in-out infinite;
  transform-origin: center;
}

.mm-wave-1 {
  animation: mmWaveMotion1 8s ease-in-out infinite;
}

.mm-wave-2 {
  animation: mmWaveMotion2 10s ease-in-out infinite reverse;
}

.mm-particle.p1 {
  animation: mmPulseParticle 4s ease-in-out infinite;
}
.mm-particle.p2 {
  animation: mmPulseParticle 5s ease-in-out infinite 1s;
}
.mm-particle.p3 {
  animation: mmPulseParticle 6s ease-in-out infinite 2s;
}
.mm-particle.p4 {
  animation: mmPulseParticle 4.5s ease-in-out infinite 1.5s;
}

.mm-badge-lead {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background-color: var(--mm-accent, #eb5d07) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(235, 93, 7, 0.35);
  display: inline-block;
}

.mm-hero-subtitle {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* =========================================
   Hero Premium Search Bar
   ========================================= */
.mm-hero-search-container {
  max-width: 580px;
  margin: 1.8rem auto 0 auto;
}

.mm-hero-search-form {
  position: relative;
  width: 100%;
}

.mm-search-input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid rgba(235, 93, 7, 0.4);
  border-radius: 50px;
  padding: 5px 6px 5px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mm-search-input-group:focus-within {
  border-color: var(--mm-accent, #eb5d07);
  box-shadow: 0 12px 35px rgba(235, 93, 7, 0.3), 0 0 0 3px rgba(235, 93, 7, 0.2);
  transform: translateY(-2px);
}

.mm-search-icon {
  color: var(--mm-accent, #eb5d07);
  display: flex;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.mm-search-input {
  border: none;
  background: transparent;
  outline: none;
  box-shadow: none;
  font-size: 1rem;
  color: var(--mm-primary, #043038);
  font-weight: 500;
  width: 100%;
  padding: 8px 0;
}

.mm-search-input::placeholder {
  color: #8c9ba5;
  font-weight: 400;
}

.mm-search-submit-btn {
  background: var(--mm-accent, #eb5d07);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(235, 93, 7, 0.3);
}

.mm-search-submit-btn:hover {
  background: #d45104;
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(235, 93, 7, 0.45);
}

@media (max-width: 576px) {
  .mm-search-input-group {
    padding: 4px 4px 4px 14px;
  }
  .mm-search-submit-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .mm-search-input {
    font-size: 0.9rem;
  }
}

/* =========================================
   Recent Posts Slider (3 Columns)
   ========================================= */
.mm-recent-slider-section {
  position: relative;
}

.mm-slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(235, 93, 7, 0.3);
  color: var(--mm-primary, #043038);
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(4, 48, 56, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.mm-slider-btn svg {
  transition: transform 0.2s ease;
}

.mm-slider-btn:hover:not(:disabled) {
  background: var(--mm-accent, #eb5d07);
  border-color: var(--mm-accent, #eb5d07);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(235, 93, 7, 0.35);
  transform: translateY(-2px);
}

.mm-slider-prev:hover:not(:disabled) svg {
  transform: translateX(-2px);
}

.mm-slider-next:hover:not(:disabled) svg {
  transform: translateX(2px);
}

.mm-slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: #e2e8f0;
  background-color: #f8fafc;
  color: #94a3b8;
  box-shadow: none;
  transform: none;
}

.mm-slider-wrapper {
  overflow: hidden;
  position: relative;
}

.mm-slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding: 4px 2px 16px 2px;
}

.mm-slider-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* 3 Cards on Desktop */
.mm-slider-item {
  flex: 0 0 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  scroll-snap-align: start;
}

@media (max-width: 992px) {
  .mm-slider-item {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

@media (max-width: 576px) {
  .mm-slider-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Card image transitions and 16:9 ratio preservation */
.article-card img,
.article-card picture img,
.mm-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover img,
.article-card:hover picture img,
.article-card:hover .mm-card-thumb img {
  transform: scale(1.05);
}
.ez-toc-open-icon {
    top: 35%;
    color: #ffffff;
    background-color: #eb5d07;
}
.ez-toc-sticky-fixed .ez-toc-sidebar {
    top: 150px;
    width: 73%;
    box-shadow: 1px 1px 10px 3px rgb(255 87 34 / 31%);
    border-radius: 0px 10px 10px 0px;
}
.ez-toc-sticky-fixed .ez-toc-sidebar .ez-toc-sticky-title-container {
background:#043038;
}
.ez-toc-sticky-fixed .ez-toc-sidebar .ez-toc-sticky-title-container .ez-toc-sticky-title {color:#eb5d07;}

.ez-toc-sticky-fixed .ez-toc-close-icon {color:#eb5d07;}