
/* Reset and base styles for the page-kv999links component */
.page-kv999links {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    padding-bottom: 80px; /* Space for the floating button */
}

/* Ensure all images are responsive by default */
.page-kv999links img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
    margin: 0 auto; /* Center images */
    border-radius: 8px;
    object-fit: cover; /* Ensures images cover their area without distortion */
}

/* General section styling */
.page-kv999links__section {
    padding: 40px 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Section titles */
.page-kv999links__section-title {
    font-size: 2.2em;
    color: #0056b3; /* A strong blue */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-kv999links__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ff6f00; /* Orange accent */
    border-radius: 2px;
}

/* Hero Section */
.page-kv999links__hero-section {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 10px 0 0; /* Adjust padding-top for fixed header */
    overflow: hidden;
    background: linear-gradient(135deg, #0056b3, #003d80); /* Dark blue gradient */
    border-radius: 0 0 15px 15px;
    margin-bottom: 20px;
}

.page-kv999links__hero-banner {
    width: 100%;
    max-height: 400px; /* Limit banner height */
    object-fit: cover;
    border-radius: 0 0 15px 15px;
}

.page-kv999links__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-kv999links__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffeb3b; /* Yellow for prominence */
}

.page-kv999links__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
}

.page-kv999links__cta-button {
    display: inline-block;
    background-color: #ff6f00; /* Orange */
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-kv999links__cta-button:hover {
    background-color: #e65100; /* Darker orange */
    transform: translateY(-3px);
}

/* Floating Login Button */
.page-kv999links__floating-button-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px); /* Adjust for padding on sides */
    max-width: 400px;
    text-align: center;
}

.page-kv999links__floating-button {
    background-color: #ff4081; /* Pink accent */
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    animation: page-kv999links__pulse 1.5s infinite;
    display: block;
    width: 100%;
    text-decoration: none; /* Make sure it doesn't look like a link */
    cursor: pointer;
    border: none;
}

.page-kv999links__floating-button:hover {
    background-color: #e91e63;
    animation: none;
}

@keyframes page-kv999links__pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Game Categories */
.page-kv999links__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-kv999links__game-card {
    background-color: #fefefe;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 15px;
}

.page-kv999links__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-kv999links__game-card-image-wrapper {
    width: 100%;
    height: 150px; /* Fixed height for consistent card appearance */
    overflow: hidden;
    margin-bottom: 15px;
}

.page-kv999links__game-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-kv999links__game-card-title {
    font-size: 1.3em;
    color: #0056b3;
    margin: 0 10px 10px;
    font-weight: bold;
}

.page-kv999links__game-card-description {
    font-size: 0.9em;
    color: #666;
    margin: 0 10px 15px;
    flex-grow: 1; /* Allows description to take up available space */
}

/* How-to Guide */
.page-kv999links__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-kv999links__guide-step {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f0f8ff; /* Light blue background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-kv999links__guide-step:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image and text */
    background-color: #fff8f0; /* Light orange background */
}

.page-kv999links__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff6f00;
    min-width: 60px;
    text-align: center;
}

.page-kv999links__step-content {
    flex: 1;
}

.page-kv999links__step-title {
    font-size: 1.5em;
    color: #0056b3;
    margin-bottom: 10px;
}

.page-kv999links__step-description {
    font-size: 1em;
    color: #555;
}

.page-kv999links__step-image-wrapper {
    width: 180px; /* Fixed width for guide images */
    height: 180px;
    min-width: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-kv999links__step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Promotions */
.page-kv999links__promotion-card {
    background: linear-gradient(45deg, #007bff, #0056b3); /* Blue gradient */
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-kv999links__promotion-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffeb3b;
}

.page-kv999links__promotion-text {
    font-size: 1.3em;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* FAQ Section */
.page-kv999links__faq-list {
    margin-top: 30px;
}

.page-kv999links__faq-item {
    background-color: #fefefe;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-kv999links__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background-color: #e9f7ff; /* Light blue */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #0056b3;
    transition: background-color 0.3s ease;
}

.page-kv999links__faq-question:hover {
    background-color: #d0eaff;
}

.page-kv999links__faq-question h3 {
    margin: 0;
    flex-grow: 1;
    pointer-events: none; /* Prevent h3 from interfering with click event */
}

.page-kv999links__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #ff6f00;
    margin-left: 15px;
    pointer-events: none; /* Prevent toggle icon from interfering with click event */
    transition: transform 0.3s ease;
}

.page-kv999links__faq-item.active .page-kv999links__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-kv999links__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    color: #555;
    font-size: 0.95em;
    background-color: #fdfdfd;
}

.page-kv999links__faq-item.active .page-kv999links__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 15px !important;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-kv999links {
        padding-bottom: 70px; /* Adjust for mobile floating button */
    }

    .page-kv999links__hero-section {
        padding-top: 10px; /* Mobile fixed header spacing */
    }

    .page-kv999links__section {
        padding: 30px 15px;
    }

    .page-kv999links__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-kv999links__hero-title {
        font-size: 2em;
    }

    .page-kv999links__hero-description {
        font-size: 1em;
    }

    .page-kv999links__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-kv999links__floating-button-wrapper {
        bottom: 15px;
        width: calc(100% - 30px);
    }

    .page-kv999links__floating-button {
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-kv999links__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .page-kv999links__game-card-image-wrapper {
        height: 120px;
    }

    .page-kv999links__game-card-title {
        font-size: 1.1em;
    }

    .page-kv999links__game-card-description {
        font-size: 0.8em;
    }

    .page-kv999links__guide-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .page-kv999links__guide-step:nth-child(even) {
        flex-direction: column;
    }

    .page-kv999links__step-number {
        font-size: 2em;
    }

    .page-kv999links__step-image-wrapper {
        width: 150px;
        height: 150px;
        min-width: 150px;
    }

    .page-kv999links__promotion-title {
        font-size: 2em;
    }

    .page-kv999links__promotion-text {
        font-size: 1.1em;
    }

    .page-kv999links__faq-question {
        padding: 15px 18px;
        font-size: 1em;
    }

    .page-kv999links__faq-answer {
        padding: 15px 18px !important;
    }

    /* Force responsive images on mobile */
    .page-kv999links img {
        max-width: 100% !important;
        height: auto !important;
    }
    .page-kv999links__game-card-image-wrapper,
    .page-kv999links__step-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-kv999links__hero-title {
        font-size: 1.8em;
    }
    .page-kv999links__section-title {
        font-size: 1.6em;
    }
    .page-kv999links__floating-button {
        font-size: 1em;
    }
}
  