@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --apple-bg: #FBFBFD;
    --apple-white: #FFFFFF;
    --apple-text: #1D1D1F;
    --apple-text-secondary: #86868B;
    --apple-blue: #0071E3;
    --apple-border: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--apple-bg);
    color: var(--apple-text);
    margin: 0;
    padding: 0;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Market Ticker Animation */
.market-ticker-wrapper {
    background: var(--apple-white);
    border-bottom: 1px solid var(--apple-border);
    overflow: hidden;
    padding: 8px 0;
    position: relative;
    z-index: 10;
}

.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.ticker-content span {
    font-size: 11px;
    font-weight: 500;
    color: var(--apple-text-secondary);
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ticker-content .up {
    color: #28a745;
}

.ticker-content .down {
    color: #dc3545;
}

.ticker-content .neutral {
    color: var(--apple-blue);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Header & Nav */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--apple-border);
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 52px;
    display: flex;
    align-items: center;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo a {
    font-size: 19px;
    font-weight: 700;
    color: var(--apple-text);
    text-decoration: none;
    letter-spacing: -0.022em;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--apple-text);
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--apple-text);
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
    letter-spacing: -0.01em;
}

.main-nav a:hover {
    opacity: 1;
    color: var(--apple-blue);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        z-index: 10000;
        transition: right 0.3s ease;
        padding-top: 80px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li a {
        display: block;
        padding: 20px 40px;
        font-size: 18px;
        border-bottom: 1px solid var(--apple-border);
    }

    .header-search {
        display: none;
        /* Hide search on mobile header to save space, or move into menu */
    }
}

.btn-login {
    background: var(--apple-text);
    color: var(--apple-white) !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none;
}

/* Sections */
.hero-section {
    padding: clamp(40px, 10vw, 80px) 0;
    text-align: center;
}

.hero-section h1 {
    font-size: clamp(32px, 8vw, 56px);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 18px;
    color: var(--apple-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Carousel Premium */
.hero-slider-section {
    width: calc(100% - 44px);
    max-width: 1200px;
    height: 600px;
    position: relative;
    overflow: hidden;
    background: #000;
    margin: 20px auto;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-slider {
    width: 100%;
    height: 100%;
    border-radius: 28px;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slider-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slider-media img,
.slider-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-overlay {
    width: 100%;
    height: 100%;
    /* Stronger side gradient for readability (Apple style) */
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    align-items: center;
    color: #ffffff;
}

.slider-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.slider-content h1,
.slider-content h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slider-content p {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.95;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 500px;
}

.slider-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: #ffffff;
    color: #000000 !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.slider-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.slider-btn i {
    font-size: 12px;
    transition: transform 0.3s;
}

.slider-btn:hover i {
    transform: translateX(4px);
}



.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-slider-section {
        height: 500px;
    }

    .slider-controls {
        padding: 0 15px;
    }
}

/* News Grid */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 60px;
}

@media (max-width: 1024px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-list {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: var(--apple-white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--apple-border);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 113, 227, 0.2);
}

.news-thumb {
    width: 100%;
    height: 180px;
    /* Much more delicate */
    object-fit: cover;
    border-bottom: 1px solid var(--apple-border);
}

.news-body {
    padding: 20px;
    flex-grow: 1;
}

.news-category {
    font-size: 10px;
    /* Smaller and thinner */
    font-weight: 700;
    color: var(--apple-blue);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.news-body h3 {
    font-size: 18px;
    /* Refined size */
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    color: var(--apple-text);
}

.news-meta {
    font-size: 12px;
    color: var(--apple-text-secondary);
}

.native-ad-card {
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.native-ad-card:hover {
    border-color: rgba(255, 149, 0, 0.4);
}


/* Sidebar & Widgets */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.sidebar-column .widget {
    background: var(--apple-white);
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--apple-border);
    margin-bottom: 24px;
}

.widget h3 {
    font-size: 17px;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Search Bar */
.header-search {
    flex-grow: 1;
    max-width: 300px;
    margin: 0 40px;
    position: relative;
}

#search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

/* Footer */
.main-footer {
    background: #F5F5F7;
    padding: clamp(40px, 8vw, 60px) 0;
    border-top: 1px solid var(--apple-border);
}

.footer-content {
    font-size: 12px;
    color: var(--apple-text-secondary);
}

/* News Detail */
.news-detail {
    max-width: 800px;
    margin: clamp(30px, 8vw, 60px) auto;
}

.news-detail h1 {
    font-size: clamp(28px, 6vw, 44px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.news-featured-image img {
    width: 100%;
    border-radius: clamp(12px, 3vw, 24px);
    margin-bottom: 40px;
}

.news-content {
    font-size: clamp(16px, 4vw, 19px);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .news-detail {
        padding: 0 10px;
    }
}