@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Playfair+Display:wght@700&display=swap');
        .article-content {
            font-size: 1.1rem;
            line-height: 1.8;
        }
        
        .article-content h2 {
            margin-top: 1.8rem;
            margin-bottom: 1.2rem;
            font-size: 1.8rem;
            color: var(--primary-color);
        }
        
        .article-content h3 {
            margin-top: 1.5rem;
            margin-bottom: 1rem;
            font-size: 1.4rem;
            color: var(--secondary-color);
        }
        
        .article-content p {
            margin-bottom: 1.2rem;
        }
        
        .article-content ul, .article-content ol {
            margin-bottom: 1.5rem;
            margin-left: 1.5rem;
        }
        
        .article-content li {
            margin-bottom: 0.5rem;
        }
        
        .article-content table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 1.5rem;
        }
        
        .article-content table, .article-content th, .article-content td {
            border: 1px solid #ddd;
        }
        
        .article-content th, .article-content td {
            padding: 0.8rem;
            text-align: left;
        }
        
        .article-content th {
            background-color: var(--light-bg);
        }
        
        .article-content blockquote {
            border-left: 4px solid var(--secondary-color);
            padding-left: 1.5rem;
            margin-left: 0;
            margin-bottom: 1.5rem;
            font-style: italic;
            color: #555;
        }
        
        .article-content code {
            background-color: var(--light-bg);
            padding: 0.2rem 0.4rem;
            border-radius: 3px;
            font-family: monospace;
        }
        
        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #eee;
        }
        
        .article-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        
        .article-tag {
            background: var(--light-bg);
            color: var(--secondary-color);
            padding: 0.25rem 0.75rem;
            border-radius: 999px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .risk-table {
            width: 100%;
            margin-bottom: 2rem;
        }

        .risk-table th {
            background-color: var(--primary-color);
            color: white;
        }

        .vulnerability-component {
            font-weight: bold;
            color: var(--primary-color);
        }

        .key-point {
            background-color: #f8f9fa;
            border-left: 4px solid var(--accent-color);
            padding: 1rem;
            margin: 1.5rem 0;
        }
/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --text-light: #212529;
    --text-dark: #f8f9fa;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
}

/* ==================== LIGHT THEME (DEFAULT) ==================== */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-light);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    position: relative;
    min-height: 100vh;
}

/* ==================== DARK THEME ==================== */
body[data-theme="dark"] {
    background-color: #1a1a1a;
    color: var(--text-dark);
}

body[data-theme="dark"] .navbar-dark {
    background-color: #000 !important;
}

body[data-theme="dark"] .card {
    background-color: #2d2d2d;
    color: var(--text-dark);
    border-color: #404040;
}

body[data-theme="dark"] .card-footer {
    background-color: #252525;
    border-color: #404040;
}

body[data-theme="dark"] .bg-light {
    background-color: #2d2d2d !important;
    color: var(--text-dark) !important;
}

body[data-theme="dark"] footer {
    background-color: #2d2d2d !important;
    color: var(--text-dark) !important;
}

body[data-theme="dark"] .text-dark {
    color: var(--text-dark) !important;
}

body[data-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select {
    background-color: #2d2d2d;
    color: var(--text-dark);
    border-color: #404040;
}

body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-select:focus {
    background-color: #2d2d2d;
    color: var(--text-dark);
    border-color: var(--primary-color);
}

body[data-theme="dark"] .input-group-text {
    background-color: #2d2d2d;
    color: var(--text-dark);
    border-color: #404040;
}

body[data-theme="dark"] .breadcrumb {
    background-color: transparent;
}

body[data-theme="dark"] .breadcrumb-item a {
    color: var(--primary-color);
}

body[data-theme="dark"] .alert-info {
    background-color: #1a3d4d;
    border-color: #0dcaf0;
    color: var(--text-dark);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ==================== CARD STYLES ==================== */
.card-article {
    transition: transform var(--transition-speed) ease-in-out, 
                box-shadow var(--transition-speed) ease-in-out;
    box-shadow: var(--card-shadow);
    border: none;
    overflow: hidden;
}

.card-article:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.card-article:hover .card-img-top {
    transform: scale(1.05);
}

/* Lazy loading image styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-image.loaded {
    opacity: 1;
}

/* ==================== SKELETON LOADING ==================== */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 50%,
        #f0f0f0 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
}

body[data-theme="dark"] .skeleton {
    background: linear-gradient(
        90deg,
        #2d2d2d 0%,
        #3d3d3d 50%,
        #2d2d2d 100%
    );
    background-size: 1000px 100%;
}

.skeleton-card {
    border: none;
    box-shadow: var(--card-shadow);
}

.skeleton-img {
    height: 200px;
    width: 100%;
}

.skeleton-title {
    height: 24px;
    width: 80%;
}

.skeleton-text {
    height: 16px;
    width: 100%;
}

/* ==================== ARTICLE STYLES ==================== */
.article-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    padding: 1rem 0;
    border-bottom: 2px solid #dee2e6;
}

body[data-theme="dark"] .article-meta {
    border-bottom-color: #404040;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h3,
.article-body h4,
.article-body h5 {
    font-family: 'Playfair Display', serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

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

.article-body ul li,
.article-body ol li {
    margin-bottom: 0.5rem;
}

.article-thumbnail img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* ==================== COMMENT SYSTEM ==================== */
.comment {
    transition: transform 0.2s ease;
}

.comment:hover {
    transform: translateX(5px);
}

.comment-form-container {
    border: 1px solid #dee2e6;
}

body[data-theme="dark"] .comment-form-container,
body[data-theme="dark"] .comment {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
}

/* ==================== SHARE BUTTONS ==================== */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-buttons .btn {
    transition: all 0.2s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==================== NOTIFICATION SYSTEM ==================== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 15px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

body[data-theme="dark"] .notification {
    background: #2d2d2d;
    color: var(--text-dark);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-error {
    border-left-color: var(--danger-color);
}

.notification-warning {
    border-left-color: var(--warning-color);
}

.notification-info {
    border-left-color: var(--info-color);
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    margin-left: 10px;
}

.notification-close:hover {
    opacity: 1;
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ==================== SEARCH AND FILTER ==================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ==================== BADGES ==================== */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .notification-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .share-buttons {
        justify-content: center;
    }
}

/* ==================== UTILITIES ==================== */
.shadow-sm {
    box-shadow: var(--card-shadow) !important;
}

.shadow-hover:hover {
    box-shadow: var(--card-shadow-hover) !important;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

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

body[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ==================== FORM VALIDATION STYLES ==================== */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--success-color);
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: var(--danger-color);
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* ==================== ACCESSIBILITY ==================== */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* New Styles for Centered Layout and Animations */

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    width: 100%;
    max-width: 1200px; /* Adjust as needed */
    padding: 0 15px;
    margin: 0 auto;
}

.fancy-navbar {
    background-color: transparent;
    transition: background-color 0.5s ease;
    width: 100%;
}

.fancy-navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.hero-section {
    padding: 100px 0;
    color: var(--text-dark);
    background: url('../Images/banner.png') no-repeat center center;
    background-size: cover;
    border-radius: 15px;
    margin-top: 20px;
}

.latest-video-section {
    padding: 50px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.2rem;
    color: #6c757d;
}

body[data-theme="dark"] .video-placeholder {
    background-color: #343a40;
    color: #adb5bd;
}

footer {
    width: 100%;
}

