/* style/resources.css */

/* Variables */
:root {
    --page-resources-primary-color: #0A246A;
    --page-resources-secondary-color: #F39C12;
    --page-resources-text-light: #FFFFFF;
    --page-resources-text-dark: #333333;
    --page-resources-bg-light: #F8F8F8;
    --page-resources-bg-dark: #071A4E;
    --page-resources-border-color: #E0E0E0;
}

/* Base styles for the page content */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: var(--page-resources-text-dark);
    line-height: 1.6;
    background-color: var(--page-resources-bg-light);
}

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

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

.page-resources__section:nth-of-type(even) {
    background-color: var(--page-resources-bg-light);
}

.page-resources__section:nth-of-type(odd) {
    background-color: var(--page-resources-text-light);
}

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

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

.page-resources__section-subtitle {
    font-size: 1.8em;
    color: var(--page-resources-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources__section-description {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 50px;
}

/* Buttons */
.page-resources__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    font-size: 1em;
}

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

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

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

.page-resources__btn--secondary:hover {
    background-color: #071a4e; /* Slightly darker primary color */
    border-color: #071a4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-resources__btn--link {
    background: none;
    color: var(--page-resources-primary-color);
    border: 2px solid var(--page-resources-primary-color);
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-resources__btn--link:hover {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
}

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, var(--page-resources-primary-color) 0%, #1a3a80 100%);
    color: var(--page-resources-text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

/* Introduction Section */
.page-resources__introduction p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #444;
}

.page-resources__grid-intro {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-resources__intro-content {
    flex: 2;
}

.page-resources__intro-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-resources__intro-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-resources__list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    font-size: 1.05em;
    color: #444;
}

.page-resources__list li::before {
    content: '✓';
    color: var(--page-resources-secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* Why 789club Section */
.page-resources__why-789club {
    background-color: var(--page-resources-bg-dark);
    color: var(--page-resources-text-light);
}

.page-resources__why-789club .page-resources__section-title {
    color: var(--page-resources-text-light);
}

.page-resources__why-789club .page-resources__section-description,
.page-resources__why-789club p {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

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

.page-resources__feature-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__feature-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.page-resources__feature-card .page-resources__section-subtitle {
    color: var(--page-resources-secondary-color);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-resources__feature-card p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.page-resources__cta-text {
    margin-top: 50px;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--page-resources-secondary-color);
}

/* Resource Articles Section */
.page-resources__resource-articles {
    background-color: var(--page-resources-bg-light);
}

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

.page-resources__article-card {
    background-color: var(--page-resources-text-light);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-resources__article-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--page-resources-border-color);
}

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

.page-resources__article-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-resources__article-title a {
    color: var(--page-resources-primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.page-resources__article-title a:hover {
    color: var(--page-resources-secondary-color);
}

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

/* Bottom CTA Section */
.page-resources__cta-bottom {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
    text-align: center;
    padding: 80px 0;
}

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

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

.page-resources__cta-title::after {
    background-color: var(--page-resources-secondary-color);
}

.page-resources__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Commitment Section */
.page-resources__commitment p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #444;
}

.page-resources__commitment-list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-resources__commitment-list li {
    background-color: var(--page-resources-bg-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 60px;
    min-height: 100px;
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: var(--page-resources-primary-color);
    font-weight: 600;
}

.page-resources__commitment-list li::before {
    content: '★'; /* Or a more appropriate icon */
    color: var(--page-resources-secondary-color);
    font-size: 2.5em;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}

.page-resources__commitment-list li:nth-child(1)::before { content: '✓'; font-size: 2em; }
.page-resources__commitment-list li:nth-child(2)::before { content: '↻'; font-size: 2em; }
.page-resources__commitment-list li:nth-child(3)::before { content: '⚖'; font-size: 2em; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__grid-intro {
        flex-direction: column;
    }
    .page-resources__intro-image-wrapper {
        order: -1; /* Image above content on mobile */
        margin-bottom: 30px;
    }
    .page-resources__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 80px 0;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-subtitle {
        font-size: 1.4em;
    }
    .page-resources__article-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__article-thumbnail {
        height: 180px;
    }
    .page-resources__article-title {
        font-size: 1.2em;
    }
    .page-resources__cta-bottom {
        padding: 60px 0;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
    .page-resources__commitment-list {
        grid-template-columns: 1fr;
    }
    .page-resources__commitment-list li {
        padding-left: 50px;
        min-height: 80px;
        font-size: 1em;
    }
    .page-resources__commitment-list li::before {
        font-size: 2em;
    }
}