/*
Theme Name: POPSHOCK
Theme URI: https://www.iteducation.pk/
Author: Dilshad Noshad
Author URI: https://wordpress.org/
Description: POPSHOCK is your all-in-one solution for IT training, whether you're a center, institution, or online platform. With its sleek design and responsive interface, POPSHOCK offers seamless management of courses, multimedia support, and instructor profiles. Simplify enrollment, foster collaboration with discussion forums, and customize to your heart's content. Boost visibility with SEO-friendly features and rely on dedicated support. Join the revolution in POPSHOCK with POPSHOCK WordPress theme today!
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 8.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iteducation
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready

POPSHOCK WordPress Theme, (C) 2021 WordPress.org
POPSHOCK is distributed under the terms of the GNU GPL.
*/


/**
1. Normalize
2. Theme Specific CSS
*/


/* 1. Normalize */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
  }
  
  /* Sections
     ========================================================================== */
  
  /**
   * Remove the margin in all browsers.
   */
  
  body {
    margin: 0;
  }
  
  /**
   * Render the `main` element consistently in IE.
   */
  
  main {
    display: block;
  }
  
  /**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */
  
  h1 {
    font-size: 2em;
    margin: 0.67em 0;
  }
  
  /* Grouping content
     ========================================================================== */
  
  /**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */
  
  hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /* Text-level semantics
     ========================================================================== */
  
  /**
   * Remove the gray background on active links in IE 10.
   */
  
  a {
    background-color: transparent;
  }
  
  /**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */
  
  abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
  }
  
  /**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */
  
  b,
  strong {
    font-weight: bolder;
  }
  
  /**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
  
  code,
  kbd,
  samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /**
   * Add the correct font size in all browsers.
   */
  
  small {
    font-size: 80%;
  }
  
  /**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */
  
  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  
  sub {
    bottom: -0.25em;
  }
  
  sup {
    top: -0.5em;
  }
  
  /* Embedded content
     ========================================================================== */
  
  /**
   * Remove the border on images inside links in IE 10.
   */
  
  img {
    border-style: none;
  }
  
  /* Forms
     ========================================================================== */
  
  /**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */
  
  button,
  input,
  optgroup,
  select,
  textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
  }
  
  /**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */
  
  button,
  input { /* 1 */
    overflow: visible;
  }
  
  /**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */
  
  button,
  select { /* 1 */
    text-transform: none;
  }
  
  /**
   * Correct the inability to style clickable types in iOS and Safari.
   */
  
  button,
  [type="button"],
  [type="reset"],
  [type="submit"] {
    -webkit-appearance: button;
  }
  
  /**
   * Remove the inner border and padding in Firefox.
   */
  
  button::-moz-focus-inner,
  [type="button"]::-moz-focus-inner,
  [type="reset"]::-moz-focus-inner,
  [type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
  }
  
  /**
   * Restore the focus styles unset by the previous rule.
   */
  
  button:-moz-focusring,
  [type="button"]:-moz-focusring,
  [type="reset"]:-moz-focusring,
  [type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
  }
  
  /**
   * Correct the padding in Firefox.
   */
  
  fieldset {
    padding: 0.35em 0.75em 0.625em;
  }
  
  /**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */
  
  legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
  }
  
  /**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */
  
  progress {
    vertical-align: baseline;
  }
  
  /**
   * Remove the default vertical scrollbar in IE 10+.
   */
  
  textarea {
    overflow: auto;
  }
  
  /**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */
  
  [type="checkbox"],
  [type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
  }
  
  /**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */
  
  [type="number"]::-webkit-inner-spin-button,
  [type="number"]::-webkit-outer-spin-button {
    height: auto;
  }
  
  /**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */
  
  [type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
  }
  
  /**
   * Remove the inner padding in Chrome and Safari on macOS.
   */
  
  [type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  
  /**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */
  
  ::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
  }
  
  /* Interactive
     ========================================================================== */
  
  /*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */
  
  details {
    display: block;
  }
  
  /*
   * Add the correct display in all browsers.
   */
  
  summary {
    display: list-item;
  }
  
  /* Misc
     ========================================================================== */
  
  /**
   * Add the correct display in IE 10+.
   */
  
  template {
    display: none;
  }
  
  /**
   * Add the correct display in IE 10.
   */
  
  [hidden] {
    display: none;
  }


/* 2. Theme Specific CSS */

/* General */

:root{
    /* Measurements */
    --wpdevs-big-padding: 60px 0;
    --wpdevs-mobile-padding: 20px 0;
    --wpdevs-light-padding: 0 25px;
    /* Colors */
    --wpdevs-gray1: #7C7C7C;
    --wpdevs-gray2: #F7F7F7;
    --wpdevs-gray3: #DDDDDD;
    --wpdevs-light-blue: #2A92D3;
    --wpdevs-deep-blue: #213C4D;
    --wpdevs-black-blue: #001E32;
    --wpdevs-yellow: #CFAF07;
    --header-text-color: #FFFFFF;
}
*,
::after,
::before {
    box-sizing: border-box;
}
body{
    font-family: 'Poppins', sans-serif;
    font: normal, 21px/2.1rem, 'Poppins', sans-serif;
}
h1{
    font-size: 66px;
    line-height: 70px;
}
h2{
    font-size: 40px;
    line-height: 4.0rem;
    font-weight: bold;
    text-transform: uppercase;
}
h3{
    font-size: 36px;
    line-height: 3.6rem;
    font-weight: bold;
}
h4{
    font-size: 28px;
    line-height: 2.8rem;
    font-weight: bold;
}
h5{
    font-size: 22px;
    line-height: 2.2rem;
    font-weight: bold;
}
p{
    font-size: 15px;
    line-height: 1.7rem;
}
a{
    color: var( --wpdevs-gray1 );
    text-decoration: none;
}
a:hover,
a:visited{
    color: #6d6d6d;
}
img {
    max-width: 100%;
    height: auto;
}

/************** HOME PAGE *****************/

/* Top Bar Section */
.top-bar{ 
    background: #ffffff; 
    color: #000000; 
    padding: 15px 0; 
}
.top-bar .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.searchbox input[type="text"]{
    padding: 7px 10px;
    border: 1px solid #C6C6C6;
}
.searchbox input[type="submit"]{
    padding: 9px 10px;
    background: #000000;
    color: #FFFFFF;
    border: none;
}
@media (max-width: 768px) {
    .searchbox {
        display: none;
    }
    .top-bar .container{
        justify-content: center;
    }
}

/* =========================
   DYNAMIC PAGE COLORS
   ========================= */

body.page-title-home {
    --header-accent: #F83600;
    --header-text-color: #ffffff;
}

body.category-anime,
body.page-title-anime,
body.page-title-anime .popular-posts {
    --popular-ribbon-color: #0077E7; 
    --popular-ribbon-shadow-color: #FFE500; 
    --popular-post-color: #0077E7; 
    --header-accent: #0077E7;
    --header-text-color: #FFE500;
    --popular-text-color: #ffffff;
}

body.category-toys,
body.page-title-toys,
body.page-title-toys .popular-posts {
    --popular-ribbon-color: #7CF4E5; 
    --popular-ribbon-shadow-color: #FF005B; 
    --popular-post-color: #7CF4E5; 
    --header-accent: #7CF4E5;
    --header-text-color: #FF005B;
    --popular-text-color: #000;
}

body.category-infotainment,
body.page-title-infotainment,
body.page-title-infotainment .popular-posts {
    --popular-ribbon-color: #FFE700; 
    --popular-ribbon-shadow-color: #00A92E; 
    --popular-post-color: #FFE700; 
    --header-accent: #FFE700;
    --header-text-color: #00A92E;
    --popular-text-color: #00A92E;
}

body.category-game,
body.page-title-game,
body.page-title-game .popular-posts {
    --popular-ribbon-color: #A2ED14; 
    --popular-ribbon-shadow-color: #8E4AE0; 
    --popular-post-color: #A2ED14; 
    --header-accent: #A2ED14;
    --header-text-color: #8E4AE0;
    --popular-text-color: #8E4AE0;
}

body.category-comic,
body.page-title-comic,
body.page-title-comic .popular-posts {
    --popular-ribbon-color: #FF9900; 
    --popular-ribbon-shadow-color: #00688B; 
    --popular-post-color: #FF9900; 
    --header-accent: #FF9900;
    --header-text-color: #00688B;
    --popular-text-color: #00688B;
}

/* =========================
   DYNAMIC CATEGORY COLORS
   ========================= */

body.category-title-anime,
body.single-post.category-title-anime {
    --popular-ribbon-color: #0077E7; 
    --popular-ribbon-shadow-color: #FFE500; 
    --popular-post-color: #0077E7; 
    --header-accent: #0077E7;
    --header-text-color: #FFE500;
    --popular-text-color: #ffffff;
    --popular-text-category-color: #000;
    --popular-text-title-color: #ffffff;
}

body.category-title-toys,
body.single-post.category-title-toys {
    --popular-ribbon-color: #7CF4E5; 
    --popular-ribbon-shadow-color: #FF005B; 
    --popular-post-color: #7CF4E5; 
    --header-accent: #7CF4E5;
    --header-text-color: #FF005B;
    --popular-text-color: #000;
    --popular-text-category-color: #000;
    --popular-text-title-color: #000;
}

body.category-title-infotainment,
body.single-post.category-title-infotainment {
    --popular-ribbon-color: #FFE700; 
    --popular-ribbon-shadow-color: #00A92E; 
    --popular-post-color: #FFE700; 
    --header-accent: #FFE700;
    --header-text-color: #00A92E;
    --popular-text-color: #00A92E;
    --popular-text-category-color: #fff;
    --popular-text-title-color: #00A92E;
}

body.category-title-game,
body.single-post.category-title-game {
    --popular-ribbon-color: #8E4AE0; 
    --popular-ribbon-shadow-color: #A2ED14; 
    --popular-post-color: #8E4AE0; 
    --header-accent: #8E4AE0;
    --header-text-color: #A2ED14;
    --popular-text-color: #fff;
    --popular-text-category-color: #000;
    --popular-text-title-color: #fff;
}

body.category-title-comic,
body.single-post.category-title-comic {
    --popular-ribbon-color: #FF9900; 
    --popular-ribbon-shadow-color: #00688B; 
    --popular-post-color: #FF9900; 
    --header-accent: #FF9900;
    --header-text-color: #00688B;
    --popular-text-color: #00688B;
    --popular-text-category-color: #fff;
    --popular-text-title-color: #00688B;
}

/* Main Menu */

.menu-area {
	background: var( --wpdevs-gray2 );
}
.main-menu {
    height: 55px;
    display: flex;
    justify-content: center;
    color: var(--header-text-color);
}
.main-menu ul {
    margin: 0;
    padding-left: 0;
}
.main-menu ul li {
    display: inline-block;
    line-height: 55px;
    position: relative;
}
.main-menu ul li.current_page_item > a{
    font-weight: bold;
    color: var(--header-text-color);
}
.main-menu ul li a {
    color: var(--header-text-color);
    padding: 0 30px;
    text-decoration: none;
    display: block;
}
.main-menu ul li a:hover,
.main-menu ul li a:active
{
    color: var( --wpdevs-gray1 );
    transition: .5s all;
}
.main-menu ul li a:focus + ul
{
    display: block;
}
.main-menu li.menu-item-has-children::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc( 50% - 6px);
    width: 0px;
    height: 0px;
    border-top: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #000000;
    border-left: 6px solid transparent;
}
.main-menu ul.sub-menu {
    position: absolute;
    padding-left: 0;
    background-color: #000000;
    z-index: 1;
    text-align: left;
    display: none;
}
.main-menu ul .menu-item-has-children:hover>ul,
.main-menu ul .menu-item-has-children:focus+ul {
    display: block
}
.main-menu ul.sub-menu li {
    width: max-content;
}
.main-menu ul.sub-menu a {
    color: #FFFFFF;
}
.menu-icon,
.check-button {
	cursor: pointer;
	display: none;
}
.menu-icon .bar1, 
.menu-icon .bar2, 
.menu-icon .bar3 {
    width: 28px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.4s;
}
@media (max-width: 767px){
    .menu-icon,
    .check-button {
		display: block;
	}
    .check-button{
        border: none;
        background: transparent;
        height: 55px;
    }
	.main-menu ul{
		position: absolute;
		width: 100%;
		background: #000000;
		left: -999px;
		text-align: left;
		transition: all cubic-bezier(.79,.14,.15,.86) .5s;
        padding: 0;
        margin: 0;
        z-index: 1;
	}
    .main-menu ul:not(.sub-menu){
        margin-top: 55px;
    }
	.main-menu ul li{
		display: block;
		margin: 15px 0;
		line-height: 30px;
	}
	.main-menu ul li a {
		color: #FFFFFF;
	}
    .main-menu ul.sub-menu{
        position: relative;
        top: 0;
        margin-left: 30px;
        display: block;
        width: auto;
    }
    .main-menu ul.sub-menu a{
        color: var( --wpdevs-gray1 );
    } 
    .show-dropdown{
        left: 0 !important;
    }   
    .animate-button .bar1 {
        -webkit-transform: rotate(-45deg) translate(-4px, 4px);
        transform: rotate(-45deg) translate(-4px, 4px);
    }
    .animate-button .bar2 {opacity: 0;}
    .animate-button .bar3 {
        -webkit-transform: rotate(45deg) translate(-7px, -7px);
        transform: rotate(45deg) translate(-7px, -7px);
    }
} 

/* Hero */
.hero{
    background-size: cover;
    background-position: center center;
    color: #FFFFFF;
    text-align: center;
}
.hero-items{
    padding: var( --wpdevs-light-padding );
}
.hero .overlay{
    background: rgb(0 0 0 / 27%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero .hero-items h1{
    margin-top: 0;
    font-weight: normal;
}
.hero .hero-items a{
    color: #FFFFFF;
    padding: 15px 25px;
    display: inline-block;
    background: var( --wpdevs-light-blue );
    margin: 20px 0 0;
}
.hero .hero-items a:hover{
    background: var( --wpdevs-yellow );
    transition: .5s all;
}

/* Services */
.services{ 
    background: var( --wpdevs-deep-blue ); 
    padding: var( --wpdevs-big-padding ); 
    color: #ffffff; 
}
.services .container{
    display: flex;
    flex-wrap: wrap;
    text-align: center;
}
.services .container > * {
    flex: 1 1 250px;
}
.services-item{
    padding: var(--wpdevs-light-padding);
}
.services-item p{
    margin-bottom: 40px;
}
.services-item figure{ 
    background: var( --wpdevs-black-blue );
    padding: 15px; 
}
.services h2{ 
    text-align: center;
    position: relative;  
}
.services h2::after{
    content: '';
    position: absolute;
    background-color: var( --wpdevs-light-blue );
    width: 35px;
    height: 5px;
    right: calc( 50% - 15px);
    bottom: 0;
}
.services h4{
    margin: 0;
}
@media (max-width: 768px) {
    .services .container{
        flex-direction: column;
        padding: 0;
    }
    .services-item{
        max-width: 100%;
    }
}

/* Home Blog */
.home .home-blog{
    padding: var( --wpdevs-big-padding );
}
.home-blog .container article:first-child{
    grid-area: feat-item;
}
.home-blog .container{
    display: grid;
    grid-template-areas: 'feat-item feat-item';
    grid-gap: 25px;
}
.home .home-blog h2{ 
    text-align: center;
    position: relative;  
}
.home .home-blog h2::after{
    content: '';
    position: absolute;
    background-color: var( --wpdevs-light-blue );
    width: 35px;
    height: 5px;
    right: calc( 50% - 15px);
    bottom: 0;
}
.home .home-blog .latest-news{ 
    text-align: center; 
}
.home .home-blog .col-12 .latest-news{  
    margin-bottom: 40px;
}
.home .home-blog .latest-news img{ 
    float: none !important;
    margin: 0 0 25px 0 !important;
}
.home .home-blog .latest-news h3{ 
    color: #000000;
    margin: 0; 
    line-height: 2.6rem;
}
.home .home-blog .meta-info p{ 
    font-weight: bold; 
    margin-bottom: 0; 
}
.home .home-blog .meta-info p:last-child{ 
    margin-top: 5px; 
}
.home .home-blog span, 
.home .home-blog span a{ 
    color: var( --wpdevs-gray1 ); 
    font-weight: normal; 
    text-decoration: none;
    margin: 0 2px 0 0; 
}
@media (max-width: 768px) {
    .home-blog .container{
        display: block;
    }
}

/* Footer */
footer{ 
    background: var( --wpdevs-deep-blue ); 
    padding: 15px 0; 
    color: #FFFFFF; 
}
footer .container .row{
    align-items: center;
}

/************** INNER PAGES *****************/

/* Blog, Archive, Search */
.blog main .container,
.archive main .container{
    display: flex;
}
.blog .blog-items,
.archive .archive-items{
    padding: 0 15px 0 0;
    flex: 1;
}
.blog .blog-items h2,
.archive .blog-items h2{
    margin-top: 0;
}
.blog article{
    margin-bottom: 20px;
}
.blog aside,
.archive aside{
    padding: 25px;
    background: var( --wpdevs-gray2 );
    height: 100%;
    width: 30%;
}
@media screen and (max-width: 991px ) {
    .blog aside,
    .archive aside,
    .blog .blog-items,
    .archive .archive-items{
        min-width: 100%;
    }
}
.blog h1,
.archive h1{
    text-align: center;
    margin-top: 0;
}
.archive-description{
    text-align: center;
    max-width: 50%;
    margin: 0 auto 30px auto;
}
.archive-description p{
    font-size: 85%;
}
.home #primary > #main{
    padding: 0;
}
#primary > #main{
    padding: var(--wpdevs-big-padding);
}
@media screen and (max-width: 991px ) {
    #primary > #main{
        padding: var(--wpdevs-mobile-padding);
    }
}
.meta-info p{
    margin: 0;
}
.wp-post-image{ 
    float: left; 
    margin: 0 15px 10px 0; 
}
@media screen and (max-width: 550px ) {
    .wp-post-image{ 
        width: 100%; 
    }
}
article{ 
    display: inline-block;  
    width: 100%; 
}
article.post h1,
.search h1,
.archive h1{
    font-size: 40px;
    font-weight: 500;
    line-height: 3rem;
    margin-bottom: 15px;
}
article.post h2{
    line-height: 3rem;
    font-size: 24px;
    font-weight: 500;
    text-transform: none;
}
article h2{
    line-height: 3rem;
    margin-bottom: 10px;
    text-transform: none;
}
article.post h3,
article.post h4,
article.post h5{
    margin-bottom: 0;
}

.searchform {
    margin-bottom: 2vh;
}

.searchform input[type="text"]{
    padding: 7px 10px;
    border: 1px solid #C6C6C6;
}
.searchform input[type="submit"]{
    padding: 11px 10px;
    background: #000000;
    color: #FFFFFF;
    border: none;
}
.searchform div{
    display: flex;
}
.searchform input[type=text]{
    max-width: 70%;
}
.searchform input[type=submit]{
    max-width: 70%;
}
@media (max-width: 991px) {
    .blog .container,
    .archive .container{
        flex-wrap: wrap;
    }
}

/* Comments */
#commentform input[type="submit"]{     
    color: #FFFFFF;
    padding: 15px 25px;
    display: inline-block;
    background: var( --wpdevs-light-blue );
    margin: 20px 0 0; 
    border: none;
}
#commentform input[type="submit"]:hover{
    background: var( --wpdevs-yellow );
    transition: .5s all;
}
#commentform label{
    display: block;
}
#commentform label[for="wp-comment-cookies-consent"]{
    display: inline;
    margin-left: 5px;
}
#commentform input[type="text"],
#commentform textarea{
    padding: 7px 10px;
    border: 1px solid #C6C6C6;
    width: 100%;
}
.comments-area #reply-title{
    border-top: 1px solid #ebebeb;
    padding: 20px 0 0;
}

/* Pagination */
.wpdevs-pagination{
    display: flex;
    justify-content: space-between;
}
.pages{
    margin-top: 20px;
}
.nav-links{
    margin-top: 40px;
}
.nav-links .page-numbers{
    padding: 10px 15px;
    display: inline-block;
    background: var( --wpdevs-gray3 );
}
.nav-links .current{
    background-color: #000000;
    color: #ffffff;
}
.nav-links .next,
.nav-links .prev{
    background-color: transparent;
}
.nav-links .prev{
    padding-left: 0;
}

/* WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
  }
  
  .aligncenter,
  div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
  }
  
  .alignright {
    float:right;
    margin: 5px 0 20px 20px;
  }
  
  .alignleft {
    float: left;
    margin: 5px 20px 20px 0;
  }
  
  a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
  }
  
  a img.alignnone {
    margin: 5px 20px 20px 0;
  }
  
  a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
  }
  
  a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  .wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
  }
  
  .wp-caption.alignnone {
    margin: 5px 20px 20px 0;
  }
  
  .wp-caption.alignleft {
    margin: 5px 20px 20px 0;
  }
  
  .wp-caption.alignright {
    margin: 5px 0 20px 20px;
  }
  
  .wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
  }
  
  .wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
  }
  
  /* Text meant only for screen readers. */
  .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
  }
  
  .screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    /* Above WP toolbar. */
  }

  .full-width .container {
    max-width: 100%;
  }

  .full-width .fw-inner {
    max-width: 90vw;
    margin: 0 auto;
    padding: 14px 20px;
  }

  /* Fix Gutenberg full-width flex gap */
.full-width .wp-block-group.is-layout-flex {
    gap: 48px; /* desktop gap */
  }

/* Tablet */
  @media (max-width: 991px) {
    .full-width .wp-block-group.is-layout-flex {
        gap: 32px;
    }
  }

/* Mobile */
  @media (max-width: 575px) {
    .full-width .wp-block-group.is-layout-flex {
        flex-wrap: wrap; /* stack nicely */
        gap: 20px;
    }
  }

/* Layout */
.content-layout {
    max-width: 90vw;
    padding: 14px 20px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 32px;
}

.content-layout-search {
    max-width: 90vw;
    padding: 14px 20px;
    margin: 0 auto;    
}

@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumb */
.post-breadcrumb {
    font-size: 16px;
    margin: 6px 0 20px;
}

.post-breadcrumb a {
    color: #1e73be;
    text-decoration: none;
}

.post-breadcrumb .current {
    color: #999;
}

/* Meta */
.post-meta {
    font-size: 16px;
    color: #aaa;
}
/* =========================
   CATEGORY & PAGE COLOR VARIABLES
   ========================= */

/* Default fallback */
:root {
    --header-bg: #ffffff;
    --header-accent: #e53935;
    --popular-ribbon-color: #e53935; /* ribbon */
    --popular-ribbon-shadow-color: #00aeff; /* shadow ribbon */
    --popular-post-color: #1e88e5;   /* big/small posts */
}

/* =========================
   HEADER MENU (BOXED - FIXED)
   ========================= */

.site-header {
    background: #f2f2f2; /* contrast background */
    position: sticky;
    top: 0;
    z-index: 999;
}

/* boxed header */
.header-inner {
    margin: 0 auto;
    padding: 5px 15px;
    background: var(--header-accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body.home .site-header {
    padding: 12px 0;
}

body:not(.home) .site-header {
    padding: 0;
}

body.home .header-inner {
    max-width: 90vw;
    border-radius: 7px;
    color: #fff;
}

body:not(.home) .header-inner {
    max-width: 100%;
    border-radius: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-logo img {
    max-height: 42px;
    width: auto;
}

/* =========================
   DESKTOP MENU
   ========================= */
.main-menu {
    display: flex;
    justify-content: center;
}

/* =========================
   MENU
   ========================= */

.main-menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    color: var(--header-text-color);
}

/* underline animation */
.main-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width .25s ease;
}

.main-menu a:hover::after {
    width: 100%;
}
/* =========================
   SEARCH BUTTON
   ========================= */

.search-btn {
    background: none;
    border: none;
    color: var(--header-text-color);
    font-size: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

/* =========================
   SEARCH MODAL
   ========================= */

.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9999;
}

/* active state */
.search-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* search box */
.search-box {
    background: #fff;
    padding: 40px 5px 20px 10px;
    max-width: 520px;
    border-radius: 8px;
    position: relative;
}

.search-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-box input[type="search"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

.search-box input[type="search"]:focus {
    border-color: #999;
}

/* submit button */
.search-box input[type="submit"] {
    align-self: flex-end;
    padding: 10px 18px;
    border: none;
    background: #222;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.search-box input[type="submit"]:hover {
    background: #000;
}

/* close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.site-footer {
    background: var(--header-accent);
    color: #fff;
    width: 100%;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    background: var(--header-accent);
}

.footer-top {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    width: 100%;
    column-gap: 40px;
    padding: 0 30px 0 30px;
}

.footer-menu-home ul {
    display: flex;
    gap: 24px;
}

.footer-menu-home li {
    margin: 0;
    padding: 0;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    margin: 10px 0 15px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px 0 30px;
}

body .footer-menu-home .footer-menu-list > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 0fr));
    gap: 12px 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

body.home .footer-menu-home a {
    display: inline-block;
}

body .footer-menu-home .footer-menu-list {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {

    body .footer-menu-home .footer-menu-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 24px;
    }

    .footer-divider {
        margin: 25px 0 15px 0;
    }

}

/* =========================
   MOST POPULAR RIBBON
   ========================= */

.popular-title-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: -6%;
}

.popular-posts h5 {
    position: relative;
    display: inline-block;
    background: var(--popular-ribbon-color);
    color: var(--popular-ribbon-shadow-color);
    padding: 5px 16px;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 18px;
    clip-path: polygon(
        0 0,
        calc(100% - 14px) 0,
        100% 14px,
        100% 100%,
        0 100%
    );
    z-index: 2;
}

/* ribbon corner fill */
.popular-posts h5::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: var(--popular-ribbon-color);
    z-index: 3;
}

/* colored shadow behind ribbon */
.popular-title-wrap::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--popular-ribbon-shadow-color);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    z-index: 1;
}

/* =========================
   BIG POPULAR ITEM
   ========================= */

.popular-big {
    margin-bottom: 22px;
    border-top: 2px solid var(--popular-ribbon-color);
}

.popular-big img {
    width: 100%;
    height: 180px;
    display: block;
    margin-bottom: 8px;
    border-radius: 5px;
    margin-top: 1px;
}

.popular-big .popular-author {
    font-size: 14px;
    font-weight: 500;
    color: #777;
    display: block;
}

.popular-big .popular-category {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    display: block;
    margin-bottom: 4px;
}

.popular-big .popular-title { 
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    font-weight: lighter;
}

.popular-big .popular-big-thumb {
    display: block;
    width: 100%;
    height: 180px; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    margin-bottom: 8px;
}

/* =========================
   SMALL POPULAR LIST
   ========================= */

.popular-small-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.popular-small {
    display: flex;
    gap: 12px;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    background: var(--popular-post-color);
    color: #fff; 
    padding: 0 16px 0 0; 
    margin-bottom: 18px; 
    clip-path: polygon(0 0, calc(100% - -40%) 0, 95% 100%, 100% 100%, 0 100%);
}

/* 50% IMAGE */
.popular-small .popular-thumb {
    flex: 0 0 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 50% CONTENT */
.popular-small .popular-meta {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 20px 0;
}

.popular-small .popular-author {
    font-size: 14px;
    color: var(--popular-text-color);
}

.popular-small .popular-category {
    font-size: 14px;
    font-weight: 500;
    color: var(--header-text-color);
}

.popular-small .popular-title {
    font-size: 16px;
    font-weight: 500;
    margin: 4px 0 0;
    line-height: 1.4;
    color: var(--popular-text-color);
    font-weight: lighter;
}

/* small curved corner */
.popular-small::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: var(--popular-post-color);
    border-top-left-radius: 100%;
}

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

.popular-posts a {
    text-decoration: none;
    color: inherit;
}

.popular-posts a:hover {
    text-decoration: underline;
}

/* =========================
   HEADER OVERRIDE RESET
   ========================= */

/* disable old header sections visually */
.top-bar,
.menu-area {
    background: transparent;
    padding: 0;
    height: auto;
}

/* stop old menu centering logic */
.menu-area .main-menu {
    height: auto;
    justify-content: flex-start;
}

body.home .site-header {
    position: relative;
    background: transparent;
    min-height: 50vh;
    z-index: 1;
}

/* background image */
body.home .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--home-hero-bg);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* dark overlay */
body.home .site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1;
}

/* header content */
body.home .site-header > * {
    position: relative;
    z-index: 2;
}

body.home #primary > #main,
body.home .content-layout {
    padding-top: 30vh;
}

body.home .site-main {
    margin-top: -12vh;
}

/* Front Page Layouts */
.home-section {
    margin-bottom: 50px;
}

.home-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-anime-posts h2 {
    position: relative;
    display: inline-block;
    background: #0077E7;
    color: #fff;
    padding: 0px 50px 0 16px;
    margin-bottom: 18px;
    clip-path: polygon(0 0, calc(100% - 23px) 0, 89% 14px, 100% 100%, 0 100%);
    z-index: 2;
}

.home-anime-title-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: -3.5%;
}

.home-anime-title-wrap::before {
    content: "";
    position: absolute;
    top: 12.5px;
    left: 0;
    width: 110%;
    height: 65%;
    background: #FFE500;
    clip-path: polygon(0 0, calc(100% - 32px) 0, 85% 14px, 96% 100%, 0 100%);
    z-index: 1;
}

.anime-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.anime-item {
    min-width: 220px;
    scroll-snap-align: start;
    position: relative;
    overflow: visible;
}

.anime-swiper {
    width: 100%;
    background: #0077E7;
    color: #fff;
    clip-path: polygon(0 0, /* top-left */ 100% 0, /* top-right */ 100% 93%, /* right vertical down */ 98% 100%, /* bottom-right inward */ 2% 100%, /* bottom-left inward */ 0 93% /* left vertical up */);
    border-top: 10px solid #FFE500;
}

.anime-swiper::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: #0077E7;
    border-top-left-radius: 100%;
}

.anime-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: -1px;
}

.anime-item h3 {
    font-size: 16px;
    margin-top: 8px;
}

.anime-swiper .swiper-slide {
    height: auto;
}

.anime-swiper .popular-small {
    margin-bottom: 0; /* swiper handles spacing */
}

.swiper-wrapper {
    display: flex !important;
    padding: 30px 016px 70px 16px;
}

.swiper-slide {
    flex-shrink: 0;
    height: auto;
    padding: 0 30px 0 0;
}

.swiper-pagination-bullet-active {
    opacity: var(--swiper-pagination-bullet-opacity, 1);
    background: white;
}

.anime-category {
    position: relative;
    z-index: 3;
    display: inline-block;
    padding: 5px 12px;
    background: #FFE500;
    color: black;
    font-size: 14px;
    font-weight: 500;
    clip-path: polygon(0 0, calc(100% - -10%) 0, 97% 100%, 100% 100%, 0 100%);
    width: 90%;
    bottom: 10px;
}

/* category links */
.anime-category a {
    color: inherit;
    text-decoration: none;
}

.anime-content {
    z-index: 1;
    background: #000;
    color: #fff;
    margin-top: -25px;
    clip-path: polygon(0 0, calc(100% - -30%) 0, 97% 100%, 100% 100%, 0 100%);
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    padding: 0 10px 20px 10px;
}

.anime-content a p {
    font-size: 16px;
    font-weight: 500;
}

.home-section img {
    display: block;
}

.game-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.game-featured {
    position: relative;
    height: 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.game-featured::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.65),
        rgba(0,0,0,.2)
    );
}

.game-featured-overlay {
    position: relative;
    top: 55%;
    padding: 30px;
    z-index: 2;
    color: #fff;
}

.game-featured h5 {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 500;
}

.game-meta {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

.game-list {
    background: #8E4AE0;
    padding: 0 20px 30px 30px;
    width: 37vw;
}

.game-list h2 {
    color: #fff;
}

.game-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-template-rows: auto auto;
    gap: 0 14px;
    align-items: center;
    margin-bottom: 10px;
}

.game-item > a {
    grid-row: 1 / span 2;
    width: 100%;
    height: 120px;
    display: block;
}

.game-item > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.game-category {
    color: #fff;
    font-size: 12px;
}

.game-content a p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.game-title {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.game-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.game-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.game-more-btn {
    display: inline-block;
    padding: 10px 28px;
    background: inherit;          /* inherit parent background */
    color: #fff !important;                  /* white text */
    border: 1px solid #fff;       /* white outline */
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.game-more-btn:hover {
    background: #fff;
    color: #8E4AE0 !important;
}

@media (max-width: 768px) {
    .anime-swiper {
        margin-top: -17px;
    }

    .anime-category {
        bottom: 17px;
    }

    .anime-content {
        z-index: 1;
        background: #000;
        color: #fff;
        margin-top: -38px;
        clip-path: polygon(0 0, calc(100% - -30%) 0, 97% 100%, 100% 100%, 0 100%);
        flex: 0 0 50%;
        display: flex;
        flex-direction: column;
        padding: 18px 10px 20px 10px;
    }

    .game-layout {
        grid-template-columns: 1fr;
    }

    .game-list {
        width: 100%;
        padding: 20px; /* optional, feels nicer on mobile */
    }

    .game-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .game-item img {
        grid-row: auto;
        height: 160px;
    }

    .game-featured-overlay {
        position: relative;
        z-index: 2;
        padding: 15px;
        top: 35%;
        color: #fff;
    }

    .game-category {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .game-content p {
        margin-bottom: 20px;
    }
}

.home-section.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* CATEGORY COLUMN */
.home-section.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* CATEGORY COLUMN */
.home-section.two-column .column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

.home-section.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* CATEGORY COLUMN */
.home-section.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* CATEGORY COLUMN */
.home-section.three-column .column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

/* TITLE */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

/* prevent wrapping */
.section-title h2,
.section-title .view-more {
    white-space: nowrap;
}

/* optional: push view-more to the right */
.section-title .view-more {
    margin-left: auto;
}

.section-title-event h2 {
    position: relative;
    display: inline-block;
    background: #A1CC5D;
    height: 60px;
    color: #3C4D47;
    padding: 0 60px 16px 15px;
    margin-bottom: -4px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    z-index: 2;
}

.section-title-wrapper-event {
    display: block;
    position: relative;
}

.section-title-wrapper-event::before {
    content: "";
    position: absolute;
    top: 12.5px;
    left: 0;
    width: 100%;
    height: 69%;
    background: #3C4D47;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    z-index: 1;
}

.section-title-event .view-more {
    font-size: 14px;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    margin-top: 27px;
}

.section-title-event .view-more:hover {
    opacity: 1;
    text-decoration: underline;
}

/* title row */
.section-title-event {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 3px solid #A1CC5D;
}

.section-title-infotainment h2 {
    position: relative;
    display: inline-block;
    background: #FFE700;
    height: 60px;
    color: #00A92E;
    padding: 0 60px 16px 15px;
    margin-bottom: -4px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    z-index: 2;
}

.section-title-wrapper-infotainment {
    position: relative;
}

.section-title-wrapper-infotainment::before {
    content: "";
    position: absolute;
    top: 12.5px;
    left: 0;
    width: 100%;
    height: 69%;
    background: #00A92E;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    z-index: 1;
}

.section-title-infotainment .view-more {
    font-size: 14px;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    margin-top: 27px;
}

.section-title-infotainment .view-more:hover {
    opacity: 1;
    text-decoration: underline;
}

/* title row */
.section-title-infotainment {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 3px solid #FFE700;
}

/* kill width issues */
.section-title-wrapper-event,
.section-title-wrapper-infotainment {
    display: block;
}

/* ITEM */
.two-col-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.two-col-title {
    margin-top: -10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 0 0 10px 10px;
    margin-bottom: -20px;
}

.two-col-title a {
    text-decoration: none;
    color: inherit;
}

.two-col-item-event {
    position: relative;
    z-index: 1;
    background: #A1CC5D;
    color: #3C4D47;
    padding: 0 0 40px 0;
    /* margin-top: -23px; */
    clip-path: polygon(0 0, calc(100% - -60%) 0, 94% 100%, 100% 100%, 0 100%);
}

.two-col-item-category-event {
    position: relative;
    z-index: 3;
    display: inline-block;
    padding: 5px 12px;
    background: #3C4D47;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    clip-path: polygon(0 0, calc(100% - -10%) 0, 97% 100%, 100% 100%, 0 100%);
    width: 90%;
    bottom: 20px;
}

.two-col-item-category-event a {
    color: inherit;
    text-decoration: none;
}

.two-col-item-infotainment {
    position: relative;
    z-index: 1;
    background: #FFE700;
    color: #00A92E;
    padding: 0 0 40px 0;
    clip-path: polygon(0 0, calc(100% - -60%) 0, 94% 100%, 100% 100%, 0 100%);
}

.two-col-item-category-infotainment {
    position: relative;
    z-index: 3;
    display: inline-block;
    padding: 5px 12px;
    background: #00A92E;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    clip-path: polygon(0 0, calc(100% - -10%) 0, 97% 100%, 100% 100%, 0 100%);
    width: 90%;
    bottom: 20px;
}

.two-col-item-category-infotainment a {
    color: inherit;
    text-decoration: none;
}

.three-col-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.three-col-title {
    margin-top: -10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 0 0 10px 10px;
    margin-bottom: -20px;
}

.three-col-title a {
    text-decoration: none;
    color: inherit;
}

.three-col-item-event {
    position: relative;
    z-index: 1;
    background: #A1CC5D;
    color: #3C4D47;
    padding: 0 0 40px 0;
    /* margin-top: -23px; */
    clip-path: polygon(0 0, calc(100% - -60%) 0, 94% 100%, 100% 100%, 0 100%);
}

.three-col-item-category-event {
    position: relative;
    z-index: 3;
    display: inline-block;
    padding: 5px 12px;
    background: #3C4D47;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    clip-path: polygon(0 0, calc(100% - -10%) 0, 97% 100%, 100% 100%, 0 100%);
    width: 90%;
    bottom: 20px;
}

.three-col-item-category-event a {
    color: inherit;
    text-decoration: none;
}

.three-col-item-infotainment {
    position: relative;
    z-index: 1;
    background: #FFE700;
    color: #00A92E;
    padding: 0 0 40px 0;
    clip-path: polygon(0 0, calc(100% - -60%) 0, 94% 100%, 100% 100%, 0 100%);
}

.three-col-item-category-infotainment {
    position: relative;
    z-index: 3;
    display: inline-block;
    padding: 5px 12px;
    background: #00A92E;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    clip-path: polygon(0 0, calc(100% - -10%) 0, 97% 100%, 100% 100%, 0 100%);
    width: 90%;
    bottom: 20px;
}

.three-col-item-category-infotainment a {
    color: inherit;
    text-decoration: none;
}

/* MOBILE */
@media (max-width: 768px) {
    .section-title-infotainment h2 {
        padding: 0 5px 16px 5px;
    }
    
    .home-section.two-column {
        grid-template-columns: 1fr;
    }

    .home-section.two-column .column {
        grid-template-columns: 1fr;
    }
    
    .home-section.three-column {
        grid-template-columns: 1fr;
    }

    .home-section.three-column .column {
        grid-template-columns: 1fr;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .section-title .view-more {
        margin-left: 0;
    }
}

.section-title-comic h2 {
    position: relative;
    display: inline-block;
    background: #FF9900;
    height: 60px;
    color: #00688B;
    padding: 0 60px 16px 15px;
    margin-bottom: -4px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    z-index: 2;
}

.section-title-wrapper-comic {
    display: block;
    position: relative;
}

.section-title-wrapper-comic::before {
    content: "";
    position: absolute;
    top: 12.5px;
    left: 0;
    width: 100%;
    height: 69%;
    background: #00688B;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    z-index: 1;
}

.section-title-comic .view-more {
    font-size: 14px;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    margin-top: 27px;
}

.section-title-comic .view-more:hover {
    opacity: 1;
    text-decoration: underline;
}

/* title row */
.section-title-comic {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 3px solid #FF9900;
    margin-bottom: 16px;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.comic-grid article img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 3px;
}

.comic-grid h3 {
    font-size: 14px;
    font-weight: 500;
    margin-top: -10px;
}

.title-comic {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1;
    padding: 0 0 10px 10px;
    margin-bottom: -20px;
}

.title-comic a {
    text-decoration: none;
    color: inherit;
}

.item-comic {
    position: relative;
    z-index: 1;
    background: #FF9900;
    color: #00688B;
    padding: 0 0 40px 0;
    clip-path: polygon(0 0, calc(100% - -60%) 0, 94% 100%, 100% 100%, 0 100%);
}

.item-category-comic {
    position: relative;
    z-index: 3;
    display: inline-block;
    padding: 5px 12px;
    background: #00688B;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    clip-path: polygon(0 0, calc(100% - -10%) 0, 97% 100%, 100% 100%, 0 100%);
    width: 90%;
    bottom: 20px;
}

.item-category-comic a {
    color: inherit;
    text-decoration: none;
}

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

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

.toys-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.toys-featured {
    position: relative;
    height: 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
}

.toys-featured::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #FF005B;
}

.toys-featured-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    overflow: hidden;
}

.toys-featured-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
    color: #fff;
}

.toys-featured h5 {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 500;
}

.toys-meta {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

.toys-list {
    background: #FF005B;
    padding: 0 20px 30px 30px;
    width: 37vw;
}

.toys-list h2 {
    color: #fff;
}

.toys-item {
    position: relative;
    z-index: 1;
    background: #7CF4E5;
    color: #393939;
    clip-path: polygon(0 0, calc(100% - -60%) 0, 94% 100%, 100% 100%, 0 100%);
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-template-rows: auto auto;
    gap: 0 14px;
    align-items: center;
    margin-bottom: 10px;
    border-radius: 8px 0 0 8px;
}

.toys-item > a {
    grid-row: 1 / span 2;
    width: 100%;
    height: 120px;
    display: block;
}

.toys-item > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.toys-category {
    color: #8C8C8C;
    font-size: 14px;
    font-weight: 500;
    margin-top: -40px;
}

.toys-content a p {
    margin: 0;
    margin-top: 10px;
    color: #393939;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.toys-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.share-label {
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

.share-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: transform .2s ease, opacity .2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: .85;
}

/* Brand colors */
.share-btn.facebook {
    background: #1877F2;
}

.share-btn.tiktok {
    background: #000;
}

.toys-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.toys-more-btn {
    display: inline-block;
    padding: 10px 28px;
    background: inherit;          /* inherit parent background */
    color: #fff !important;                  /* white text */
    border: 1px solid #fff;       /* white outline */
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.toys-more-btn:hover {
    background: #fff;
    color: #FF005B !important;
}

    @media (max-width: 768px) {
        .toys-layout {
            grid-template-columns: 1fr;
        }

        .toys-title {
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            font-size: 22px;
            text-transform: uppercase;
        }

        .toys-content {
            padding: 10px 0 0 10px;
        }

        .toys-content p {
            margin-top: 0px;
            color: #393939;
            font-size: 16px;
            font-weight: 500;
            line-height: 1.4;
        }

        .toys-list {
            width: 100%;
            padding: 20px; /* optional, feels nicer on mobile */
        }

        .toys-category {
            font-size: 14px;
            font-weight: 500;
            padding: 0 0 20px 10px;
            margin-top: 0px;
        }
        
        .toys-item {
            grid-template-columns: 1fr;
            grid-template-rows: auto;
            border-radius: 8px 8px 0 0;
        }

        .toys-item img {
            grid-row: auto;
            height: 160px;
        }

        .toys-featured-overlay {
            position: relative;
            z-index: 2;
            padding: 15px;
            top: 35%;
            color: #fff;
        }
    }

    .related-posts {
        border-top: 1px solid #eee;
    }

    .related-posts.is-loading {
        opacity: 0.5;
        pointer-events: none;
    }

    .related-title {
        font-size: 24px;
        font-weight: 500;
        margin-bottom: 24px;
    }

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

    .related-card {
        position: relative;
        background: var(--popular-ribbon-color);
        color: var(--popular-ribbon-shadow-color);
        padding-bottom: 32px;
        clip-path: polygon(0 0, calc(100% + 60%) 0, 94% 100%, 100% 100%, 0 100%);
    }

    .related-card a {
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .related-card img {
        display: block;
        width: 100%;
        height: 140px;
        object-fit: cover;
    }

    .related-card h4 {
        font-size: 14px;
        line-height: 1.4;
        margin: 0 0 6px;
    }

    .related-card-thumb {
        position: relative;
        display: block;
    }

    .related-card-category {
        position: relative;
        z-index: 2;
        display: inline-block;
        padding: 5px 12px;
        background: var(--popular-ribbon-shadow-color);
        color: var(--popular-text-category-color);
        font-size: 14px;
        font-weight: 500;
        clip-path: polygon(0 0, calc(100% + 10%) 0, 97% 100%, 100% 100%, 0 100%);
        bottom: 20px;
    }

    .related-card-category a {
        color: inherit;
        text-decoration: none;
    }

    .related-meta {
        font-size: 12px;
        color: #888;
    }

    .related-card-title {
        margin: -10px 10px 0;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.3;
    }

    .related-card-title a {
        text-decoration: none;
        color: var(--popular-text-title-color);
    }

    /* Pagination */    
    .related-grid {
        position: relative;
        z-index: 1;
    }

    .related-posts {
        position: relative;
    }

    .related-pagination {
        margin-top: 40px;
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .related-pagination .page-numbers {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;

        color: var(--header-text-color, #ffffff);
        background: var(--header-accent, #f3f3f3);
        transition: all 0.2s ease;
    }

    .related-pagination .page-numbers:hover {
        background: var(--header-accent, #fff);
        color: var(--header-text-color, #ffffff);
    }

    .related-pagination .page-numbers.current {
        background: var(--header-accent, #fff);
        color: var(--popular-text-color, #ffffff);   
        pointer-events: none;
    }

    .related-pagination .page-numbers.dots {
        border: none;
        cursor: default;
    }

    /* Tablet */
    @media (max-width: 1024px) {
        .related-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* Mobile */
    @media (max-width: 768px) {
        .related-grid {
            grid-template-columns: 1fr;
        }

        .related-card img {
            height: 180px;
        }
    }

    .fa,
    .fa-solid,
    .fa-regular,
    .fa-brands {
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
        font-weight: 400;
        font-style: normal;
    }

    .fa-solid {
        font-weight: 900;
    }

    p {
        font-size: 16px;
    }

    article h2 {
        font-size: 24px;
    }

    /* HAMBURGER */
.menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--header-text-color);
    transition: all .25s ease;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
}

.menu-toggle span:nth-child(2) {
    opacity: 1;
}

.menu-toggle span:nth-child(3) {
    transform: translateY(6px);
}

/* ACTIVE → X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* =========================
   MOBILE MENU PANEL
   ========================= */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--header-accent);
    color: var(--header-text-color);
    transform: translateX(-100%);
    transition: transform .35s ease;
    z-index: 9999;
    padding: 28px 24px;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.close-menu {
    background: none;
    border: none;
    color: var(--header-text-color);
    font-size: 24px;
    margin-bottom: 24px;
    cursor: pointer;
}

/* MOBILE MENU LINKS */

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid rgba(255,255,255,.25);
}

.mobile-menu-list a {
    display: block;
    padding: 14px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--header-text-color);
    text-decoration: none;
}

/* =========================
   PAGINATION
   ========================= */

.page-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    color: var(--header-text-color, #ffffff);
    background: var(--header-accent, #f3f3f3);
    transition: all 0.2s ease;
}

.page-pagination .page-numbers:hover {
    background: var(--header-accent, #fff);
    color: var(--header-text-color, #ffffff);
}

.page-pagination .page-numbers.current {
    background: var(--header-accent, #fff);
    color: var(--popular-text-color, #ffffff);   
    pointer-events: none;
}

.page-pagination .page-numbers.dots {
    border: none;
    cursor: default;
}

/* =========================
   RESPONSIVE RULES
   ========================= */

@media (max-width: 768px) {

    /* hide desktop menu */
    .main-menu {
        display: none;
    }

    /* show burger */
    .menu-toggle {
        display: inline-flex;
    }

    /* keep search visible */
    .search-btn {
        display: inline-flex;
    }

    .footer-top {
        grid-template-columns: 1fr;
        align-items: center;
        width: 100%;
        column-gap: 40px;
        padding: 0 30px 0 30px;
    }

    .footer-bottom {
        display: grid;
        justify-content: space-between;
        align-items: center;
        padding: 0 30px 0 30px;
    }

    .wp-block-latest-posts.wp-block-latest-posts__list li {
        display: grid;
    }
}

.wp-block-latest-posts__post-title {
    font-size: 40px !important;
    line-height: 3rem;
    margin-bottom: 15px;
}

.wp-block-latest-posts__post-author {
    font-size: 14px !important;
}

.wp-block-latest-posts__post-date {
    font-size: 14px !important;
}

.wp-block-latest-posts__post-excerpt {
    font-size: 16px !important;
}


.page-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.7);
    z-index: 10;
}

#page-posts-wrapper {
    position: relative;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-post-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.page-post-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.page-post-thumb img {
    object-fit: cover;
    height: 100%;
}

.page-post-item:hover img {
    transform: scale(1.03);
    transition: transform .3s ease;
}

.page-post-content {
    flex: 1;
}

.page-post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.page-post-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.page-post-title a {
    color: inherit;
    text-decoration: none;
}

.page-post-excerpt {
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {

    .page-post-item {
        flex-direction: column;
    }

    .page-post-thumb {
        width: 100%;
    }

    .page-post-title {
        font-size: 18px;
    }

}

.fa,
.fas,
.far,
.fal,
.fat,
.fad,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900;
}

.fa,
.fab,
.fa-brands,
.fa-solid,
.fa-regular {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
    font-weight: 900;
}

.footer-social .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal;
    display: inline-block;
    line-height: 1;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    color: var(--header-text-color, #ffffff);
    font-size: 18px;
}

.footer-social i {
    line-height: 1;
}

.swiper-pagination-bullet-active {
    background: #fff !important;
}

.home-highlight-posts h2 {
    position: relative;
    display: inline-block;
    background: var(--header-accent);
    color: #fff;
    padding: 0px 50px 0 16px;
    margin-bottom: 18px;
    clip-path: polygon(0 0, calc(100% - 23px) 0, 91% 14px, 100% 100%, 0 100%);
    z-index: 2;
}

.home-highlight-title-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: -6.5%;
}

.highlight-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.highlight-item {
    min-width: 220px;
    scroll-snap-align: start;
    position: relative;
    overflow: visible;
}

.highlight-swiper {
    width: 100%;
    background: var(--header-accent);
    color: #fff;
    clip-path: polygon(0 0, /* top-left */ 100% 0, /* top-right */ 100% 93%, /* right vertical down */ 98% 100%, /* bottom-right inward */ 2% 100%, /* bottom-left inward */ 0 93% /* left vertical up */);
}

.highlight-swiper::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: var(--header-accent);
    border-top-left-radius: 100%;
}

.highlight-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: -1px;
}

.highlight-item h3 {
    font-size: 16px;
    margin-top: 8px;
}

.highlight-swiper .swiper-slide {
    height: auto;
}

.highlight-swiper .popular-small {
    margin-bottom: 0; /* swiper handles spacing */
}

.swiper-wrapper {
    display: flex !important;
    padding: 30px 016px 70px 16px;
}

.swiper-slide {
    flex-shrink: 0;
    height: auto;
    padding: 0 30px 0 0;
}

.swiper-pagination-bullet-active {
    opacity: var(--swiper-pagination-bullet-opacity, 1);
    background: white;
}

.highlight-category {
    position: relative;
    z-index: 3;
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    color: black;
    font-size: 14px;
    font-weight: 500;
    clip-path: polygon(0 0, calc(100% - -10%) 0, 97% 100%, 100% 100%, 0 100%);
    width: 90%;
    bottom: 10px;
}

/* category links */
.highlight-category a {
    color: inherit;
    text-decoration: none;
}

.highlight-content {
    z-index: 1;
    background: #000;
    color: #fff;
    margin-top: -25px;
    clip-path: polygon(0 0, calc(100% - -30%) 0, 97% 100%, 100% 100%, 0 100%);
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    padding: 0 10px 20px 10px;
}

.highlight-content a p {
    font-size: 16px;
    font-weight: 500;
}

/* Footer - Footer Menu */
.site-footer .container{
    display: flex;
    justify-content: space-between;
}
.site-footer .copyright p{
    margin: 0;
    color: var(--header-text-color, #ffffff);
}
.footer-menu ul{ 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}
.footer-menu ul li{ 
    display: inline;  
    margin: 0;
}
.footer-menu ul li:last-child{ 
    margin: 0; 
}
.footer-menu ul li a{  
    text-decoration: none;
    color: var(--header-text-color, #ffffff);
}
.footer-menu ul li.current_page_item a{ 
    font-weight: bold; 
}
@media (max-width: 768px) {
    .site-footer .container{
        justify-content: safe;
    }
}
@media (max-width: 575px) {
    .site-footer .container{
        flex-wrap: wrap;
    }
}