/*
Theme Name: GeneratePress Child
Theme URI: https://example.com/
Description: Child theme for GeneratePress
Author: Hassan Zobeen
Template: generatepress
Version: 1.0
Text Domain: generatepress-child
*/


/* =========================================
   GLOBAL TYPOGRAPHY (WatchWrestling Scale + Slightly Bigger)
   ========================================= */

body,
button,
input,
select,
textarea {
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    /* Bumped from 13px */
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Open Sans", sans-serif;
    line-height: 1.3;
    margin: 0 0 15px;
}

h1 {
    font-size: 26px;
}


/* Bumped from 24px */

h2 {
    font-size: 22px;
}


/* Bumped from 20px */

h3 {
    font-size: 18px;
}


/* Bumped from 16px */

h4 {
    font-size: 16px;
}


/* Bumped from 14px */

h5,
h6 {
    font-size: 14px;
}


/* Bumped from 13px */


/* =========================================
   1. CSS VARIABLES
   ========================================= */

:root {
    --gp-color-primary: #1e73be;
    --gp-color-text: #333333;
    --gp-color-background: #ffffff;
    --gp-color-border: #eaeaea;
    --nav-bg: #333333;
    --nav-text: #ffffff;
    --nav-text-hover: #ffffff;
    --nav-item-bg-hover: #444444;
    --nav-item-bg-active: #222222;
    --nav-item-padding: 0 15px;
    --nav-font-weight: 700;
    --search-bg: #ffffff;
    --search-text: #333333;
    --search-border: #cccccc;
    --search-button-bg: #444444;
    --search-button-text: #ffffff;
    --search-button-hover-bg: #1A1A1A;
    --grid-bg: var(--gp-color-background);
    --grid-text: var(--gp-color-text);
    --grid-title-color: #111111;
    --grid-btn-bg: #444444;
    --grid-btn-text: #ffffff;
    --grid-btn-hover-bg: #1A1A1A;
}


/* =========================================
   2. HEADER & SEARCH BOX
   ========================================= */

.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-branding {
    flex: 1;
    min-width: 0;
}

.site-title {
    font-family: "Open Sans", sans-serif;
    font-weight: 800;
    font-size: 26px;
    /* Adjusted to match new scale */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: #111111;
    text-decoration: none;
}

.my-header-search {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.my-header-search form {
    display: flex;
    width: 100%;
    max-width: 100%;
}

.my-header-search input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--search-border);
    border-right: none;
    border-radius: 0;
    font-size: 14px;
    background-color: var(--search-bg);
    color: var(--search-text);
}

.my-header-search input[type="search"]:focus {
    outline: none;
    border-color: var(--gp-color-primary);
    z-index: 2;
}

.my-header-search button[type="submit"] {
    background-color: var(--search-button-bg);
    color: var(--search-button-text);
    border: 1px solid var(--search-button-bg);
    padding: 12px 20px;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.my-header-search button[type="submit"]:hover {
    background-color: var(--search-button-hover-bg);
}

@media (max-width: 768px) {
    .inside-header {
        flex-direction: column;
        align-items: stretch;
    }
    .site-branding,
    .my-header-search {
        flex: 1 1 100%;
        justify-content: center;
    }
    .site-title {
        text-align: center;
        margin-bottom: 15px;
    }
}


/* =========================================
   3. NAVIGATION
   ========================================= */

.main-navigation {
    background-color: var(--nav-bg);
}

.main-navigation ul li a {
    color: var(--nav-text);
    font-weight: var(--nav-font-weight);
    padding: var(--nav-item-padding);
    font-size: 14px;
    /* Bumped from 13px */
}

.main-navigation ul li a:hover,
.main-navigation ul li:hover>a {
    color: var(--nav-text-hover);
    background-color: var(--nav-item-bg-hover);
}

.main-navigation ul li.current-menu-item>a {
    background-color: var(--nav-item-bg-active);
}


/* =========================================
   4. SIDEBAR WIDGETS (Recent Posts)
   ========================================= */

.sidebar .widget {
    margin-bottom: 30px;
}

.sidebar .widget h2,
.sidebar .widget h3 {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    /* Bumped from 15px */
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    text-transform: uppercase;
}


/* Recent Posts List Styling */

.widget_recent_entries ul li,
.widget-area ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.widget_recent_entries ul li:last-child,
.widget-area ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


/* Thumbnail */

.widget_recent_entries ul li img,
.widget-area ul li img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 2px;
}


/* Title */

.widget_recent_entries ul li a,
.widget-area ul li a {
    font-weight: 700;
    font-size: 14px;
    /* Bumped from 13px */
    line-height: 1.3;
    color: #111;
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
}

.widget_recent_entries ul li a:hover {
    color: var(--gp-color-primary);
}


/* Date */

.widget_recent_entries ul li .post-date,
.widget_recent_entries ul li time,
.widget_recent_entries ul li span {
    font-size: 12px;
    /* Bumped from 11px */
    color: #888;
    display: block;
    margin-top: 2px;
}


/* =========================================
   5. MAIN GRID & CARDS
   ========================================= */

.front-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.front-grid-main-title {
    font-family: "Droid Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--grid-title-color);
    text-transform: uppercase;
    border-bottom: 2px solid var(--gp-color-primary);
    display: inline-block;
    padding-bottom: 5px;
}

/* Grid Layout: Strictly 4 -> 3 -> 2 -> 1 */
.front-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .front-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .front-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Card Styling */
.grid-card-item {
    background: var(--grid-bg);
    border: 1px solid var(--gp-color-border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Keeps cards uniform height */
}

.grid-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid-card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background-color: #000;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.grid-card-item:hover .card-img {
    opacity: 0.4;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.grid-card-item:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 40px;
    height: 40px;
    fill: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* =========================================
   STRICT 2-LINE TITLE FIX
   ========================================= */
.grid-card-title{
    font-size:13px;
    font-weight:700;
    line-height:18px;
    margin:10px;
    padding:0;

    overflow:hidden;

    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;

    line-clamp:2;

    block-size:36px;
}

/* =========================================
   6. YOU MAY ALSO LIKE (Single Post Bottom)
   ========================================= */

.related-posts-section {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.related-posts-title {
    font-family: "Droid Sans", sans-serif;
    /* Section Title Font */
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}


/* Ensure the grid inside single posts respects the content width */

.single-post .front-grid-wrapper {
    margin-bottom: 0;
}


/* =========================================
   7. LOAD MORE BUTTON
   ========================================= */

.load-more-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.load-more-button {
    background-color: var(--grid-btn-bg);
    color: var(--grid-btn-text);
    border: 1px solid #ccc;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.load-more-button:hover {
    background-color: var(--grid-btn-hover-bg);
}

.load-more-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/* --- Custom Recent Posts Widget (Professional Look) --- */

.widget_gp_custom_recent_posts ul.custom-recent-posts-list,
.widget_custom_recent_posts ul.custom-recent-posts-list,
aside.widget ul.custom-recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_gp_custom_recent_posts ul.custom-recent-posts-list li,
.widget_custom_recent_posts ul.custom-recent-posts-list li,
aside.widget ul.custom-recent-posts-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.widget_gp_custom_recent_posts ul.custom-recent-posts-list li:last-child,
.widget_custom_recent_posts ul.custom-recent-posts-list li:last-child,
aside.widget ul.custom-recent-posts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget_gp_custom_recent_posts .crp-thumb-link,
.widget_custom_recent_posts .crp-thumb-link {
    display: block;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.widget_gp_custom_recent_posts .crp-thumb,
.widget_custom_recent_posts .crp-thumb {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.widget_gp_custom_recent_posts .crp-thumb-link:hover .crp-thumb,
.widget_custom_recent_posts .crp-thumb-link:hover .crp-thumb {
    transform: scale(1.05);
}

.widget_gp_custom_recent_posts .crp-content,
.widget_custom_recent_posts .crp-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.widget_gp_custom_recent_posts .crp-title,
.widget_custom_recent_posts .crp-title {
    font-weight: 700;
    font-size: 15px;
    /* Bumped from 14px */
    line-height: 1.4;
    color: #222222;
    text-decoration: none;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.widget_gp_custom_recent_posts .crp-title:hover,
.widget_custom_recent_posts .crp-title:hover {
    color: #1e73be;
}

.widget_gp_custom_recent_posts .crp-time,
.widget_custom_recent_posts .crp-time {
    font-size: 12px;
    /* Bumped from 11px */
    color: #888888;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.widget_gp_custom_recent_posts .crp-time::before,
.widget_custom_recent_posts .crp-time::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #1e73be;
    border-radius: 50%;
}


/* =============================
   CONTAINER
   ============================= */

.episodeRepeater {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 10px auto;
    padding: 10px;
    text-align: center;
    background: transparent;
    box-sizing: border-box;
}


/* =============================
   HEADINGS
   ============================= */

.episodeRepeater h1 {
    font-family: "Droid Sans", sans-serif;
    /* Section Title Font */
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #d32f2f;
    margin: 0 0 20px;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    line-height: 1.4;
}


/* =============================
   BUTTONS
   ============================= */

.episodeRepeater a {
    display: inline-block;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 4px;

    background: linear-gradient(
        to bottom,
        #4d4dff 0%,
        #1a1aff 40%,
        #0000ff 70%,
        #0000cc 100%
    );

    border: 1px solid #0000b3;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.4),
        0 1px 2px rgba(0,0,0,.15);

    transition: all .2s ease;
}

.episodeRepeater a:hover {
    background: linear-gradient(
        to bottom,
        #6666ff 0%,
        #3333ff 40%,
        #0d0dff 70%,
        #0000e6 100%
    );
}

.post-featured-image {
    margin: 30px auto;
    text-align: center;
}

.post-featured-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}


/* =============================
   COUNTDOWN TIMER (Clean Box Style)
   ============================= */

.counter-wrapper {
    display: block;
    width: 100%;
    text-align: center;
    margin: 25px 0;
}

.countertimer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.countertimer label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    border: 2px solid #0056b3;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    background: transparent;
}

.countertimer span {
    display: block;
    color: #0056b3;
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    font-family: "Open Sans", sans-serif;
    /* Replaced Arial */
}

.countertimer small {
    display: block;
    width: 100%;
    font-size: 12px;
    /* Bumped from 11px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555555;
    text-align: center;
    position: static;
}


/* =============================
   FOOTER LINKS
   ============================= */

#colophon a {
    color: #000;
    margin-left: 10px;
    margin-right: 10px;
    line-height: 20px;
}


/* =============================
   RESPONSIVE DESIGN
   ============================= */

@media screen and (max-width: 768px) {
    .episodeRepeater {
        margin: 20px auto;
    }
    .episodeRepeater h1 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    .countertimer label {
        width: 80px;
        height: 80px;
    }
    .countertimer span {
        font-size: 30px;
    }
}

@media screen and (max-width: 480px) {
    .episodeRepeater {
        padding: 5px;
    }
    .episodeRepeater h1 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    .episodeRepeater a {
        padding: 10px 18px;
        font-size: 13px;
        margin: 4px;
    }
    .countertimer {
        gap: 10px;
    }
    .countertimer label {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }
    .countertimer span {
        font-size: 24px;
        margin-bottom: 4px;
    }
    .countertimer small {
        font-size: 10px;
    }
}

@media screen and (max-width: 360px) {
    .countertimer label {
        width: 60px;
        height: 60px;
    }
    .countertimer span {
        font-size: 20px;
    }
    .episodeRepeater a {
        width: 100%;
        margin: 5px 0;
        box-sizing: border-box;
    }
}

.generatepress .episodeRepeater,
.generatepress .site-content .episodeRepeater {
    clear: both;
}