/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Shubham Mishra
 Author URI:   https://agyom.com/
 Template:     generatepress
 Version:      0.1
*/

/* ==========================
GLOBAL
========================== */
body {
  font-family: 'Inter', -apple-system, sans-serif;
  margin: 0;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

/* ==========================
  HEADER
  ========================== */
.site-header {
  background: #ffd46e;
  padding: 21px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

.header-inner img {
  height: 30px;
}

/* ==========================
  HERO
  ========================== */
.hero {
  text-align: center;
  padding: 80px 20px 50px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: #4f7cff;
}

.hero p {
  margin-top: 20px;
  font-size: 18px;
  color: #666;
}

/* ==========================
  CATEGORY FILTER
  ========================== */
.category-filter {
  display: flex;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.category-filter a,
.category-filter button {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  padding: 0 0 4px;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.category-filter a.active,
.category-filter button.mixitup-control-active,
.category-filter button.active {
  color: #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
}

.category-dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: #666;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 0 0 4px;
  cursor: pointer;
  border-bottom: 2px solid transparent; 
}

.dropbtn.active {
  color: #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.08);
  z-index: 100;
  border-radius: 8px;
  top: 100%;
  left: 0;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #eee;
}

.category-dropdown:hover .dropdown-content {
  display: block;
}

.category-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

.dropdown-content a {
  color: #666 !important;
  padding: 12px 18px;
  text-decoration: none;
  display: block;
  border-bottom: none !important;
  font-size: 13.5px;
}

.dropdown-content a:hover,
.dropdown-content a.active {
  background-color: #f7f7f7;
  color: #1a1a1a !important;
}

/* ==========================
  BLOG GRID
  ========================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}

/* ==========================
  BLOG CARD
  ========================== */
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.blog-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.blog-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 14px 16px 8px;
  line-height: 1.4;
}

.blog-card h2 a {
  text-decoration: none;
  color: #1a1a1a;
}

.blog-card .meta {
  font-size: 12px;
  color: #999;
  margin: 0 16px 6px;
}

.blog-card p {
  font-size: 14px;
  color: #666;
  margin: 0 16px 16px;
  line-height: 1.5;
}

/* ==========================
  SINGLE PAGE LAYOUT
  ========================== */
.single-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.single-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 36px;
}

/* ==========================
  BACK LINK
  ========================== */
.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  margin-bottom: 28px;
  transition: opacity 0.15s;
}

.back-link:hover {
  opacity: 0.7;
}

/* ==========================
  SINGLE HEADER (inside main column)
  ========================== */
.single-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  background: #e8bf5e;
  padding: 6px 18px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.single-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  margin: 0 0 20px;
}

.single-excerpt {
  font-size: 18px;
  line-height: 1.7;
  color: #888;
  margin: 0 0 20px;
  max-width: 680px;
}

.single-meta {
  font-size: 15px;
  color: #555;
  margin-bottom: 32px;
}

/* ==========================
  FEATURED IMAGE
  ========================== */
.single-featured-img {
  margin-bottom: 40px;
}

.single-featured-img img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ==========================
  TABLE OF CONTENT (sticky sidebar)
  ========================== */
.toc-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  padding-top: 12px;
}

.toc {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px 18px;
  background: #fafafa;
}

.toc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
}

.toc-list li {
  counter-increment: toc-counter;
}

.toc-list li a {
  display: block;
  font-size: 13px;
  color: #777;
  text-decoration: none;
  padding: 8px 10px;
  line-height: 1.45;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.toc-list li a::before {
  content: counter(toc-counter) ". ";
  font-weight: 600;
  color: #2563eb;
  margin-right: 2px;
}

.toc-list li a:hover {
  color: #1a1a1a;
  background: #f0f0f0;
}

.toc-list li a.active {
  color: #1a1a1a;
  background: #e8f0fe;
  border-left-color: #2563eb;
  font-weight: 500;
}

/* ==========================
  BLOG POST CONTENT
  ========================== */
.blog-post {
  max-width: 760px;
  min-width: 0;
}

.content p {
  font-size: 17px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.85;
}

.content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}

.content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.content h4 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.content a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.content a:hover {
  border-bottom-color: #2563eb;
}

.content ul,
.content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content li {
  font-size: 17px;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.7;
}

.content img {
  width: 100%;
  border-radius: 10px;
  margin: 24px 0;
}

.content blockquote {
  margin: 24px 0;
  padding: 12px 16px;
  border-left: 3px solid #2563eb;
  background: #f8f9fc;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #444;
}

.content strong {
  color: #1a1a1a;
}

/* ==========================
  FAQ
  ========================== */
.faq {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.faq h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.faq-item {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a1a;
}

/* ==========================
  FOOTER
  ========================== */
footer {
  margin-top: 80px;
  padding: 28px 0;
  border-top: 1px solid #eee;
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* ==========================
  RESPONSIVE
  ========================== */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .single-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .single-main {
    display: contents;
  }

  .back-link,
  .single-category,
  .single-title,
  .single-excerpt,
  .single-meta,
  .single-featured-img {
    order: 1;
  }

  .toc-sidebar {
    position: static !important;
    padding-top: 0;
    margin-top: 24px;
    margin-bottom: 28px;
    order: 2;
    width: 100%;
  }

  .blog-post {
    order: 3;
  }

  .single-title {
    font-size: 32px;
  }
}

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

  .single-title {
    font-size: 28px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .single-excerpt {
    font-size: 16px;
  }
}

/* ==========================
STICKY SOCIAL BAR
========================== */
.sticky-social-bar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.sticky-social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #000;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sticky-social-bar a:hover {
  transform: translateX(4px);
  background: #2563eb;
}

@media (max-width: 1350px) {
  .sticky-social-bar {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    background: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid #eaeaea;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    gap: 14px;
  }

  .sticky-social-bar a {
    width: 42px;
    height: 42px;
  }

  .sticky-social-bar a:hover {
    transform: translateY(-4px);
  }
}

/* ==========================
   PAGINATION
   ========================== */
.pagination-wrapper {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: #f8f9fc;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}
.pagination-wrapper .page-numbers:hover {
  background: #e8f0fe;
  color: #2563eb;
}
.pagination-wrapper .page-numbers.current {
  background: #2563eb;
  color: #fff;
}

/* ==========================
BLOG CTA BLOCK
========================== */
.blog-cta-block {
  margin-top: 50px;
}

.blog-cta-block hr {
  border: 0;
  border-top: 1px solid #e8e8e8;
  margin-bottom: 30px;
}

.btn-get-started {
  display: inline-block;
  background: #4a67ff;
  color: #fff !important;
  font-weight: 1000;
  font-size: 16px;
  padding: 12px 90px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(79, 124, 255, 0.2);
}

.btn-get-started:hover {
  background: #3963e6;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(79, 124, 255, 0.25);
  border-bottom-color: transparent !important;
}