* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.7;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ============ HEADER ============ */
.main-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-image {
    height: 45px;
    width: auto;
}
.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.main-nav {
    display: flex;
    gap: 0.5rem;
}
.nav-link {
    color: #e2e8f0;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.nav-link:hover {
    background: rgba(255,107,53,0.2);
    color: #FF6B35;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.search-form {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}
.search-input {
    background: transparent;
    border: none;
    padding: 0.6rem 1rem;
    color: white;
    width: 180px;
    font-size: 0.9rem;
}
.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}
.search-btn {
    background: #FF6B35;
    border: none;
    padding: 0.6rem 1rem;
    color: white;
    cursor: pointer;
}
.mobile-menu-btn {
    display: none;
    background: #FF6B35;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

/* ============ MOBILE MENU ============ */
.mobile-menu {
    display: none;
    background: #1a1a2e;
    padding: 1rem;
}
.mobile-menu.active {
    display: block;
}
.mobile-search {
    margin-bottom: 1rem;
}
.mobile-search form {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}
.mobile-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
}
.mobile-search button {
    background: #FF6B35;
    border: none;
    padding: 0.75rem 1rem;
    color: white;
}
.mobile-categories-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-categories-scroll {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}
.mobile-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.75rem;
    border-left: 3px solid;
    min-width: 80px;
    text-decoration: none;
}
.mobile-category-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.mobile-category-name {
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ============ BREAKING TICKER ============ */
.breaking-ticker {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}
.breaking-label {
    background: white;
    color: #dc2626;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.ticker-wrapper {
    flex: 1;
    overflow: hidden;
}
.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    gap: 3rem;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    color: white;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.25rem 0;
}
.ticker-item:hover {
    text-decoration: underline;
}

/* ============ HOME LAYOUT ============ */
.main-content {
    padding: 1.5rem 0;
}
.home-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}
.main-column {
    min-width: 0;
}

/* ============ FEATURED SECTION ============ */
.featured-section {
    margin-bottom: 2rem;
}
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}
.featured-main {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.featured-main a {
    display: block;
}
.featured-main .featured-image {
    position: relative;
    height: 400px;
}
.featured-main .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-main .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}
.featured-main .featured-category,
.featured-category {
    background: #FF6B35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.75rem;
}
.featured-main .featured-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.featured-main .video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 5;
}
.featured-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.featured-small {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.featured-small a {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
}
.featured-small .featured-image {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}
.featured-small .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-small .featured-overlay {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: none;
    position: static;
    padding: 0;
}
.featured-small .featured-category {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
    width: fit-content;
}
.featured-small .featured-title {
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ LATEST SECTION ============ */
.latest-section {
    margin-bottom: 2rem;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1a1a2e;
}
.section-title i {
    color: #FF6B35;
}

/* ============ POSTS GRID ============ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.post-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.post-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.post-card:hover .post-card-image img {
    transform: scale(1.05);
}
.post-card-image .video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.post-card-content {
    padding: 1rem;
}
.post-card-category {
    background: #FF6B35;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.post-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-date {
    font-size: 0.8rem;
    color: #64748b;
}

/* ============ SIDEBAR ============ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sidebar-widget {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a1a2e;
}
.widget-title i {
    color: #FF6B35;
}
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.popular-post {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.popular-post:hover {
    background: #f1f5f9;
}
.popular-number {
    background: #FF6B35;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.popular-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a2e;
}

/* ============ FOOTER ============ */
.main-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FF6B35;
}
.footer-section a {
    display: block;
    color: #94a3b8;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}
.footer-section a:hover {
    color: white;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* ============ POST PAGE ============ */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}
.post-article {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.breadcrumb {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    font-size: 0.9rem;
    color: #64748b;
}
.breadcrumb a {
    color: #FF6B35;
}
.breadcrumb span {
    margin: 0 0.5rem;
}
.post-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 2rem;
}
.post-category-tag {
    background: #FF6B35;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}
.post-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}
.post-featured-image {
    margin: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
}
.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
.post-video {
    margin: 1.5rem;
}
.post-video video {
    width: 100%;
    border-radius: 0.75rem;
}
.post-body {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #1e293b;
}
.post-body p {
    margin-bottom: 1.2rem;
}
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}
.post-author-date {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 0.9rem;
}

/* ============ CATEGORY PAGE ============ */
.category-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    color: white;
}
.category-title {
    font-size: 2rem;
    font-weight: 800;
}

/* ============ SEARCH PAGE ============ */
.search-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    color: white;
}
.search-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .home-layout,
    .post-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-main .featured-image {
        height: 280px;
    }
    .featured-main .featured-title {
        font-size: 1.3rem;
    }
    .featured-main .featured-overlay {
        padding: 1.5rem;
    }
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .post-card-image {
        height: 140px;
    }
    .post-card-title {
        font-size: 0.9rem;
    }
    .post-title {
        font-size: 1.4rem;
    }
    .post-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .featured-main .featured-image {
        height: 220px;
    }
    .featured-main .featured-title {
        font-size: 1.1rem;
    }
}

/* ============ MOBILE FIXES ============ */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Header Mobile */
    .header-content {
        padding: 0.75rem 0;
    }
    .logo-text {
        font-size: 1.3rem;
    }
    .search-form {
        display: none;
    }
    .header-actions {
        display: none;
    }
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Home Layout Mobile */
    .home-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .sidebar {
        display: none;
    }
    
    /* Featured Mobile */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .featured-main .featured-image {
        height: 220px;
    }
    .featured-main .featured-overlay {
        padding: 1rem;
    }
    .featured-main .featured-title {
        font-size: 1.2rem;
    }
    .featured-main .featured-category {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    .featured-side {
        gap: 0.75rem;
    }
    .featured-small a {
        padding: 0.5rem;
        gap: 0.75rem;
    }
    .featured-small .featured-image {
        width: 100px;
        height: 70px;
    }
    .featured-small .featured-title {
        font-size: 0.85rem;
    }
    
    /* Posts Grid Mobile */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .post-card-image {
        height: 200px;
    }
    .post-card-content {
        padding: 0.75rem;
    }
    .post-card-title {
        font-size: 1rem;
        -webkit-line-clamp: 3;
    }
    
    /* Section Title Mobile */
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    /* Breaking Ticker Mobile */
    .breaking-ticker {
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }
    .breaking-label {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    .ticker-item {
        font-size: 0.85rem;
    }
    
    /* Post Page Mobile */
    .post-layout {
        grid-template-columns: 1fr;
    }
    .post-header {
        padding: 1.25rem;
    }
    .post-title {
        font-size: 1.3rem;
    }
    .post-category-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    .post-body {
        padding: 1rem;
        font-size: 1rem;
        line-height: 1.7;
    }
    .post-featured-image {
        margin: 1rem;
        border-radius: 0.5rem;
    }
    .breadcrumb {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Footer Mobile */
    .main-footer {
        padding: 2rem 0 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Ads Mobile */
    .breaking-ticker + div {
        margin: 1rem auto !important;
    }
}

@media (max-width: 400px) {
    .logo-text {
        font-size: 1.1rem;
    }
    .featured-main .featured-image {
        height: 180px;
    }
    .featured-main .featured-title {
        font-size: 1rem;
    }
    .featured-small .featured-image {
        width: 80px;
        height: 60px;
    }
    .featured-small .featured-title {
        font-size: 0.8rem;
    }
    .post-card-image {
        height: 180px;
    }
}
