/* style/reputable-casino.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --dark-background: #000;
    --light-text: #ffffff;
    --dark-text: #333333;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

.page-reputable-casino {
    background-color: var(--dark-background); /* Body background is dark */
    color: var(--light-text); /* Default text color for dark body */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Fixed Navbar Padding */
.page-reputable-casino__hero-placeholder {
    padding-top: 120px; /* Desktop: Adjust for fixed header */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-reputable-casino__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-reputable-casino__hero-title {
    font-size: 3.2em;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-reputable-casino__hero-subtitle {
    font-size: 1.4em;
    color: var(--light-text);
    margin-bottom: 30px;
}

.page-reputable-casino__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--dark-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-reputable-casino__cta-button:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-reputable-casino__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-reputable-casino__section-title--white {
    color: var(--light-text);
}

.page-reputable-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--light-text);
}

.page-reputable-casino__section-description--white {
    color: var(--light-text);
}

.page-reputable-casino__introduction-section,
.page-reputable-casino__guide-section,
.page-reputable-casino__conclusion-section {
    background-color: var(--dark-background);
    color: var(--light-text);
    padding: 60px 0;
}

.page-reputable-casino__dark-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0;
}

.page-reputable-casino__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-reputable-casino__image--left {
    flex: 0 0 45%;
    max-width: 45%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-reputable-casino__image--right {
    flex: 0 0 45%;
    max-width: 45%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-reputable-casino__text-content {
    flex: 1;
}

.page-reputable-casino__text-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--light-text);
}

.page-reputable-casino__text-content--white p {
    color: var(--light-text);
}

.page-reputable-casino__button--primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--dark-text);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-reputable-casino__button--primary:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.page-reputable-casino__button--secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--light-text);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.page-reputable-casino__button--secondary:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

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

.page-reputable-casino__card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--dark-text); /* Card text is dark */
    border: 1px solid var(--border-color);
}

.page-reputable-casino__card--dark-bg {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-reputable-casino__card:hover {
    transform: translateY(-5px);
}

.page-reputable-casino__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-reputable-casino__card--dark-bg .page-reputable-casino__card-title {
    color: var(--secondary-color);
}

.page-reputable-casino__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: contain; /* Ensure image is not cropped, maintain aspect ratio */
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-reputable-casino__card-text {
    font-size: 1em;
    line-height: 1.7;
}

.page-reputable-casino__featured-casinos-section {
    background-color: var(--dark-background);
    color: var(--light-text);
    padding: 60px 0;
}

.page-reputable-casino__featured-card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
    color: var(--dark-text);
    border: 1px solid var(--border-color);
}

.page-reputable-casino__featured-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.page-reputable-casino__featured-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 20px;
    border-radius: 50%;
    border: 1px solid #eee;
}

.page-reputable-casino__featured-title {
    font-size: 2em;
    color: var(--primary-color);
    font-weight: bold;
}

.page-reputable-casino__featured-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.page-reputable-casino__featured-image {
    flex: 0 0 40%;
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-reputable-casino__featured-content {
    flex: 1;
}

.page-reputable-casino__featured-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

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

.page-reputable-casino__step-card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    color: var(--dark-text);
    border: 1px solid var(--border-color);
}

.page-reputable-casino__step-image {
    max-width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: contain; /* Ensure image is not cropped, maintain aspect ratio */
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-reputable-casino__step-title {
    font-size: 1.4em;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.page-reputable-casino__step-card p {
    font-size: 1em;
    line-height: 1.7;
}

.page-reputable-casino__responsible-gaming-section {
    padding: 60px 0;
}

.page-reputable-casino__cta-bottom {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-reputable-casino__faq-section {
    background-color: var(--dark-background);
    color: var(--light-text);
    padding: 60px 0;
}

.page-reputable-casino__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-reputable-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-reputable-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-reputable-casino__faq-item.active .page-reputable-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 5px 5px;
  color: var(--light-text);
}

.page-reputable-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--light-text);
}

.page-reputable-casino__faq-question:hover {
  background: #0056b3;
  border-color: rgba(255, 255, 255, 0.3);
}

.page-reputable-casino__faq-question:active {
  background: #004085;
}

.page-reputable-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--light-text);
}

.page-reputable-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--light-text);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-reputable-casino__faq-item.active .page-reputable-casino__faq-toggle {
  color: var(--light-text);
  transform: rotate(180deg);
}

/* Conclusion Section */
.page-reputable-casino__conclusion-section {
    background-color: var(--dark-background);
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
}

/* General Image Styling */
.page-reputable-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-reputable-casino__hero-title {
        font-size: 2.8em;
    }
    .page-reputable-casino__hero-subtitle {
        font-size: 1.2em;
    }
    .page-reputable-casino__section-title {
        font-size: 2em;
    }
    .page-reputable-casino__featured-title {
        font-size: 1.8em;
    }
    .page-reputable-casino__featured-body {
        flex-direction: column;
    }
    .page-reputable-casino__featured-image {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* Mobile padding-top for fixed header */
    .page-reputable-casino__hero-placeholder {
        padding-top: 100px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
        min-height: 300px;
    }
    .page-reputable-casino__hero-title {
        font-size: 2.2em;
    }
    .page-reputable-casino__hero-subtitle {
        font-size: 1em;
    }
    .page-reputable-casino__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-reputable-casino__container {
        padding: 30px 15px;
    }
    .page-reputable-casino__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-reputable-casino__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-reputable-casino__content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .page-reputable-casino__image--left,
    .page-reputable-casino__image--right,
    .page-reputable-casino__featured-image {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }
    .page-reputable-casino__text-content p {
        font-size: 0.95em;
    }
    .page-reputable-casino__card {
        padding: 20px;
    }
    .page-reputable-casino__card-title {
        font-size: 1.3em;
    }
    .page-reputable-casino__card-image {
        height: 150px;
    }
    .page-reputable-casino__featured-logo {
        width: 60px;
        height: 60px;
    }
    .page-reputable-casino__featured-title {
        font-size: 1.5em;
    }
    .page-reputable-casino__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-reputable-casino__step-image {
        height: 120px;
    }
    .page-reputable-casino__step-title {
        font-size: 1.2em;
    }

    /* Mobile image override */
    .page-reputable-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-reputable-casino__introduction-section .page-reputable-casino__container,
    .page-reputable-casino__criteria-section .page-reputable-casino__container,
    .page-reputable-casino__featured-casinos-section .page-reputable-casino__container,
    .page-reputable-casino__guide-section .page-reputable-casino__container,
    .page-reputable-casino__responsible-gaming-section .page-reputable-casino__container,
    .page-reputable-casino__faq-section .page-reputable-casino__container,
    .page-reputable-casino__conclusion-section .page-reputable-casino__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-reputable-casino__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-reputable-casino__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-reputable-casino__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-reputable-casino__faq-answer {
        padding: 0 15px;
    }
    .page-reputable-casino__faq-item.active .page-reputable-casino__faq-answer {
        padding: 15px !important;
    }
}