/**
 * Disway.id Style CSS
 * Custom styling for Disway-style homepage template
 */

/* ===== Google Font Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== CSS Variables ===== */
:root {
    --disway-red: #BA0000;
    --disway-dark-red: #8B0000;
    --disway-black: #1a1a1a;
    --disway-dark: #222;
    --disway-gray: #666;
    --disway-light-gray: #f5f5f5;
    --disway-white: #fff;
    --disway-cyan: #00bcd4;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== HIDE ALL THEME DEFAULT CONTENT ===== */
/* Hide theme header, navigation, topbar, and ALL sections that leak from header.php and sections.php */
body.page-template-template-disway #masthead,
body.page-template-template-disway .site-header,
body.page-template-template-disway .routine-news-topbar,
body.page-template-template-disway .routine-news-middle-header,
body.page-template-template-disway .routine-news-bottom-header,
body.page-template-template-disway .routine-news-navigation-outer-wrapper,
body.page-template-template-disway #loader,
body.page-template-template-disway .skip-link,
body.page-template-template-disway .site-footer,
body.page-template-template-disway .colophon,
/* Hide all sections from sections.php */
body.page-template-template-disway .routine-news-flash-news-section,
body.page-template-template-disway .routine-news-banner-section,
body.page-template-template-disway .routine-news-grid-section,
body.page-template-template-disway .routine-news-main-widgets-section,
body.page-template-template-disway .routine-news-above-footer-section,
body.page-template-template-disway .routine-news-main-wrapper,
body.page-template-template-disway .routine-news-container-wrapper,
/* Hide any banner/main news section variations */
body.page-template-template-disway .main-banner-wrapper,
body.page-template-template-disway .featured-posts-wrapper,
body.page-template-template-disway .main-news-section,
body.page-template-template-disway .featured-news-section,
body.page-template-template-disway .flash-news-section,
body.page-template-template-disway section.banner-section,
body.page-template-template-disway section.grid-section,
body.page-template-template-disway section.flash-news,
/* Hide the main site-main element that may contain leaked content */
body.page-template-template-disway #primary.site-main,
body.page-template-template-disway .site-main,
body.page-template-template-disway main#primary,
body.page-template-template-disway .section-wrapper:not(.disway-wrapper *),
/* Hide all elements directly inside .site that are NOT our wrapper */
body.page-template-template-disway #page > *:not(.disway-wrapper):not(script):not(style):not(link):not(#wpadminbar),
body.page-template-template-disway #page .site > *:not(.disway-wrapper):not(script):not(style):not(link),
body.page-template-template-disway .site > header,
body.page-template-template-disway .site > main,
body.page-template-template-disway .site > footer,
body.page-template-template-disway .site > .routine-news-main-wrapper,
body.page-template-template-disway .site > section:not(.disway-featured):not(.disway-main) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* CRITICAL: Make sure disway-wrapper covers everything */
body.page-template-template-disway #page,
body.page-template-template-disway .site {
    position: relative;
}

body.page-template-template-disway .disway-wrapper {
    position: relative;
    z-index: 999 !important;
    background: var(--disway-white) !important;
}

/* Hide directly adjacent text nodes and loose content at page level */
body.page-template-template-disway #page::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: white;
    z-index: -1;
}

/* ===== Global Reset for Template ===== */
.disway-wrapper {
    font-family: var(--font-primary);
    color: var(--disway-black);
    line-height: 1.6;
    background: var(--disway-white);
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.disway-wrapper * {
    box-sizing: border-box;
}

.disway-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* ===== Header ===== */
.disway-header {
    background: var(--disway-white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.disway-header .disway-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left .site-logo {
    display: flex;
    align-items: center;
}

.header-left .logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--disway-red);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.header-left .custom-logo {
    max-height: 50px;
    width: auto;
}

.header-left .default-logo {
    max-height: 45px;
    width: auto;
}

.header-center {
    flex: 1;
    max-width: 400px;
}

.disway-search {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    background: var(--disway-light-gray);
}

.disway-search input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 14px;
    outline: none;
}

.disway-search button {
    padding: 10px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--disway-gray);
}

.disway-search button:hover {
    color: var(--disway-red);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--disway-red);
    color: var(--disway-white);
    transition: background 0.3s;
}

.social-icons a:hover {
    background: var(--disway-dark-red);
}

.header-date {
    font-size: 13px;
    color: var(--disway-gray);
}

/* ===== Navigation ===== */
.disway-nav {
    background: var(--disway-black);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.disway-nav .disway-container {
    display: flex;
    align-items: center;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 35px;
    height: 35px;
    padding: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--disway-white);
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

/* ===== Breaking News Ticker ===== */
.breaking-news {
    background: var(--disway-red);
    padding: 10px 0;
    overflow: hidden;
}

.breaking-news .disway-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    flex-shrink: 0;
    background: var(--disway-white);
    color: var(--disway-red);
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}

.breaking-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-wrap {
    display: flex;
    gap: 50px;
    animation: ticker 25s linear infinite;
    white-space: nowrap;
}

.ticker-wrap:hover {
    animation-play-state: paused;
}

.ticker-item {
    color: var(--disway-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 0 25px;
    border-right: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
    transition: opacity 0.3s;
}

.ticker-item:last-child {
    border-right: none;
}

.ticker-item:hover {
    opacity: 0.8;
    text-decoration: underline;
}

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

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

.disway-menu li {
    margin: 0;
}

.disway-menu li a {
    display: block;
    padding: 14px 18px;
    color: var(--disway-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.3s, color 0.3s;
}

.disway-menu li a:hover,
.disway-menu li.current-menu-item a {
    background: var(--disway-red);
    color: var(--disway-white);
}

/* Dropdown Menu Styles - Mega Menu */
.disway-menu > li {
    position: static;
}

.disway-menu > li.menu-item-has-children {
    position: relative;
}

.disway-menu > li > .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--disway-black);
    min-width: 600px;
    max-width: 800px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    margin: 0;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    
    /* Multi-column layout */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.disway-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.disway-menu .sub-menu li {
    border-bottom: none;
}

.disway-menu .sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    white-space: nowrap;
    border-radius: 6px;
    transition: all 0.2s;
}

.disway-menu .sub-menu li a:hover {
    background: var(--disway-red);
    color: var(--disway-white);
}

/* Dropdown arrow indicator */
.disway-menu > li.menu-item-has-children > a::after {
    content: '▾';
    font-size: 10px;
    margin-left: 5px;
}

/* ===== Featured Section ===== */
.disway-featured {
    padding: 25px 0;
    background: var(--disway-white);
    position: relative;
    overflow: hidden;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.featured-main {
    grid-row: span 2;
    overflow: hidden;
    position: relative;
}

.featured-secondary {
    overflow: hidden;
    position: relative;
}

.featured-main a,
.featured-secondary a {
    display: block;
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a;
}

.featured-main img,
.featured-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.featured-main a:hover img,
.featured-secondary a:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: none;
    color: var(--disway-white) !important;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.9);
}

.featured-overlay * {
    color: inherit !important;
    text-shadow: inherit;
}

.featured-category,
.featured-category a {
    display: inline;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--disway-cyan) !important;
    margin-bottom: 8px;
    text-decoration: none;
    background: transparent !important;
    padding: 0;
}

.featured-main h2,
.featured-main h2 a {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
    color: var(--disway-white) !important;
    text-decoration: none;
}

.featured-secondary h3,
.featured-secondary h3 a {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: var(--disway-white) !important;
    text-decoration: none;
}

.featured-secondary .featured-overlay {
    padding: 15px;
}

.featured-date {
    font-size: 12px;
    opacity: 0.8;
}

/* ===== Main Content ===== */
.disway-main {
    padding: 30px 0;
    background: var(--disway-light-gray);
    position: relative;
    overflow: hidden;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    position: relative;
    align-items: start;
}

/* ===== Section Title ===== */
.section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--disway-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title span {
    background: var(--disway-red);
    color: var(--disway-white);
    padding: 6px 15px;
    display: inline-block;
}

/* ===== Terbaru Section ===== */
.terbaru-section {
    background: var(--disway-white);
    padding: 25px;
    border-radius: 8px;
}

.terbaru-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.terbaru-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.terbaru-item:last-child {
    border-bottom: none;
}

.terbaru-content {
    flex: 1;
}

.terbaru-category,
.terbaru-category a {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--disway-cyan);
    margin-bottom: 6px;
    text-decoration: none;
}

.terbaru-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.terbaru-content h3 a {
    color: var(--disway-black);
    text-decoration: none;
    transition: color 0.3s;
}

.terbaru-content h3 a:hover {
    color: var(--disway-red);
}

.terbaru-date {
    font-size: 12px;
    color: var(--disway-gray);
}

.terbaru-thumb {
    flex-shrink: 0;
}

.terbaru-thumb img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

/* ===== Sidebar ===== */
.disway-sidebar {
    background: var(--disway-white);
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
    position: relative;
    z-index: 1;
}

.popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: popular-counter;
}

.popular-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.popular-list li:last-child {
    border-bottom: none;
}

.popular-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--disway-red);
    color: var(--disway-white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
    flex-shrink: 0;
}

.popular-list li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--disway-black);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s;
}

.popular-list li a:hover {
    color: var(--disway-red);
}

/* ===== Category Archive Page ===== */
.category-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--disway-red);
}

.category-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--disway-black);
    margin: 0 0 10px;
    text-transform: uppercase;
}

.category-desc {
    font-size: 14px;
    color: var(--disway-gray);
}

/* Category Banner */
.category-banner {
    background: var(--disway-red);
    padding: 25px 0;
    margin-bottom: 0;
}

.category-banner .category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--disway-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-banner .category-desc {
    color: rgba(255,255,255,0.85);
    margin: 8px 0 0;
    font-size: 14px;
}

/* Terbaru excerpt for category pages */
.terbaru-excerpt {
    font-size: 13px;
    color: var(--disway-gray);
    margin: 5px 0 8px;
    line-height: 1.5;
}

.articles-section {
    background: var(--disway-white);
    padding: 25px;
    border-radius: 8px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.article-item:first-child {
    padding-top: 0;
}

.article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-thumb {
    flex-shrink: 0;
    width: 200px;
}

.article-thumb a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.article-thumb img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-thumb a:hover img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-category {
    display: inline-block;
    margin-bottom: 8px;
}

.article-category a {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--disway-cyan);
    text-decoration: none;
}

.article-category a:hover {
    color: var(--disway-red);
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.article-title a {
    color: var(--disway-black);
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: var(--disway-red);
}

.article-excerpt {
    font-size: 14px;
    color: var(--disway-gray);
    margin: 0 0 10px;
    line-height: 1.6;
}

.article-meta {
    font-size: 12px;
    color: var(--disway-gray);
}

.article-meta span {
    margin-right: 15px;
}

.article-author {
    font-style: italic;
}

/* Pagination */
.articles-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.articles-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.articles-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--disway-light-gray);
    color: var(--disway-black);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.articles-pagination .page-numbers:hover,
.articles-pagination .page-numbers.current {
    background: var(--disway-red);
    color: var(--disway-white);
}

/* Sidebar Widgets */
.widget-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--disway-red);
    text-transform: uppercase;
}

.widget-title span {
    background: var(--disway-red);
    color: var(--disway-white);
    padding: 5px 12px;
    display: inline-block;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

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

.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    color: var(--disway-black);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.category-list li a:hover {
    color: var(--disway-red);
}

.cat-count {
    color: var(--disway-gray);
    font-size: 12px;
}

.no-posts {
    text-align: center;
    padding: 40px;
    color: var(--disway-gray);
    font-size: 16px;
}

/* Category page responsive */
@media (max-width: 768px) {
    .article-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-thumb {
        width: 100%;
    }
    
    .article-thumb img {
        width: 100%;
        height: 180px;
    }
    
    .article-title {
        font-size: 16px;
    }
    
    .category-title {
        font-size: 22px;
    }
    
    /* Mobile Hamburger Menu */
    .hamburger-menu {
        display: flex;
    }
    
    .disway-nav .disway-container {
        justify-content: flex-start;
    }
    
    .disway-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--disway-black);
        flex-direction: column;
        padding-top: 60px;
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: 5px 0 20px rgba(0,0,0,0.3);
    }
    
    .disway-menu.active {
        left: 0;
    }
    
    .disway-menu > li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .disway-menu li a {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    /* Hide mega menu on mobile, show as list */
    .disway-menu > li > .sub-menu {
        position: static;
        transform: none;
        min-width: 100%;
        max-width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 0;
        box-shadow: none;
        background: rgba(0,0,0,0.3);
    }
    
    .disway-menu > li:hover > .sub-menu,
    .disway-menu > li.menu-item-has-children.active > .sub-menu {
        display: block;
    }
    
    .disway-menu .sub-menu li a {
        padding-left: 35px;
        font-size: 13px;
    }
    
    /* Menu overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Breaking news on mobile */
    .breaking-label {
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .ticker-item {
        font-size: 12px;
        padding: 0 15px;
    }
}

/* ===== Single Post Page ===== */
.article-page {
    padding-top: 30px;
}

.single-article {
    background: var(--disway-white);
    padding: 30px;
    border-radius: 8px;
}

/* Breadcrumb */
.article-breadcrumb {
    font-size: 13px;
    color: var(--disway-gray);
    margin-bottom: 20px;
}

.article-breadcrumb a {
    color: var(--disway-gray);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: var(--disway-red);
}

.article-breadcrumb span {
    margin: 0 8px;
}

/* Category Badge */
.article-category-badge {
    margin-bottom: 15px;
}

.article-category-badge a {
    display: inline-block;
    background: var(--disway-red);
    color: var(--disway-white);
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 8px;
}

/* Article Title */
.article-main-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--disway-black);
    margin: 0 0 20px;
}

/* Article Info */
.article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: var(--disway-gray);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-author-name {
    color: var(--disway-black);
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.article-share span {
    font-size: 13px;
    color: var(--disway-gray);
}

.article-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--disway-white);
    transition: transform 0.2s;
}

.article-share a:hover {
    transform: scale(1.1);
}

.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }

/* Featured Image */
.article-featured-image {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    font-size: 12px;
    color: var(--disway-gray);
    font-style: italic;
    margin: 10px 0 0;
    text-align: center;
}

/* Article Body */
.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--disway-black);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 30px 0 15px;
    font-weight: 700;
}

.article-body h2 { font-size: 24px; }
.article-body h3 { font-size: 20px; }
.article-body h4 { font-size: 18px; }

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-body blockquote {
    border-left: 4px solid var(--disway-red);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: var(--disway-gray);
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

/* Tags */
.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.article-tags > span {
    font-size: 14px;
    font-weight: 600;
    color: var(--disway-black);
}

.article-tags a {
    display: inline-block;
    background: var(--disway-light-gray);
    color: var(--disway-gray);
    padding: 6px 14px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
}

.article-tags a:hover {
    background: var(--disway-red);
    color: var(--disway-white);
}

/* Related Posts */
.related-section {
    padding: 40px 0;
    background: var(--disway-light-gray);
}

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

.related-item {
    background: var(--disway-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.related-thumb {
    display: block;
    height: 150px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-item:hover .related-thumb img {
    transform: scale(1.05);
}

.related-content {
    padding: 15px;
}

.related-category,
.related-category a {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--disway-cyan);
    text-decoration: none;
}

.related-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.4;
}

.related-content h3 a {
    color: var(--disway-black);
    text-decoration: none;
}

.related-content h3 a:hover {
    color: var(--disway-red);
}

.related-date {
    font-size: 12px;
    color: var(--disway-gray);
}

/* Single page responsive */
@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-article {
        padding: 20px;
    }
    
    .article-main-title {
        font-size: 24px;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-share {
        flex-wrap: wrap;
    }
}

/* ===== Comments Section ===== */
.article-comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--disway-black);
    margin: 0 0 25px;
}

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

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--disway-black);
}

.comment-author .fn a {
    color: inherit;
    text-decoration: none;
}

.comment-metadata {
    font-size: 12px;
    color: var(--disway-gray);
    margin-bottom: 10px;
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--disway-black);
}

.comment-content p {
    margin: 0 0 10px;
}

.reply a {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--disway-red);
    text-decoration: none;
    margin-top: 10px;
}

.reply a:hover {
    text-decoration: underline;
}

/* Child comments */
.children {
    list-style: none;
    margin: 0;
    padding-left: 40px;
}

/* Comment Form */
.comment-respond {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--disway-black);
    margin: 0 0 20px;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--disway-black);
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-primary);
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--disway-red);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form p {
    margin-bottom: 15px;
}

.form-submit {
    margin-top: 20px;
}

.comment-form .submit {
    background: var(--disway-red);
    color: var(--disway-white);
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-form .submit:hover {
    background: var(--disway-dark-red);
}

/* ===== Footer ===== */
.disway-footer {
    background: var(--disway-dark);
    color: var(--disway-white);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 10px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--disway-red);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ===== Responsive ===== */

/* Tablet Landscape */
@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }
    
    .featured-main {
        grid-column: span 2;
        height: 300px;
    }
    
    .featured-secondary {
        height: 200px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .disway-sidebar {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .disway-header {
        padding: 12px 0;
    }
    
    .disway-header .disway-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .header-left {
        width: 100%;
        text-align: center;
    }
    
    .header-left .logo-text {
        font-size: 24px;
    }
    
    .header-center {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .header-right {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    .social-icons a {
        width: 28px;
        height: 28px;
    }
    
    .header-date {
        font-size: 11px;
    }
    
    /* Navigation - Scrollable horizontal */
    .disway-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .disway-menu {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: max-content;
    }
    
    .disway-menu li a {
        padding: 12px 14px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    /* Featured Grid */
    .disway-featured {
        padding: 15px 0;
        overflow: hidden;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
        height: auto !important;
        overflow: hidden;
    }
    
    .featured-main {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
        overflow: hidden;
        position: relative;
    }
    
    .featured-secondary {
        height: 160px;
        overflow: hidden;
        position: relative;
    }
    
    .featured-main h2 {
        font-size: 18px;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        overflow: hidden;
    }
    
    .featured-secondary h3 {
        font-size: 12px;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        overflow: hidden;
    }
    
    .featured-overlay {
        padding: 15px;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.85));
        overflow: hidden;
    }
    
    .featured-secondary .featured-overlay {
        padding: 12px;
    }
    
    /* Main Content */
    .disway-main {
        padding: 20px 0;
    }
    
    .terbaru-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .section-title span {
        padding: 5px 12px;
    }
    
    /* Terbaru items - keep side by side but smaller */
    .terbaru-item {
        gap: 12px;
        padding: 15px 0;
    }
    
    .terbaru-content h3 {
        font-size: 14px;
    }
    
    .terbaru-thumb img {
        width: 100px;
        height: 70px;
    }
    
    .terbaru-date {
        font-size: 11px;
    }
    
    /* Sidebar */
    .disway-sidebar {
        padding: 15px;
        margin-top: 20px;
    }
    
    .popular-list li {
        padding: 12px 0;
        gap: 12px;
    }
    
    .popular-num {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .popular-list li a {
        font-size: 13px;
    }
    
    /* Footer */
    .disway-footer {
        padding: 30px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .footer-col h4 {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .footer-col p,
    .footer-col ul li a {
        font-size: 12px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .disway-container {
        padding: 0 10px;
    }
    
    .header-left .logo-text {
        font-size: 20px;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icons a {
        width: 26px;
        height: 26px;
    }
    
    .social-icons a svg {
        width: 14px;
        height: 14px;
    }
    
    .disway-search input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .disway-search button {
        padding: 8px 10px;
    }
    
    /* Navigation */
    .disway-menu li a {
        padding: 10px 10px;
        font-size: 10px;
    }
    
    /* Featured */
    .featured-main {
        height: 200px;
    }
    
    .featured-secondary {
        height: 140px;
    }
    
    .featured-main h2 {
        font-size: 16px;
    }
    
    .featured-category,
    .featured-category a {
        font-size: 10px;
    }
    
    /* Terbaru - Image on top for very small screens */
    .terbaru-item {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .terbaru-thumb {
        width: 100%;
    }
    
    .terbaru-thumb img {
        width: 100%;
        height: 160px;
    }
    
    .terbaru-content h3 {
        font-size: 15px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
}

/* ===== Hide theme's default header/footer/sections when using this template ===== */
body.page-template-template-disway .site-header,
body.page-template-template-disway .main-navigation,
body.page-template-template-disway .site-footer,
body.page-template-template-disway #masthead,
body.page-template-template-disway #colophon,
body.page-template-template-disway .footer-bottom-nav-container,
body.page-template-template-disway .routine-news-topbar,
body.page-template-template-disway .routine-news-social-share,
body.page-template-template-disway .routine-news-flash-news,
body.page-template-template-disway .routine-news-banner-wrapper,
body.page-template-template-disway .routine-news-section,
body.page-template-template-disway .widget-area,
body.page-template-template-disway #secondary,
body.page-template-template-disway .sidebar,
body.page-template-template-disway aside.widget-area,
body.page-template-template-disway .site-branding,
body.page-template-template-disway .primary-navigation,
body.page-template-template-disway .above-footer-widgets,
body.page-template-template-disway .main-widgets-section,
/* Banner section from header.php */
body.page-template-template-disway #routine_news_banner_section,
body.page-template-template-disway .magazine-banner,
body.page-template-template-disway .banner-container-wrapper,
body.page-template-template-disway .section-splitter,
/* Flash news section */
body.page-template-template-disway #routine_news_flash_news_section,
body.page-template-template-disway .flash-news-section,
body.page-template-template-disway .routine-news-flash-news-section,
/* Grid section */
body.page-template-template-disway #routine_news_grid_section,
body.page-template-template-disway .grid-section,
body.page-template-template-disway .routine-news-grid-section,
body.page-template-template-disway .posts-grid-wrapper,
/* Main wrapper and container */
body.page-template-template-disway .routine-news-main-wrapper,
body.page-template-template-disway .routine-news-container-wrapper,
body.page-template-template-disway .section-wrapper:not(.disway-wrapper .section-wrapper),
/* Featured posts from theme */
body.page-template-template-disway .featured-posts-wrapper,
body.page-template-template-disway .main-banner-wrapper,
/* All content not in disway-wrapper */
body.page-template-template-disway #content:not(.disway-wrapper #content),
body.page-template-template-disway .site-main:not(.disway-wrapper .site-main),
body.page-template-template-disway #primary:not(.disway-wrapper #primary) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide any floating social share from the theme */
.page-template-template-disway .addtoany_share_save_container,
.page-template-template-disway .sharedaddy,
.page-template-template-disway .jp-relatedposts {
    display: none !important;
}

/* Force disway-sidebar to behave correctly */
.disway-wrapper .disway-sidebar {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    float: none !important;
    width: 100% !important;
    max-width: 320px !important;
}

/* Ensure main content grid works properly */
.disway-wrapper .main-content {
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
}

@media (max-width: 992px) {
    .disway-wrapper .main-content {
        grid-template-columns: 1fr !important;
    }
    .disway-wrapper .disway-sidebar {
        max-width: 100% !important;
    }
}
