/* style/resources.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-btn-bg: #C30808;
    --login-btn-bg: #C30808;
    --register-login-text: #FFFF00;
    --light-bg: #FFFFFF;
    --dark-bg-section: #017439;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

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

/* Header offset for fixed header */
.page-resources__hero-section,
.page-resources__video-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* Sections */
.page-resources__hero-section {
    position: relative;
    background-color: var(--dark-bg-section);
    color: var(--text-light);
    text-align: center;
    padding-bottom: 60px;
    overflow: hidden;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.page-resources__hero-section .page-resources__container {
    position: relative;
    z-index: 1;
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__intro-section,
.page-resources__strategy-section,
.page-resources__safety-section,
.page-resources__cta-section {
    background-color: var(--light-bg);
    color: var(--text-dark);
    padding: 60px 20px;
}

.page-resources__guide-section,
.page-resources__promotions-section,
.page-resources__video-section,
.page-resources__faq-section {
    background-color: var(--dark-bg-section);
    color: var(--text-light);
    padding: 60px 20px;
}

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-resources__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
}

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

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

/* 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;
    box-sizing: border-box;
    text-align: center;
}

.page-resources__btn-primary {
    background-color: var(--register-btn-bg);
    color: var(--register-login-text);
    border: 2px solid var(--register-btn-bg);
}

.page-resources__btn-primary:hover {
    background-color: #a00606; /* Slightly darker red */
    border-color: #a00606;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-resources__cta-promotions,
.page-resources__cta-video {
    text-align: center;
    margin-top: 40px;
}

/* Grid for cards */
.page-resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Cards */
.page-resources__card {
    background-color: var(--light-bg);
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

.page-resources__card-image {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-resources__card-title {
    font-size: 1.5em;
    margin: 15px 15px 10px;
}
}