/* style/industry-news-regulation.css */

/* Variables for colors */
:root {
    --jj88-blue-dark: #003366;
    --jj88-blue-medium: #1a4d80; /* Slightly lighter for backgrounds */
    --jj88-blue-light: #4d7094; /* Even lighter for secondary elements */
    --jj88-gold: #FFD700;
    --jj88-gold-dark: #b39700; /* Darker for text on gold */
    --jj88-gold-light: #ffeb80; /* Lighter for accents */
    --text-color-light: #f0f0f0; /* For dark backgrounds */
    --text-color-dark: #333333; /* For light backgrounds */
    --text-color-accent: #ffcc99; /* Complementary for emphasis */
}

/* Base styles for the page content area */
.page-industry-news-regulation {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default dark text on assumed light background */
    background-color: var(--text-color-light); /* Light background for the main page */
}

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

/* Hero Section */
.page-industry-news-regulation__hero {
    background: linear-gradient(135deg, var(--jj88-blue-dark) 0%, var(--jj88-blue-medium) 100%);
    color: var(--text-color-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-industry-news-regulation__hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0) 70%);
    animation: pulse-light 10s infinite alternate;
}

@keyframes pulse-light {
    from {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.5;
    }
    to {
        transform: scale(1.2) rotate(360deg);
        opacity: 0.7;
    }
}

.page-industry-news-regulation__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--jj88-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-industry-news-regulation__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.page-industry-news-regulation__cta-button {
    display: inline-block;
    background-color: var(--jj88-gold);
    color: var(--jj88-blue-dark);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-industry-news-regulation__cta-button:hover {
    background-color: var(--jj88-gold-light);
    transform: translateY(-3px);
}

/* General Section Styles */
.page-industry-news-regulation__section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.page-industry-news-regulation__section:last-of-type {
    border-bottom: none;
}

.page-industry-news-regulation__section-title {
    font-size: 2.5em;
    color: var(--jj88-blue-dark);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-industry-news-regulation__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--jj88-gold);
    border-radius: 2px;
}

.page-industry-news-regulation__sub-title {
    font-size: 1.8em;
    color: var(--jj88-blue-medium);
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid var(--jj88-gold);
    padding-left: 15px;
}

.page-industry-news-regulation__content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.page-industry-news-regulation__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-industry-news-regulation__text-content {
    flex: 2;
}

.page-industry-news-regulation__image-container {
    flex: 1;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    padding: 15px;
}

.page-industry-news-regulation__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.page-industry-news-regulation__text-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--text-color-dark);
}

.page-industry-news-regulation__text-content ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

.page-industry-news-regulation__text-content ul li {
    margin-bottom: 8px;
}

.page-industry-news-regulation__text-content a {
    color: var(--jj88-blue-medium);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-industry-news-regulation__text-content a:hover {
    color: var(--jj88-gold-dark);
    text-decoration: underline;
}

/* Specific section adjustments */
.page-industry-news-regulation__overview {
    background-color: var(--text-color-light);
}
.page-industry-news-regulation__changes {
    background-color: #f7f9fc; /* A very light grey for subtle contrast */
}
.page-industry-news-regulation__responsibility {
    background-color: var(--text-color-light);
}
.page-industry-news-regulation__future {
    background-color: #f7f9fc;
}

/* Call to action at the end */
.page-industry-news-regulation__cta-text {
    font-size: 1.3em;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--jj88-blue-dark);
    font-weight: bold;
}

.page-industry-news-regulation__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-industry-news-regulation__cta-button--primary {
    background-color: var(--jj88-gold);
    color: var(--jj88-blue-dark);
}

.page-industry-news-regulation__cta-button--primary:hover {
    background-color: var(--jj88-gold-light);
}

.page-industry-news-regulation__cta-button--secondary {
    background-color: var(--jj88-blue-medium);
    color: var(--text-color-light);
}

.page-industry-news-regulation__cta-button--secondary:hover {
    background-color: var(--jj88-blue-light);
}

/* Floating CTA */
.page-industry-news-regulation__floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-industry-news-regulation__floating-button {
    display: block;
    width: 120px;
    padding: 10px 0;
    text-align: center;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.page-industry-news-regulation__floating-button:hover {
    transform: translateX(-5px);
}

.page-industry-news-regulation__floating-button--register {
    background-color: var(--jj88-gold);
    color: var(--jj88-blue-dark);
}

.page-industry-news-regulation__floating-button--register:hover {
    background-color: var(--jj88-gold-light);
}

.page-industry-news-regulation__floating-button--download {
    background-color: var(--jj88-blue-medium);
    color: var(--text-color-light);
}

.page-industry-news-regulation__floating-button--download:hover {
    background-color: var(--jj88-blue-light);
}

.page-industry-news-regulation__floating-button--login {
    background-color: #6c757d; /* A neutral grey for login */
    color: var(--text-color-light);
}

.page-industry-news-regulation__floating-button--login:hover {
    background-color: #8a9198;
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .page-industry-news-regulation__hero-title {
        font-size: 2.5em;
    }

    .page-industry-news-regulation__section-title {
        font-size: 2em;
    }

    .page-industry-news-regulation__sub-title {
        font-size: 1.5em;
    }

    .page-industry-news-regulation__content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .page-industry-news-regulation__content-wrapper--reverse {
        flex-direction: column; /* Revert to column for smaller screens */
    }

    .page-industry-news-regulation__image-container {
        width: 80%;
        min-width: unset;
        order: -1; /* Image appears above text on mobile for better flow */
        margin-bottom: 30px;
    }

    .page-industry-news-regulation__button-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-industry-news-regulation__cta-button {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-industry-news-regulation__hero {
        padding: 80px 0;
    }

    .page-industry-news-regulation__hero-title {
        font-size: 2em;
    }

    .page-industry-news-regulation__hero-description {
        font-size: 1em;
    }

    .page-industry-news-regulation__section {
        padding: 40px 0;
    }

    .page-industry-news-regulation__section-title {
        font-size: 1.8em;
    }

    .page-industry-news-regulation__sub-title {
        font-size: 1.3em;
    }

    .page-industry-news-regulation__image-container {
        width: 90%;
    }
    
    .page-industry-news-regulation__floating-cta {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }

    .page-industry-news-regulation__floating-button {
        width: 100px;
        padding: 8px 0;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .page-industry-news-regulation__container {
        padding: 0 15px;
    }

    .page-industry-news-regulation__hero-title {
        font-size: 1.8em;
    }

    .page-industry-news-regulation__hero-description {
        font-size: 0.95em;
    }

    .page-industry-news-regulation__section-title {
        font-size: 1.5em;
    }

    .page-industry-news-regulation__sub-title {
        font-size: 1.2em;
    }

    .page-industry-news-regulation__cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }
    
    .page-industry-news-regulation__floating-cta {
        flex-direction: row; /* Horizontal layout for very small screens */
        justify-content: center;
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px;
        background-color: rgba(0, 51, 102, 0.9); /* Semi-transparent background */
        box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
        border-radius: 0;
    }

    .page-industry-news-regulation__floating-button {
        flex: 1;
        width: auto;
        border-radius: 5px;
        font-size: 0.8em;
        padding: 8px 5px;
        transform: none !important; /* Disable hover transform on very small screens */
    }
    .page-industry-news-regulation__floating-button:hover {
        transform: none;
    }
}

/* Ensure text contrast for all elements */
.page-industry-news-regulation__hero-title,
.page-industry-news-regulation__hero-description {
    color: var(--text-color-light); /* On dark blue background */
}

.page-industry-news-regulation__cta-button {
    color: var(--jj88-blue-dark); /* On gold background */
}

.page-industry-news-regulation__cta-button--secondary {
    color: var(--text-color-light); /* On medium blue background */
}

.page-industry-news-regulation__section-title,
.page-industry-news-regulation__sub-title {
    color: var(--jj88-blue-dark); /* On light background */
}

.page-industry-news-regulation__text-content p,
.page-industry-news-regulation__text-content ul li {
    color: var(--text-color-dark); /* On light background */
}

.page-industry-news-regulation__text-content a {
    color: var(--jj88-blue-medium); /* Link color on light background */
}

.page-industry-news-regulation__cta-text {
    color: var(--jj88-blue-dark); /* On light background */
}
.page-industry-news-regulation__cta-text a {
    color: var(--jj88-blue-medium); /* Link color in CTA text */
}

/* Floating button colors checked */
.page-industry-news-regulation__floating-button--register {
    background-color: var(--jj88-gold);
    color: var(--jj88-blue-dark);
}
.page-industry-news-regulation__floating-button--download {
    background-color: var(--jj88-blue-medium);
    color: var(--text-color-light);
}
.page-industry-news-regulation__floating-button--login {
    background-color: #6c757d;
    color: var(--text-color-light);
}