/*
Theme Name: KavoshRank
Theme URI: https://kavoshrank.ir
Author: KavoshRank Team
Author URI: https://kavoshrank.ir
Description: AI-powered SEO & Content Generation Theme for WordPress & WooCommerce with complete RTL & dark glassmorphism design.
Version: 2.1.0
Text Domain: kavoshrank
*/
:root {
  --bg-color: #f8fafc;
  --card-bg-color: #ffffff;
  --text-color: #181F26;
  --text-muted: #64748b;
  --accent-color: #00C582;
  --accent-hover: #00b074;
  --accent-secondary: #00E599;
  --border-color: #e2e8f0;
  --post-cat-bg: #ecfdf5;
  --post-cat-color: #008a5b;
  --hero-btn-bg: #00C582;
  --hero-btn-hover: #00b074;
  --text-color-light: #334155;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

html.dark,
body.dark,
[data-theme="dark"] {
  --bg-color: #0b0f17;
  --card-bg-color: #131b2e;
  --text-color: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-color: #00C582;
  --accent-hover: #00E599;
  --accent-secondary: #00b074;
  --border-color: #1e293b;
  --post-cat-bg: rgba(0, 197, 130, 0.12);
  --post-cat-color: #00E599;
  --hero-btn-bg: #00C582;
  --hero-btn-hover: #00E599;
  --text-color-light: #cbd5e1;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  html:not(.light) {
    --bg-color: #0b0f17;
    --card-bg-color: #131b2e;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-color: #00C582;
    --accent-hover: #00E599;
    --accent-secondary: #00b074;
    --border-color: #1e293b;
    --post-cat-bg: rgba(0, 197, 130, 0.12);
    --post-cat-color: #00E599;
    --hero-btn-bg: #00C582;
    --hero-btn-hover: #00E599;
    --text-color-light: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  }
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  text-align: right;
}
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover {
  color: var(--accent-hover);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.site-header {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--card-bg-color);
  padding: 1rem 0;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.site-header .site-branding {
  display: flex;
  align-items: center;
}
.site-header .site-title {
  font-size: 1.6rem;
  font-weight: 900;
}
.site-header .site-title a {
  color: var(--text-color);
  background: linear-gradient(135deg, var(--accent-color), #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-header .site-title a:hover {
  opacity: 0.9;
}
.site-header .main-navigation {
  flex-grow: 1;
}
.site-header .main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.site-header .main-navigation ul a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.site-header .main-navigation ul a:hover,
.site-header .main-navigation ul a.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}
.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-header .header-actions .header-datetime {
  display: none;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--bg-color);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}
@media (min-width: 768px) {
  .site-header .header-actions .header-datetime {
    display: inline-flex;
    gap: 0.4rem;
  }
}
.site-header .header-actions .header-datetime svg.header-icon {
  color: var(--accent-color);
  flex-shrink: 0;
}
.site-header .header-actions .header-cta .cta-button {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(79, 138, 247, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.site-header .header-actions .header-cta .cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}
.site-header .header-actions .header-cta .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(79, 138, 247, 0.35);
  color: #ffffff;
}
.site-header .header-actions .header-cta .cta-button:hover::before {
  opacity: 1;
}
.site-header .header-actions .header-cta .cta-button:active {
  transform: translateY(0);
}
.site-main {
  margin-bottom: 4rem;
}
.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 992px) {
  .content-layout {
    grid-template-columns: 2.5fr 1fr;
  }
}
.content-layout .main-content {
  min-width: 0;
}
.post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}
.post-meta a {
  color: var(--accent-secondary);
}
.post-meta a:hover {
  color: var(--accent-color);
}
.post-meta .post-category {
  background-color: var(--post-cat-bg);
  color: var(--post-cat-color);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
}
.post-meta .post-category a {
  color: inherit;
}
.site-title {
  display: inline-flex;
}
.site-title a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.site-title img,
.brand-logo {
  max-width: 120px;
  height: auto;
  background-color: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: inline-block;
  object-fit: contain;
}
.hero-section {
  margin-bottom: 3rem;
}
.hero-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}
@media (min-width: 768px) {
  .hero-card {
    grid-template-columns: 1.3fr 1fr;
  }
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.hero-card:hover .hero-thumbnail img {
  transform: scale(1.03);
}
.hero-card .hero-thumbnail {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  height: 100%;
}
.hero-card .hero-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-card .hero-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  right: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-card .hero-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-card .hero-content .hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.hero-card .hero-content .hero-title a {
  color: var(--text-color);
}
.hero-card .hero-content .hero-title a:hover {
  color: var(--accent-color);
}
.hero-card .hero-content .hero-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.hero-card .hero-content .hero-excerpt p {
  margin: 0;
}
.hero-card .hero-content .read-more {
  align-self: flex-start;
  background: var(--hero-btn-bg);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 6px -1px rgba(79, 138, 247, 0.2);
  transition: all 0.2s ease;
}
.hero-card .hero-content .read-more:hover {
  background: var(--hero-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 12px -3px rgba(79, 138, 247, 0.3);
}
.magazine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .magazine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.post-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}
.post-card .post-thumbnail {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
}
.post-card .post-thumbnail a {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
.post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card .post-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.post-card .post-card-content .post-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}
.post-card .post-card-content .post-title a {
  color: var(--text-color);
}
.post-card .post-card-content .post-title a:hover {
  color: var(--accent-color);
}
.post-card .post-card-content .post-excerpt {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}
.post-card .post-card-content .post-excerpt p {
  margin: 0;
}
.post-card .post-card-content .read-more-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
}
.post-card .post-card-content .read-more-link:hover {
  color: var(--accent-hover);
  transform: translateX(3px);
}
.widget-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.widget-area .widget {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.widget-area .widget .widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
  color: var(--text-color);
  position: relative;
}
.widget-area .widget ul {
  list-style: none;
}
.widget-area .widget ul li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
}
.widget-area .widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.widget-area .widget ul li:first-child {
  padding-top: 0;
}
.widget-area .widget ul li a {
  color: var(--text-color);
  font-weight: 500;
}
.widget-area .widget ul li a:hover {
  color: var(--accent-color);
}
.widget-area .widget ul li .post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.widget-area .widget.widget_categories ul li {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.widget-area .widget.widget_categories ul li a {
  order: 1;
}
.widget-area .widget.widget_categories ul li .post_count,
.widget-area .widget.widget_categories ul li {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.widget-area .widget.widget_recent_entries_with_thumb ul.recent-posts-with-thumb li.recent-post-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.85rem !important;
  padding: 0.75rem 0 !important;
  border-bottom: 1px dashed var(--border-color) !important;
}
.widget-area .widget.widget_recent_entries_with_thumb ul.recent-posts-with-thumb li.recent-post-item:first-child {
  padding-top: 0 !important;
}
.widget-area .widget.widget_recent_entries_with_thumb ul.recent-posts-with-thumb li.recent-post-item:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.widget-area .widget.widget_recent_entries_with_thumb ul.recent-posts-with-thumb li.recent-post-item .post-thumb-link {
  flex-shrink: 0;
  width: 65px;
  height: 65px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.widget-area .widget.widget_recent_entries_with_thumb ul.recent-posts-with-thumb li.recent-post-item .post-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.widget-area .widget.widget_recent_entries_with_thumb ul.recent-posts-with-thumb li.recent-post-item .recent-post-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  background-color: var(--border-color);
}
.widget-area .widget.widget_recent_entries_with_thumb ul.recent-posts-with-thumb li.recent-post-item .recent-post-thumb-placeholder svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}
.widget-area .widget.widget_recent_entries_with_thumb ul.recent-posts-with-thumb li.recent-post-item .recent-post-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  min-width: 0;
}
.widget-area .widget.widget_recent_entries_with_thumb ul.recent-posts-with-thumb li.recent-post-item .recent-post-info .post-title-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.45;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget-area .widget.widget_recent_entries_with_thumb ul.recent-posts-with-thumb li.recent-post-item .recent-post-info .post-title-link:hover {
  color: var(--accent-color);
}
.widget-area .widget.widget_recent_entries_with_thumb ul.recent-posts-with-thumb li.recent-post-item .recent-post-info .post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list li.recent-comment-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.85rem !important;
  padding: 0.75rem 0 !important;
  border-bottom: 1px dashed var(--border-color) !important;
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list li.recent-comment-item:first-child {
  padding-top: 0 !important;
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list li.recent-comment-item:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list li.recent-comment-item .comment-author-avatar {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list li.recent-comment-item .comment-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list li.recent-comment-item .comment-content-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list li.recent-comment-item .comment-content-info .comment-meta-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list li.recent-comment-item .comment-content-info .comment-meta-text .comment-author-name {
  font-weight: 700;
  color: var(--text-color);
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list li.recent-comment-item .comment-content-info .comment-meta-text .comment-on-text {
  margin: 0 0.15rem;
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list li.recent-comment-item .comment-content-info .comment-meta-text .comment-post-link {
  font-weight: 600;
  color: var(--accent-secondary);
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list li.recent-comment-item .comment-content-info .comment-meta-text .comment-post-link:hover {
  color: var(--accent-color);
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list li.recent-comment-item .comment-content-info .comment-snippet {
  font-size: 0.85rem;
  color: var(--text-color-light);
  line-height: 1.4;
  margin: 0;
  background-color: var(--bg-color);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border-right: 3px solid var(--accent-color);
  margin-top: 0.25rem;
}
.widget-area .widget.widget_recent_comments ul.recent-comments-list .no-comments-yet {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem 0;
}
.search-form {
  display: flex;
  width: 100%;
}
.search-form label {
  flex-grow: 1;
}
.search-form .search-field {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0 6px 6px 0;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  background-color: var(--bg-color);
  color: var(--text-color);
}
.search-form .search-field:focus {
  border-color: var(--accent-color);
}
.search-form .search-submit {
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 0 1rem;
  border-radius: 6px 0 0 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
  font-size: 0.85rem;
}
.search-form .search-submit:hover {
  background-color: var(--accent-hover);
}
.single-post {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .single-post {
    padding: 2.5rem;
  }
}
.single-post .entry-header {
  margin-bottom: 2rem;
}
.single-post .entry-header .entry-title {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.4;
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  .single-post .entry-header .entry-title {
    font-size: 2.4rem;
  }
}
.single-post .post-thumbnail {
  margin-bottom: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.single-post .post-thumbnail img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-color-light);
}
.entry-content p {
  margin-bottom: 1.75rem;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--text-color);
}
.entry-content h2 {
  font-size: 1.6rem;
}
.entry-content h3 {
  font-size: 1.35rem;
}
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.75rem;
  padding-right: 2rem;
  padding-left: 0;
}
.entry-content ul li,
.entry-content ol li {
  margin-bottom: 0.625rem;
}
.entry-content blockquote {
  border-right: 4px solid var(--accent-color);
  border-left: none;
  background-color: var(--bg-color);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 8px 0 0 8px;
}
.entry-content blockquote p:last-child {
  margin-bottom: 0;
}
.posts-navigation {
  margin: 3rem 0;
}
.posts-navigation .nav-links {
  display: flex;
  justify-content: space-between;
}
.posts-navigation .nav-links a {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  color: var(--text-color);
}
.posts-navigation .nav-links a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-1px);
}
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--card-bg-color);
  padding: 2.5rem 0;
  margin-top: 5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.01);
}
.site-footer .footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer .footer-info p:first-child {
  font-weight: 600;
  color: var(--text-color);
}
.comments-area {
  margin-top: 3rem;
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .comments-area {
    padding: 2.5rem;
  }
}
.comments-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
  position: relative;
}
.comments-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 60px;
  height: 2px;
  background-color: var(--accent-color);
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
}
.comment-list .comment {
  margin-bottom: 1.5rem;
  padding: 0;
}
.comment-list .comment-body {
  position: relative;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 10px;
  transition: border-color 0.25s ease;
}
.comment-list .comment-body:hover {
  border-color: var(--accent-color);
}
.comment-list .comment-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.comment-list .comment-meta .comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.comment-list .comment-meta .comment-author .avatar {
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background-color: var(--card-bg-color);
  object-fit: cover;
}
.comment-list .comment-meta .comment-author .fn {
  font-weight: 700;
  color: var(--text-color);
  font-style: normal;
}
.comment-list .comment-meta .comment-metadata {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.comment-list .comment-meta .comment-metadata a {
  color: inherit;
}
.comment-list .comment-meta .comment-metadata a:hover {
  color: var(--accent-color);
}
.comment-list .comment-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-color-light);
  margin-bottom: 1rem;
}
.comment-list .comment-content p:last-child {
  margin-bottom: 0;
}
.comment-list .comment-reply {
  text-align: left;
}
.comment-list .comment-reply .comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.comment-list .comment-reply .comment-reply-link:hover {
  border-color: var(--accent-color);
  color: #ffffff;
  background-color: var(--accent-color);
}
.comment-list .children {
  list-style: none;
  padding-right: 1.5rem;
  padding-left: 0;
  margin: 1.5rem 0 0 0;
  border-right: 2px solid var(--border-color);
}
@media (min-width: 768px) {
  .comment-list .children {
    padding-right: 2.5rem;
  }
}
.comment-list .bypostauthor > .comment-body {
  background-color: var(--card-bg-color);
  border: 2px solid var(--accent-color);
}
.comment-respond {
  margin-top: 3rem;
}
.comment-reply-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}
.comment-reply-title #cancel-comment-reply-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-color);
  margin-right: 1rem;
  border-bottom: 1px dashed var(--accent-color);
}
.comment-reply-title #cancel-comment-reply-link:hover {
  color: var(--accent-hover);
}
.comment-form-styled {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.comment-form-styled p {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}
.comment-form-styled label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-color);
}
.comment-form-styled label .required {
  color: var(--accent-color);
}
.comment-form-styled input[type="text"],
.comment-form-styled input[type="email"],
.comment-form-styled input[type="url"],
.comment-form-styled textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}
.comment-form-styled input[type="text"]:focus,
.comment-form-styled input[type="email"]:focus,
.comment-form-styled input[type="url"]:focus,
.comment-form-styled textarea:focus {
  border-color: var(--accent-color);
  background-color: var(--card-bg-color);
  box-shadow: 0 0 0 3px rgba(79, 138, 247, 0.15);
}
@media (min-width: 768px) {
  .comment-form-styled .comment-form-user-info {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
.comment-form-styled .comment-form-cookies-consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.75rem !important;
  margin-top: 0.5rem !important;
}
.comment-form-styled .comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 0.3rem;
  accent-color: var(--accent-color);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}
.comment-form-styled .comment-form-cookies-consent label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}
.comment-form-styled .form-submit {
  margin-top: 1rem !important;
  align-items: flex-start;
}
.comment-form-styled .submit-btn {
  background: var(--hero-btn-bg);
  color: #ffffff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(79, 138, 247, 0.2);
  transition: all 0.2s ease;
}
.comment-form-styled .submit-btn:hover {
  background: var(--hero-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 12px -3px rgba(79, 138, 247, 0.3);
}
.no-comments {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1.5rem 0;
  border-top: 1px dashed var(--border-color);
}
.comment-navigation {
  margin-bottom: 2rem;
}
.comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}
.comment-navigation .nav-links a {
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  color: var(--text-color);
  background-color: var(--bg-color);
}
.comment-navigation .nav-links a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Enamad Trust Seal Badge */
.enamad img {
  max-width: 80px;
  height: auto;
  display: block;
}
