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

:root {
    /* Footer colors */
    --color-footer-1: #21295C;
    --color-footer-2: #1B3B6F;
    --color-footer-3: #1C7293;
    --color-footer-4: #9EB3C2;
    
    /* Site backgrounds */
    --color-bg-1: #EDF2FB;
    --color-bg-2: #D7E3FC;
    --color-bg-3: #B6CCFE;
    
    /* Accent elements */
    --color-accent-1: #FF69EB;
    --color-accent-2: #FF86C8;
    --color-accent-3: #FFA3A5;
    --color-accent-4: #FFBF81;
    --color-accent-5: #FFDC5E;

    /* RTP theme colors (palette-aligned) */
    --rtp-red-1: #FF6B6B;  /* warm red */
    --rtp-red-2: var(--color-accent-3); /* soft pinkish red */
    --rtp-orange-1: #FFA94D; /* warm orange */
    --rtp-orange-2: var(--color-accent-4);
    --rtp-yellow-1: #FFC84D; /* warm yellow */
    --rtp-yellow-2: var(--color-accent-5);
    --rtp-green-1: #2BBF6A; /* fresh green */
    --rtp-green-2: #51D88A;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--color-bg-1);
}

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

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--color-footer-2), var(--color-footer-3));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3), var(--color-accent-4));
    padding: 3rem 0;
    text-align: center;
    color: white;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    min-height: 60vh;
}

.section-title {
    font-size: 2rem;
    margin: 2rem 0;
    text-align: center;
    color: var(--color-footer-1);
}

/* Casino Cards */
.casinos-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.casino-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.casino-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.casino-card-hidden {
    display: none;
}

/* Casino Lite Rows */
.casinos-lite-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.casino-row-lite {
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 76px;
}

@media (prefers-reduced-motion: reduce) {
    .casino-row-lite *,
    .casino-row-lite .btn-cta {
      transition: none !important;
    }
  
    .casino-row-lite .btn-cta:hover {
      transform: none !important;
    }
  }

.casino-row-lite__left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.casino-row-lite .casino-rank-box {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
    border-radius: 10px;
}

.casino-row-lite .casino-logo {
    width: 92px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.casino-row-lite .casino-logo img {
    max-width: 80px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.casino-row-lite__title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.casino-row-lite__title .casino-name {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
}

.casino-row-lite .star {
    font-size: 0.9rem;
}

.casino-row-lite .new-badge,
.casino-row-lite .tax-badge {
    padding: 0.20rem 0.4rem;
    font-size: 0.5rem;
}

.casino-row-lite__bonus {
    color: #333;
    font-weight: 600;
    font-size: 12px;
    text-align: right;
    min-width: 0;
    line-height: 1.2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.casino-row-lite__cta {
    display: flex;
    justify-content: flex-end;
}

.casino-row-lite__cta .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1;
    height: 38px;
    white-space: nowrap;
}

.casino-top {
    display: grid;
    grid-template-columns:
        auto                 /* left: rank + logo */
        minmax(0, 1fr)       /* title can shrink */
        minmax(260px, 1fr)   /* bonus prefers width but can share */
        minmax(220px, auto); /* CTA has a floor */
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.top-left { display: flex; align-items: center; }
.top-middle { display: flex; flex-direction: column; gap: 0.25rem; }
.title-and-stars { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.stars-wrap { line-height: 1; }
.top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; min-width: 220px; max-width: none; }
.top-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }

/* Prevent intrinsic width overflow in grid columns */
.top-left, .top-middle, .top-bonus, .top-right { min-width: 0; }
.top-tags { max-width: 100%; }

.casino-identity {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.casino-rank-box {
    width: 80px;
    height: 80px;
    background: var(--color-bg-2);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--color-footer-2);
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
    font-variant-numeric: tabular-nums;
}
.rank-num { line-height: 1; }

.casino-rank {
    font-weight: 700;
    color: var(--color-footer-2);
    font-size: 1.1rem;
}

.casino-logo {
    position: relative;
}

.new-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--color-accent-4);
    color: #fff;
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.tax-badge {
    position: absolute;
    right: -8px;
    bottom: -8px;
    background: #2BBF6A;
    color: #fff;
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.casino-title-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rating-and-tags {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.top-bonus {
    align-self: stretch;
    min-width: 0;
    background: var(--color-bg-1);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-around;
}


.bonus-desc {
    color: #444;
    font-weight: 500;
    margin: 0;
}

.casino-cta {
    flex-shrink: 0;
}

.casino-summary {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 1rem;
    margin-top: 1rem;
}

.summary-left,
.summary-right {
    background: var(--color-bg-1);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.hype-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.hype-list li {
    position: relative;
    padding-left: 1.25rem;
    color: #555;
}

.hype-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: green;
    font-weight: bold;
}

.summary-right .rtp-progress-bar {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details-group {
    margin-top: 1rem;
    background: var(--color-bg-1);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

/* Flatten groups when inside integrated details body */
.details-body .details-group {
    margin-top: 0.75rem;
    background: transparent;
    border-radius: 0;
    padding: 0 1rem;
    box-shadow: none;
}

.details-group h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-footer-2);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mobile-only { display: none; }

/* Badges and summary titles */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}
.badge-green { background: #2BBF6A; color: #fff; }

.summary-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-footer-2);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
}

/* Keep RTP steps in a single row and make steps narrower */
.rtp-steps {
    flex-wrap: nowrap;
    justify-content: flex-start;
}
.rtp-step {
    flex: 0 0 auto;
    width: 11px;
    height: 24px;
    max-width: none;
    min-width: 0;
}

.casino-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.casino-logo {
    width: 160px;
    aspect-ratio: 2 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: var(--color-bg-2);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.casino-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.casino-info {
    flex: 1;
}

.casino-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.casino-name {
    font-size: 1.5rem;
    color: var(--color-footer-1);
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 1.2rem;
}

.star.filled {
    color: var(--color-accent-5);
}

.star.empty {
    color: #ddd;
}

.casino-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.casino-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-3);
    color: var(--color-footer-2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* RTP Progress Bar */
.casino-rtp-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--color-bg-1);
    border-radius: 8px;
}

.rtp-progress-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rtp-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-footer-2);
    text-align: center;
}

.rtp-steps {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.rtp-step {
    flex: 1;
    height: 24px;
    border-radius: 3px;
    transition: all 0.3s;
    max-width: 22px;
    min-width: 15px;
}

.rtp-step.filled {
    background: linear-gradient(135deg, var(--color-footer-2), var(--color-footer-3));
    box-shadow: 0 2px 5px rgba(27, 59, 111, 0.3);
}

/* Hover effect removed per design feedback */

.rtp-step.empty {
    background: #e0e0e0;
    opacity: 0.5;
}

/* Theme: RED (<70) */
.rtp-progress-bar.rtp-red .rtp-step.filled {
    background: linear-gradient(135deg, var(--rtp-red-1), var(--rtp-red-2));
    box-shadow: 0 2px 5px rgba(255, 107, 107, 0.35);
}

/* Theme: ORANGE (>=70 <80) */
.rtp-progress-bar.rtp-orange .rtp-step.filled {
    background: linear-gradient(135deg, var(--rtp-orange-1), var(--rtp-orange-2));
    box-shadow: 0 2px 5px rgba(255, 169, 77, 0.35);
}

/* Theme: YELLOW (>=80 <95) */
.rtp-progress-bar.rtp-yellow .rtp-step.filled {
    background: linear-gradient(135deg, var(--rtp-yellow-1), var(--rtp-yellow-2));
    box-shadow: 0 2px 5px rgba(255, 200, 77, 0.35);
}

/* Theme: GREEN (>=95) */
.rtp-progress-bar.rtp-green .rtp-step.filled {
    background: linear-gradient(135deg, var(--rtp-green-1), var(--rtp-green-2));
    box-shadow: 0 2px 5px rgba(43, 191, 106, 0.3);
}

.rtp-value {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-footer-1);
    text-align: center;
    margin-top: 0.25rem;
}

/* Casino Features */
.casino-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--color-bg-2);
    border-radius: 8px;
}

.feature-item {
    text-align: center;
}

/* Casino Highlights */
.casino-highlights {
    margin-bottom: 1rem;
}

.casino-highlights p {
    color: #555;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.casino-highlights p:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: green;
    font-weight: bold;
}

/* Toggle Button */
.btn-toggle-details {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-bg-3);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--color-footer-1);
    transition: background 0.3s;
}

.btn-toggle-details:hover {
    background: var(--color-bg-2);
}

/* Make toggle look like the header of the info box */
.casino-details-toggle { margin-top: 0.75rem; }
.details-header {
    padding: 0.75rem 1rem;
    background: var(--color-bg-1) !important;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px 8px 0 0;
}
.details-header:hover { background: var(--color-bg-2) !important; }

.btn-arrow {
    transition: transform 0.3s;
}

.btn-toggle-details[aria-expanded="true"] .btn-arrow {
    transform: rotate(180deg);
}

/* Details Section */
.casino-details {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.details-body {
    margin: 0;
    border: 1px solid rgba(0,0,0,0.06);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: var(--color-bg-1);
    padding: 0.25rem 0 0.75rem;
}

.casino-details.hidden {
    display: none;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item label {
    font-weight: bold;
    color: var(--color-footer-2);
}

/* CTA Button */
.casino-action {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-accent-4), var(--color-accent-5));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255, 191, 129, 0.4);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 191, 129, 0.6);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--color-footer-1), var(--color-footer-2), var(--color-footer-3));
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    color: var(--color-footer-4);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--color-footer-4);
}

.footer-disclaimer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem auto 3rem;
    max-width: 1200px;
    padding: 0 20px;
}

.payment-method-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.payment-method-card:hover {
    transform: translateY(-5px);
}

.payment-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.payment-logo--dark {
    background-color: #184E77;
}

.payment-logo--light {
    background-color: #D9ED92;
}

.payment-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-method-card h3 {
    color: var(--color-footer-1);
    margin-bottom: 0.5rem;
}

.payment-rating {
    margin-bottom: 1rem;
}

.payment-details {
    text-align: left;
    font-size: 0.95rem;
}

.payment-details p {
    margin: 0.5rem 0;
}

.pnp {
    color: green;
    font-weight: bold;
}

.no-pnp {
    color: #999;
}

/* PnP Explanation */
.pnp-explanation {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pnp-explanation h3,
.pnp-explanation h4 {
    color: var(--color-footer-1);
    margin: 1.5rem 0 1rem;
}

.pnp-explanation ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--color-bg-2);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-footer-1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--color-bg-3);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-footer-3);
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 1.5rem;
    max-height: 64px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    max-height: 1800px;
}

.faq-answer ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

/* Info Boxes */
.warning-box,
.info-box,
.info-box-alt {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.warning-box {
    border-left: 5px solid var(--color-accent-3);
}

.info-box {
    border-left: 5px solid var(--color-footer-3);
}

.info-box-alt {
    border-left: 5px solid var(--color-accent-5);
}

.info-box h3,
.warning-box h2 {
    color: var(--color-footer-1);
    margin-bottom: 1rem;
}

.info-box ul,
.warning-box ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

/* Content Section */
.content-section {
    max-width: 1200px;
    padding: 20px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

/* Page sections (CMS `section` container): full-width band + optional inner box */
.page-section {
    padding: 2rem 0;
}

.page-section__box {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-section__box--card-white {
    background: #ffffff;
}

.page-section__box--card-muted {
    background: var(--color-bg-1);
}

.page-section__box--card-glass {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-section__box--card-soft-green {
    background: #cedf9c;
}

.page-section__box--card-soft-pink {
    background: #f7b6d6;
}

/* Section background presets (for CMS `section` containers) */
.section-bg--white {
    background: #ffffff;
}

.section-bg--blue {
    background: var(--color-bg-2);
}

.section-bg--green {
    background: #e8f5e9;
}

.content-section p {
    margin-bottom: 1.5rem;
}

.content-section h2,
.content-section h3 {
    color: var(--color-footer-1);
    margin: 2rem 0 1rem;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section a {
    color: var(--color-footer-3);
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
}

/* Error Pages */
.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.error-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.error-code {
    margin-bottom: 2rem;
}

.error-code h1 {
    font-size: 8rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--color-footer-2), var(--color-footer-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 0;
}

.error-text {
    margin-bottom: 2rem;
}

.error-text h2 {
    color: var(--color-footer-1);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-text p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.error-actions {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-bg-3);
    color: var(--color-footer-1);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid var(--color-footer-3);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--color-footer-3);
    color: white;
    transform: translateY(-2px);
}

.error-suggestions,
.error-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-bg-3);
}

.error-suggestions h3,
.error-contact h3 {
    color: var(--color-footer-1);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.suggestion-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.suggestion-links li a {
    color: var(--color-footer-3);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
}

.suggestion-links li a:hover {
    background: var(--color-bg-2);
    color: var(--color-footer-1);
}

.error-contact p {
    margin: 0.5rem 0;
}

.error-contact a {
    color: var(--color-footer-3);
    text-decoration: none;
    font-weight: 500;
}

.error-contact a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.hidden {
    display: none;
}

.top-bonus .bonus-desc {
    text-align: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--color-accent-4), var(--color-accent-5));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--color-accent-3), var(--color-accent-4));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 191, 129, 0.6);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top-icon {
    line-height: 1;
    font-weight: bold;
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}

/* News section */
.news-listing {
    padding: 2rem 0 3rem;
}

.news-listing__header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.news-listing h1,
.news-article h1 {
    color: var(--color-footer-1);
    margin-bottom: 0.5rem;
}

.news-summary {
    color: #4a5568;
    max-width: 720px;
}

.news-categories {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.news-categories ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.news-categories a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--color-bg-3);
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-footer-1);
    background: white;
    transition: all 0.2s;
}

.news-categories a.active,
.news-categories a:hover {
    background: var(--color-footer-2);
    color: white;
    border-color: var(--color-footer-2);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.news-card__thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card__content {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-card__content h2,
.news-card__content h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-footer-1);
}

.news-card__content p {
    margin: 0;
    color: #4a5568;
}

.news-card__actions {
    margin-top: auto;
}

.news-meta {
    color: #718096;
    font-size: 0.9rem;
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.news-article {
    padding: 2rem 0 3rem;
    max-width: 860px;
}

.news-article__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.news-hero img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-body {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    color: #2d3748;
}

.news-body h2,
.news-body h3,
.news-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-footer-1);
}

.news-body p {
    margin-bottom: 1rem;
}

.news-sources,
.news-tags,
.news-related {
    margin-top: 1.75rem;
}

.news-sources ul {
    padding-left: 1rem;
}

.news-tags .tag-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-tags .tag {
    background: var(--color-bg-2);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    color: var(--color-footer-1);
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a {
    color: var(--color-footer-2);
    text-decoration: none;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--color-footer-2);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-footer-3);
    font-weight: 700;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .news-listing__header {
        flex-direction: column;
    }
}
