
/* ============================================
   MicoMedical Design System — Warm Earth Editorial
   ============================================ */

/* ---- Global ---- */
body { font-family: "Inter", sans-serif !important; color: #2D2D2D !important; background: #FAF7F2 !important; }
h1, h2, h3, h4, h5, h6 { font-family: "Cormorant Garamond", serif !important; }

/* ---- Hide theme page title on Elementor pages ---- */
.elementor-page .page-header,
.elementor-page .entry-title { display: none !important; }

/* ---- Header ---- */
.jdm-header-root { position: sticky !important; top: 0 !important; z-index: 999 !important; background: #FFFFFF !important; border-bottom: 1px solid rgba(0,0,0,0.06) !important; transition: all 0.4s cubic-bezier(0.4,0,0.2,1) !important; }
.jdm-header-root .elementor-nav-menu--main a { color: #2D2D2D !important; transition: color 0.25s ease !important; }
.jdm-header-root .elementor-nav-menu--main a:hover { color: #B4542A !important; }
.jdm-header-root .elementor-nav-menu--toggle .elementor-menu-toggle { color: #2D2D2D !important; }
.jdm-header-root .elementor-search-form__toggle { color: #2D2D2D !important; transition: color 0.25s ease !important; }
.jdm-header-root .elementor-search-form__toggle:hover { color: #B4542A !important; }

/* Mobile toggle */
.jdm-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.jdm-mobile-toggle span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: all 0.3s ease; }
@media (max-width: 1024px) { .jdm-mobile-toggle { display: flex !important; } }

/* Mobile overlay */
.jdm-mobile-overlay { position: fixed; inset: 0; background: rgba(44,74,59,0.95); backdrop-filter: blur(16px); z-index: 998; display: none; flex-direction: column; padding: 100px 24px 24px; gap: 8px; }
body.jdm-mobile-open .jdm-mobile-overlay { display: flex !important; }
.jdm-mobile-overlay a { color: #fff !important; font-size: 18px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); text-decoration: none; }

/* Dropdown menu styling - light background for contrast */
.elementor-nav-menu--dropdown { background: #FFFFFF !important; border-radius: 12px !important; box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important; border: 1px solid rgba(0,0,0,0.06) !important; }
.elementor-nav-menu--dropdown .elementor-item { color: #2D2D2D !important; font-size: 15px !important; font-weight: 500 !important; padding: 14px 24px !important; border-bottom: 1px solid rgba(0,0,0,0.05) !important; }
.elementor-nav-menu--dropdown .elementor-item:hover { background: rgba(180,84,42,0.06) !important; color: #B4542A !important; }
.elementor-nav-menu--dropdown .sub-menu { background: #FAF7F2 !important; border-radius: 8px !important; }
.elementor-nav-menu--dropdown .elementor-sub-item { color: #2D2D2D !important; font-size: 14px !important; padding: 12px 20px !important; }
.elementor-nav-menu--dropdown .elementor-sub-item:hover { background: rgba(180,84,42,0.06) !important; color: #B4542A !important; }
.elementor-nav-menu--toggle .elementor-menu-toggle { color: #2D2D2D !important; }

/* Desktop: force flex row */
@media (min-width: 1025px) {
  .elementor-nav-menu--main { display: flex !important; flex-wrap: nowrap !important; }
}

@media (max-width: 1024px) {
  .elementor-nav-menu--main { display: none !important; }
}

/* ---- Footer ---- */
.jdm-footer { color: #fff !important; }
.jdm-footer a { color: rgba(255,255,255,0.8) !important; }
.jdm-footer a:hover { color: #D4A373 !important; }
.jdm-footer .elementor-heading-title { color: #fff !important; }
.jdm-footer .elementor-widget-text-editor { color: rgba(255,255,255,0.7) !important; }
.jdm-footer .elementor-widget-text-editor p { color: rgba(255,255,255,0.7) !important; }
.jdm-footer .elementor-widget-text-editor a { color: rgba(255,255,255,0.8) !important; }
.jdm-footer .elementor-widget-text-editor a:hover { color: #D4A373 !important; }

/* ---- Cards ---- */
.jdm-posts-grid .elementor-post { background: #fff !important; border-radius: 16px !important; overflow: hidden !important; border: 1px solid rgba(198,93,59,0.15) !important; box-shadow: 0 4px 20px rgba(44,74,59,0.06) !important; transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important; }
.jdm-posts-grid .elementor-post:hover { transform: translateY(-6px) !important; box-shadow: 0 12px 32px rgba(44,74,59,0.10) !important; }
.jdm-posts-grid .elementor-post__thumbnail img { border-radius: 16px 16px 0 0 !important; }

/* ---- Sidebar ---- */
.jdm-sidebar { position: sticky; top: 100px; align-self: start; }
@media (max-width: 1024px) { .jdm-sidebar { position: relative; top: 0; width: 100% !important; margin-top: 40px; } }

/* ---- Author Box ---- */
.jdm-author-box { display: flex; gap: 24px; background: #fff; border-radius: 16px; padding: 32px; border: 1px solid rgba(198,93,59,0.15); box-shadow: 0 4px 20px rgba(44,74,59,0.06); margin: 40px 0; }
.jdm-author-box .avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(180,84,42,0.15); }

/* ---- Breadcrumb ---- */
.jdm-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: #6B6B6B; }
.jdm-breadcrumb a { color: #B4542A; text-decoration: none; }
.jdm-breadcrumb a:hover { text-decoration: underline; }
.jdm-breadcrumb-sep { color: rgba(107,107,107,0.4); }

/* ---- TOC ---- */
.jdm-toc { background: #F5EDE0; border-radius: 16px; padding: 24px; margin: 32px 0; }
.jdm-toc-title { font-family: "Cormorant Garamond", serif; font-size: 20px; font-weight: 600; margin-bottom: 16px; color: #2C4A3B; }
.jdm-toc ul { list-style: none; padding: 0; margin: 0; }
.jdm-toc li { margin: 8px 0; }
.jdm-toc a { color: #2D2D2D; text-decoration: none; font-size: 15px; }
.jdm-toc a:hover { color: #B4542A; }

/* ---- FAQ Accordion ---- */
.jdm-faq-accordion { margin: 24px 0; }
.jdm-faq-item { border-bottom: 1px solid rgba(198,93,59,0.15); }
.jdm-faq-question { padding: 20px 0; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.jdm-faq-question::after { content: "+"; font-size: 20px; color: #B4542A; }
.jdm-faq-item.open .jdm-faq-question::after { content: "\2212"; }
.jdm-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; padding: 0 0; color: #6B6B6B; line-height: 1.6; }
.jdm-faq-item.open .jdm-faq-answer { max-height: 500px; padding: 0 0 20px; }

/* ---- Category Pills ---- */
.jdm-category-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.jdm-category-pills a { padding: 8px 18px; border-radius: 50px; background: #fff; border: 1px solid rgba(198,93,59,0.2); color: #2D2D2D; font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.2s ease; }
.jdm-category-pills a:hover, .jdm-category-pills a.active { background: #B4542A; color: #fff; border-color: #B4542A; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(180,84,42,0.25); }

/* ---- EZ Table of Contents Override ---- */
#ez-toc-container { background: #F5EDE0 !important; border-radius: 16px !important; padding: 24px !important; border: none !important; box-shadow: none !important; margin: 32px 0 !important; }
#ez-toc-container .ez-toc-title { font-family: "Cormorant Garamond", serif !important; font-size: 20px !important; font-weight: 600 !important; color: #2C4A3B !important; margin-bottom: 16px !important; cursor: default !important; }
#ez-toc-container .ez-toc-title-toggle { display: none !important; }
#ez-toc-container ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
#ez-toc-container ul li { margin: 8px 0 !important; padding: 0 !important; }
#ez-toc-container ul li a { color: #2D2D2D !important; font-family: "Inter", sans-serif !important; font-size: 15px !important; text-decoration: none !important; transition: color 0.2s ease !important; }
#ez-toc-container ul li a:hover { color: #B4542A !important; }
#ez-toc-container ul ul { margin-left: 16px !important; margin-top: 4px !important; }

/* ---- Newsletter ---- */
.jdm-newsletter-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.jdm-newsletter-form input[type="email"] { flex: 1; padding: 14px 20px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); color: #fff; font-size: 15px; outline: none; }
.jdm-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.jdm-newsletter-form button { padding: 14px 28px; border-radius: 50px; background: #B4542A; color: #fff; border: none; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.jdm-newsletter-form button:hover { background: #9A4221; box-shadow: 0 4px 12px rgba(180,84,42,0.35); }

/* ---- Category Cards ---- */
.jdm-category-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1024px) { .jdm-category-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .jdm-category-cards { grid-template-columns: 1fr; } }
.jdm-category-card { background: #FAF7F2; border-radius: 16px; padding: 32px; text-decoration: none; color: #2D2D2D; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); border: 1px solid rgba(198,93,59,0.1); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.jdm-category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(44,74,59,0.08); border-color: rgba(198,93,59,0.25); }
.jdm-category-icon { width: 48px; height: 48px; background: rgba(180,84,42,0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #B4542A; font-size: 20px; }
.jdm-category-title { font-family: Cormorant Garamond, serif; font-size: 22px; font-weight: 600; margin: 0; color: #2D2D2D; }
.jdm-category-count { font-size: 14px; color: #6B6B6B; margin: 0; line-height: 1.5; }

/* ---- Pagination ---- */
.jdm-pagination { margin-top: 40px; text-align: center; }
.jdm-pagination ul { display: inline-flex; list-style: none; padding: 0; margin: 0; gap: 8px; }
.jdm-pagination ul li { margin: 0; }
.jdm-pagination ul li a, .jdm-pagination ul li span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 50px; background: #fff; border: 1px solid rgba(198,93,59,0.15); color: #2D2D2D; font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.2s ease; }
.jdm-pagination ul li a:hover { background: #B4542A; color: #fff; border-color: #B4542A; }
.jdm-pagination ul li span.current { background: #B4542A; color: #fff; border-color: #B4542A; }

/* ---- Responsive fixes ---- */
@media (max-width: 1024px) {
  .jdm-header-root .elementor-nav-menu--main { display: none !important; }
}
@media (max-width: 768px) {
  body { font-size: 16px !important; }
}
