/* Base Imports */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
    --ary-red: #DA251D;
    --ary-dark: #1F1F1F;
    --ary-gray: #f5f5f5;
    --ary-border: #e0e0e0;
    --bs-primary: var(--ary-red);
    --bs-primary-rgb: 218, 37, 29;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #fafafa;
    color: #333;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .font-heading {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Redesign Overrides */
.bg-primary {
    background-color: var(--ary-red) !important;
}

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

.btn-primary {
    background-color: var(--ary-red);
    border-color: var(--ary-red);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #b01c15;
    border-color: #b01c15;
}

/* Top Bar Layout & Ticker */
.top-bar {
    background-color: var(--ary-dark);
    font-size: 0.85rem;
    padding: 6px 0;
}

.top-bar .text-white-50:hover,
.hover-white:hover {
    color: #fff !important;
}

.top-bar-ticker {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: middle;
    position: relative;
}

.top-bar-ticker-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: top-bar-scroll 22s linear infinite;
}

.top-bar-ticker:hover .top-bar-ticker-text {
    animation-play-state: paused;
}

@keyframes top-bar-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.main-navbar {
    background-color: #ffffff;
    border-bottom: 2px solid var(--ary-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-navbar .nav-link {
    color: var(--ary-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 1rem 1.2rem;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    transition: color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.main-navbar .nav-link:hover, .main-navbar .nav-link.active {
    color: var(--ary-red);
}

/* News Cards */
.news-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0 !important; /* Squaring off corners like ARY */
}

.news-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.news-card-hover img {
    border-radius: 0 !important;
}

.card-title a {
    transition: color 0.15s ease;
}

.card-title a:hover {
    color: var(--ary-red) !important;
}

/* Premium Single-Line Breaking News Bar */
.breaking-news-bar {
    height: 44px;
    background: #da251d;
    box-shadow: 0 4px 12px rgba(218, 37, 29, 0.15);
}

.breaking-news-label {
    height: 100%;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    background: #111827 !important;
    border-right: 3px solid var(--ary-red);
    flex-shrink: 0;
    z-index: 2;
}

.pulse-red-dot {
    width: 8px;
    height: 8px;
    background-color: var(--ary-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(218, 37, 29, 0.7);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(218, 37, 29, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(218, 37, 29, 0); }
    100% { box-shadow: 0 0 0 0 rgba(218, 37, 29, 0); }
}

.breaking-news-content {
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient(90deg, #da251d 0%, #b01c15 100%) !important;
}

.ticker-wrapper {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    padding-left: 100%;
    animation: ticker-scroll 32s linear infinite;
}

.ticker-wrapper:hover,
.ticker-wrapper:focus-within {
    animation-play-state: paused;
}

.ticker-item {
    font-size: 0.92rem;
    line-height: 1;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

@keyframes ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Clean up Bootstrap focus rings globally */
.focus-ring:focus {
    box-shadow: 0 0 0 .25rem rgba(218, 37, 29, 0.25) !important;
    border-color: var(--ary-red) !important;
}

/* Clean Accessible Hover Utility Classes */
.hover-danger {
    transition: color 0.2s ease;
}
.hover-danger:hover,
.hover-danger:focus {
    color: var(--ary-red) !important;
}

.img-zoom-hover {
    transition: transform 0.4s ease !important;
}
.img-zoom-hover:hover,
.img-zoom-hover:focus,
.group:hover .img-zoom-hover,
.group:focus-within .img-zoom-hover {
    transform: scale(1.05) !important;
}

/* Hero Grid Responsive Heights */
.hero-featured-main {
    min-height: 320px;
}
@media (min-width: 992px) {
    .hero-featured-main {
        min-height: 500px;
    }
}

.hero-featured-side {
    min-height: 180px;
}
@media (min-width: 992px) {
    .hero-featured-side {
        min-height: 240px;
    }
}

/* Article Content Responsive Styling */
.article-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    margin: 1rem 0;
}
.article-body iframe,
.article-body embed,
.article-body object,
.article-body video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}
.article-body table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
}

/* Comprehensive Responsive Breakpoints */
@media (max-width: 991.98px) {
    .main-navbar .nav-link {
        padding: 0.6rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    .top-bar {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    h1, .display-5 {
        font-size: 1.8rem !important;
    }
    h2, .display-6 {
        font-size: 1.5rem !important;
    }
    h3 {
        font-size: 1.3rem !important;
    }
    .hero-featured-main {
        min-height: 280px;
    }
    .hero-featured-side {
        min-height: 160px;
    }
    .ticker-container {
        max-width: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .card-body {
        padding: 1rem !important;
    }
}


