/* CSS Variables & Theme Definitions */
:root {
  --primary-color: #3e2723; /* Deep Espresso Brown */
  --secondary-color: #d7ccc8; /* Warm Beige / Sand */
  --accent-color: #e65100; /* Rich Amber / Coffee Roast Orange */
  --accent-hover: #bf360c;
  --bg-light: #fdfbf7; /* Soft Creamy White */
  --bg-white: #ffffff;
  --bg-card: #f5ece1;
  --text-main: #2d241e; /* Soft Dark Brown/Black */
  --text-muted: #5d4037;
  --border-color: #efebe9;
  --border-dark: #d7ccc8;
  --success-color: #2e7d32;
  --warning-color: #ef6c00;
  --danger-color: #c62828;
  
  --font-serif: 'Lora', 'Georgia', serif;
  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --container-max: 1140px;
  --container-article: 760px;
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: 2rem; }
h3 { font-size: 1.35rem; margin-top: 1.5rem; }

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Common Layout Wrapper */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(62, 39, 35, 0.04);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-link {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -2px;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

nav a:hover, nav a.active {
  color: var(--accent-color);
}

.admin-badge {
  background-color: var(--primary-color);
  color: var(--bg-light);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}

/* Hero Section */
/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--bg-light);
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 50% 50%, #4e342e 0%, #1e110e 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(62,39,35,0) 0%, rgba(62,39,35,0.4) 100%);
  pointer-events: none;
}

.hero h1 {
  color: var(--bg-white);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.35rem;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  opacity: 0.95;
  font-family: var(--font-sans);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--bg-white);
  padding: 0.95rem 2.25rem;
  border-radius: 30px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 1;
}

.hero-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(230, 81, 0, 0.6);
  color: var(--bg-white);
}

/* Category Grid */
.section-title-wrap {
  text-align: center;
  margin: 4.5rem 0 2.5rem 0;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  font-size: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.75rem auto 0 auto;
  font-size: 1.05rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4.5rem;
}

.category-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s;
  box-shadow: 0 4px 20px rgba(62, 39, 35, 0.02);
  cursor: pointer;
}

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

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(62, 39, 35, 0.12);
  border-color: var(--secondary-color);
}

.category-card:hover .category-icon {
  animation: iconBounce 0.6s ease infinite;
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Post Cards & Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.25rem;
  margin-bottom: 4rem;
}

.post-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(62, 39, 35, 0.02);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(62, 39, 35, 0.1);
}

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.post-category {
  color: var(--accent-color);
}

.post-card h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.post-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
}

.post-author {
  font-weight: 700;
}

/* Home Sidebar / Operator Callout Section */
.home-bottom-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .home-bottom-layout {
    grid-template-columns: 1fr;
  }
}

.home-bio-widget {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-dark);
}

.bio-avatar {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.bio-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.bio-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.bio-text {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.editorial-principles {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

.editorial-principles h3 {
  margin-bottom: 1rem;
}

.principles-list {
  list-style: none;
  padding-left: 0;
}

.principles-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.principles-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
}

/* Article Page Layout */
.article-container {
  max-width: var(--container-article);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs span {
  margin: 0 6px;
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.article-toc {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.article-toc h4 {
  margin-bottom: 0.75rem;
}

.article-toc ul {
  margin-bottom: 0;
  list-style: none;
  padding-left: 0;
}

.article-toc li {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.article-content {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.7;
}

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

/* Specific Block Elements */
.takeaway-box {
  background-color: #efebe9;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.takeaway-box h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.takeaway-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.pitfalls-box {
  background-color: #fbe9e7;
  border-left: 4px solid var(--danger-color);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.pitfalls-box h4 {
  color: var(--danger-color);
  margin-bottom: 0.5rem;
}

.pitfalls-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.checklist-box {
  background-color: #e8f5e9;
  border-left: 4px solid var(--success-color);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.checklist-box h4 {
  color: var(--success-color);
  margin-bottom: 0.5rem;
}

.checklist-box ul {
  margin-bottom: 0;
  list-style: none;
  padding-left: 0;
}

.checklist-box li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.checklist-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* FAQ Accordion */
.faq-section {
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.faq-question {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Author Box inside Article Page */
.author-bio-footer {
  display: flex;
  gap: 1.5rem;
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3.5rem;
  align-items: center;
  border: 1px solid var(--border-dark);
}

.author-bio-footer img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-footer-text h4 {
  margin-bottom: 0.25rem;
}

.author-footer-text .author-link {
  font-weight: 700;
  border-bottom: 1px solid var(--primary-color);
}

.author-footer-text p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Author Page Hub UI */
.author-header-section {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.author-avatar-large {
  width: 110px;
  height: 110px;
  background-color: var(--primary-color);
  color: var(--bg-light);
  font-size: 2.5rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.author-header-section h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.author-subtitle-large {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
}

.author-admin-btn-wrapper {
  margin-top: 1.5rem;
}

.admin-action-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--bg-white);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(230, 81, 0, 0.2);
}

.admin-action-btn:hover {
  background-color: var(--accent-hover);
  color: var(--bg-white);
}

/* Related Posts Block */
.related-posts {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 8px;
}

.related-card h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Standard Footer */
footer {
  background-color: var(--primary-color);
  color: var(--bg-light);
  padding: 3.5rem 0 2rem 0;
  margin-top: auto;
  border-top: 4px solid var(--accent-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--bg-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-col p {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

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

.footer-col a {
  color: var(--bg-light);
  opacity: 0.8;
  font-size: 0.85rem;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Contact Form Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin: 2.5rem 0;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background-color: var(--bg-light);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
}

.btn-submit {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: var(--accent-color);
}

.contact-info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 2rem;
}

.contact-info-card h4 {
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.info-label {
  font-weight: 700;
  color: var(--primary-color);
  min-width: 60px;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-feedback.success {
  background-color: #e8f5e9;
  color: var(--success-color);
  display: block;
}

/* WordPress-style Admin Portal UI */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f1f1f1; /* Light gray WordPress color */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #32373c;
}

.admin-sidebar {
  width: 200px;
  background-color: #23282d; /* Classic WP Charcoal */
  color: #eee;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.admin-logo-section {
  padding: 18px 16px;
  background-color: #1d2327;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-logo-section a {
  color: #fff;
}

.admin-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-sidebar-menu li {
  margin: 0;
}

.admin-sidebar-menu a {
  display: block;
  padding: 12px 16px;
  color: #c3c4c7;
  font-size: 14px;
  border-left: 4px solid transparent;
  transition: all 0.15s;
}

.admin-sidebar-menu a:hover,
.admin-sidebar-menu a.active {
  background-color: #1d2327;
  color: #72aee6; /* WP Blue hover */
  border-left-color: #72aee6;
}

.admin-content-area {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
}

.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.admin-warning-banner {
  background-color: #fff8e1;
  border-left: 4px solid #ffb300;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #5d4037;
}

.admin-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.admin-summary-card {
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.admin-summary-card .num {
  font-size: 2.25rem;
  font-weight: 400;
  color: #1d2327;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.admin-summary-card .label {
  font-size: 0.85rem;
  color: #646970;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.admin-panel-card {
  background: #fff;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
  margin-bottom: 2rem;
}

.admin-panel-card h3 {
  border-bottom: 1px solid #ccd0d4;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

/* WP Data Table */
.wp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 14px;
  text-align: left;
}

.wp-table th {
  background: #f6f7f7;
  border-bottom: 2px solid #ccd0d4;
  padding: 10px;
  font-weight: 600;
}

.wp-table td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f1;
  vertical-align: middle;
}

.wp-table tr:hover td {
  background: #f6f7f7;
}

.badge-published {
  background: #e7f4e4;
  color: #2e7d32;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-draft {
  background: #f0f0f1;
  color: #646970;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
}

.action-links a {
  margin-right: 10px;
  font-size: 13px;
}

.action-links a.delete-act {
  color: #b32d2e;
}

.action-links a.delete-act:hover {
  color: #d63638;
}

/* WP forms */
.admin-form-group {
  margin-bottom: 1.5rem;
}

.admin-form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 0.5rem;
}

.admin-form-control {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
}

.admin-form-control:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: 2px solid transparent;
}

.button-primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
  text-decoration: none;
  text-shadow: none;
  font-size: 13px;
  line-height: 2.15;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  border-radius: 3px;
  white-space: nowrap;
  box-sizing: border-box;
  font-weight: 600;
}

.button-primary:hover {
  background: #135e96;
  border-color: #135e96;
  color: #fff;
}

.button-secondary {
  background: #f6f7f7;
  border-color: #2271b1;
  color: #2271b1;
  font-size: 13px;
  line-height: 2.15;
  min-height: 30px;
  padding: 0 10px;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  border-radius: 3px;
  box-sizing: border-box;
  font-weight: 600;
}

.button-secondary:hover {
  background: #f0f0f1;
  border-color: #135e96;
  color: #135e96;
}

/* Auth box login page */
.admin-login-wrapper {
  max-width: 380px;
  margin: 8% auto 0 auto;
  background: white;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.admin-login-wrapper h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Category lists */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 10px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* ==========================================
   MOBILE & RESPONSIVE LAYOUT OVERRIDES (Security & Aesthetics)
   ========================================== */
@media (max-width: 768px) {
  /* Global Adjustments */
  body {
    font-size: 0.95rem;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }

  /* Header & Navigation Bar Mobile Tuning */
    .header-container { height: auto !important; }
  .header-container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    text-align: center;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 15px;
  }
  
  /* Hero & Columns Section Mobile Grid Tuning */
  .hero-container h1 {
    font-size: 2rem;
  }
  
  .hero-container p {
    font-size: 1rem;
  }

  .featured-grid,
  .columns-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Article Details Rendering Tuning */
  .article-title {
    font-size: 1.85rem !important;
  }
  
  .article-subtitle {
    font-size: 1.05rem !important;
  }

  .author-bio-footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .author-bio-footer img {
    margin: 0 auto;
  }

  /* WordPress-style Admin Dashboard Mobile Tuning */
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .admin-sidebar-menu {
    display: flex;
    flex-wrap: wrap;
  }

  .admin-sidebar-menu li {
    flex: 1 1 auto;
  }

  .admin-sidebar-menu a {
    padding: 10px 12px;
    font-size: 12px;
    text-align: center;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .admin-sidebar-menu a:hover,
  .admin-sidebar-menu a.active {
    border-left-color: transparent;
    border-bottom-color: #72aee6;
  }

  .admin-content-area {
    padding: 1rem;
  }

  .admin-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 1rem;
  }

  .admin-card-row {
    grid-template-columns: 1fr !important;
  }

  /* Enable Horizontal Scroll for Tables on Tiny Viewports */
  .wp-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
  }

  .wp-table {
    min-width: 500px; /* Force minimum width to prevent vertical text squishing */
  }
}

/* Interactive Brew Calculator Styles */
.brew-calc-section {
  margin: 5rem auto;
  max-width: 800px;
}

.brew-calc-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 20px 40px rgba(62, 39, 35, 0.04);
  position: relative;
  overflow: hidden;
}

.brew-calc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.brew-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .brew-calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.brew-calc-input-group {
  margin-bottom: 1.5rem;
}

.brew-calc-label {
  display: block;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.brew-calc-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-dark);
  background-color: var(--bg-light);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.3s;
}

.brew-calc-input:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--bg-white);
  box-shadow: 0 0 10px rgba(230, 81, 0, 0.1);
}

.brew-calc-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e2723' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
}

.brew-calc-results {
  background-color: var(--bg-light);
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px dashed var(--border-dark);
}

.brew-calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(62, 39, 35, 0.05);
}

.brew-calc-result-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.brew-calc-result-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-color);
}

.brew-calc-steps {
  margin-top: 1.5rem;
}

.brew-calc-step-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.brew-calc-step-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--primary-color);
  color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
}

