/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for better readability on dark */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    min-height: 600px;
}

.page-resources__dark-section {
    background: linear-gradient(135deg, #017439, #0a0a0a); /* Brand color with dark background */
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources__hero-content {
    z-index: 2;
    max-width: 800px;
}

.page-resources__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color for emphasis */
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-resources__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
    border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
    background-color: #e01010;
    transform: translateY(-2px);
}

.page-resources__btn-secondary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-resources__btn-secondary:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

/* Hero image */
.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background */
}

/* About Section */
.page-resources__about-section .page-resources__section-title,
.page-resources__tips-section .page-resources__section-title,
.page-resources__faq-section .page-resources__section-title {
    color: #017439; /* Dark text for light background */
}

.page-resources__about-section .page-resources__text-block,
.page-resources__tips-section .page-resources__text-block,
.page-resources__faq-section .page-resources__text-block {
    color: #333333; /* Dark text for light background */
}

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

.page-resources__grid-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-resources__card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-resources__card-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}