* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0A0E27;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #F9A826;
    border-radius: 50%;
    opacity: 0;
    animation: float 15s infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 168, 38, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: none;
    transform: translate(-300px, -300px);
}

/* Back Button */
.back-button {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(249, 168, 38, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid #F9A826;
    color: #F9A826;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-button:hover {
    background: #F9A826;
    color: #0A0E27;
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(249, 168, 38, 0.4);
}

.back-icon {
    font-size: 1.2rem;
}

/* Article Container */
.article-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 80px;
    position: relative;
    z-index: 2;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 200px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(249, 168, 38, 0.2);
    border-top: 4px solid #F9A826;
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Article Header */
.article-header {
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.category-exhibition {
    background: rgba(249, 168, 38, 0.2);
    color: #F9A826;
    border: 1px solid #F9A826;
}

.category-history {
    background: rgba(168, 85, 247, 0.2);
    color: #A855F7;
    border: 1px solid #A855F7;
}

.category-news {
    background: rgba(20, 184, 166, 0.2);
    color: #14B8A6;
    border: 1px solid #14B8A6;
}

.article-number {
    font-size: 0.875rem;
    color: #F9A826;
    font-weight: 700;
    opacity: 0.7;
}

.article-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #F9A826 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-teaser {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
}

.article-date {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Featured Image */
.article-image-container {
    width: fit-content;
    /* Fit to image width */
    max-width: 100%;
    /* Don't exceed container width */
    height: auto;
    margin: 0 auto 60px auto;
    /* Center the container */
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid rgba(249, 168, 38, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
    background: transparent;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth transition */
}

.article-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 28px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth easing */
}

.article-image-container:hover {
    border-color: rgba(249, 168, 38, 0.4);
    /* Subtle border color change */
    box-shadow: 0 25px 70px rgba(249, 168, 38, 0.3);
    /* Subtle glow */
}

.article-image-container:hover .article-image {
    transform: scale(1.015);
    /* Very subtle zoom - barely noticeable */
}

.content-wrapper {
    background: transparent;
    /* Changed from rgba(26,31,58,0.5) to transparent */
    backdrop-filter: none;
    /* Removed blur */
    border: 1px solid rgba(249, 168, 38, 0.1);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #F9A826;
    margin: 50px 0 20px 0;
    line-height: 1.3;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 40px 0 15px 0;
    line-height: 1.4;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    /* Changed from 0.85 to 0.9 for better visibility */
    margin-bottom: 0;
}

.article-content strong {
    color: #F9A826;
    font-weight: 700;
}

.article-content em {
    color: rgba(255, 255, 255, 0.95);
    /* Brighter */
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    /* Changed from 0.85 to 0.9 */
    margin-bottom: 15px;
}

.article-content blockquote {
    background: rgba(249, 168, 38, 0.15);
    /* Slightly more opaque */
    border-left: 4px solid #F9A826;
    padding: 30px;
    margin: 40px 0;
    border-radius: 15px;
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    /* Brighter */
}

.article-content a {
    color: #F9A826;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: #F9A826;
}

.article-content img {
    max-width: 100%;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Error State */
.error-container {
    text-align: center;
    padding: 150px 20px;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #F9A826;
    margin-bottom: 15px;
}

.error-message {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.error-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F9A826;
    color: #0A0E27;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-button:hover {
    background: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(249, 168, 38, 0.5);
}

/* Share Section */
.share-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid rgba(249, 168, 38, 0.2);
    text-align: center;
}

.share-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F9A826;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid;
}

.share-twitter {
    background: rgba(29, 161, 242, 0.1);
    border-color: #1DA1F2;
    color: #1DA1F2;
}

.share-twitter:hover {
    background: #1DA1F2;
    color: #ffffff;
}

.share-facebook {
    background: rgba(24, 119, 242, 0.1);
    border-color: #1877F2;
    color: #1877F2;
}

.share-facebook:hover {
    background: #1877F2;
    color: #ffffff;
}

.share-linkedin {
    background: rgba(0, 119, 181, 0.1);
    border-color: #0077B5;
    color: #0077B5;
}

.share-linkedin:hover {
    background: #0077B5;
    color: #ffffff;
}

.content-wrapper * {
    background: none !important;
    background-color: transparent !important;
}

.content-wrapper {
    background: transparent;
    backdrop-filter: none;
    border: 1px solid rgba(249, 168, 38, 0.1);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .back-button {
        top: 20px;
        left: 20px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .article-container {
        padding: 100px 16px 60px;
    }

    .article-image-container {
        width: 100%;
        /* Full width on mobile */
        border-radius: 20px;
        /* Slightly smaller radius on mobile */
    }

    .article-image {
        border-radius: 18px;
    }

    .content-wrapper {
        padding: 30px 24px;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-button {
        width: 100%;
        justify-content: center;
    }
}

/* Skip to Content Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #F9A826;
    color: #1a1a1a;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 100000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}


/* ============================================================
   ARTICLE EDITOR FEATURES (Ported from Admin for Public View)
   ============================================================ */

/* Code Block Styles */
.editor-code-block {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #282c34 !important;
    /* Override .content-wrapper * */
    border: 2px solid rgba(249, 168, 38, 0.3);
    transition: all 0.3s ease;
}

.editor-code-block:hover {
    border-color: #F9A826;
    box-shadow: 0 4px 20px rgba(249, 168, 38, 0.2);
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3) !important;
    /* Override .content-wrapper * */
    border-bottom: 1px solid rgba(249, 168, 38, 0.2);
}

.code-block-language {
    color: #F9A826;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.editor-code-block pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    background: transparent !important;
}

.editor-code-block code {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #abb2bf;
}

/* Table Styles */
/* Hide Editor Controls */
.block-delete-handle,
.block-delete-btn,
.media-embed-close,
.callout-close-btn,
.table-controls {
    display: none !important;
}

.editor-table-wrapper {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(249, 168, 38, 0.3);
    background: rgba(255, 255, 255, 0.02) !important;
    /* Override */
    transition: all 0.3s ease;
}

.editor-table {
    width: 100%;
    border-collapse: collapse;
}

.editor-table th,
.editor-table td {
    padding: 12px 16px;
    border: 1px solid rgba(249, 168, 38, 0.2);
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
}

.editor-table th {
    background: rgba(249, 168, 38, 0.15) !important;
    /* Override */
    color: #F9A826;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.editor-table td {
    background: rgba(255, 255, 255, 0.03) !important;
    /* Override */
}

.editor-table tr:hover td {
    background: rgba(249, 168, 38, 0.08) !important;
    /* Override */
}

/* Blockquote Styles */
.editor-blockquote {
    position: relative;
    margin: 20px 0;
    padding: 20px 20px 20px 70px;
    background: linear-gradient(135deg, rgba(249, 168, 38, 0.1) 0%, rgba(249, 168, 38, 0.05) 100%) !important;
    /* Override */
    border-left: 4px solid #F9A826;
    border-radius: 8px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.blockquote-icon {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 2.5rem;
    color: rgba(249, 168, 38, 0.4);
    line-height: 1;
}

.blockquote-icon::before {
    content: '❝';
}

.blockquote-content {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Callout Styles */
.editor-callout {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(249, 168, 38, 0.3);
    transition: all 0.3s ease;
}

.callout-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: white;
    font-weight: 700;
    position: relative;
    background: rgba(249, 168, 38, 0.15);
    /* Default fallback */
}

/* Specific Callout Colors */
.callout-info .callout-header {
    background: #3498db !important;
}

.callout-warning .callout-header {
    background: #f39c12 !important;
}

.callout-success .callout-header {
    background: #27ae60 !important;
}

.callout-danger .callout-header {
    background: #e74c3c !important;
}

.callout-tip .callout-header {
    background: #9b59b6 !important;
}

.callout-note .callout-header {
    background: #95a5a6 !important;
}

.callout-title {
    flex: 1;
    font-size: 1.1rem;
}

.callout-body {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05) !important;
    /* Override */
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Media Embed Styles */
.editor-media-embed {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(249, 168, 38, 0.3);
    background: rgba(0, 0, 0, 0.3) !important;
    /* Override */
    transition: all 0.3s ease;
}

.media-embed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(249, 168, 38, 0.1) !important;
    /* Override */
    color: #F9A826;
    font-weight: 700;
    font-size: 0.9rem;
}

.editor-media-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Divider Styles */
.editor-divider {
    margin: 30px 0;
    border: none;
}

.divider-solid {
    border-top: 2px solid #F9A826;
}

.divider-dashed {
    border-top: 2px dashed #F9A826;
}

.divider-dotted {
    border-top: 2px dotted #F9A826;
}

.divider-gradient {
    height: 2px;
    background: linear-gradient(90deg, transparent, #F9A826 50%, transparent) !important;
    /* Override */
}

.divider-decorative {
    text-align: center;
    color: #F9A826;
    font-size: 1.5rem;
    letter-spacing: 10px;
    padding: 10px 0;
}