/*
Theme Name: WellnessMama Bootstrap
Theme URI: https://example.com/
Author: Arul M Joseph
Author URI: https://nexlotech.com/
Description: Bootstrap 5.3 WordPress theme inspired by a modern wellness blog layout.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: wellnessmama-bootstrap
Tags: blog, custom-menu, featured-images, bootstrap
*/

:root {
  --wm-primary: #0f7d73;
  --wm-bg: #eaf2f1;
  --wm-muted: #6c757d;
  --wm-border: #cfe0dd;
  --wm-soft: #eef7f6;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

a {
  color: var(--wm-primary);
}

a:hover {
  color: #0b5f58;
}

.wm-topbar {
  background: #0f8b82;
  color: #ffffff;
  font-size: .95rem;
}

.wm-topbar a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.wm-brand {
  font-weight: 700;
  letter-spacing: .2px;
}

.wm-brand small {
  display: block;
  font-weight: 500;
  color: var(--wm-muted);
  letter-spacing: 0;
}

/* Header layout like reference */
.wm-header-row {
  padding: 18px 0;
}

.wm-logo {
  display: flex;
  align-items: center;
}

.wm-logo .custom-logo {
  height: auto;
}

.wm-top-links .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-end;
}

.wm-top-links .menu a {
  color: #2b2b2b;
  text-decoration: none;
  font-weight: 500;
}

.wm-top-links .menu a:hover {
  text-decoration: underline;
}

.wm-search {
  width: 360px;
  max-width: 45vw;
}

.wm-search .form-control {
  border-radius: 0;
  border-color: var(--wm-border);
  padding: .62rem .8rem;
}

.wm-search .btn {
  border-radius: 0;
  background: var(--wm-primary);
  border-color: var(--wm-primary);
  padding: .62rem .95rem;
}

.wm-search .btn:hover {
  background: #0b5f58;
  border-color: #0b5f58;
}

.wm-primary-nav {
  background: var(--wm-bg);
  border-top: 1px solid var(--wm-border);
  border-bottom: 1px solid var(--wm-border);
}

.wm-primary-nav .navbar-nav {
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.wm-primary-nav .nav-link {
  color: #2b2b2b;
  font-weight: 600;
  padding: .95rem 0;
}

.wm-primary-nav .nav-link:hover {
  color: var(--wm-primary);
}

.wm-hero-card {
  border: 1px solid var(--wm-border);
  border-radius: .9rem;
  background: #fff;
}

.wm-btn {
  background: var(--wm-primary);
  border-color: var(--wm-primary);
}

.wm-btn:hover {
  background: #0b5f58;
  border-color: #0b5f58;
}

.wm-section {
  padding: 3.25rem 0;
}

.wm-section.wm-alt {
  background: #f3f7f6;
}

.wm-kicker {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  color: var(--wm-muted);
}

.wm-section-title {
  font-weight: 700;
}

.wm-topic-card {
  border: 1px solid var(--wm-border);
  border-radius: .85rem;
  padding: 1.15rem;
  background: #fff;
  height: 100%;
}

.wm-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--wm-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wm-primary);
  margin-bottom: .6rem;
}

.wm-card {
  border: 1px solid var(--wm-border);
  border-radius: .95rem;
  overflow: hidden;
}

.wm-card .card-img-top {
  aspect-ratio: 16/10;
  object-fit: cover;
}

.wm-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--wm-border);
  background: #fff;
  color: var(--wm-muted);
  font-size: .8rem;
}

.wm-divider {
  border-top: 1px solid var(--wm-border);
}

.wm-footer {
  background: #083f39;
  color: #d6f1ee;
}

.wm-footer a {
  color: #d6f1ee;
}

.wm-footer a:hover {
  color: #ffffff;
}

.wm-footer .wm-footer-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1rem;
}

.wm-social a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
}

/* Mobile: use only one menu (primary) */
@media (max-width: 991.98px) {
  .wm-top-links {
    display: none !important;
  }

  .wm-search {
    max-width: 100%;
    width: 100%;
  }

  .wm-header-row {
    padding: 10px;
  }

  .wm-primary-nav .navbar-nav {
    justify-content: flex-start;
    gap: 0;
  }

  .wm-primary-nav .nav-link {
    padding: .7rem .25rem;
  }
}


/* Topics section like reference */
.wm-topics-wrap {
  background: #ffffff;
  /* White background to act as grid lines */
  border: 1px solid #e1e1e1;
  overflow: hidden;
}

.wm-topics-search-block {
  background: #f0f7f6;
  /* Mint background for search area */
  padding: 3.5rem 2rem;
  margin-bottom: 0 !important;
  /* Remove margin to connect with grid */
  border-bottom: 1px solid #ffffff;
  /* White line between search and grid */
}

.wm-topics-search-block .h4 {
  font-weight: 700;
  font-size: 1.65rem;
  color: #1a1a1a;
}

.wm-topics-search-block .form-control {
  border-radius: 0;
  border: 1px solid #d1d1d1;
  padding: 0.85rem 1.25rem;
}

.wm-topics-search-block .btn {
  background: #0f7d73;
  border-color: #0f7d73;
  padding: 0.85rem 2.5rem;
  font-weight: 700;
  border-radius: 0;
  text-transform: none;
}

.wm-topic-card {
  background: #f0f7f6;
  /* Mint background for each topic box */
  border: 0;
  border-radius: 0;
  padding: 3rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.wm-topic-card .wm-icon {
  font-size: 2.75rem;
  color: #333;
  margin-bottom: 1.25rem;
}

.wm-topic-card .fw-semibold {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.wm-topic-card .btn {
  background: #0f7d73;
  border-color: #0f7d73;
  color: #fff;
  padding: 0.5rem 1.8rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
}

.wm-topic-card .btn:hover {
  background: #0b5f58;
  border-color: #0b5f58;
}

/* Custom 5-column grid */
@media (min-width: 1200px) {
  .col-xl-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

@media (max-width: 1199.98px) {
  .wm-topics-search-block {
    padding: 2.5rem 1.5rem;
  }

  .wm-topic-card {
    padding: 2.5rem 1rem;
  }
}

@media (max-width: 991.98px) {
  .wm-topics-wrap {
    padding: 0;
  }
}

/* Footer like reference */
.wm-footer {
  background: #eef7f6;
  color: #1f2a2a;
}

.wm-footer a {
  color: #1f2a2a;
}

.wm-footer a:hover {
  color: var(--wm-primary);
}

.wm-footer-disclaimer {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: .92rem;
  color: #3b4a4a;
  line-height: 1.6;
}

.wm-footer-hr {
  border-top: 1px solid rgba(15, 125, 115, .6);
  margin: 2.25rem 0;
}

.wm-footer .wm-footer-col h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.wm-footer .wm-footer-col ul {
  margin: 0;
  padding-left: 1.1rem;
}

.wm-footer .wm-footer-col li {
  margin-bottom: .65rem;
}

.wm-footer .wm-footer-optin {
  border-left: 1px solid rgba(15, 125, 115, .6);
  padding-left: 2rem;
}

.wm-footer .wm-footer-optin .form-control {
  border-radius: 0;
  border-color: rgba(15, 125, 115, .6);
  padding: .75rem .9rem;
}

.wm-footer .wm-footer-optin .btn {
  border-radius: 0;
  padding: .75rem .9rem;
  background: var(--wm-primary);
  border-color: var(--wm-primary);
}

.wm-footer .wm-footer-optin .btn:hover {
  background: #0b5f58;
  border-color: #0b5f58;
}

.wm-bottombar {
  border-top: 1px solid rgba(15, 125, 115, .35);
  padding: 1.25rem 0;
  margin-top: 2.25rem;
}

.wm-bottombar .wm-copy {
  font-size: .92rem;
  color: #3b4a4a;
}

.wm-social a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wm-primary);
  color: #fff;
  text-decoration: none;
}

.wm-social a:hover {
  background: #0b5f58;
  color: #fff;
}

@media (max-width: 991.98px) {
  .wm-footer .wm-footer-optin {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(15, 125, 115, .35);
    padding-top: 1.25rem;
  }

  .wm-topics-wrap {
    padding: 2.25rem 1rem;
  }
}

.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%2833,37,41,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Archive & Post Card Styling like Reference */
.wm-archive-header {
  padding: 4rem 0 3rem;
}

.wm-breadcrumbs {
  font-size: 0.95rem;
  font-family: Georgia, serif;
}

.wm-breadcrumbs a {
  color: #0f7d73;
  text-decoration: underline;
}

.wm-archive-title {
  font-size: 2.85rem;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.wm-archive-description {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #3b4a4a;
  line-height: 1.6;
}

.wm-post-card {
  margin-bottom: 2rem;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.wm-post-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.wm-post-thumb {
  margin-bottom: 0 !important;
}

.wm-post-thumb img {
  border-radius: 0;
  /* Flush with card edge */
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.wm-post-content {
  padding: 1.5rem 1.5rem 0.5rem;
}

.wm-post-title {
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
}

.wm-post-footer {
  padding: 0 1.5rem 1.5rem;
}

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

.wm-post-meta {
  font-size: 0.95rem;
  color: #4a4a4a;
}

.wm-author-link {
  color: #0f7d73;
  text-decoration: underline;
}

.wm-post-excerpt {
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.6;
}

.wm-read-more {
  background: #0f7d73;
  color: #fff !important;
  padding: 0.65rem 2rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 0;
  transition: background 0.2s;
}

.wm-read-more:hover {
  background: #0b5f58;
}

.wm-pagination {
  text-align: center;
}

.wm-pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.15rem;
  color: #0f7d73;
  text-decoration: none;
  font-weight: 600;
}

.wm-pagination .page-numbers.current {
  color: #1a1a1a;
  text-decoration: underline;
}

/* Single Post Specific Styling */
.wm-single-hero {
  border-bottom: 2px solid #eef7f6;
  margin-bottom: 2rem;
}

.wm-hero-left {
  padding: 3rem 0;
}

.wm-cat-badge {
  display: inline-block;
  background: #f0f7f6;
  color: #0f7d73;
  padding: 0.35rem 1.25rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.wm-single-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: #111;
  margin-bottom: 2rem;
}

.wm-author-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.wm-author-info {
  line-height: 1.25;
}

.wm-author-name {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.wm-post-date {
  font-size: 0.95rem;
  color: #4a4a4a;
  font-family: Georgia, serif;
}

.wm-affiliate-box {
  font-size: 0.85rem;
  color: #4a4a4a;
  line-height: 1.5;
}

.wm-affiliate-box a {
  text-decoration: underline;
  color: #0f7d73;
}

.wm-hero-right {
  position: relative;
}

.wm-single-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 450px;
}

.wm-hero-watermark {
  position: absolute;
  bottom: 15px;
  left: 20px;
  font-family: 'Georgia', serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  pointer-events: none;
}

.wm-article-content {
  max-width: 800px;
  margin: 0 auto;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

.wm-article-content p {
  margin-bottom: 1.75rem;
}

.wm-article-content a {
  color: #0f7d73;
  text-decoration: underline;
}

/* Breadcrumbs for single */
.wm-single-breadcrumbs {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e1e1e1;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  font-family: Georgia, serif;
}

.wm-single-breadcrumbs a {
  color: #0f7d73;
  text-decoration: underline;
}

@media (max-width: 991.98px) {



  .wm-header-row .form-control,
  .wm-header-row .btn {
    border-radius: 0 !important;
  }

  .wm-logo {
    padding-left: 15px;
    /* Keep logo slightly off the edge if desired, or 0 if user wants truly edge-to-edge */
  }

  .wm-hero-left {
    padding: 2rem 15px;
    /* Give text some breathing room while container is edge-to-edge */
  }

  .wm-single-title {
    font-size: 2.25rem;
  }

  .wm-single-featured-img {
    min-height: 250px;
    height: auto;
  }
}

/* Resource Page Styles */
.wm-resource-page {
  background-color: #fcfcfc;
}

.wm-browse-box {
  border: 1px solid rgba(15, 125, 115, 0.1);
}

.wm-browse-links a {
  font-size: 1.1rem;
  padding: 0.25rem 0.5rem;
}

.wm-resource-card {
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.wm-resource-card:hover {
  border-color: var(--wm-primary) !important;
}

.wm-resource-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wm-resource-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.wm-resource-cat-section h2 {
  font-size: 2.5rem;
  letter-spacing: -1px;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 767.98px) {
  .wm-resource-cat-section h2 {
    font-size: 1.75rem;
  }

  .wm-resource-img {
    height: 160px;
  }
}

/* Home Carousel Styling */
.wm-carousel-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: #f0f0f0;
}

.wm-carousel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wm-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 2.5rem 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #fff;
}

.wm-carousel-caption .wm-cat-badge {
  background: var(--wm-primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

#wmHeroCarousel .carousel-indicators {
  justify-content: flex-start;
  margin-left: 2.5rem;
  margin-right: 2.5rem;
  bottom: 1rem;
}

#wmHeroCarousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
}

#wmHeroCarousel .carousel-indicators .active {
  background-color: #fff;
  transform: scale(1.2);
}

@media (max-width: 767.98px) {
  .wm-carousel-caption {
    padding: 2rem 1.5rem 1.5rem;
  }

  #wmHeroCarousel .carousel-indicators {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}