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

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

.page-resources__hero-section {
    background-color: #0D47A1; /* Main brand color */
    color: #FFFFFF;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract_pattern,geometric,blue_gold]') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

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

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Accent color for title */
}

.page-resources__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    color: #E0E0E0;
}

.page-resources__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Accent color */
    color: #0D47A1; /* Text color for CTA */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-resources__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #0D47A1; /* Main brand color */
    text-align: center;
    margin-bottom: 30px;
    padding-top: 60px;
    position: relative;
}

.page-resources__section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Accent color */
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.page-resources__section-subtitle {
    font-size: 1.1em;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__why-choose-us {
    background-color: #f9f9f9;
    padding: 80px 0;
}

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

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

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

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

.page-resources__feature-item h3 {
    font-size: 1.6em;
    color: #0D47A1;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-resources__detail-pages {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

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

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

.page-resources__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.page-resources__article-card h3 {
    font-size: 1.4em;
    color: #0D47A1;
    margin: 20px 20px 10px 20px;
    line-height: 1.3;
    min-height: 60px;
}

.page-resources__article-card h3 a {
    text-decoration: none;
    color: #0D47A1;
    transition: color 0.3s ease;
}

.page-resources__article-card h3 a:hover {
    color: #FFD700;
}

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

.page-resources__view-details-button {
    display: inline-block;
    background-color: #FFD700;
    color: #0D47A1;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    margin: 0 20px 20px 20px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.page-resources__view-details-button:hover {
    background-color: #e6c200;
}

.page-resources__cta-section {
    background-color: #0D47A1;
    color: #FFFFFF;
    padding: 80px 0;
    text-align: center;
}

.page-resources__cta-section .page-resources__section-title {
    color: #FFD700;
}

.page-resources__cta-section .page-resources__section-title::after {
    background-color: #FFFFFF;
}

.page-resources__cta-section .page-resources__section-subtitle {
    color: #E0E0E0;
    margin-bottom: 50px;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources__cta-button--primary {
    background-color: #FFD700;
    color: #0D47A1;
}

.page-resources__cta-button--primary:hover {
    background-color: #e6c200;
}

.page-resources__cta-button--secondary {
    background-color: #FFFFFF;
    color: #0D47A1;
    border: 2px solid #FFD700;
}

.page-resources__cta-button--secondary:hover {
    background-color: #f0f0f0;
    border-color: #e6c200;
}

.page-resources__faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-resources__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    font-size: 1.3em;
    color: #0D47A1;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-resources__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
    font-size: 1em;
    color: #555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding-top: 0;
}

.page-resources__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding-top: 15px;
}

.page-resources .highlight-hm888 {
    color: #FFD700;
}

.page-resources .highlight-hm88 {
    color: #FFD700;
}

.page-resources .keyword {
    font-weight: bold;
    color: #0D47A1;
}

.page-resources__floating-ad-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FFD700; /* Accent color */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.page-resources__floating-ad-menu.hidden {
    transform: translateX(calc(100% + 20px));
}

.page-resources__floating-ad-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #0D47A1; /* Text color for ad */
    font-weight: bold;
    font-size: 1em;
}

.page-resources__floating-ad-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.page-resources__floating-ad-close {
    background: none;
    border: none;
    color: #0D47A1;
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 15px;
    padding: 0 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__features-grid,
    .page-resources__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-subtitle {
        font-size: 0.95em;
    }
    .page-resources__feature-item {
        padding: 25px;
    }
    .page-resources__feature-item h3 {
        font-size: 1.4em;
    }
    .page-resources__article-card h3 {
        font-size: 1.2em;
    }
    .page-resources__article-description {
        font-size: 0.9em;
    }
    .page-resources__floating-ad-menu {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
    }
    .page-resources__floating-ad-icon {
        width: 25px;
        height: 25px;
    }
    .page-resources__floating-ad-text {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
    }
    .page-resources__cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        font-size: 0.9em;
    }
    .page-resources__floating-ad-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 10px;
        padding: 8px 10px;
        width: calc(100% - 40px);
        justify-content: space-between;
    }
    .page-resources__floating-ad-menu.hidden {
        transform: translateX(-50%) translateY(calc(100% + 10px));
    }
    .page-resources__floating-ad-text {
        flex-grow: 1;
        text-align: center;
    }
    .page-resources__floating-ad-icon {
        margin-right: 5px;
    }
    .page-resources__floating-ad-close {
        margin-left: 5px;
    }
}