        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-color: #0d1117;
            --accent-color: #161b22;
            --highlight-color: #1f6feb;
            --text-light: #e8e8e8;
            --text-secondary: #8b949e;
            --background: #0a0a0a;
            --card-bg: #141414;
            --border-color: #2a2a2a;
            --success-color: #3fb950;
            --warning-color: #d29922;
            --error-color: #f85149;
            --glow-color: #58a6ff;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: var(--background);
            color: var(--text-light);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Animated Background */
        .background-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: linear-gradient(135deg, #0a0a0a 0%, #141414 50%, #1a1a1a 100%);
            opacity: 0.8;
        }

        .background-animation::before {
            content: '';
            position: absolute;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: backgroundMove 20s linear infinite;
        }

        @keyframes backgroundMove {
            0% {
                transform: translate(0, 0);
            }

            100% {
                transform: translate(-50px, -50px);
            }
        }

        /* Mobile Menu Overlay */
        .menu-overlay {
            position: fixed;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(10, 10, 10, 0.05);
            backdrop-filter: blur(20px);
            z-index: 2000;
            transition: left 0.3s ease;
        }

        .menu-overlay.active {
            left: 0;
        }

        .menu-content {
            position: absolute;
            left: 0;
            top: 0;
            width: 280px;
            height: 100%;
            background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(25, 25, 25, 0.9) 100%);
            border-right: 1px solid var(--border-color);
            padding: 2rem;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }

        .menu-overlay.active .menu-content {
            transform: translateX(0);
        }

        .menu-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 2rem;
            cursor: pointer;
            padding: 0.5rem;
            transition: color 0.3s ease;
        }

        .menu-close:hover {
            color: var(--glow-color);
        }

        .menu-logo {
            margin-bottom: 2rem;
            padding-bottom: 2rem;
            border-bottom: 1px solid var(--border-color);
        }

        .menu-logo img {
            height: 2rem;
            width: auto;
        }

        .menu-nav {
            list-style: none;
        }

        .menu-nav li {
            margin-bottom: 1rem;
        }

        .menu-nav a {
            color: var(--text-light);
            text-decoration: none;
            font-size: 1.1rem;
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            display: block;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .menu-nav a:hover {
            background: rgba(88, 166, 255, 0.1);
            border-color: var(--glow-color);
            transform: translateX(5px);
        }

        /* Hamburger Menu Button */
        .hamburger {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 1.5rem;
            height: 1.5rem;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 2001;
        }

        .hamburger span {
            width: 100%;
            height: 1.5px;
            background: var(--text-light);
            margin: 1.5px 0;
            transition: all 0.3s ease;
            transform-origin: center;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        /* Header */
        header {
            position: sticky;
            top: 0;
            background: rgba(20, 20, 20, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            z-index: 1000;
            animation: slideDown 0.5s ease-out;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }

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

        .header-content {
            max-width: 100%;
            margin: 0 auto;
            padding: 0.6rem 2rem;
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

        /* Logo and Search Container */
        .logo-search-container {
            display: grid;
            grid-template-columns: auto auto 1fr auto;
            align-items: center;
            gap: 1.5rem;
        }

        .logo-wrapper {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .logo-wrapper:hover {
            transform: scale(1.02);
        }

        .logo-image {
            height: 1.6rem;
            width: auto;
            max-width: 140px;
            object-fit: contain;
        }

        .slogan {
            display: flex;
            font-size: .8rem;
            font-style: italic;
            color: var(--text-secondary);
            font-weight: 300;
        }

        /* Search Bar */
        .search-container {
            display: flex;
            justify-content: center;
        }

        .search-input {
            width: 100%;
            max-width: 100%;
            padding: 0.4rem 0.8rem;
            background: rgba(30, 30, 30, 0.6);
            border: 1px solid var(--border-color);
            border-radius: 1.5rem;
            color: var(--text-light);
            font-size: 0.8rem;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .search-input::placeholder {
            color: var(--text-secondary);
        }

        .search-input:focus {
            outline: none;
            border-color: var(--glow-color);
            background: rgba(30, 30, 30, 0.8);
            box-shadow: 0 0 20px rgba(88, 166, 255, 0.1);
        }

        .category-filter {
            display: flex;
            gap: 0.6rem;
            overflow-x: auto;
            padding: 0.3rem 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .category-filter::-webkit-scrollbar {
            display: none;
        }

        .category-btn {
            padding: 0.3rem 0.7rem;
            background: rgba(40, 40, 40, 0.5);
            border: 1px solid var(--border-color);
            border-radius: 1.5rem;
            color: var(--text-light);
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.7rem;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .category-btn:hover,
        .category-btn.active {
            background: rgba(88, 166, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(88, 166, 255, 0.1);
            border-color: var(--glow-color);
        }

        /* Main Content */
        .main-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1rem;
            padding-top: .5rem;
            min-height: 100vh;
        }

        /* Trending Topics Section */
        .trending-topics-section {
            margin-bottom: 1rem;
            animation: fadeInUp 0.8s ease-out 0.3s both;
        }

        .trending-topics-container {
            display: flex;
            flex-wrap: nowrap;
            gap: 0.3rem;
            overflow-x: auto;
            padding: 0.15rem 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
            scroll-behavior: smooth;
            cursor: grab;
            justify-content: flex-start;
            align-items: center;
        }

        .trending-topics-container::before {
            content: '';
            width: 16px;
            height: 10px;
            background: linear-gradient(135deg, transparent 47%, var(--glow-color) 47%, var(--glow-color) 53%, transparent 53%);
            margin-right: 0.5rem;
            flex-shrink: 0;
            opacity: 0.7;
        }

        .trending-topics-container.center-topics {
            justify-content: center;
        }

        .trending-topics-container:active {
            cursor: grabbing;
        }

        .trending-topics-container::-webkit-scrollbar {
            display: none;
        }

        .topic-tag {
            padding: 0.2rem 0.4rem;
            background: transparent;
            border: 0.5px solid transparent;
            border-radius: 0.8rem;
            color: #e8e8e8;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.7rem;
            font-weight: 400;
            white-space: nowrap;
            user-select: none;
            position: relative;
            flex-shrink: 0;
        }

        .topic-tag:hover {
            background: rgba(88, 166, 255, 0.1);
            border-color: var(--glow-color);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(88, 166, 255, 0.15);
        }

        .topic-tag.active {
            background: rgba(88, 166, 255, 0.1);
            border-color: var(--glow-color);
            color: var(--glow-color);
            font-weight: 600;
        }


        /* Events Grid Container */
        .events-grid {
            display: flex;
            flex-direction: column;
            gap: 3rem;
            animation: fadeInUp 0.8s ease-out 0.5s both;
        }

        /* Category Sections */
        .category-section {
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-bottom: 2rem;
            transition: all 0.3s ease;
        }

        .category-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--glow-color);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 1rem 0 0.5rem 0;
            margin-bottom: 1rem;
            border-bottom: 2px solid var(--glow-color);
            position: sticky;
            top: var(--header-height, 80px);
            background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(15, 15, 15, 0.9) 100%);
            backdrop-filter: blur(20px);
            z-index: 100;
            transition: all 0.3s ease;
        }

        .category-title::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 50px;
            height: 2px;
            background: linear-gradient(90deg, var(--glow-color), transparent);
        }

        /* Desktop: 4 columns, N rows - dynamic height expansion */
        .events-horizontal-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-auto-rows: auto;
            gap: 0.4rem;
            padding: 0.7rem 0.5rem;
            align-items: start;
            transition: all 0.3s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

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

        .event-card {
            background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(25, 25, 25, 0.7) 100%);
            border: 1px solid var(--border-color);
            border-radius: 1rem;
            padding: 1.5rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            height: 277px;
            margin: 0.3rem;
        }

        .event-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, rgba(88, 166, 255, 0.05) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .event-card:hover::before {
            opacity: 1;
        }

        .event-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
            border-color: var(--glow-color);
            z-index: 2;
        }

        .event-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 0.4rem;
            color: #f0f0f0;
            line-height: 1.3;
            transition: color 0.3s ease;
        }

        .event-title:hover {
            color: var(--glow-color);
        }

        .event-categories {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            margin-bottom: 0.8rem;
        }

        .event-category-tag {
            padding: 0.15rem 0.5rem;
            background: rgba(88, 166, 255, 0.15);
            border-radius: 1rem;
            color: var(--glow-color);
            font-size: 0.6rem;
            border: 1px solid rgba(88, 166, 255, 0.3);
        }

        .key-points-section {
            margin-top: 1rem;
            padding-top: 0;
            border-top: 1px solid var(--border-color);
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .key-points-section.expanded {
            max-height: 300px;
            opacity: 1;
            padding-top: 1rem;
        }

        .key-points-list {
            list-style: none;
            padding-left: 0;
        }

        .key-points-list li {
            position: relative;
            padding-left: 1.3rem;
            margin-bottom: 0.4rem;
            color: var(--text-secondary);
            font-size: 0.75rem;
            line-height: 1.4;
        }

        .key-points-list li:before {
            content: "•";
            position: absolute;
            left: 0.5rem;
            color: var(--glow-color);
        }

        .event-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }

        .card-footer {
            margin-top: auto;
            flex-shrink: 0;
        }

        .card-buttons {
            display: flex;
            gap: 0.5rem;
            margin-top: 1.5rem;
            justify-content: center;
            align-items: center;
        }

        .quick-view-btn,
        .details-btn {
            padding: 0.3rem 0.7rem;
            border: 1px solid var(--glow-color);
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.65rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            min-width: 80px;
            text-align: center;
        }

        .quick-view-btn {
            background: rgba(88, 166, 255, 0.1);
            color: var(--glow-color);
        }

        .details-btn {
            background: rgba(63, 185, 80, 0.1);
            border-color: var(--success-color);
            color: var(--success-color);
        }

        .quick-view-btn:hover {
            background: rgba(88, 166, 255, 0.25);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(88, 166, 255, 0.15);
        }

        .details-btn:hover {
            background: rgba(63, 185, 80, 0.25);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(63, 185, 80, 0.15);
        }

        .quick-view-btn.expanded {
            background: rgba(88, 166, 255, 0.2);
        }

        .event-card.expanded {
            z-index: 10;
            height: auto;
            min-height: 277px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-color: rgba(88, 166, 255, 0.4);
        }

        .event-main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }

        .article-count {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.2rem 0.5rem;
            background: rgba(63, 185, 80, 0.15);
            border-radius: 1rem;
            color: var(--success-color);
            font-size: 0.6rem;
        }

        .event-date {
            color: var(--text-secondary);
            font-size: 0.6rem;
        }

        /* Event Detail Page */
        .event-detail {
            display: none;
            animation: fadeIn 0.5s ease-out;
        }

        .event-detail.active {
            display: block;
        }

        /* Back Button Row */
        .back-button-bar {
            position: sticky;
            top: var(--header-height, 80px);
            background: rgba(20, 20, 20, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            z-index: 999;
            padding: 1rem 2rem;
        }

        .back-btn {
            padding: 0.8rem 1.5rem;
            background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(40, 40, 40, 0.8));
            border: 1px solid var(--border-color);
            border-radius: 0.5rem;
            color: var(--text-light);
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            backdrop-filter: blur(10px);
        }

        .back-btn:hover {
            background: var(--highlight-color);
            transform: translateX(-5px);
        }

        /* Event Header */
        .event-header {
            margin-bottom: 2rem;
            padding: 2rem;
            background: linear-gradient(135deg, rgba(25, 25, 25, 0.8) 0%, rgba(30, 30, 30, 0.6) 100%);
            border-radius: 1rem;
            backdrop-filter: blur(10px);
            border: 1px solid var(--border-color);
        }

        .event-detail-title {
            font-size: 1.5rem;
            font-weight: 400;
            margin-bottom: 1rem;
            color: whitesmoke;
            line-height: 1.3;
        }

        .event-detail-summary {
            font-size: 0.95rem;
            font-weight: 300;
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: 1.5rem;
            margin-top: 2rem;
            padding-top: 3.5rem;
            border-top: 2px solid var(--border-color);
            position: relative;
        }

        .event-detail-summary::before {
            content: 'Summary';
            position: absolute;
            top: 0.75rem;
            left: 0;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--glow-color);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .event-detail-summary p {
            margin-bottom: 1rem;
        }

        .event-detail-key-points {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border-color);
        }

        .event-detail-key-points-title {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--glow-color);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .event-detail-key-points-list {
            list-style: none;
            padding-left: 0;
        }

        .event-detail-key-points-list li {
            position: relative;
            padding-left: 1.5rem;
            margin-bottom: 0.75rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .event-detail-key-points-list li:before {
            content: "•";
            position: absolute;
            left: 0.5rem;
            color: var(--glow-color);
            font-size: 1rem;
        }

        .key-entities {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
            margin-bottom: 1rem;
        }

        .entity-tag {
            padding: 0.3rem 0.75rem;
            background: rgba(139, 148, 158, 0.1);
            border-radius: 2rem;
            color: var(--text-secondary);
            font-size: 0.8rem;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }

        .entity-tag:hover {
            background: rgba(88, 166, 255, 0.1);
            border-color: var(--glow-color);
        }

        /* IMPROVED Articles Section */
        .articles-section {
            margin-top: 2rem;
        }

        .articles-header {
            background: linear-gradient(135deg, rgba(25, 25, 25, 0.9), rgba(30, 30, 30, 0.7));
            padding: 1rem 1.5rem;
            font-weight: bold;
            border-radius: 1rem 1rem 0 0;
            border: 1px solid var(--border-color);
            border-bottom: 2px solid var(--glow-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .articles-count {
            font-size: 0.9rem;
            color: var(--text-secondary);
            font-weight: normal;
        }

        .articles-container {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        /* NEW: Expandable Article Card */
        .article-card {
            background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(25, 25, 25, 0.7) 100%);
            border: 1px solid var(--border-color);
            border-radius: 0.75rem;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .article-card.expanded {
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border-color: var(--glow-color);
        }

        .article-main {
            padding: 1rem;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 1rem;
            align-items: center;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .article-main:hover {
            background: rgba(88, 166, 255, 0.05);
        }

        .article-thumbnail {
            width: 60px;
            height: 60px;
            min-width: 60px;
            border-radius: 0.5rem;
            background: linear-gradient(135deg, rgba(25, 25, 25, 0.8) 0%, rgba(30, 30, 30, 0.6) 100%);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.8rem;
            overflow: hidden;
            position: relative;
        }

        .article-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .article-left-section {
            display: flex;
            gap: 1rem;
            align-items: flex-start;
            min-width: 0;
            flex: 1;
        }

        .article-info {
            flex: 1;
            min-width: 0;
        }

        .article-title {
            font-weight: 500;
            color: #f0f0f0;
            line-height: 1.4;
            margin-bottom: 0.3rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .article-meta-info {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            flex-wrap: wrap;
            margin-top: 0.4rem;
        }

        .article-date {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .article-source {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .article-actions {
            display: flex;
            gap: 0.75rem;
            align-items: center;
            flex-shrink: 0;
        }

        .expand-btn {
            padding: 0.5rem 1rem;
            background: rgba(88, 166, 255, 0.1);
            border: 1px solid var(--glow-color);
            border-radius: 0.5rem;
            color: var(--glow-color);
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
        }

        .expand-btn:hover {
            background: rgba(88, 166, 255, 0.2);
            transform: scale(1.05);
        }

        .expand-btn.expanded {
            background: rgba(88, 166, 255, 0.2);
        }

        .url-btn {
            padding: 0.5rem;
            background: linear-gradient(135deg, var(--highlight-color), #58a6ff);
            border: none;
            border-radius: 0.5rem;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            width: 36px;
            height: 36px;
        }

        .url-btn:hover {
            background: linear-gradient(135deg, #58a6ff, #3fb950);
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(88, 166, 255, 0.3);
        }

        /* Expandable Details Section */
        .article-details {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(15, 15, 15, 0.5);
            border-top: 1px solid var(--border-color);
        }

        .article-details.expanded {
            max-height: 600px;
        }

        .article-details-content {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .article-content-layout {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 2rem;
            margin-bottom: 1.5rem;
        }

        .article-left-panel {
            display: flex;
            flex-direction: column;
        }

        .article-right-panel {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .analysis-section {
            padding-top: 1.5rem;
            border-top: 1px solid var(--border-color);
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }

        .article-large-thumbnail {
            width: 100%;
            height: 200px;
            border-radius: 0.75rem;
            object-fit: cover;
            background: var(--accent-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 1rem;
            border: 1px solid var(--border-color);
        }

        .article-large-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 0.75rem;
        }

        .article-key-points {
            list-style: none;
            padding-left: 0;
        }

        .article-key-points li {
            position: relative;
            padding-left: 1.5rem;
            margin-bottom: 0.75rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .article-key-points li:before {
            content: "•";
            position: absolute;
            left: 0.5rem;
            color: var(--glow-color);
            font-size: 1rem;
        }

        @media (max-width: 768px) {
            .article-content-layout {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .article-right-panel {
                order: -1;
            }
            
            .analysis-section {
                display: flex;
                flex-direction: column;
                gap: 1.5rem;
                padding-top: 1.5rem;
            }
            
            .detail-section {
                width: 100%;
                margin-bottom: 1rem;
            }
            
            .article-details.expanded {
                max-height: none;
                height: auto;
            }
        }

        .detail-section {
            margin-bottom: 1.5rem;
        }

        .detail-section:last-child {
            margin-bottom: 0;
        }

        .detail-label {
            font-weight: bold;
            color: var(--glow-color);
            margin-bottom: 0.5rem;
            display: block;
            font-size: 0.9rem;
        }

        .detail-content {
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .sentiment-badge {
            display: inline-block;
            padding: 0.3rem 0.8rem;
            border-radius: 1rem;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .sentiment-positive {
            background: rgba(63, 185, 80, 0.15);
            color: var(--success-color);
            border: 1px solid var(--success-color);
        }

        .sentiment-negative {
            background: rgba(248, 81, 73, 0.15);
            color: var(--error-color);
            border: 1px solid var(--error-color);
        }

        .sentiment-neutral {
            background: rgba(139, 148, 158, 0.15);
            color: var(--text-secondary);
            border: 1px solid var(--text-secondary);
        }

        /* Loading States */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 300px;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 3px solid var(--border-color);
            border-top-color: var(--highlight-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* About Section */
        .about-section {
            max-width: 800px;
            margin: 4rem auto;
            padding: 3rem;
            background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(25, 25, 25, 0.7) 100%);
            border-radius: 1rem;
            border: 1px solid var(--border-color);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .about-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--glow-color), transparent);
            animation: shimmer 3s infinite;
        }

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

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

        .about-title {
            font-size: 2rem;
            margin-bottom: 2rem;
            background: linear-gradient(135deg, #58a6ff 0%, #3fb950 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .about-content {
            color: var(--text-secondary);
            line-height: 1.8;
            font-size: 1.1rem;
        }

        .about-content p {
            margin-bottom: 1.5rem;
        }

        /* Skeleton Loading for Articles */
        .skeleton {
            background: linear-gradient(90deg, var(--card-bg) 25%, rgba(88, 166, 255, 0.1) 50%, var(--card-bg) 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
        }

        @keyframes loading {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        .skeleton-article {
            height: 80px;
            border-radius: 0.75rem;
            margin-bottom: 1rem;
        }

        /* Responsive Design */
        @media (max-width: 1024px) and (min-width: 769px) {
            /* Tablet Portrait: 3 columns layout */
            .events-horizontal-grid {
                grid-template-columns: repeat(3, 1fr);
                grid-auto-rows: auto;
                gap: 0.6rem;
                padding: 0.8rem 0.6rem;
            }

            .event-card {
                height: 312px;
                padding: 1.2rem;
                margin: 0.25rem;
            }

            .event-card.expanded {
                height: auto;
                min-height: 312px;
            }
        }

        @media (max-width: 1024px) {
            .logo-search-container {
                grid-template-columns: auto auto 1fr auto;
                gap: 1rem;
            }

            .search-container {
                width: 100%;
            }
        }

        @media (max-width: 768px) {
            .header-content {
                padding: 0.6rem 1rem;
            }

            .logo-search-container {
                grid-template-columns: auto auto 1fr;
                gap: 1rem;
            }

            .logo-wrapper {
                flex-direction: row;
                align-items: center;
                gap: 0.75rem;
            }

            .logo-image {
                height: 1.5rem;
                max-width: 100px;
            }

            .slogan {
                display: none;
            }

            .trending-topics-section {
                margin-bottom: 0.8rem;
            }

            .trending-topics-container {
                gap: 0.25rem;
                padding: 0.1rem 0;
            }

            .topic-tag {
                font-size: 0.55rem;
                padding: 0.15rem 0.3rem;
                font-weight: 400;
            }

            /* Mobile: 2 rows, N columns - dynamic height expansion */
            .events-horizontal-grid {
                grid-template-columns: none;
                grid-template-rows: repeat(2, auto);
                grid-auto-flow: column;
                grid-auto-columns: 280px;
                gap: 0.5rem;
                padding: 0.5rem;
                overflow-x: auto;
                scrollbar-width: none;
                -ms-overflow-style: none;
                align-items: start;
            }

            /* Mobile: Single column layout when topic/category is selected */
            .events-horizontal-grid.single-column {
                grid-template-columns: 1fr;
                grid-template-rows: none;
                grid-auto-flow: row;
                grid-auto-columns: unset;
                overflow-x: visible;
                gap: 1rem;
                padding: 1rem;
            }

            .events-horizontal-grid::-webkit-scrollbar {
                display: none;
            }

            .event-card {
                height: auto;
                min-height: 100px;
                padding: 1rem;
                margin: 0.2rem;
            }

            .event-card.expanded {
                height: auto;
                min-height: 392px;
            }

            .event-detail-title {
                font-size: 1.25rem;
            }

            .event-detail-summary {
                font-size: 0.9rem;
            }

            .event-detail-key-points-list li {
                font-size: 0.85rem;
                padding-left: 1.25rem;
            }

            .entity-tag {
                font-size: 0.75rem;
                padding: 0.25rem 0.6rem;
            }

            .article-main {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                gap: 0.75rem;
                padding: 1rem;
            }

            .article-left-section {
                display: flex;
                align-items: flex-start;
                gap: 0.75rem;
            }


            .article-thumbnail {
                width: 40px;
                height: 40px;
                min-width: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: linear-gradient(135deg, rgba(25, 25, 25, 0.8) 0%, rgba(30, 30, 30, 0.6) 100%);
                border: 1px solid var(--border-color);
                border-radius: 0.5rem;
                overflow: hidden;
                margin-top: 2px;
            }

            .article-thumbnail img {
                max-width: 100%;
                max-height: 100%;
                width: auto;
                height: auto;
                object-fit: contain;
            }

            .article-info {
                flex: 1;
                min-width: 0;
            }

            .article-title {
                margin-bottom: 0;
                line-height: 1.3;
                font-size: 0.95rem;
            }

            .article-meta-info {
                margin-top: 0.5rem;
                font-size: 0.8rem;
            }

            .article-actions {
                display: flex;
                gap: 0.75rem;
                margin-top: 0.75rem;
            }

            .expand-btn {
                flex: 1;
                padding: 0.75rem 1rem;
                font-size: 0.85rem;
                text-align: center;
                min-height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .url-btn {
                width: 44px;
                height: 44px;
                flex-shrink: 0;
            }

            .event-main-content {
                margin-bottom: 0.5rem;
                padding-bottom: 0.5rem;
            }
        }

        @media (max-width: 480px) {
            .main-content {
                padding: 1rem;
                padding-top: .5rem;
            }

            .event-header {
                padding: 1rem;
            }

            .back-btn {
                padding: 0.6rem 1rem;
                font-size: 0.9rem;
            }

            .slogan {
                display: none;
            }
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--background);
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(var(--highlight-color), var(--glow-color));
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(var(--glow-color), var(--success-color));
        }

        /* Smooth transitions for all interactive elements */
        button,
        a,
        .article-card,
        .expand-btn,
        .url-btn {
            -webkit-tap-highlight-color: transparent;
        }

        /* Performance optimizations */
        .article-card {
            will-change: transform;
        }

        .article-details {
            will-change: max-height;
        }