/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Hello Elementor Child Theme with custom blog archive and single blog templates
Author: Your Name
Author URI: https://yourwebsite.com
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ==========================================================================
   BLOG GENERAL STYLES & VARIABLE TOKENS
   ========================================================================== */
:root {
  --blog-forest: #2C3E2D;
  --blog-moss: #6B7C5E;
  --blog-bark: #5C4A32;
  --blog-cream: #F5F0E8;
  --blog-warm: #EEEAE2;
  --blog-sand: #C8B89A;
  --blog-ink: #1A1A1A;
  --blog-white: #FFFFFF;
  --blog-shadow: 0 4px 20px rgba(44, 62, 45, 0.05);
  --blog-shadow-hover: 0 15px 35px rgba(44, 62, 45, 0.12);
  --blog-font-display: 'Playfair Display', Georgia, serif;
  --blog-font-body: 'Inter', sans-serif;
  --blog-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-archive-wrapper,
.single-blog-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: var(--blog-font-body);
  color: var(--blog-ink);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   BLOG ARCHIVE HEADER & TABS
   ========================================================================== */
.blog-archive-header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-archive-header h1 {
  font-family: var(--blog-font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem) !important;
  font-weight: 700;
  color: var(--blog-forest);
  margin-bottom: 15px;
  line-height: 1.15;
}

.blog-archive-header .header-divider {
  width: 70px;
  height: 3px;
  background: var(--blog-sand);
  border: none;
  margin: 25px auto;
  border-radius: 2px;
}

.archive-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem) !important;
  color: var(--blog-moss);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-category-tabs {
  margin-bottom: 50px;
  border-bottom: 1px solid var(--blog-warm);
  padding-bottom: 25px;
}

.category-tabs-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .blog-category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    margin-bottom: 35px;
  }
  .blog-category-tabs::-webkit-scrollbar {
    height: 4px;
  }
  .blog-category-tabs::-webkit-scrollbar-track {
    background: transparent;
  }
  .blog-category-tabs::-webkit-scrollbar-thumb {
    background: var(--blog-sand);
    border-radius: 2px;
  }
  .category-tabs-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 0 5px 5px 5px;
  }
  .category-label {
    flex-shrink: 0;
  }
  .tab-btn {
    flex-shrink: 0;
  }
}


.category-label {
  font-family: var(--blog-font-body);
  font-weight: 600;
  font-size: 0.9rem !important;
  color: var(--blog-bark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 8px;
}

.tab-btn {
  background: transparent;
  color: var(--blog-forest);
  border: 1px solid var(--blog-sand);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--blog-font-body);
  font-size: 0.9rem !important;
  font-weight: 500;
  transition: var(--blog-transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--blog-forest);
  color: var(--blog-white);
  border-color: var(--blog-forest);
}

/* ==========================================================================
   BLOG GRID & ARTICLE CARDS
   ========================================================================== */
#blog-posts-container {
  min-height: 400px;
  position: relative;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px 30px;
}

@media (max-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.blog-card {
  background: var(--blog-white);
  border: 1px solid var(--blog-warm);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--blog-shadow);
  transition: var(--blog-transition);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--blog-shadow-hover);
  border-color: rgba(107, 124, 94, 0.2);
}

.blog-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--blog-cream);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-category {
  display: inline-block;
  font-size: 0.75rem !important;
  font-weight: 600;
  color: var(--blog-moss);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-category:hover {
  color: var(--blog-forest);
}

.blog-card-title {
  font-family: var(--blog-font-display);
  font-size: 1.45rem !important;
  font-weight: 700;
  color: var(--blog-forest);
  line-height: 1.35;
  margin-bottom: 14px;
  transition: color 0.2s ease;
}

.blog-card-title:hover {
  color: var(--blog-moss);
}

.blog-card-body a {
  text-decoration: none;
}

.blog-card-excerpt {
  font-size: 0.95rem !important;
  line-height: 1.6;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--blog-warm);
  padding-top: 18px;
  margin-top: auto;
  font-size: 0.8rem !important;
  color: #777;
}

.blog-card-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-meta-left svg {
  width: 14px;
  height: 14px;
  stroke: var(--blog-moss);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meta-dot {
  color: var(--blog-sand);
}

.blog-card-readmore {
  font-weight: 700;
  font-size: 0.8rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blog-forest);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-readmore:hover {
  color: var(--blog-moss);
}

.blog-no-posts,
.blog-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: var(--blog-cream);
  border-radius: 12px;
  border: 1px dashed var(--blog-sand);
}

.blog-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(44, 62, 45, 0.1);
  border-top-color: var(--blog-forest);
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
}

.blog-pagination .page-btn {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--blog-sand);
  background: var(--blog-white);
  color: var(--blog-forest);
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--blog-font-body);
  font-size: 0.9rem !important;
  font-weight: 600;
  transition: var(--blog-transition);
}

.blog-pagination .page-btn.active,
.blog-pagination .page-btn:not(:disabled):hover {
  background: var(--blog-forest);
  color: var(--blog-white);
  border-color: var(--blog-forest);
}

.blog-pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--blog-warm);
  color: #aaa;
}

.blog-pagination .page-btn.page-prev,
.blog-pagination .page-btn.page-next {
  width: auto;
  padding: 0 20px;
  border-radius: 30px;
}

/* ==========================================================================
   SINGLE POST LAYOUT & COLUMNS
   ========================================================================== */
.single-blog-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 60px;
}

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

.single-blog-main {
  min-width: 0;
}

/* Breadcrumb Navigation */
.single-breadcrumb {
  font-size: 0.85rem !important;
  color: var(--blog-moss);
  margin-bottom: 25px;
  font-weight: 500;
}

.single-breadcrumb a {
  color: var(--blog-moss);
  text-decoration: none;
  transition: color 0.2s ease;
}

.single-breadcrumb a:hover {
  color: var(--blog-forest);
}

.single-breadcrumb span {
  margin: 0 8px;
  opacity: 0.6;
}

.single-blog-category {
  display: inline-block;
  font-size: 0.8rem !important;
  font-weight: 700;
  color: var(--blog-white);
  background: var(--blog-moss);
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin-bottom: 20px;
  transition: background-color 0.2s ease;
}

.single-blog-category:hover {
  background: var(--blog-forest);
}

.single-blog-title {
  font-family: var(--blog-font-display);
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  font-weight: 700;
  color: var(--blog-forest);
  line-height: 1.2;
  margin-bottom: 25px;
}

/* Metabar Details */
.single-blog-metabar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 40px;
  border-top: 1px solid var(--blog-warm);
  border-bottom: 1px solid var(--blog-warm);
  padding: 15px 0;
  flex-wrap: wrap;
}

.single-blog-metabar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.single-blog-metabar svg {
  width: 15px;
  height: 15px;
  stroke: var(--blog-moss);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meta-sep {
  color: var(--blog-sand);
}

/* Featured Image block */
.single-featured-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 45px;
  aspect-ratio: 16/9;
  box-shadow: var(--blog-shadow);
}

.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main content styling */
.single-blog-content {
  font-size: 1.1rem !important;
  line-height: 1.85;
  color: #333;
}

.single-blog-content p {
  margin-bottom: 26px;
}

.single-blog-content h2,
.single-blog-content h3,
.single-blog-content h4 {
  font-family: var(--blog-font-display);
  color: var(--blog-forest);
  font-weight: 700;
  margin-top: 45px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.single-blog-content h2 { font-size: 1.85rem; }
.single-blog-content h3 { font-size: 1.5rem; }
.single-blog-content h4 { font-size: 1.25rem; }

.single-blog-content blockquote {
  border-left: 4px solid var(--blog-moss);
  padding-left: 20px;
  margin: 35px 0;
  font-style: italic;
  color: var(--blog-forest);
  font-size: 1.2rem !important;
}

/* Share icons bar */
.single-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--blog-warm);
  border-bottom: 1px solid var(--blog-warm);
  padding: 22px 0;
  margin-top: 55px;
}

.share-label {
  font-weight: 700;
  color: var(--blog-forest);
  font-size: 0.9rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 8px;
}

.share-link {
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--blog-cream);
  color: var(--blog-forest);
  transition: var(--blog-transition);
}

.share-link:hover {
  background: var(--blog-forest);
  color: var(--blog-white);
  transform: translateY(-2px);
}

.share-link svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */
.single-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sidebar-block {
  background: var(--blog-white);
  border: 1px solid var(--blog-warm);
  padding: 35px 30px;
  border-radius: 12px;
  box-shadow: var(--blog-shadow);
}

.sidebar-heading {
  font-family: var(--blog-font-display);
  font-size: 1.35rem !important;
  font-weight: 700;
  color: var(--blog-forest);
  margin-bottom: 22px;
  border-bottom: 2px solid var(--blog-sand);
  padding-bottom: 12px;
}

/* Categories widgets */
.sidebar-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories-list li {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(238, 234, 226, 0.6);
  padding-bottom: 12px;
}

.sidebar-categories-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-categories-list a {
  display: block;
  font-size: 0.95rem !important;
  color: #555;
  text-decoration: none;
  transition: var(--blog-transition);
}

.sidebar-categories-list a:hover,
.sidebar-categories-list a.active {
  color: var(--blog-forest);
  font-weight: 700;
  padding-left: 6px;
}

/* Recent items list */
.sidebar-recent-item {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 22px;
  transition: opacity 0.2s ease;
}

.sidebar-recent-item:last-of-type {
  margin-bottom: 0;
}

.sidebar-recent-item:hover {
  opacity: 0.85;
}

.sidebar-recent-thumb {
  width: 65px;
  height: 65px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blog-cream);
}

.sidebar-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-recent-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-recent-title {
  font-size: 0.9rem !important;
  font-weight: 700;
  color: var(--blog-forest);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-recent-date {
  font-size: 0.78rem;
  color: #888;
}

/* Premium Sidebar CTA banner */
.sidebar-cta-card {
  background: var(--blog-forest);
  color: var(--blog-white);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(44, 62, 45, 0.15);
}

.sidebar-cta-icon {
  margin-bottom: 18px;
  color: var(--blog-sand);
}

.sidebar-cta-icon svg {
  width: 52px;
  height: 52px;
  stroke: var(--blog-sand);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-cta-title {
  font-family: var(--blog-font-display);
  font-size: 1.45rem !important;
  font-weight: 700;
  color: var(--blog-white);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.sidebar-cta-text {
  font-size: 0.9rem !important;
  line-height: 1.55;
  opacity: 0.85;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

.sidebar-cta-email {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: var(--blog-white);
  border-radius: 6px;
  margin-bottom: 12px;
  text-align: center;
  font-family: var(--blog-font-body);
  font-size: 0.9rem !important;
  outline: none;
  transition: border-color 0.2s ease;
  position: relative;
  z-index: 2;
}

.sidebar-cta-email:focus {
  border-color: var(--blog-sand);
}

.sidebar-cta-email::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.sidebar-cta-btn {
  width: 100%;
  padding: 12px;
  background: var(--blog-sand);
  color: var(--blog-forest);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem !important;
  cursor: pointer;
  font-family: var(--blog-font-body);
  letter-spacing: 0.08em;
  transition: var(--blog-transition);
  position: relative;
  z-index: 2;
}

.sidebar-cta-btn:hover {
  background: var(--blog-white);
  color: var(--blog-forest);
}

.sidebar-cta-leaf {
  position: absolute;
  bottom: -25px;
  right: -25px;
  width: 90px;
  height: 120px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   CUSTOM RESPONSIVE SITE FOOTER
   ========================================================================== */
.site-footer {
  background: var(--blog-forest);
  font-family: var(--blog-font-body);
  color: rgba(255, 255, 255, 0.8);
}

/* Bottom Bar (now the entire footer) */
.site-footer__bottom {
  background: var(--blog-forest);
  color: rgba(255, 255, 255, 0.8);
  padding: 24px 0;
  font-size: 0.82rem !important;
}

.site-footer__bottom-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Socials — centered in the bottom bar regardless of copyright/link widths */
.footer-socials--bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.footer-socials--bottom .social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 0.9rem !important;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1),
    background-color 0.2s ease, border-color 0.2s ease;
}

.footer-socials--bottom .social-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Links */
.footer-bottom-menu {
  display: flex;
}

.footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links li {
  display: inline-block;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--blog-white);
}

.footer-bottom-links .menu-separator {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem !important;
}

/* Responsive: stack copyright / socials / links, all centered */
@media (max-width: 900px) {
  .site-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-socials--bottom {
    position: static;
    transform: none;
    order: 1;
  }

  .footer-copyright {
    order: 2;
  }

  .footer-bottom-menu {
    order: 3;
    justify-content: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-bottom-links {
    gap: 8px 10px;
  }
}