/* style/resources.css */

/* Variables for consistency */
:root {
    --primary-color: #0A1931;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f4f4f4;
    --background-dark: #1a2a47; /* Slightly lighter than primary for distinction */
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

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

/* General Section Styling */
.page-resources section {
    padding: 60px 0;
    text-align: center;
}

.page-resources section h1,
.page-resources section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: bold;
}

.page-resources section h2 {
    font-size: 2em;
    color: var(--primary-color);
}

.page-resources section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

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

/* CTA Button Styling */
.page-resources .cta-button,
.page-resources .read-more-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--primary-color); /* Dark text on gold button for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.page-resources .cta-button:hover,
.page-resources .read-more-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Banner */
.page-resources .hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--background-dark)); /* Dark blue gradient */
    color: var(--text-light);
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-resources .hero-content-wrapper {
    max-width: 800px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.page-resources .hero-banner h1 {
    color: var(--secondary-color); /* Gold title on dark background */
    font-size: 3.5em;
    margin-bottom: 20px;
}

.page-resources .hero-banner p {
    color: #e0e0e0; /* Light gray text for readability */
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-resources .hero-banner p a {
    color: var(--secondary-color);
}

.page-resources .hero-image-wrapper {
    width: 100%;
    max-width: 1000px; /* Adjust max-width as needed */
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.page-resources .hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

/* Introduction Section */
.page-resources .introduction-section {
    background-color: var(--background-light);
    color: var(--text-dark);
    padding: 80px 0;
}

.page-resources .introduction-section h2 {
    color: var(--primary-color);
}

/* Guides Section */
.page-resources .guides-section {
    background-color: var(--background-dark); /* Dark background for contrast */
    color: var(--text-light);
    padding: 80px 0;
}

.page-resources .guides-section h2 {
    color: var(--secondary-color); /* Gold title on dark background */
}

.page-resources .guides-section p {
    color: #e0e0e0;
}

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

.page-resources .guide-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-resources .guide-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    min-height: 200px; /* Ensure minimum size */
}

.page-resources .guide-card h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    padding: 15px 20px 0;
    margin-bottom: 10px;
}

.page-resources .guide-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources .guide-card h3 a:hover {
    color: var(--secondary-color);
}

.page-resources .guide-card p {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 20px 15px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-resources .guide-card .read-more-button {
    margin: 0 20px 20px;
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Strategies Section */
.page-resources .strategies-section {
    background-color: var(--background-light);
    color: var(--text-dark);
    padding: 80px 0;
}

.page-resources .strategies-section h2 {
    color: var(--primary-color);
}

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

.page-resources .strategy-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px; /* Add padding for consistency */
}

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

.page-resources .strategy-item img {
    width: 100%;
    height: 180px; /* Slightly smaller image for strategy items */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    min-height: 200px; /* Ensure minimum size */
}

.page-resources .strategy-item h3 {
    font-size: 1.3em;
    color: var(--primary-color);
    padding: 0 20px;
    margin-bottom: 10px;
}

.page-resources .strategy-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources .strategy-item h3 a:hover {
    color: var(--secondary-color);
}

.page-resources .strategy-item p {
    font-size: 0.9em;
    color: var(--text-dark);
    padding: 0 20px;
}

.page-resources .cta-text {
    margin-top: 40px;
    font-size: 1.1em;
}

.page-resources .cta-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Platform Review Section */
.page-resources .platform-review-section {
    background-color: var(--primary-color); /* Dark blue background */
    color: var(--text-light);
    padding: 80px 0;
}

.page-resources .platform-review-section h2 {
    color: var(--secondary-color); /* Gold title on dark background */
}

.page-resources .platform-review-section p {
    color: #e0e0e0;
}

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

.page-resources .review-item {
    background-color: var(--background-dark); /* Slightly lighter dark blue */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .review-item img {
    width: 100%;
    height: 150px;
    object-fit: contain; /* Use contain for icons/logos */
    margin-bottom: 15px;
    min-height: 200px; /* Ensure minimum size */
}

.page-resources .review-item h3 {
    font-size: 1.3em;
    color: var(--secondary-color); /* Gold text for headings */
    margin-bottom: 10px;
}

.page-resources .review-item h3 a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-resources .review-item h3 a:hover {
    color: #e6c200;
}

.page-resources .review-item p {
    font-size: 0.95em;
    color: #cccccc;
}

/* FAQ Section */
.page-resources .faq-section {
    background-color: var(--background-light);
    padding: 80px 0;
}

.page-resources .faq-section h2 {
    color: var(--primary-color);
}

.page-resources .faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.page-resources .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.page-resources .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-resources .faq-question:hover {
    background: #f5f5f5;
}

.page-resources .faq-question h3 {
    margin: 0;
    font-size: 1.15em;
    color: var(--primary-color);
}

.page-resources .faq-question h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources .faq-question h3 a:hover {
    color: var(--secondary-color);
}

.page-resources .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-resources .faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.page-resources .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    background: #f9f9f9;
    color: var(--text-dark);
}

.page-resources .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to show content */
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.page-resources .faq-answer p {
    margin: 0;
    font-size: 1em;
}

.page-resources .faq-answer p a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Latest Articles Section */
.page-resources .latest-articles-section {
    background-color: var(--background-dark);
    padding: 80px 0;
}

.page-resources .latest-articles-section h2 {
    color: var(--secondary-color);
}

.page-resources .latest-articles-section p {
    color: #e0e0e0;
}

.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;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    overflow: hidden;
    text-align: left;
    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.2);
}

.page-resources .article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    min-height: 200px; /* Ensure minimum size */
}

.page-resources .article-card h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    padding: 15px 20px 0;
    margin-bottom: 10px;
}

.page-resources .article-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources .article-card h3 a:hover {
    color: var(--secondary-color);
}

.page-resources .article-card p {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 20px 10px;
    flex-grow: 1;
}

.page-resources .article-card .article-date {
    display: block;
    font-size: 0.85em;
    color: #777;
    padding: 0 20px 15px;
}

.page-resources .article-card .read-more-button {
    margin: 0 20px 20px;
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources .hero-banner h1 {
        font-size: 2.8em;
    }
    .page-resources .hero-banner p {
        font-size: 1.1em;
    }
    .page-resources section h1,
    .page-resources section h2 {
        font-size: 2em;
    }
    .page-resources .guide-grid,
    .page-resources .strategy-list,
    .page-resources .review-grid,
    .page-resources .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources section {
        padding: 40px 0;
    }
    .page-resources .hero-banner {
        padding: 60px 20px;
    }
    .page-resources .hero-banner h1 {
        font-size: 2.2em;
    }
    .page-resources .hero-banner p {
        font-size: 1em;
    }
    .page-resources .cta-button,
    .page-resources .read-more-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources .guide-card img,
    .page-resources .strategy-item img,
    .page-resources .review-item img,
    .page-resources .article-card img {
        height: 180px;
    }
    .page-resources .faq-question {
        padding: 12px 15px;
    }
    .page-resources .faq-question h3 {
        font-size: 1em;
    }
    .page-resources .faq-toggle {
        font-size: 20px;
    }
    .page-resources .faq-answer {
        padding: 0 15px;
    }
    .page-resources .faq-item.active .faq-answer {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .page-resources .container {
        padding: 0 15px;
    }
    .page-resources .hero-banner h1 {
        font-size: 1.8em;
    }
    .page-resources section h1,
    .page-resources section h2 {
        font-size: 1.8em;
    }
    .page-resources .guide-grid,
    .page-resources .strategy-list,
    .page-resources .review-grid,
    .page-resources .articles-grid {
        grid-template-columns: 1fr;
    }
    .page-resources .guide-card img,
    .page-resources .strategy-item img,
    .page-resources .review-item img,
    .page-resources .article-card img {
        height: 160px;
    }
}