﻿/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 16px;
    /*line-height:16px;*/
    font-family: 'roboto',sans-serif;
    font-weight: 400;
    color: 444;
    background-color: var(--surface-white);
}


/*section a {text-decoration:underline;}*/

.heart-primary {
    color: #2f2c7e;
}

.heart-muted {
    color: #ddd;
}

/* Brand color variables */
:root {
    /* Accent */
    --accent-orange: #ff9900;
    --accent-orange-hover: #e68900;

    /* Primary brand (AutTalk purple) */
    --brand-primary: #312783;
    --brand-primary-dark: #211773;
    --brand-primary-alt: #413793; /* gradient mate */

    /* Brand blues */
    --brand-blue: #2563eb;
    --brand-blue-light: #3b82f6;

    /* Text and surfaces */
    --text-heading: #1e293b;
    --surface-white: #ffffff;
    --surface-muted: #f7fafc;
    --surface-muted-2: #f8fafc;
    --surface-muted-3: #f1f5f9;
    --border-muted: #e2e8f0;
}

/* Utility brand colors */
.text-accent-orange {
    color: var(--accent-orange) !important;
}

.bg-accent-orange {
    background-color: var(--accent-orange) !important;
    color: #fff !important;
}

/* Additional brand utilities */
.text-brand-primary { color: var(--brand-primary) !important; }
.bg-brand-primary { background-color: var(--brand-primary) !important; color: #fff !important; }
.text-brand-blue { color: var(--brand-blue) !important; }
.bg-brand-blue { background-color: var(--brand-blue) !important; color: #fff !important; }

section p, article p, section.content article p, footer p, p,
section a, article a, section.content article a, footer a, a {
    font-family: 'roboto',sans-serif;
    font-weight: 400;
    line-height: 1.8;
}

a {
    color: #212529 !important;
}


.text-menu {
    text-decoration: none;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar customizations */
.navbar {
    position: sticky;
    /*font-weight: 500;*/
    top: 0;
    z-index: 1030; /* Make sure it's above other content */
    padding: 0rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    opacity: 0.8;
    background-color: var(--surface-white) !important;
    /*border-bottom: 1px solid #e2e8f0;*/
}

.navbar-brand {
    padding: 0.5rem 0;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}


.navbar-nav .nav-link {
    color: var(--brand-primary) !important;
    padding: 0.75rem 1rem !important;
    transition: color 0.3s ease;
    border-left: solid #eee 1px;
    border-left: solid #eee 1px;
}

.navbar-nav .nav-link:hover {
    color: var(--brand-blue) !important;
}

.dropdown-menu {
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Ensure emoji flags render with an emoji-capable font */
.flag-emoji {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", "EmojiOne Color", sans-serif;
    line-height: 1;
}

.dropdown-item:hover {
    background-color: var(--surface-muted);
    color: var(--brand-blue);
}

/* Ensure main content doesn't overlap with fixed navbar */
main {
    margin-top: 0; /* Bootstrap navbar is not fixed, so no need for top margin */
}

/* Cap overall page width */
body, main, footer {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure navbar content matches the cap */
nav .container {
    max-width: 1024px;
}

/* Old nav and language switcher styles removed - now using Bootstrap navbar */

/* Old Hero Section styles removed - now integrated into carousel overlay */

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'roboto',sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-alt) 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Ensure primary buttons remain white regardless of anchor defaults */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited {
    color: #fff !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Sections */
section {
    padding: 4rem 0;
}

    section h2 {
        font-family: 'roboto',sans-serif;
        font-weight: 300;
        font-size: 40px;
        margin-bottom: 2rem;
        color: var(--text-heading);
        text-align: center;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }



/* Image Carousel Section */
.carousel-section {
    /* Reduce top gap below navbar while preserving bottom spacing */
    padding: 0rem 0 2rem;
    background-color: var(--surface-white);
    overflow: hidden;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--surface-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}

/* Hero Content Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    margin-left: 30%;
    display: flex;
    align-items: flex-start;
    justify-content: right;
    pointer-events: none;
}

.hero-content {
    color: white;
    max-width: 600px;
    padding: 2rem;
    pointer-events: auto;
    margin-top: 5%;
    margin-right: 20%;
}

    .hero-content h3 {
        font-family: 'roboto',sans-serif;
        margin-bottom: 1.5rem;
        color: var(--brand-primary);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        text-align: left;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-content .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-content .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: none;
}

/* Mobile responsive adjustments for hero overlay */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .hero-content .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        min-width: 200px;
    }
    
    .carousel-wrapper {
        min-height: 400px;
    }
    
    .carousel {
        height: 400px;
    }
}

.carousel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Hide any accidentally empty carousel containers to avoid layout gaps */
.carousel:empty { display: none; }

/* Ensure only the active slide is visible */
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }

/* Loading state */
#carousel-dynamic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: carousel-loading 1s linear infinite;
    z-index: 1;
}

#carousel-dynamic.loaded::before {
    display: none;
}

@keyframes carousel-loading {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.05);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* keep visible area anchored to top */
    display: block;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide.active img {
    transform: scale(1.02);
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 15;
}

.carousel-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2563eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 11;
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Dot Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    display: flex;
    gap: 12px;
    z-index: 15;
}

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

.indicator.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav {
        padding: 0 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 250px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
}

/* About Section */
.about {
    background-color: white;
    text-align: center;
}

/* Media Section */
.media {
    background-color: #ffffff;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.8;
    font-weight: 400;
}

/* Let's Talk Section */
.letstalk {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch; /* Ensure all cards have equal height */
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.card-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-text {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.card-button {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    justify-content: center;
}

.card-button .btn {
    min-width: 150px;
    width: 100%;
    max-width: 200px;
    text-align: center;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card h3 {
    font-family: 'roboto',sans-serif;
    color: #564596;
    margin-bottom: 1rem;
    font-weight: 900;
    font-size: 20px;
    line-height: 1.8;
    letter-spacing: -0.01em;
}

.card p, .card-text {
    margin-bottom: 1.8rem;
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
}

.dynamic-content {
    margin-top: 2rem;
}

/* Events Section */
.events {
    background-color: white;
}

.news-container {
    max-width: 800px;
    margin: 0 auto;
}

.load-news-btn {
    display: block;
    margin: 2rem auto;
}

.news-list {
    margin-top: 2rem;
}

.news-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid #3b82f6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

    .news-item h3 {
        font-family: 'roboto',sans-serif;
        color: #1e293b;
        margin-bottom: 0.8rem;
        font-weight: 600;
        font-size: 1.3rem;
    }

.news-item .date {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* Support Section */
.support {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* News carousel */
.news-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.news-carousel {
    position: relative;
    width: 100%;
}

.news-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.4s ease;
}

.news-slide {
    flex: 0 0 33.3333%;
    padding: 0.5rem;
}

/* Responsive slide width: 2 cards on tablets, 1 on mobile */
@media (max-width: 992px) {
    .news-slide {
        flex: 0 0 50%;
    }
}
@media (max-width: 576px) {
    .news-slide {
        flex: 0 0 100%;
    }
}

.news-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.news-carousel-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2563eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.news-carousel-btn:hover {
    background: white;
    transform: scale(1.05);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.support-item {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

    .support-item h3 {
        color: #1e293b;
        margin-bottom: 1.2rem;
        font-size: 1.4rem;
        font-family: 'roboto',sans-serif;
        font-weight: 600;
        letter-spacing: -0.01em;
    }

.support-item p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    background-color: white;
}

#contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 1rem;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-size: 1rem;
        font-family: 'roboto',sans-serif;
        transition: all 0.3s ease;
        background-color: #fafbfc;
    }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#contact-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    opacity: 0.9;
}

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

    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .card {
        padding: 2rem;
    }

    .support-item {
        padding: 2rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    section h2 {
        font-size: 1.7rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* HTMX loading indicators */
.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-indicator {
    display: none;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    background-color: #ffffff;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Subtle animations for better UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Article Carousel Styles */
.articles {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.article-carousel-wrapper {
    position: relative;
    margin-top: 2rem;
}

.article-carousel {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.article-carousel-track {
    position: relative;
    min-height: 300px;
}

.article-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 3rem;
}

.article-slide.active {
    display: block;
    opacity: 1;
}

.article-content {
    text-align: center;
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1rem 0;
}

.article-date {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.article-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.article-carousel-btn {
    pointer-events: all;
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #2563eb;
}

.article-carousel-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    transform: scale(1.1);
}

.article-carousel-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .article-slide {
        padding: 2rem 1.5rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* Article Detail Styles */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    font-size: 0.95rem;
    color: #64748b;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    text-align: left;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.article-content h1 {
    font-size: 2rem;
}

.article-content h2 {
    font-size: 1.75rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #64748b;
}

.article-content code {
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
    color: #e2e8f0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-actions {
    margin-top: 0.5rem;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Article carousel short description */
.article-short-desc {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h1 {
        font-size: 1.75rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    gap: 0.25rem;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--brand-primary);
    text-decoration: none;
    background-color: var(--surface-white);
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination .page-link:hover {
    background-color: var(--surface-muted);
    color: var(--brand-blue);
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-alt) 100%);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(49, 39, 131, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #a0aec0;
    background-color: var(--surface-muted);
    border-color: var(--border-muted);
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-sm .page-link {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}

/* Pagination info text */
.pagination + .text-muted,
.text-muted + .pagination {
    font-size: 0.875rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.15rem;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Quill Editor – match Bootstrap form look */
.ql-container {
    background-color: #ffffff;
    border: 1px solid #ced4da; /* Bootstrap form-control border */
    border-radius: 0.375rem;   /* Bootstrap .form-control border radius */
}

.ql-toolbar.ql-snow {
    border: 1px solid #ced4da;
    border-bottom: none;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.ql-container.ql-snow {
    border-top-left-radius: 0;
}

.ql-editor {
    min-height: 180px;
    background-color: #ffffff;
}

/* Admin label chips */
.label-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    border: none;
}

.label-chip--muted {
    background-color: #e2e8f0;
    color: #1f2937;
}

.label-chip--info {
    background: linear-gradient(120deg, #38bdf8, #0ea5e9);
    color: #fff;
}

.label-chip--primary {
    background: linear-gradient(120deg, #818cf8, #6366f1);
    color: #fff;
}

.label-chip--success {
    background: linear-gradient(120deg, #34d399, #059669);
    color: #042f2e;
}

.label-chip--warning {
    background: linear-gradient(120deg, #facc15, #f97316);
    color: #5f370e;
}

.label-chip--danger {
    background: linear-gradient(120deg, #f87171, #dc2626);
    color: #fff;
}

.label-chip--neutral {
    background: linear-gradient(120deg, #94a3b8, #475569);
    color: #fff;
}

/* Media page cards */
.media .card, .letstalk .card, .about .card {
    border: none; /* default: no border */
}

.media .card:hover, .letstalk .card:hover, .about .card:hover {
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.media .date, .letstalk .date, .about .date {
    font-size: 0.9rem;
}

.media .more-link, .letstalk .more-link, .about .more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #312783;
    text-decoration: none;
}

.media .more-link:hover, .letstalk .more-link:hover, .about .more-link:hover {
    text-decoration: underline;
}
