/* Site styles for koreamanagement.org (Korean, 1xBet).
   Extracted verbatim from the home page's inline <style> block so the internal
   guide pages render with exactly the same theme as the home page. */

:root {
    --primary-color: #4B0082;
    --secondary-color: #e74c3c;
    --background-color: #f5f7fa;
    --text-color: #2c3e50;
    --star-color: #FFD700;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.navbar {
    background-color: grey;
}

.hero-section {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.container-md {
    max-width: 800px;  /* Adjust this value to control card width */
    margin: 0 auto;
}

.casino-card {
    padding: 1.5rem;
    margin: 3rem auto;  /* Changed to auto for horizontal centering */
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    background: white;
    transition: transform 0.3s ease;
}

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

.casino-logo {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

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

a.casino-logo-link {
    text-decoration: none;
}

.btn-play {
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1;
    min-width: 200px;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.btn-play:before {
    content: '';
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: -1;
}

.btn-play:active {
    transform: translateY(1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-play:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

.promo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.star-rating {
    font-size: 1.2rem;
    color: var(--star-color);
}

.btn-primary {
    padding: 0.75rem 2rem;  /* Bigger padding */
    font-size: 1.1rem;  /* Larger font */
    font-weight: 600;
    min-width: 160px;  /* Minimum width */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-text {
    font-size: 1rem;
}

.btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.star-rating {
    font-size: 0.8rem;
}

.btn-play {
    transition: all 0.3s ease;
}

.btn-play:hover {
    background-color: #c0392b;
    color: white;
}

.content h1, .content h2, .content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.rank-badge {
    margin-left: 20px;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.promo-text {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.casino-logo {
    width: auto;
    height: 100px;
    margin: 0 auto;
    display: block;
}

.star-rating {
    color: var(--star-color);
}

.quick-nav {
    border-left: 4px solid var(--primary-color);
}

.quick-nav a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.quick-nav a:hover {
    color: var(--primary-color);
}

.list-unstyled li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.list-unstyled li:before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.top-cta-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.btn-cta {
    background-color: white;
    color: var(--primary-color);
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-cta:hover {
    background-color: transparent;
    color: white;
}

.welcome-bonus {
    margin: 3.5rem 0 0 0;
    position: relative;
    z-index: 1;
}

.welcome-bonus .card {
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.welcome-bonus .card:hover {
    transform: translateY(-5px);
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.promo-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-2px);
}

.promo-text {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

footer {
    padding: 4rem 0 3rem !important;
    margin-top: 5rem !important;
}

footer .container {
    padding: 0 2rem;
}

footer .row {
    margin-bottom: 3rem;
}

footer img {
    margin: 0 1.5rem;
    padding: 0.5rem;
}

footer .small {
    padding: 0 1rem;
}

footer {
    padding: 4rem !important;
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 2rem !important;
    }
    
    footer .container {
        padding: 0 1rem;
    }
    
    footer img {
        margin: 0.75rem;
    }
}

.casino-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.casino-logo {
    max-height: 60px;
    width: auto;
    margin: 20px auto;
    object-fit: contain;
}

.star-rating {
    color: var(--star-color);
    font-size: 24px;
    letter-spacing: 2px;
}
    
    .medal-1 {
        background: linear-gradient(145deg, #FFD700, #FFA500);
        color: #000;
        font-size: 1.5rem;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    
    .medal-2 {
        background: linear-gradient(145deg, #C0C0C0, #A0A0A0);
        color: #000;
        font-size: 1.4rem;
        box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
    }
    
    .medal-3 {
        background: linear-gradient(145deg, #CD7F32, #A0522D);
        color: #fff;
        font-size: 1.3rem;
        box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
    }
    
    .rank-normal {
        background: #f0f2f5;
        color: #666;
        box-shadow: none;
    }

    .table-rank {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 4px;
        font-weight: bold;
        font-size: 1rem;
    }
    
    .table-rank.rank-1 {
        background: linear-gradient(145deg, #FFD700, #FFA500);
        color: #000;
    }
    
    .table-rank.rank-2 {
        background: linear-gradient(145deg, #C0C0C0, #A0A0A0);
        color: #000;
    }
    
    .table-rank.rank-3 {
        background: linear-gradient(145deg, #CD7F32, #A0522D);
        color: #fff;
    }
    
    .table-rank.rank-normal {
        background: #f0f2f5;
        color: #666;
    }

    .brand-logo-table {
        width: 120px;
        height: 40px;
        object-fit: contain;
        object-position: left;
    }

.table-responsive {
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: rgba(0,0,0,0.05);
}

.brand-logo-table {
    width: 120px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .table {
        /* Enable horizontal scroll for very small screens */
        min-width: 500px;
    }
    
    .table th, .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .brand-logo-table {
        max-height: 25px;
    }
    
    /* Hide less important columns on mobile */
    .table .hide-mobile {
        display: none;
    }
    
    /* Make rank column narrower */
    .table td:first-child {
        width: 50px;
        padding-left: 0.5rem;
    }
    
    /* Adjust button size */
    .table .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Rank badge styles */
.table-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .table-rank {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}

            :root {
                --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            }
            
            body {
                font-size: 1.125rem;
                line-height: 1.7;
                font-family: var(--font-primary);
                font-weight: 400;
                -webkit-font-smoothing: antialiased;
            }
            
            h1 {
                font-size: 3.5rem;
                font-weight: 800;  /* Increased from 700 to 800 for extra boldness */
                line-height: 1.2;  /* Slightly tighter line height */
                letter-spacing: -0.03em;  /* Slightly more negative tracking */
                color: #1a1a1a;  /* Darker color for better contrast */
                margin-bottom: 1.5rem;
            }
            
            .welcome-bonus {
                margin: 2rem 0 3rem;
            }
            
            .promo-text {
                font-size: 1.2rem;
                font-weight: 600;
                color: var(--primary-color);
                letter-spacing: -0.01em;
            }
            
            .btn-primary {
                background-color: var(--primary-color);
                border-color: var(--primary-color);
                padding: 0.5rem 1.25rem;
                font-size: 1rem;
                font-weight: 600;
            }
            
            .btn-primary:hover {
                background-color: var(--secondary-color);
                border-color: var(--secondary-color);
            }
            
            .text-muted {
                font-size: 0.95rem;
                font-weight: 500;
            }
            
            h2, h3, h4, h5, h6 {
                font-family: var(--font-primary);
                letter-spacing: -0.02em;
            }
            
            h2 {
                font-size: 1.875rem;
                font-weight: 700;
                margin-top: 2.5rem;
            }
            
            h3 {
                font-size: 1.5rem;
                font-weight: 700;
            }
            
            .content p {
                font-size: 1.125rem;
                line-height: 1.7;
                margin-bottom: 1.5rem;
                font-weight: 450;
            }
            
            .quick-nav {
                font-size: 1.1rem;
                font-weight: 500;
            }
            
            .quick-nav a {
                font-weight: 500;
            }
            
            .welcome-bonus {
                margin: 1.5rem 0;
            }
            
            .btn-pulse {
                animation: pulse 2s infinite;
                transform-origin: center;
            }
            
            @keyframes pulse {
                0% {
                    transform: scale(1);
                }
                50% {
                    transform: scale(1.05);
                }
                100% {
                    transform: scale(1);
                }
            }
            
            .btn-primary:hover {
                animation: none;
                transform: scale(1.05);
                transition: transform 0.3s ease;
            }

            /* Update container width to be wider */
            @media (min-width: 768px) {
                .welcome-bonus .container {
                    max-width: 1000px;
                }
            }
            /* Korean decision-support layout with a distinct guide CTA. */
            #main-nav { background: #16324f; border-bottom: 3px solid #e6a23c; }
            #main-nav .navbar-brand img { filter: brightness(0) invert(1); }
            #hero-section { background: linear-gradient(135deg, #16324f 0%, #275b73 100%); padding: 3.25rem 0 2.5rem !important; }
            #hero-section h1 { color: #fff; max-width: 800px; font-size: clamp(2rem, 4vw, 3.45rem); font-weight: 800; line-height: 1.1; }
            #author-meta { color: #fff; }
            #last-updated { color: #d4e2eb !important; }
            #welcome-bonus { background: #f4f7f9; padding-top: 1.75rem; }
            #main-promo-card { border: 1px solid #d6e1e8; border-radius: 14px; box-shadow: 0 8px 24px rgba(22,50,79,.11); }
            #korea-checklist { max-width: 1000px; margin: 0 auto 2rem; background: #eaf3f5; border: 1px solid #c7dfe3; border-radius: 14px; padding: 1.2rem 1.25rem; }
            #korea-checklist h2 { color: #16324f; font-size: 1.25rem; margin: 0 0 .85rem; }
            #korea-checklist .check-item { height: 100%; background: #fff; border-radius: 10px; padding: .9rem 1rem; border-top: 4px solid #2a8791; box-shadow: 0 4px 12px rgba(22,50,79,.06); }
            #korea-checklist .check-item strong { display: block; color: #16324f; margin-bottom: .25rem; }
            #korea-checklist .check-item span { color: #506977; font-size: .92rem; }
            #quick-nav-section { background: #f1f6f8 !important; border: 1px solid #d7e4e8; border-radius: 12px !important; }
            #quick-nav-list { columns: 2; column-gap: 2rem; }
            #quick-nav-list li { break-inside: avoid; padding: .22rem 0; }
            #quick-nav-list a { color: #17616b; font-weight: 600; }
            .btn-play { background: #2a8791 !important; border-color: #2a8791 !important; border-radius: 999px !important; padding-inline: 1.35rem; }
            @media (max-width: 700px) { #quick-nav-list { columns: 1; } #hero-section h1 { font-size: 2.1rem; } }
            /* Full-site refresh: calm editorial surfaces with a separate CTA banner. */
            #main-body { background: #eef3f6; color: #263b49; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
            #hero-section { position: relative; overflow: hidden; background: #102a43; min-height: 390px; display: flex; align-items: center; }
            #hero-section::after { content: ''; position: absolute; width: 520px; height: 520px; right: -150px; top: -190px; border: 70px solid rgba(66,166,173,.2); border-radius: 50%; pointer-events: none; }
            #hero-container { position: relative; z-index: 1; }
            #hero-section h1 { letter-spacing: -.035em; max-width: 760px; }
            #top-cta-wrapper { background: #eef3f6; }
            #welcome-bonus { background: transparent; padding: 0 0 1rem; }
            #bonus-container { transform: translateY(-2.25rem); position: relative; z-index: 2; }
            #main-promo-card { background: linear-gradient(105deg, #173b52 0%, #1b6270 62%, #2d8c8f 100%); border: 0; border-radius: 18px; color: #fff; padding: 1.25rem; box-shadow: 0 16px 32px rgba(16,42,67,.22); }
            #main-promo-card .casino-logo { background: rgba(255,255,255,.96); border-radius: 10px; padding: .55rem; max-height: 64px; width: auto; }
            #promo-rating { color: #ffd166 !important; }
            #promo-title { color: #d9f5f2; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
            #promo-description { color: #fff; font-size: 1.55rem; font-weight: 800; }
            #promo-cta-button { background: #ffd166 !important; color: #173b52 !important; border: 0 !important; box-shadow: 0 5px 0 #c99525; font-weight: 800; padding: .8rem 1.35rem; }
            #promo-cta-button:hover { transform: translateY(-2px); }
            #main-content { max-width: 1080px; margin: -1rem auto 3rem; }
            #article-content { background: #fff; border: 1px solid #d7e3e9; border-radius: 20px; padding: 1rem clamp(1rem, 4vw, 3.25rem) 3rem; box-shadow: 0 10px 30px rgba(16,42,67,.07); }
            #article-content > h2:first-child { color: #102a43; font-size: clamp(1.65rem, 3vw, 2.25rem); border-left: 5px solid #2a8791; padding-left: .9rem; }
            #article-content h2 { color: #173b52; font-weight: 800; margin-top: 2.5rem; }
            #article-content p { color: #425765; line-height: 1.78; }
            #article-content ul { background: #f3f8f9; border-radius: 10px; padding: .8rem 1.1rem .8rem 2rem; }
            #article-content li { color: #425765; margin: .35rem 0; }
            #quick-nav-section { background: #102a43 !important; border: 0; border-radius: 14px !important; padding: 1.3rem 1.5rem !important; }
            #quick-nav-title { color: #fff !important; font-size: 1.35rem; }
            #quick-nav-list { background: #f7fafb !important; border-radius: 10px; padding: 1rem 1.2rem !important; }
            #quick-nav-list a { color: #16324f !important; font-weight: 700; }
            #korea-checklist { background: #e2f1f0; border-color: #b9dcda; }
            #promo-cta-button, #promo-cta-button-1, #promo-cta-button-2, #promo-cta-button-3 { background: #ffd166 !important; background-image: none !important; color: #102a43 !important; border: 0 !important; box-shadow: 0 4px 0 #c99525 !important; }
            #promo-cta-button::before, #promo-cta-button::after, #promo-cta-button-1::before, #promo-cta-button-1::after, #promo-cta-button-2::before, #promo-cta-button-2::after, #promo-cta-button-3::before, #promo-cta-button-3::after { display: none !important; content: none !important; }
            .casino-card { background: #f1f7f8 !important; border: 1px solid #b9d9dc !important; border-left: 6px solid #2a8791 !important; border-radius: 10px !important; box-shadow: none !important; padding: .8rem; }
            .casino-card .btn-play { background: #16324f !important; color: #fff !important; box-shadow: none !important; border-radius: 8px !important; }
            @media (max-width: 700px) { #hero-section { min-height: 330px; } #bonus-container { transform: translateY(-1.35rem); } #main-content { margin-top: -.3rem; } #main-promo-card { padding: .8rem; } }
