/*
Theme Name: astra-child
Template: astra
Version: 1.0
Author: Ghazan Khan Blogger
Description: Child theme for 2 Player Browser Games Online | Setup &amp; Performance Guides
*/



/* =============================
 GLOBAL 
============================= */

html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background-color: #43a0ff;
    color: #333;
    font-family: 'Poppins', sans-serif;
    padding-top: 0; 
}

/* HEADER STRUCTURE */
.custom-header {
    background: #000;
    padding: 8px 0;
    position: relative;
    z-index: 999;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

/* BRAND CENTER */
.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.brand-text {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}

/* TOGGLE + SEARCH BUTTON */
.menu-toggle,
.search-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* SLIDE MENU */
.slide-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100%;
    background: #111;
    padding-top: 60px;
    transition: 0.3s ease;
    z-index: 1000;
}

.slide-menu.active {
    left: 0;
}

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

.mobile-menu li {
    padding: 12px 20px;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

/* SEARCH BOX */
.search-box {
    position: absolute;
    top: 45px;
    right: 15px;
    background: #111;
    padding: 10px;
    display: none;
}

.search-box.active {
    display: block;
}

.search-box input {
    padding: 6px;
    border: none;
    width: 200px;
}


/* =============================REMOVE ASTRA TOP SPACE========================= */

.ast-container {
    padding-top: 0 !important;
}

.single .site-content,
.single-post .site-content,
.page .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.single .entry-header,
.page .entry-header {
    margin-top: 0 !important;
}

.content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.ast-single-entry-banner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.site-content {
    margin-top: 0 !important;
}

.ast-separate-container .ast-article-post,
.ast-plain-container .ast-article-post {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================= HERO SECTION========================= */

.hero {
background: linear-gradient(90deg, #FD1C03, #660000);
color: #fff;
text-align: center;
padding: 80px 20px;
}

.hero h1 {
font-size: 2.6rem;
margin-bottom: 15px;
color: #E6F4FF;
}

.hero p {
font-size: 1.1rem;
}

/* ============================= GAMES GRID========================= */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.game-card {
    display: block;
    position: relative;
    background: #FFF;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 14px;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.game-card img {
    width: 100%;
    display: block;
}

.game-card h3 {
    padding: 8px 8px 4px;
    font-size: 14px;
    font-weight: 600;
}

.game-card .play-btn {
    display: inline-block;
    margin: 6px 0 12px;
    padding: 6px 14px;
    background: #FD1C03;
    color: #fff;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    transition: 0.3s ease;
}

.game-card:hover .play-btn {
    background: #f7b500;
    color: #111;
}

.hidden-card {
    display: none !important;
}

/* Card animation */
.card-preload {
    opacity: 0;
    transform: translateY(20px);
}

.card-visible {
    opacity: 1;
    transform: translateY(0);
    transition: 0.4s ease;
}

@media (max-width: 768px) {

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 10px;
    }

    .game-card:hover {
        transform: none;
        box-shadow: none;
    }


    #gplFullscreenBtn {
        font-size: 14px;
        padding: 6px 10px;
    }
}


/* =============================GAME WRAPPER======================== */

.gpl-game-wrapper {
width: 100%;
margin: 0;
background: #0f0f0f;
display: flex;
flex-direction: column;
overflow: hidden;
}

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

.gpl-game-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 Ratio */
background: #000;
overflow: hidden;
}

#gplGameIframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}

/* ============================= GAME FOOTER BAR======================== */

.gpl-game-footer {
background: #1a1a1a;
color: #ffffff;
padding: 14px 18px;
display: flex;
align-items: center;
border-top: 1px solid rgba(255,255,255,0.08);
}

.gpl-game-title {
font-size: 18px;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

/* =============================FULLSCREEN BUTTON 
======================= */

#gplFullscreenBtn {
margin-left: auto;
background: #ffcc00;
border: none;
color: #000;
padding: 6px 14px;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: 0.3s ease;
}

#gplFullscreenBtn:hover {
background: #ffaa00;
}

/* ============================= MOBILE OPTIMIZATION 
========================= */

@media (max-width: 768px) {

.gpl-game-container {  
    padding-top: 75%; /* Taller for mobile games */  
}  

.gpl-game-footer {  
    padding: 12px;  
    font-size: 16px;  
}  

#gplFullscreenBtn {  
    padding: 6px 10px;  
    font-size: 14px;  
}

}

/* ============================= CONTENT WRAPPER 
========================== */
.title-tag p {
font-size: 36px;
font-weight: bold;
margin-top: 40px;
margin-bottom: 15px;
color: #fff;
text-align: center;
padding-left: 12px;
}

.content-wrapper {
max-width: 900px;
margin: 60px auto;
padding: 50px 40px;
background: #e7f3ff;
border-radius: 18px;
box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.content-wrapper h2 {
font-size: 24px;
margin-top: 40px;
margin-bottom: 15px;
border-left: 7px solid #FD1C03;
padding-left: 12px;
}

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

.content-wrapper ul {
list-style: none;
padding: 0;
}

.content-wrapper ul li {
padding-left: 25px;
position: relative;
margin-bottom: 10px;
}

.content-wrapper ul li::before {
content: "✓";
position: absolute;
left: 0;
color: #1589FF;
}

/* Slider container */
.slider-container {
width: 100%;
max-width: 800px;
margin: 50px auto;
overflow: hidden;
border-radius: 15px;
background: linear-gradient(135deg, #43a0ff, #1589FF, #0000FF);
color: #333;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
position: relative;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Slider wrapper */
.slider-wrapper {
display: flex;
transition: transform 0.5s ease-in-out;
}

/* Each slide */
.slide {
min-width: 100%;
padding: 50px 30px;
box-sizing: border-box;
text-align: center;
}

.slide-title {
font-size: 26px;
margin-bottom: 15px;
line-height: 1.3;
}

.slide-excerpt {
font-size: 16px;
margin-bottom: 25px;
color: #ccc;
}

.slide-readmore {
display: inline-block;
padding: 12px 30px;
background: #FD1C03;
color: #fff;
font-weight: bold;
border-radius: 50px;
text-decoration: none;
transition: all 0.3s;
}

.slide-readmore:hover {
background: #ff6568;
transform: scale(1.05);
}

/* Affiliate Container */
.affiliate-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 25px;
margin: 50px auto;
max-width: 1200px;
font-family: 'Arial', sans-serif;
}

/* Card Style */
.affiliate-card {
background: #fdf6f0;
border: 2px solid #FD1C03;
border-radius: 15px;
padding: 25px 20px;
position: relative;
transition: transform 0.3s, box-shadow 0.3s;
}

.affiliate-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Title */
.affiliate-title {
font-size: 20px;
margin-bottom: 15px;
color: #333;
}

/* Excerpt */
.affiliate-excerpt {
font-size: 15px;
color: #555;
margin-bottom: 20px;
line-height: 1.5;
}

/* Read More Button */
.affiliate-readmore {
display: inline-block;
background: #FD1C03;
color: #fff;
padding: 10px 20px;
border-radius: 50px;
font-weight: bold;
text-decoration: none;
transition: all 0.3s;
}

.affiliate-readmore:hover {
background: #ff8a7b;
transform: scale(1.05);
}


/* ============================= TABLE STYLING ====================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #fff;
  color: #111;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

table th {
  background: #43a0ff;
  color: #fff;
}


/* ============================= FAQ SECTION========================= */

.faq-section {
max-width: 900px;
margin: 80px auto;
padding: 20px;
}

.faq-item {
background: #fff;
margin-bottom: 20px;
padding: 20px;
border-radius: 14px;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
border-left: 5px solid #FD1C03;
cursor: pointer;
}

.faq-item h3 {
margin: 0;
font-size: 18px;
}

.faq-item p {
display: none;
margin-top: 15px;
}

.faq-item.active p {
display: block;
}


/* FOOTER */
.apb-footer-main {
  background: linear-gradient(135deg, #0f0f0f, #141414);
  color: #ccc;
  padding: 60px 20px 20px;
  border-top: 1px solid #1f1f1f;
  font-family: inherit;
}

.apb-footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.apb-footer-col h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.apb-footer-col h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #00e0ff;
  margin-top: 8px;
}

.apb-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.apb-footer-col ul li {
  margin-bottom: 12px;
}

.apb-footer-col ul li a {
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.apb-footer-col ul li a:hover {
  color: #00e0ff;
  padding-left: 5px;
}

.apb-footer-col p {
  font-size: 14px;
  line-height: 1.6;
  color: #999;
}

.apb-footer-bottom {
  text-align: center;
  border-top: 1px solid #1f1f1f;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .apb-footer-main {
    padding: 40px 15px 20px;
  }
}

