/* --- Existing styles from your style.css --- */

.gradient-bg {
    background: linear-gradient(to right, #2563eb, #1e40af);
}

.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.card-hover {
    transition: transform 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
}

/* Mobile menu styles */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu.active {
        display: block;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease;
        background-color: #2563eb;
    }
}

/* Chart styles */
.chart-container {
    position: relative;
    height: 400px;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base styles */

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

/* Navigation styles */

.nav-link.active:after {
    width: 100%;
}

/* Hero animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fade-in-up 0.6s ease-out forwards;
}

/* Floating data point animation */
.data-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: float-up 3s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100%) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100%) scale(1);
        opacity: 0;
    }
}

/* Mobile menu styles */

.mobile-menu.show {
    max-height: 400px;
}

.stock-ticker-container {
    width: 100%;
    overflow: hidden;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.stock-item {
    display: inline-block;
    padding: 0 2rem;
}

/* Pause animation on hover */
.stock-ticker-container:hover .animate-scroll {
    animation-play-state: paused;
}

.header-video-container {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden;
}

.header-video {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

.header-content {
    position: relative;
    z-index: 10;
}

.video-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
}

/* --- Dark Mode Styles --- */

body.dark {
    background-color: #1a202c;
    color: #cbd5e0;
}

.dark .bg-white {
    background-color: #2d3748;
}

.dark .bg-gray-50 {
    background-color: #2d3748;
}

.dark .text-blue-600 {
    color: #63b3ed;
}

.dark .hover\:text-blue-800:hover,
.dark .hover\:text-blue-600:hover {
    color: #4299e1;
}

.dark .border-gray-200,
.dark .border-gray-700 {
    border-color: #4a5568;
}

.dark .text-gray-600,
.dark .text-gray-500,
.dark .text-gray-700,
.dark .text-gray-800,
.dark .text-gray-900 {
    color: #a0aec0;
}

.dark .bg-gray-800 {
    background-color: #2d3748;
}

.dark .bg-gray-100 {
    background-color: #4a5568
}

.dark .bg-blue-50 {
    background-color: #2c3e50;
}

.dark .border-blue-200 {
    border-color: #4a5568;
}

.dark .text-blue-800 {
    color: #63b3ed
}

.dark .bg-blue-600 {
    background-color: #2b6cb0;
}

.dark .hover\:bg-blue-700:hover {
    background-color: #2a4365;
}

.dark .bg-yellow-50 {
    background-color: #443f31;
}

.dark .bg-green-50 {
    background-color: #334738;
}

.dark .bg-red-50 {
    background-color: #422727
}

.dark .border-l-4 {
    border-left-width: 4px;
}

.dark .border-blue-500 {
    border-left-color: #4299e1;
}

.dark .border-yellow-400 {
    border-left-color: #ecc94b
}

.dark .border-red-500 {
    border-left-color: #e53e3e
}

.dark .text-yellow-800 {
    color: #ecc94b
}

.dark .text-red-800 {
    color: #e53e3e
}

.dark .text-green-800 {
    color: #68d391
}

.dark .text-green-300 {
    color: #a7f3d0
}

.dark .hover\:bg-gray-700:hover {
    background-color: #4a5568;
}

/* --- Page-Specific Styles --- */

.article-title {
    font-size: 2.25rem;
    /* text-4xl */
    line-height: 2.5rem;
    /* text-4xl */
    font-weight: 700;
    /* font-bold */
    margin-bottom: 1rem;
    /* mb-4 */
}

@media (min-width: 768px) {
    .article-title {
        font-size: 3rem;
        /* md:text-5xl */
        line-height: 1;
        /* md:text-5xl */
    }
}


.key-takeaways {
    background-color: #e6f2ff;
    /* bg-blue-100 */
    padding: 2rem;
    /* p-8 */
    border-radius: 0.5rem;
    /* rounded-lg */
}

.dark .key-takeaways {
    background-color: #2b6cb0;
    /* dark:bg-blue-800 */
}

.key-takeaways h3 {
    color: #2563eb;
    /* text-blue-800 */
    font-weight: 700;
    /* font-bold */
    margin-bottom: 1rem;
    /* mb-4 */
}

.dark .key-takeaways h3 {
    color: #90cdf4;
}

/*Corrected key-takeaways bullet styling:*/
.key-takeaways li::marker {
    color: #2563eb;
}

.dark .key-takeaways li::marker {
    color: #90cdf4;
}

/* Table of Contents */
.toc {
    position: sticky;
    /* sticky */
    top: 1rem;
    /* top-4 */
    background-color: #fff;
    /* bg-white */
    border-radius: 0.5rem;
    /* rounded-lg */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    /* shadow-sm */
    padding: 1rem;
    /* p-4 */
}

.dark .toc {
    background-color: #4a5568;
}

.toc h2 {
    font-weight: 700;
    /* font-bold */
    font-size: 1.125rem;
    /* text-lg */
    line-height: 1.75rem;
    /* text-lg */
    margin-bottom: 1rem;
    /* mb-4 */
}

.toc a {
    display: block;
    /* block */
    color: #4a5568;
    /* text-gray-600 */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.toc a:hover {
    color: #2563eb;
}

.dark .toc a {
    color: #a0aec0
}

.dark .toc a:hover {
    color: #63b3ed;
}

/* Main Article Content */
article {
    background-color: #fff;
    /* bg-white */
    border-radius: 0.5rem;
    /* rounded-lg */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    /* shadow-sm */
    padding: 2rem;
    /* p-8 */
}

.dark article {
    background-color: #4a5568;
}

article p {
    color: #1a202c;
    /* text-gray-800 */
    line-height: 1.625;
    /* leading-relaxed */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.dark article p {
    color: #e2e8f0;
}

/* Section Headings */
article section h2 {
    font-size: 1.875rem;
    /* text-3xl */
    line-height: 2.25rem;
    /* text-3xl */
    font-weight: 700;
    /* font-bold */
    margin-bottom: 1.5rem;
    /* mb-6 */
    color: #1a202c;
    /* text-gray-800 */
}

.dark article section h2 {
    color: #e2e8f0;
}

article section h3 {
    font-size: 1.5rem;
    /* text-2xl */
    line-height: 2rem;
    /* text-2xl */
    font-weight: 700;
    /* font-bold */
    margin-bottom: 1rem;
    /* mb-4 */
    color: #1a202c;
    /* text-gray-800 */
}

.dark article section h3 {
    color: #e2e8f0;
}

/* List Styling */
article ul,
article ol {
    margin-left: 1.5rem;
    /* ml-6 */
    color: #1a202c;
    /* text-gray-800 */
}

.dark article ul,
.dark article ol {
    color: #e2e8f0
}

article ul {
    list-style-type: disc;
    /* list-disc */
}

article ol {
    list-style-type: decimal;
    /* list-decimal */
}

/* Custom Bullet Points */
.custom-bullet-list li::before {
    content: '•';
    /* Bullet point character */
    color: #63b3ed;
    /* Your blue color */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.dark .custom-bullet-list li::before {
    color: #90cdf4;
    /* Lighter blue for dark mode */
}


.custom-bullet-list {
    list-style: none;
    /* Remove default list styling */
    padding-left: 1em;
    /* Add some padding */

}

/* Card Styling within Article */
.card {
    background-color: #ebf8ff;
    /* bg-blue-50 */
    border-width: 1px;
    /* border */
    border-color: #90cdf4;
    border-radius: 0.5rem;
    /* rounded-lg */
    padding: 1rem;
    /* p-4 */
    text-align: center;
    /* text-center */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    /* shadow-sm */
}

.dark .card {
    background-color: #2b6cb0;
    border-color: #2c5282
}

.card h3 {
    font-size: 1.125rem;
    /* text-lg */
    line-height: 1.75rem;
    /* text-lg */
    font-weight: 700;
    /* font-bold */
    color: #2563eb;
    /* text-blue-800 */
    margin-bottom: 0.5rem;
    /* mb-2 */
}

.dark .card h3 {
    color: #90cdf4;
}

.card h4 {
    font-size: 1.125rem;
    /* text-lg */
    line-height: 1.75rem;
    /* text-lg */
    font-weight: 700;
    /* font-bold */
    color: #2563eb;
    /* text-blue-800 */
    margin-bottom: 0.5rem;
    /* mb-2 */
}

.dark .card h4 {
    color: #90cdf4;
}

.card p {
    color: #1a202c;
    /* text-gray-800 */
}

.dark .card p {
    color: #e2e8f0
}

/* Highlight Boxes */
.highlight-box {
    background-color: #fffaeb;
    /* bg-yellow-50 */
    border-left-width: 4px;
    /* border-l-4 */
    border-color: #f6e05e;
    /* border-yellow-400 */
    padding: 1rem;
    /* p-4 */
    border-radius: 0.375rem;
    /* rounded-md */
    margin-top: 1rem;
    /* my-4 */
    margin-bottom: 1rem;
}

.dark .highlight-box {
    background-color: #443f31;
    border-color: #ecc94b;
}

.highlight-box p {
    color: #1a202c;
    /* text-gray-800 */
    font-weight: 500;
    /* font-medium */
}

.dark .highlight-box p {
    color: #e2e8f0;
}

.swot-card ul li::marker {
    color: inherit
}

/*For SWOT cards in dark mode*/
.dark .swot-card.bg-green-50 {
    background-color: #334738;
}

.dark .swot-card.bg-red-50 {
    background-color: #422727;
}

.dark .swot-card .text-red-800 {
    color: #e53e3e
}

.dark .swot-card .text-green-800 {
    color: #68d391
}

.dark .swot-card .text-green-300 {
    color: #a7f3d0
}

/* Spacing around sections */
.section-spacing {
    margin-top: 3rem;
    /* Add top margin to sections */
}

/*Added section spacing class*/

/*Financial Data Section*/
.dark .financial-data .text-green-600 {
    color: #68d391;
    /* Dark mode green for positive numbers */
}

.dark .financial-data .text-gray-900 {
    color: #a0aec0;
}

.dark .financial-data .text-gray-600 {
    color: #a0aec0
}

.dark .financial-data .bg-gray-50 {
    background-color: #2d3748;
}

/* Filter Pills */
.filter-pill {
    background-color: #4a5568;
    /* gray-700 */
    color: #cbd5e0;
    /* gray-300 */
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    /* rounded-full */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    /* font-medium */
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.filter-pill:hover {
    background-color: #2d3748;
    /* gray-800 */
    color: #ffffff;
    /* white */
}

.filter-pill.active {
    background-color: #2563eb;
    /* blue-600 */
    color: #ffffff;
    /* white */
    border-color: #3b82f6;
    /* blue-500 */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

/* Admin specific styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #2d3748;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #4a5568;
    width: 80%;
    max-width: 800px;
    border-radius: 0.5rem;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

/* Utility for premium text gradient */
.text-gradient {
    background: linear-gradient(to right, #34d399, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Custom Scrollbar for Comments */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.5);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Premium Slider styling */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #a855f7;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Hot Topic Pulsing Gradient */
@keyframes pulse-gradient {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 20px 10px rgba(245, 158, 11, 0.3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Hot Topic Section Highlight */
/* Hot Topic Section Highlight */
.hot-topic-highlight {
    position: relative;
    border: 2px solid #ef4444 !important;
    /* Base red border, increased width */
    background: rgba(15, 23, 42, 0.4) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    /* Ensure radius matches inner content */
    animation: high-viz-border-pulse 1.5s infinite alternate ease-in-out;
}

@keyframes high-viz-border-pulse {
    from {
        border-color: #ef4444;
        /* Red-500 */
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    }

    to {
        border-color: #f59e0b;
        /* Amber-500 */
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    }
}

/* Hot Topic Text Glow */
.hot-topic-text {
    color: #fca5a5 !important;
    /* Light red/orange base */
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    animation: text-glow 2s infinite ease-in-out;
}


@keyframes text-glow {

    0%,
    100% {
        text-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
        color: #fca5a5;
    }

    50% {
        text-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
        color: #fbbf24;
        /* Amber-400 */
    }
}

/* Optional: Add a pseudo-element for the gradient border effect if single color is too boring */
.hot-topic-highlight::before {
    content: '';
    position: absolute;
    inset: -1px;
    /* Overlap border */
    border-radius: 0.5rem;
    /* Match rounded-lg */
    padding: 1px;
    background: linear-gradient(to right, #ef4444, #f59e0b, #eab308);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 11;
}

@keyframes hot-topic-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 20px 10px rgba(245, 158, 11, 0.3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.7), 0 0 30px rgba(139, 92, 246, 0.5);
}

input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    border: 2px solid rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}