/*
Theme Name: MuraliniPress
Theme URI: 
Author: MuraliniPress
Author URI: 
Description: A modern, responsive WordPress theme with advanced theme options, homepage customization, and dark mode support.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muralinipress
Domain Path: /languages
Tags: responsive, mobile-first, seo-friendly, customizable, dark-mode

All files, unless otherwise stated, are released under the GPL v2 license.
*/

/* ============================================================
   ROOT VARIABLES & RESET
   ============================================================ */

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-text-color: #ffffff;
  --secondary-color: #7c3aed;
  --neutral-900: #111827;
  --neutral-800: #1f2937;
  --neutral-700: #374151;
  --neutral-600: #4b5563;
  --neutral-500: #6b7280;
  --neutral-400: #9ca3af;
  --neutral-300: #d1d5db;
  --neutral-200: #e5e7eb;
  --neutral-100: #f3f4f6;
  --neutral-50: #f9fafb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  --line-height-tight: 1.4;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
}

/* ============================================================
   PRELOADER
   ============================================================ */

.page-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--neutral-50);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

html[data-theme="dark"] .page-preloader {
  background-color: var(--neutral-900);
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--neutral-200);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

html[data-theme="dark"] .preloader-spinner {
  border-color: var(--neutral-700);
  border-top-color: var(--primary-color);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

html[data-theme="dark"] {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --text-primary: #f3f4f6;
  --text-secondary: #d1d5db;
  --border-color: #374151;
}

html[data-theme="light"],
html:not([data-theme]) {
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --text-primary: #111827;
  --text-secondary: #4b5563;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: 1rem;
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-text-color);
  text-decoration: underline;
}

strong, .bold {
  font-weight: 600;
}

em, .italic {
  font-style: italic;
}

code, pre {
  font-family: var(--font-family-mono);
  background-color: var(--bg-secondary);
  border-radius: 0.375rem;
}

code {
  padding: 0.125rem 0.375rem;
  color: var(--error-color);
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-lg {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  min-height: calc(100vh - 200px);
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.col-12 {
  grid-column: span 12;
}

.col-6 {
  grid-column: span 12;
}

.col-4 {
  grid-column: span 12;
}

.col-3 {
  grid-column: span 12;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--primary-color);
  color: var(--primary-text-color);
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #6d28d9;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--primary-text-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ============================================================
   FORMS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-error {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-success {
  color: var(--success-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.no-margin {
  margin: 0 !important;
}

.no-padding {
  padding: 0 !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--text-secondary);
}

.text-success {
  color: var(--success-color);
}

.text-warning {
  color: var(--warning-color);
}

.text-error {
  color: var(--error-color);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.site-logo {
  /*max-width: 50px;*/
  height: auto;
}

.site-title {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
}

.site-title a {
  color: var(--text-primary);
}

.site-title a:hover {
  text-decoration: none;
}

.site-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.main-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation ul a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.main-navigation ul a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  min-width: 200px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

.main-navigation ul li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation ul ul a {
  padding: 0.75rem 1.25rem;
  border-bottom: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-primary);
  padding: 0.5rem;
}

/* ============================================================
   HEADER LAYOUT: CENTER LOGO
   ============================================================ */

body.header-centered .site-header-inner {
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

body.header-centered .site-branding {
  order: 1;
  width: 100%;
  justify-content: center;
  margin-bottom: 0.75rem;
}

body.header-centered .main-navigation {
  order: 2;
  width: 100%;
  justify-content: center;
}

body.header-centered .theme-toggle {
  order: 3;
}

/* ============================================================
   HEADER LAYOUT: TOP BAR + HEADER
   ============================================================ */

.site-topbar {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.site-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.site-topbar-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.site-topbar .social-links {
  margin: 0;
  gap: 0.5rem;
}

.site-topbar .social-links a {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.75rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-content.footer-cols-1 {
  grid-template-columns: 1fr;
}

.footer-content.footer-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.footer-content.footer-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.footer-content.footer-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.footer-widget {
  display: flex;
  flex-direction: column;
}

.footer-widget h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
}

.footer-widget ul li {
  margin-bottom: 0.5rem;
}

.footer-widget ul a {
  color: var(--text-secondary);
}

.footer-widget ul a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 0 0;
}

.social-links a {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--primary-text-color);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.site-footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.site-footer-copyright {
  margin: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */

.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--primary-text-color);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.back-to-top-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(0);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================================
   CONTENT
   ============================================================ */

.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.entry-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.entry-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-content {
  font-size: 1.0625rem;
  line-height: var(--line-height-relaxed);
  margin-bottom: 2rem;
}

.entry-content > * + * {
  margin-top: 1.5rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.entry-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: 2rem;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.post-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: var(--primary-color);
  color: var(--primary-text-color);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
}

.post-tag:hover {
  background-color: var(--primary-dark);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
}

.widget {
  margin-bottom: 2rem;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget ul li {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.widget ul a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

/* ============================================================
   POSTS & ARCHIVES
   ============================================================ */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.post-card {
  background-color: var(--bg-secondary);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--primary-text-color);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.post-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.post-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  flex: 1;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: auto;
}

.post-card-link {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.post-card-link:hover {
  gap: 0.5rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  text-decoration: none;
  transition: var(--transition);
  min-width: 2.5rem;
  text-align: center;
}

.pagination a {
  color: var(--primary-color);
}

.pagination a:hover {
  background-color: var(--primary-color);
  color: var(--primary-text-color);
  border-color: var(--primary-color);
}

.pagination .current {
  background-color: var(--primary-color);
  color: var(--primary-text-color);
  border-color: var(--primary-color);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */

.services {
  padding: 4rem 0;
}

.services-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.breadcrumbs {
  margin-bottom: 2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.breadcrumbs.breadcrumbs-boxed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.625rem 1rem;
}

.breadcrumbs.breadcrumbs-full-width {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0.625rem 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.breadcrumbs.breadcrumbs-full-width .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumbs a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--neutral-400);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================
   COMMENTS
   ============================================================ */

.comments-area {
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 0.375rem;
}

.comment-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.comment-author {
  font-weight: 600;
}

.comment-text {
  margin: 1rem 0;
  line-height: var(--line-height-relaxed);
}

/* ============================================================
   404 PAGE
   ============================================================ */

.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-404 .page-title {
  font-size: 6rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.error-404 p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE DESIGN - TABLET (768px)
   ============================================================ */

@media (max-width: 768px) {
  :root {
    font-size: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .col-6 {
    grid-column: span 6;
  }

  .col-4 {
    grid-column: span 6;
  }

  .col-3 {
    grid-column: span 6;
  }

  .site-header-inner {
    flex-wrap: wrap;
  }

  .site-topbar-inner {
    justify-content: center;
  }

  .main-navigation ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
  }

  .main-navigation.active ul {
    max-height: 500px;
  }

  .main-navigation ul a {
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-navigation ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: #f3f4f6;
  }

  html[data-theme="dark"] .main-navigation ul ul {
    background-color: #111827;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-title {
    font-size: 2rem;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE DESIGN - MOBILE (480px)
   ============================================================ */

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .container,
  .container-lg,
  .container-sm {
    padding: 0 1rem;
  }

  .col-6,
  .col-4,
  .col-3 {
    grid-column: span 12;
  }

  .site-branding {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .entry-title {
    font-size: 1.5rem;
  }

  .post-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .comments-area,
  .pagination,
  .main-navigation,
  .theme-toggle {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  p {
    orphans: 2;
    widows: 2;
  }
}
