/* style/news.css */

.page-news {
    font-family: 'Arial', sans-serif;
    color: #e5dfd3; /* Light text for dark background */
    background-color: #1A202C; /* Primary dark background */
}

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

.page-news__section {
    padding: 60px 0;
    text-align: center;
}

.page-news__section:nth-child(even) {
    background-color: #2a3340;
}

.page-news h1, .page-news h2, .page-news h3 {
    color: #FFD700; /* Secondary gold for headings */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news h1 {
    font-size: 3.2em;
    line-height: 1.2;
}

.page-news h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.page-news h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-news p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #cfcfcf;
}

.page-news__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__btn--primary {
    background-color: #FFD700; /* Gold button */
    color: #1A202C; /* Dark text on gold */
}

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

.page-news__btn--secondary {
    background-color: #3f4a5c; /* Darker background for secondary */
    color: #FFD700; /* Gold text */
    border: 1px solid #FFD700;
    padding: 10px 25px;
    font-size: 1em;
}

.page-news__btn--secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
}

.page-news__btn--gold {
    background-color: #FFD700;
    color: #1A202C;
    border: 2px solid #FFD700;
    padding: 10px 20px;
    font-size: 1em;
    text-transform: uppercase;
}

.page-news__btn--gold:hover {
    background-color: transparent;
    color: #FFD700;
}

.page-news__link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-news__link:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-news__hero {
    background: linear-gradient(135deg, #1A202C 0%, #3f4a5c 100%);
    padding: 80px 0;
    color: #e5dfd3;
    position: relative;
    overflow: hidden;
}

.page-news__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.page-news__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-news__hero-content h1 {
    color: #FFD700;
    font-size: 3.5em;
    margin-bottom: 25px;
}

.page-news__hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #cfcfcf;
}

.page-news__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: right;
}

.page-news__hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* News List Grid */
.page-news__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__news-item {
    background-color: #2a3340;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__news-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-news__news-item h3 {
    padding: 20px 20px 10px;
    margin-bottom: 0;
    color: #FFD700;
    font-size: 1.5em;
}

.page-news__news-title-link {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-title-link:hover {
    color: #e6c200;
}

.page-news__news-item p {
    padding: 0 20px 20px;
    color: #cfcfcf;
    flex-grow: 1;
}

.page-news__news-item .page-news__btn--secondary {
    margin: 0 20px 20px;
    align-self: flex-start;
}

/* Benefits Section */
.page-news__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__benefit-item {
    background-color: #1A202C;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid #3f4a5c;
}

.page-news__benefit-item .page-news__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.page-news__benefit-item h3 {
    color: #FFD700;
    font-size: 1.6em;
}

.page-news__benefit-item p {
    color: #cfcfcf;
}

.page-news__cta-text {
    margin-top: 40px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
}

/* Download App Section */
.page-news__download-app {
    background: linear-gradient(90deg, #1A202C, #3f4a5c);
    color: #e5dfd3;
    padding: 80px 0;
}

.page-news__download-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left;
}

.page-news__download-text {
    flex: 1;
    min-width: 300px;
}

.page-news__download-text h2 {
    color: #FFD700;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.page-news__download-text p {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: #cfcfcf;
}

.page-news__download-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-news__app-img {
    max-width: 80%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Commitment Section */
.page-news__commitment ul {
    list-style: none;
    padding: 0;
    margin: 30px auto 40px;
    max-width: 800px;
    text-align: left;
}

.page-news__commitment ul li {
    background-color: #2a3340;
    margin-bottom: 15px;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #e5dfd3;
    border-left: 5px solid #FFD700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-news__commitment ul li strong {
    color: #FFD700;
}

/* Floating Ad */
.page-news__floating-ad {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1A202C;
    border: 2px solid #FFD700;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    z-index: 1000;
    display: none; /* Hidden by default, shown by JS */
    max-width: 300px;
    text-align: center;
    animation: page-news-fadeInUp 0.5s ease-out;
}

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

.page-news__floating-ad-close:hover {
    color: #e6c200;
}

.page-news__floating-ad-content .page-news__floating-ad-text {
    margin-bottom: 15px;
    color: #e5dfd3;
    font-size: 1.05em;
    font-weight: bold;
}

@keyframes page-news-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-news__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-news__hero-content, .page-news__hero-image-wrapper {
        text-align: center;
    }

    .page-news__hero-content h1 {
        font-size: 2.8em;
    }

    .page-news__download-content {
        flex-direction: column;
        text-align: center;
    }

    .page-news__download-text h2 {
        font-size: 2.2em;
    }

    .page-news__app-img {
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .page-news h1 {
        font-size: 2.5em;
    }

    .page-news h2 {
        font-size: 2em;
    }

    .page-news h3 {
        font-size: 1.5em;
    }

    .page-news p {
        font-size: 1em;
    }

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

    .page-news__news-grid, .page-news__benefits-grid {
        grid-template-columns: 1fr;
    }

    .page-news__floating-ad {
        bottom: 10px;
        right: 10px;
        max-width: 90%;
    }

    .page-news__hero-content h1 {
        font-size: 2.2em;
    }

    .page-news__download-text h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .page-news__hero-content h1 {
        font-size: 2em;
    }

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

    .page-news__btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .page-news__download-text h2 {
        font-size: 1.6em;
    }

    .page-news__app-img {
        max-width: 70%;
    }
}