/* =============================================
   LIVE NEWS PORTAL — Modern Redesign
   ============================================= */

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

:root {
    --red:        #e63946;
    --dark:       #0d1117;
    --dark2:      #161b22;
    --gray:       #6c757d;
    --light-gray: #f4f5f7;
    --border:     #e2e8f0;
    --white:      #ffffff;
    --font-main:  'Inter', sans-serif;
    --font-head:  'Playfair Display', serif;
    --radius:     8px;
    --shadow:     0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.14);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background: var(--light-gray);
    color: var(--dark);
    font-size: 15px;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
    background: var(--dark);
    color: #adb5bd;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 2px solid var(--red);
}

.top-bar a { color: #adb5bd; margin-left: 14px; transition: color .2s; }
.top-bar a:hover { color: var(--white); }
.top-bar .top-date { font-weight: 500; letter-spacing: .4px; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand img { height: 55px; }

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--dark) !important;
    padding: 20px 16px !important;
    border-bottom: 3px solid transparent;
    transition: all .2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--red) !important;
    border-bottom-color: var(--red);
}

/* Breaking News Ticker */
.breaking-news-bar {
    background: var(--red);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    overflow: hidden;
}

.breaking-news-bar .label {
    background: var(--dark);
    padding: 2px 14px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: 16px;
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
}

.ticker-text {
    white-space: nowrap;
    display: inline-block;
    animation: ticker 60s linear infinite;
    font-weight: 500;
}


.ticker-text a { color: #fff; margin: 0 30px; }
.ticker-text a:hover { text-decoration: underline; }
.ticker-text:hover {
    animation-play-state: paused;
}

/* NEW — starts immediately visible */
@keyframes ticker {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--red);
    border-radius: 4px;
    display: inline-block;
}

/* =============================================
   NEWS CARDS
   ============================================= */
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.news-card .card-img-wrap {
    position: relative;
    overflow: hidden;
}

.news-card .card-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card .card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.badge-cat {
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    white-space: nowrap;
}

.badge-sub {
    background: #fff3cd;
    color: #856404;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    white-space: nowrap;
}

.news-card .card-date {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 8px;
}

.news-card .card-date i { margin-right: 4px; }

.news-card h5.card-title,
.news-card h2.card-title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 10px;
    flex: 1;
    transition: color .2s;
}

.news-card h5.card-title:hover,
.news-card h2.card-title:hover { color: var(--red); }

.news-card .read-more {
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: auto;
}

.news-card .read-more:hover { text-decoration: underline; }

/* =============================================
   HERO / SLIDER
   ============================================= */
.hero-slider .owl-item .news-card .card-img-wrap img {
    height: 380px;
}

.hero-slider .news-card h5.card-title {
    font-size: 20px;
}

.owl-dots .owl-dot span {
    background: #ccc !important;
    width: 8px !important;
    height: 8px !important;
}

.owl-dots .owl-dot.active span {
    background: var(--red) !important;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.sidebar-widget .widget-head {
    background: var(--dark);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget .widget-head i { color: var(--red); }

.sidebar-widget .widget-body { padding: 14px 16px; }

/* Sidebar search */
.sidebar-search .input-group input {
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 13px;
    padding: 10px 14px;
}

.sidebar-search .input-group input:focus { box-shadow: none; border-color: var(--red); }

.sidebar-search .input-group button {
    background: var(--red);
    border: none;
    color: white;
    padding: 0 16px;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: background .2s;
}

.sidebar-search .input-group button:hover { background: #c0392b; }

/* Sidebar list items */
.sidebar-news-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.sidebar-news-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-news-item .item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    transition: color .2s;
}

.sidebar-news-item .item-title:hover { color: var(--red); }

/* Categories sidebar list */
.cat-list li {
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}

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

.cat-list li a {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color .2s;
}

.cat-list li a:hover { color: var(--red); }
.cat-list li a i { font-size: 11px; color: var(--red); }

/* =============================================
   LEFT CATEGORY COLUMN (index)
   ============================================= */
.cat-column .sidebar-widget .widget-body a {
    display: block;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    transition: color .2s, padding-left .2s;
}

.cat-column .sidebar-widget .widget-body a:hover {
    color: var(--red);
    padding-left: 6px;
}

.cat-column .sidebar-widget .widget-body a:last-child { border-bottom: none; }

/* =============================================
   ADS BANNER
   ============================================= */
.ads-banner {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.ads-banner img {
    width: 100%;
    border-radius: var(--radius);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination .page-link {
    border: 1.5px solid var(--border);
    color: var(--dark);
    font-weight: 600;
    font-size: 13px;
    padding: 7px 14px;
    margin: 0 2px;
    border-radius: var(--radius) !important;
    transition: all .2s;
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    background: #f9f9f9;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.news-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
}

.news-breadcrumb .breadcrumb-item a { color: var(--red); font-size: 13px; }
.news-breadcrumb .breadcrumb-item.active { font-size: 13px; color: var(--gray); }
.news-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--gray); }

/* =============================================
   NEWS DETAIL PAGE
   ============================================= */
.news-detail-header h1 {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.news-detail-header .meta {
    font-size: 13px;
    color: var(--gray);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.news-detail-header .meta i { margin-right: 4px; color: var(--red); }

.news-detail-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.news-detail-img img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.news-detail-body {
    font-size: 16px;
    line-height: 1.9;
    color: #2d3748;
}

/* Social Share */
.share-bar {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-bar span { font-weight: 700; font-size: 13px; }

.share-btn {
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity .2s;
}

.share-btn:hover { opacity: .85; color: white; }
.share-btn.fb  { background: #1877f2; }
.share-btn.tw  { background: #1da1f2; }
.share-btn.wa  { background: #25d366; }
.share-btn.li  { background: #0077b5; }

/* Comments */
.comment-card {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
}

.comment-card .comment-author {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.comment-card .comment-date {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 8px;
}

.comment-form .form-control {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    padding: 10px 14px;
    transition: border-color .2s;
}

.comment-form .form-control:focus {
    border-color: var(--red);
    box-shadow: none;
}

.btn-submit {
    background: var(--red);
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    transition: background .2s;
}

.btn-submit:hover { background: #c0392b; color: white; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--dark);
    color: #adb5bd;
    padding: 50px 0 0;
    margin-top: 50px;
}

.site-footer .footer-brand img { height: 55px; margin-bottom: 14px; }

.site-footer p {
    font-size: 13px;
    line-height: 1.8;
}

.site-footer h6 {
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}

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

.site-footer ul li {
    margin-bottom: 8px;
    font-size: 13px;
}

.site-footer ul li a {
    color: #adb5bd;
    transition: color .2s, padding-left .2s;
}

.site-footer ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    background: #0a0e14;
    text-align: center;
    padding: 14px 0;
    margin-top: 40px;
    font-size: 12px;
    color: #6c757d;
}

.footer-bottom a { color: var(--red); }

/* =============================================
   ABOUT / CONTACT PAGES
   ============================================= */
.page-hero {
    background: var(--dark);
    color: white;
    padding: 50px 0 40px;
    margin-bottom: 40px;
}

.page-hero h1 {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 700;
}

.page-content-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
    font-size: 15px;
    line-height: 1.9;
}

/* =============================================
   SEARCH PAGE
   ============================================= */
.search-header {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    margin-bottom: 24px;
    font-size: 15px;
}

.search-header strong { color: var(--red); }

/* =============================================
   CATEGORY PAGE HERO
   ============================================= */
.cat-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1f2e 100%);
    color: white;
    padding: 28px 0;
    margin-bottom: 28px;
    border-bottom: 3px solid var(--red);
}

.cat-hero h1 {
    font-family: var(--font-head);
    font-size: 28px;
    margin: 0;
}

/* =============================================
   UTILITY
   ============================================= */
.mt-page { margin-top: 90px; }

.text-red { color: var(--red) !important; }

.divider {
    border: none;
    border-top: 2px solid var(--border);
    margin: 28px 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .navbar-nav .nav-link { padding: 12px 16px !important; border-bottom: none; }
    .hero-slider .news-card .card-img-wrap img { height: 260px; }
    .news-detail-header h1 { font-size: 24px; }
}

@media (max-width: 767px) {
    .top-bar { display: none; }
    .news-card .card-img-wrap img { height: 180px; }
    .hero-slider .news-card .card-img-wrap img { height: 200px; }
    .page-hero h1 { font-size: 26px; }
}

/* Main container alignment */
#google_translate_element {
    display: flex;
    justify-content: center;  /* center in header */
    padding: 12px 0;
}

/* Turn default widget into pill button */
#google_translate_element .goog-te-gadget-simple {
    background: #0d1117 !important;
    border: 1px solid #e63946 !important;
    border-radius: 24px !important;
    padding: 6px 16px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Text inside pill */
#google_translate_element .goog-te-gadget-simple span {
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* Dropdown arrow */
#google_translate_element .goog-te-gadget-simple img {
    display: inline-block;
    margin-left: 6px;
}

/* Hide default “Google Translate” label below */
.goog-te-gadget {
    font-size: 0;              /* hide default text */
    color: transparent !important;
}

/* Keep pill text visible even if parent is 0 */
.goog-te-gadget .goog-te-gadget-simple span {
    font-size: 13px !important;
}

/* Remove top frame bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body { top: 0 !important; }

/* Hide Google top translation bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* Prevent body from being pushed down */
body {
    top: 0 !important;
}

