/*
Theme Name: SynoMeanings
Theme URI: https://synomeanings.com/
Author: SynoMeanings
Author URI: https://synomeanings.com/
Description: A clean, fast WordPress theme for SynoMeanings, a vocabulary resource for writers, students and English learners. Pink, flat design with a hero search, category cards, latest guides, a popular words wall, help steps and FAQs. Design and templates only; pages and posts are imported separately.
Version: 1.2.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: synomeanings
*/
*{margin:0;padding:0;box-sizing:border-box}
  body{font-family:Arial,Helvetica,sans-serif;background:#ffffff;color:#222222;line-height:1.6}
  a{color:#be185d;text-decoration:none}
  a:hover{text-decoration:underline}
  .wrap{max-width:1080px;margin:0 auto;padding:0 20px}
  header{border-bottom:1px solid #e5e7eb;background:#fff;position:sticky;top:0;z-index:20}
  .head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;flex-wrap:wrap}
  .logo{font-size:24px;font-weight:800;color:#be185d;letter-spacing:-.5px}
  .logo b{color:#111827}
  nav{display:flex;gap:18px;flex-wrap:wrap;font-size:15px;font-weight:700}
  nav a{color:#374151}
  nav a:hover{color:#be185d}
  .hero{background:#fdf2f8;padding:48px 0 40px;border-bottom:1px solid #fbcfe8;text-align:center}
  .hero h1{font-size:38px;line-height:1.2;max-width:760px;margin:0 auto 12px;letter-spacing:-.5px}
  .hero p{font-size:17px;color:#4b5563;max-width:680px;margin:0 auto}
  .search-box{display:flex;max-width:640px;margin:24px auto 0;background:#fff;border:2px solid #be185d;border-radius:8px;overflow:hidden}
  .search-box input{flex:1;border:0;outline:0;font-size:16px;padding:13px 16px;min-width:0}
  .search-box button{border:0;background:#be185d;color:#fff;font-weight:800;font-size:15px;padding:13px 22px;cursor:pointer}
  .chips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:14px}
  .chips button{border:1px solid #f9a8d4;background:#fff;color:#be185d;border-radius:6px;padding:6px 12px;cursor:pointer;font-size:14px;font-weight:700}
  #searchResult{display:none;max-width:640px;margin:16px auto 0;background:#fff;border:1px solid #fbcfe8;border-radius:8px;padding:18px 20px;text-align:left}
  #searchResult h3{font-size:21px;margin-bottom:6px}
  .tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
  .tag{background:#fdf2f8;border:1px solid #fbcfe8;color:#9d174d;border-radius:6px;padding:5px 11px;font-size:14px;font-weight:700}
  section{padding:36px 0}
  h2{font-size:27px;margin-bottom:6px;letter-spacing:-.3px}
  .sub{color:#6b7280;margin-bottom:20px;max-width:720px}
  .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
  .card{border:1px solid #e5e7eb;border-radius:8px;background:#fff;overflow:hidden}
  .card-top{height:6px;background:#ec4899}
  .card-body{padding:18px}
  .card-body h3{font-size:18px;margin-bottom:6px}
  .card-body p{color:#6b7280;font-size:15px}
  .zone-grid{display:flex;gap:20px;overflow-x:auto;overflow-y:hidden;padding-bottom:14px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
  .zone-grid::-webkit-scrollbar{height:12px}
  .zone-grid::-webkit-scrollbar-track{background:#fce7f3;border-radius:8px}
  .zone-grid::-webkit-scrollbar-thumb{background:#be185d;border-radius:8px}
  .dropdown{position:relative;display:inline-block}
  .dropdown-menu{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,.12);min-width:220px;max-height:260px;overflow-y:auto;z-index:30}
  .dropdown-menu::-webkit-scrollbar{width:8px}
  .dropdown-menu::-webkit-scrollbar-thumb{background:#ec4899;border-radius:8px}
  .dropdown:hover .dropdown-menu,.dropdown:focus-within .dropdown-menu{display:block}
  .dropdown-menu a{display:block;padding:10px 14px;border-bottom:1px solid #f3f4f6;color:#374151;font-size:15px}
  .dropdown-menu a:last-child{border-bottom:0}
  .zone{position:relative;overflow:hidden;border-radius:20px;padding:24px 22px;box-shadow:0 4px 16px rgba(0,0,0,.06);flex:0 0 320px;max-width:340px;scroll-snap-align:start;min-width:0}
  .zone-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;position:relative}
  .swap{background:rgba(255,255,255,.88);color:#2e1065;font-size:13px;font-weight:800;padding:6px 10px;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,.08);transform:rotate(-2deg);white-space:normal;text-align:right;max-width:58%;line-height:1.3}
  .zone .num{font-size:15px;font-weight:800;letter-spacing:2px;color:#7c6a9e;position:relative}
  .zone h3{font-size:26px;color:#2e1065;margin:10px 0 4px;position:relative}
  .zone .zsub{color:#5b5b7a;font-size:15px;margin-bottom:18px;position:relative}
  .pillrow{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 10px;background:rgba(255,255,255,.68);border-radius:10px;padding:11px 14px;margin-bottom:10px;cursor:pointer;position:relative;min-width:0}
  .pillrow b{color:#2e1065;font-size:15px;min-width:0;overflow-wrap:anywhere}
  .pillrow span{color:#6d6d8a;font-size:14px;white-space:normal;overflow-wrap:anywhere;text-align:right;flex:1 1 auto;min-width:0}
  .scroll-btns{display:flex;gap:8px;margin-bottom:12px}
  .scroll-btns button{border:1px solid #f9a8d4;background:#fff;color:#be185d;border-radius:6px;padding:7px 14px;font-weight:800;cursor:pointer}
  .pillrow:hover{background:#fff}
  .zone-yellow{background:#fdeeb8}
  .zone-lavender{background:#e9dcfb}
  .zone-peach{background:#ffe4c8}
  .zone-pink{background:#fbcfe8}
  .zone-mint{background:#d1f2dd}
  .zone-blue{background:#dbeafe}
  .word-card h3{font-size:22px;color:#be185d}
  .guide-list{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:stretch}
  .guide-list > a{display:block;height:100%}
  .guide-row{display:block;height:100%;background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;cursor:pointer}
  .guide-word{background:#fdf2f8;color:#be185d;display:flex;flex-direction:column;justify-content:center;padding:18px}
  .guide-word b{font-size:22px;line-height:1.2}
  .guide-word span{font-size:13px;color:#9d174d;font-weight:700;margin-top:4px}
  .guide-img{width:100%;height:220px;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;padding:0;overflow:hidden}
  .guide-img img{width:100% !important;height:100% !important;object-fit:cover;display:block;max-width:none}
  .guide-img b{font-size:64px;line-height:1}
  .guide-img span{font-size:15px;font-weight:800;margin-top:8px;overflow-wrap:anywhere}
  .guide-detail{padding:20px 22px 22px}
  .guide-detail h3{font-size:22px;line-height:1.3;color:#111827;margin-bottom:8px}
  .cat-label{font-size:13px;letter-spacing:1.5px;text-transform:uppercase;color:#be185d;font-weight:800;margin-bottom:10px}
  .guide-detail p{color:#6b7280;font-size:15px}
  .guide-detail .tags{margin-top:10px}
  .wall{display:flex;flex-wrap:wrap;gap:12px;align-items:baseline}
  .wall a{font-weight:800;color:#be185d;background:#fdf2f8;border:1px solid #fbcfe8;border-radius:10px;padding:8px 14px}
  .wall a:hover{background:#be185d;color:#fff;text-decoration:none}
  .wall .w-big{font-size:26px}
  .wall .w-mid{font-size:20px}
  .wall .w-small{font-size:16px}
  .popular{display:flex;gap:10px;flex-wrap:wrap}
  .popular a{background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:9px 16px;font-weight:700;color:#374151}
  .popular a:hover{border-color:#be185d;color:#be185d;text-decoration:none}
  .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
  .step-num{width:36px;height:36px;border-radius:50%;background:#be185d;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;margin-bottom:10px}
  details{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px 18px;margin-bottom:10px}
  details summary{font-weight:700;cursor:pointer;font-size:16px}
  details p{color:#6b7280;margin-top:8px}
  footer{background:#831843;color:#fbcfe8;padding:32px 0;margin-top:8px}
  .foot{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
  .foot h4{color:#fff;margin-bottom:10px}
  .foot a{display:block;color:#fbcfe8;margin-bottom:7px;font-size:15px}
  .foot p{font-size:14px;color:#f9a8d4}
  .note{font-size:13px;color:#6b7280;margin-top:12px;text-align:center}
  @media(max-width:760px){
    .hero h1{font-size:30px}
    .grid,.steps,.foot,.zone-grid{grid-template-columns:1fr}
    .guide-row{display:block}
    .guide-img{width:100%;height:180px}
    .single-hero-img{height:240px !important}
    .zone{flex-basis:280px}
    nav{font-size:14px;gap:12px}
    .search-box{flex-direction:column}
    .search-box button{width:100%}
  }
/* WordPress templates */
.post-content{font-size:17px;line-height:1.7;color:#374151}
.post-content h2{font-size:24px;margin:24px 0 10px;color:#111827}
.post-content ul{margin:12px 0 12px 22px}
.post-content li{margin-bottom:6px}
.post-content p{margin-bottom:14px}
.entry-meta{color:#6b7280;font-size:14px;margin-bottom:16px}
.blog-list{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:stretch}
.blog-list > a{display:block;height:100%}
.pagination-wrap{margin-top:28px;text-align:center}
.pagination-wrap .nav-links a,.pagination-wrap .nav-links span{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;margin:0 6px;border:1.5px solid #fbcfe8;border-radius:50%;background:#fff;color:#be185d;font-weight:700;font-size:19px;text-decoration:none}
.pagination-wrap .nav-links a:hover{border-color:#be185d;background:#fdf2f8;text-decoration:none}
.pagination-wrap .nav-links span.current{background:#be185d;border-color:#be185d;color:#fff}
.pagination-wrap .nav-links span.dots{color:#312e81}
.blog-row{border:1px solid #e5e7eb;border-radius:12px;padding:20px;background:#fff}
.blog-row h2{font-size:22px;margin-bottom:6px}
.blog-row p{color:#6b7280}
.related{margin-top:32px;border-top:1px solid #e5e7eb;padding-top:20px}
.related a{display:inline-block;margin:6px 8px 0 0;background:#fdf2f8;border:1px solid #fbcfe8;color:#9d174d;border-radius:6px;padding:6px 12px;font-weight:700}
nav > ul{list-style:none;display:flex;gap:18px;flex-wrap:wrap;font-size:15px;font-weight:700;margin:0;padding:0}
nav ul li{position:relative}
nav ul li a{color:#374151}
nav ul li a:hover{color:#be185d;text-decoration:none}
/* Categories dropdown: one category per line, never two side by side */
nav ul ul{display:none !important;position:absolute;top:100%;left:0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,.12);width:260px;max-height:175px !important;overflow-y:scroll !important;overflow-x:hidden;z-index:30;list-style:none;margin:0;padding:0;flex-direction:column !important;flex-wrap:nowrap !important;scrollbar-width:thin;scrollbar-color:#be185d #fce7f3}
nav ul ul::-webkit-scrollbar{width:12px}
nav ul ul::-webkit-scrollbar-track{background:#fce7f3;border-radius:8px}
nav ul ul::-webkit-scrollbar-thumb{background:#be185d;border-radius:8px}
nav ul li > span{color:#374151;cursor:pointer}
nav ul li:hover > span{color:#be185d}
nav ul li:hover > ul,nav ul li:focus-within > ul{display:block !important}
nav ul ul li{display:block !important;width:100% !important;flex:none !important;float:none !important;clear:both !important}
nav ul ul li a{display:block !important;width:100% !important;box-sizing:border-box;padding:12px 16px;border-bottom:1px solid #f3f4f6;font-size:15px;white-space:normal}
nav ul ul li:last-child a{border-bottom:0}
/* If any category was nested under another category in the menu, force it below, never beside it */
nav ul ul ul{position:static !important;display:block !important;width:100% !important;box-shadow:none !important;border:0 !important;border-radius:0 !important;max-height:none !important;overflow:visible !important}
nav ul ul ul li a{padding-left:28px !important}
/* Blog and single article restyle */
.blog-card{box-shadow:0 4px 16px rgba(0,0,0,.06);transition:transform .15s ease,box-shadow .15s ease}
.blog-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.10)}
.blog-card .guide-detail h3{font-size:22px}
.single-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:28px 30px;box-shadow:0 4px 16px rgba(0,0,0,.05)}
.single-hero-img{width:100%;height:360px;border-radius:16px;overflow:hidden;margin-bottom:20px}
.single-hero-img img{width:100% !important;height:100% !important;object-fit:cover;display:block;max-width:none}
.post-content{font-size:17px;line-height:1.8}
.post-content > p:first-of-type{font-size:19px;background:#fdf2f8;border-left:4px solid #be185d;border-radius:8px;padding:16px 18px}
.post-content h2{font-size:25px;margin:32px 0 12px;padding-left:12px;border-left:4px solid #be185d;color:#111827}
.post-content h3{font-size:20px;margin:24px 0 10px;color:#9d174d}
.post-content table{width:100% !important;border-collapse:collapse;margin:20px 0;font-size:15px;table-layout:auto}
.post-content th{background:#be185d;color:#fff;text-align:left;padding:12px 14px;font-weight:800;border:1px solid #be185d;white-space:nowrap}
.post-content td{border:1px solid #fbcfe8;padding:11px 14px;vertical-align:top;line-height:1.6}
.post-content td:first-child{white-space:nowrap;font-weight:700}
.post-content tr:nth-child(even) td{background:#fdf2f8}
.post-content ul{margin:14px 0 14px 22px}
.post-content li{margin-bottom:8px}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:14px}
.related-card{border:1px solid #e5e7eb;border-radius:12px;background:#fff;overflow:hidden}
.related-img{height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;padding:14px;overflow:hidden}
.related-img img{width:100%;height:100%;object-fit:cover}
.related-img b{font-size:56px;line-height:1}
.related-img span{font-size:15px;font-weight:800;margin-top:6px;overflow-wrap:anywhere}
.related-body{padding:18px}
.related-body h4{font-size:17px;margin-bottom:8px}
.related-body p{color:#6b7280;font-size:15px}
@media(max-width:900px){
  .guide-list,.blog-list{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .guide-list,.blog-list,.related-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .blog-card .guide-img{width:100%;min-height:140px}
  .single-card{padding:20px}
  .related-grid{grid-template-columns:1fr}
  .post-content table{font-size:14px}
}
