/*
Theme Name: Astra Child
Template: astra
*/

/* ===========================================
   GameDayRoundup – Front Page Styling
=========================================== */

/* Make homepage container EXACTLY match Astra container */
.gdr-front-page {
    width: 100%;
    max-width: var(--ast-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ast-container-padding);
    padding-right: var(--ast-container-padding);
	padding-top: 2.5rem;
    box-sizing: border-box;
}

.gdr-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 1.2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
}

/* ============================================
   HOME FOOTBALL QUIZ BANNER
   ============================================ */

.gdr-home-quiz-banner {
    background: linear-gradient(135deg, #0c1a0f, #0f2416);
    padding: 36px 20px;
    margin: 32px auto;
    border-radius: 14px;
    text-align: center;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 12px 30px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(255, 255, 255, 0.08);
	overflow: hidden; /* IMPORTANT: masks the SVG */
}

.gdr-home-quiz-banner-inner {
    max-width: 820px;
    margin: 0 auto;
	position: relative;
    z-index: 1;
}

.gdr-home-quiz-banner::before {
    content: "";
    position: absolute;
    top: -15%;
    right: -8%;
    width: 380px;
    height: 380px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M432 64h-32V48c0-8.8-7.2-16-16-16H128c-8.8 0-16 7.2-16 16v16H80c-26.5 0-48 21.5-48 48v48c0 44.2 35.8 80 80 80h16c13.6 32.7 43.6 57.6 80 63.2V368h-40c-13.3 0-24 10.7-24 24v32h224v-32c0-13.3-10.7-24-24-24h-40v-64.8c36.4-5.6 66.4-30.5 80-63.2h16c44.2 0 80-35.8 80-80v-48c0-26.5-21.5-48-48-48zM112 208c-26.5 0-48-21.5-48-48v-48h48v96zm288 0v-96h48v48c0 26.5-21.5 48-48 48z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* Small label */
.gdr-quiz-eyebrow {
    display: inline-block;
    color: #2ecc71;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Main headline */
.gdr-quiz-banner-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    margin: 6px 0 10px;
}

/* Supporting copy */
.gdr-quiz-banner-subtext {
    color: #cfd8d3;
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 22px;
}

/* CTA button */
.gdr-quiz-banner-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #2ecc71;
    color: #000;
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* Hover effect: green to blue */
.gdr-quiz-banner-btn {
    background: #2ecc71;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .gdr-quiz-banner-btn:hover {
        background: #0a58ff; /* electric blue */
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(10, 88, 255, 0.35);
    }
}


/* Mobile tuning */
@media (max-width: 600px) {
    .gdr-quiz-banner-title {
        font-size: 22px;
    }

    .gdr-quiz-banner-subtext {
        font-size: 15px;
    }
}

/* ============================================
   HOME QUIZ BANNER – MOBILE POLISH
   ============================================ */

@media (max-width: 600px) {

    .gdr-home-quiz-banner {
        padding: 28px 18px;
        margin: 24px 12px;
        border-radius: 12px;
        background: linear-gradient(
            180deg,
            #0c1a0f 0%,
            #0f2416 100%
        );
    }

    .gdr-quiz-eyebrow {
        margin-bottom: 6px;
        font-size: 12px;
        letter-spacing: 0.06em;
    }

    .gdr-quiz-banner-title {
        font-size: 21px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .gdr-quiz-banner-subtext {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .gdr-quiz-banner-btn {
        padding: 14px 28px;
        font-size: 16px;
        box-shadow: 0 6px 18px rgba(46, 204, 113, 0.35);
    }
}

/* ==============================
   FEATURED STORY
============================== */

.gdr-featured {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.gdr-featured-image {
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}

.gdr-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

.gdr-featured-image:hover img {
    transform: scale(1.05);
}

.gdr-featured-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.gdr-featured-title a {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
}

.gdr-featured-meta {
    font-size: 0.85rem;
    opacity: 0.6;
}

.gdr-featured-excerpt {
    margin-top: 0.7rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

.gdr-featured-readmore a {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #00ff88;
    font-weight: 700;
}

/* ==============================
   LATEST HEADLINES GRID
============================== */

.gdr-latest {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2.2rem;
}

.gdr-latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.7rem;
}

.gdr-card {
    background: #161616;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.3s ease;
}

.gdr-card:hover {
    border-color: #00ff88;
    transform: translateY(-3px);
}

.gdr-card-image {
    height: 180px;
    overflow: hidden;
}

.gdr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

.gdr-card:hover .gdr-card-image img {
    transform: scale(1.06);
}

.gdr-card-body {
    padding: 1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.gdr-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00ff88;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.gdr-card-title a {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    color: #fff;
}

.gdr-card-meta {
    font-size: 0.75rem;
    opacity: 0.5;
}

.gdr-card-excerpt {
    font-size: 0.88rem;
    color: #cfcfcf;
    line-height: 1.55;
    margin-top: 0.2rem;
    flex-grow: 1;
}

.gdr-card-readmore a {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00ff88;
    text-decoration: none;
    margin-top: 0.7rem;
}

/* ==============================
   RESPONSIVE FIXES
============================== */

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

    .gdr-featured-title a {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .gdr-front-page {
        padding: 1.5rem 1rem;
    }
}

/* ==============================
   TYPOGRAPHY FIXES (Force line height)
============================== */

/* Featured (hero) title */
.gdr-featured .gdr-featured-title,
.gdr-featured .gdr-featured-title a {
    line-height: 1.1 !important;
    display: block;
}

/* ============================================
   ASTRA MOBILE MENU – COMPLETE, CLEAN FIX
   ============================================ */

/* 1. Fix incorrect flexbox applied to mobile menu items */
.ast-header-break-point .main-header-menu .menu-item {
    display: block !important;
    height: auto !important;
    align-items: initial !important;
    overflow: visible !important;
}

/* 2. Ensure parent links behave properly */
.ast-header-break-point .main-header-menu .menu-item > a {
    display: block !important;
    padding-right: 55px !important; /* space for arrow */
    margin-right: 0 !important;
}

/* 3. Allow arrows to be positioned inside parent item */
.ast-header-break-point .main-header-menu .menu-item-has-children {
    position: relative !important;
}

/* ============================================
   REMOVE ASTRA’S DUPLICATE ARROW (inside <a>)
   ============================================ */

.ast-header-break-point .main-header-menu .menu-item-has-children > a .dropdown-menu-toggle,
.ast-header-break-point .main-header-menu .menu-item-has-children > a .ast-header-navigation-arrow,
.ast-header-break-point .main-header-menu .menu-item-has-children > a .ast-icon,
.ast-header-break-point .main-header-menu .menu-item-has-children > a .ast-icon svg,
.ast-header-break-point .main-header-menu .menu-item-has-children > a .ast-arrow-svg {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Extra safety: remove wrapper entirely */
.dropdown-menu-toggle.ast-header-navigation-arrow {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ============================================
   THE ONLY ARROW WE KEEP – .ast-menu-toggle
   ============================================ */

.ast-header-break-point .main-header-menu .menu-item-has-children > .ast-menu-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    transform: translateY(-50%) !important;
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important;
}

.ast-header-break-point .main-header-menu .menu-item-has-children > .ast-menu-toggle svg {
    width: 18px !important;
    height: 18px !important;
}

/* ============================================
   SUBMENU – POSITION, SPACING, LINE-HEIGHT
   ============================================ */

/* Submenu container */
.ast-header-break-point .main-header-menu .sub-menu {
    position: static !important;
    display: none !important;          /* hidden by default */
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: transparent !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-direction: column !important;
    line-height: 1.4 !important;       /* kill 54px desktop line-height */
}

/* Show submenu when Astra adds .ast-submenu-expanded */
.ast-header-break-point .main-header-menu .ast-submenu-expanded > .sub-menu {
    display: block !important;
}

/* Submenu items */
.ast-header-break-point .main-header-menu .sub-menu .menu-item {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* Submenu links – compact vertical spacing + indent */
.ast-header-break-point .main-header-menu .sub-menu .menu-item > a,
.ast-header-break-point .main-header-menu .sub-menu .menu-link {
    display: block !important;
    margin: 0 !important;
    padding: 6px 20px !important;      /* tighter vertical spacing */
    padding-left: 35px !important;     /* indent under parent */
    line-height: 1.4 !important;
}

/* Remove pseudo-elements that can add vertical gaps */
.ast-header-break-point .main-header-menu .sub-menu::before,
.ast-header-break-point .main-header-menu .sub-menu::after {
    display: none !important;
    content: none !important;
}

/* Prevent extra gap between parent label and its submenu */
.ast-header-break-point .main-header-menu .menu-item-has-children.ast-submenu-expanded > a {
    margin-bottom: 0 !important;
}

/* FIX TOP-LEVEL MENU ITEM HEIGHT */
.ast-header-break-point .main-header-menu > .menu-item > a {
    padding: 12px 20px !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

/* REMOVE BACKGROUND / SPACING ON PARENT ITEM */
.ast-header-break-point .main-header-menu > .menu-item {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ENSURE SUBMENU ATTACHES DIRECTLY UNDER PARENT */
.ast-header-break-point .main-header-menu .sub-menu {
    margin-top: 0 !important;
}

/* LOCK TOP-LEVEL ROW HEIGHT */
.ast-header-break-point .main-header-menu > .menu-item-has-children {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    min-height: 50px !important;  /* keeps row height stable */
}

/* FIX TOP-LEVEL LINK SO IT NEVER EXPANDS */
.ast-header-break-point .main-header-menu > .menu-item > a.menu-link {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    line-height: 1.3 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

/* REMOVE ASTRA'S EXPAND PADDING WHICH PUSHES ARROW DOWN */
.ast-header-break-point .main-header-menu .menu-item-has-children.ast-submenu-expanded > a {
    padding-bottom: 14px !important;
}

/* ================================================
   ROUNDED BUTTONS HOMEPAGE
   ================================================ */

/* Rounded button for Top Stories */
.gdr-featured-readmore a {
    display: inline-block;
    background: #2ecc71;
    color: #1a1b1e !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.gdr-featured-readmore a:hover {
    background: #27ae60;
    color: #1a1b1e !important;
}

/* Rounded button under Latest Headlines */
.gdr-view-all a {
    display: inline-block;
    background: #2ecc71;
    color: #1a1b1e !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.gdr-view-all a:hover {
    background: #27ae60;
    color: #1a1b1e !important;
}

/* Rounded button under each category block */
.gdr-category-view-all a {
    display: inline-block;
    background: #2ecc71;
    color: #1a1b1e !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
    transition: 0.2s;
}

.gdr-category-view-all a:hover {
    background: #27ae60;
    color: #1a1b1e !important;
}



/* Subcategory buttons container */
.gdr-subcat-buttons {
    margin: 20px 0 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Button style */
.gdr-subcat-btn {
    background: #111;
    border: 1px solid #00ff88;
    color: #00ff88 !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

/* Hover effect */
.gdr-subcat-btn:hover {
    background: #00ff88;
    color: #000 !important;
    border-color: #00ff88;
}

/*-----SCREEN POSTS RESPONSIVENESS----------------*/ 

/* Desktop: show all 12 (no hiding needed) */

/* Small screens: show 9 */
@media (max-width: 1200px) {
    .gdr-section.gdr-latest .gdr-latest-grid article:nth-child(n+10) {
        display: none;
    }
}

/* Phones: show 6 */
@media (max-width: 768px) {
    .gdr-section.gdr-latest .gdr-latest-grid article:nth-child(n+7) {
        display: none;
    }
}

/* Desktop/tablets: show 6 */
@media (max-width: 1400px) {
    .gdr-category-row .gdr-latest-grid article:nth-child(n+7) {
        display: none;
    }
}

/* Phones: show 3 */
@media (max-width: 768px) {
    .gdr-category-row .gdr-latest-grid article:nth-child(n+4) {
        display: none;
    }
}

/* ===========================================
   LATEST HEADLINES — Background + Structure
=========================================== */

/* Background panel to make section stand out */
.gdr-section.gdr-latest {
    background: #1a1a1a; /* Slightly lighter than page background */
    padding: 3rem 2rem;
    border-radius: 14px;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 0 25px rgba(0,0,0,0.25);
}


/* ===========================================
   LATEST HEADLINES — Section Title Bar
=========================================== */

.gdr-section.gdr-latest .gdr-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Neon green left accent bar */
.gdr-section.gdr-latest .gdr-section-title:before {
    content: "";
    width: 40px;
    height: 4px;
    background: #2ecc71; /* GameDay neon green */
    border-radius: 4px;
}

/* ===========================================
   PREMIUM REVIEW VERDICT BOX – FINAL SAFE VERSION
=========================================== */

.gdr-premium-review {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding: 26px 30px;
    background: #18191b;
    border: 1px solid #2c2d31;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* Reduce margin on last paragraph */
.gdr-premium-review p:last-child {
    margin-bottom: 4px !important;
}

/* Title */
.gdr-premium-review .gdr-verdict-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
	margin-top: 5px;
    padding-left: 14px;
    position: relative;
}

.gdr-premium-review .gdr-verdict-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 22px;
    background: #09e66d;
    border-radius: 3px;
}

/* Score INSIDE title */
.gdr-premium-review .gdr-verdict-score {
    color: #ffcc33;
    font-weight: 700;
    margin-left: 4px;
}

/* Stars Row */
.gdr-premium-review .gdr-verdict-stars {
    margin-bottom: 0px !important;
}

/* Star Rating Display - Unified (Full, Half, Empty) */
/* SVG star */
.svg-star svg {
    width: 36px;
    height: 36px;
    fill: #ccc;
    margin-right: 4px;
}

/* FULL STAR */
.svg-star.full svg {
    fill: #f5b301;
}

/* EMPTY STAR */
.svg-star.empty svg {
    fill: #ccc;
}

/* HALF STAR */
.svg-star.half {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 36px;
    margin-right: 4px;
}

.svg-star.half svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
}

.svg-star.half .half-bg {
    fill: #ccc;
}

.svg-star.half .half-fg {
    fill: url(#halfFill);
}

/* Summary */
.gdr-premium-review .gdr-verdict-summary {
    margin-top: 4px;
    font-size: 15px;
    color: #efefef;
    line-height: 1.65;
    padding: 0;
    background: none;
    border: none;
}

/* Tighten spacing for homepage article titles */
.gdr-card-title {
    margin-top: 6px !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
}

.gdr-card-title a {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix mobile alignment so Latest Headlines grid stays centered */
@media (max-width: 768px) {

    /* Center the grid container */
    .gdr-latest {
        display: flex;
        flex-direction: column;
        align-items: center !important; /* center grid */
        justify-content: flex-start;
        width: 100%;
    }

    /* Each card should take full width but stay centered */
    .gdr-latest .gdr-post-item {
        width: 100% !important;
        max-width: 600px; /* keeps a nice centered column */
    }

    /* Reset the text alignment so titles don't shift left or right */
    .gdr-latest .gdr-card-title,
    .gdr-latest .gdr-card-title a {
        text-align: left !important; /* keep titles left aligned */
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* GDR Inline Text Spoiler – Bold label + bold green revealed text */
.gdr-spoiler {
    color: transparent;                 /* hide real text */
    background: #000;                   /* black bar */
    cursor: pointer;
    border-radius: 3px;
    padding: 0 4px;
    display: inline;
    font-weight: bold;                  /* bold when hidden */
    position: relative;
}

/* Before reveal: label in front */
.gdr-spoiler::before {
    content: "SPOILER! (Tap)";  
    color: #2ecc71;                     /* GDR green */
    font-weight: bold;
    font-size: 1em;
	align-content: left;
	text-align: left;
}

/* After reveal */
.gdr-spoiler.revealed {
    background: none !important;
    color: #2ecc71 !important;          /* reveal as bold green text */
    font-weight: bold;
}

/* Remove label after reveal */
.gdr-spoiler.revealed::before {
    content: "";
}


/* ========================================
   SINGLE FOOTBALL QUIZ LAYOUT
   ======================================== */

.single-football_quiz .site-main.gdr-quiz-single {
    background: #111111;
    padding-bottom: 60px;
}

/* Hero image */
.gdr-quiz-hero {
    max-height: 420px;
    overflow: hidden;
}

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

/* Inner quiz "card" */
.gdr-quiz-inner {
    max-width: 1020px;
    margin: -80px auto 60px;
    background: #000000;
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .gdr-quiz-inner {
        margin: -40px 15px 40px;
        padding: 24px 18px;
    }
}

/* Date badge */
.gdr-quiz-date-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: #2ecc71;
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.gdr-quiz-header {
    text-align: center;
    margin-bottom: 20px;
}

.gdr-quiz-title {
    margin: 0 0 8px;
}

.gdr-quiz-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* How to Play dropdown */
.gdr-quiz-howto-wrapper {
    margin: 20px 0 25px;
    text-align: center;
}

.gdr-howto-toggle {
    border-radius: 999px;
    border: 1px solid #2ecc71;
    background: transparent;
    color: #2ecc71;
    padding: 8px 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.gdr-howto-toggle:hover {
    background: #2ecc71;
    color: #000000;
}

.gdr-howto-icon {
    display: inline-block;
    transition: transform 0.25s ease;
}

.gdr-quiz-howto-wrapper.is-open .gdr-howto-icon {
    transform: rotate(180deg);
}

.gdr-howto-content {
    display: none;
    margin-top: 15px;
    padding: 15px 18px;
    background: #111111;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.gdr-quiz-howto-wrapper.is-open .gdr-howto-content {
    display: block;
}

/* Navigation buttons */
.gdr-quiz-footer {
    margin-top: 40px;
    text-align: center;
}

.gdr-quiz-nav-main {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.gdr-quiz-nav-random {
    text-align: center;
}

.gdr-quiz-btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 999px;
    background: transparent;
    border: 2px solid #2ecc71;
    color: #2ecc71 !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.gdr-quiz-btn-outline:hover {
    background: #2ecc71;
    color: #000000 !important;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .gdr-quiz-nav-main {
        flex-direction: column;
        align-items: stretch;
    }

    .gdr-quiz-btn {
        width: 100%;
    }
}

/* Navigation wrapper */
.gdr-quiz-footer {
    margin-top: 40px;
    text-align: center;
}

/* Row of three buttons */
.gdr-quiz-nav-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

/* Archive button */
.gdr-quiz-nav-archive {
    margin-top: 10px;
}

.gdr-quiz-nav-archive a {
    font-size: 16px;
}

/* ============================================================
   ASTRA SEARCH – FINAL, STABLE FIX
   ============================================================ */

/* Style ONLY the input field */
.ast-header-search .search-field,
form.search-form .search-field {
    background-color: #111;
    color: #fff;
    border: 2px solid #00ff66;
    border-radius: 8px;
    font-size: 16px;
    padding: 10px 14px;
    box-sizing: border-box;
}

/* Placeholder */
.ast-header-search .search-field::placeholder,
form.search-form .search-field::placeholder {
    color: #bbb;
}

/* Focus state */
.ast-header-search .search-field:focus,
form.search-form .search-field:focus {
    outline: none;
    border-color: #00ff66;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

/* ============================================================
   WIDTH CONTROL (THIS FIXES DESKTOP + MOBILE)
   ============================================================ */

/* Desktop: cap width so it never gets stupidly wide */
@media (min-width: 769px) {
    .ast-header-search .search-field {
        width: 100%;
        max-width: 320px;
    }
}

/* Mobile: always fit viewport */
@media (max-width: 768px) {
    .ast-header-search .search-field,
    form.search-form .search-field {
        width: 100%;
        max-width: 100%;
    }

    html, body {
        overflow-x: hidden;
    }
}

/* ============================================================
   ASTRA MOBILE SEARCH – HARD WIDTH LOCK (FINAL)
   ============================================================ */

@media (max-width: 768px) {
    .ast-header-search .search-field {
        box-sizing: border-box !important;
        width: calc(100vw - 140px) !important; /* adjust 96–112 if desired */
        max-width: calc(100vw - 140px) !important;
        margin: 0 !important;
    }
}

