/* style/resources.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1A2B3C; /* Dark Blue */
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --background-light: #F8F8F8;
    --background-dark: #2C3E50;
    --accent-color: #E6B800; /* Slightly darker gold for hover/active */
}

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

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

.page-resources__section-title {
    font-size: 2.8em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

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

.page-resources__sub-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 1em;
    color: var(--text-dark);
}

.page-resources__text-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.page-resources__highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* Hero Section */
.page-resources__hero {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 43, 60, 0.7), rgba(26, 43, 60, 0.9));
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 900px;
    padding: 20px;
}

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

.page-resources__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__hero-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-resources__hero-cta {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-cta:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

/* Guides Section */
.page-resources__guides {
    padding: 60px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-resources__guides .page-resources__section-title {
    color: var(--primary-color);
}

.page-resources__guides .page-resources__paragraph {
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-resources__guides .page-resources__text-link {
    color: var(--primary-color);
}

.page-resources__guides .page-resources__text-link:hover {
    color: var(--text-light);
}

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

.page-resources__card {
    background-color: #2C3E50; /* Slightly lighter dark blue for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

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

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

.page-resources__card-text {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-resources__card-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.page-resources__card-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Tips & Strategies Section */
.page-resources__tips-strategies {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-resources__tips-strategies .page-resources__paragraph {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-resources__content-block {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-resources__content-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__content-text {
    flex: 2;
    min-width: 300px;
}

/* News Section */
.page-resources__news {
    padding: 60px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-resources__news .page-resources__section-title {
    color: var(--primary-color);
}

.page-resources__news .page-resources__paragraph {
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-resources__news .page-resources__text-link {
    color: var(--primary-color);
}

.page-resources__news .page-resources__text-link:hover {
    color: var(--text-light);
}

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

.page-resources__news-item {
    background-color: #2C3E50;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.page-resources__news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

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

.page-resources__news-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-resources__news-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-resources__news-date {
    font-size: 0.9em;
    color: #BBBBBB;
    margin-bottom: 15px;
}

.page-resources__news-excerpt {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-resources__news-readmore {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.page-resources__news-readmore:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Safety Section */
.page-resources__safety {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-resources__safety .page-resources__paragraph {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

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

.page-resources__feature-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__feature-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-resources__feature-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__feature-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* FAQ Section */
.page-resources__faq {
    padding: 60px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-resources__faq .page-resources__section-title {
    color: var(--primary-color);
}

.page-resources__faq-list {
    margin-top: 40px;
}

.page-resources__faq-item {
    background-color: #2C3E50;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.page-resources__faq-question {
    font-size: 1.4em;
    color: var(--primary-color);
    padding: 20px 25px;
    cursor: pointer;
    position: relative;
    margin: 0;
    font-weight: 600;
}

.page-resources__faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-resources__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-resources__faq-answer {
    font-size: 1.1em;
    color: var(--text-light);
    padding: 0 25px 20px 25px;
    margin: 0;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-resources__faq-answer.active {
    display: block;
    max-height: 500px; /* Arbitrary large value for smooth transition */
    padding-top: 10px;
}

.page-resources__faq-item .page-resources__text-link {
    color: var(--primary-color);
}

.page-resources__faq-item .page-resources__text-link:hover {
    color: var(--text-light);
}

/* CTA Bottom Section */
.page-resources__cta-bottom {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color), #0F1D2C);
    text-align: center;
    color: var(--text-light);
}

.page-resources__cta-bottom .page-resources__section-title {
    color: var(--primary-color);
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.4em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Floating Buttons */
.page-resources__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-resources__floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    min-width: 150px;
}

.page-resources__floating-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero {
        height: 450px;
    }
    .page-resources__hero-title {
        font-size: 3.5em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2.5em;
    }
    .page-resources__content-block {
        flex-direction: column;
        align-items: center;
    }
    .page-resources__content-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        height: 400px;
    }
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__hero-cta {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-resources__sub-title {
        font-size: 1.5em;
    }
    .page-resources__paragraph {
        font-size: 1em;
    }
    .page-resources__grid-cards, .page-resources__news-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__card-title, .page-resources__news-title {
        font-size: 1.3em;
    }
    .page-resources__feature-title {
        font-size: 1.4em;
    }
    .page-resources__faq-question {
        font-size: 1.2em;
        padding: 15px 20px;
    }
    .page-resources__faq-question::after {
        right: 20px;
    }
    .page-resources__faq-answer {
        font-size: 1em;
        padding: 0 20px 15px 20px;
    }
    .page-resources__cta-button {
        padding: 15px 40px;
        font-size: 1.2em;
    }
    .page-resources__floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    .page-resources__floating-btn {
        padding: 10px 20px;
        font-size: 1em;
        min-width: 130px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero {
        height: 350px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 0.95em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__floating-buttons {
        flex-direction: row;
        width: calc(100% - 30px);
        justify-content: space-around;
        bottom: 10px;
        right: 15px;
        left: 15px;
    }
    .page-resources__floating-btn {
        flex-grow: 1;
        min-width: unset;
    }
}