/* style/resources.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-resources {
    color: #ffffff; /* Light text for readability on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Inherit from body, which uses var(--dark-bg-1) */
}

/* Fixed header offset */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__section--dark {
    background-color: #26A9E0; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffffff; /* Ensure titles are light on dark sections */
    font-weight: bold;
}

.page-resources__section--dark .page-resources__section-title {
    color: #ffffff;
}

.page-resources__section-subtitle {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for subtitles on light background */
}

.page-resources__section--dark .page-resources__section-subtitle {
    color: #ffffff;
}

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

.page-resources__list {
    list-style: disc;
    text-align: left;
    max-width: 900px;
    margin: 20px auto;
    padding-left: 40px;
}

.page-resources__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: linear-gradient(135deg, #26A9E0, #007bff);
    color: #ffffff;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay for text readability */
}

/* 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, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-resources__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Primary brand color text */
    border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87c0;
    border-color: #1e87c0;
}

/* Special button for login with custom color */
.page-resources__cta-buttons .page-resources__btn-secondary[href="login.html"] {
    background-color: #EA7C07; /* Custom login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-resources__cta-buttons .page-resources__btn-secondary[href="login.html"]:hover {
    background-color: #cc6a00;
    border-color: #cc6a00;
}