/*
Theme Name: GrowMails Hello Child
Template: hello-elementor
Author: GrowMails
Description: A safe child theme for Hello Elementor with custom single post layout.
Version: 1.0
*/

/* General Styles */
body.single-post,
.editor-styles-wrapper {
  font-family: 'Poppins', sans-serif;
  color: #e6e6e6;
  overflow-x: hidden !important;
}

/* Post Layout */
.growmails-post-wrapper {
  padding-top: 100px !important;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 80px auto 60px;
  padding: 0 20px;
}

.sidebar {
  padding-top: 115px;
  position: sticky;
  top: 120px;
}

/* Post Content */
.post-content p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 1.4em;
}

.post-content img,
.post-content figure img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.post-content div,
.post-content figure {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .growmails-post-wrapper {
    grid-template-columns: 1fr;
    margin: 20px;
  }

  .sidebar {
    padding-top: 0 !important;
    position: relative;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    padding-top: 40px !important;
  }

  .widget-box {
    margin-bottom: 20px;
  }

  .post-meta {
    font-size: 13px;
  }

  .post-content {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  h1, h2, h3 {
    font-size: 1.4em !important;
  }

  .post-content {
    font-size: 15px;
    line-height: 1.6;
  }

  .featured-image img {
    border-radius: 10px;
  }

  .widget-box {
    padding: 18px;
  }
}
