/* style/hi88.css */

/* Variables */
:root {
    --page-hi88-primary-color: #FFD700; /* Gold */
    --page-hi88-secondary-color: #000080; /* Dark Blue */
    --page-hi88-text-dark: #333333;
    --page-hi88-text-light: #ffffff;
    --page-hi88-background-light: #f8f8f8;
    --page-hi88-background-dark: #1a1a2e; /* Slightly lighter than secondary for contrast */
    --page-hi88-accent-color: #FFC107; /* A brighter gold for accent */
}

.page-hi88 {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-hi88-text-dark);
    background-color: var(--page-hi88-background-light);
}

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

.page-hi88__section {
    padding: 60px 0;
    text-align: center;
}

.page-hi88__section-title {
    font-size: 2.8em;
    margin-bottom: 40px;
    color: var(--page-hi88-secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.page-hi88__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-hi88-primary-color);
    border-radius: 2px;
}

.page-hi88__section-title--light {
    color: var(--page-hi88-text-light);
}

.page-hi88__section-title--light::after {
    background-color: var(--page-hi88-primary-color);
}

.page-hi88__sub-title {
    font-size: 1.8em;
    color: var(--page-hi88-secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-hi88__text-light {
    color: var(--page-hi88-text-light);
}

.page-hi88__text-center {
    text-align: center;
}

/* Hero Section */
.page-hi88__hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: var(--page-hi88-text-light);
}

.page-hi88__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-hi88__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 128, 0.7), rgba(255, 215, 0, 0.4)); /* Dark Blue to Gold overlay */
    z-index: 2;
}

.page-hi88__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-hi88__hero-title {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--page-hi88-primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hi88__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-hi88-text-light);
}

/* Buttons */
.page-hi88__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 10px;
    cursor: pointer;
}

.page-hi88__btn--primary {
    background-color: var(--page-hi88-primary-color);
    color: var(--page-hi88-secondary-color);
    border: 2px solid var(--page-hi88-primary-color);
}

.page-hi88__btn--primary:hover {
    background-color: var(--page-hi88-accent-color);
    transform: translateY(-3px);
}

.page-hi88__btn--secondary {
    background-color: transparent;
    color: var(--page-hi88-secondary-color);
    border: 2px solid var(--page-hi88-secondary-color);
}

.page-hi88__btn--secondary:hover {
    background-color: var(--page-hi88-secondary-color);
    color: var(--page-hi88-primary-color);
    transform: translateY(-3px);
}

.page-hi88__btn--accent {
    background-color: var(--page-hi88-primary-color);
    color: var(--page-hi88-secondary-color);
    border: 2px solid var(--page-hi88-primary-color);
}

.page-hi88__btn--accent:hover {
    background-color: var(--page-hi88-accent-color);
    transform: translateY(-3px);
}

/* Intro Section */
.page-hi88__intro p {
    max-width: 900px;
    margin: 20px auto;
    font-size: 1.1em;
    text-align: left;
    color: var(--page-hi88-text-dark);
}

/* Why Choose Section */
.page-hi88__why-choose {
    background-color: var(--page-hi88-background-dark);
    color: var(--page-hi88-text-light);
}

.page-hi88__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-hi88__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-hi88__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-hi88__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--page-hi88-primary-color));
}

.page-hi88__feature-title {
    font-size: 1.6em;
    color: var(--page-hi88-primary-color);
    margin-bottom: 15px;
}

.page-hi88__feature-item p {
    font-size: 1em;
    color: var(--page-hi88-text-light);
    text-align: left;
}

/* Guidance Section */
.page-hi88__guidance {
    background-color: var(--page-hi88-background-light);
}

.page-hi88__guidance-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-hi88__guidance-text {
    flex: 2;
    min-width: 300px;
}

.page-hi88__guidance-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--page-hi88-text-dark);
}

.page-hi88__guidance-text .page-hi88__btn {
    margin-top: 20px;
}

.page-hi88__guidance-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hi88__guidance-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-hi88__games {
    background-color: var(--page-hi88-background-light);
}

.page-hi88__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.page-hi88__game-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--page-hi88-primary-color);
}

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

.page-hi88__game-title {
    font-size: 1.4em;
    color: var(--page-hi88-secondary-color);
    margin-bottom: 10px;
}

.page-hi88__game-item p {
    font-size: 1em;
    color: var(--page-hi88-text-dark);
}

.page-hi88__game-image-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-hi88__game-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Security Section */
.page-hi88__security {
    background-color: var(--page-hi88-secondary-color);
    color: var(--page-hi88-text-light);
}

.page-hi88__security p {
    max-width: 900px;
    margin: 20px auto;
    font-size: 1.1em;
    text-align: left;
    color: var(--page-hi88-text-light);
}

/* Call to Action Section */
.page-hi88__cta {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.page-hi88__cta-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.4);
}

.page-hi88__cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensure content has space */
}

.page-hi88__cta-text-wrapper {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
}

.page-hi88__cta-text-wrapper .page-hi88__section-title {
    color: var(--page-hi88-primary-color);
}

.page-hi88__cta-text-wrapper .page-hi88__section-title::after {
    background-color: var(--page-hi88-primary-color);
}

.page-hi88__cta-text-wrapper p {
    font-size: 1.2em;
    color: var(--page-hi88-text-light);
    margin-bottom: 30px;
}

.page-hi88__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-hi88__hero-title {
        font-size: 3.5em;
    }
    .page-hi88__section-title {
        font-size: 2.2em;
    }
    .page-hi88__guidance-content {
        flex-direction: column;
        align-items: center;
    }
    .page-hi88__guidance-text, .page-hi88__guidance-image-wrapper {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-hi88__hero {
        height: 500px;
    }
    .page-hi88__hero-title {
        font-size: 2.5em;
    }
    .page-hi88__hero-description {
        font-size: 1.1em;
    }
    .page-hi88__section {
        padding: 40px 0;
    }
    .page-hi88__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-hi88__sub-title {
        font-size: 1.5em;
    }
    .page-hi88__features-grid, .page-hi88__game-grid {
        grid-template-columns: 1fr;
    }
    .page-hi88__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-hi88__cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-hi88__hero {
        height: 400px;
    }
    .page-hi88__hero-title {
        font-size: 2em;
    }
    .page-hi88__hero-description {
        font-size: 0.95em;
    }
    .page-hi88__section-title {
        font-size: 1.5em;
    }
    .page-hi88__feature-item, .page-hi88__game-item {
        padding: 20px;
    }
    .page-hi88__cta-text-wrapper {
        padding: 25px;
    }
    .page-hi88__cta-text-wrapper p {
        font-size: 1em;
    }
}