/* style/resources-understanding-igaming-platforms.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --background-light: #f9f9f9;
}

.page-resources-understanding-igaming-platforms {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Body background from shared.css */
}

.page-resources-understanding-igaming-platforms__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-resources-understanding-igaming-platforms__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);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 50%, #ffffff 100%);
    color: var(--text-light);
}

.page-resources-understanding-igaming-platforms__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-resources-understanding-igaming-platforms__main-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--register-login-font-color); /* Using custom font color for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-resources-understanding-igaming-platforms__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources-understanding-igaming-platforms__hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-resources-understanding-igaming-platforms__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--register-login-font-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--register-login-font-color);
}

.page-resources-understanding-igaming-platforms__cta-button:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-understanding-igaming-platforms__btn-register {
    background: var(--register-button-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-login-font-color);
}

.page-resources-understanding-igaming-platforms__btn-register:hover {
    background: darken(var(--register-button-color), 10%);
}

.page-resources-understanding-igaming-platforms__content-section {
    padding: 60px 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-understanding-igaming-platforms__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources-understanding-igaming-platforms__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-understanding-igaming-platforms__text-white {
    color: var(--text-light) !important;
}

.page-resources-understanding-igaming-platforms__section-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.page-resources-understanding-igaming-platforms__dark-bg .page-resources-understanding-igaming-platforms__section-title {
    color: var(--text-light);
}

.page-resources-understanding-igaming-platforms__sub-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-resources-understanding-igaming-platforms__dark-bg .page-resources-understanding-igaming-platforms__sub-title {
    color: var(--text-light);
}

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

.page-resources-understanding-igaming-platforms__card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-resources-understanding-igaming-platforms__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-understanding-igaming-platforms__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources-understanding-igaming-platforms__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-understanding-igaming-platforms__image-full-width {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.page-resources-understanding-igaming-platforms__image-medium {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.page-resources-understanding-igaming-platforms__list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-resources-understanding-igaming-platforms__list li {
    margin-bottom: 10px;
}

.page-resources-understanding-igaming-platforms__faq-list {
  margin-top: 40px;
}

.page-resources-understanding-igaming-platforms__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

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

.page-resources-understanding-igaming-platforms__faq-item.active .page-resources-understanding-igaming-platforms__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--background-light);
  border-radius: 0 0 5px 5px;
}

.page-resources-understanding-igaming-platforms__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-understanding-igaming-platforms__faq-question:hover {
  background: var(--background-light);
  border-color: darken(var(--border-color), 10%);
}

.page-resources-understanding-igaming-platforms__faq-question:active {
  background: #eeeeee;
}

.page-resources-understanding-igaming-platforms__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-resources-understanding-igaming-platforms__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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-resources-understanding-igaming-platforms__faq-item.active .page-resources-understanding-igaming-platforms__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X when open */
}

.page-resources-understanding-igaming-platforms__center-content {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-understanding-igaming-platforms__main-title {
        font-size: 2.8em;
    }
    .page-resources-understanding-igaming-platforms__section-title {
        font-size: 2em;
    }
    .page-resources-understanding-igaming-platforms__sub-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-resources-understanding-igaming-platforms {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources-understanding-igaming-platforms__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-understanding-igaming-platforms__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-resources-understanding-igaming-platforms__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-resources-understanding-igaming-platforms__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources-understanding-igaming-platforms__content-section {
        padding: 30px 15px;
    }
    .page-resources-understanding-igaming-platforms__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources-understanding-igaming-platforms__sub-title {
        font-size: 1.3em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-resources-understanding-igaming-platforms__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources-understanding-igaming-platforms__card {
        padding: 20px;
    }
    .page-resources-understanding-igaming-platforms__card-image {
        height: 180px;
    }
    .page-resources-understanding-igaming-platforms__image-full-width,
    .page-resources-understanding-igaming-platforms__image-medium {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-understanding-igaming-platforms__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources-understanding-igaming-platforms__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources-understanding-igaming-platforms__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources-understanding-igaming-platforms__faq-answer {
        padding: 0 15px;
    }
    .page-resources-understanding-igaming-platforms__faq-item.active .page-resources-understanding-igaming-platforms__faq-answer {
        padding: 15px !important;
    }
    .page-resources-understanding-igaming-platforms__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-understanding-igaming-platforms__list {
        padding-left: 20px;
    }
    .page-resources-understanding-igaming-platforms__center-content .page-resources-understanding-igaming-platforms__cta-button {
        padding-left: 15px;
        padding-right: 15px;
    }
}