/* style/resources-fi88-account-security.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color: #333333;
    --dark-text-color: #000000;
    --light-text-color: #ffffff;
    --login-button-color: #EA7C07;
    --background-color-light: #f9f9f9;
    --background-color-white: #ffffff;
    --border-color-light: #e0e0e0;
}

.page-resources-fi88-account-security {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color-white); /* Assuming shared body background is light */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-resources-fi88-account-security__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-resources-fi88-account-security__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources-fi88-account-security__section-title {
    font-size: 36px;
    color: var(--dark-text-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-fi88-account-security__sub-title {
    font-size: 24px;
    color: var(--dark-text-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources-fi88-account-security__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-resources-fi88-account-security__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0; /* padding-top already handled by main */
    background: linear-gradient(135deg, var(--primary-color) 0%, #3aade0 100%);
    color: var(--light-text-color);
    overflow: hidden;
}

.page-resources-fi88-account-security__hero-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-resources-fi88-account-security__hero-image {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-resources-fi88-account-security__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0; /* No border-radius for full-width hero */
    filter: none; /* Ensure no color filter */
    min-width: 200px; /* Global image size requirement */
    min-height: 200px; /* Global image size requirement */
}

.page-resources-fi88-account-security__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px 60px; /* Add padding to content part */
    box-sizing: border-box;
}

.page-resources-fi88-account-security__main-title {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-fi88-account-security__subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--light-text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-resources-fi88-account-security__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-fi88-account-security__btn-primary {
    background: var(--login-button-color); /* Use login color for primary CTA */
    color: var(--light-text-color);
    border-color: var(--login-button-color);
}

.page-resources-fi88-account-security__btn-primary:hover {
    background: #c76706; /* Manual darken */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.page-resources-fi88-account-security__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
    margin-left: 20px;
}

.page-resources-fi88-account-security__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-text-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.page-resources-fi88-account-security__cta-group {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

/* Introduction Section */
.page-resources-fi88-account-security__introduction .page-resources-fi88-account-security__section-title {
    color: var(--primary-color);
}

/* Security Measures Section */
.page-resources-fi88-account-security__security-measures {
    background: var(--primary-color);
    color: var(--light-text-color);
}

.page-resources-fi88-account-security__security-measures .page-resources-fi88-account-security__section-title,
.page-resources-fi88-account-security__security-measures .page-resources-fi88-account-security__text-block {
    color: var(--light-text-color);
}

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

.page-resources-fi88-account-security__card {
    background: var(--background-color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-resources-fi88-account-security__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-fi88-account-security__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* Ensure no color filter */
    min-width: 200px;
    min-height: 200px;
}

.page-resources-fi88-account-security__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-fi88-account-security__card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.page-resources-fi88-account-security__card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-resources-fi88-account-security__card a:hover {
    color: #1e87b7;
    text-decoration: underline;
}

/* Login Guide Section */
.page-resources-fi88-account-security__login-guide .page-resources-fi88-account-security__section-title {
    color: var(--primary-color);
}

.page-resources-fi88-account-security__content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 40px;
}

.page-resources-fi88-account-security__text-content {
    padding-right: 20px;
}

.page-resources-fi88-account-security__image-aside {
    text-align: center;
}

.page-resources-fi88-account-security__image-full {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no color filter */
    min-width: 200px;
    min-height: 200px;
}

/* Account Management Section */
.page-resources-fi88-account-security__account-management {
    background: var(--background-color-light);
    padding: 80px 0;
}

.page-resources-fi88-account-security__account-management .page-resources-fi88-account-security__section-title {
    color: var(--primary-color);
}

.page-resources-fi88-account-security__list-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 40px;
}

.page-resources-fi88-account-security__bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-resources-fi88-account-security__bullet-list li {
    background: var(--background-color-white);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-fi88-account-security__bullet-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.page-resources-fi88-account-security__list-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources-fi88-account-security__bullet-list p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.page-resources-fi88-account-security__bullet-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-resources-fi88-account-security__bullet-list a:hover {
    color: #1e87b7;
    text-decoration: underline;
}

.page-resources-fi88-account-security__image-wrapper {
    text-align: center;
}

/* Responsible Gambling Section */
.page-resources-fi88-account-security__responsible-gambling {
    background: var(--background-color-white);
}

.page-resources-fi88-account-security__responsible-gambling .page-resources-fi88-account-security__section-title {
    color: var(--primary-color);
}

/* FAQ Section */
.page-resources-fi88-account-security__faq {
    background: var(--background-color-light);
    padding-bottom: 80px;
}

.page-resources-fi88-account-security__faq .page-resources-fi88-account-security__section-title {
    color: var(--primary-color);
}

.page-resources-fi88-account-security__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* FAQ item styles */
.page-resources-fi88-account-security__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.page-resources-fi88-account-security__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;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height */
.page-resources-fi88-account-security__faq-item.active .page-resources-fi88-account-security__faq-answer {
    max-height: 2000px !important; /* ⚠️ Use!important to ensure priority, value large enough for any content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}