/* ============================================
   WM WORLD NEWS PORTAL - Main Stylesheet
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --yellow: #FFC300;
    --yellow-dark: #E6A800;
    --black: #0A0A0A;
    --dark: #111111;
    --dark2: #1A1A1A;
    --dark3: #222222;
    --gray: #888888;
    --light-gray: #f4f4f4;
    --white: #FFFFFF;
    --border: rgba(255,195,0,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--light-gray); color: var(--dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* TOP BAR */
.top-bar { background: var(--black); color: var(--gray); font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--dark2); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .date { color: var(--yellow); font-weight: 600; }
.top-bar .socials a { color: var(--gray); margin-left: 12px; font-size: 13px; transition: color 0.2s; }
.top-bar .socials a:hover { color: var(--yellow); }

/* HEADER */
.main-header { background: var(--black); padding: 14px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid var(--yellow); box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 46px; width: auto; }
.logo-text .wm { font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--yellow); letter-spacing: 3px; display: block; line-height: 1; }
.logo-text .tagline { font-size: 10px; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; }
.main-nav a { color: var(--white); font-weight: 600; font-size: 13px; padding: 8px 13px; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.2s; border-radius: 4px; }
.main-nav a:hover, .main-nav a.active { color: var(--yellow); background: rgba(255,195,0,0.1); }
.hamburger { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; padding: 8px; }

/* TICKER */
.ticker-wrap { background: var(--yellow); padding: 9px 0; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; }
.ticker-label { background: var(--black); color: var(--yellow); font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 2px; padding: 5px 16px; white-space: nowrap; flex-shrink: 0; }
.ticker-content { overflow: hidden; flex: 1; padding: 0 16px; }
.ticker-text { display: flex; gap: 60px; animation: ticker-scroll 40s linear infinite; white-space: nowrap; }
.ticker-text span { font-weight: 700; font-size: 13px; color: var(--black); flex-shrink: 0; }
.ticker-text span::before { content: '◆ '; opacity: 0.4; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* SECTION HEADER */
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--yellow); }
.section-header h2 { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px; color: var(--dark); }
.section-header .dot { width: 10px; height: 10px; background: var(--yellow); border-radius: 50%; flex-shrink: 0; }

/* CAT BADGE */
.cat-badge { background: var(--yellow); color: var(--black); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; padding: 3px 8px; display: inline-block; }

/* HERO */
.hero { padding: 24px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 320px; grid-template-rows: 1fr 1fr; gap: 4px; border-radius: 10px; overflow: hidden; height: 480px; }
.hero-main { grid-row: 1 / 3; position: relative; overflow: hidden; }
.hero-main img, .hero-side-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.hero-main:hover img { transform: scale(1.03); }
.hero-main .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.05) 60%); }
.hero-main .content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; }
.hero-main h1 { font-family: 'Playfair Display', serif; font-size: 26px; line-height: 1.3; color: var(--white); margin: 8px 0 8px; }
.hero-main .meta { font-size: 12px; color: rgba(255,255,255,0.55); }
.hero-side { display: flex; flex-direction: column; gap: 4px; }
.hero-side-card { position: relative; overflow: hidden; flex: 1; }
.hero-side-card:hover img { transform: scale(1.05); }
.hero-side-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.05) 60%); }
.hero-side-card .content { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; }
.hero-side-card h3 { font-family: 'Playfair Display', serif; font-size: 14px; line-height: 1.3; color: var(--white); margin-top: 6px; }

/* LAYOUT */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 28px 0; }

/* ARTICLE CARDS */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 28px; }
.article-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.07); transition: transform 0.25s, box-shadow 0.25s; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.article-card .thumb { height: 175px; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .thumb img { transform: scale(1.06); }
.article-card .card-body { padding: 14px; }
.article-card h3 { font-family: 'Playfair Display', serif; font-size: 15px; line-height: 1.4; color: var(--dark); margin: 8px 0 6px; }
.article-card h3 a:hover { color: var(--yellow-dark); }
.article-card .meta { font-size: 11px; color: var(--gray); }
.article-card .excerpt { font-size: 12px; color: #555; margin-top: 6px; line-height: 1.5; }

/* LIST ARTICLES */
.articles-list { display: flex; flex-direction: column; }
.list-article { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eee; align-items: flex-start; }
.list-article:last-child { border-bottom: none; }
.list-article .thumb { width: 90px; height: 65px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.list-article .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-article h4 { font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--dark); margin-bottom: 4px; }
.list-article h4 a:hover { color: var(--yellow-dark); }
.list-article .meta { font-size: 11px; color: var(--gray); }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.sidebar-widget { background: var(--white); border-radius: 10px; padding: 18px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.widget-title { font-family: 'Bebas Neue', sans-serif; font-size: 19px; letter-spacing: 2px; color: var(--dark); padding-bottom: 10px; border-bottom: 2px solid var(--yellow); margin-bottom: 14px; }
.trending-list { display: flex; flex-direction: column; gap: 13px; }
.trending-item { display: flex; gap: 10px; align-items: flex-start; }
.trending-item .num { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: var(--yellow); line-height: 1; flex-shrink: 0; width: 24px; text-align: center; }
.trending-item h5 { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--dark); }
.trending-item h5 a:hover { color: var(--yellow-dark); }
.trending-item .meta { font-size: 11px; color: var(--gray); margin-top: 2px; }
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 6px; font-weight: 600; font-size: 14px; color: var(--dark); transition: all 0.2s; border-left: 3px solid transparent; }
.cat-list a:hover { background: var(--light-gray); border-left-color: var(--yellow); padding-left: 14px; }
.cat-list a .count { background: var(--yellow); color: var(--black); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* VIDEOS */
.videos-section { padding: 0 0 28px; }
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.07); transition: transform 0.25s; }
.video-card:hover { transform: translateY(-4px); }
.video-thumb { position: relative; height: 175px; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 50px; height: 50px; background: var(--yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--black); transition: transform 0.2s, background 0.2s; }
.video-card:hover .play-btn { transform: translate(-50%,-50%) scale(1.1); background: var(--white); }
.video-card .card-body { padding: 13px; }
.video-card h3 { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--dark); margin-bottom: 4px; }
.video-card .meta { font-size: 11px; color: var(--gray); }

/* ARTICLE PAGE */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 28px 0; }
.article-body { background: var(--white); border-radius: 10px; padding: 28px; }
.article-hero { border-radius: 8px; overflow: hidden; margin-bottom: 22px; max-height: 460px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-cat { background: var(--yellow); color: var(--black); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; padding: 4px 12px; display: inline-block; margin-bottom: 10px; }
.article-title { font-family: 'Playfair Display', serif; font-size: 30px; line-height: 1.3; color: var(--dark); margin-bottom: 14px; }
.article-meta { display: flex; gap: 18px; font-size: 12px; color: var(--gray); padding: 12px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 22px; flex-wrap: wrap; }
.article-content { font-size: 16px; line-height: 1.85; color: #333; }
.article-content h2, .article-content h3 { font-family: 'Playfair Display', serif; margin: 22px 0 10px; color: var(--dark); }
.article-content p { margin-bottom: 16px; }
.article-content img { border-radius: 8px; margin: 18px 0; }
.article-content blockquote { border-left: 4px solid var(--yellow); background: #fffdf0; padding: 14px 18px; margin: 18px 0; font-style: italic; color: #444; }

/* CATEGORY HEADER */
.cat-header { background: var(--black); padding: 24px 0; }
.cat-header h1 { font-family: 'Bebas Neue', sans-serif; font-size: 40px; letter-spacing: 4px; color: var(--yellow); }
.cat-header p { color: var(--gray); font-size: 13px; margin-top: 4px; }

/* FOOTER */
.main-footer { background: var(--black); color: var(--white); padding: 40px 0 0; margin-top: 40px; border-top: 3px solid var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--dark2); }
.footer-logo .wm-text { font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: var(--yellow); letter-spacing: 3px; display: block; }
.footer-about { font-size: 13px; color: var(--gray); line-height: 1.7; margin-top: 8px; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a { width: 34px; height: 34px; background: var(--dark2); border: 1px solid var(--dark3); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 15px; transition: all 0.2s; }
.footer-social a:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.footer-col h4 { font-family: 'Bebas Neue', sans-serif; font-size: 17px; letter-spacing: 2px; color: var(--yellow); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--gray); transition: color 0.2s; display: flex; align-items: center; gap: 5px; }
.footer-col ul li a::before { content: '›'; color: var(--yellow); }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom { text-align: center; padding: 14px 0; font-size: 12px; color: var(--gray); }
.footer-bottom span { color: var(--yellow); }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 22px 0; }
.pagination a, .pagination span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-weight: 700; font-size: 14px; border: 2px solid #ddd; color: var(--dark); transition: all 0.2s; }
.pagination a:hover, .pagination .active { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

/* NO IMAGE */
.no-img { width: 100%; height: 100%; background: linear-gradient(135deg, var(--dark2), var(--dark3)); display: flex; align-items: center; justify-content: center; color: var(--yellow); font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 2px; }

/* MOBILE MENU */
.mobile-menu { display: none; background: var(--dark2); border-bottom: 2px solid var(--yellow); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; color: var(--white); font-weight: 600; font-size: 14px; padding: 11px 20px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--dark3); }
.mobile-menu a:hover { background: rgba(255,195,0,0.1); color: var(--yellow); }

/* RELATED */
.related-section { margin-top: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.related-card { background: var(--light-gray); border-radius: 8px; overflow: hidden; }
.related-card .thumb { height: 120px; overflow: hidden; }
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card .card-body { padding: 11px; }
.related-card h5 { font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--dark); }
.related-card h5 a:hover { color: var(--yellow-dark); }

/* ALERT/MESSAGE */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.alert-error { background: #ffebee; color: #c62828; border-left: 4px solid #f44336; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .content-layout, .article-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .hero-grid { grid-template-columns: 1fr; height: auto; }
    .hero-main { min-height: 360px; }
    .hero-side { display: none; }
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .hamburger { display: block; }
    .articles-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .videos-grid { grid-template-columns: 1fr; }
    .article-title { font-size: 22px; }
    .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .article-body { padding: 16px; }
}
