/*
Theme Name: MMS-Bee
Theme URI: https://mms-bee.com/
Author: MMS-Bee Team
Author URI: https://mms-bee.com/
Description: Modern, responsive, tool-based adult lifestyle, romance, and entertainment WordPress theme for mms-bee.com.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: mms-bee-com
*/

/* 1. CSS Variables & Reset */
:root {
  --primary: #e91e63;
  --primary-hover: #d81557;
  --primary-glow: rgba(233, 30, 99, 0.25);
  --primary-light: #fce7f3;
  --accent: #ff2a7a;
  --accent-soft: #fff1f5;
  --secondary: #111827;
  
  --bg-page: #ffffff;
  --bg-alt: #faf5f7;
  --bg-card: #ffffff;
  --bg-badge: #fce7f3;
  
  --text-main: #1f2937;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --badge-text: #db2777;
  
  --border: #f3e8ee;
  --border-input: #e5e7eb;
  --border-focus: #e91e63;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(233,30,99,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-glow: 0 8px 25px rgba(233,30,99,0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --container-max: 1240px;
}

body.dark-mode {
  --bg-page: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --bg-badge: #831843;
  
  --text-main: #f1f5f9;
  --text-dark: #ffffff;
  --text-muted: #94a3b8;
  --badge-text: #fbcfe8;
  
  --border: #334155;
  --border-input: #475569;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* 2. Custom Buttons & Selects (MANDATORY) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background-color: var(--bg-card);
  color: var(--primary);
  border: 1.5px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--primary);
  background-color: var(--accent-soft);
  color: var(--primary-hover);
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  min-height: 38px;
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
  min-height: 50px;
}

/* Custom Select Dropdowns (<select>) */
select, .custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e91e63'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 10px 40px 10px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-main);
  min-height: 44px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

input[type="text"], input[type="email"], input[type="search"], input[type="number"], textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--text-main);
  min-height: 44px;
  transition: all 0.2s ease;
}

/* 3. Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

body.dark-mode .site-header {
  background-color: rgba(15, 23, 42, 0.95);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 1.5rem;
}

.site-branding .logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.site-branding .logo-heart {
  color: var(--primary);
  font-size: 1.4rem;
}

.site-branding .logo-highlight {
  color: var(--primary);
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
}

.nav-menu > li > a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0.25rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a,
.nav-menu > li > a:hover {
  color: var(--primary);
}

.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 4. Hero Section */
.hero-section {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #fffbfd 100%);
  position: relative;
  overflow: hidden;
}

body.dark-mode .hero-section {
  background: linear-gradient(180deg, #0f172a 0%, #171f38 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-badge);
  color: var(--badge-text);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(233, 30, 99, 0.15);
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.gradient-text {
  color: var(--primary);
  background: linear-gradient(135deg, #e91e63 0%, #ff2a7a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.hero-search {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 18px;
  max-width: 520px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.hero-search input {
  border: none;
  background: transparent;
  min-height: 42px;
  font-size: 0.95rem;
  box-shadow: none;
  flex: 1;
}

.hero-search input:focus {
  box-shadow: none;
}

.search-submit-btn {
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.search-submit-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-blob-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle at 60% 40%, #ffe4ec 0%, #fff0f5 70%);
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  z-index: 1;
}

body.dark-mode .hero-blob-bg {
  background: radial-gradient(circle at 60% 40%, #831843 0%, #1e293b 70%);
}

.hero-main-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-card-float {
  position: absolute;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  animation: floatSlow 4s ease-in-out infinite;
}

body.dark-mode .hero-card-float {
  background-color: rgba(30, 41, 59, 0.95);
}

.hero-card-float.top-right {
  top: 15px;
  right: -10px;
}

.hero-card-float.bottom-left {
  bottom: 25px;
  left: -15px;
  animation-delay: 2s;
}

.score-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.score-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.score-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #10b981;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* 5. Stats Banner */
.stats-banner {
  margin: 2.5rem 0 3.5rem;
}

.stats-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-content strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
}

.stat-content span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 6. Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pink-bar {
  width: 4.5px;
  height: 28px;
  background-color: var(--primary);
  border-radius: 4px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0;
}

.view-all-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.view-all-link:hover {
  transform: translateX(4px);
}

/* 7. Popular Tools Grid */
.tools-section {
  padding: 2.5rem 0 3.5rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tool-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.tool-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fce7f3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.tool-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  min-height: 2.8rem;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tool-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.tool-card .btn {
  width: 100%;
}

/* 8. Why Choose MMS-Bee Section */
.why-choose-section {
  padding: 3.5rem 0;
  background-color: var(--accent-soft);
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  text-align: center;
}

body.dark-mode .why-choose-section {
  background-color: var(--bg-alt);
}

.why-choose-section h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  padding: 0 1.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 220px;
}

/* 9. Latest Articles Grid */
.articles-section {
  padding: 2.5rem 0 4rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.article-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-img-wrap img {
  transform: scale(1.05);
}

.article-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.category-badge {
  background-color: var(--bg-badge);
  color: var(--badge-text);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.read-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  min-height: 2.7rem;
}

.article-card h3 a {
  color: var(--text-dark);
}

.article-card h3 a:hover {
  color: var(--primary);
}

.article-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.articles-cta {
  text-align: center;
}

/* 10. Footer */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 2px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0 1.25rem;
  max-width: 280px;
}

.social-icons {
  display: flex;
  gap: 0.6rem;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-newsletter p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.newsletter-form-inline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 11. Breadcrumbs Component (REQUIRED) */
.breadcrumbs {
  margin: 1.5rem 0 2rem;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.breadcrumb-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background-color: var(--bg-alt);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-weight: 500;
}

.breadcrumb-item a:hover {
  background-color: var(--accent-soft);
  color: var(--primary);
}

.breadcrumb-item.current .current-text {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  background-color: var(--bg-badge);
  color: var(--badge-text);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.breadcrumb-separator {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* 12. Interactive Tools Templates Styling */
.interactive-tool-box {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0 3.5rem;
}

.tool-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.tool-result-panel {
  display: none;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #ffffff 100%);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 2rem;
  text-align: center;
}

.tool-result-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 13. Mobile Responsive Breakpoints (MANDATORY) */

/* Tablet Landscape (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-visual-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand, .footer-newsletter {
    grid-column: span 3;
  }
}

/* Tablet Portrait (<= 768px) */
@media (max-width: 768px) {
  .header-actions .btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
  }
  .primary-nav.mobile-open {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .tool-form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand, .footer-newsletter {
    grid-column: span 2;
  }
  .footer-bottom-container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .stats-card-grid {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand, .footer-newsletter {
    grid-column: span 1;
  }
  .hero-card-float {
    position: static;
    margin-top: 1rem;
    width: 100%;
  }
}

/* 14. Comment Form Custom UI Base */
.comment-respond {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.comment-form-custom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.comment-form-custom label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.comment-form-custom input[type="text"],
.comment-form-custom input[type="email"],
.comment-form-custom input[type="url"],
.comment-form-custom textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.comment-form-custom input[type="text"]:focus,
.comment-form-custom input[type="email"]:focus,
.comment-form-custom input[type="url"]:focus,
.comment-form-custom textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.comment-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.comment-author .fn {
  font-weight: 700;
  color: var(--text-dark);
}

.comment-metadata a {
  color: var(--text-light);
  font-size: 0.8rem;
}

.reply a {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.75rem;
}

.reply a:hover {
  text-decoration: underline;
}
