/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Child theme for GeneratePress
 Author:       Your Name
 Author URI:   https://yourwebsite.com
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  generatepress-child
*/
/* Underline animation on top-level menu links */
#site-navigation .main-nav > ul > li > a {
  position: relative;
  text-decoration: none;
}
#site-navigation .main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 1em;
  right: 1em;
  bottom: 0.55em;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
#site-navigation .main-nav > ul > li:hover > a::after,
#site-navigation .main-nav > ul > li[class*="current-menu-"] > a::after {
  transform: scaleX(1);
}
/* Scoped: only the inside-article that contains your 70/30 Smart Slider + Latest section */
.inside-article:has(.wp-container-core-columns-is-layout-9d6595d7) {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
/* Mobile gutters for the specific 70/30 section */
@media (max-width: 780px) {
  .wp-container-core-columns-is-layout-9d6595d7 {
    padding-left: max(8px, env(safe-area-inset-left)) !important;
    padding-right: max(8px, env(safe-area-inset-right)) !important;
  }
}
/* Limit post titles to 3 lines with ellipsis — only inside the right (30%) column */
.wp-container-core-columns-is-layout-9d6595d7 > .wp-block-column:last-child .wp-block-post-title a {
  display: -webkit-box;
	-webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;             
  text-overflow: ellipsis
  line-height: 1.3;
}
/* Rounded corners for articles/posts */
.inside-article {
    border-radius: 8px;
    overflow: hidden; /* makes images respect corners */
}

/* Rounded corners for sidebar widgets */
.sidebar .widget {
    border-radius: 8px;
    overflow: hidden;
}

/* Rounded corners for comments section */
.comments-area {
    border-radius: 8px;
    overflow: hidden;
}
/* === Global Rounded Corners (Content Only) === */

/* Round all visual content containers and media */
img, iframe,
video,
.wp-block-image img,
.wp-block-post-featured-image img,
.wp-block-cover img,
.wp-block-gallery img,
.wp-block-media-text__media img,
figure,
button,
input,
textarea,
select,
.wp-block-button__link,
.wp-block-columns,
.wp-block-column,
.wp-block-group,
.wp-block-query .wp-block-post,
.wp-block-query .wp-block-post-featured-image,
.wp-block-query .wp-block-post-featured-image img,
.wp-block-cover,
.wp-block-cover__image-background,
.n2-section-smartslider,
.n2-ss-slide,
.n2-ss-slide-background-image img {
  border-radius: 8px !important;
  overflow: hidden;
}

/* Keep header, navigation, and footer square */
.site-header,
.inside-header,
.main-navigation,
#site-navigation,
.footer-widgets,
.site-footer,
.site-info {
  border-radius: 0 !important;
  overflow: visible;
}

/* Ensure internal layout boxes stay smooth */
.wp-block-post,
.wp-block-cover,
.wp-block-query .wp-block-post {
  overflow: hidden;
}

/* Slightly reduce rounding on small screens */
@media (max-width: 768px) {
  img,
  iframe,
  video,
  figure,
  .wp-block-post,
  .wp-block-cover,
  .wp-block-query .wp-block-post {
    border-radius: 4px !important;
  }
}
/* Fallback: any image inside the header stays square */
.site-header img.custom-logo,
.site-header .site-logo a img {
  border-radius: 0 !important;
}
