/* style/resources.css */

/* --- Base Styles & Variables --- */
:root {
    --primary-color: #017439; /* Main green */
    --secondary-color: #FFFFFF; /* White */
    --text-dark: #333333;
    --text-light: #f0f0f0;
    --accent-register: #C30808;
    --accent-login: #C30808;
    --font-register-login: #FFFF00;
    --border-light: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--secondary-color); /* Body background is white */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-resources__section-title {
    font-size: 32px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

.page-resources__light-text {
    color: var(--text-light); /* For sections with dark background */
}

/* --- Buttons --- */
.page-resources__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-resources__btn-register {
    background-color: var(--accent-register);
    color: var(--font-register-login);
    border: 2px solid var(--accent-register);
}

.page-resources__btn-register:hover {
    background-color: #a40707; /* Darken accent-register */
    border-color: #a40707; /* Darken accent-register */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-light);
}

.page-resources__btn-learn-more {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 20px;
}

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

.page-resources__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary:hover {
    background-color: #005a2e; /* Darken primary-color */
    border-color: #005a2e; /* Darken primary-color */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-light);
}

.page-resources__btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.page-resources__btn-link:hover {
    color: #005a2e; /* Darken primary-color */
    text-decoration: underline;
}

/* --- 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;
    background-color: var(--primary-color); /* Fallback background */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.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;
}

.page-resources__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no image filters */
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--secondary-color); /* Light text on dark background */
}

.page-resources__hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-resources__hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-resources__hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
}

/* --- Intro Section --- */
.page-resources__intro-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

/* --- Guides Section (Cards) --- */
.page-resources__guides-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.page-resources__card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources__card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    filter: none; /* Ensure no image filters */
    display: block;
}

.page-resources__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__card-content h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}

.page-resources__card-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-content h3 a:hover {
    color: #005a2e; /* Darken primary-color */
    text-decoration: underline;
}

.page-resources__card-content p {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- More Guides Section (Grid) --- */
.page-resources__more-guides-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark background */
    color: var(--secondary-color); /* Light text */
}

.page-resources__more-guides-section .page-resources__section-description {
    color: var(--text-light);
}

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