/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com/
Description: A custom child theme for GeneratePress.
Author: Site Owner
Template: generatepress
Version: 1.0.0
Text Domain: generatepress-child
*/

/* Add your custom CSS below this line. */

/* GeneratePress Site CSS */ .inside-article,
.sidebar .widget,
.comments-area {
	border-right: 2px solid rgba(0, 0, 0, 0.07);
	border-bottom: 2px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}

/* Featured widget */
.sidebar .widget:first-child,
.sidebar .widget:first-child .widget-title{
	background-color: #83b0de;
	color: #fff;
}
.sidebar .widget:first-child a,
.sidebar .widget:first-child a:hover {
	color: #fff;
}

.separate-containers .page-header {
	background: transparent;
	padding-top: 20px;
	padding-bottom: 20px;
}

.page-header h1 {
	font-size: 1.5em;
}

.button, .wp-block-button .wp-block-button__link {
	padding: 15px 25px;
}

@media (max-width: 768px) {
	.post-image img {
		max-width: 100%;
	}
} /* End GeneratePress Site CSS */


.nav-align-right .inside-navigation {
    justify-content: normal!important;
}

.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
  }

#ai_widget-3, #ai_widget-2 {
    padding: 0 !important; /* Remove padding */
}




/* Fix for image layout shift */
@media (max-width: 767px) {
  img.wp-post-image {
    width: 100%;
    height: auto;
    aspect-ratio: 590/300; /* Matches original image dimensions */
    object-fit: contain;
    display: none;
  }

  /* Reserve space for sticky share buttons */
  #st-2.st-sticky-share-buttons {
    position: sticky;
    min-height: 60px; /* Adjust based on your actual button height */
    top: 0;
    z-index: 100;
  }

  /* Contain intrinsic size for better CLS */
  .post {
    contain-intrinsic-size: auto 500px; /* Adjust based on content */
    content-visibility: auto;
  }
}

@media (max-width: 768px) {
    .code-block-4 {
        min-height: 360px;
        overflow: auto;
    }
}

.code-block-4, .code-block-15 {
    min-height: 300px;
    overflow: auto; /* Enables scrolling if content overflows */
}


@media (max-width: 768px) {
  .inside-article .entry-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .inside-article .entry-summary p {
    font-size: 15px;
    line-height: 1.6;
  }

  .inside-article .read-more.button {
    font-size: 14px;
    padding: 6px 12px;
  }
	h2 {
    font-size: 18px;
    line-height: 1.4;
  }
}
