/*
Theme Name: 21Bit Casino
Theme URI: https://x21bitcasino.com
Description: Custom theme for 21Bit Casino
Version: 1.0
Author: Developer
Text Domain: x21bitcasino
*/

/* Google Fonts - Outfit loaded via functions.php wp_enqueue_style */

/* ========================================
   CSS Variables / Color Scheme
   ======================================== */
:root {
    --primary-dark: #1c140a;
    --primary-teal: #3a2510;
    --accent-gold: #ff9100;
    --accent-orange: #ffb74d;
    --text-light: #fff8e8;
    --text-secondary: #b29a74;
    --card-bg: #2a1c0f;
    --border-color: #5a3a1a;
    --main-visual-gradient-start: #8a5a1a;
    --main-visual-gradient-end: #d48a2a;
    --pattern-bg: #d48a2a;
    --primary-teal-strong: #04adc0;
    --accent-orange-dark: #ff9c28;
    --deal-extra-bg-dark: #000f10;
    --deal-extra-bg: #001b1f;
    --deal-extra-bg-light: #003036;
    --deal-extra-bg-rgb: 0,27,31;
    --btn-bg: #ffd800;
    --btn-bg-dark: #d9b800;
    --btn-bg-light: #ffde26;
    --btn-bg-rgb: 255,216,0;
    --btn-text: #1a1a2e;
    --text-muted: #5b8889;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
    letter-spacing: 0.015em;
    word-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header Styles
   ======================================== */
.masthead {
    background-color: var(--primary-dark);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.masthead-logo img {
    height: 40px;
    width: auto;
}

.masthead-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.master-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-list {
    display: flex;
    gap: 25px;
}

.menu-list a {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.menu-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.menu-list a:hover::after,
.menu-list a.active::after {
    width: 100%;
}

.header-controls {
    display: flex;
    gap: 12px;
}

/* ========================================
   Button Styles
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--btn-bg);
    color: var(--btn-text);
}

.btn-primary:hover {
    background-color: var(--btn-bg-dark);
    color: var(--btn-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--btn-bg-rgb), 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--accent-orange);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--accent-orange-dark);
    color: var(--primary-dark);
}

.btn-expanded {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ========================================
   Hero Section
   ======================================== */

/* Hero Pattern Color Variables (customize per brand) */
:root {
    --main-visual-pattern-color: rgba(0, 0, 0, 0.12);
}

.main-visual-section {
    background: var(--primary-dark);
    padding: 140px 0 40px;
    min-height: auto;
    position: relative;
}

.main-visual-section > .container {
    display: block;
    width: 100%;
}

/* Hero Pattern Container - Rounded box with gradient + pattern */
.main-visual-pattern-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    overflow: hidden;
    /* Gradient background */
    background: linear-gradient(135deg, var(--main-visual-gradient-start) 0%, var(--main-visual-gradient-end) 100%);
    /* Pattern will be applied via JS */
    background-repeat: repeat;
}

/* Pattern icon color layer */
.main-visual-pattern-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: inherit;
    color: var(--main-visual-pattern-color);
}

.main-visual-inner {
    position: relative;
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    min-height: 500px;
    width: 100%;
}

.main-visual-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 50px;
    min-height: 500px;
}

.main-visual-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.main-visual-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.main-visual-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* New inline bonus styles matching reference */
.main-visual-deal-extra-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.deal-extra-icon-inline {
    font-size: 2rem;
}

.deal-extra-text-inline {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
}

.main-visual-deal-extra-extra {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 500;
}

/* Hero image wrapper */
.main-visual-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.main-visual-image {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Legacy bonus box styles (keeping for backward compatibility) */
.main-visual-bonus {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-strong) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.deal-extra-text {
    font-size: 1.4rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 15px;
}

.deal-extra-details {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========================================
   Game Categories Section
   ======================================== */
.game-categories {
    padding: 80px 0;
    background-color: var(--primary-dark);
}

.part-heading {
    text-align: center;
    margin-bottom: 50px;
}

.part-heading h2 {
    margin-bottom: 15px;
}

.part-heading p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.catalogs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-teal) 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    width: 50px;
    height: 50px;
}

.category-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--accent-gold);
}

.category-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ========================================
   About Section / Info Table
   ======================================== */
.background-section {
    padding: 80px 0;
    background-color: var(--primary-teal);
}

.background-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.background-content h2 {
    margin-bottom: 20px;
}

.background-content p {
    margin-bottom: 25px;
}

.record-table {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.record-table table {
    width: 100%;
    border-collapse: collapse;
}

.record-table tr {
    border-bottom: 1px solid var(--border-color);
}

.record-table tr:last-child {
    border-bottom: none;
}

.record-table td {
    padding: 18px 25px;
}

.record-table td:first-child {
    color: var(--text-secondary);
    font-weight: 500;
    width: 40%;
}

.record-table td:last-child {
    color: var(--text-light);
    font-weight: 600;
}

/* ========================================
   Game Sections (Slots, Roulette, etc.)
   ======================================== */
.game-section {
    padding: 80px 0;
}

.game-section:nth-child(even) {
    background-color: var(--primary-teal);
}

.game-section:nth-child(odd) {
    background-color: var(--primary-dark);
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.game-grid.reverse {
    direction: rtl;
}

.game-grid.reverse > * {
    direction: ltr;
}

.game-content h2 {
    margin-bottom: 20px;
    color: var(--accent-gold);
}

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

.game-features {
    margin-bottom: 25px;
}

.game-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.game-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.game-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

/* ========================================
   Payment Methods Section
   ======================================== */
.funding-section {
    padding: 80px 0;
    background-color: var(--primary-dark);
}

.funding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.funding-box {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.funding-box h3 {
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.funding-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

/* Unified Payment Methods Block */
.funding-methods-unified {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.funding-method {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-dark);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    border: none;
}

.funding-method svg {
    width: 40px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 4px;
}

.funding-info {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.funding-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.funding-info strong {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .funding-methods-unified {
        padding: 20px 15px;
        gap: 10px;
    }

    .funding-method {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .funding-method svg {
        width: 32px;
        height: 22px;
    }
}

/* ========================================
   FAQ Section
   ======================================== */
.inquiry-section {
    padding: 40px 0 50px;
    background-color: var(--primary-dark);
}

.inquiry-list {
    max-width: 800px;
    margin: 0 auto;
}

.inquiry-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.inquiry-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.inquiry-question:hover {
    background-color: var(--primary-teal);
    border-radius: 12px;
}

/* When FAQ item is open and hovered, only round top corners */
.inquiry-item.active .inquiry-question:hover {
    border-radius: 11px 11px 0 0;
}

/* FAQ toggle button styling */
.inquiry-toggle {
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.inquiry-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.inquiry-item.active .inquiry-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

.inquiry-answer p {
    color: var(--text-secondary);
}

/* ========================================
   Footer Styles
   ======================================== */
.site-base {
    background-color: var(--primary-dark);
    padding: 60px 0 100px;
    border-top: 1px solid var(--border-color);
}

.site-end-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.site-end-column h4,
.site-end-column .site-end-title {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
}

.site-end-column ul li {
    margin-bottom: 12px;
}

.site-end-column ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.site-end-column ul li a:hover {
    color: var(--accent-gold);
}

/* Old site-end-bonus styles removed - now using premium .site-end-deal-extra-box in custom.css */

.provider-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.provider-logos img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.provider-logos img:hover {
    opacity: 1;
}

.site-end-bottom {
    text-align: center;
    padding-top: 20px;
}

.site-end-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.access-restriction {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--card-bg);
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.access-badge {
    background-color: #c00;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

/* ========================================
   Steps Section (Registration, Login, etc.)
   ======================================== */
.roadmap-section {
    padding: 80px 0;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.roadmap-grid.four-steps {
    grid-template-columns: repeat(4, 1fr);
}

.tutorial-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
}

.tutorial-number {
    width: 40px;
    height: 40px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 20px;
}

.tutorial-card h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.tutorial-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step-image {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* ========================================
   Features Grid
   ======================================== */
.capabilities-section {
    padding: 80px 0;
    background-color: var(--primary-teal);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.capabilities-grid.five-cols {
    grid-template-columns: repeat(5, 1fr);
}

.capability-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.capability-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.capability-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: var(--primary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capability-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--accent-gold);
}

.capability-card h4 {
    margin-bottom: 10px;
}

.capability-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   Loyalty / VIP Section
   ======================================== */
.premium-club-section {
    padding: 80px 0;
    background-color: var(--primary-dark);
}

.royal-levels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.royal-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-teal) 100%);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.royal-card.featured {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.royal-badge {
    font-size: 2rem;
    margin-bottom: 15px;
}

.royal-card h4 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.royal-perks {
    text-align: left;
}

.royal-perks li {
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.royal-perks li:last-child {
    border-bottom: none;
}

/* ========================================
   Special Offers Section
   ======================================== */
.highlighted-items-section {
    padding: 80px 0;
    background-color: var(--primary-teal);
}

.highlighted-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.highlighted-deal-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.highlighted-deal-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlighted-deal-content h4 {
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.highlighted-deal-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ========================================
   Promo Code Section
   ======================================== */
.promo-section {
    padding: 80px 0;
    background-color: var(--primary-dark);
}

.promo-box {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-strong) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.promo-box h3 {
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.promo-box p {
    margin-bottom: 25px;
}

.promo-input {
    display: flex;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.promo-input input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 1rem;
}

.promo-input input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* ========================================
   Troubleshooting Section
   ======================================== */
.repair-guide-section {
    padding: 80px 0;
    background-color: var(--primary-teal);
}

.repair-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.repair-guide-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.repair-guide-card h4 {
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.repair-guide-card p {
    margin-bottom: 15px;
}

/* ========================================
   Platform Guides (Android/iOS)
   ======================================== */
.access-app-section {
    padding: 80px 0;
}

.access-app-section.android {
    background-color: var(--primary-dark);
}

.access-app-section.ios {
    background-color: var(--primary-teal);
}

.access-app-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.access-app-icon {
    width: 50px;
    height: 50px;
}

.access-app-header h2 {
    margin: 0;
}

/* ========================================
   Trust Section
   ======================================== */
.confidence-section {
    padding: 80px 0;
    background-color: var(--primary-teal);
}

.confidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.confidence-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.confidence-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confidence-card h4 {
    margin-bottom: 12px;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-orange { color: var(--accent-orange); }
.text-light { color: var(--text-light); }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* ========================================
   Responsive Adjustments (Desktop Focus)
   ======================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .catalogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .capabilities-grid,
    .capabilities-grid.five-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .royal-levels {
        grid-template-columns: repeat(3, 1fr);
    }

    .roadmap-grid,
    .roadmap-grid.four-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .site-end-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .background-grid {
        grid-template-columns: 1fr;
    }

    .confidence-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .repair-guide-grid {
        grid-template-columns: 1fr;
    }

    .highlighted-items-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .catalogs-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-grid,
    .capabilities-grid.five-cols {
        grid-template-columns: 1fr;
    }

    .royal-levels {
        grid-template-columns: 1fr;
    }

    .royal-card.featured {
        transform: none;
    }

    .roadmap-grid,
    .roadmap-grid.four-steps {
        grid-template-columns: 1fr;
    }

    .site-end-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .confidence-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .main-visual-section {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .main-visual-title {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }
}
