/*
Theme Name: Hello Elementor Child
Theme URI: https://example.com/
Description: Child theme for Hello Elementor.
Author: Your Name
Author URI: https://example.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* Add your child theme styles below */
.gr-blog-single-body {
  background: #e0d5f891;
}
.gr-blog-single {
  margin: auto;
  padding: 0px;
  padding-bottom: 80px;
  background: #e0d5f891;
}
.gr-single-hero-container {
  background: white;
  margin: auto;
}
.gr-single-hero {
  max-width: 1140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 0px auto;
  padding: 60px 0px;
}

.gr-title {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
}

.gr-excerpt {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.gr-meta{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:20px;
    align-items:center;
}

.gr-meta-item:nth-child(1){
    grid-column:span 1;
}

.gr-meta-item:nth-child(2){
    grid-column:span 5;
}

.gr-meta-item:nth-child(3),
.gr-meta-item:nth-child(4),
.gr-meta-item:nth-child(5){
    grid-column:span 2;
}

.gr-meta-item {
  display: flex;
  flex-direction: column;
}
.gr-meta-item img {
  border-radius: 50%;
  overflow: hidden;
}

.gr-featured-image {
  width: 100%;
  border-radius: 24px;
  display: block;
}
.gr-content-layout {
  max-width: 1140px;
  display: grid;
  grid-template-columns: minmax(0, calc(100% - 400px)) 360px;
   margin: auto;
  gap: 40px;
  padding: 40px 0px;
}

.gr-content {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.gr-content h2 {
  margin-top: 60px;
  margin-bottom: 20px;
}
.gr-sidebar {
  min-width: 0;
  width: 100%;
  position: sticky;
  top: 120px;
  height: fit-content;
}

.gr-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 24px;
}

.gr-share {
  display: flex;
  gap: 10px;
}

.gr-share a {
  padding: 10px 15px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}

.gr-plugin-card {
  background: linear-gradient(135deg, #6c4df6, #8f7cff);
  color: #fff;
}

.gr-plugin-card a {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #fff;
  color: #6c4df6;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.gr-products {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gr-products li {
  margin-bottom: 12px;
}

.gr-products a {
  text-decoration: none;
  color: #111;
  font-weight: 600;
}

#gr-toc ul {
  padding-left: 18px;
  margin: 0;
}

#gr-toc li {
  margin-bottom: 10px;
}

#gr-toc a {
  text-decoration: none;
  color: #333;
}

@media (max-width: 991px) {
  .gr-single-hero {
    grid-template-columns: 1fr;
  }

  .gr-content-layout {
    grid-template-columns: 1fr;
  }

  .gr-sidebar {
    position: relative;
    top: auto;
  }

  .gr-title {
    font-size: 40px;
  }
}

.gr-ai-summary {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #f5f5f7;
    padding: 28px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin: auto;
    margin-top: 30px;
    flex-wrap: wrap;
    max-width: 1140px;
}

.gr-ai-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
}

.gr-ai-label img {
  width: 32px;
}

.gr-divider {
  width: 1px;
  height: 40px;
  background: #ddd;
}

.gr-ai-title {
  font-size: 18px;
  font-weight: 700;
}

.gr-ai-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.gr-ai-btn {
    padding: 14px 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    gap: 6px;
    align-items: center;
}

.gr-ai-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* =========================================
   RESPONSIVE CSS
========================================= */

/* Large Laptop & MacBook */
@media screen and (max-width: 1200px) {
  .gr-blog-single {
    max-width: 100%;
    padding: 50px 30px;
  }

  .gr-single-hero {
    gap: 40px;
  }

  .gr-content-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
  }
}

/* Tablet */
@media screen and (max-width: 991px) {
	.gr-single-hero-container {
	padding: 0px 20px;
	}
  .gr-blog-single {
    padding: 40px 0px;
  }

  .gr-single-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
  }

  .gr-hero-right {
    order: -1;
  }

  .gr-title {
    font-size: 36px;
    line-height: 1.2;
  }

  .gr-excerpt {
    font-size: 16px;
  }
	.gr-content-layout-container {
	padding: 0px 20px;
}
  .gr-content-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gr-sidebar {
    position: relative;
    top: auto;
  }

  .gr-meta{
        max-width: 350px;
        gap:15px;
    }


  .gr-content {
    font-size: 17px;
  }

  .gr-ai-summary {
	  border-radius: 0px;
    gap: 20px;
    padding: 24px;
  }

  .gr-divider {
    display: none;
  }
}

/* Mobile */
@media screen and (max-width: 767px) {
  .gr-blog-single {
    padding: 25px 15px;
  }

  .gr-single-hero {
    gap: 25px;
    margin-bottom: 35px;
  }

  .gr-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .gr-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .gr-meta{
        grid-template-columns: repeat(3, 1fr);
        gap:12px;
        max-width:100%;
    }

    .gr-meta-item:nth-child(1){
        grid-column:0.5;
    } 

    .gr-meta-item:nth-child(2){
        grid-column:2;
    }

    .gr-meta-item:nth-child(3){
        grid-column:1;
    }
    
    .gr-meta-item:nth-child(4){
        grid-column:2;
    }
    .gr-meta-item:nth-child(5){
        grid-column:3;
    }

    .gr-meta-item{
        padding:12px;
        border:1px solid #eee;
        border-radius:10px;
    }

  .gr-featured-image {
    border-radius: 16px;
  }

  .gr-content {
    font-size: 16px;
    line-height: 1.8;
  }

  .gr-content h2 {
    font-size: 26px;
    line-height: 1.3;
    margin-top: 35px;
    margin-bottom: 15px;
  }

  .gr-content h3 {
    font-size: 22px;
    line-height: 1.3;
  }

  .gr-card {
    padding: 20px;
    border-radius: 16px;
  }

  .gr-share {
    flex-wrap: wrap;
  }

  .gr-share a {
    flex: 1;
    text-align: center;
    min-width: 90px;
  }

  .gr-ai-summary {
    padding: 20px;
    gap: 15px;
    margin: 30px 0;
  }

  .gr-ai-label {
    width: 100%;
    font-size: 16px;
  }

  .gr-ai-title {
    width: 100%;
    font-size: 16px;
  }

  .gr-ai-buttons {
    width: 100%;
    gap: 10px;
  }

  .gr-ai-btn {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
    padding: 12px 15px;
    font-size: 14px;
  }

  .gr-breadcrumb {
    font-size: 13px;
    word-break: break-word;
  }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
  .gr-blog-single {
    padding: 20px 12px;
  }

  .gr-title {
    font-size: 24px;
  }

  .gr-content {
    font-size: 15px;
  }

  .gr-content h2 {
    font-size: 22px;
  }

  .gr-content h3 {
    font-size: 19px;
  }

  .gr-card {
    padding: 16px;
  }

  .gr-ai-btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .gr-share a {
    width: 100%;
    flex: unset;
  }

  .gr-meta-item strong,
  .gr-meta-item span {
    font-size: 14px;
  }
}

/* Prevent Content Overflow */
.gr-content img,
.gr-content iframe,
.gr-content table,
.gr-content video {
  max-width: 100%;
  height: auto;
}

.gr-content table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.gr-content pre {
  overflow-x: auto;
}

.gr-content code {
  word-break: break-word;
}
