/*
 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
*/

/*---rankmath---*/
.wp-block-rank-math-toc-block {
	position:relative;
}

.wp-block-rank-math-toc-block h2 {
    background: #e9b541;
    padding-left: 10px;
    cursor: pointer;
    
}
 
.wp-block-rank-math-toc-block h2:after {
 font-size: 12px !important;
    font-weight: normal !important;
	content: "click to expand";
        margin: 5px;
	border-style: solid;
 
}

.wp-block-rank-math-toc-block nav{
	
	max-height: 0;
	overflow:hidden;
}
.wp-block-rank-math-toc-block input:checked+h2~nav {
	max-height: 100vh;
	overflow:visible;
}


/* Rank Math FAQ / TOC List Item */
.rank-math-list-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;          /* clean light border */
    border-radius: 8px;                 /* smoother corners */
    margin: 1.2em auto;
    padding: 14px 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,.05); /* soft elevation */
    transition: all 0.25s ease;
}

/* Hover effect for better UX */
.rank-math-list-item:hover {
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* FAQ question spacing */
.rank-math-list-item h3,
.rank-math-list-item h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

/* FAQ answer text */
p.schema-faq-answer {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #374151;
}

/*---rankmath---*/

.inside-navigation {
	    -webkit-box-shadow: 0px 3px 20px #1e3c2ecf;
}
 
.mailster-wrapper,
.footer-widgets-container,
.featured-image img {
box-shadow: rgba(23, 43, 99, .14) 0 7px 28px;
}

 
 

.sidebar .widget, .footer-widgets .widget {
    font-size: 18px;
}
 
.inside-article .wp-block-image figcaption , .rank-math-breadcrumb p  {
    color: #0a0101 !important;
}
 

<style id="wp-custom-css">
		/*---elementor heading ---*/	
	@media (max-width: 769px) {
	 
		.elementor-widget-container h2, .elementor-icon-box-title a {
		line-height : 1.5em !important;
			font-size : 26px !important;
	 
	}
} 
	/*---elementor heading ---*/	
	
		/*---article h2 ---*/	
	.inside-article h2 {
    border-bottom: 3px solid #F0F4F8;
    padding-top: 1rem;
    padding-bottom: 0.825rem;
	}

.inside-article h3 {
    border-bottom: 2px solid #F0F4F8;
    padding-top: 1rem;
    padding-bottom: 0.825rem;
	}
		/*---article h2 ---*/
/* theme change */
@media (max-width: 768px) {
.entry-meta {
    font-size: 14px;
}
}
.inside-article {
	border-bottom: 1px solid rgba(0,0,0,.05);
}

.sidebar .widget {
	box-shadow: rgba(23,43,99,.3) 0 7px 28px;
	border-radius: 5px;
}

	.sidebar .widget:first-child  {
	border: 5px solid #011b53;
}

.widget-area .widget {
    padding: 5px;
}

/* .sidebar .widget:first-child {
	background-color: #2e39bf;
	color: #fff;
} */

@media (min-width: 769px) {
	.post-image-aligned-left .post-image img {
		margin-top: -20px;
		border-radius: 10px;
    box-shadow: rgba(23,43,99,.2) 0 7px 28px!important;
	}
} 

@media( max-width: 769px ) {  
  .inside-article .post-image a img {
    margin: -1.1em 1em 0 0 !important;
  }
}

.alsoread {
    font-weight: 900;
    border: 1px solid #dcdee3;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    color: #16a085;
    padding: 15px;
    background: linear-gradient(to right,#eee,#eee);
    border-left: 3px solid #b11f24;
    font-size: 20px;
}

/* Breadcrumb Style */
.rank-math-breadcrumb p {
    padding: 10px 10px 10px 20px;
    background: #fafafa;
   	 
   	font-size: 14.5px;
		box-shadow: rgba(23,43,99,.2) 0 7px 28px !important;
		border-radius: 5px;
}

/* Last Widget Sticky */
@media (min-width: 769px) {
    .site-content {
        display: flex;
    }
    .inside-right-sidebar {
        height: 100%;
    }
.inside-right-sidebar aside:last-child {
        position: -webkit-sticky;
        position: sticky;
        top: 10px;
	}
}

code {
	background: rgba(0,0,0,.05);
  	padding: 2px 5px;
	border-radius: 5px;
	font-size: inherit;
	font-family: inherit;
	font-weight: 700;
}

pre.wp-block-code code{
	background: none!important;
	font-weight: normal!important;
}

/* wpsp last widget code*/
.widget_wpsp_widget .wp-show-posts:not(.wp-show-posts-columns) .wp-show-posts-single:not(:last-child) {
    margin-bottom: 0.8em !important;
		color: #fff;
}
.one-container.archive .post:not(:last-child), .one-container.blog .post:not(:last-child) {
    padding-bottom: 0 !important;
	 
}


/* Read More Style */
a.read-more.button {
	font-size: 16px;
    background-color: rgba(255, 255, 255, 0);
    color: #115cfa;
    text-decoration: none;
    background-image: linear-gradient( transparent 2px, #2ed392 2px, #2ed392 4px, transparent 4px ), linear-gradient( transparent 2px, #d8dce9 2px, #d8dce9 4px, transparent 4px );
    background-size: 0% 6px, 100% 6px;
    background-position: 0 bottom, 0 bottom;
    transition: background-size 0.3s ease-in-out;
    background-repeat: no-repeat;
    padding: 10px;
	font-weight: bolder;
}

a.read-more.button:hover{
	color:#115cfa;
	background-size: 100% 6px;
	background-color: #115cfa00
}

/* Image Caption */
.inside-article .wp-block-image figcaption, .wp-block-table>figcaption{
	text-align:center;
	font-size:15px;
	color:#95a5a6;
}

/* Image Style */
.wp-block-image img{
	border-radius: 5px;
  box-shadow: rgba(23,43,99,.2) 0 7px 28px!important;
}

.wp-block-image.my-class img {
	box-shadow: none!important;
	border: none;
}



.entry-content a:not(.button):not(.wp-block-button__link):not(.gb-button) {
	text-decoration: none;
    background-image:
      linear-gradient(
          transparent 2px,
          #2ed392 2px,
          #2ed392 4px,
          transparent 4px
      ),
      linear-gradient(
          transparent 2px,
          #d8dce9 2px,
          #d8dce9 4px,
          transparent 4px
      );
    background-size: 0% 6px, 100% 6px;
    background-position: 0 bottom, 0 bottom;
    transition: background-size 0.3s ease-in-out;
    background-repeat: no-repeat;
   	padding-bottom: 4px;
	font-weight: 700;
}

.entry-content a:hover:not(.button):not(.wp-block-button__link){
	color: #115cfa;
    background-size: 100% 6px;
}

blockquote {
	background: #dcdcdc54;
	border-left: 3px solid #b11f24;
    padding: 15px;
    font-style: inherit;
	font-size: 18px;
    margin: 0 0 1.5em;
}

/* other */
 

#wp-subscribe.wp-subscribe-2, #wp-subscribe.wp-subscribe-1{
	margin: 15px 0;
	border-radius: 5px;
}

.gb-container.clickable-container .gb-inside-container {
    position: relative;
}

.gb-container.clickable-container a:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
}

ol, ul {
    margin: 0 0 1.5em 2em;
}		

 
			
/* social share button */
.dg-float-social-wrapper {
	position: fixed;
	top: 65%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	z-index: 9999;
}

.dg-float-social-sharing {
	display: flex;
	flex-wrap: nowrap;
	flex-direction: column;
	align-items: flex-start;
	min-height: 40px;
	font-size: 12px;
	padding: 5px 10px;
}

.dg-float-social-sharing svg {
	position: relative;
	top: .5em;
	fill: #fff
}

a.dg-social-sharing:hover,
a.dg-float-social-sharing:hover {
	opacity: .8
}

.dg-social-wrapper {
	margin: 30px 0;
	font-size: 0
}

.dg-social-wrapper span {
	font-weight: bold;
	padding-right: 10px;
	font-size: 16px;
}

.dg-social-sharing {
	font-size: 17px;
	padding: 7px 20px;
	background-image: none !important;
}

@media only screen and (max-width:600px) {
	.dg-social-sharing {
		font-size: 17px;
		padding: 7px 13px;
		display: inline-block;
	}
}

.dg-social-sharing svg {
	position: relative;
	top: .15em;
	display: inline-block;
	fill: #fff;
}

.dg-social-sharing:first-of-type {
	border-radius: 100px 0 0 100px;
}

.dg-social-sharing:last-of-type {
	border-radius: 0 100px 100px 0;
}

.dg-social-facebook {
	background-color: rgba(59, 89, 152, 1);
}

.dg-social-linkedin {
	background-color: rgba(59, 89, 152, 1);
}

.dg-social-x {
	background-color: rgba(0, 0, 0, 1);
}

.dg-social-telegram {
	background-color: rgba(29, 161, 242, 1);
}

.dg-social-pinterest {
	background-color: rgba(189, 8, 28, 1);
}

.dg-social-whatsapp {
	background-color: rgba(37, 211, 102, 1);
}

.dg-social-reddit {
	background-color: rgba(255, 87, 0, 1);
}
	
/* Author box */
 


/* related post box below content */
.rm-related-posts {
    background-color: #fff;
	padding: 15px 20px 50px 20px;
	margin-top: 20px;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	box-shadow: rgba(23, 43, 99, .14) 0 7px 28px;
	
}

.rm-related-posts h2 {
    margin-bottom: 25px;
    
}

.rm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rm-related-item {
    background: #fff; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: .3s ease;
	padding: 5px 2px 0px 2px;
}

.rm-related-item:hover {
    transform: translateY(-5px);
}

.rm-related-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
	
}

.rm-related-item h3 {
    font-size: 20px;
    line-height: 1.3;
	padding: 12px;
}

@media(max-width: 768px) {
    .rm-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 480px) {
    .rm-related-grid {
        grid-template-columns: 1fr;
    }
}


</style>