/* style/resources.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --border-color: #e0e0e0;
}

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

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

/* Hero Section */
.page-resources .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-resources .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources .hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-resources .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-resources .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-resources .hero-content h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources .hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-resources .cta-button:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-resources section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.page-resources section:nth-of-type(even) {
    background-color: #ffffff;
}

.page-resources h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

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

.page-resources h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

.page-resources p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

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

.page-resources .category-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
}

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

.page-resources .category-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-resources .category-item h3 {
    font-size: 1.3em;
    margin: 20px 15px 10px;
    color: var(--primary-color);
}

.page-resources .category-item p {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 15px;
}

/* Usage Points */
.page-resources .usage-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-resources .usage-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .usage-item img {
    width: 250px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 4px;
}

.page-resources .usage-item h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-resources .usage-item p {
    font-size: 1em;
    color: var(--text-dark);
}

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

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

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #fdfdfd;
}

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

.faq-answer p {
    margin: 0;
    color: var(--text-dark);
}

/* Conclusion Section */
.page-resources .section-conclusion {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

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

.page-resources .section-conclusion .primary-button {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources .section-conclusion .primary-button:hover {
    background-color: #e6b000;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources .hero-content h1 {
        font-size: 2.2em;
    }
    .page-resources h2 {
        font-size: 1.8em;
    }
    .page-resources h3 {
        font-size: 1.4em;
    }
    .page-resources .category-grid, .page-resources .usage-points {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources .hero-section {
        padding: 40px 15px;
    }
    .page-resources .hero-content h1 {
        font-size: 1.8em;
    }
    .page-resources .hero-content p {
        font-size: 1em;
    }
    .page-resources .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-resources section {
        padding: 40px 0;
    }
    .page-resources h2 {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    .page-resources h3 {
        font-size: 1.2em;
    }
    .page-resources .category-item img {
        height: 180px;
    }
    .page-resources .usage-item img {
        width: 200px;
        height: 150px;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources .hero-content h1 {
        font-size: 1.5em;
    }
    .page-resources .hero-content p {
        font-size: 0.9em;
    }
    .page-resources .cta-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    .page-resources h2 {
        font-size: 1.4em;
    }
    .page-resources h3 {
        font-size: 1.1em;
    }
    .page-resources .category-grid, .page-resources .usage-points {
        grid-template-columns: 1fr;
    }
    .page-resources .category-item img {
        height: 160px;
    }
    .page-resources .usage-item img {
        width: 180px;
        height: 130px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 18px;
    }
}