/* style/casino.css */

/* Variables from shared.css: --primary-color (#017439), --secondary-color (#FFFFFF), --header-offset */

.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background from shared.css */
}

/* --- General Section Styling --- */
.page-casino__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-casino__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-casino__section-title--light {
    color: #ffffff;
}

.page-casino__section-description {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-casino__section-description--light {
    color: #f0f0f0;
}

/* --- Hero Section --- */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color), #004d2b); /* Darker green gradient */
    overflow: hidden; /* Prevent image overflow */
}

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-casino__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 30px;
    border-radius: 12px;
    background: rgba(1, 116, 57, 0.9); /* Semi-transparent primary color */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-casino__hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #FFFF00; /* Register/Login font color */
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-casino__hero-description {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CTA Button General Style --- */
.page-casino__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-casino__cta-button:hover {
    background: #004d2b; /* Slightly darker green */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Primary Button */
.page-casino__btn-primary {
    background: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-casino__btn-primary:hover {
    background: #a30606; /* Darker red */
    border-color: #ffffff;
}

/* Secondary Button */
.page-casino__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
    background: #f0f0f0;
    color: #004d2b;
    border-color: #004d2b;
}

/* --- About Section --- */
.page-casino__about-section {
    background-color: var(--secondary-color); /* White background */
}

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

.page-casino__feature-item {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__feature-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-casino__feature-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-casino__feature-text {
    font-size: 16px;
    color: #666666;
}

/* --- Games Section --- */
.page-casino__games-section {
    background: var(--primary-color); /* Dark green background */
    color: #ffffff;
}

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

.page-casino__game-card {
    padding: 25px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-casino__game-card img {
    width: 100%;
    height: 220px; /* Consistent image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-casino__game-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFFF00; /* Yellow for titles */
    margin-bottom: 10px;
}

.page-casino__game-text {
    font-size: 15px;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* --- Promotions Section --- */
.page-casino__promotions-section {
    background-color: var(--secondary-color);
}

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

.page-casino__promo-card {
    padding: 25px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__promo-card img {
    width: 100%;
    height: 200px; /* Consistent image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-casino__promo-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-casino__promo-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__promo-title a:hover {
    color: #004d2b;
    text-decoration: underline;
}

.page-casino__promo-text {
    font-size: 15px;
    color: #666666;
    margin-bottom: 20px;
}

.page-casino__button-group {
    margin-top: 40px;
}

/* --- Security & Support Section --- */
.page-casino__security-support-section {
    background: var(--primary-color); /* Dark green background */
    color: #ffffff;
}

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

.page-casino__info-item {
    padding: 25px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
}

.page-casino__info-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-casino__info-item img {
    width: 100%;
    height: 200px; /* Consistent image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}