/* Clean & Responsive Grid Cards Container styling */
.responsive-game-card {
    background: #0b0d14 !important; /* Premium dark background layer */
    border: 1px solid rgba(139, 92, 246, 0.12) !important;
    border-radius: 14px !important; /* Modern rounded corners */
    overflow: hidden !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

.responsive-game-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(139, 92, 246, 0.7) !important;
    /* Subtle neon purple ambient back-glow wrapper matching reference */
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2) !important; 
}

/* Fluid Aspect-Ratio Media Box Framework (Increased 15% Height Ratio) */
.responsive-card-media-box {
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    /* Set to 65% padding to bump up image height by exactly ~15% for a larger card presence */
    padding-top: 65% !important; 
    background-color: #05060a;
}

/* Image scaling layer matching frame dimensions fluidly */
.responsive-game-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.responsive-game-card:hover .responsive-game-img {
    transform: scale(1.04); /* Smooth hover micro-zoom effect */
}

/* Fallback asset container frame layout grids */
.responsive-placeholder-frame {
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #05060a;
}

/* Dark high-contrast shading veil over card images */
.responsive-image-gradient-veil {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(11, 13, 20, 0.98) 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Game Title Typography Layout - Prevents wrapping and squishing */
.responsive-game-logo-overlay {
    position: absolute !important;
    bottom: 16px !important;
    left: 16px !important;
    right: 16px !important;
    z-index: 2 !important;
    font-size: calc(1.25rem + 0.35vw) !important; /* Auto-scales text perfectly for smaller screens */
    font-weight: 900 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* Safely cuts off exceptionally long game names with ... */
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95) !important;
}

/* Card lower description metadata blocks spacing styling */
.responsive-inner-card-body {
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    background: #0b0d14 !important;
}

.responsive-info-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    width: 100% !important;
}

.responsive-card-price {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.responsive-card-stock-label {
    font-size: 0.85rem !important;
    margin: 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.responsive-card-description-subtitle {
    font-size: 0.82rem !important;
    color: #64748b !important; /* Muted subtext below graphic */
    margin-bottom: 20px !important;
    margin-top: 2px !important;
    letter-spacing: 0.2px;
}

/* Polished Purple Action Button blocks layout style rules */
.responsive-card-footer-action-row {
    margin-top: auto !important;
    width: 100% !important;
}

.responsive-vibrant-purple-btn {
    display: block !important;
    width: 100% !important;
    background: #6d28d9 !important; /* Deep vibrant purple */
    color: #ffffff !important;
    text-align: center !important;
    padding: 11px 0 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px;
    transition: background 0.15s ease-in-out !important;
}

.responsive-game-card:hover .responsive-vibrant-purple-btn {
    background: #7c3aed !important; /* Lightens up elegantly on card hovers */
}

/* Mobile Tweak Optimization Query Adjustments */
@media (max-width: 576px) {
    .responsive-card-media-box {
        padding-top: 52% !important; /* Slightly tighter image blocks height on small cellphones */
    }
    .responsive-inner-card-body {
        padding: 14px !important;
    }
}

/* ==========================================================================
   HOMEPAGE VERTICAL SPACING & ALIGNMENT COMPRESSION
   ========================================================================== */

/* Tighten the spacing inside the theme's core homepage layout blocks */
.components,
main,
section.py-5,
div[class*="py-"],
div[class*="my-"] {
    padding-top: 1.75rem !important;    /* Shaves off massive empty padding blocks */
    padding-bottom: 1.75rem !important;
}

/* Pull the "Our Programs" heading up closer to the hero text block above it */
h2, .h2, h3, .h3 {
    margin-top: 0.5rem !important;
    margin-bottom: 1.75rem !important;  /* Balanced breathing room below the title */
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

/* Tighten up the margin directly beneath your hero subtitle string */
.lead, 
p.text-muted, 
p.opacity-75,
.components > div:first-child p {
    margin-bottom: 1.75rem !important;
}

/* Responsive adjustment to prevent crowding on smartphone screens */
@media (max-width: 768px) {
    .components,
    section.py-5,
    div[class*="py-"] {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}
/* Direct component container space cruncher */
.components > div + div,
.components > *:nth-child(2) {
    margin-top: -3.5rem !important; /* Forces the entire product catalog area to pull directly upward */
}

/* Shave off extra bottom padding hidden inside the hero banner component frame */
.components > div:first-child,
div[class*="hero"],
section[class*="hero"] {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0px !important;
}

/* Ensure the section heading padding matches the new tighter layout transition */
.components h2, 
.components .h2 {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

/* Smartphone screen protection to maintain a clean layout balance */
@media (max-width: 768px) {
    .components > div + div,
    .components > *:nth-child(2) {
        margin-top: -2rem !important; /* Slightly lighter compression on smaller phone viewports */
    }
}

/* ==========================================================================
   SELLAUTH ACCORDION - DEFINITIVE GRID FIX (TEXT LINE HEIGHT UPDATE)
   ========================================================================== */

/* 1. Make the header box slim and configure an absolute tracking layout */
.product-description-tabs details summary,
div[class*="product-"] details summary {
    display: block !important;
    position: relative !important; /* Establishes the coordinate plane for pinning elements */
    
    padding: 0 16px 0 42px !important; /* Large 42px left padding creates empty room for the arrow */
    height: 44px !important;          /* Slim, tight professional thickness */
    min-height: 44px !important;
    max-height: 44px !important;
    
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    list-style: none !important;
    list-style-type: none !important;
    box-sizing: border-box !important;
}

/* Hide any accidental native browser markers if they try to show up */
.product-description-tabs details summary::-webkit-details-marker,
.product-description-tabs details summary::marker {
    display: none !important;
}

/* 2. FORCEFULLY TARGET AND PIN THE PURPLE ARROW ELEMENT */
.product-description-tabs details summary svg,
.product-description-tabs details summary i,
.product-description-tabs details summary img,
div[class*="product-"] details summary svg,
div[class*="product-"] details summary i,
div[class*="product-"] details summary img,
div[class*="product-"] details summary [class*="arrow"] {
    position: absolute !important;
    left: 16px !important;         /* Perfectly aligns it to the left wall of the box */
    top: 50% !important;           /* Centers it perfectly along the vertical middle line */
    transform: translateY(-50%) !important; /* Math correction to lock the exact center point */
    
    /* Forces the icon to scale down cleanly and tightly */
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Rotate the pinned arrow downward elegantly when the dropdown is open */
.product-description-tabs details[open] summary svg,
.product-description-tabs details[open] summary i,
.product-description-tabs details[open] summary img,
div[class*="product-"] details[open] summary svg {
    transform: translateY(-50%) rotate(90deg) !important;
}

/* 3. PIN AND PERFECTLY CENTER THE HEADER TEXT */
.product-description-tabs details summary h1,
.product-description-tabs details summary h2,
.product-description-tabs details summary h3,
.product-description-tabs details summary h4,
.product-description-tabs details summary span,
.product-description-tabs details summary p,
.product-description-tabs details summary div {
    position: absolute !important;
    left: 42px !important;         /* Sits precisely right next to the arrow space */
    top: 50% !important;           /* Pulls container to the vertical midpoint */
    transform: translateY(-50%) !important; /* Locks structural center alignment */
    
    margin: 0 !important;
    padding: 0 !important;
    
    /* FIX: Force height boundaries and use line-height to center text strings perfectly */
    height: 44px !important;
    line-height: 44px !important;  /* Matches the exact height of the parent box to pull text down into the true center */
    width: auto !important;
    
    font-size: 14px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}