:root {
    --primary-color: #d32f2f;
    /* Red standard for news */
    --secondary-color: #263238;
    /* Dark Grey */
    --light-bg: #f5f5f5;
    --font-heading: 'SolaimanLipi', sans-serif;
    /* Example font */
}

body {
    background-color: #fff;
    font-family: Arial, sans-serif;
}

/* Header */
.top-bar {
    background-color: var(--light-bg);
    font-size: 0.9rem;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.main-header {
    padding: 20px 0;
    background: #fff;
}

.logo-area img {
    max-height: 80px;
}

.banner-area img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

/* Navigation */
.main-navbar {
    background-color: var(--secondary-color);
}

.main-navbar .nav-link {
    color: #fff !important;
    font-weight: bold;
    padding: 10px 15px;
}

.main-navbar .nav-link:hover {
    background-color: var(--primary-color);
}

/* Dropdown Submenu Improvements */
.main-navbar .dropdown-menu {
    border: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin-top: 0;
    min-width: 200px;
}

.main-navbar .dropdown-item {
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.main-navbar .dropdown-item:last-child {
    border-bottom: none;
}

.main-navbar .dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
    padding-left: 25px;
    /* Subtle slide effect */
}

.main-navbar .main-category-link {
    color: var(--primary-color);
}

.main-navbar .dropdown-item:hover.main-category-link {
    color: #fff;
}

.main-navbar .dropdown-divider {
    margin: 0;
    opacity: 0.1;
}

/* Optional: Show dropdown on hover */
@media (min-width: 992px) {
    .main-navbar .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
    }
}

/* Breaking News Ticker */
.breaking-section {
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breaking-title {
    background: var(--primary-color);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    white-space: nowrap;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.breaking-title::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 22.5px solid transparent;
    border-bottom: 22.5px solid transparent;
    border-left: 10px solid var(--primary-color);
}

#breakingCarousel {
    height: 45px;
}

.carousel-item {
    height: 45px;
    line-height: 45px;
    transition: transform 0.6s ease-in-out;
}

.breaking-link {
    color: #fff !important;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.breaking-link:hover {
    color: #ff9999 !important;
}

.ticker-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ff4d4d;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.8);
    animation: ticker-pulse 1.5s infinite;
}

@keyframes ticker-pulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
    }

    100% {
        transform: scale(0.9);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

.breaking-controls {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.ticker-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    margin: 0 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.5rem;
    line-height: 1;
}

.ticker-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.ticker-btn span {
    margin-top: -4px;
    /* Adjust vertical centering of characters */
}

/* Ensure no overlap accidentally */
.carousel-item {
    padding-right: 10px;
}

/* Featured Section */
.featured-main {
    position: relative;
    overflow: hidden;
}

.featured-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-main:hover img {
    transform: scale(1.05);
}

.featured-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 20px;
}

/* Common Card */
.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card h6,
.news-card h5 {
    margin-top: 10px;
    line-height: 1.4;
}

.news-card a {
    text-decoration: none;
    color: #333;
}

.news-card a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    padding: 40px 0;
    margin-top: 50px;
}

footer h5 {
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}