/* NewsSite Frontend Styles — Modern, Attractive & Mobile Responsive */

:root {
    --primary-color: #d90429;
    --primary-dark: #a8021e;
    --secondary-color: #6c757d;
    --dark-color: #1a1a2e;
    --text-color: #2d3436;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.25s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background: var(--light-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* Top Bar */
.top-bar {
    background: var(--dark-color);
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.top-bar a:hover { color: white; }
.lang-switcher .dropdown-toggle { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.lang-switcher .dropdown-toggle:hover { color: white; }
.lang-switcher .dropdown-toggle::after { vertical-align: middle; }
.mobile-lang-switcher { background: #1a1a2e; }
.mobile-lang-switcher .btn-outline-light { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.3); }
.mobile-lang-switcher .btn-outline-light.active { background: var(--primary-color); border-color: var(--primary-color); color: white; }

/* Move Google Translate widget off-screen; hide banner and tooltips */
#google_translate_element { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt, #goog-gt-vt { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }

/* Site Header */
.site-header {
    background: white;
    padding: 0.55rem 0 !important;
    border-bottom: 2px solid var(--primary-color);
}
.site-logo-name {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.site-tagline {
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 2px;
}
.site-header-ad { max-width: 320px; }
.site-header-ad img { max-height: 52px; width: auto; }

/* Main Nav */
.main-nav {
    background: var(--primary-color);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.main-nav .navbar-nav .nav-link {
    color: rgba(255,255,255,0.95);
    padding: 0.95rem 1.1rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
    background: rgba(0,0,0,0.08);
    color: white;
    border-bottom-color: white;
}
.main-nav .dropdown-menu {
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    margin-top: 0;
}
.main-nav .dropdown-item {
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    color: var(--dark-color);
}
.main-nav .dropdown-item:hover,
.main-nav .dropdown-item.active {
    background: var(--light-bg);
    color: var(--primary-color);
}
.main-nav .navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: white;
}
.main-nav .navbar-toggler:focus { box-shadow: none; }
.main-nav .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* Nav search icon button */
.nav-search-icon-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.nav-search-icon-btn:hover { background: rgba(255,255,255,0.28); }

/* Floating search overlay */
.search-overlay-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1059;
}
.search-overlay-backdrop.open { display: block; }
.search-overlay {
    display: none;
    position: fixed;
    top: 56px;
    right: 1rem;
    left: auto;
    width: 420px;
    max-width: calc(100vw - 2rem);
    z-index: 1060;
    animation: searchSlideDown 0.2s ease;
}
.search-overlay.open { display: block; }
@keyframes searchSlideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.search-overlay-inner {
    width: 100%;
}
.search-overlay-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 0.4rem 0.75rem 0.4rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    gap: 0.5rem;
}
.search-overlay-icon { color: var(--primary-color); font-size: 1rem; flex-shrink: 0; }
.search-overlay-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    background: transparent;
    color: var(--dark-color);
    padding: 0.35rem 0;
}
.search-overlay-input::placeholder { color: #aaa; }
.search-overlay-close {
    background: none; border: none;
    color: #888; font-size: 1.1rem;
    cursor: pointer; padding: 0.2rem 0.4rem;
    line-height: 1;
}
.search-overlay-close:hover { color: var(--primary-color); }
.search-overlay-results {
    background: white;
    border-radius: 12px;
    margin-top: 0.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--dark-color);
    transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #fef2f2; }
.search-result-thumb {
    width: 54px; height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #eee;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-title { font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.search-result-meta { font-size: 0.78rem; color: #888; margin-top: 2px; }
.search-result-more {
    display: block; text-align: center;
    padding: 0.65rem;
    font-size: 0.88rem; color: var(--primary-color);
    font-weight: 600;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
    background: #fafafa;
}
.search-result-more:hover { background: #fef2f2; }
.search-result-empty { padding: 1.5rem; text-align: center; color: #999; font-size: 0.9rem; }
.search-result-loading { padding: 1rem; text-align: center; color: #aaa; }

/* keep old search-form stub so nothing breaks */
.search-form .btn {
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    background: white;
    color: var(--primary-color);
    border: none;
}
.search-form .btn:hover { background: var(--dark-color); color: white; }

/* Breaking Bar */
.breaking-bar {
    background: linear-gradient(90deg, #fff8e1, #fff);
    border-bottom: 1px solid #ffe082;
    overflow: hidden;
}
.breaking-label {
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}
.breaking-ticker {
    display: flex;
    gap: 3rem;
    animation: ticker 18s linear infinite;
    white-space: nowrap;
    padding: 0.25rem 0;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.breaking-item {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9rem;
}
.breaking-item:hover { color: var(--primary-color); }

/* Hero Section */
.hero-section { margin-bottom: 2rem; }
.hero-main, .hero-side {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}
.hero-main { height: 420px; }
.hero-side { height: 201px; }
.hero-main img, .hero-side img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-main:hover img, .hero-side:hover img { transform: scale(1.04); }
.hero-placeholder {
    width: 100%; height: 100%;
    overflow: hidden;
    display: block;
}
.hero-placeholder img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4) 50%, transparent);
    color: white;
    padding: 1.5rem;
}
.hero-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-excerpt {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 0;
}
.hero-side .hero-overlay { padding: 1rem; }
.hero-side h6 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

/* Section Blocks */
.section-block {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}
.section-title {
    color: var(--dark-color);
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-header .btn {
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
}

/* News Cards */
.news-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.news-image-link {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
}
.news-image-link img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .news-image-link img { transform: scale(1.08); }
.card-video-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}
/* Card YouTube click-to-play */
.card-yt-player { position: relative; overflow: hidden; background: #000; display: block; }
.card-yt-player .yt-thumb-wrap { position: relative; width: 100%; cursor: pointer; }
.card-yt-player .yt-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s; }
.card-yt-player .yt-thumb-wrap:hover img { opacity: 0.85; }
.yt-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(255,0,0,0.9);
    border: 3px solid white;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    padding-left: 4px;
}
.yt-thumb-wrap:hover .yt-play-btn { transform: translate(-50%, -50%) scale(1.1); background: rgba(200,0,0,1); }
.card-yt-player .yt-thumb-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}
.news-image-placeholder {
    width: 100%;
    min-height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}
.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.placeholder-article {
    max-height: 420px;
    object-fit: cover;
}
.placeholder-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.breaking-badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}
.news-card-body { padding: 1.25rem; }
.news-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.news-category:hover { color: var(--primary-dark); }
.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.35;
}
.news-title a { color: var(--dark-color); }
.news-title a:hover { color: var(--primary-color); }
.news-excerpt {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--secondary-color);
    font-weight: 500;
}
.news-meta i { color: var(--primary-color); }

/* Widgets */
.widget {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    color: var(--dark-color);
}

/* Trending */
.trending-list { list-style: none; padding: 0; margin: 0; }
.trending-list li {
    padding: 0.9rem 0 0.9rem 50px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
.trending-list li:last-child { border-bottom: none; }
.trending-number {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: white;
}
.trending-list a {
    color: var(--dark-color);
    font-weight: 600;
    display: block;
    line-height: 1.4;
}
.trending-list a:hover { color: var(--primary-color); }
.trending-list small { color: var(--secondary-color); font-size: 0.75rem; }

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-link {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}
.tag-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Category / State Header */
.category-header {
    background: var(--card-bg);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.category-header h2 {
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}
.category-header p { color: var(--secondary-color); margin: 0; }

/* Subcategory Nav */
.subcategory-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.subcategory-nav .btn {
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Article Page */
.news-article {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.25;
    margin-bottom: 1rem;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
}
.article-meta i { color: var(--primary-color); margin-right: 0.25rem; }
.article-meta a { color: var(--secondary-color); }
.article-meta a:hover { color: var(--primary-color); }
.article-summary {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}
.article-video {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.yt-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}
.yt-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}
.yt-thumb-wrap:hover .yt-thumb-img { transform: scale(1.03); opacity: 0.85; }
.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: transform 0.2s ease;
    z-index: 2;
}
.yt-play-btn svg { width: 68px; height: 48px; }
.yt-thumb-wrap:hover .yt-play-btn { transform: translate(-50%, -50%) scale(1.12); }
.yt-thumb-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.article-image {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.article-image img { width: 100%; display: block; }
.article-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-color);
}
.article-content p { margin-bottom: 1.25rem; }
.article-content h2, .article-content h3 { margin-top: 1.75rem; margin-bottom: 1rem; font-weight: 700; }
.article-content img {
    max-width: 100%; height: auto;
    border-radius: var(--border-radius);
    margin: 1.25rem 0;
    box-shadow: var(--shadow-sm);
}
.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.25rem;
    color: var(--secondary-color);
    font-style: italic;
    margin: 1.5rem 0;
}
.article-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.article-tags .badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    background: var(--light-bg);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}
.article-tags .badge:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.social-share > span {
    font-weight: 700;
    color: var(--dark-color);
    margin-right: 0.5rem;
}
.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
}
.social-share a:hover { transform: translateY(-2px); opacity: 1; }
.social-share .facebook { background: #1877f2; }
.social-share .twitter { background: #1da1f2; }
.social-share .whatsapp { background: #25d366; }
.social-share .linkedin { background: #0a66c2; }
.social-share .email { background: #6c757d; }

/* Ad Slots */
.ad-slot {
    text-align: center;
    padding: 0.75rem;
    background: var(--light-bg);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}
.ad-slot img { max-width: 100%; height: auto; border-radius: 6px; }
.ad-slot.sidebar img { width: 100%; }
.ad-slot p { margin: 0; font-size: 0.8rem; color: var(--secondary-color); }

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: rgba(255,255,255,0.85);
    padding: 4rem 0 1.5rem;
    margin-top: 3rem;
}
.site-footer h4, .site-footer h6 { color: white; }
.site-footer p { color: rgba(255,255,255,0.75); }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: white; }
.social-links { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social-links a {
    display: inline-flex;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { display: inline-block; }
.footer-links a:hover { padding-left: 4px; }

/* Pagination */
.pagination { gap: 0.4rem; }
.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.page-link {
    color: var(--primary-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}
.page-link:hover {
    color: var(--primary-dark);
    background: var(--light-bg);
    border-color: var(--border-color);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary { font-weight: 600; }
.btn-outline-primary:hover { background: var(--primary-color); color: white; }

/* Alerts */
.alert { border-radius: var(--border-radius); border: none; }

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .site-header { padding: 1rem 0; }
    .site-logo h1 { font-size: 1.85rem; }
    .main-nav .navbar-collapse {
        background: var(--primary-dark);
        padding: 0.75rem 1rem;
        border-radius: 0 0 8px 8px;
        margin-top: 0.5rem;
    }
    .main-nav .navbar-nav .nav-link {
        padding: 0.8rem 0.75rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .search-form { margin-top: 0.75rem; }
    .search-form .form-control { width: 100%; }
    .hero-main { height: 320px; }
    .hero-side { height: 160px; }
    .hero-title { font-size: 1.5rem; }
    .article-title { font-size: 1.75rem; }
    .news-article { padding: 1.5rem; }
}

@media (max-width: 767.98px) {
    .site-logo h1 { font-size: 1.6rem; }
    .site-tagline { font-size: 0.78rem; }
    .top-bar .text-md-end { text-align: center !important; margin-top: 0.35rem; }
    .breaking-ticker { animation: ticker 20s linear infinite; }
    .breaking-item { font-size: 0.85rem; }
    .hero-main { height: 260px; }
    .hero-side { height: 180px; }
    .hero-title { font-size: 1.25rem; }
    .hero-excerpt { display: none; }
    .section-block { padding: 1.25rem; }
    .section-title { font-size: 1.1rem; }
    .news-image-link { height: 180px; }
    .news-title { font-size: 1rem; }
    .article-title { font-size: 1.45rem; }
    .news-article { padding: 1.25rem; }
    .article-content { font-size: 1rem; }
    .category-header { padding: 1.5rem 0; }
    .site-footer { padding: 2.5rem 0 1rem; }
}

@media (max-width: 575.98px) {
    .site-logo h1 { font-size: 1.4rem; }
    .hero-main { height: 220px; }
    .hero-overlay { padding: 1rem; }
    .hero-title { font-size: 1.1rem; }
    .news-card-body { padding: 1rem; }
    .news-meta { gap: 0.75rem; }
    .social-share a { width: 34px; height: 34px; }
}

/* ======================================
   MOBILE TOP HEADER
====================================== */
.mobile-top-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mobile-logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    letter-spacing: -0.3px;
}
.mobile-logo img { display: block; }
.mobile-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    outline: none;
}
.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ======================================
   MOBILE NAV OVERLAY & DRAWER
====================================== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1055;
    overflow-y: auto;
    transition: left 0.28s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}
.mobile-nav-drawer.open { left: 0; }
.mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-bg);
}
.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0 4px;
}
.mobile-search-form {
    display: flex;
    margin: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: calc(100% - 2rem);
    max-width: 100%;
    box-sizing: border-box;
}
.mobile-search-form input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: none;
    outline: none;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    background: white;
    -webkit-appearance: none;
    appearance: none;
}
.mobile-search-form button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0 1rem;
    min-width: 46px;
    min-height: 44px;
    cursor: pointer;
    font-size: 1rem;
}
.mobile-search-form button:active {
    background: var(--dark-color);
}
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    flex: 1;
}
.mobile-nav-list li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}
.mobile-nav-list li a:hover { color: var(--primary-color); background: var(--light-bg); }
.mobile-nav-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--light-bg);
}
.mobile-nav-sub li a {
    padding: 0.6rem 1.25rem 0.6rem 2.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--secondary-color);
}
.mobile-nav-section {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav-social {
    display: flex;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-bg);
}
.mobile-nav-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
}

/* ======================================
   MOBILE CATEGORY TAB STRIP
====================================== */
.mobile-cat-strip {
    display: flex;
    overflow-x: auto;
    gap: 0;
    background: white;
    border-bottom: 2px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-cat-strip::-webkit-scrollbar { display: none; }
.mobile-cat-tab {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.mobile-cat-tab:hover,
.mobile-cat-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ======================================
   MOBILE BODY OFFSET FOR STICKY HEADER
====================================== */
@media (max-width: 991.98px) {
    body { padding-top: 0; }
    .site-main .container { padding-top: 0.75rem !important; }
    .hero-main { height: 240px; }
    .hero-side { height: 150px; }
    .hero-title { font-size: 1.2rem; }
    .article-title { font-size: 1.5rem; }
    .news-article { padding: 1.25rem; }
    .section-block { padding: 1rem; margin-bottom: 1rem; }
    .widget { padding: 1rem; margin-bottom: 1rem; }
}

@media (max-width: 767.98px) {
    /* News cards - full width horizontal on mobile */
    .news-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        height: auto;
    }
    .news-image-link {
        width: 110px;
        min-width: 110px;
        height: auto;
        min-height: 90px;
        flex-shrink: 0;
        border-radius: var(--border-radius) 0 0 var(--border-radius);
    }
    .news-card-body {
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .news-title { font-size: 0.9rem; margin-bottom: 0.35rem; }
    .news-excerpt { display: none; }
    .news-meta { font-size: 0.72rem; gap: 0.5rem; }
    .news-category { font-size: 0.7rem; margin-bottom: 0.25rem; }

    /* Article page */
    .article-title { font-size: 1.3rem; line-height: 1.3; }
    .article-summary { font-size: 0.95rem; padding: 0.85rem 1rem; }
    .article-content { font-size: 0.95rem; line-height: 1.75; }
    .article-meta { font-size: 0.8rem; gap: 0.6rem; }
    .social-share a { width: 34px; height: 34px; }

    /* Hero */
    .hero-main { height: 200px; border-radius: 8px; }
    .hero-side { height: 130px; border-radius: 8px; }
    .hero-title { font-size: 1rem; }
    .hero-excerpt { display: none; }
    .hero-overlay { padding: 0.75rem; }

    /* Section */
    .section-block { padding: 0.9rem; border-radius: 8px; margin-bottom: 0.75rem; }
    .section-title { font-size: 1rem; }
    .section-header { margin-bottom: 0.75rem; padding-bottom: 0.5rem; }

    /* Breaking bar */
    .breaking-bar { font-size: 0.8rem; }
    .breaking-label { font-size: 0.72rem; padding: 0.3rem 0.75rem; }

    /* Footer */
    .site-footer { padding: 2rem 0 1rem; }
    .site-footer .col-lg-4 { margin-bottom: 1.5rem; }
}

@media (max-width: 575.98px) {
    .news-image-link { width: 90px; min-width: 90px; min-height: 80px; }
    .news-title { font-size: 0.85rem; }
    .news-card-body { padding: 0.6rem; }
    .article-title { font-size: 1.15rem; }
    .hero-main { height: 180px; }
    .hero-title { font-size: 0.9rem; }
}

/* Mobile Bottom Menu */
.mobile-bottom-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--dark-color);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
}
.mobile-bottom-menu .menu-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}
.mobile-bottom-menu .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    font-size: 0.65rem;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    flex: 1;
    min-width: 0;
    transition: var(--transition);
}
.mobile-bottom-menu .menu-item i {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.mobile-bottom-menu .menu-item:hover,
.mobile-bottom-menu .menu-item.active {
    color: #ffffff;
}
@media (max-width: 767.98px) {
    .mobile-bottom-menu { display: block; }
    body { padding-bottom: 65px; }
}

/* Header padding sizes (advanced editor) */
.header-padding-small { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.header-padding-medium { padding-top: 1rem; padding-bottom: 1rem; }
.header-padding-large { padding-top: 1.75rem; padding-bottom: 1.75rem; }

/* Back-to-top button */
.btn-back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1030;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}
.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.btn-back-to-top:hover {
    background: var(--primary-dark);
}
@media (max-width: 767.98px) {
    .btn-back-to-top {
        bottom: 4.5rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

