/* 
* Team Falcons News Page Styles
* Fixes for mobile containers and desktop vertical centering
*/

/* ===== MOBILE CONTAINER FIXES ===== */
/* Apply the same container fixes we used for matches page */
@media (max-width: 768px) {
    /* Fix container full-screen issues on mobile */
    .news-page .container,
    body.news-page .container,
    html body.news-page .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
        min-height: auto !important;
        height: auto !important;
        display: block !important;
        position: relative !important;
    }

    /* Fix specific sections that were taking full screen */
    .news-page .news-filter-section,
    body.news-page .news-filter-section,
    html body.news-page .news-filter-section {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        padding: 1rem 0 !important;
    }

    .news-page .featured-news-section,
    body.news-page .featured-news-section,
    html body.news-page .featured-news-section {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        padding: 1rem 0 !important;
    }

    .news-page .news-grid-section,
    body.news-page .news-grid-section,
    html body.news-page .news-grid-section {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        padding: 1rem 0 !important;
    }

    .news-page .upcoming-events-section,
    body.news-page .upcoming-events-section,
    html body.news-page .upcoming-events-section {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        padding: 1rem 0 !important;
    }

    .news-page .newsletter-section,
    body.news-page .newsletter-section,
    html body.news-page .newsletter-section {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        padding: 1rem 0 !important;
    }

    /* Fix container within sections */
    .news-page .news-filter-section .container,
    body.news-page .news-filter-section .container,
    html body.news-page .news-filter-section .container {
        min-height: auto !important;
        height: auto !important;
        padding: 0 1rem !important;
    }

    .news-page .featured-news-section .container,
    body.news-page .featured-news-section .container,
    html body.news-page .featured-news-section .container {
        min-height: auto !important;
        height: auto !important;
        padding: 0 1rem !important;
    }

    .news-page .news-grid-section .container,
    body.news-page .news-grid-section .container,
    html body.news-page .news-grid-section .container {
        min-height: auto !important;
        height: auto !important;
        padding: 0 1rem !important;
    }

    .news-page .upcoming-events-section .container,
    body.news-page .upcoming-events-section .container,
    html body.news-page .upcoming-events-section .container {
        min-height: auto !important;
        height: auto !important;
        padding: 0 1rem !important;
    }

    .news-page .newsletter-section .container,
    body.news-page .newsletter-section .container,
    html body.news-page .newsletter-section .container {
        min-height: auto !important;
        height: auto !important;
        padding: 0 1rem !important;
    }
}

/* ===== DESKTOP VERTICAL CENTERING ===== */
/* Center h3, news-meta, and news-excerpt vertically in featured-news-content */
@media (min-width: 769px) {
    .featured-news-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        min-height: 100% !important;
        height: 100% !important;
        /* Allow text to wrap inside flex layout */
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .featured-news-content h3 {
        margin-bottom: var(--spacing-sm) !important;
        margin-top: 0 !important;
    }

    .featured-news-content .news-meta {
        margin-bottom: var(--spacing-md) !important;
        margin-top: 0 !important;
    }

    .featured-news-content .news-excerpt {
        margin-bottom: var(--spacing-lg) !important;
        margin-top: 0 !important;
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Ensure the featured news card has proper height */
    .featured-news-card {
        display: flex !important;
        min-height: 400px !important;
        height: auto !important;
        align-items: stretch !important;
    }

    .featured-news-image {
        flex: 0 0 50% !important;
        height: 500px !important;
    }

    .featured-news-content {
        flex: 1 1 50% !important;
        width: auto !important;
        min-width: 0 !important; /* critical for text wrapping in flex children */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* vertical centering */
    }
    
    /* Homepage featured news slideshow sizing */
    #featuredNewsHomepage {
        max-width: 1300px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    #featuredNewsHomepage .featured-news-card {
    min-height: 500px !important;
    height: 500px !important;
    }
    
    #featuredNewsHomepage .featured-news-image {
    height: 500px !important;
    }
    
    #featuredNewsHomepage .featured-news-image img {
        height: 500px !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* ===== ADDITIONAL MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    /* Ensure featured news content is properly sized on mobile */
    .featured-news-content {
        padding: var(--spacing-md) !important;
        min-height: auto !important;
        height: auto !important;
    }

    .featured-news-content h3 {
        font-size: 1.3rem !important;
        margin-bottom: var(--spacing-sm) !important;
    }

    .featured-news-content .news-meta {
        font-size: 0.8rem !important;
        margin-bottom: var(--spacing-sm) !important;
    }

    .featured-news-content .news-excerpt {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: var(--spacing-md) !important;
    }

    /* Ensure featured news card is properly sized on mobile */
    .featured-news-card {
        display: block !important;
        min-height: auto !important;
        height: auto !important;
    }

    .featured-news-image {
        width: 100% !important;
        height: 200px !important;
    }

    .featured-news-content {
        width: 100% !important;
    }
}

/* ===== LIGHT THEME TEXT VISIBILITY FIXES ===== */
/* Fix light theme text colors for better visibility */
[data-theme="light"] .news-meta,
[data-theme="light"] .news-date,
[data-theme="light"] .news-author,
[data-theme="light"] .news-excerpt {
    color: #333333 !important; /* Darker text for readability */
}

[data-theme="light"] .news-meta i,
[data-theme="light"] .news-date i,
[data-theme="light"] .news-author i {
    color: #888888 !important; /* Slightly lighter gray for icons */
}

/* Ensure featured news content has proper text colors in light theme */
[data-theme="light"] .featured-news-content .news-meta,
[data-theme="light"] .featured-news-content .news-date,
[data-theme="light"] .featured-news-content .news-author,
[data-theme="light"] .featured-news-content .news-excerpt {
    color: #333333 !important;
}

/* Newsletter form fixes */
[data-theme="light"] .newsletter-form input[type="email"]::placeholder {
    color: #888888 !important; /* Visible placeholder in light theme */
}

/* Light theme article bodies and labels */
[data-theme="light"] .article-body,
[data-theme="light"] .tag-label,
[data-theme="light"] .share-label,
[data-theme="light"] .article-author,
[data-theme="light"] .article-date,
[data-theme="light"] .newsletter-content p {
    color: #333333 !important;
}

/* Fix newsletter description text color in light theme */
[data-theme="light"] .newsletter-content p {
    color: #666666 !important; /* Dark gray for better contrast on white background */
}

/* Fix newsletter button height to match input field */
.newsletter-form .form-group input[type="email"] {
    height: 48px !important;
    padding: 0 16px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* Email input: keep enough padding so placeholder/text doesn't overlap the envelope icon */
.newsletter-form .input-with-icon input[type="email"] {
    padding-left: 48px !important;
}

[dir="rtl"] .newsletter-form .input-with-icon input[type="email"] {
    padding-left: 16px !important;
    padding-right: 48px !important;
}

.newsletter-form button[type="submit"] {
    height: 48px !important;
    padding: 0 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Newsletter feedback styling (used below the field/button) */
.newsletter-feedback {
    margin-top: 10px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    clear: both !important;
    flex-basis: 100% !important;
    order: 999 !important;
}

.newsletter-feedback.success {
    color: #01BE6E !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.newsletter-feedback.error {
    color: #e74c3c !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Force newsletter form to wrap feedback below */
.newsletter-form {
    flex-wrap: wrap !important;
}

.newsletter-form .form-group {
    flex-shrink: 0 !important;
}

.newsletter-form button[type="submit"] {
    flex-shrink: 0 !important;
}

/* Ensure newsletter form is block layout on mobile */
@media (max-width: 768px) {
    .newsletter-form {
        display: block !important;
    }
    
    .newsletter-form input[type="email"],
    .newsletter-form button[type="submit"] {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .newsletter-feedback {
        width: 100% !important;
        margin-top: 10px !important;
    }
}

/* ===== NEWSLETTER CHANNEL SELECTION & WHATSAPP ===== */

/* Vertical form layout */
.newsletter-form-vertical {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.25rem !important;
    max-width: 500px;
    margin: 0 auto;
}

/* Channel selection container */
.newsletter-channels {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

/* "Subscribe via:" label */
.channels-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

/* Channel options row */
.channel-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Channel option label */
.channel-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.channel-option:hover {
    background: rgba(1, 190, 110, 0.1);
    border-color: rgba(1, 190, 110, 0.3);
}

/* Hide the actual checkbox */
.channel-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* When checkbox is checked */
.channel-option:has(input:checked),
.channel-option.checked {
    background: rgba(1, 190, 110, 0.15);
    border-color: var(--accent-color, #01BE6E);
}

.channel-option:has(input:checked) .channel-icon,
.channel-option.checked .channel-icon {
    color: var(--accent-color, #01BE6E);
}

.channel-option:has(input:checked) .channel-label,
.channel-option.checked .channel-label {
    color: var(--accent-color, #01BE6E);
    font-weight: 600;
}

/* Channel icon */
.channel-icon {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

/* Channel label text */
.channel-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Newsletter fields container */
.newsletter-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* Input with icon wrapper */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i.fa-envelope,
.input-with-icon > i:first-child:not(.country-picker-arrow) {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    z-index: 1;
}

.input-with-icon input {
    padding-left: 48px !important;
    width: 100% !important;
}

/* For dual-input with country picker, hide the WhatsApp icon since flag provides visual */
.dual-input.input-with-icon > i.fa-whatsapp {
    display: none;
}

/* Adjust input padding in dual-input since we removed the icon */
.dual-input.input-with-icon input[type="tel"] {
    padding-left: 14px !important;
}

/* Email field styling in vertical form */
.newsletter-form-vertical .email-field,
.newsletter-form-vertical .whatsapp-field {
    width: 100% !important;
    margin: 0 !important;
}

/* WhatsApp specific styling */
.whatsapp-field .input-with-icon i {
    color: #25D366;
}

.whatsapp-field input:focus + .input-with-icon i,
.whatsapp-field .input-with-icon input:focus ~ i {
    color: #25D366;
}

/* Field hint text */
.field-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.field-hint i {
    color: #25D366;
}

/* Subscribe button in vertical form */
.newsletter-form-vertical button[type="submit"] {
    width: 100% !important;
    max-width: 500px;
    margin-top: 0.5rem;
    height: 48px;
    font-size: 1rem;
    font-weight: 600;
}

/* Fix newsletter form layout in article pages */
.newsletter-content .newsletter-form-vertical {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-content .newsletter-channels {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-content .channel-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter-content .newsletter-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-content .form-group {
    width: 100%;
    margin: 0;
}

.newsletter-content .form-group.whatsapp-field,
.newsletter-content .form-group.email-field {
    width: 100% !important;
}

.newsletter-content .input-with-icon {
    width: 100%;
}

.newsletter-content .dual-input {
    width: 100%;
    display: flex !important;
    align-items: stretch;
    min-height: 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.newsletter-content .dual-input .country-code-select,
.newsletter-content .dual-input select {
    flex-shrink: 0;
    width: auto;
    min-width: 100px;
    max-width: 120px;
    border: none !important;
    border-right: 1px solid var(--border-color) !important;
    border-radius: 0 !important;
}

.newsletter-content .dual-input input[type="tel"] {
    flex: 1;
    min-width: 0;
    border: none !important;
    border-radius: 0 !important;
}

.newsletter-content button[type="submit"] {
    width: 100% !important;
    max-width: 500px;
    height: 48px;
    margin-top: 0.5rem;
}

.newsletter-content .field-hint {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* RTL fixes for article newsletter */
[dir="rtl"] .newsletter-content .dual-input {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .newsletter-content .dual-input .country-code-select,
[dir="rtl"] .newsletter-content .dual-input select {
    border-right: none !important;
    border-left: 1px solid var(--border-color) !important;
}

[dir="rtl"] .newsletter-content .newsletter-channels {
    text-align: center;
}

[dir="rtl"] .newsletter-content .channel-options {
    justify-content: center;
}

[dir="rtl"] .newsletter-content .field-hint {
    text-align: center;
}

/* Light theme adjustments */
[data-theme="light"] .channels-label {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .channel-option {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .channel-option:hover {
    background: rgba(1, 190, 110, 0.08);
    border-color: rgba(1, 190, 110, 0.3);
}

[data-theme="light"] .channel-option:has(input:checked),
[data-theme="light"] .channel-option.checked {
    background: rgba(1, 190, 110, 0.1);
}

[data-theme="light"] .channel-icon {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .channel-option:has(input:checked) .channel-icon,
[data-theme="light"] .channel-option.checked .channel-icon {
    color: var(--accent-color, #01BE6E);
}

[data-theme="light"] .channel-option:has(input:checked) .channel-label,
[data-theme="light"] .channel-option.checked .channel-label {
    color: var(--accent-color, #01BE6E);
    font-weight: 600;
}

[data-theme="light"] .channel-label {
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .input-with-icon i {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .field-hint {
    color: rgba(0, 0, 0, 0.5);
}

/* RTL support for Arabic */
[dir="rtl"] .input-with-icon i.fa-envelope,
[dir="rtl"] .input-with-icon > i:first-child:not(.country-picker-arrow) {
    left: auto;
    right: 16px;
}

[dir="rtl"] .input-with-icon input {
    padding-left: 16px !important;
    padding-right: 48px !important;
}

/* RTL: Adjust input padding in dual-input */
[dir="rtl"] .dual-input.input-with-icon input[type="tel"] {
    padding-right: 14px !important;
    padding-left: 14px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .newsletter-form-vertical {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .channel-options {
        width: 100%;
    }
    
    .channel-option {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

/* ===== FEATURED NEWS SLIDESHOW ===== */
.featured-news-slideshow {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
}

.featured-news-slideshow-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.featured-news-slide {
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
}

/* Ensure the card inside each slide fills the slide */
.featured-news-slide .featured-news-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    min-height: 400px;
}

/* Image takes left half */
.featured-news-slide .featured-news-image {
    flex: 0 0 50%;
    width: 50%;
    position: relative;
    overflow: hidden;
}

.featured-news-slide .featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

/* Content takes right half */
.featured-news-slide .featured-news-content {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .featured-news-slide .featured-news-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .featured-news-slide .featured-news-image {
        flex: none;
        width: 100%;
        height: 200px;
        position: relative;
    }
    
    .featured-news-slide .featured-news-image img {
        position: relative;
        height: 200px;
    }
    
    .featured-news-slide .featured-news-content {
        flex: none;
        width: 100%;
        padding: 1.5rem;
    }
}

/* News page featured container */
#featuredNewsContainer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#featuredNewsContainer .featured-news-slideshow {
    width: 100%;
}

/* Homepage featured container */
#featuredNewsHomepage {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

#featuredNewsHomepage .featured-news-slideshow {
    width: 100%;
}

/* Override responsive.css rules for slideshow specifically */
/* These ensure the slideshow cards are always 50/50 split on desktop */
@media (min-width: 992px) {
    .featured-news-slideshow .featured-news-card {
        flex-direction: row !important;
    }
    
    .featured-news-slideshow .featured-news-image {
        flex: 0 0 50% !important;
        width: 50% !important;
        height: 100% !important;
        min-height: 400px !important;
    }
    
    .featured-news-slideshow .featured-news-content {
        flex: 1 !important;
        width: 50% !important;
    }
}

/* ===== Newsletter fixes on article pages ===== */
.newsletter-card .newsletter-form,
.newsletter-card .newsletter-form.newsletter-form-vertical {
    display: flex !important;
    flex-direction: column !important; /* force vertical stacking everywhere */
    align-items: center !important;
    gap: 1rem !important;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.newsletter-card .newsletter-channels {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-card .channel-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter-card .newsletter-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-card .form-group {
    width: 100% !important;
    margin: 0;
}

.newsletter-card .dual-input {
    width: 100% !important;
}

.newsletter-card button[type="submit"] {
    width: 100% !important;
    max-width: 520px;
    height: 48px;
    margin-left: 0 !important;
    align-self: center !important;
}

.newsletter-card .field-hint {
    text-align: center;
    display: block;
}

[dir="rtl"] .newsletter-card .dual-input {
    flex-direction: row-reverse;
}

/* Article page newsletter containment */
.article-content .newsletter-section .container,
.article-content .newsletter-card {
    max-width: 1200px; /* match news page width */
    margin: 0 auto;
    width: 100%;
}

.article-content .newsletter-card .newsletter-form,
.article-content .newsletter-card .newsletter-form.newsletter-form-vertical {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 520px !important; /* keep form same as news page */
}

.article-content .newsletter-card .newsletter-fields,
.article-content .newsletter-card .form-group,
.article-content .newsletter-card .dual-input,
.article-content .newsletter-card .dual-input select,
.article-content .newsletter-card .dual-input input[type="tel"],
.article-content .newsletter-card button[type="submit"],
.article-content .newsletter-card .newsletter-channels,
.article-content .newsletter-card .channel-options {
    width: 100% !important;
}

.article-content .newsletter-card .channel-options {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.article-content .newsletter-card button[type="submit"] {
    align-self: center !important;
    max-width: 520px !important;
    height: 48px;
    width: 100% !important;
}

/* Global centering for newsletter blocks */
.newsletter-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.newsletter-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .featured-news-slideshow .featured-news-image {
        flex: 0 0 50% !important;
        width: 50% !important;
    }
    
    .featured-news-slideshow .featured-news-content {
        flex: 1 !important;
        width: 50% !important;
    }
}

.featured-news-slideshow-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.featured-news-slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.featured-news-slideshow-dot.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: scale(1.2);
}

/* Light theme: improve visible boundaries for inactive dots */
[data-theme="light"] .featured-news-slideshow-dot {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #01BE6E !important; /* green border */
}

[data-theme="light"] .featured-news-slideshow-dot.active {
    background: #01BE6E !important;
    border-color: #01BE6E !important;
}

.featured-news-slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.featured-news-slideshow-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.featured-news-slideshow-nav.prev {
    left: 20px;
}

.featured-news-slideshow-nav.next {
    right: 20px;
}

.featured-news-slideshow-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.featured-news-slideshow-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
}

/* Hide slideshow controls if only one featured article */
.featured-news-slideshow.single-slide .featured-news-slideshow-controls,
.featured-news-slideshow.single-slide .featured-news-slideshow-nav {
    display: none;
}

/* Mobile responsive slideshow */
@media (max-width: 768px) {
    .featured-news-slideshow-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .featured-news-slideshow-nav.prev {
        left: 10px;
    }
    
    .featured-news-slideshow-nav.next {
        right: 10px;
    }
    
    .featured-news-slideshow-controls {
        bottom: 15px;
    }
    
    .featured-news-slideshow-dot {
        width: 10px;
        height: 10px;
    }
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .featured-news-content {
    align-items: flex-end !important;
}

[dir="rtl"] .featured-news-content h3 {
    text-align: right !important;
}

[dir="rtl"] .featured-news-content .news-meta {
    text-align: right !important;
}

[dir="rtl"] .featured-news-content .news-excerpt {
    text-align: right !important;
}
[dir="rtl"] .featured-news-slideshow-nav.prev {
    right: 20px;
    left: auto;
}

[dir="rtl"] .featured-news-slideshow-nav.next {
    left: 20px;
    right: auto;
}

@media (max-width: 768px) {
    [dir="rtl"] .featured-news-slideshow-nav.prev {
        right: 10px;
        left: auto;
    }
    
    [dir="rtl"] .featured-news-slideshow-nav.next {
        left: 10px;
        right: auto;
    }
}

/* ===== ARTICLE PAGE NEWSLETTER FIX ===== */
/* Force article page newsletter to match news page styling */
.article-content ~ .newsletter-section .newsletter-card,
.related-articles-section ~ .newsletter-section .newsletter-card,
article ~ .related-articles-section ~ .newsletter-section .newsletter-card {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 2.5rem !important;
    text-align: center !important;
}

.article-content ~ .newsletter-section .newsletter-content,
.related-articles-section ~ .newsletter-section .newsletter-content,
article ~ .related-articles-section ~ .newsletter-section .newsletter-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

.article-content ~ .newsletter-section .newsletter-form,
.related-articles-section ~ .newsletter-section .newsletter-form,
article ~ .related-articles-section ~ .newsletter-section .newsletter-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 500px !important;
}

.article-content ~ .newsletter-section .newsletter-channels,
.related-articles-section ~ .newsletter-section .newsletter-channels,
article ~ .related-articles-section ~ .newsletter-section .newsletter-channels {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

.article-content ~ .newsletter-section .channel-options,
.related-articles-section ~ .newsletter-section .channel-options,
article ~ .related-articles-section ~ .newsletter-section .channel-options {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

.article-content ~ .newsletter-section .channel-option,
.related-articles-section ~ .newsletter-section .channel-option,
article ~ .related-articles-section ~ .newsletter-section .channel-option {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.article-content ~ .newsletter-section .channel-option:hover,
.related-articles-section ~ .newsletter-section .channel-option:hover,
article ~ .related-articles-section ~ .newsletter-section .channel-option:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--primary-green) !important;
}

.article-content ~ .newsletter-section .newsletter-fields,
.related-articles-section ~ .newsletter-section .newsletter-fields,
article ~ .related-articles-section ~ .newsletter-section .newsletter-fields {
    width: 100% !important;
}

.article-content ~ .newsletter-section .form-group,
.related-articles-section ~ .newsletter-section .form-group,
article ~ .related-articles-section ~ .newsletter-section .form-group {
    width: 100% !important;
    margin: 0 !important;
}

.article-content ~ .newsletter-section .dual-input,
.related-articles-section ~ .newsletter-section .dual-input,
article ~ .related-articles-section ~ .newsletter-section .dual-input {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
}

.article-content ~ .newsletter-section .field-hint,
.related-articles-section ~ .newsletter-section .field-hint,
article ~ .related-articles-section ~ .newsletter-section .field-hint {
    text-align: center !important;
    display: block !important;
    margin-top: 0.5rem !important;
}

.article-content ~ .newsletter-section button[type="submit"],
.related-articles-section ~ .newsletter-section button[type="submit"],
article ~ .related-articles-section ~ .newsletter-section button[type="submit"] {
    width: 100% !important;
    max-width: 500px !important;
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
    margin-top: 0.5rem !important;
}

.article-content ~ .newsletter-section .newsletter-privacy-note,
.related-articles-section ~ .newsletter-section .newsletter-privacy-note,
article ~ .related-articles-section ~ .newsletter-section .newsletter-privacy-note {
    text-align: center !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* Hide channels-label on article page to match news page pill style */
.article-content ~ .newsletter-section .channels-label,
.related-articles-section ~ .newsletter-section .channels-label,
article ~ .related-articles-section ~ .newsletter-section .channels-label {
    display: none !important;
}

