/*
 Theme Name: TrygtSpill
 Theme URI: https://example.com
 Description: GeneratePress child theme for TrygtSpill.
 Author: TrygtSpill
 Author URI: https://example.com
 Template: generatepress
 Version: 1.0.0
 Text Domain: trygtspill
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

.bulletpoints-list li:before {
	display: none!important; 
}

.bulletpoints-list li {
	padding-left: 0!important;
}

/* Fix for CTA buttons - Force white text */
.ts-games-cta,
.ts-safe-cta,
.ts-contact-button,
.ts-team-member-link,
.ts-author-email-link,
.ts-help-support-link,
[class*="-cta"],
[class*="button"],
[class*="btn"] {
    color: #ffffff !important;
}

.ts-games-cta:hover,
.ts-safe-cta:hover,
.ts-contact-button:hover,
.ts-team-member-link:hover,
.ts-author-email-link:hover,
.ts-help-support-link:hover,
[class*="-cta"]:hover,
[class*="button"]:hover,
[class*="btn"]:hover {
    color: #ffffff !important;
}

/* Specific override for all CTA-type buttons */
a[class*="cta"],
a[class*="button"],
a[class*="btn"],
button[class*="cta"],
button[class*="button"],
button[class*="btn"] {
    color: #ffffff !important;
    text-decoration: none !important;
}

a[class*="cta"]:hover,
a[class*="button"]:hover,
a[class*="btn"]:hover,
button[class*="cta"]:hover,
button[class*="button"]:hover,
button[class*="btn"]:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

html, body {
    scroll-behavior: smooth !important;
    scroll-padding-top: 120px;
}

<script>
document.addEventListener('DOMContentLoaded', function() {
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function(e) {
            e.preventDefault();
            
            const targetId = this.getAttribute('href');
            if (targetId === '#') return;
            
            const targetElement = document.querySelector(targetId);
            
            if (targetElement) {
                const headerOffset = 120;
                const elementPosition = targetElement.getBoundingClientRect().top;
                const offsetPosition = elementPosition + window.pageYOffset - headerOffset;
                
                window.scrollTo({
                    top: offsetPosition,
                    behavior: 'smooth'
                });
            }
        });
    });
});
</script>

/* DYNAMIC CASINO TABLE */
.casino-banners {
    max-width: 1200px;
    margin: 20px auto;
    position: relative;
    z-index: 10;
    overflow: visible;
    padding: 0 10px;
}

.casino-banner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    border: 3px solid #2d2d2d;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    height: 160px;
    margin-bottom: 20px;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.casino-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #b71e00;
}

.casino-box {
    flex: 1;
    height: 100%;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    overflow: visible;
    box-sizing: border-box;
}

/* Logo-boksen - KLICKBAR */
.logo-box {
    max-width: 200px;
    flex: 0 0 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: scale(1.05);
}

.logo-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.casino-logo {
    max-width: 180px;
    height: auto;
}

/* Bonus-informasjon - ALLTID CENTRERAD */
.bonus-box {
    flex: 0 0 370px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
    box-sizing: border-box;
}

.casino-name {
    font-size: 1.6em;
    margin: 0 0 8px;
    color: #1a1a1a;
    font-weight: 700;
    text-align: center;
}

.casino-bonus {
    font-size: 1.1em;
    margin: 0;
    color: #b71e00;
    font-weight: 700;
    text-align: center;
}

/* Bulletpoints-boksen - CENTRERAD */
.bulletpoints-box {
    font-size: 0.9em;
    line-height: 1.3;
    overflow: auto;
    max-height: 190px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}

.bulletpoints-header {
	display: none;
    font-size: 1.3em;
    margin: 0 0 10px;
    color: #1a1a1a;
    font-weight: 700;
    text-align: center;
}

.bulletpoints-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: left;
    width: fit-content;
}

.bulletpoints-list li {
    margin-bottom: 6px;
    color: #3a3a3a;
    position: relative;
    padding-left: 24px;
}

.bulletpoints-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: 700;
}

/* Knapp-seksjonen */
.button-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.button-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button {
    background-color: #b71e00;
    color: #ffffff !important;
    padding: 12px 28px;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s ease;
    display: inline-block;
}

.button:hover {
    background: #d92600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 30, 0, 0.3);
    text-decoration: none !important;
}

/* Mobiltilpasning */
@media screen and (max-width: 768px) {
    .casino-banners {
        padding: 0 10px;
    }

    .casino-banner {
        flex-direction: column;
        height: auto;
        padding: 20px;
        margin-bottom: 20px;
    }

    .casino-box {
        flex: none;
        width: 100%;
        padding: 10px;
    }

    .logo-box {
        max-width: 100%;
        flex: none;
        height: 140px;
        margin-bottom: 20px;
    }

    .casino-logo {
        max-width: 200px;
        max-height: 120px;
    }

    .bonus-box {
        flex: none;
        width: 100%;
        padding: 0;
        text-align: center;
        margin-bottom: 20px;
    }

    .casino-name {
        font-size: 1.5em;
    }

    .casino-bonus {
        font-size: 1.15em;
        margin-bottom: 8px;
    }

    .bulletpoints-box {
        max-height: none;
        padding-top: 15px;
    }

    .bulletpoints-header {
        font-size: 1.3em;
        padding-left: 0;
        margin-bottom: 15px;
    }

    .bulletpoints-list {
        font-size: 1.05em;
        padding: 0;
    }

    .bulletpoints-list li {
        margin-bottom: 10px;
        padding-left: 28px;
        line-height: 1.5;
    }

    .bulletpoints-list li:before {
        font-size: 1.2em;
        left: 0;
    }

    .button-box {
        margin-top: 20px;
        padding: 0;
    }

    .button {
        padding: 16px 32px;
        font-size: 1.15em;
        width: 100%;
        text-align: center;
    }
}

.home .casino-banners {
    padding-left: 10px;
    padding-right: 10px;
}
/* ///////////////////////////////// */
/* Ta bort padding från inside-article och separate-containers */
.inside-article {
  padding: 0 !important;
}

.separate-containers.inside-article {
  padding: 0 !important;
}

/* Alternativt, lägg till negativ margin på hero för att kompensera */
.hero-intro {
  margin-left: -40px;
  margin-right: -40px;
}

/* Om du vill behålla padding men få hero full-width */
@media (min-width: 769px) {
  .hero-intro {
    margin-left: calc(-1 * var(--container-padding, 40px));
    margin-right: calc(-1 * var(--container-padding, 40px));
  }
}

/* /////////////// Header styling ////////////////// */
/* ========================================
   TrygtSpill Premium Header
   ======================================== */

/* Header Container */
.ts-header {
    background: #b71e00;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

/* Logo */
.ts-logo {
    flex-shrink: 0;
}

.ts-logo a {
    display: block;
    text-decoration: none !important;
}

.ts-logo-img {
    height: 55px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ts-logo a:hover .ts-logo-img {
    transform: scale(1.05);
}

/* Desktop Navigation */
.ts-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-left: 48px;
}

.ts-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ts-menu-item {
    position: relative;
}

.ts-menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ts-menu-link:hover {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none !important;
}

.ts-dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.ts-has-dropdown:hover .ts-dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.ts-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 8px;
    margin: 8px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.ts-has-dropdown:hover .ts-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ts-dropdown li {
    margin: 0;
}

.ts-dropdown-link {
    display: block;
    padding: 12px 16px;
    color: #2d2d2d !important;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ts-dropdown-link:hover {
    background: #f8f9fa;
    color: #b71e00 !important;
    text-decoration: none !important;
    transform: translateX(4px);
}

/* Mobile Toggle Button */
.ts-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none !important;
}

.ts-mobile-toggle:focus {
    outline: none !important;
}

.ts-mobile-toggle:active {
    outline: none !important;
}

.ts-hamburger {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.ts-mobile-toggle[aria-expanded="true"] .ts-hamburger:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.ts-mobile-toggle[aria-expanded="true"] .ts-hamburger:nth-child(2) {
    opacity: 0;
}

.ts-mobile-toggle[aria-expanded="true"] .ts-hamburger:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Navigation */
.ts-mobile-nav {
    display: none;
    background: #b71e00;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.ts-mobile-nav.active {
    max-height: 600px;
}

.ts-mobile-menu {
    list-style: none;
    padding: 16px 20px;
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.ts-mobile-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ts-mobile-item:last-child {
    border-bottom: none;
}

.ts-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    background: transparent !important;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.ts-mobile-link:focus {
    outline: none !important;
    background: transparent !important;
}

.ts-mobile-link:active {
    outline: none !important;
    background: transparent !important;
}

.ts-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    background: transparent !important;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.ts-submenu-toggle:focus {
    outline: none !important;
    background: transparent !important;
}

.ts-submenu-toggle:active {
    outline: none !important;
    background: transparent !important;
}

.ts-mobile-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

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

/* Mobile Submenu */
.ts-submenu {
    list-style: none;
    padding: 0 0 12px 16px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ts-has-submenu.active .ts-submenu {
    max-height: 400px;
}

.ts-submenu li {
    margin: 0;
}

.ts-submenu-link {
    display: block;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.ts-submenu-link:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    padding-left: 8px;
}

.ts-submenu-link:focus {
    outline: none !important;
    background: transparent !important;
}

.ts-submenu-link:active {
    outline: none !important;
    background: transparent !important;
}

/* Responsive */
@media (max-width: 968px) {
    .ts-nav {
        display: none;
    }
    
    .ts-mobile-toggle {
        display: flex;
    }
    
    .ts-mobile-nav {
        display: block;
    }
}

@media (max-width: 768px) {
    .ts-header-container {
        height: 80px;
    }
    
    .ts-logo-img {
        height: 45px;
    }
}

/* Scroll Effect */
.ts-header.scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Remove all tap highlights and active states on mobile */
* {
    -webkit-tap-highlight-color: transparent !important;
}

button:focus,
a:focus {
    outline: none !important;
}

button:active,
a:active {
    background: transparent !important;
}


/* New footer */
/* ========================================
   Safety Logos Section
   ======================================== */

.ts-safety-section {
    background: #262F3E;
    padding: 40px 0;
}

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

.ts-safety-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
}

.ts-safety-logo {
    display: block;
    transition: all 0.3s ease;
}

.ts-safety-logo:hover {
    transform: translateY(-4px);
}

.ts-safety-logo img {
    height: 45px;
    width: auto;
    display: block;
   
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.ts-safety-logo:hover img {
    opacity: 1;
}

/* ========================================
   Main Footer
   ======================================== */
/* Footer Reset and Base */
.trygtspill-footer {
    background: #b71e00;
    color: #ffffff;
    margin: 0;
    padding: 0;
    width: 100%;
}

.trygtspill-footer * {
    box-sizing: border-box;
}

/* Container for all sections */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Trust Bar Section */
.footer-trust-section {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    white-space: nowrap;
}

.trust-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Main Footer Section */
.footer-main-section {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    gap: 20px;
}

.footer-logo {
    width: 180px;
    height: auto;
}

.tagline {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
}

.license-badge {
    display: inline-flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.badge-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    white-space: nowrap;
}

.badge-authority {
    font-size: 15px;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
}

/* Headings */
.footer-heading {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Links */
.footer-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    opacity: 0.85;
    padding: 6px 0;
    padding-left: 0;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link::before {
    content: "→";
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff !important;
}

.footer-link:hover {
    opacity: 1 !important;
    padding-left: 20px !important;
    text-decoration: none !important;
    color: #ffffff !important;
}

.footer-link:hover::before {
    opacity: 1;
    left: 0;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    margin: 0;
    font-size: 14px;
}

.contact-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 2px;
    white-space: nowrap;
}

.support-hours {
    margin: 15px 0 0 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    opacity: 0.8;
}

/* Bottom Section */
.footer-bottom-section {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.age-restriction {
    display: flex;
    align-items: center;
    gap: 15px;
}

.age-restriction p {
    margin: 0;
    font-size: 14px;
}

.age-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.certifications {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cert-item {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

/* Legal Section */
.footer-legal-section {
    background: rgba(0, 0, 0, 0.25);
}

.footer-legal-section .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.footer-legal-section p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.legal-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.legal-link:hover {
    opacity: 1 !important;
    text-decoration: none !important;
    color: #ffffff !important;
}

.separator {
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        padding: 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .trust-items {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .certifications {
        justify-content: center;
    }
    
    .footer-legal-section .footer-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
}

/* Focus states for accessibility */
.footer-link:focus,
.legal-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Review Stats */
.review-stats {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.stat-item {
    margin: 0;
    white-space: nowrap;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive for stats */
@media (max-width: 768px) {
    .review-stats {
        justify-content: center;
    }
}