/* style/resources.css */
.page-resources {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

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

/* Hero Section */
.page-resources__hero {
    position: relative;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); /* Darker blue gradient */
    color: #fff;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensure sufficient height */
}

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

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

.page-resources__hero .page-resources__container {
    position: relative;
    z-index: 1;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffc107; /* Highlight with secondary color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

.page-resources__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    margin: 10px;
    cursor: pointer;
}

.page-resources__btn--primary {
    background-color: #ffc107; /* Secondary color for primary action */
    color: #0056b3; /* Darker blue for text on yellow */
    border: 2px solid #ffc107;
}

.page-resources__btn--primary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-resources__btn--secondary {
    background-color: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
}

.page-resources__btn--secondary:hover {
    background-color: #ffc107;
    color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-resources__section {
    padding: 60px 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.page-resources__section:nth-of-type(even) {
    background-color: #eef5ff; /* Light blue tint for alternating sections */
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #007bff; /* Primary color for section titles */
    text-align: center;
    margin-bottom: 40px;
    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: #ffc107;
    border-radius: 2px;
}

.page-resources__introduction p, .page-resources__strategy p, .page-resources__news-trends p, .page-resources__safety p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
}

.page-resources__introduction h3, .page-resources__strategy h3, .page-resources__news-trends h3, .page-resources__safety h3 {
    font-size: 1.8em;
    color: #0056b3; /* Darker primary color for sub-headings */
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Image-Text Layout */
.page-resources__image-text-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-resources__image-text-layout--reverse {
    flex-direction: row-reverse;
}

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

.page-resources__text-content {
    flex: 2;
    min-width: 300px;
}

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

.page-resources__feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.page-resources__feature-item h3 {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-resources__feature-item p {
    font-size: 1em;
    color: #666;
}

.page-resources__cta-group {
    text-align: center;
    margin-top: 50px;
}

/* Strategy Section */
.page-resources__wide-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-resources__wide-image--bottom-margin {
    margin-bottom: 20px; /* Adjust margin for safety section */
}

.page-resources__strategy ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.page-resources__strategy ul li {
    background-color: #fff;
    padding: 15px 20px;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 1.05em;
    color: #444;
}

/* Safety Section */
.page-resources__safety-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources__safety-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__safety-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources__safety-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.page-resources__safety-item h3 {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-resources__safety-item p {
    font-size: 1em;
    color: #666;
}

/* Article List */
.page-resources__article-list {
    background-color: #f0f8ff; /* Lighter blue for this section */
}

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

.page-resources__article-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources__article-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources__article-title a {
    color: #0056b3; /* Darker blue for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #007bff;
}

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

.page-resources__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 6px;
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.page-resources__btn--small:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Final CTA Section */
.page-resources__cta-final {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.page-resources__cta-final-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-resources__cta-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-resources__cta-text .page-resources__section-title {
    color: #ffc107;
    text-align: left;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.page-resources__cta-text .page-resources__section-title::after {
    left: 0;
    transform: translateX(0);
}

.page-resources__cta-text p {
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-subtitle {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__image-text-layout, .page-resources__image-text-layout--reverse {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__content-image {
        order: -1; /* Image first on mobile for reversed layout */
        margin-bottom: 20px;
    }
    .page-resources__text-content {
        min-width: unset;
    }
    .page-resources__cta-final-content {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__cta-text {
        text-align: center;
    }
    .page-resources__cta-text .page-resources__section-title {
        text-align: center;
    }
    .page-resources__cta-text .page-resources__section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 80px 0;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-subtitle {
        font-size: 1em;
    }
    .page-resources__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__introduction p, .page-resources__strategy p, .page-resources__news-trends p, .page-resources__safety p {
        font-size: 1em;
    }
    .page-resources__feature-grid, .page-resources__articles-grid, .page-resources__safety-points {
        grid-template-columns: 1fr;
    }
    .page-resources__cta-final {
        padding: 60px 0;
    }
    .page-resources__cta-text .page-resources__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-subtitle {
        font-size: 0.9em;
    }
    .page-resources__btn {
        margin: 5px;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__introduction h3, .page-resources__strategy h3, .page-resources__news-trends h3, .page-resources__safety h3 {
        font-size: 1.3em;
    }
    .page-resources__article-title {
        font-size: 1.4em;
    }
    .page-resources__cta-text .page-resources__section-title {
        font-size: 1.8em;
    }
}