/*
	Theme Name:   Magazine 365scores EN
	Theme URI:    https://www.365scores.com/es/news/
	Description:  Child theme for 365scores sports magazine in Spanish
	Author:       365scores
	Author URI:   https://365scores.com
	Template:     jannah
	Version:      1.0.1
	License:      license purchased
	License URI:  http://themeforest.net/licenses/regular_extended
	Text Domain:  365scores
*/


/* write custom css after this line */

/* Theme font declarations */
@font-face {
    font-family: '365 Sans Medium';
    src: url('assets/fonts/365_Sans_Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: '365 Sans DemiBold';
    src: url('assets/fonts/365_Sans_DemiBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/*****************************************/
/* Styles for gallery block changed to carousel */
.wp-block-gallery .slick-prev:before, .slick-next:before {
	color: #2194ff;
}
.wp-block-gallery {
	margin: 0 15%;
}
/* Style for the slider container */
.wp-block-gallery.slick-slider {
    margin-bottom: 40px; /* Add space for caption */
}
/* Style for the slide */
.wp-block-gallery .slick-slide {
    position: relative;
}
/* Style for the caption */
.wp-block-gallery.slick-slider figure.wp-block-image figcaption {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    background: none;
	color: #2194ff;
    text-align: center;
    margin-top: 10px;
}
/* Ensure images maintain aspect ratio */
.wp-block-gallery .slick-slide img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
/* Hide captions in cloned slides */
.wp-block-gallery .slick-slide.slick-cloned figcaption {
    display: none;
}

/*****************************************/
/*Didomi GDPR */
#didomi-host.didomi-host #didomi-notice {
	background-color: #fff !important;
}

/*****************************************/
/* Bottom sticky ad */
.stream-item-below-post .ad_close_button {
	display: none;
}
@media (max-width: 768px) {
	.stream-item-below-post {
	  position: fixed;
	  bottom: 40px;
	  left: 0;
	  right: 0;
		margin: 0!important;
	}
	.stream-item-below-post .stream-item-size {
		background: #fff;
	}
	.stream-item-below-post .ad_close_button{
		display: block;
		width: 20px;
		right: 5px;
		top: -20px;
		position: absolute;
	}
}

/* CSS for Ad Units - Add to your theme's style.css */

/* Container for AdSense ads */
.adsense-ad-container {
    margin: 20px 0;
    text-align: center;
    clear: both;
}

/* Hide both ad types by default */
.adsense-ad-container .desktop-ad,
.adsense-ad-container .mobile-ad {
    display: none;
    text-align: center;
}

/* Show desktop ads on larger screens */
@media (min-width: 768px) {
    .adsense-ad-container .desktop-ad {
        display: block;
    }
}

/* Show mobile ads on smaller screens */
@media (max-width: 767px) {
    .adsense-ad-container .mobile-ad {
        display: block;
    }
}


/**
 * Premium Blocks CSS
 * Styles for custom blocks in the "365 Premium" category
 */

/* Hero Block */
.premium-hero-block {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.premium-hero-block .background {
    position: relative;
    width: 100%;
}

.premium-hero-block .desktop-image,
.premium-hero-block .mobile-image {
    width: 100%;
}

.premium-hero-block .hero-img {
    display: block;
    width: 100%;
    height: auto;
}

.premium-hero-block .mobile-image {
    display: none;
}

.premium-hero-block .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 60px 40px;
    pointer-events: none;
}

.premium-hero-block h1 {
    font-family: '365 Sans DemiBold', sans-serif;
    font-size: 65px;
    line-height: 1.3;
    text-transform: uppercase;
    max-width: 68%;
    color: #ffffff;
    margin: 0 0 20px 0;
    pointer-events: auto;
    overflow-wrap: normal;
}

#the-post .entry-content .premium-hero-block p {
    font-family: '365 Sans DemiBold', sans-serif;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #ffffff;
    margin: 0;
    pointer-events: auto;
}

/* Mobile styles */
@media (max-width: 767px) {
    .premium-hero-block .desktop-image {
        display: none;
    }
    
    .premium-hero-block .mobile-image {
        display: block;
    }
    
    .premium-hero-block .content {
        padding: 8% 15px;
    }
    
    .premium-hero-block h1 {
        line-height: 1.05;
        max-width: none;
        font-size: 55px;
    }
    
    #the-post .entry-content .premium-hero-block p {
        font-size: 26px;
        max-width: 80vw;
    }
}

/* Text and Background Block */
.premium-text-background-block {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 30px;
}

.premium-text-background-block .background {
    position: relative;
    width: 100%;
}

.premium-text-background-block .desktop-image,
.premium-text-background-block .mobile-image {
    width: 100%;
}

.premium-text-background-block .background-img {
    display: block;
    width: 100%;
    height: auto;
}

.premium-text-background-block .mobile-image {
    display: none;
}

.premium-text-background-block .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    pointer-events: none;
}

.premium-text-background-block h2 {
    font-family: '365 Sans DemiBold', sans-serif;
    font-size: 30px;
    line-height: 1;
    text-align: center;
    margin: 0 0 20px 0;
    max-width: 80%;
    pointer-events: auto;
}

#the-post .entry-content .premium-text-background-block p {
    font-family: '365 Sans', sans-serif;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
    margin: 0;
    max-width: 80%;
    pointer-events: auto;
}

/* Mobile styles for Text and Background Block */
@media (max-width: 767px) {
    .premium-text-background-block .desktop-image {
        display: none;
    }
    
    .premium-text-background-block .mobile-image {
        display: block;
    }

    .premium-text-background-block .mobile-image img {
    	min-height: 550px;
    	object-fit: contain;
    }

    .premium-text-background-block .content {
    	padding: 20px 8%;
    }
    
    .premium-text-background-block h2 {
        font-size: 22px;
    }
    
    /* Text paragraph size remains the same for mobile */
}

/**
 * Title and Table Block Styles
 */

/* Main container */
.premium-title-table-block {
    position: relative;
    width: 100%;
    overflow: visible; /* Changed from 'hidden' to allow content to extend */
    margin: 30px 0;
/*    min-height: 100px;*/
}

.premium-title-table-block .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.premium-title-table-block .desktop-image,
.premium-title-table-block .mobile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.premium-title-table-block .background-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.premium-title-table-block .mobile-image {
    display: none;
}

/* Content container */
.premium-title-table-block .content {
    position: relative;
    width: 100%;
    z-index: 5;
    padding: 40px 30px;
}

/* Mobile styles */
@media (max-width: 768px) {
	.premium-title-table-block {
        padding-bottom: 20px; /* Add padding to the bottom of container */
        margin-bottom: 50px; /* Increase bottom margin */
    }

    .premium-title-table-block .desktop-image {
        display: none;
    }
    
    .premium-title-table-block .mobile-image {
        display: block;
    }
    
    .premium-title-table-block .content {
        padding: 20px 15px;
    }
    .premium-title-table-block .table-section:last-child {
        margin-bottom: 20px;
    }
    .premium-title-table-block .background {
        overflow: visible;
    }
}

/* Main title */
.premium-title-table-block .main-title {
    font-family: '365 Sans DemiBold', sans-serif;
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 30px;
    text-align: center;
}

/* Table section */
.premium-title-table-block .table-section {
    margin-bottom: 40px;
    padding: 20px;
    width: 100%;
}

/* Table titles */
.premium-title-table-block .table-title {
    font-family: '365 Sans Medium', sans-serif;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 15px;
    text-align: center;
}

/* Table description */
.premium-title-table-block .table-description {
    font-size: 18px;
    line-height: 1.5;
    margin-top: 30px;
    text-align: center;
    font-family: '365 Sans Medium', sans-serif;
    padding: 0 12%;
}

/* Table styling */
.premium-title-table-block .premium-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

/* Table header */
.premium-title-table-block .table-header {
    display: flex;
    background-color: #E08A83;
    font-family: '365 Sans DemiBold', sans-serif;
    font-size: 20px;
}

/* Table rows */
.premium-title-table-block .table-row {
    display: flex;
    background-color: #E08A8373; 
    font-size: 18px;
    font-family: '365 Sans Medium', sans-serif;
}

/* Table cells */
.premium-title-table-block .table-cell {
    padding: 12px 15px;
    flex: 1;
    display: flex;
    align-items: center;
    border: 3px solid #fff;
/*    justify-content: center;*/
}

.premium-title-table-block .table-cell:first-child {
	border-left: none;
}
.premium-title-table-block .table-cell:last-child {
	border-right: none;
}
.premium-title-table-block div:nth-last-child(2) .table-cell

/* Header cells */
.premium-title-table-block .header-cell {
    border-top: none;
}

/* 3-column table */
.premium-title-table-block .table-3-columns .table-cell {
    width: 33.33%;
}

/* 4-column table */
.premium-title-table-block .table-4-columns .table-cell {
    width: 25%;
}

/* Mobile styles */
@media (max-width: 768px) {
    .premium-title-table-block {
    	width: 100vw;
    	margin-left: -15px;
    	margin-right: -15px;
    }
    .premium-title-table-block .main-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .premium-title-table-block .table-title {
        font-size: 18px;
    }
    
    .premium-title-table-block .table-description {
        font-size: 16px;
        padding: 0;
    }
    
    /* Make tables responsive */
    .premium-title-table-block .table-header,
    .premium-title-table-block .table-row {
/*        flex-direction: column;*/
    }
    
    .premium-title-table-block .table-cell {
/*        width: 100% !important;*/
        border-width: 2px;
        font-size: 14px;
        line-height: 1.6;
        padding: 8px;
    }
    
    .premium-title-table-block .table-header .table-cell {
/*        text-align: center;*/
    }
    
    /* Remove bottom border for last cell in each row */
    .premium-title-table-block .table-row .table-cell:last-child {
    }
    
    /* Add spacing between rows */
    .premium-title-table-block .table-row {
/*        margin-bottom: 10px;*/
    }
}

