/*
 Theme Name:   Webpreneurships Child
 Theme URI:    https://webpreneurships.com
 Description:  Custom child theme for GeneratePress, made for Webpreneurships
 Author:       Christian Ashford
 Author URI:   https://webpreneurships.com/author/christianashford/
 Template:     generatepress
 Version:      1.0.0
*/

/* Import parent theme styles */
@import url("../generatepress/style.css");

/* Custom styles go below */

/* Remove line/gap between header and navigation on all devices */
.site-header {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    box-shadow: none !important; /* in case the line is a shadow */
}

.inside-header {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.main-navigation {
    margin-top: 0 !important;
    border-top: none !important;
    box-shadow: none !important; /* sometimes added in mobile nav */
}

/* Specifically for mobile view */
@media (max-width: 768px) {
    .site-header {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .main-navigation {
        margin-top: 0 !important;
        border-top: none !important;
    }
}


/* Remove unwanted separator line below mobile menu */
.main-navigation.toggled,
.main-navigation .main-nav {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Sometimes GP adds a border via ul or inside container */
.main-navigation .inside-navigation {
    border-bottom: none !important;
    box-shadow: none !important;
}


/* Hide site logo image but keep favicon */
/* Hide logo image but collapse its container */
.site-logo,
.custom-logo-link,
.custom-logo {
    display: none !important;
}


/* === Glowing Blue Underline for Nav === */
#site-navigation {
    border-bottom: 4px solid #1800ad;
    box-shadow: 0 2px 5px rgba(24, 0, 173, 0.7);
}

/* White bold nav text */
#site-navigation .main-nav ul li a {
    color: #fff;
    font-weight: 600;
}
#site-navigation .main-nav ul li a:hover {
    color: #00CCFF; /* Hover color matches your blue */
}

/* === START: Blue underline hover effect for main navigation menu links === */
.main-nav ul li a {
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* position underline close to text */
    width: 0;
    height: 2px; /* thickness */
    background-color: #00CCFF;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%; /* expand on hover */
}
/* === END: Blue underline hover effect for main navigation menu links === */

/* === START: Adjust spacing under text without moving it === */
.main-navigation .main-nav ul li a {
    padding-bottom: 2px; 
    line-height: 1.2; 
    border-bottom: 3px solid transparent; /* reserve space for underline */
}

.main-navigation .main-nav ul li a:hover {
    border-bottom-color: #00CCFF; /* show underline on hover */
}
/* === END: Adjust spacing under text without moving it === */

	/* === START: Equalize mobile menu spacing for main menu + dropdown === */
@media (max-width: 768px) {
    /* Main mobile menu items */
    .main-navigation .main-nav > ul > li > a {
        padding-top: 8px;
        padding-bottom: 8px;
        line-height: 1.4;
    }

    /* Dropdown items in mobile (More menu) */
    .main-navigation .sub-menu li a {
        padding-top: 8px;
        padding-bottom: 8px;
        line-height: 1.4;
    }

    /* Remove default gaps */
    .main-navigation .main-nav ul li,
    .main-navigation .sub-menu li {
        margin: 0;
    }
}
/* === END: Equalize mobile menu spacing for main menu + dropdown === */


	
	/* === Header CTA Container === */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}
/* === Header CTA Text === */
.header-cta .header-text {
  font-size: 14px;
  color: #ffffff !important; /* force white text */
}

/* === Header CTA Button === */
.header-cta .header-button {
  background-color: #FFD700 !important; /* vivid yellow */
  color: #000000 !important; /* black text */
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

/* === Header CTA Button Hover State === */
.header-cta .header-button:hover {
  background-color: #e6c200 !important; /* darker yellow for hover */
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7); /* yellow glow */
}
	/* === Mobile Menu: Consistent Spacing === */
@media (max-width: 1180px) {
    /* Top-level items */
    .main-navigation .main-nav > ul > li > a {
        padding-top: 10px;
        padding-bottom: 10px;
        line-height: 1.4;
    }

    /* Submenu items */
    .main-navigation .sub-menu li a {
        padding-top: 8px;
        padding-bottom: 8px;
        line-height: 1.4;
    }

    /* Remove extra margin or gap between items */
    .main-navigation .main-nav ul li,
    .main-navigation .sub-menu li {
        margin: 0;
    }

    /* Keep border lines consistent */
    .main-navigation .main-nav ul li a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Remove border from last item in each menu */
    .main-navigation .main-nav ul li:last-child > a,
    .main-navigation .sub-menu li:last-child > a {
        border-bottom: none;
    }
}
	@media (max-width: 768px) {
  .header-cta .header-button {
    white-space: nowrap;
    font-size: 13px;   /* smaller text to fit */
  }
}
	@media (max-width: 768px) {
  .inside-header.grid-container {
	padding-top: 8px !important;
    padding-bottom: 2px !important;
  }
}
@media (max-width: 768px) {
  .site-header {
    margin-bottom: 0 !important;
  }
  #site-navigation {
    margin-top: 0 !important;
  }
	.header-widget,
  .widget.inner-padding {
    padding-top: 4px !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  
  /* If you want the button itself to have less height */
  .header-cta .header-button {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13px; /* slightly smaller text for mobile */
  }
	/* Reduce top/bottom padding for the whole nav */
  .main-navigation .inside-navigation .inside-navigation grid-container{
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
}

/* Copyright */
	.copyright-bar {
    white-space: nowrap;
}
.copyright-bar a[href*="generatepress.com"] {
    display: none !important;
}
.copyright-bar {
    /* Remove extra dot or separator */
    font-size: 0;
}
.copyright-bar span,
.copyright-bar span.copyright {
    font-size: 14px; /* restore normal size for the copyright text */
}

/* Add spacing around images inside post content */
.entry-content img {
    display: block;
    margin: 1.5em auto;   /* top & bottom spacing */
    max-width: 100%;      /* prevent overflow */
    height: auto;         /* keep proportions */
}

/* Add spacing around YouTube/video embeds */
/* Add spacing around WordPress YouTube embeds */
.entry-content .wp-block-embed.is-type-video {
    margin: 1.5em 0;   /* top & bottom spacing */
}

/* If you want to target specifically the wrapper inside */
.entry-content .wp-block-embed__wrapper {
    margin: 1.5em 0;
}

.editorial-note {
  font-size: 0.75rem;
  color: #666;              /* soft gray */
  background: #f8f8f8;      /* light background */
  padding: 10px 15px;
  margin: 15px 0 25px;
  border-left: 3px solid #ccc;
  border-radius: 4px;
}
.editorial-note p {
  margin: 0;
}
	.comments-area {
  display: none !important;
}

/* 	Smaller Article Card */
.entry-summary p {
  display: -webkit-box;
  -webkit-line-clamp: 3;   /* only show 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Archive card titles */
.archive .entry-title,
.blog .entry-title {
    line-height: 1.4;
}


/* Hide comment count icon/links in archives & singles */
.entry-meta .icon-comments,
.entry-meta a[href*="comments"],
.entry-meta .comments-link {
    display: none !important;
}
	
/* make author smaller byline */
.entry-meta {
  font-size: 13px;
  margin-bottom: 5px;
}

	/* Mobile: smaller */
@media (max-width: 768px) {
  .archive .entry-title,
  .blog .entry-title {
      font-size: 1.6rem;
  }
}

/* Desktop: larger */
@media (min-width: 769px) {
  .archive .entry-title,
  .blog .entry-title {
      font-size: 2.2rem;  /* nice balance for desktop */
  }
}

/* For Quizzes */
	
/* Hide scores by default */ 
.hdq_result
{ display: none !important; }

/* Show scores for posts in the 'Fun Quizzes' category */
body.category-fun-quizzes .hdq_result {
    display: block !important;
}
/* Show scores for posts in the 'Interactive Puzzles' category */
body.category-interactive-puzzles .hdq_result {
    display: block !important;
}
/* Hide the featured image for posts in the 'Interactive Puzzles' category */
body.category-interactive-puzzles .tdb-featured-image-bg {
    display: none !important;
}
/* Show scores for posts in the 'History Quizzes' and 'Math Quizzes' categories */
body.category-history-quizzes .hdq_result, body.category-science-quizzes .hdq_result,
body.category-math-quizzes .hdq_result {
    display: block !important;
}
/* Hide the featured image for posts in the 'Math Quizzes' category */
body.category-math-quizzes .tdb-featured-image-bg {
    display: none !important;
}

/* Hide the featured image for posts in the 'Math Quizzes' category */
body.category-word-search .tdb-featured-image-bg {
    display: none !important;
}
/* Show scores for posts in the 'Word Search' category */
body.category-word-search .hdq_result {
    display: block !important;
}
/* Show scores for posts in the 'Anime-Quizzes', 'Harry-Potter-Quizzes', and 'Movies-Quizzes' categories */
body.category-anime-quizzes .hdq_result,
body.category-harry-potter-quizzes .hdq_result,
body.category-movies-quizzes .hdq_result {
    display: block !important;
}
.hdq_loading_bar {
    display: none !important;
}
.start-quiz-button {
    display: block; /* Makes it a block element, filling the width of its container */
    width: 100%; /* Sets the width to cover the full container */
    background-color: navy; /* Navy blue background */
    color: white; /* White text */
    text-align: center; /* Centers the text inside the button */
    padding: 10px 0; /* Padding to make the button taller */
    text-decoration: none; /* Removes underline from links */
    border: none; /* Removes border */
    cursor: pointer; /* Changes the cursor to indicate it's clickable */
    font-size: 18px; /* Increases the font size */
    border-radius: 4px; /* Optional: adds rounded corners */
    margin-top:10px;
}
.start-quiz-button:hover {
    background-color: blue; /* Darkens the button a bit when hovered */
    color:white;
}

.start-quiz-button2 {
    display: block; /* Makes it a block element, filling the width of its container */
    width: 100%; /* Sets the width to cover the full container */
    background-color: navy; /* Navy blue background */
    color: white; /* White text */
    text-align: center; /* Centers the text inside the button */
    padding: 10px 0; /* Padding to make the button taller */
    text-decoration: none; /* Removes underline from links */
    border: none; /* Removes border */
    cursor: pointer; /* Changes the cursor to indicate it's clickable */
    font-size: 18px; /* Increases the font size */
    border-radius: 4px; /* Optional: adds rounded corners */
}
.start-quiz-button2:hover {
    background-color: blue; /* Darkens the button a bit when hovered */
    color:white;
}	
	
/* Related Articles "Read More" Button Full Width */
.read-article-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 18px;
  margin-top: 12px;
  background-color: navy;
  color: #fff !important;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.read-article-button:hover {
  background-color: blue;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}



/* Quiz Related Articles Style */
	/*YOU MAY LIKE*/
/* YOU MAY LIKE — Ad-Safe Balanced Version */
.you-may-like-box {
  position: relative;
  padding: 10px 0;
  margin: 0;
}

/* Top and bottom dividers — locked to box */
.you-may-like-box::before,
.you-may-like-box::after {
  content: "";
  display: block;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

/* Remove external divider elements if still in HTML */
.you-may-like-divider,
.you-may-like-divider-bottom {
  display: none !important;
}

.you-may-like-title {
  background: #002244;
  color: #fff;
  display: inline-block;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.you-may-like-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.you-may-like-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.you-may-like-thumb {
  flex-shrink: 0;
  width: 125px;
  height: 75px;
  overflow: hidden;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
}

.you-may-like-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.you-may-like-thumb img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.you-may-like-link {
  color: #000;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  margin-top: 2px;
}

.you-may-like-link:hover {
  color: #0044cc;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .you-may-like-thumb {
    width: 100px;
    height: 64px;
  }
  .you-may-like-link {
    font-size: 16px;
  }
}






	
/* Space between related posts in sidebar */
.jp-related-posts-i2__list .jp-related-posts-i2__post {
    margin-bottom: 30px; /* adjust spacing as needed */
}

/* Prevent extra gap after the last one */
.jp-related-posts-i2__list .jp-related-posts-i2__post:last-child {
    margin-bottom: 0;
}

/*  Homepage CSS*/
	/* Homepage posts (except hero) as card layout */
body.home .site-main article:not(:first-of-type) .inside-article {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-bottom: 20px;
  padding: 0;
  height: 220px; /* desktop height */
}

/* Left image column */
body.home .site-main article:not(:first-of-type) .post-image {
  order: -1;
  flex: 0 0 350px;
  height: 100%;
  margin: 0;
}
body.home .site-main article:not(:first-of-type) .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right content column */
body.home .site-main article:not(:first-of-type) .inside-article > :not(.post-image) {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px;
  height: 100%;
  box-sizing: border-box;
}

/* Title + Author + Categories only */
body.home .site-main article:not(:first-of-type) .entry-summary {
  display: none !important; /* hide excerpt */
}

body.home .site-main article:not(:first-of-type) footer.entry-meta .comments-link {
  display: none !important; /* hide comments but keep categories available */
}

/* Title visible */
body.home .site-main article:not(:first-of-type) .entry-header {
  display: block;
  margin: 0;
}
body.home .site-main article:not(:first-of-type) .entry-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

/* Style for categories once moved */
body.home .site-main article:not(:first-of-type) .entry-header .cat-links {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #777;
}

/* ---------- Mobile fix ---------- */
@media (max-width: 768px) {
  body.home .site-main article:not(:first-of-type) .inside-article {
    flex-direction: column;   /* stack vertically */
    height: auto;             /* no fixed height */
  }

  body.home .site-main article:not(:first-of-type) .post-image {
    flex: none;
    width: 100%;
    height: auto;
  }

  body.home .site-main article:not(:first-of-type) .post-image img {
    height: auto;
  }

  body.home .site-main article:not(:first-of-type) .inside-article > :not(.post-image) {
    padding: 12px 15px;
    height: auto;
  }
}
/* Hide the entire footer in homepage article cards */
body.home .site-main article:not(:first-of-type) footer.entry-meta {
  display: none !important;
}

/* Add breathing room on mobile cards */
/* Add side spacing to homepage cards on mobile */
@media (max-width: 768px) {
  .home .site-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}
	
/* 	Padding Search */
@media (max-width: 768px) {
  #jetpack-search-filters-2 {
    padding: 15px !important;  /* adjust as needed */
	  margin-bottom: 15px;
  }

}
/* Style the Top 5 this Week widget */

/* Widget title styled as blue label */
#block-23 .widget-title {
  display: inline-block;     /* shrink wrap background to text */
  background-color: #1800ad; /* blue text background */
  color: #ffffff;            /* white text */
  font-size: 20px;
  font-weight: 600;
  padding: 6px 12px;         /* padding just around the text */
  border-radius: 4px;        /* optional: rounded corners */
  margin-bottom: 15px;       /* space below before content starts */
}


/* Share Buttons Wrapper */
.share-buttons {
  margin: 20px auto;
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;       /* center vertically */
  gap: 12px;
  flex-wrap: nowrap;         /* force all buttons on one line */
  width: 100%;
  text-align: center;
}

/* Share Button Style */
.share-buttons .share-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
  white-space: nowrap;       /* prevent text breaking */
}

/* Colors */
.share-buttons .share-btn.fb { 
  background: #3b5998 !important; 
  color: #fff !important; 
}
.share-buttons .share-btn.pin { 
  background: #bd081c !important; 
  color: #fff !important; 
}
.share-buttons .share-btn.copy { 
  background: #333 !important; 
  color: #fff !important; 
  border: none !important;
}

.share-buttons .share-btn:hover { 
  opacity: 0.85; 
  transform: translateY(-1px);
}

/* Wrapper */
.share-buttons {
  margin: 20px auto;
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  text-align: center;
}

/* Ensure parent container centers this block */
.entry-content .share-buttons {
  justify-content: center;
  text-align: center;
}
.share-buttons {
  max-width: 100% !important;
  justify-content: center !important;
}

.entry-content .share-buttons {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

/* ✅ Mobile Fix: stack buttons instead of breaking */
@media (max-width: 480px) {
  .share-buttons {
    flex-wrap: wrap;             /* allow wrapping */
    gap: 10px;
  }
  .share-buttons .share-btn {
    flex: 1 1 100%;              /* make each button full width */
    text-align: center;
  }
}


/* Email Contact Us */
.email-btn {
  display: inline-block;
  background-color: #002244; /* match your site’s palette */
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.email-btn:hover {
  background-color: #004080;
}

/* Custom Author Bio */
.custom-author-box {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
}

.custom-author-box .author-name {
    font-size: 1.2em;
    margin: 0 0 10px;
}

.custom-author-box .author-name a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
}

.custom-author-box .author-description {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.3;
}

/*Convert Kit Footer  */
.custom-footer-kit {
    width: 100%;
    background-color: #08224b;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1000; /* Push above ads */
}

.custom-footer-kit-inner {
    max-width: 1100px; /* keep content centered and clean */
    margin: 0 auto;
}

.custom-footer-kit * {
    margin-left: auto;
    margin-right: auto;
}
.site-footer {
    position: relative;
    z-index: 9999; /* really high so it's always above ads */
}

/* category in homepage */
/* Position categories below author */
/* Force categories to appear below author/date */
.home-header-cats {
  display: block;
  font-size: 13px;
  margin-top: 5px;
  color: #666;
  order: 2; /* ensures it falls after meta */
}

/* Reorder inside entry-header flex if needed */
.entry-header {
  display: flex;
  flex-direction: column;
}
.entry-header .entry-meta {
  order: 1;
}
.entry-header .home-header-cats {
  order: 2;
}

/* Youtube Style */
/* Reset WP wrapper to behave like a normal container */
.wp-block-embed__wrapper {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Kill the ghost aspect-ratio box WP inserts */
.wp-block-embed__wrapper::before {
    content: none !important;
    display: none !important;
}

/* Ensure yt-lite is always in charge of sizing */
.wp-block-embed__wrapper .yt-lite {
    aspect-ratio: 16/9 !important;
    background: #000; /* fallback */
    width: 100%;
    height: auto;
    display: block;
}

/* Thumbnail */
.yt-lite .yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Play button */
.yt-lite .yt-playbtn {
    width: 90px;
    height: 65px;
    background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/YouTube_icon_%282013-2017%29.png/120px-YouTube_icon_%282013-2017%29.png") no-repeat center center;
    background-size: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* Hide overlays once iframe loads */
.yt-lite.yt-loaded .yt-thumb,
.yt-lite.yt-loaded .yt-playbtn {
    display: none !important;
}

/* Iframe: must be on top */
.yt-lite iframe {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    z-index: 5 !important; /* above all overlays */
    display: block !important;
}

/* Title overlay */
.yt-lite .yt-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    z-index: 4;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0)
    );
    pointer-events: none;
}

/* Hide title after play */
.yt-lite.yt-loaded .yt-title {
    display: none !important;
}
.yt-lite .yt-title {
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.yt-lite .yt-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}




/* Shared opt-in form styling */
.inline-optin,
.finalform-optin {
  width: 100%;
  margin: 40px 0;
  padding: 30px 20px;
  background: #000;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid #333;   /* subtle outline */
}

.inline-optin h2,
.finalform-optin h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  font-weight: 700;
}

.inline-optin p,
.finalform-optin p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.4;
}

/* Email input */
.inline-optin input[type="email"],
.finalform-optin input[type="email"] {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 15px auto;
  padding: 10px;
  display: block;
  border-radius: 6px;
  border: none;
}

/* Button */
.inline-optin button,
.inline-optin input[type="submit"],
.finalform-optin button,
.finalform-optin input[type="submit"] {
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  background: #2900FF;
  color: #fff;
  cursor: pointer;
}

.inline-optin button:hover,
.inline-optin input[type="submit"]:hover,
.finalform-optin button:hover,
.finalform-optin input[type="submit"]:hover {
  background: #1f00cc;
}


/* Reset ConvertKit defaults (only for final form) */
.finalform-optin form.seva-form {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  background: none !important;
  box-shadow: none !important;
}

/* HERO SECTION */

.custom-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  max-width: 1200px;
  margin: 0 auto 20px;
  height: 60vh;       /* controls total height */
  max-height: 500px;  /* cap it */
  gap: 0;             /* remove white gaps */
}

.hero-left {
  grid-row: 1 / span 2;
  position: relative;
  overflow: hidden;
}

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-left img,
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay bar */
/* Overlay container (no background) */
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 15px;
  z-index: 2; /* sits above gradient */
}

/* Add gradient on the whole image */
.hero-left::after,
.hero-right::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%; /* how high gradient fades */
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.80) 0%,   /* almost black at the bottom */
    rgba(0,0,0,0.7) 40%,   /* strong dark in lower middle */
    rgba(0,0,0,0) 100%     /* fully transparent at top */
  );
  z-index: 1;
  pointer-events: none;
}


/* Make sure parent holds position */
.hero-left,
.hero-right {
  position: relative;
  overflow: hidden;
}

/* Text stays above gradient */
.hero-overlay h2,
.hero-overlay h3 {
  position: relative;
  z-index: 3;
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.custom-hero-grid {
  margin: 20px auto 20px; /* 20px top margin now */
}

@media (max-width: 768px) {
  .custom-hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    max-height: none;
  }
  .hero-left {
    grid-row: auto;
  }
}

/* === HERO TEXT STYLING === */
.hero-overlay h2,
.hero-overlay h3 {
  font-size: 20px;     /* same size for all hero titles */
  line-height: 1.3;
  margin: 0;
  color: #fff;
  font-weight: 600;
}

/* Desktop: slightly larger */
@media (min-width: 1024px) {
  .hero-overlay h2,
  .hero-overlay h3 {
    font-size: 19px;
  }
}

/* Mobile: smaller but still readable */
@media (max-width: 768px) {
  .hero-overlay h2,
  .hero-overlay h3 {
    font-size: 16px;
    line-height: 1.25;
  }
	.custom-hero-grid {
  margin: 0; /* 20px top margin now */
}
}

/* === HERO IMAGE HOVER ZOOM === */
.hero-left img,
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease; /* smooth zoom */
}

.hero-left:hover img,
.hero-right:hover img {
  transform: scale(1.05); /* zoom in slightly */
}



/* LEFT hero image — focus top-left */
.hero-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 10%;   /* move crop slightly left + higher */
  transform: scale(1.1);
  display: block;
  transition: transform 0.4s ease;
}

.hero-left:hover img {
  transform: scale(1.15);
}

/* RIGHT hero images — focus more upward + left */
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 15%;   /* nudge toward top-left */
  transform: scale(1.1);
  display: block;
  transition: transform 0.4s ease;
}

.hero-right:hover img {
  transform: scale(1.15);
}

/* Force nav menu to collapse earlier (tablet + small laptops) */
@media (max-width: 1180px) {
  .main-navigation .main-nav > ul {
    display: none; /* hide desktop nav */
  }

  .main-navigation .menu-toggle {
    display: block; /* show hamburger */
  }
}

/* ======== AFFILIATE BOOK SECTION ======== */
.affiliate-box {
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 20px 15px;
  padding-bottom: 28px;
  background: #fffdf2;
  border: 1px solid #eee;
  border-radius: 10px;
}

.affiliate-box h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #111;
}

.affiliate-item {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.affiliate-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.affiliate-title {
  font-weight: 600;
  color: #000;
  font-size: 1.05em;
}

.affiliate-author {
  color: #444;
  font-size: 0.95em;
  margin-bottom: 5px;
}

.affiliate-btn {
  display: inline-block;
  background-color: #FFD700;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  margin-top: 4px;
  transition: background-color 0.2s ease;
}

.affiliate-btn:hover {
  background-color: #e6c200;
  text-decoration: none;
}

.affiliate-disclosure {
  font-size: 0.7em;
  color: #555;
  margin-top: 25px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.affiliate-rating {
  font-size: 0.78em;
  color: #666;
  margin-bottom: 6px;
  display: block;
  line-height: 1.3;
}

/* Cookie Consent */
/* Cookie Consent – mobile full width */
@media (max-width: 768px) {
  .cky-consent-container {
    position: fixed !important;
    bottom: 110px !important; /* clears mobile ads + floating buttons */
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    z-index: 9999 !important;
  }
}

