/* style/resources.css */

/* Variables */
:root {
    --page-resources-primary-color: #FFD700; /* Bright Gold */
    --page-resources-secondary-color: #1E90FF; /* Deep Sky Blue */
    --page-resources-dark-background: #1a1a1a; /* Dark Grey/Black for contrast */
    --page-resources-light-text: #ffffff; /* White text */
    --page-resources-dark-text: #333333; /* Dark text */
    --page-resources-card-background: #2a2a2a;
    --page-resources-border-color: #444444;
    --page-resources-hover-color: #ffeb3b; /* Lighter gold for hover */
    --page-resources-focus-outline: #1E90FF;
}

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

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

.page-resources .page-resources__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--page-resources-dark-background) 0%, #333333 50%, var(--page-resources-dark-background) 100%);
    position: relative;
    overflow: hidden;
}

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

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--page-resources-light-text);
    line-height: 1.2;
}

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

.page-resources__hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.page-resources__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.1em;
    white-space: nowrap;
}

.page-resources__btn--primary {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-dark-text);
    border: 2px solid var(--page-resources-primary-color);
}

.page-resources__btn--primary:hover {
    background-color: var(--page-resources-hover-color);
    border-color: var(--page-resources-hover-color);
    transform: translateY(-2px);
}

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

.page-resources__btn--secondary:hover {
    background-color: var(--page-resources-secondary-color);
    color: var(--page-resources-light-text);
    transform: translateY(-2px);
}

.page-resources__btn--small {
    padding: 8px 18px;
    font-size: 0.9em;
}

.page-resources__btn--large {
    padding: 15px 30px;
    font-size: 1.2em;
}

.page-resources .highlight {
    color: var(--page-resources-primary-color);
}

.page-resources__section {
    padding: 60px 0;
    background-color: var(--page-resources-dark-background);
}

.page-resources__section:nth-of-type(even) {
    background-color: #222222;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--page-resources-light-text);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-resources__section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--page-resources-primary-color);
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-radius: 2px;
}

.page-resources__section-text {
    font-size: 1.1em;
    color: #cccccc;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-resources__card {
    background-color: var(--page-resources-card-background);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--page-resources-border-color);
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--page-resources-border-color);
}

.page-resources__card-title {
    font-size: 1.6em;
    color: var(--page-resources-primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources__card-link {
    color: var(--page-resources-primary-color);
    text-decoration: none;
}

.page-resources__card-link:hover {
    text-decoration: underline;
    color: var(--page-resources-hover-color);
}

.page-resources__card-description {
    color: #b0b0b0;
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-resources__list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #cccccc;
}

.page-resources__list li::before {
    content: '•'; /* Bullet point */
    color: var(--page-resources-secondary-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

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

.page-resources__list-link:hover {
    color: var(--page-resources-secondary-color);
    text-decoration: underline;
}

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

.page-resources__step-card {
    background-color: var(--page-resources-card-background);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-resources-border-color);
    text-align: center;
}

.page-resources__step-title {
    font-size: 1.8em;
    color: var(--page-resources-primary-color);
    margin-bottom: 15px;
}

.page-resources__step-description {
    color: #b0b0b0;
    margin-bottom: 25px;
}

.page-resources__step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.page-resources__safety-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
}

.page-resources__safety-list li {
    background-color: #2a2a2a;
    border: 1px solid var(--page-resources-secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px 20px;
    font-size: 1.1em;
    position: relative;
    color: var(--page-resources-light-text);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-resources__safety-list li:hover {
    background-color: #3a3a3a;
    border-color: var(--page-resources-primary-color);
}

.page-resources__safety-list li::before {
    content: '✅'; /* Checkmark */
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: var(--page-resources-primary-color);
}

.page-resources__safety-list .page-resources__list-link {
    color: var(--page-resources-light-text);
    text-decoration: none;
    padding-left: 35px;
    display: block;
}

.page-resources__safety-list .page-resources__list-link:hover {
    color: var(--page-resources-primary-color);
    text-decoration: underline;
}

.page-resources__cta {
    background: linear-gradient(135deg, var(--page-resources-secondary-color) 0%, var(--page-resources-dark-background) 100%);
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-resources__cta-content {
    max-width: 900px;
    z-index: 1;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: var(--page-resources-light-text);
    margin-bottom: 25px;
    line-height: 1.2;
}

.page-resources__cta-description {
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.page-resources__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--page-resources-primary-color);
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__cta-title {
        font-size: 2.4em;
    }
    .page-resources__grid,
    .page-resources__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 60px 15px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    .page-resources__btn {
        width: 100%;
        max-width: 250px;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__card-title {
        font-size: 1.4em;
    }
    .page-resources__cta {
        padding: 60px 15px;
    }
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__btn--large {
        width: 100%;
        font-size: 1.1em;
    }
    .page-resources__hero-image-wrapper {
        display: none; /* Hide large image on small screens if it takes too much space */
    }
    .page-resources__cta-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__card-title {
        font-size: 1.2em;
    }
    .page-resources__btn-text-desktop {
        display: none;
    }
    .page-resources__cta-title {
        font-size: 1.6em;
    }
}

/* Ensure contrast for text on primary color background if used */
.page-resources__btn--primary, .page-resources__btn--primary:hover {
    color: var(--page-resources-dark-text); /* Ensure dark text on bright gold */
}

.page-resources__btn--secondary,
.page-resources__list-link:hover {
    color: var(--page-resources-secondary-color); /* Ensure good contrast */
}

.page-resources__safety-list li .page-resources__list-link {
    color: var(--page-resources-light-text); /* White text on dark background */
}

.page-resources__safety-list li .page-resources__list-link:hover {
    color: var(--page-resources-primary-color); /* Gold text on dark background */
}

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}