/*
Theme Name: astra-child
Template: astra
Version: 1.0
Author: Ghazan Khan Blogger
Description: Child theme for Play PolyTrack Unblocked Online Free Now – No Download
*/

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

html {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background-color: #03D100;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.ast-container,
.site-content {
    transform: none !important;
}

/* =============================
   CUSTOM HEADER
============================= */

.custom-header {
    width: 100%;
    background: #111;
    color: #fff;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.brand-text {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.menu-toggle,
.search-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

/* Slide Menu */
.slide-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100%;
    background: #222;
    transition: all 0.3s ease-in-out;
    padding: 80px 20px;
    z-index: 1000;
}

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

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

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

/* Search Box */
.search-box {
    position: fixed;
    top: -120px;
    left: 0;
    width: 100%;
    background: #222;
    padding: 20px;
    transition: all 0.3s ease-in-out;
    z-index: 1003;
}

.search-box.active {
    top: 0;
}

.search-box input {
    width: 70%;
    padding: 8px;
}

.search-box button {
    padding: 8px 12px;
}

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

.ast-container,
.site-content,
.content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.ast-single-entry-banner {
    margin-bottom: 0 !important;
    padding-bottom: 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: #111111;
    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;
    background: #FFF;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: #111;
    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: #03D100;
    color: #fff;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    transition: 0.3s ease;
}

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

/* =============================
   MOBILE GRID FIX
============================= */

@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;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    .brand-text {
        font-size: 18px;
    }
    .menu-toggle,
    .search-toggle {
        font-size: 20px;
    }

    .content-wrapper {
        padding: 30px 20px;
        margin: 40px 10px;
        width: 95%;
    }

    .content-wrapper h2 {
        font-size: 20px;
    }

    .gpl-game-container {
        padding-top: 75%;
    }

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

/* =============================
   GAME WRAPPER & FULLSCREEN
============================= */

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

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

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

#gplFullscreenBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffcc00;
    border: none;
    color: #000;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 10;
}

#gplFullscreenBtn:hover {
    background: #ffaa00;
}

.gpl-game-container:fullscreen,
.gpl-game-container:-webkit-full-screen,
.gpl-game-container:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    padding-top: 0;
}

/* =============================
   CONTENT WRAPPER
============================= */

.title-tag p {
    font-size: 36px;
    margin: 40px 0 15px;
    color: #fff;
    text-align: center;
}

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

.content-wrapper h2 {
    font-size: 24px;
    margin: 40px 0 15px;
    border-left: 9px solid #03A300;
    padding-left: 12px;
}

.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: #03D100;
}

/* =============================
   CONTENT (Astra Parent)
============================= */

/* Page Title */
.title-tag p {
    font-size: 36px;
    margin: 40px 0 15px;
    color: #fff;
    text-align: center;
}

/* Main Astra Content Container */
.site-content .ast-container {
    max-width: 900px;
    width: 90%;
    margin: 60px auto;
    padding: 50px 40px;
    background: #E6FFE6;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

/* Headings inside content */
.site-content h2 {
    font-size: 24px;
    margin: 40px 0 15px;
    border-left: 9px solid #03A300;
    padding-left: 12px;
}

/* Custom list style */
.site-content ul {
    list-style: none;
    padding: 0;
}

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

.site-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #03D100;
}

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

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: #03D100;
    color: #fff;
}

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

.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 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;
  }
}

