/* Base styles for the page-popular-slot-games */
.page-popular-slot-games {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    background: #F5F7FA; /* Body background from palette */
    line-height: 1.6;
}

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

.page-popular-slot-games__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #E53935; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-popular-slot-games__section-description,
.page-popular-slot-games__text-block {
    font-size: 17px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #333333;
}

.page-popular-slot-games__text-small {
    font-size: 14px;
    color: #666666;
    text-align: center;
    margin-top: 20px;
}

/* Hero Section */
.page-popular-slot-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles header-offset */
    background: #F5F7FA;
    padding-bottom: 40px;
}

.page-popular-slot-games__hero-image {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop hero */
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
}

.page-popular-slot-games__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.page-popular-slot-games__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-popular-slot-games__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 800;
    color: #E53935;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-popular-slot-games__hero-description {
    font-size: 18px;
    color: #333333;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-popular-slot-games__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Buttons */
.page-popular-slot-games__btn-primary,
.page-popular-slot-games__btn-secondary,
.page-popular-slot-games__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
}

.page-popular-slot-games__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Custom button gradient */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-popular-slot-games__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-popular-slot-games__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-popular-slot-games__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

/* Section specific styles */
.page-popular-slot-games__introduction-section,
.page-popular-slot-games__how-to-play-section,
.page-popular-slot-games__tips-section,
.page-popular-slot-games__faq-section {
    padding: 60px 0;
}

.page-popular-slot-games__featured-games {
    padding: 60px 0;
    background: #F5F7FA;
}

.page-popular-slot-games__dark-bg {
    background: #E53935; /* Main brand color for dark sections */
    color: #ffffff; /* White text for dark background */
}

.page-popular-slot-games__dark-bg .page-popular-slot-games__section-title,
.page-popular-slot-games__dark-bg .page-popular-slot-games__text-block {
    color: #ffffff;
}

.page-popular-slot-games__light-bg {
    background: #ffffff; /* White background for light sections */
    color: #333333; /* Dark text for light background */
}

/* Featured Games Grid */
.page-popular-slot-games__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-popular-slot-games__game-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E0E0E0; /* Border from palette */
}

.page-popular-slot-games__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-popular-slot-games__game-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistent card images */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-popular-slot-games__card-title {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-popular-slot-games__card-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-popular-slot-games__card-title a:hover {
    color: #E53935;
}

.page-popular-slot-games__card-text {
    font-size: 15px;
    color: #666666;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-popular-slot-games__card-button {
    padding: 10px 25px;
    font-size: 16px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(229, 57, 53, 0.3);
}

.page-popular-slot-games__card-button:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.5);
}

.page-popular-slot-games__more-games-cta {
    text-align: center;
    margin-top: 40px;
}

/* Advantages Section */
.page-popular-slot-games__advantages-section {
    padding: 60px 0;
}