/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* General image fix (all devices) */
img.wp-post-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop ads - keep current sizes */
@media (min-width: 768px) {
  .adsbygoogle {
    display: block;
    width: 300px;
    height: 250px; /* reserve desktop ad space */
    margin: auto;
  }

  .video-wrapper {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9; /* YouTube or video embeds */
  }
}

/* Mobile-specific fixes */
@media (max-width: 767px) {
  /* Mobile ad slots */
  .adsbygoogle {
    display: block;
    width: 100%;       /* responsive */
    max-width: 320px;  /* prevent too large */
    min-height: 250px; /* reserve vertical space */
    margin: 10px auto; 
  }

  /* Mobile video embeds */
  .video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* reserves correct height */
    margin-bottom: 20px;
  }

  /* Optional: adjust padding/margin for images to prevent jumps */
  img.wp-post-image {
    margin-bottom: 15px;
  }
}
/**/
#mailerlite-form_1 {
	border: 1px solid #000;
    border-radius: 10px;
}
.mailerlite-form-title {
	margin-bottom: 15px;
	box-shadow: 0 2px 9px -2px #000;
	padding: 15px
}

.mailerlite-form-response,
.mailerlite-form-inputs,
.mailerlite-form-description {
	padding: 15px
}

.mailerlite-subscribe-submit {
	width: 100%;
	background: #000;
	border-radius: 10px
}

#mailerlite-1-field-email {
	width: 100%;
	border-color: #000;
	border-radius: 10px
}
.copyright-bar {
	display: flex
}
.menu-footer-menu-container li {
	display: inline-block;
	margin-right: 10px
}
#block-61 {
    padding: 18px;
    background: black;
    color: bisque;
}

#block-61 a {
    padding: 0px 10px;
    background: white;
    color: black;
    border-radius: 6px;
}

body:not(.single article) a {text-decoration: none; color: #000;}

aside {border-radius: 11px;}
.widget-title {padding: 15px;margin-bottom: 15px;}
aside,
.widget-title,
#masthead  {box-shadow: 0 2px 9px -2px #ccc;}
#masthead .inside-header {padding: 5px 15px;}
.wp-block-latest-posts a {color: #000;}
body {text-shadow: 1px 1px #cccccc}
.site.grid-container {padding: 0 10px;}
body.single article .entry-title {font-weight: bolder;}
.widget-area .widget {
    padding: 0;
}
.wp-block-latest-posts li {
        border-bottom: 1px solid #ccc;
    padding-bottom: 11px;
}
.wp-block-latest-posts {
    padding: 0 25px 25px 25px;
}
.h3-blue {
    padding: 20px;
    color: #000;
    box-shadow: 0px 7px 9px -6px #000;
    border-radius: 10px;
    width: calc(100% + 80px);
    margin-left: -40px;
    font-weight: 600;
}
ul h3 {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 25px;
}
.single header .entry-title {
    margin-bottom: 15px;
}
#ez-toc-container {
    width: 100%;
    margin-bottom: 6%;
}
main img {
    border-radius: 10px;
    box-shadow: 0 2px 9px 2px #ccc;
	aspect-ratio: 16 / 9;
	aspect-ratio: attr(width) / attr(height);
}
.single .post-navigation {
    display: none;
}
/* Grid container for posts */
body:not(.single ) .site-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 columns */
    gap: 20px; /* Space between posts */
}

body:not(.single) .site-main > * {
    margin-bottom: 0;
}

body:not(.single) .page-header {
    padding: 25px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 1px 0px 12px #cccccc;
}

body:not(.single) .site-main .post .read-more {
    display: block;
    background: #000;
    color: #fff;
    text-decoration: none;
    text-align: center;
    margin-left: auto;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    text-shadow: 0 0 #cccccc;
	margin-top: 15px;
}

body:not(.single) .site-main .post .inside-article {
    padding: 20px;
    border-radius: 8px;
	
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

body:not(.single) .site-main article.post:hover {
    box-shadow: 0px 2px 14px #cccccc;
	transition: box-shadow .1s ease-in-out;
}

body:not(.single) .site-main .post .entry-meta {
    border-top: 1px solid #cccccc;
    padding-top: 15px;
    margin-top: 1em;
    display: flex;
    justify-content: space-between;
}

body:not(.single) .site-main .post .entry-meta a {
    color: #000000;
    text-decoration: none;
}

/* Ensure each post is styled like a card */
body:not(.single) .post h2 {
    font-size: 1.25rem; 
    font-weight: normal; 
    margin: 0 0 15px; 
    line-height: 1.5; 
}

body:not(.single) .post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Make post images responsive */
body:not(.single) .post img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
	 aspect-ratio: attr(width) / attr(height);
}

/* Adjust layout for smaller screens */
@media (max-width: 768px) {
	h3 {
		font-size: 20px !important;
	}
	h1.entry-title {
      font-size: 25px;
	}
    body:not(.single) .site-main {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

@media (max-width: 480px) {
    body:not(.single) .site-main {
        grid-template-columns: 1fr; /* 1 column for mobile devices */
    }
}


/* ----------------------------------------------------Product Style*/
.product-wrapper .post-content h3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-wrapper .post-content del {
    color: #ccc;
}

.product-wrapper .post-content .amountsavedfloat {
    color: #ff0000;
}

@media (min-width: 821px) {
    .product-wrapper {
        width: 75%;
        margin: 0 auto;
    }

    .product-wrapper .product-img,
    .product-wrapper .product-link {
        width: 25%;
    }

    .product-wrapper .post-content {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .product-wrapper .product-content {
        width: 50%;
    }

    .product-wrapper .product-link {
        text-align: right;
    }

    .product-wrapper .product-img img {
        width: 100%;
        /*height: 100%;*/
        padding: 30px 45px;
    }
}


.product-wrapper .product-price * {
    margin-bottom: 8px;
}

@media (max-width: 820px) {
    .product-wrapper .product-img,
    .product-wrapper .product-link {
        width: 100%;
        text-align: center;
    }

    .product-wrapper .post-content {
        width: 100%;
        display: inline-block;
    }

    .product-wrapper .product-content {
        width: 100%;
        text-align: center;
    }

    .product-wrapper .product-link.product-link {
        text-align: center;
        margin: 20px 0;
    }

    .product-wrapper .product-img img {
        width: 65%;
        /*height: 100%;*/
        padding: 30px 45px;
    }

    .product-wrapper {
        width: 100%;
    }
}

.product-wrapper .product-img img {
    transition: transform .2s;
}

.product-wrapper .product-img img:hover {
    transform: scale(1.3);
}

.product-wrapper .item .product-details ul li {
    margin: 10px 0 8px
}

.product-wrapper .item {
    border: 1px solid #4299E1;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 0 3px #4299E1
}

.product-wrapper .product-details {
    display: none;
}

.product-wrapper .product-details.details_open {
    display: block;
}

.product-wrapper .product-link,
.product-wrapper .product-content {
    display: block;
    margin: auto;
    align-items: center;
    justify-content: center;
}

.product-wrapper .product-content {
    padding: 10px 20px;
}

.product-wrapper .product-content a {
    cursor: pointer;
    margin: 20px 0;
    display: inline-block;
    width: auto;
}

.product-wrapper .product-content a,
.product-wrapper .product-link a {
    color: #ffffff;
    font-weight: 400;
    border: 0;
    border-radius: 6px;
    text-decoration: none;
}

.product-wrapper .product-content a,
.product-wrapper .product-link a {
    background: linear-gradient(180deg, #12529f 0%, #3a87c9 33%, #4299E1 66%, #4299E1 100%);
    padding: 5px 10px;
}

.aw_btn,
.product-wrapper .product-link a {
    padding: 14px 10px;
    background: rgb(247, 209, 1);
    background: linear-gradient(90deg, rgba(247, 209, 1, 1) 0%, rgba(239, 192, 35, 1) 49%);
}

.product-wrapper .product-content a:hover,
.product-wrapper .product-link a:hover {
    box-shadow: 0 1px 10px #ccc;
}

/* ----------------------------------------------------Product Style*/
