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

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

/* --- HERO Section --- */
.page-resources__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); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #009688 100%); /* Example gradient for visual appeal */
    color: var(--light-text);
}

.page-resources__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-resources__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 100%;
    box-sizing: border-box;
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 8px;
    margin-top: -80px; /* Overlap with image slightly for visual effect */
}

.page-resources__hero-content h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--light-text);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--light-text);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__cta-button:hover {
    background: #005a2d; /* Darken primary color */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styles --- */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    width: 100%;
}

.page-resources__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-resources__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources__text-block a:hover {
    color: #005a2d; /* Darken primary color */
}

/* --- Light Background Sections --- */
.page-resources__light-bg {
    background-color: var(--secondary-color); /* White background */
    color: var(--dark-text);
}

/* --- Dark Background Sections --- */
.page-resources__dark-bg {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.page-resources__dark-bg .page-resources__section-title {
    color: var(--light-text);
}

.page-resources__dark-bg .page-resources__section-title::after {
    background-color: var(--light-text);
}

.page-resources__dark-bg .page-resources__text-block a {
    color: var(--light-text);
}

.page-resources__dark-bg .page-resources__text-block a:hover {
    color: #f0f0f0; /* Lighten light text */
}

/* --- Guide Section --- */
.page-resources__guide-section {
    padding: 60px 0;
}

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

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

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

.page-resources__guide-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%; /* Ensure image fills container */
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-resources__guide-item h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources__guide-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources__guide-item h3 a:hover {
    text-decoration: underline;
}

.page-resources__guide-item p {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.page-resources__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary:hover {
    background: #005a2d; /* Darken primary color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Strategy Section --- */
.page-resources__strategy-section {
    padding: 60px 0;
}

.page-resources__strategy-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--dark-text);
    border: 1px solid var(--border-color); /* Added for contrast */
}

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

.page-resources__card img {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-resources__card h3 {
    font-size: 1.3em;
    padding: 15px 20px 10px;
    margin: 0;
    color: var(--primary-color);
}

.page-resources__card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources__card h3 a:hover {
    text-decoration: underline;
}

.page-resources__card p {
    font-size: 0.9em;
    padding: 0 20px 15px;
    color: var(--dark-text);
}

.page-resources__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    margin: 0 20px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- Security Section --- */
.page-resources__security-section {
    padding: 60px 0;
}

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

.page-resources__feature-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--light-text);
}

.page-resources__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-resources__feature-item h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--light-text);
}

.page-resources__feature-item p {
    font-size: 0.95em;
    color: var(--light-text);
}

/* --- News & Updates Section --- */
.page-resources__news-updates-section {
    padding: 60px 0;
}

.page-resources__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__news-card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--dark-text);
    border: 1px solid var(--border-color); /* Added for contrast */
}

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

.page-resources__news-card img {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-resources__news-card h3 {
    font-size: 1.3em;
    padding: 15px 20px 10px;
    margin: 0;
    color: var(--primary-color);
}

.page-resources__news-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources__news-card h3 a:hover {
    text-decoration: underline;
}

.page-resources__news-card p {
    font-size: 0.9em;
    padding: 0 20px 15px;
    color: var(--dark-text);
}

.page-resources__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 20px;
}

/* --- FAQ Section --- */
.page-resources__faq-section {
    padding: 60px 0;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--secondary-color); /* White background for FAQ items */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--dark-text);
}