/* News Article Page Styles */

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

body {
    font-family: 'Karla', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

/* Base container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Base button styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: #6E3CBC;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #5a2ea8;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-primary {
    background: #6E3CBC;
}

.btn-primary:hover {
    background: #5a2ea8;
}

/* Hero Section */
.article-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.article-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.article-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 0;
}

.article-hero .back-to-news {
    position: absolute;
    top: 100px;
    left: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.article-hero .back-to-news:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(-5px);
}

.article-hero h1 {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-fill-color: #FFFFFF !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin: 20px 0 0;
    max-width: 800px;
    line-height: 1.1;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9), 1px 1px 3px rgba(0, 0, 0, 0.8);
    background: none !important;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #FFFFFF !important;
    font-size: 0.95rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta .material-icons {
    font-size: 18px;
}

.article-category {
    background: rgba(110, 60, 188, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #FFFFFF !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Article Content */
.article-content {
    padding: 60px 0;
    background: #ffffff;
}

.article-body {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body p:first-of-type {
    font-size: 1.25rem;
    color: #555;
    font-weight: 400;
}

.article-body h2 {
    color: #6E3CBC;
    margin: 40px 0 20px;
    font-size: 1.6rem;
}

.article-body blockquote {
    border-left: 4px solid #6E3CBC;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f6ff;
    font-style: italic;
    font-size: 1.15rem;
    color: #555;
    border-radius: 0 8px 8px 0;
}

.article-body ul, .article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

/* Stats/Highlights Box */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: linear-gradient(135deg, #6E3CBC 0%, #8B5CF6 100%);
    padding: 30px;
    border-radius: 16px;
    margin: 40px 0;
    text-align: center;
    color: white;
}

.impact-stats .stat {
    padding: 10px;
}

.impact-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.impact-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .impact-stats {
        grid-template-columns: 1fr;
    }
}

/* Share Section */
.share-section {
    max-width: 750px;
    margin: 50px auto;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.share-section h4 {
    margin-bottom: 15px;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Back Button Section */
.back-section {
    max-width: 750px;
    margin: 40px auto 0;
    text-align: center;
}

/* Button styles now in base styles section */

/* Navigation Component Styles for News Articles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6E3CBC;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #6E3CBC;
    background: rgba(110, 60, 188, 0.05);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #6E3CBC;
    margin: 3px 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

/* Footer Component Styles for News Articles */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.03"/></svg>') repeat;
    background-size: 50px 50px;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #6E3CBC, #F4A261);
    border-radius: 2px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: #F4A261;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: #6E3CBC;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(110, 60, 188, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
}

/* Related Stories */
.related-stories {
    background: #f8f6ff;
    padding: 80px 0;
}

.related-stories h2 {
    text-align: center;
    color: #6E3CBC;
    margin-bottom: 40px;
    font-size: 2rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }
}

.story-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(110,60,188,0.15);
    text-decoration: none;
    color: inherit;
}

.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.story-card-content {
    padding: 20px;
}

.story-card-content .date {
    color: #6E3CBC;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.story-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.story-card-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.story-card-content .read-more {
    color: #6E3CBC;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.story-card-content .read-more:hover {
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .article-hero {
        height: 60vh;
        min-height: 450px;
        max-height: 600px;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .article-hero .back-to-news {
        top: 80px;
        left: 20px;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-content {
        padding: 40px 0;
    }
    
    .related-stories {
        padding: 60px 0;
    }
}