/* style/user-community-popular-topics.css */

/* Variables for consistent styling */
:root {
    --page-user-community-popular-topics-primary-color: #1A2A4A; /* Dark Blue */
    --page-user-community-popular-topics-secondary-color: #FFD700; /* Gold */
    --page-user-community-popular-topics-text-dark: #1A2A4A;
    --page-user-community-popular-topics-text-light: #FFFFFF;
    --page-user-community-popular-topics-background-light: #FFFFFF;
    --page-user-community-popular-topics-background-dark: #1A2A4A;
    --page-user-community-popular-topics-accent-color-dark: #b39700; /* Darker gold for text on gold background */
    --page-user-community-popular-topics-accent-color-light: #5f6a80; /* Lighter blue for text on light background */
}

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

.page-user-community-popular-topics__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-user-community-popular-topics__hero {
    background: linear-gradient(135deg, var(--page-user-community-popular-topics-primary-color) 0%, var(--page-user-community-popular-topics-secondary-color) 100%);
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--page-user-community-popular-topics-text-light);
}

.page-user-community-popular-topics__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 L 0 10" fill="none" stroke="%23334466" stroke-width="0.2" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 0;
}

.page-user-community-popular-topics__hero .page-user-community-popular-topics__container {
    position: relative;
    z-index: 1;
}

.page-user-community-popular-topics__title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--page-user-community-popular-topics-text-light); /* White text on dark/gold background */
}

.page-user-community-popular-topics__subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--page-user-community-popular-topics-text-light); /* White text on dark/gold background */
}

.page-user-community-popular-topics__highlight {
    color: var(--page-user-community-popular-topics-secondary-color); /* Gold for highlights */
}

.page-user-community-popular-topics__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 10px;
    font-size: 1.1em;
}

.page-user-community-popular-topics__button--primary {
    background-color: var(--page-user-community-popular-topics-secondary-color); /* Gold background */
    color: var(--page-user-community-popular-topics-primary-color); /* Dark blue text on gold */
    border: 2px solid var(--page-user-community-popular-topics-secondary-color);
}

.page-user-community-popular-topics__button--primary:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    color: var(--page-user-community-popular-topics-primary-color);
}

.page-user-community-popular-topics__button--secondary {
    background-color: transparent;
    color: var(--page-user-community-popular-topics-secondary-color); /* Gold text */
    border: 2px solid var(--page-user-community-popular-topics-secondary-color);
}

.page-user-community-popular-topics__button--secondary:hover {
    background-color: var(--page-user-community-popular-topics-secondary-color);
    color: var(--page-user-community-popular-topics-primary-color); /* Dark blue text on gold */
}

.page-user-community-popular-topics__hero-image-wrapper {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-user-community-popular-topics__hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* General Section Styling */
.page-user-community-popular-topics__section {
    padding: 60px 0;
}

.page-user-community-popular-topics__section--white {
    background-color: var(--page-user-community-popular-topics-background-light);
    color: var(--page-user-community-popular-topics-text-dark);
}

.page-user-community-popular-topics__section--dark {
    background-color: var(--page-user-community-popular-topics-background-dark);
    color: var(--page-user-community-popular-topics-text-light);
}

.page-user-community-popular-topics__heading {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
    color: var(--page-user-community-popular-topics-primary-color); /* Dark blue on light background */
}

.page-user-community-popular-topics__heading--white {
    color: var(--page-user-community-popular-topics-text-light); /* White on dark background */
}

.page-user-community-popular-topics__sub-heading {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--page-user-community-popular-topics-primary-color); /* Dark blue on light background */
}

.page-user-community-popular-topics__sub-heading--white {
    color: var(--page-user-community-popular-topics-secondary-color); /* Gold on dark background for contrast */
}

.page-user-community-popular-topics__text {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
    color: var(--page-user-community-popular-topics-text-dark); /* Dark blue on light background */
}

.page-user-community-popular-topics__text--white {
    color: var(--page-user-community-popular-topics-text-light); /* White on dark background */
}

.page-user-community-popular-topics__image-wrapper {
    margin: 40px auto;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-user-community-popular-topics__image {
    width: 100%;
    height: auto;
    display: block;
}

.page-user-community-popular-topics__cta-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* CTA Banner at the end */
.page-user-community-popular-topics__cta-banner {
    background: linear-gradient(45deg, var(--page-user-community-popular-topics-primary-color), #334a7a); /* Slightly lighter dark blue */
    padding: 80px 0;
    text-align: center;
    color: var(--page-user-community-popular-topics-text-light);
    position: relative;
    overflow: hidden;
}

.page-user-community-popular-topics__cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 L 0 10" fill="none" stroke="%235f6a80" stroke-width="0.2" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.2;
    z-index: 0;
}

.page-user-community-popular-topics__cta-content {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-user-community-popular-topics__title {
        font-size: 2.2em;
    }

    .page-user-community-popular-topics__subtitle {
        font-size: 1em;
    }

    .page-user-community-popular-topics__heading {
        font-size: 2em;
    }

    .page-user-community-popular-topics__sub-heading {
        font-size: 1.5em;
    }

    .page-user-community-popular-topics__text {
        font-size: 1em;
    }

    .page-user-community-popular-topics__button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-user-community-popular-topics__hero,
    .page-user-community-popular-topics__section,
    .page-user-community-popular-topics__cta-banner {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .page-user-community-popular-topics__title {
        font-size: 1.8em;
    }

    .page-user-community-popular-topics__heading {
        font-size: 1.6em;
    }

    .page-user-community-popular-topics__sub-heading {
        font-size: 1.3em;
    }

    .page-user-community-popular-topics__button {
        display: block;
        margin: 10px auto;
        width: calc(100% - 40px);
    }
}