/* Basic reset and mobile-first styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f8ff;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

.container {
    max-width: 960px;
}

/* Header (top navigation) */
header.navbar {
    background-color: #3B82F6; /* Blue from previous design */
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #fff !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
}

.navbar-brand .logo-img {
    height: 40px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin-left: 15px;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, #87CEEB, #6495ED);
    background-image: url('images/welcome-bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    padding: 100px 0 80px; /* Increased padding for hero */
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 0.2em;
}

.hero-section h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
}

.hero-section p {
    font-size: 1.1em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.cta-btn {
    background-color: #FF8C00; /* Orange */
    color: #fff;
    font-weight: bold;
    font-size: 1.4em;
    padding: 15px 40px;
    border-radius: 30px;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4); /* Enhanced shadow */
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 140, 0, 0.6);
    color: #fff; /* Keep text white on hover */
}

/* Game of the Month */
.game-of-month {
    background-color: #f0f8ff;
    position: relative;
    padding-top: 70px;
}

.game-of-month-ribbon {
    background-color: #FFD700; /* Gold color */
    color: #8B4513; /* Brown text */
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.game-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: -50px; /* Overlap with welcome block */
    position: relative;
    z-index: 5;
}

.game-icon {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.game-features li {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #555;
}

.game-features i {
    color: #28a745; /* Green checkmark */
    margin-right: 8px;
}

.play-now-btn {
    background-color: #FF8C00; /* Orange */
    color: #fff;
    font-weight: bold;
    font-size: 1.3em;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4); /* Enhanced shadow */
}

.play-now-btn:hover {
    background-color: #e67e00;
    box-shadow: 0 7px 20px rgba(255, 140, 0, 0.6);
}

.game-screenshot {
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.star-rating-title {
    color: #FFD700; /* Gold stars for title rating */
    font-size: 0.8em;
    margin-left: 10px;
}

.small-text {
    font-size: 0.8em;
    color: #666;
}

/* Features Section */
#features {
    background-color: #fff;
    padding: 60px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

#features h3 {
    font-size: 2.2em;
    color: #3B82F6;
    margin-bottom: 40px;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0;
}

.feature-list li {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    font-size: 1.1em;
    max-width: 45%;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    flex: 1 1 calc(50% - 60px); /* Two columns on larger screens */
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: #28a745; /* Green checkmark */
    margin-right: 10px;
    font-size: 1.3em;
}

/* Why Adults Love It Section */
#why {
    background-color: #f0f8ff;
    padding: 60px 0;
}

#why h2 {
    font-size: 2.5em;
    color: #FF8C00;
    margin-bottom: 30px;
}

#why p {
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#why ul.feature-list li {
    background-color: #e9f5ff; /* Lighter blue background */
}

/* Other Great Games */
.other-games {
    background-color: #f0f8ff;
    padding: 60px 0;
}

.other-game-card {
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

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

.other-game-card-green {
    background-color: #C8E6C9; /* Light green */
}

.other-game-card-yellow {
    background-color: #FFECB3; /* Light yellow */
}

.other-game-card-pink {
    background-color: #FFCDD2; /* Light pink */
}

.other-game-icon {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.explore-btn {
    background-color: #6c757d; /* Grey */
    color: #fff;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9em;
}

.explore-btn:hover {
    background-color: #5a6268;
}

/* Testimonials Section */
#reviews {
    background-color: #fff;
    padding: 60px 0;
}

#reviews h3 {
    font-size: 2.2em;
    color: #3B82F6;
    margin-bottom: 40px;
}

.review-card {
    background-color: #fdfdfd;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px; /* Ensure cards have consistent height */
}

.review-avatar {
    width: 90px; /* Larger avatars */
    height: 90px;
    border-radius: 50%;
    border: 4px solid #FFD700; /* Gold border */
    margin-bottom: 15px;
    object-fit: cover;
}

.review-card blockquote {
    margin: 0;
    text-align: center;
    font-size: 1.1em;
    color: #555;
}

.review-card blockquote p {
    font-style: italic;
    margin-bottom: 10px;
}

.review-card blockquote cite {
    display: block;
    font-size: 1em;
    color: #777;
    text-align: center;
    margin-top: 10px;
}

/* Community Section */
#community {
    background-color: #f0f8ff;
    padding: 60px 0;
}

#community h2 {
    font-size: 2.5em;
    color: #FF8C00;
    margin-bottom: 30px;
}

#community p {
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.join-voyage-btn {
    /* Inherits cta-btn styles, can add specific overrides if needed */
}

/* Footer and Responsible Play */
footer {
    background-color: #3B82F6;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #fff;
}

footer p {
    font-size: 1em;
    margin-bottom: 1em;
}

footer .footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-nav a:hover {
    color: #ddd;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section h2 {
        font-size: 1.4em;
    }

    .cta-btn {
        font-size: 1.1em;
        padding: 10px 25px;
    }

    .feature-list li {
        max-width: 100%; /* Single column on small screens */
        flex: 1 1 100%;
    }

    #features h3, #why h2, #reviews h3, #community h2, .game-of-month h2, .other-games h2 {
        font-size: 1.8em;
    }

    .game-card .row {
        flex-direction: column;
    }

    .game-card .col-md-3, .game-card .col-md-6 {
        margin-bottom: 20px;
    }

    .game-icon, .game-screenshot {
        margin-bottom: 15px;
    }

    .other-game-card {
        margin-bottom: 20px;
    }

    .review-card {
        margin-bottom: 20px;
    }

    .review-card blockquote {
        text-align: center;
    }

    .review-card blockquote cite {
        text-align: center;
    }

    .star-rating-title {
        display: block;
        margin-top: 5px;
        margin-left: 0;
    }
}