/* Base styles for the register page */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background: #FFFFFF; /* Default body background is white */
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 10px 0 60px; /* Small top padding, no var(--header-offset) here */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.page-register__hero-content-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Max height for desktop hero */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-register__hero-text-area {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin-top: -100px; /* Overlap slightly with image for visual appeal, but not cover text */
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text area */
    padding: 30px;
    border-radius: 10px;
}

.page-register__main-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF;
    /* Use clamp for responsive font-size */
    font-size: clamp(28px, 4vw, 48px);
}

.page-register__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

/* Common button styles */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border-color: #26A9E0;
}

.page-register__btn-primary:hover {
    background: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
}

.page-register__btn-secondary {
    background: #EA7C07; /* Login/Register color */
    color: #ffffff;
    border-color: #EA7C07;
}

.page-register__btn-secondary:hover {
    background: #c26705;
    border-color: #c26705;
    transform: translateY(-2px);
}

.page-register__btn-light {
    background: #FFFFFF;
    color: #26A9E0;
    border-color: #FFFFFF;
}

.page-register__btn-light:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
    transform: translateY(-2px);
}


/* Section common styles */
.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-register__section-title {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-register__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

.page-register__light-bg {
    background-color: #f8f9fa; /* Light background for contrast */
    padding: 60px 0;
}

.page-register__dark-section {
    background-color: #26A9E0; /* Primary brand color for dark sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__section-description {
    color: #ffffff;
}

.page-register__medium-bg {
    background-color: #eaf6fc; /* Slightly darker light background */
    padding: 60px 0;
}

/* Card common styles */
.page-register__card-title {
    font-size: 22px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-register__dark-section .page-register__card-title {
    color: #ffffff;
}

.page-register__card-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

.page-register__dark-section .page-register__card-text {
    color: #e0e0e0;
}

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

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

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

.page-register__benefit-icon {
    width: 100%; /* Ensure image takes full width of card */
    max-width: 200px; /* Max size for icon-like images */
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-register__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* How to Register Section */
.page-register__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__step-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-register__step-number {
    font-size: 48px;
    font-weight: 800;
    color: #26A9E0;
    margin-bottom: 15px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #26A9E0;
    border-radius: 50%;
    background: #e0f2ff;
}

.page-register__step-image {
    width: 100%;
    max-width: 300px; /* Limit image width in step cards */
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block;
}

/* Explore Games Section */
.page-register__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__game-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__game-card .page-register__card-title {
    color: #26A9E0;
    margin-top: 15px;
}

.page-register__game-card .page-register__card-text {
    color: #555555;
    font-size: 15px;
}

.page-register__game-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Promotions Section */
.page-register__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-register__promo-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__promo-card .page-register__card-title {
    color: #ffffff;
}

.page-register__promo-card .page-register__card-text {
    color: #e0e0e0;
}

.page-register__promo-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.page-register__security-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.page-register__security-icon {
    width: 100%;
    max-width: 150px; /* Small icon-like images */
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-register__faq-list {
    margin-top: 40px;
}

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #f5f5f5;
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Final CTA Section */
.page-register__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

/* Global image styles */
.page-register img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-register__hero-text-area {
        margin-top: -80px;
        padding: 25px;
    }

    .page-register__main-title {
        font-size: clamp(26px, 3.5vw, 42px);
    }

    .page-register__hero-description {
        font-size: 17px;
    }

    .page-register__section-title {
        font-size: clamp(22px, 2.8vw, 36px);
    }

    .page-register__section-description {
        font-size: 17px;
    }

    .page-register__card-title {
        font-size: 20px;
    }

    .page-register__card-text {
        font-size: 15px;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__btn-light {
        padding: 12px 24px;
        font-size: 16px;
    }

    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__games-grid,
    .page-register__promo-cards,
    .page-register__security-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-register__step-number {
        font-size: 40px;
        width: 70px;
        height: 70px;
    }
}


@media (max-width: 768px) {
    /* Top section padding */
    .page-register__hero-section {
        padding: 10px 0 40px;
    }

    /* Hero section adjustments */
    .page-register__hero-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .page-register__hero-image {
        max-height: 400px;
        border-radius: 0;
    }

    .page-register__hero-text-area {
        margin-top: -60px;
        padding: 20px;
        border-radius: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-register__main-title {
        font-size: clamp(24px, 7vw, 36px);
    }

    .page-register__hero-description {
        font-size: 16px;
    }

    /* Buttons responsive */
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}