/* News Detail Page Styles */

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.2rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(42, 107, 184, 0.03) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #2a6bb8;
}

.breadcrumb-nav .separator {
    color: #6c757d;
}

.breadcrumb-nav .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Article Section */
.article-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.article-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #2a6bb8, var(--primary-color));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.article-header {
    padding: 2.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date::before {
    content: '📅';
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, #2a6bb8 100%);
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #2a6bb8);
    border-radius: 2px;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.article-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 107, 184, 0.1) 0%, transparent 50%, rgba(42, 107, 184, 0.1) 100%);
    pointer-events: none;
}

.article-content {
    padding: 2.5rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.1rem;
    position: relative;
}

.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-left: 1.5rem;
}

.article-content h2 {
    font-size: 2rem;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 0 1rem 1.5rem;
    background: linear-gradient(90deg, rgba(42, 107, 184, 0.05) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
    margin-left: -1.5rem;
    padding-left: 3rem;
}

.article-content h3 {
    font-size: 1.6rem;
    color: #2a6bb8;
    position: relative;
}

.article-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.article-content h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 1.8rem;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #2c3e50;
    text-align: justify;
    text-justify: inter-word;
    position: relative;
    padding-left: 1rem;
}

/* .article-content p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
} */

.article-content ul,
.article-content ol {
    margin-bottom: 2rem;
    padding-left: 2.5rem;
    position: relative;
}

.article-content ul {
    list-style: none;
}

.article-content ul li {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.article-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
    top: 0.1rem;
}

.article-content ol {
    counter-reset: list-counter;
}

.article-content ol li {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    counter-increment: list-counter;
    position: relative;
    padding-left: 1rem;
    line-height: 1.6;
}

.article-content ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: -1.5rem;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 2.5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 2rem 2rem 3rem;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #2c3e50;
    position: relative;
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.article-content blockquote::before {
    content: '“';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.article-content blockquote::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.article-content img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.article-content img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 107, 184, 0.1) 0%, transparent 50%, rgba(42, 107, 184, 0.1) 100%);
    border-radius: 12px;
    pointer-events: none;
}

.article-back-btn {
    padding: 2.5rem;
    border-top: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.article-back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.article-back-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(42, 107, 184, 0.05) 0%, transparent 70%);
}

.article-back-btn .back-link {
    margin-left: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), #2a6bb8);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 107, 184, 0.3);
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
}

.back-link::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 ease;
}

.back-link:hover::before {
    left: 100%;
}

.back-link:hover {
    background: linear-gradient(135deg, #2a6bb8, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 107, 184, 0.4);
    color: white;
    text-decoration: none;
}

.back-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(42, 107, 184, 0.3);
}

.back-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}



/* Loading and Error States */
.loading,
.error {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.loading {
    font-size: 1.1rem;
    position: relative;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #fed7d7;
    margin: 2rem 0;
}

.error h3 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.error p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-excerpt {
        font-size: 1.1rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1rem;
    }

    .article-footer {
        padding: 1.5rem;
    }

    .article-back-btn .back-link {
        justify-content: flex-start;
    }

    .breadcrumb-nav {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .article-section {
        padding: 2rem 0;
    }

    .article-container {
        margin: 0 10px;
    }

    .article-header,
    .article-content,
    .article-footer {
        padding: 1rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-image {
        height: 250px;
    }

    .article-back-btn .back-link {
        justify-content: flex-start;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb,
    .footer,
    .article-back-btn {
        display: none;
    }

    .article-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .article-title {
        color: #000;
    }

    .article-content {
        color: #000;
    }
}