/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1a365d;
}

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

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

a {
    color: #2c5282;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a365d;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Button styles */
.btn-primary {
    background-color: #2c5282;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #1a365d;
    transform: translateY(-2px);
}

.btn-cookie, .btn-offer {
    background-color: #2c5282;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-cookie:hover, .btn-offer:hover {
    background-color: #1a365d;
}

/* 18+ Age Modal */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.age-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.age-modal-header {
    background-color: #2c5282;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.age-modal-header h2 {
    color: white;
    margin: 0;
}

.age-modal-body {
    padding: 2rem;
    text-align: center;
}

.age-warning {
    background-color: #fed7d7;
    color: #c53030;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.age-modal-footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2d3748;
    color: white;
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-links a {
    color: #90cdf4;
    text-decoration: underline;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    color: #1a365d;
    margin: 0;
    font-size: 1.5rem;
}

/* Navigation */
.nav-toggle-btn {
    display: none;
    position: relative;
    width: 32px;
    height: 24px;
    cursor: pointer;
    z-index: 201;
    pointer-events: auto;
    background: transparent;
    border: none;
    padding: 0;
}

.nav-toggle-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1a365d;
    border-radius: 3px;
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                opacity 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                background-color 0.3s ease;
}

.nav-toggle-btn span:nth-child(1) {
    top: 0;
}

.nav-toggle-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-btn span:nth-child(3) {
    bottom: 0;
}

.nav-close-label {
    background: transparent;
    border: none;
    color: #1a365d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-close-label:hover {
    background-color: #edf2f7;
    transform: translateY(-1px);
}

.nav-close-label:focus-visible {
    outline: 2px solid #2c5282;
    outline-offset: 2px;
}

.nav.nav-open .nav-toggle-btn span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.nav.nav-open .nav-toggle-btn span:nth-child(2) {
    transform: translateY(-50%) scaleX(0);
}

.nav.nav-open .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

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

.nav-close-item {
    display: none;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #ebf8ff;
    color: #2c5282;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url("images/Trust & Comparison Focus.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero h2 {
    font-size: 2.5rem;
    color: #f7fafc;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    color: #2c5282;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.highlight-item i {
    color: #2c5282;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.highlight-item h4 {
    margin-bottom: 0.5rem;
    color: #1a365d;
}

.hero-description {
    max-width: 800px;
    margin: 2rem auto;
    text-align: left;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Offers Section */
.offers {
    padding: 4rem 0;
    background-color: #f7fafc;
}

.offers h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a365d;
}

.offers-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.offers-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.offer-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    border-color: #93c5fd;
}

.offers-list .offer-card {
    border-left: 4px solid #2c5282;
}

.offer-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
}

.offer-header h3 {
    margin: 0;
    color: #1a365d;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-stars {
    color: #f6ad55;
    letter-spacing: 1px;
}

.rating-score {
    margin-left: 0.5rem;
    font-weight: 600;
}

.offer-features {
    margin: 1.5rem 0;
}

.feature {
    padding: 0.5rem 0;
    color: #2d3748;
    font-size: 0.9rem;
}

/* Offer logos and layout */
.offer-card-inner {
    display: grid;
    gap: 1.75rem;
    align-items: flex-start;
}

@media (min-width: 901px) {
    .offers-top .offer-card-inner {
        grid-template-columns: 1fr;
    }

    .offers-top .offer-col-left {
        align-items: center;
    }

    .offers-top .offer-logo {
        margin: 0 auto;
    }

    .offers-top .offer-header {
        background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
        border-radius: 8px;
        padding: 0.75rem 1rem;
        justify-content: center;
    }

    .offers-list .offer-card-inner {
        grid-template-columns: auto minmax(0, 1fr);
    }
}

.offer-col-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.offer-logo {
    width: 160px;
    max-width: 100%;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.offer-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.offers-top .offer-logo {
    background-color: #0f172a;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offers-top .offer-logo img {
    width: auto;
    max-width: 100%;
    max-height: 70px;
}

.offer-col-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.offer-payments {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #4a5568;
}

.offer-payments i {
    font-size: 1.2rem;
}

.offer-payments-label {
    font-size: 0.8rem;
    color: #4a5568;
}

@media (max-width: 900px) {
    /* Offers section mobile/tablet */
    .offers {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .offers h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .offer-card {
        padding: 1.25rem;
    }
    
    .offer-card-inner {
        grid-template-columns: 1fr 1fr;
        column-gap: 1rem;
        row-gap: 0.75rem;
        align-items: flex-start;
    }

    .offer-col-left {
        gap: 0.5rem;
    }

    .offer-logo {
        width: 100%;
        max-width: 140px;
    }

    .offer-metrics {
        font-size: 0.85rem;
    }

    .offer-features {
        display: none;
    }

    .btn-offer {
        align-self: flex-start;
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }

    .offer-payments {
        gap: 0.25rem;
    }

    .offer-payments i {
        font-size: 1.1rem;
    }
}

/* Why Legal Section */
.why-legal {
    padding: 4rem 0;
    background-color: #ffffff;
}

.why-legal h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a365d;
}

.why-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2rem;
    align-items: stretch;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.why-card i {
    font-size: 3rem;
    color: #2c5282;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .why-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ANJ Advantages */
.anj-advantages {
    position: relative;
    padding: 4rem 0;
    background-image: url("images/Responsible Gaming & Regulation.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.anj-advantages::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 0;
}

.anj-advantages .container {
    position: relative;
    z-index: 1;
}

.anj-advantages h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a365d;
}

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

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.advantage-item i {
    color: #2c5282;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

/* License Check */
.license-check {
    padding: 4rem 0;
    background-color: #ffffff;
}

.license-check h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a365d;
}

.check-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}


.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #2c5282;
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Payment Methods */
.payment-methods {
    padding: 4rem 0;
    background-color: #f7fafc;
}

.payment-methods h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a365d;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}


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

.payment-card i {
    font-size: 3rem;
    color: #2c5282;
    margin-bottom: 1rem;
}

/* FAQ */
.faq {
    position: relative;
    padding: 4rem 0;
    background-image: url("images/Responsible Gaming & Regulation2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a365d;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 0;
}

.faq .container {
    position: relative;
    z-index: 1;
}

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

.faq-item h3 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

/* Disclaimer */
.disclaimer {
    padding: 4rem 0;
    background-color: #f7fafc;
}

.disclaimer h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a365d;
}

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


.section-image {
    margin-top: 2rem;
    text-align: center;
}

.section-image img {
    max-width: 640px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

.banner-placeholder {
    text-align: center;
}

.banner-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.banner-item {
    background: #1a202c;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    flex: 1 1 0;
    max-width: 180px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    width: 100%;
    aspect-ratio: 3 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.banner-image-over18 img {
    filter: none;
}

/* Footer */
.footer {
    background-color: #1a365d;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile optimizations */
    .container {
        padding: 0 0.5rem;
    }
    
    /* Reduce spacing on mobile */
    .hero, .offers, .why-legal, .anj-advantages, .license-check, .payment-methods, .faq, .disclaimer {
        padding: 2rem 0;
    }
    
    /* Reduce font sizes */
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .offers h2, .why-legal h2, .anj-advantages h2, .license-check h2, .payment-methods h2, .faq h2, .disclaimer h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Reduce margins between sections */
    .hero-features, .hero-highlights, .offers-grid, .why-grid, .advantages-grid, .check-steps, .payment-grid {
        gap: 1rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    /* Burger menu */
    .nav-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 201;
        pointer-events: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 1.5rem 1.5rem 2rem;
        padding-top: 4.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        gap: 1rem;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 200;
    }
    
    .nav.nav-open .nav-menu {
        transform: translateX(0);
    }
    
    .nav-close-item {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 0.5rem;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.75rem 0;
        width: 100%;
        text-align: left;
    }
    
    /* Hero section mobile */
    .hero-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .feature-item {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 1rem;
    }
    
    .hero-highlights {
        grid-template-columns: 1fr;
    }
    
    .hero-description {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    /* Offers grid mobile */
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .offer-card {
        padding: 1.25rem;
    }
    .offer-card {
        padding: 1.25rem;
    }
    
    /* Banner grid mobile */
    .banner-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        justify-items: center;
    }
    
    .banner-item {
        max-width: 180px;
        width: 100%;
    }
    
    .banner-grid .banner-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    /* Cookie banner mobile */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Age modal mobile */
    .age-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .age-modal-body {
        padding: 1.5rem;
    }
    
    .age-modal-footer {
        padding: 0 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile optimizations */
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .offer-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
    }
    
    .bonus-amount {
        font-size: 1.5rem;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Loading lazy images */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Font Awesome fallback */
.fas, .far {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.far {
    font-weight: 400;
}