/* style/resources.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-resources {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
    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;
    box-sizing: border-box;
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-resources__paragraph {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 80px 0;
    background-color: #0a0a0a; /* Ensure dark background for hero */
    overflow: hidden;
    padding-top: 0; /* Header offset already applied to .page-resources */
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Darken image to ensure text contrast */
    filter: brightness(0.7); /* Further darken for text readability */
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    color: #ffffff;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

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

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary,
.page-resources__btn-inline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #ffffff; /* Overridden to white for WCAG AA contrast compliance with #C30808 background */
    border: 2px solid #C30808;
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom font color for Register/Login, passes contrast with body background */
    border: 2px solid #C30808;
}

.page-resources__btn-secondary:hover {
    background-color: #C30808;
    color: #ffffff;
}

.page-resources__btn-tertiary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    margin-top: 30px;
}

.page-resources__btn-tertiary:hover {
    background-color: #02944d;
    border-color: #02944d;
}

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

.page-resources__btn-tertiary--light:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.page-resources__btn-inline {
    background-color: transparent;
    color: #FFFF00; /* Custom font color for Register/Login, passes contrast with body background */
    border-bottom: 1px solid #FFFF00;
    padding: 0;
    border-radius: 0;
    font-weight: normal;
    margin-top: 10px;
    display: inline;
}

.page-resources__btn-inline:hover {
    color: #e02020;
    border-color: #e02020;
}


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

/* Cards */
.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark body */
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Text for card on dark background */
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffffff;
}

.page-resources__card-link {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.page-resources__card-link:hover {
    color: #FFFF00; /* Custom font color for Register/Login */
}

.page-resources__card-text {
    font-size: 0.95em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* Specific section backgrounds/colors */
.page-resources__promotions-section {
    background-color: #017439; /* Brand green background */
    color: #ffffff;
}

.page-resources__promotions-section .page-resources__section-title,
.page-resources__promotions-section .page-resources__section-description {
    color: #ffffff;
}

.page-resources__promotions-section .page-resources__card {
    background-color: #ffffff; /* White background for cards in green section */
    color: #333333; /* Dark text for white background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__promotions-section .page-resources__card-title,
.page-resources__promotions-section .page-resources__card-link {
    color: #333333;
}

.page-resources__promotions-section .page-resources__card-link:hover {
    color: #017439;
}

.page-resources__promotions-section .page-resources__card-text {
    color: #555555;
}

.page-resources__promotions-section .page-resources__btn-tertiary {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
}

.page-resources__promotions-section .page-resources__btn-tertiary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

/* Security Section specific layout */
.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    text-align: left;
}

.page-resources__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-resources__text-block {
    flex: 1;
}

.page-resources__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__image-full {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Video Section */
.page-resources__video-section {
    background-color: #0a0a0a; /* Ensure dark background for video section */
    padding-top: 60px; /* Adjust as needed, header offset is on main */
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    margin: 40px auto;
}