/* ============================================
   MyNews Modern Theme - Inspired by Detik.com
   ============================================ */

:root {
    --primary: #E01A22;
    --primary-dark: #B01218;
    --primary-light: #FF2A32;
    --secondary: #1a1a1a;
    --text-primary: #222222;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border: #e5e5e5;
    --hover: #f0f0f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Roboto', 'Arial', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary);
}

/* ============================================
   TOP BAR - Super Sticky
   ============================================ */
.top-bar {
    background: var(--bg-dark);
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.top-bar__date {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.top-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.top-menu li a {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 0;
    display: block;
}

.top-menu li a:hover {
    color: var(--primary-light);
}

/* ============================================
   HEADER MAIN - Modern & Clean
   ============================================ */
.header-main {
    background: var(--bg-primary);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 30px;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.header-main__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1px;
}

.site-title a {
    color: var(--primary);
    font-weight: 900;
}

.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

.header-ad {
    flex-grow: 1;
    text-align: center;
}

.header-search {
    position: relative;
}

.search-toggle {
    background: var(--bg-secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-toggle:hover {
    background: var(--primary);
    color: #fff;
}

.search-modal {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-primary);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    min-width: 350px;
    border-radius: 8px;
    z-index: 1000;
}

.search-form {
    position: relative;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

/* ============================================
   PRIMARY NAVIGATION - Bold & Modern
   ============================================ */
.primary-navigation {
    background: var(--primary);
    position: relative;
}

.primary-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 14px 20px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    background: var(--primary-dark);
}

/* ============================================
   NEWS TICKER - Animated & Eye-catching
   ============================================ */
.news-ticker {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
    border-bottom: 2px solid var(--primary);
}

.news-ticker__inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.news-ticker__label {
    background: var(--primary);
    padding: 8px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    flex-shrink: 0;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.news-ticker__content {
    flex-grow: 1;
    overflow: hidden;
}

.news-ticker__slider {
    display: flex;
    animation: ticker 40s linear infinite;
}

.news-ticker__item {
    flex-shrink: 0;
    padding: 0 40px;
    white-space: nowrap;
    font-weight: 500;
    font-size: 14px;
}

.news-ticker__item a {
    color: #fff;
    position: relative;
}

.news-ticker__item a:hover {
    color: var(--primary-light);
}

.news-ticker__item a::before {
    content: "•";
    margin-right: 10px;
    color: var(--primary);
}

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

/* ============================================
   SITE CONTENT - Modern Layout
   ============================================ */
.site-content {
    padding: 25px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
}

/* ============================================
   HEADLINE SECTION - Bold & Prominent
   ============================================ */
.headline-section {
    margin-bottom: 30px;
}

.headline-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.headline-featured {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.headline-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.headline-featured .featured-image {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%;
}

.headline-featured .featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.headline-featured:hover .featured-image img {
    transform: scale(1.05);
}

.headline-featured .featured-content {
    padding: 20px;
}

.entry-categories a {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.headline-featured .entry-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin: 10px 0 12px 0;
    color: var(--text-primary);
}

.headline-featured .entry-title a:hover {
    color: var(--primary);
}

.headline-featured .entry-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.entry-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.entry-meta time {
    font-weight: 600;
}

/* Headline List */
.headline-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.headline-item {
    display: flex;
    gap: 15px;
    background: var(--bg-primary);
    padding: 12px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.headline-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.headline-item .item-thumbnail {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
}

.headline-item .item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.headline-item:hover .item-thumbnail img {
    transform: scale(1.1);
}

.headline-item .item-content {
    flex: 1;
}

.headline-item .item-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.headline-item .item-title a:hover {
    color: var(--primary);
}

/* ============================================
   POPULAR SECTION - Tabbed & Interactive
   ============================================ */
.popular-section {
    margin-bottom: 30px;
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.section-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    background: var(--bg-secondary);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: var(--primary);
    color: #fff;
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.post-grid {
    display: grid;
    gap: 20px;
}

.post-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.post-item {
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.post-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.post-item .post-thumbnail {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
}

.post-item .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-item .post-content {
    padding: 15px;
}

.post-item .post-title {
    font-size: 16px;
    font-weight: 700;
    margin: 10px 0 8px 0;
    line-height: 1.4;
}

.post-item .post-title a:hover {
    color: var(--primary);
}

/* ============================================
   CATEGORY BLOCK - Organized & Clean
   ============================================ */
.category-block {
    margin-bottom: 30px;
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.category-block .section-header {
    border-bottom-color: var(--primary);
}

.view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    padding: 6px 12px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    transition: all 0.3s;
}

.view-all:hover {
    background: var(--primary);
    color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-item-small {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s;
}

.post-item-small:hover {
    background: var(--bg-secondary);
}

.post-item-small .item-thumbnail {
    flex-shrink: 0;
    width: 110px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
}

.post-item-small .item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-item-small .item-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

/* ============================================
   SIDEBAR - Sticky & Organized
   ============================================ */
.sidebar-widgets {
    position: sticky;
    top: 110px;
}

.widget {
    background: var(--bg-primary);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-ad {
    text-align: center;
    background: var(--bg-secondary);
    padding: 15px;
}

.trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trending-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.trending-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-list a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.trending-list img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
}

.trending-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
}

.trending-list a:hover .trending-title {
    color: var(--primary);
}

/* ============================================
   SINGLE POST - Professional Layout
   ============================================ */
.single-post .entry-header {
    margin-bottom: 25px;
}

.single-post .entry-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin: 15px 0 20px 0;
    color: var(--text-primary);
}

.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.single-post .entry-meta strong {
    color: var(--text-primary);
}

.author-meta,
.editor-meta,
.date-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-post .entry-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.single-post .entry-featured-image img {
    width: 100%;
    height: auto;
}

.single-post .entry-featured-image figcaption {
    background: var(--bg-secondary);
    padding: 12px 15px;
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

.single-post .entry-content {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 35px;
    color: var(--text-primary);
}

.single-post .entry-content p {
    margin-bottom: 22px;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.mynews-in-content-ad {
    margin: 35px 0;
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* Entry Narsum */
.entry-narsum {
    background: var(--bg-secondary);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.entry-narsum h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.entry-narsum ul {
    margin: 0;
    padding-left: 25px;
}

.entry-narsum li {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* Entry Tags */
.entry-tags {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.tags-label {
    font-weight: 700;
    margin-right: 10px;
    color: var(--text-primary);
}

.entry-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    margin: 5px 5px 5px 0;
    transition: all 0.3s;
}

.entry-tags a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   SOCIAL SHARE - Modern & Colorful
   ============================================ */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    border-radius: 8px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.share-label {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-facebook {
    background: #1877f2;
    color: #fff;
}

.share-twitter {
    background: #1da1f2;
    color: #fff;
}

.share-whatsapp {
    background: #25d366;
    color: #fff;
}

.share-copy {
    background: #6c757d;
    color: #fff;
}

/* ============================================
   RELATED POSTS - Engaging Layout
   ============================================ */
.related-posts {
    margin-bottom: 40px;
    background: var(--bg-primary);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.related-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    text-transform: uppercase;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.related-item:hover {
    background: var(--bg-secondary);
}

.related-thumbnail {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

/* ============================================
   FOOTER - Modern & Informative
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    margin-top: 50px;
}

.footer-widgets {
    padding: 50px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widgets__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-widget {
    margin-bottom: 0;
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    background: #000;
    padding: 25px 0;
}

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

.footer-copyright {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.footer-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 500;
}

.footer-menu a:hover {
    color: var(--primary-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .headline-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-grid.grid-3 {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .primary-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        box-shadow: var(--shadow-lg);
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .footer-widgets__inner {
        grid-template-columns: 1fr;
    }
    
    .single-post .entry-title {
        font-size: 28px;
    }
    
    .single-post .entry-content {
        font-size: 16px;
    }
    
    .headline-featured .entry-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .headline-item {
        flex-direction: column;
    }
    
    .headline-item .item-thumbnail {
        width: 100%;
        height: 180px;
    }
    
    .related-item {
        flex-direction: column;
    }
    
    .related-thumbnail {
        width: 100%;
        height: 180px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.screen-reader-text {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
