/* style/resources.css */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #F8F8F8; /* Light gray for general text on dark background */
    line-height: 1.6;
    background-color: #1A202C;
}

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

.page-resources__hero {
    background: linear-gradient(135deg, #1A202C 0%, #303A4E 100%);
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources__hero-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 1.1em;
    color: #E0E0E0;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-resources__hero-image-wrapper {
    margin-top: 40px;
    width: 100%;
    max-width: 900px;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-resources__section {
    padding: 60px 0;
    background-color: #1A202C;
}

.page-resources__section:nth-of-type(even) {
    background-color: #222831;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #E0E0E0;
    text-align: center;
    max-width: 900px;
    margin: -20px auto 40px;
}

.page-resources__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.page-resources__content-grid--reverse {
    flex-direction: row-reverse;
}

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

.page-resources__text-content p {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: #F0F0F0;
}

.page-resources__image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__image {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-resources__button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    margin-top: 20px;
}

.page-resources__button--primary {
    background-color: #FFD700; /* Gold */
    color: #1A202C; /* Dark text on gold */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-resources__button--primary:hover {
    background-color: #E6C200;
    transform: translateY(-2px);
}

.page-resources__button--secondary {
    background-color: #303A4E; /* Dark blue/gray */
    color: #FFD700; /* Gold text on dark */
    border: 1px solid #FFD700;
    margin-left: 15px;
}

.page-resources__button--secondary:hover {
    background-color: #404B63;
    transform: translateY(-2px);
}

.page-resources__button--detail {
    background-color: #4A5568;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: 15px;
}

.page-resources__button--detail:hover {
    background-color: #616D81;
}

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

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

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

.page-resources__item-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources__item-title a {
    color: #FFD700;
    text-decoration: none;
}

.page-resources__item-title a:hover {
    text-decoration: underline;
}

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

.page-resources__floating-ad {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #1A202C;
    border: 2px solid #FFD700;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    padding: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateX(120%); /* Start off-screen */
    transition: transform 0.5s ease-in-out;
}

.page-resources__floating-ad.show {
    transform: translateX(0); /* Slide in */
}

.page-resources__floating-ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #FFD700;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
}

.page-resources__floating-ad-close:hover {
    color: #E6C200;
}

.page-resources__floating-ad-title {
    color: #FFD700;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.page-resources__floating-ad-text {
    color: #F0F0F0;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.page-resources__button--ad {
    background-color: #FFD700;
    color: #1A202C;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 10px;
}

.page-resources__button--ad:hover {
    background-color: #E6C200;
}

.page-resources__floating-ad-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__content-grid {
        flex-direction: column;
    }

    .page-resources__content-grid--reverse {
        flex-direction: column;
    }

    .page-resources__hero-title {
        font-size: 2.5em;
    }

    .page-resources__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 60px 0 30px;
    }

    .page-resources__hero-title {
        font-size: 2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

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

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__detail-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-resources__button--secondary {
        margin-left: 0;
        margin-top: 15px;
    }

    .page-resources__floating-ad {
        width: 260px;
        bottom: 15px;
        right: 15px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }

    .page-resources__section-title {
        font-size: 1.5em;
    }

    .page-resources__text-content p {
        font-size: 0.95em;
    }

    .page-resources__button {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .page-resources__floating-ad {
        width: 90%;
        left: 5%;
        right: auto;
        bottom: 10px;
    }
}