/* Grapnest News Style CSS */
:root {
    --primary-red: #d32f2f;
    --menu-orange: #ff4d00;
    --menu-blue: #094b98;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #fff;
}

body {
    background-color: var(--light-bg);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

/* Header */
.navbar-brand {
    font-weight: 800;
    color: var(--primary-red) !important;
    font-size: 1.5rem;
}

.top-nav {
    background-color: #000;
    color: #fff;
    padding: 8px 0;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--primary-red);
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .top-nav {
        padding: 5px 0;
        font-size: 0.75rem;
    }
    .top-nav a {
        margin-left: 8px;
        margin-right: 8px;
    }
}

.main-nav {
    background-color: var(--menu-orange);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 !important;
    min-height: 48px;
}

.home-btn {
    background-color: var(--menu-blue);
    color: #fff !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
}

.search-container {
    background-color: var(--menu-blue);
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 100%;
}

.search-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9rem;
    width: 0;
    transition: all 0.3s ease;
    opacity: 0;
}

.search-container:hover .search-input,
.search-input:focus {
    width: 150px;
    opacity: 1;
    margin-right: 10px;
    outline: none;
    background: rgba(255,255,255,0.2);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-box-btn {
    background: transparent;
    color: #fff;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0;
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    text-transform: none;
    padding: 12px 10px !important;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255,255,255,0.1);
}

/* Hero Slider */
.hero-slider-container {
    background: #000;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide img {
    transition: transform 10s linear;
}

.hero-slide.active img {
    transform: scale(1.1);
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* News Cards */
.news-card {
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-card img {
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.news-card .card-body {
    padding: 15px;
}

.news-card .category-badge {
    background-color: var(--primary-red);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    left: 0;
}

.news-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Breaking News Ticker */
.breaking-news-container {
    background: #1a1a1a;
    display: flex;
    align-items: stretch;
    height: 45px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.breaking-news-label {
    background: var(--primary-red);
    color: #fff;
    font-weight: 800;
    padding: 0 25px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0.7; }
}

.ticker-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding-left: 20px;
    overflow: hidden;
}

.ticker-label {
    color: var(--primary-red);
    font-weight: 700;
    margin-right: 15px;
    white-space: nowrap;
}

.ticker-content-v {
    flex-grow: 1;
    position: relative;
    height: 100%;
}

.ticker-item-v {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.5s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-item-v.active {
    top: 0;
    opacity: 1;
    z-index: 2;
}

.ticker-item-v.prev {
    top: -100%;
    opacity: 0;
    transition: all 0.5s ease;
}

.ticker-controls {
    background: #333;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
}

.ticker-controls i {
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
}

.ticker-controls i:hover {
    color: #fff;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
    .breaking-news-label {
        padding: 0 15px;
        font-size: 0.8rem;
    }
}
/* Mobile Responsive Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #222 !important;
        padding: 1rem;
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .navbar-nav {
        text-align: left;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin: 0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 12px 15px !important;
        font-size: 1.1rem !important;
        color: #fff !important;
        font-weight: 500;
        display: block;
    }
    
    .nav-link:hover {
        color: var(--menu-orange) !important;
        background: rgba(255,255,255,0.05) !important;
    }
    
    .close-mobile-menu {
        display: none !important;
    }
}

.close-mobile-menu {
    display: none;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 50px 0 20px;
    margin-top: 50px;
}

footer h5 {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 20px;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-red);
}
/* Notification Toast */
#news-notify-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.new-item-glow {
    animation: highlightFade 3s ease;
}

@keyframes highlightFade {
    0% { background-color: rgba(211, 47, 47, 0.2); }
    100% { background-color: transparent; }
}

/* Recent News Vertical Slider */
.recent-news-outer {
    height: 400px; /* Adjust height as needed */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}

.sliding-list {
    transition: transform 0.5s ease-in-out;
}

.list-group-item {
    transition: opacity 0.3s ease;
}

/* Pause on hover is handled via JS mouseenter/mouseleave */

/* Modern Poll System */
.poll-container {
    background: #fdfdfd;
    border-top: 5px solid var(--primary-red);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 330px;
    font-size: 0.9rem;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-option-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.poll-option-item:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.1);
    border-color: rgba(211, 47, 47, 0.2);
}

.poll-radio-orb {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.poll-option-item:hover .poll-radio-orb {
    border-color: var(--primary-red);
}

.poll-option-item:active {
    transform: scale(0.98);
}

.poll-option-text {
    font-weight: 600;
    color: #444;
}

.poll-option-item:hover .poll-option-text {
    color: var(--primary-red);
}

.stylish-question {
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    color: #111 !important;
    line-height: 1.2 !important;
    text-shadow: 1px 1px 0px rgba(211, 47, 47, 0.2) !important;
    font-size: 1.1rem !important;
    display: block !important;
}

.poll-results-container {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    min-height: 60px;
}

.poll-pie-box {
    position: relative !important;
    width: 100px !important;
    height: 100px !important;
    flex-shrink: 0;
}

.poll-pie-chart {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    background: conic-gradient(var(--primary-red) 0% 0%, #eee 0% 100%); 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    transition: background 0.5s ease;
}

/* Donut hole for modern look */
.poll-pie-chart::after {
    content: "";
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.poll-legend {
    flex: 1;
    font-size: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-weight: 600;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 8px;
}

.text-glow-red {
    color: var(--primary-red);
    font-weight: 800;
    text-shadow: 0 0 8px rgba(211, 47, 47, 0.3);
}

@media (max-width: 991px) {
    .poll-container {
        width: 100%;
        margin-top: 7px;
    }
}

@media (min-width: 992px) {
    .poll-pie-box, .poll-pie-chart {
        width: 50px !important;
        height: 50px !important;
    }
    .poll-pie-chart::after {
        width: 30px !important;
        height: 30px !important;
    }
}
