
:root {
    --primary: #1976d2;
    --primary-light: #eaf2ff;
    --secondary: #FF4E02;
    --success: #00b894;
    --success-light: #eafaf4;
    --warning-bg: #fd986d;
    --warning-border: #ff9e75;
    --danger: #dc3545;
    --featured-shadow: 0 3px 16px 0 rgba(255, 152, 0, 0.10);
    --editorial-shadow: 0 2px 11px 0 rgba(103, 58, 183, 0.07);
    --trend-border: #e6f4ef;
    --trend-shadow: 0 4px 20px rgba(0, 184, 148, 0.10);
    --editorial: #673ab7;
    --featured: #FF4E02;
    --dark: #232323;
    --muted: #616161;
    --light-bg: #f8f9fa;
    --card-bg: #fff;
}

body {
    font-family: 'Baloo Da 2', cursive;
}

a {
    text-decoration: none;
    color: inherit;
}

.news-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    transition: .2s;
}

.news-card:hover {
    transform: scale(1.01);
}

.sidebar-social {
    position: fixed;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 1030;
}

.sidebar-social a {
    display: block;
    margin-bottom: .75rem;
    font-size: 1.6rem;
    color: var(--dark);
}

[data-bs-theme="dark"] .sidebar-social a {
    color: #fff;
}

.dark-mode-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1030;
}

.timestamp {
    font-size: .92rem;
    color: #6c757d;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary);
    padding-left: 10px;
    color: var(--dark);
    letter-spacing: 0.01em;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-thumbnail img {
    width: 100%;
    display: block;
}

.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    opacity: .9;
    color: #fff;
    font-size: 3rem;
    transition: .2s;
}

.video-thumbnail:hover .video-play {
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--light-bg);
    padding: 3rem 0;
    border-top: 1px solid #dee2e6;
    font-size: 1.08rem;
    color: #6c757d;
    letter-spacing: 0.01em;
}

.footer h5, .footer h6 {
    font-size: 1.13rem;
    font-weight: 700;
    border-left: 4px solid var(--secondary);
    padding-left: 10px;
}

[data-bs-theme="dark"] .footer {
    background: #1e1e1e;
    color: #ccc;
}

[data-bs-theme="dark"] .footer a {
    color: #fff;
}

.footer a {
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
}

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

.footer .small, .footer small {
    font-size: 0.98em;
}

/* Breaking News */
.breaking-news-bar {
    background: var(--warning-bg);
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--warning-border);
    border-bottom: 1px solid var(--warning-border);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
}

.breaking-label {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--danger);
    font-size: 1rem;
}

.breaking-scroll a {
    color: var(--dark);
    margin-right: 1.5rem;
    text-decoration: none;
}

.breaking-scroll a:hover {
    text-decoration: underline;
}

.breaking-news-section {
    margin-top: 70px !important; /* or whatever your navbar height is */
}

.blinking-dot {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

.featured-grid .card-title a {
    color: var(--dark);
}

[data-bs-theme="dark"] .featured-grid .card-title a {
    color: #fff !important;
}

/* Header Navbar */
.navbar-nav .nav-link {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
    transition: color .2s, background .2s;
    padding: .5rem 1rem;
    border-radius: .4rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff;
    background: var(--secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .07);
}

.navbar {
    font-family: 'Baloo Da 2', cursive;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, .03);
}

/* Dropdown */
.dropdown-hover:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    margin-top: 0.5rem;
    border-radius: 0.6rem;
    border: none;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .09);
}

.dropdown-item:hover {
    background-color: #ffe082;
    color: var(--dark);
}

@media (max-width: 767.98px) {
    .dropdown-hover:hover .dropdown-menu {
        display: none;
    }
}

/* Navbar - Responsive left-align on mobile */
@media (max-width: 767.98px) {
    .navbar-collapse {
        text-align: left !important;
    }

    .navbar-nav {
        align-items: flex-start !important;
        width: 100%;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        width: 100%;
        text-align: left;
    }
}

/* Cards: Latest News Grid (Blue) */
.latest-news-card {
    box-shadow: 0 2px 14px var(--primary-light), 0 1.5px 5px rgba(0, 0, 0, 0.03);
    border: none;
    border-radius: 1.3rem;
    overflow: hidden;
    background: var(--card-bg);
    position: relative;
}

.latest-news-card:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.11), 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.latest-news-card .news-thumb img {
    transition: transform .22s;
}

.latest-news-card:hover .news-thumb img {
    transform: scale(1.04);
}

.latest-news-card .badge {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

/* Cards: Feature Highlight Grid (Orange) */
.feature-highlight-card {
    border: none;
    border-radius: 1.3rem;
    box-shadow: var(--featured-shadow);
    transition: box-shadow .19s, transform .19s;
}

.feature-highlight-card:hover {
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.03);
    transform: scale(1.015);
}

/* Cards: Editorial Picks Grid (Purple) */
.editorial-card {
    border: none;
    border-radius: 1.15rem;
    box-shadow: var(--editorial-shadow);
    transition: box-shadow .19s, transform .19s;
    min-height: 340px;
}

.editorial-card:hover {
    box-shadow: 0 6px 22px rgba(103, 58, 183, 0.13), 0 1.5px 7px rgba(0, 0, 0, 0.03);
    transform: translateY(-3px) scale(1.01);
}

.editorial-masonry .col {
    display: flex;
}

/* Cards: Trending Now (Green) */
.trend-card {
    border: 2px solid var(--trend-border) !important;
    border-radius: 1.2rem;
    background: var(--card-bg);
    transition: border-color .16s, box-shadow .16s;
}

.trend-card:hover {
    border-color: var(--success) !important;
    box-shadow: var(--trend-shadow);
}

.trend-avatar {
    background: var(--success-light) !important;
    color: var(--success) !important;
    font-weight: 600;
}

/* Blinking Dot */
.blinking-dot {
    animation: blink 1s infinite;
}

/* Misc fixes */
a {
    color: inherit;
    transition: color .17s;
}

a:hover, a:focus {
    color: var(--primary);
    text-decoration: none;
}

.editorial-card .card-title {
    font-size: 1.07rem;
    font-weight: 700;
    margin-bottom: .15rem;
}

.editorial-card .card-body {
    padding: 1rem 1.1rem 1rem 1.1rem;
}

.editorial-card .timestamp {
    font-size: .95rem;
    color: #888;
    margin-top: auto;
}

.card-img, .card-img-top {
    height: 200px;
    object-fit: cover;
}
