/* ==========================================================================
   Game Reactor - Enhanced Design & Typography Styles
   Strictly adheres to: Dark Luxury / Amber Gold (#febb44) / Ruby Espresso (#5a221e, #370f11)
   NO PURPLE, NO NEON GRADIENTS
   ========================================================================== */

/* Sticky Footer Guarantee */
html {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #0d0103;
    color: #e5e7eb;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
main {
    flex: 1 0 auto;
    width: 100%;
}
footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Header & Navigation Enhancements */
.topbar {
    background-color: #080001;
    border-bottom: 1px solid #230d10;
    padding: 8px 0;
    font-size: 13px;
}
.topbar-contact-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}
.topbar-contact-wrapper ul li a {
    color: #b0bec5;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}
.topbar-contact-wrapper ul li a:hover {
    color: #febb44;
}
.topbar-badge {
    display: inline-block;
    background: rgba(254, 187, 68, 0.15);
    color: #febb44;
    border: 1px solid rgba(254, 187, 68, 0.3);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.navbar {
    background-color: #110507;
    border-bottom: 1px solid #2b0e11;
    transition: all 0.3s ease;
}
.navbar.fixed-top {
    background-color: rgba(13, 1, 3, 0.96) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid #370f11;
}
.navbar-brand img {
    height: 48px;
    width: auto;
}
.navbar-nav .nav-link {
    color: #d1d5db !important;
    font-weight: 600;
    font-size: 13px !important;
    padding: 8px 10px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #febb44 !important;
}
.navbar-toggler {
    border: 1px solid #febb44 !important;
    color: #febb44 !important;
    padding: 6px 12px !important;
    border-radius: 6px;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(254, 187, 68, 0.3) !important;
}
.navbar-toggler .fa-bars {
    color: #febb44;
    font-size: 18px;
}
@media (max-width: 991px) {
    .navbar > .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    .navbar-brand {
        margin-right: auto !important;
    }
    .navbar-brand img {
        height: 36px !important;
        max-width: 210px !important;
        width: auto !important;
    }
    .navbar-dark .navbar-toggler {
        background-color: #febb44 !important;
        color: #0d0103 !important;
        border: none !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    .navbar-dark .navbar-toggler .fa-bars {
        color: #0d0103 !important;
        font-size: 20px !important;
    }
    .navbar-collapse {
        position: absolute !important;
        top: 60px !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #120406 !important;
        border-bottom: 2px solid #5a221e !important;
        border-top: 1px solid #280a0e !important;
        padding: 20px 25px !important;
        z-index: 1000 !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9) !important;
    }
    .navbar-dark .navbar-nav .nav-link {
        color: #e5e7eb !important;
        padding: 12px 0 !important;
        font-size: 15px !important;
        border-bottom: 1px solid #1f080b !important;
    }
    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: #febb44 !important;
    }
    .navbar-nav .dropdown-menu {
        background-color: #19080b !important;
        border: 1px solid #370f11 !important;
        margin: 5px 0 10px 0 !important;
        padding: 5px 15px !important;
    }
    .navbar-nav .dropdown-item {
        color: #d1d5db !important;
        padding: 8px 0 !important;
    }
    .banner-section {
        height: auto !important;
        min-height: 480px !important;
        padding: 50px 0 40px 0 !important;
    }
    .banner-content {
        text-align: left !important;
        padding: 0 !important;
    }
    .banner-content h4 {
        font-size: 14px !important;
        letter-spacing: 1px !important;
        margin-bottom: 10px !important;
    }
    .banner-content h1 {
        font-size: 1.85rem !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
    }
    .banner-content p {
        font-size: 14.5px !important;
        line-height: 1.6 !important;
        margin-bottom: 24px !important;
    }
    .banner-btn-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }
    .banner-btn-wrapper a {
        margin: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    .banner-img {
        margin-top: 35px !important;
    }
}

/* Page Header & Breadcrumbs */
.page-hero {
    background: linear-gradient(180deg, #140407 0%, #0d0103 100%);
    border-bottom: 1px solid #280a0e;
    padding: 50px 0 35px 0;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 300px;
    background: radial-gradient(ellipse at top, rgba(90, 34, 30, 0.35) 0%, rgba(13, 1, 3, 0) 70%);
    pointer-events: none;
}
/* Page Hero inner text alignment to match Article Content level exactly */
.article-page .page-hero-inner {
    padding-left: 50px;
    padding-right: 50px;
}
@media (max-width: 768px) {
    .article-page .page-hero-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}
.breadcrumb-wrapper {
    margin-bottom: 18px;
}
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.breadcrumb-item {
    color: #8b949e;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: #5a221e;
    padding-right: 8px;
}
.breadcrumb-item a {
    color: #c4a572;
    transition: color 0.2s ease;
}
.breadcrumb-item a:hover {
    color: #febb44;
}
.breadcrumb-item.active {
    color: #9ca3af;
}

/* Page Title & Badges */
.page-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.page-hero-subtitle {
    font-size: 1.1rem;
    color: #b0bec5;
    max-width: 860px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.page-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 13px;
    color: #8b949e;
    padding-top: 15px;
    border-top: 1px solid rgba(254, 187, 68, 0.12);
}
.page-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.page-meta-item i {
    color: #febb44;
}

/* Article Content Layout */
.article-section {
    padding: 50px 0 80px 0;
}
.article-content {
    background: #120507;
    border: 1px solid #230c0f;
    border-radius: 12px;
    padding: 45px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    color: #d1d5db;
    font-size: 16.5px;
    line-height: 1.78;
}
@media (max-width: 768px) {
    .article-content {
        padding: 25px 20px;
        font-size: 15.5px;
    }
    .page-hero-title {
        font-size: 1.65rem;
    }
}

/* Article Reset: eliminate nested section paddings and empty clearing gaps */
.article-content section {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    position: static !important;
    overflow: visible !important;
}
.article-content .clearfix,
.article-content .clear-both,
.article-content [style*="clear"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}

/* Article Typography */
.article-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 24px 0;
    line-height: 1.25;
    border-bottom: 2px solid #370f11;
    padding-bottom: 16px;
}
.article-content h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #febb44;
    margin: 38px 0 16px 0;
    line-height: 1.32;
    position: relative;
    padding-left: 14px;

}
.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 28px 0 12px 0;
    line-height: 1.38;
}
.article-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5a93b;
    margin: 22px 0 10px 0;
    line-height: 1.4;
}
.article-content p {
    margin-top: 0;
    margin-bottom: 18px;
    color: #d1d5db;
    font-size: 16.5px;
    line-height: 1.8;
}
.article-content p:last-child {
    margin-bottom: 0;
}
.article-content > p:first-of-type {
    font-size: 17.5px;
    line-height: 1.82;
    color: #e5e7eb;
}
.article-content strong,
.article-content b {
    color: #ffffff;
    font-weight: 600;
}
/* Content Lists (Unordered - Bullet Points with Gold Dots) */
.article-content ul,
article ul {
    list-style: disc !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin: 16px 0 24px 0 !important;
    padding-left: 28px !important;
}

.article-content ul > li,
article ul > li {
    list-style: disc !important;
    list-style-type: disc !important;
    display: list-item !important;
    margin-bottom: 10px !important;
    line-height: 1.75 !important;
    color: #d1d5db !important;
    padding-left: 6px !important;
}

.article-content ul > li::marker,
article ul > li::marker {
    color: #febb44 !important;
    font-size: 1.15em !important;
}

/* Nested Unordered Lists */
.article-content ul ul,
article ul ul {
    list-style: circle !important;
    list-style-type: circle !important;
    margin: 8px 0 12px 0 !important;
    padding-left: 22px !important;
}

.article-content ul ul > li,
article ul ul > li {
    list-style: circle !important;
    list-style-type: circle !important;
}

.article-content ul ul > li::marker,
article ul ul > li::marker {
    color: #febb44 !important;
}

/* Content Lists (Ordered - Numbered) */
.article-content ol,
article ol {
    list-style: decimal !important;
    list-style-type: decimal !important;
    list-style-position: outside !important;
    margin: 16px 0 24px 0 !important;
    padding-left: 28px !important;
}

.article-content ol > li,
article ol > li {
    list-style: decimal !important;
    list-style-type: decimal !important;
    display: list-item !important;
    margin-bottom: 10px !important;
    line-height: 1.75 !important;
    color: #d1d5db !important;
    padding-left: 6px !important;
}

.article-content ol > li::marker,
article ol > li::marker {
    color: #febb44 !important;
    font-weight: 700 !important;
}

/* Callout / Information Boxes */
.info-callout {
    background: #1a0b0d;
    border-left: 4px solid #febb44;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 28px 0;
}
.info-callout.warning {
    border-left-color: #e55353;
    background: #1c0a0c;
}
.info-callout.success {
    border-left-color: #2eb85c;
    background: #091710;
}
.info-callout-title {
    font-weight: 700;
    font-size: 15px;
    color: #febb44;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-callout.warning .info-callout-title {
    color: #e55353;
}
.info-callout p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Tables Styling */
.table-responsive {
    margin: 28px 0;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #370f11;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    background: #150608;
    margin: 0;
    font-size: 14.5px;
}
.article-content th {
    background: #240a0e;
    color: #febb44;
    font-weight: 700;
    text-align: left;
    padding: 13px 16px;
    border-bottom: 2px solid #5a221e;
    font-size: 14px;
    letter-spacing: 0.3px;
}
.article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #230b0e;
    color: #e5e7eb;
    vertical-align: top;
    line-height: 1.55;
}
.article-content tr:hover td {
    background: #1f0b0e;
}
.article-content code {
    background: #220b0e;
    color: #febb44;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    border: 1px solid #3d1418;
}

/* Figures and Images in Articles: max 70% width, natural 100% height, proportional scaling */
.article-hero, 
.article-media,
.figure-center,
.article-content figure,
figure {
    margin: 32px auto;
    text-align: center;
    max-width: 70%;
    width: auto;
}
.article-content img,
.article-hero img, 
.article-media img,
.figure-center img,
.article-content figure img,
figure img {
    display: block;
    max-width: 70%;
    width: auto;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid #370f11;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
/* When inside a figure that already enforces max-width: 70% */
figure img,
.article-content figure img,
.article-hero img,
.article-media img,
.figure-center img {
    max-width: 100%;
}
figcaption {
    font-size: 13.5px;
    color: #9ca3af;
    margin-top: 10px;
    line-height: 1.45;
    font-style: italic;
    text-align: center;
}
.figure-right,
.figure-left {
    float: none !important;
    width: auto !important;
    max-width: 70% !important;
    margin: 28px auto !important;
    clear: both;
}
@media (max-width: 991px) {
    .article-hero, 
    .article-media,
    .figure-center,
    .article-content figure,
    figure,
    .article-content img {
        max-width: 85%;
    }
}
@media (max-width: 768px) {
    .article-hero, 
    .article-media,
    .figure-center,
    .article-content figure,
    figure,
    .article-content img {
        max-width: 100%;
    }
    .figure-right, .figure-left {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 24px 0;
    }
}
.clearfix {
    clear: both;
}

/* Hub Category Cards Grid */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 25px;
    margin: 40px 0;
}
.hub-card {
    background: #160608;
    border: 1px solid #2e0e12;
    border-radius: 10px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.hub-card:hover {
    transform: translateY(-5px);
    border-color: #febb44;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}
.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #5a221e, #febb44);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.hub-card:hover::before {
    opacity: 1;
}
.hub-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #240c0f;
    border: 1px solid #4a181c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #febb44;
    font-size: 20px;
    margin-bottom: 18px;
}
.hub-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}
.hub-card-text {
    font-size: 14.5px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.hub-card-link {
    color: #febb44;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hub-card-link:hover {
    color: #ffcf66;
    gap: 10px;
}

/* Accordion Styling */
.accordion-item {
    background-color: #160709;
    border: 1px solid #2e0e12;
    margin-bottom: 12px;
    border-radius: 8px !important;
    overflow: hidden;
}
.accordion-button {
    background-color: #1a080b;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 20px;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background-color: #240c10;
    color: #febb44;
    border-bottom: 1px solid #370f11;
}
.accordion-button::after {
    filter: invert(1) brightness(0.8);
}
.accordion-button:not(.collapsed)::after {
    filter: invert(75%) sepia(80%) saturate(800%) hue-rotate(350deg);
}
.accordion-body {
    background-color: #140507;
    color: #d1d5db;
    font-size: 15px;
    line-height: 1.7;
    padding: 20px;
}

/* Contact Form Enhancements */
.contact-form-box {
    background: #140507;
    border: 1px solid #2e0e12;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.form-control, .form-select {
    background-color: #0d0103;
    border: 1px solid #370f11;
    color: #ffffff;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 15px;
}
.form-control:focus, .form-select:focus {
    background-color: #120305;
    border-color: #febb44;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(254, 187, 68, 0.2);
}
.btn-reactor {
    background: linear-gradient(135deg, #febb44 0%, #d89624 100%);
    color: #0d0103;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-reactor:hover {
    background: linear-gradient(135deg, #ffcf66 0%, #febb44 100%);
    color: #0d0103;
    box-shadow: 0 4px 18px rgba(254, 187, 68, 0.4);
    transform: translateY(-2px);
}

/* Footer Enhancements */
footer {
    background-color: #090001;
    border-top: 1px solid #230d10;
    padding: 50px 0 25px 0;
    font-size: 14px;
    color: #9ca3af;
}
.footer-brand-link {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    margin-bottom: 16px !important;
}
.footer-brand-img,
.footer-brand img {
    height: 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
}
.footer-brand-title {
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    color: #febb44 !important;
    margin-left: 12px !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    display: inline-block !important;
}
.footer-desc {
    max-width: 320px;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer-heading {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid #370f11;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li {
    margin-bottom: 10px;
}
.footer-links-list li a {
    color: #9ca3af;
    transition: color 0.2s ease;
    font-size: 13.5px;
}
.footer-links-list li a:hover {
    color: #febb44;
    padding-left: 4px;
}
.footer-bottom-bar {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1a080b;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #6b7280;
}
.footer-bottom-bar a {
    color: #8b949e;
    transition: color 0.2s ease;
}
.footer-bottom-bar a:hover {
    color: #febb44;
}

/* Related Articles Carousel / Grid */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.related-post-card {
    background: #140507;
    border: 1px solid #2b0e11;
    border-radius: 8px;
    padding: 18px;
    transition: all 0.25s ease;
}
.related-post-card:hover {
    border-color: #febb44;
    transform: translateY(-3px);
}
.related-post-card h4 {
    font-size: 15px;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.related-post-card h4 a {
    color: #ffffff;
}
.related-post-card h4 a:hover {
    color: #febb44;
}
.related-post-card p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
}

/* Global Overflow Prevention & Mobile Polish */
html, body {
    overflow-x: hidden !important;
    max-width: 100%;
}

.banner-heading {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.banner-small-heading {
    color: #febb44 !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}
.banner-description {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
    .topbar-contact-wrapper {
        margin-right: 0 !important;
    }
    .topbar-contact-wrapper ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .topbar-contact-wrapper ul li {
        margin-right: 0 !important;
        display: inline-block;
    }
    .navbar-brand img {
        height: 32px !important;
        max-width: 180px !important;
        width: auto !important;
    }
    .banner-container {
        height: auto !important;
        min-height: 480px;
        padding: 40px 0;
    }
    .banner-content-wrapper {
        background: rgba(13, 1, 3, 0.85);
        padding: 24px 18px;
        border-radius: 12px;
        border: 1px solid rgba(90, 34, 30, 0.4);
        margin: 20px 0;
    }
    .banner-heading {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }
    .banner-description {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
}


/* Override background images that cause empty spaces and visual clutter */
.features-container {
    background-image: none !important;
    background-color: var(--secondary-color, #19191a);
}
.how-it-works-container {
    background-image: none !important;
    background-color: var(--primary-color, #0d0103);
}

/* Fix horizontal overflow caused by absolute positioning */
.about-coins-img {
    display: none !important;
}

/* Center align tabs for better symmetry */
.games-tabs-wrapper .nav-pills {
    justify-content: center;
}

/* Override AOS to guarantee visibility even if JS fails */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* Disable AOS completely to fix visibility bugs caused by lazy loading */
[data-aos][data-aos] {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
    transition: none !important;
    pointer-events: auto !important;
}

/* Enhance typography for high-DPI and ultra-wide screens */
.section-heading {
    font-size: clamp(26px, 3vw, 42px) !important;
    font-weight: 700;
}
.banner-heading {
    font-size: clamp(36px, 4.5vw, 64px) !important;
}
.banner-small-heading {
    font-size: clamp(16px, 1.5vw, 22px) !important;
}

/* Fix massive gaps between sections */
section {
    padding: 20px 0px !important;
}
.section-heading-wrapper {
    margin-bottom: 2rem !important;
}

/* Hero Banner Redesign - Professional Studio Level */
.banner-container {
    background-image: linear-gradient(to right, rgba(13, 1, 3, 0.92) 0%, rgba(13, 1, 3, 0.7) 50%, rgba(13, 1, 3, 0.2) 100%), url('../images/content/hero-banner-main.webp') !important;
    background-size: cover !important;
    background-position: center right !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Remove cheap floating chips background from About section */
.about-container {
    background-image: none !important;
    background-color: var(--primary-color, #0d0103) !important;
}
.about-image-wrapper::before,
.about-container::before,
.about-container::after {
    display: none !important;
    background-image: none !important;
}

/* Improve About Image styling to look integrated */
.about-image-wrapper img {
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Premium Typography for About Section */
.about-content-wrapper h2 {
    font-size: clamp(28px, 3.5vw, 42px) !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}
.about-content-wrapper p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

/* Dynamic Logo styling */
.navbar-brand {
    display: flex !important;
    align-items: center !important;
}
.navbar-brand img {
    height: 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}
.navbar-brand::after {
    content: 'GAME REACTOR' !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    color: #febb44 !important;
    margin-left: 12px !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
}

/* Explicit section layout resets */
section {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
}
.features-container,
.how-it-works-container,
.about-container,
.games-container,
.testimonial-container {
    height: auto !important;
    min-height: auto !important;
}

/* ==========================================================================
   Inner Pages - Unified Container Width
   Top menu, topbar, hero block, page content and footer all share the EXACT
   same container width across all inner pages.
   ========================================================================== */
.inner-page .container,
.inner-page .container.article-container,
.inner-page .topbar .container,
.inner-page .navbar .container,
.inner-page footer .container {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (min-width: 992px) {
    .inner-page .container,
    .inner-page .container.article-container,
    .inner-page .topbar .container,
    .inner-page .navbar .container,
    .inner-page footer .container {
        max-width: 1180px !important;
    }
}
@media (min-width: 1200px) {
    .inner-page .container,
    .inner-page .container.article-container,
    .inner-page .topbar .container,
    .inner-page .navbar .container,
    .inner-page footer .container {
        max-width: 1360px !important;
    }
}
@media (min-width: 1400px) {
    .inner-page .container,
    .inner-page .container.article-container,
    .inner-page .topbar .container,
    .inner-page .navbar .container,
    .inner-page footer .container {
        max-width: 1460px !important;
    }
}
@media (min-width: 1600px) {
    .inner-page .container,
    .inner-page .container.article-container,
    .inner-page .topbar .container,
    .inner-page .navbar .container,
    .inner-page footer .container {
        max-width: 1520px !important;
    }
}

.article-container .page-hero-subtitle {
    max-width: 100% !important;
}

/* ==========================================================================
   Homepage H2 Headings Centering
   Positions all H2 headings on the homepage in the exact center.
   ========================================================================== */
.section-heading-wrapper,
.home-page .section-heading-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

.section-heading,
.home-page .section-heading {
    text-align: center !important;
    margin-bottom: 0 !important;
}

.home-page .about-content-wrapper h2,
.home-page .features-content-wrapper h2,
.home-page .howitworks-wrapper h2 {
    text-align: center !important;
}

.home-page .howitworks-wrapper hr {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Live Blackjack Rules Parameter Grid */
.blackjack-rules-wrapper {
    background: #18090b;
    border: 1px solid #370f11;
    border-radius: 14px;
    padding: 24px;
    margin: 28px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.blackjack-rules-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #370f11;
}
.blackjack-rules-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 700;
}
.blackjack-rules-header i {
    color: #febb44;
    font-size: 22px;
}
.blackjack-rule-card {
    background: #240c0f;
    border: 1px solid #370f11;
    border-radius: 10px;
    padding: 16px 18px;
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.blackjack-rule-card:hover {
    border-color: rgba(254, 187, 68, 0.4);
    transform: translateY(-2px);
}
.blackjack-rule-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #febb44;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.blackjack-rule-title i {
    font-size: 16px;
    color: #febb44;
    width: 20px;
    text-align: center;
}
.blackjack-rule-desc {
    color: #d1d5db;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 0;
}
.blackjack-rule-badge {
    display: inline-block;
    background: rgba(254, 187, 68, 0.12);
    color: #febb44;
    border: 1px solid rgba(254, 187, 68, 0.25);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 8px;
}

/* Specificity override for article-content figure (Increased by 50%: max-width 225px, width 30%) */
.article-content figure.article-img-float-left,
figure.article-img-float-left {
    float: left !important;
    margin: 6px 22px 14px 0 !important;
    max-width: 225px !important;
    width: 30% !important;
    min-width: 160px !important;
    text-align: left !important;
    display: block !important;
}

.article-content figure.article-img-float-right,
figure.article-img-float-right {
    float: right !important;
    margin: 6px 0 14px 22px !important;
    max-width: 225px !important;
    width: 30% !important;
    min-width: 160px !important;
    text-align: right !important;
    display: block !important;
}

.article-content figure.article-img-card,
figure.article-img-card {
    background: #18090b !important;
    border: 1px solid #370f11 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
    transition: border-color 0.2s ease, transform 0.2s ease !important;
}
.article-content figure.article-img-card:hover,
figure.article-img-card:hover {
    border-color: rgba(254, 187, 68, 0.5) !important;
    transform: translateY(-2px) !important;
}

.article-content figure.article-img-card img,
figure.article-img-card img,
.article-content .article-img-card img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

@media (max-width: 991.98px) {
    .article-content figure.article-img-float-left,
    .article-content figure.article-img-float-right {
        max-width: 195px !important;
        width: 32% !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 767.98px) {
    .article-content figure.article-img-float-left {
        max-width: 180px !important;
        width: 42% !important;
        margin: 4px 14px 10px 0 !important;
    }
    .article-content figure.article-img-float-right {
        max-width: 180px !important;
        width: 42% !important;
        margin: 4px 0 10px 14px !important;
    }
}





