/*
Theme Name: Accord Supplies
Description: Single blog post layout converted from static HTML to a dynamic WordPress theme.
Version: 1.0
Author: Your Name
Text Domain: accord-supplies
*/

:root {
  --primary-color: #00aeee;
  --primary-hover: #0088bc;
  --text-dark: #2c3e50;
  --text-muted: #666666;
  --bg-light: #f8f9fa;
  --border-color: #e5e9f0;
  --card-shadow: 0 4px 15px rgba(0,0,0,0.05);
  --font-family: 'Open Sans', Arial, sans-serif;
}

/* Page Layout Wrap */
/*.container {*/
/*  max-width: 1200px;*/
/*  margin: 30px auto;*/
/*  padding: 0 20px;*/
/*}*/

/* Breadcrumbs */
.breadcrumb-area {
  background: #fff;
  padding: 15px 25px;
  border-radius: 6px;
  margin-bottom: 25px;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--card-shadow);
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb-area a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Two-Column Grid */
.single-blog-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 992px) {
  .single-blog-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Main Article Post Content */
article.post-card {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

/*.entry-header h1.entry-title {*/
/*  font-size: 28px;*/
/*  color: var(--text-dark);*/
/*  line-height: 1.3;*/
/*  margin-bottom: 15px;*/
/*  font-weight: 700;*/
/*}*/

.entry-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 25px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.entry-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.entry-meta a {
  color: inherit;
  text-decoration: none;
}
.entry-meta a:hover {
  color: var(--primary-color);
}

.featured-image-wrap {
  margin-bottom: 25px;
}
.featured-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.entry-content {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
}

/*.entry-content p {*/
/*  margin-bottom: 20px;*/
/*}*/

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/*.entry-content h2 {*/
/*  font-size: 22px;*/
/*  color: var(--text-dark);*/
/*  margin: 35px 0 15px 0;*/
/*  padding-bottom: 8px;*/
/*  border-bottom: 2px solid var(--bg-light);*/
  scroll-margin-top: 90px; /* offset for sticky header */
/*  position: relative;*/
/*}*/
/*.entry-content h2::after {*/
/*  content: '';*/
/*  position: absolute;*/
/*  bottom: -2px;*/
/*  left: 0;*/
/*  width: 50px;*/
/*  height: 2px;*/
/*  background: var(--primary-color);*/
/*}*/

/*.entry-content h3 {*/
/*  font-size: 18px;*/
/*  color: #34495e;*/
/*  margin: 25px 0 12px 0;*/
/*  scroll-margin-top: 90px;*/
/*}*/

.entry-content ul, .entry-content ol {
  margin: 0 0 20px 25px;
}

.entry-content li {
  margin-bottom: 8px;
}

/* Post Tags */
.entry-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
}
.entry-tags a {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  margin: 0 6px 6px 0;
  font-size: 13px;
}
.entry-tags a:hover {
  background: var(--primary-color);
  color: #fff;
}

/* FAQ Accordion Section */
.faq-section {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 2px dashed var(--border-color);
}
.faq-section h2 {
  margin-top: 0 !important;
}
.faq-accordion {
  margin-top: 20px;
}
.faq-item {
  background: #fdfdfd;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-item:hover {
  border-color: var(--primary-color);
}
.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: #fafafa;
}
.faq-question .icon {
  font-size: 18px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  font-weight: bold;
}
.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 20px;
  background: #fff;
  font-size: 15px;
  color: #555;
}
.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 16px 20px;
  transition: max-height 0.5s ease-in-out, padding 0.3s ease;
  border-top: 1px solid var(--border-color);
}

/* Comments */
.comments-area {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 2px dashed var(--border-color);
}
.comments-area h2 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.comment-list {
  list-style: none;
  margin-bottom: 30px;
}
.comment-list .comment {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 15px;
  font-family: var(--font-family);
}
.comment-respond textarea {
  min-height: 120px;
}
.comment-respond .form-submit input {
  width: auto;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
}

/* Sidebar Container */
aside.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: sticky;
  top: 20px;
}

.post-widget {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  border-top: 3px solid var(--primary-color);
}

.post-widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Table of Contents Styling */
.toc-list {
  list-style: none;
  font-size: 14px;
}
.toc-list li {
  margin-bottom: 10px;
}
.toc-list li.toc-h3 {
  padding-left: 18px;
  font-size: 13px;
}
.toc-list a {
  color: #555;
  text-decoration: none;
  display: block;
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}
.toc-list a:hover {
  color: var(--primary-color);
  background: #f4faff;
}
.toc-list a.active {
  color: var(--primary-color);
  font-weight: 600;
  border-left-color: var(--primary-color);
  background: #e6f7ff;
  padding-left: 10px;
}

/* Recent Posts Styling */
.recent-posts-list {
  list-style: none;
}
.recent-post-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-color);
}
.recent-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.recent-post-thumb {
  width: 70px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}
.recent-post-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.recent-post-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.recent-post-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.recent-post-title a:hover {
  color: var(--primary-color);
}
.recent-post-date {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}


/******************************************/

/* Two-Column Grid */
.blog-listing-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 992px) {
  .blog-listing-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Blog Post Grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

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

.blog-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.blog-card-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #eee;
  display: block;
}
.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-category {
  display: inline-block;
  align-self: flex-start;
  background: #e6f7ff;
  color: var(--primary-hover);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-decoration: none;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover {
  color: var(--primary-color);
}
.blog-card-excerpt {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
  flex: 1;
}
.blog-card-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}
.blog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.read-more-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.read-more-link:hover {
  color: var(--primary-hover);
}

/* Featured post (first card, spans full width) */
.blog-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.blog-card.featured .blog-card-thumb {
  width: 42%;
  height: auto;
  flex-shrink: 0;
}
.blog-card.featured .blog-card-body {
  justify-content: center;
}
.blog-card.featured .blog-card-title {
  font-size: 22px;
}
@media (max-width: 700px) {
  .blog-card.featured {
    flex-direction: column;
  }
  .blog-card.featured .blog-card-thumb {
    width: 100%;
    height: 190px;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 35px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 6px;
  background: #fff;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
}
.pagination a:hover {
  color: #fff;
  background: var(--primary-color);
}
.pagination span.current {
  color: #fff;
  background: var(--primary-color);
}
.pagination .dots {
  box-shadow: none;
  background: transparent;
}

/* No posts */
.no-posts {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 40px;
  text-align: center;
  grid-column: 1 / -1;
  color: var(--text-muted);
}

/* Sidebar Container */
aside.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: sticky;
  top: 20px;
}

/*.widget {*/
/*  background: #fff;*/
/*  padding: 24px;*/
/*  border-radius: 8px;*/
/*  box-shadow: var(--card-shadow);*/
/*  border-top: 3px solid var(--primary-color);*/
/*}*/

/*.widget-title {*/
/*  font-size: 18px;*/
/*  font-weight: 700;*/
/*  color: var(--text-dark);*/
/*  margin-bottom: 18px;*/
/*  padding-bottom: 10px;*/
/*  border-bottom: 1px solid var(--border-color);*/
/*  display: flex;*/
/*  align-items: center;*/
/*  gap: 8px;*/
/*}*/

/* Search Widget */
.widget-search .search-bar {
  width: 100%;
}
.widget-search .search-bar input {
  flex: 1;
  width: 100%;
}

/* Categories Widget */
.categories-list {
  list-style: none;
  font-size: 14px;
}
.categories-list li {
  margin-bottom: 4px;
}
.categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 1px dashed var(--border-color);
  transition: color 0.2s ease;
}
.categories-list li:last-child a {
  border-bottom: none;
}
.categories-list a:hover {
  color: var(--primary-color);
}
.categories-list .count {
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Recent Posts Styling */
.recent-posts-list {
  list-style: none;
}
.recent-post-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-color);
}
.recent-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.recent-post-thumb {
  width: 70px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}
.recent-post-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.recent-post-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.recent-post-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.recent-post-title a:hover {
  color: var(--primary-color);
}
.recent-post-date {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* Tags Widget */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags-list a {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.tags-list a:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Newsletter Widget */
.widget-newsletter p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}
.widget-newsletter input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 14px;
  font-family: inherit;
}
.widget-newsletter button {
  width: 100%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.widget-newsletter button:hover {
  background: var(--primary-hover);
}
.widget-newsletter .newsletter-message {
  font-size: 13px;
  margin-top: 8px;
}