/* ==========================================================================
   NEWZDAILY.IN - DESIGN SYSTEM & GLOBAL STYLING
   ========================================================================== */

:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    --accent-red: #ff1744;
    --accent-red-hover: #d500e6; /* or #d50000 */
    --accent-red-light: #fff5f5;
    --border-color: #e4e4e7;
    --border-color-light: #f4f4f5;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --border-radius-pill: 50px;
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-kannada: 'Noto Sans Kannada', sans-serif;
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: var(--border-radius-pill);
    border: 2px solid var(--bg-primary);
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: #d4d4d8 var(--bg-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   HEADER STYLING (EXACT REPLICA FROM REFERENCE)
   ========================================================================== */

.main-header {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    font-family: var(--font-primary);
}

.logo-highlight {
    color: var(--accent-red);
}

.logo-text {
    color: #27272a; /* Dark gray */
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
    gap: 4px;
}

.nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-kannada);
    font-weight: 700;
    font-size: 15.5px;
    color: #27272a;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 3px;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transition: transform 0.2s ease;
    border-radius: 3px 3px 0 0;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.active {
    color: var(--accent-red);
}

.nav-links a.active::after {
    transform: scaleX(1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Sign In Button */
.signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-red);
    color: var(--bg-secondary);
    font-weight: 700;
    font-size: 14.5px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 4px rgba(255, 23, 68, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.signin-btn:hover {
    background-color: #e00034;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 23, 68, 0.3);
}

.signin-icon {
    stroke-width: 2.5px;
}

/* Icon Buttons (Bell, Search) */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563; /* Gray */
    padding: 8px;
    border-radius: 50%;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
    background-color: var(--border-color-light);
    color: var(--text-primary);
}

.bell-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    border: 1px solid var(--bg-secondary);
}

/* Hamburger (hidden on desktop) */
.hamburger-btn {
    display: none;
    color: var(--text-primary);
    padding: 8px;
    border-radius: var(--border-radius-sm);
}

/* ==========================================================================
   MOBILE DRAWER STYLING
   ========================================================================== */

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background-color: var(--bg-secondary);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
}

.mobile-drawer.active {
    left: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.close-drawer-btn {
    font-size: 32px;
    color: var(--text-muted);
    line-height: 1;
    padding: 4px;
}

.drawer-search {
    margin-bottom: 24px;
}

.drawer-search form {
    display: flex;
    background-color: var(--border-color-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 4px 8px;
}

.drawer-search input {
    flex: 1;
    border: none;
    background: none;
    padding: 8px;
    font-size: 15px;
    outline: none;
}

.drawer-search button {
    color: var(--text-muted);
}

.mobile-nav {
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-links a {
    display: block;
    padding: 12px 16px;
    font-family: var(--font-kannada);
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background-color: var(--accent-red-light);
    color: var(--accent-red);
}

.drawer-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.mobile-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background-color: var(--accent-red);
    color: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
}

/* ==========================================================================
   BREAKING NEWS TICKER
   ========================================================================== */

.breaking-news-bar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    height: 44px;
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.ticker-label {
    background-color: var(--accent-red);
    color: var(--bg-secondary);
    font-family: var(--font-kannada);
    font-weight: 700;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 8px solid var(--accent-red);
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 16px;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 48px;
    font-family: var(--font-kannada);
    font-size: 14px;
    font-weight: 500;
}

.ticker-item a:hover {
    color: var(--accent-red);
}

.ticker-item .bullet {
    color: var(--accent-red);
    margin-right: 8px;
}

/* ==========================================================================
   HOMEPAGE GRID LAYOUT
   ========================================================================== */

.home-grid-container {
    max-width: 1280px;
    margin: 32px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 32px;
}

/* Featured Hero Section */
.hero-section {
    margin-bottom: 40px;
}

.hero-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.hero-image-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-card:hover .hero-img {
    transform: scale(1.03);
}

.hero-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.hero-details {
    padding: 24px;
}

.hero-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    align-items: center;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-title {
    font-family: var(--font-kannada);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.hero-title a:hover {
    color: var(--accent-red);
}

.hero-excerpt {
    color: var(--text-secondary);
    font-family: var(--font-kannada);
    font-size: 15.5px;
    margin-bottom: 20px;
}

/* Reusable buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.2s, transform 0.2s;
    font-size: 14.5px;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--bg-secondary);
}

.btn-primary:hover {
    background-color: #e00034;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--text-primary);
    color: var(--bg-secondary);
}

.btn-secondary:hover {
    background-color: #27272a;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   ARTICLE CARD STYLING
   ========================================================================== */

.section-title {
    font-size: 22px;
    font-weight: 800;
    border-bottom: 3px solid var(--text-primary);
    padding-bottom: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.article-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Simple News Card Overrides */
.article-card-simple {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.article-card-simple:hover {
    transform: translateY(-4px);
    box-shadow: none !important;
}

.article-card-simple .card-image-wrapper {
    border-radius: var(--border-radius-md);
}

.article-card-simple .card-content {
    padding: 14px 4px 4px 4px !important;
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--font-kannada);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
}

/* Category Color System */
.category-badge.health,
.card-category-badge.health {
    background-color: #ecfdf5;
    color: #059669;
}
.category-badge.jobs,
.card-category-badge.jobs {
    background-color: #eff6ff;
    color: #2563eb;
}
.category-badge.education,
.card-category-badge.education {
    background-color: #fdf4ff;
    color: #c026d3;
}
.category-badge.state-news,
.card-category-badge.state-news {
    background-color: #fcf7e5;
    color: #b45309;
}
.category-badge.sports,
.card-category-badge.sports {
    background-color: #fff1f2;
    color: #e11d48;
}
.category-badge.politics,
.card-category-badge.politics {
    background-color: #f4f4f5;
    color: #3f3f46;
}
.category-badge.cinema,
.card-category-badge.cinema {
    background-color: #faf5ff;
    color: #7c3aed;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-title {
    font-family: var(--font-kannada);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.card-title a:hover {
    color: var(--accent-red);
}

.card-excerpt {
    color: var(--text-secondary);
    font-family: var(--font-kannada);
    font-size: 14px;
    margin-bottom: 16px;
    flex: 1;
}

.card-footer {
    border-top: 1px solid var(--border-color-light);
    padding-top: 14px;
}

.read-more-link {
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more-link:hover {
    color: var(--accent-red);
}

.read-more-link:hover .arrow-icon {
    transform: translateX(4px);
}

.arrow-icon {
    transition: transform 0.2s ease;
}

/* ==========================================================================
   SIDEBAR STYLING
   ========================================================================== */

.sidebar-widget {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 16.5px;
    font-weight: 800;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Trending widget items */
.trending-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trending-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trending-number {
    font-size: 26px;
    font-weight: 800;
    color: #e4e4e7;
    line-height: 1;
}

.trending-info {
    flex: 1;
}

.micro-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    display: inline-block;
}

.trending-item-title {
    font-family: var(--font-kannada);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}

.trending-item-title a:hover {
    color: var(--accent-red);
}

.trending-views {
    font-size: 11px;
    color: var(--text-muted);
}

/* Weather Widget */
.weather-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-temp {
    font-size: 24px;
    font-weight: 800;
}

.weather-info {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Sidebar Newsletter Form */
.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.sidebar-newsletter-form input {
    background-color: var(--border-color-light);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    outline: none;
}

.sidebar-newsletter-form button {
    width: 100%;
}

/* ==========================================================================
   CATEGORY BLOCK ROW (HOMEPAGE BOTTOM PANEL)
   ========================================================================== */

.category-block-row {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-block-column {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.category-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.category-block-title {
    font-family: var(--font-kannada);
    font-size: 16px;
    font-weight: 700;
    position: relative;
    padding-left: 12px;
}

.category-block-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 2px;
}

.category-block-title.sports::before { background-color: #e11d48; }
.category-block-title.health::before { background-color: #059669; }
.category-block-title.cinema::before { background-color: #7c3aed; }

.view-all-link {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.view-all-link:hover {
    color: var(--accent-red);
}

.category-block-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.category-block-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.micro-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.micro-info {
    flex: 1;
}

.micro-info h5 {
    font-family: var(--font-kannada);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
}

.micro-info h5 a:hover {
    color: var(--accent-red);
}

.micro-info small {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   CATEGORY & SEARCH PAGE LAYOUT
   ========================================================================== */

.category-page-container,
.search-page-container {
    max-width: 1280px;
    margin: 32px auto;
    padding: 0 24px;
}

.category-header-banner {
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.category-header-banner.health { border-left: 6px solid #059669; }
.category-header-banner.jobs { border-left: 6px solid #2563eb; }
.category-header-banner.education { border-left: 6px solid #c026d3; }
.category-header-banner.state-news { border-left: 6px solid #b45309; }
.category-header-banner.sports { border-left: 6px solid #e11d48; }
.category-header-banner.politics { border-left: 6px solid #3f3f46; }
.category-header-banner.cinema { border-left: 6px solid #7c3aed; }

.category-page-title {
    font-family: var(--font-kannada);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.category-subtitle {
    color: var(--text-secondary);
    font-family: var(--font-kannada);
    font-size: 13px;
}

/* Search banner */
.search-header-banner {
    background-color: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.search-page-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.search-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
}

.search-refine-box {
    margin-bottom: 32px;
}

.search-refine-form {
    display: flex;
    max-width: 600px;
    gap: 10px;
}

.search-refine-form input {
    flex: 1;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
}

.search-refine-form input:focus {
    border-color: var(--accent-red);
}

/* Custom pagination */
.custom-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* Pagination navigation styles (Laravel defaults) */
.custom-pagination nav {
    display: inline-flex;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.custom-pagination nav > div {
    display: flex;
    align-items: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.empty-state svg {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==========================================================================
   ARTICLE DETAIL PAGE LAYOUT
   ========================================================================== */

.article-page-layout {
    max-width: 860px;
    margin: 32px auto;
    padding: 0 24px;
}

/* Breadcrumb navigation */
.breadcrumb {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
}

.breadcrumb-category {
    font-weight: 600;
}

.breadcrumb-category:hover {
    color: var(--accent-red);
}

.active-crumb {
    color: var(--text-primary);
    font-weight: 500;
}

/* Grid Layout for article detail */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 100%;
}

.article-detail {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.article-detail-header {
    margin-bottom: 24px;
}

.article-detail-category-badge {
    display: inline-block;
    font-family: var(--font-kannada);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 16px;
}

.article-detail-category-badge.health { background-color: #ecfdf5; color: #059669; }
.article-detail-category-badge.jobs { background-color: #eff6ff; color: #2563eb; }
.article-detail-category-badge.education { background-color: #fdf4ff; color: #c026d3; }
.article-detail-category-badge.state-news { background-color: #fcf7e5; color: #b45309; }
.article-detail-category-badge.sports { background-color: #fff1f2; color: #e11d48; }
.article-detail-category-badge.politics { background-color: #f4f4f5; color: #3f3f46; }
.article-detail-category-badge.cinema { background-color: #faf5ff; color: #7c3aed; }

.article-detail-title {
    font-family: var(--font-kannada);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--accent-red-light);
    color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.author-name {
    display: block;
    font-weight: 700;
    font-size: 14.5px;
}

.publish-date {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
}

.article-stats {
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-detail-image-container {
    margin-bottom: 32px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.article-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-body {
    font-family: var(--font-kannada);
    font-size: 17.5px;
    line-height: 1.8;
    color: #27272a;
}

.article-detail-body p {
    margin-bottom: 20px;
}

.article-detail-body strong {
    font-weight: 700;
    color: var(--text-primary);
}

.article-detail-body ul {
    margin-left: 24px;
    margin-bottom: 20px;
}

.article-detail-body li {
    margin-bottom: 8px;
}

/* Detail footer */
.article-detail-footer {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.share-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.share-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-title-icon {
    color: var(--text-primary);
}

.share-box h4 {
    font-size: 16.5px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: var(--border-radius-sm);
    transition: opacity 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn.fb {
    background-color: #82a4f1;
    padding: 10px 16px;
    gap: 8px;
}

.share-btn.tw {
    background-color: #0f1419;
    width: 40px;
    height: 40px;
}

.share-btn.wa {
    background-color: #25d366;
    width: 40px;
    height: 40px;
}

.share-btn.copy {
    background-color: #5fbfb8;
    width: 40px;
    height: 40px;
}

.share-btn.print {
    background-color: #4285f4;
    width: 40px;
    height: 40px;
}

/* Sidebar lists of related */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-item-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.related-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.related-info {
    flex: 1;
}

.related-info h4 {
    font-family: var(--font-kannada);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}

.related-info h4 a:hover {
    color: var(--accent-red);
}

.related-info small {
    font-size: 11.5px;
    color: var(--text-muted);
}

.no-related {
    color: var(--text-muted);
    font-size: 14px;
}

.promo-box {
    background-color: var(--accent-red-light);
    border: 1px dashed var(--accent-red);
    padding: 24px;
    border-radius: var(--border-radius-md);
    text-align: center;
}

.promo-box span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-red);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.promo-box h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.promo-box p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.text-sm {
    font-size: 12px !important;
    padding: 8px 16px !important;
}

/* ==========================================================================
   SIGN IN PAGE STYLING
   ========================================================================== */

.signin-page-container {
    max-width: 1280px;
    margin: 60px auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signin-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.signin-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.signin-card-header .logo {
    justify-content: center;
    margin-bottom: 20px;
}

.signin-card-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.signin-card-header p {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.signin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    font-size: 11.5px;
    color: var(--accent-red);
    font-weight: 600;
}

.form-group input {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--accent-red);
    background-color: var(--bg-secondary);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group-checkbox label {
    font-size: 13.5px;
    color: var(--text-secondary);
    user-select: none;
    cursor: pointer;
}

.form-group-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-red);
}

.signin-card-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color-light);
    font-size: 13.5px;
    color: var(--text-secondary);
}

.signin-card-footer a {
    color: var(--accent-red);
    font-weight: 700;
}

/* ==========================================================================
   GLOBAL SEARCH MODAL OVERLAY STYLING
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 600px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 800;
}

.modal-close-btn {
    font-size: 32px;
    line-height: 1;
    color: var(--text-muted);
}

.search-form-modal {
    display: flex;
    gap: 12px;
}

.search-form-modal input {
    flex: 1;
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    outline: none;
}

.search-form-modal input:focus {
    border-color: var(--accent-red);
}

.search-submit-btn {
    background-color: var(--accent-red);
    color: var(--bg-secondary);
    padding: 14px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-submit-btn:hover {
    background-color: #e00034;
}

/* ==========================================================================
   NOTIFICATION POPUP DROPDOWN STYLING
   ========================================================================== */

.notification-dropdown-panel {
    position: absolute;
    width: 350px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 500;
    padding: 16px 0;
    animation: fadeIn 0.15s ease-out;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 12px 16px;
    border-bottom: 1px solid var(--border-color-light);
}

.dropdown-header h4 {
    font-size: 14px;
    font-weight: 800;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.7);
    animation: pulse 1.2s infinite;
}

.notification-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color-light);
    transition: background-color 0.2s;
}

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

.notification-item:hover {
    background-color: var(--border-color-light);
}

.notification-item.unread {
    background-color: var(--accent-red-light);
}

.notification-item p {
    font-family: var(--font-kannada);
    font-size: 13.5px;
    line-height: 1.4;
    margin: 4px 0;
}

.notification-item small {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */

.main-footer {
    background-color: var(--text-primary);
    color: #d4d4d8;
    padding: 60px 0 0 0;
    margin-top: 60px;
    border-top: 5px solid var(--accent-red);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 48px 24px;
    display: grid;
    grid-template-columns: 5fr 3fr 4fr;
    gap: 48px;
}

.footer-section h4 {
    color: var(--bg-secondary);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--accent-red);
}

.brand-about .logo {
    margin-bottom: 16px;
}

.brand-about .logo-text {
    color: var(--bg-secondary);
}

.about-text {
    font-family: var(--font-kannada);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    background-color: #27272a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    transition: background-color 0.2s, color 0.2s;
}

.social-links a:hover {
    background-color: var(--accent-red);
    color: var(--bg-secondary);
}

.footer-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.footer-links a {
    font-family: var(--font-kannada);
    font-size: 14px;
    color: #a1a1aa;
}

.footer-links a:hover {
    color: var(--bg-secondary);
    padding-left: 4px;
}

.newsletter p {
    font-size: 14px;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    color: var(--bg-secondary);
    font-size: 14px;
    outline: none;
}

.newsletter-form button {
    background-color: var(--accent-red);
    color: var(--bg-secondary);
    padding: 0 20px;
    font-family: var(--font-kannada);
    font-weight: 700;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.newsletter-form button:hover {
    background-color: #e00034;
}

.footer-bottom {
    background-color: #09090b;
    padding: 24px 0;
    border-top: 1px solid #18181b;
}

.footer-bottom-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #71717a;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a:hover {
    color: #d4d4d8;
}

/* ==========================================================================
   CSS ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 23, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 23, 68, 0); }
}

/* ==========================================================================
   CUSTOM PAGINATION
   ========================================================================== */

.nd-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

/* Prev / Next arrow buttons */
.nd-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.nd-page-btn:hover:not(.disabled) {
    background-color: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nd-page-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

/* Number pills */
.nd-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nd-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 4px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

a.nd-page-num:hover {
    background-color: var(--accent-red-light);
    color: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-1px);
}

.nd-page-num.active {
    background: linear-gradient(135deg, var(--accent-red) 0%, #ff4d6d 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(255, 23, 68, 0.4);
    transform: scale(1.05);
}

/* Ellipsis dots */
.nd-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 40px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
}



@media (max-width: 1024px) {
    .home-grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-section.newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .hamburger-btn {
        display: block;
        padding-left: 0;
        margin-left: -4px;
    }

    .desktop-nav {
        display: none;
    }

    .header-actions .signin-btn span {
        display: none;
    }
    
    .header-actions .signin-btn {
        padding: 8px;
        border-radius: 50%;
        box-shadow: none;
        background-color: var(--border-color-light);
        color: #4b5563;
    }

    .header-actions .signin-btn:hover {
        background-color: var(--border-color);
        color: var(--text-primary);
        transform: none;
        box-shadow: none;
    }
    
    .breaking-news-bar {
        border-left: none;
        border-right: none;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .category-block-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-section.newsletter {
        grid-column: span 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .article-detail {
        padding: 0;
    }
    
    .article-detail-title {
        font-size: 26px;
    }
    
    .article-detail-body {
        font-size: 16px;
    }
}

/* ==========================================================================
   404 ERROR PAGE STYLING
   ========================================================================== */

.error-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 250px);
    padding: 40px 24px;
    background-color: var(--bg-primary);
}

.error-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    padding: 48px;
    text-align: center;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.error-graphic {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px auto;
}

.error-svg {
    width: 100%;
    height: 100%;
}

.floating-magnifier {
    position: absolute;
    top: 30%;
    left: 70%;
    animation: floatSearch 4s ease-in-out infinite;
}

@keyframes floatSearch {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(15deg);
    }
}

.error-title {
    font-family: var(--font-kannada);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
}

.error-title .english-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.error-message {
    font-family: var(--font-kannada);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.error-search-form {
    margin-bottom: 24px;
    width: 100%;
}

.error-search-input-wrapper {
    position: relative;
    display: flex;
    background-color: var(--border-color-light);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    padding: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.error-search-input-wrapper:focus-within {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.1);
}

.error-search-input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 16px;
    font-size: 14.5px;
    outline: none;
    font-family: var(--font-kannada);
}

.error-search-submit {
    color: var(--text-muted);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.error-search-submit:hover {
    color: var(--accent-red);
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
}

.suggested-categories {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: left;
}

.suggested-categories h3 {
    font-family: var(--font-kannada);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.category-chip {
    font-family: var(--font-kannada);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--border-radius-pill);
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Category chip colors */
.category-chip.health {
    background-color: #ecfdf5;
    color: #059669;
}
.category-chip.jobs {
    background-color: #eff6ff;
    color: #2563eb;
}
.category-chip.education {
    background-color: #fdf4ff;
    color: #c026d3;
}
.category-chip.state-news {
    background-color: #fcf7e5;
    color: #b45309;
}
.category-chip.sports {
    background-color: #fff1f2;
    color: #e11d48;
}
.category-chip.politics {
    background-color: #f4f4f5;
    color: #3f3f46;
}
.category-chip.cinema {
    background-color: #faf5ff;
    color: #7c3aed;
}

@media (max-width: 600px) {
    .error-card {
        padding: 32px 20px;
    }
    
    .error-title {
        font-size: 24px;
    }

    .modal-overlay {
        padding: 16px;
    }
    
    .modal-card {
        padding: 24px 20px;
    }
    
    .search-form-modal {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   PRINT STYLING (Optimize to print full news on a single page)
   ========================================================================== */
@media print {
    header, 
    .main-header,
    footer,
    .main-footer,
    .breadcrumb,
    .article-detail-footer,
    .share-box,
    .modal-overlay,
    .notification-dropdown-panel,
    .mobile-drawer,
    .drawer-overlay,
    #search-modal,
    #notification-drawer,
    .article-stats,
    .author-avatar {
        display: none !important;
    }

    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
        line-height: 1.4 !important;
        margin: 1.5cm !important;
    }

    .article-page-layout {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .article-grid {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .article-detail {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .article-detail-header {
        display: block !important;
        width: 100% !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }

    .article-detail-title {
        display: block !important;
        width: 100% !important;
        font-size: 16pt !important;
        line-height: 1.3 !important;
        margin: 0 auto 8px auto !important;
        text-align: center !important;
    }

    .article-detail-meta {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 8px 0 !important;
        margin-bottom: 12px !important;
    }

    /* Shrink and center featured image for print space savings */
    .article-detail-image-container {
        max-width: 50% !important;
        margin: 0 auto 12px auto !important;
        border-radius: 0 !important;
        aspect-ratio: auto !important;
        height: auto !important;
    }

    .article-detail-img {
        max-height: 180px !important;
        object-fit: contain !important;
        width: 100% !important;
    }

    .article-detail-body {
        font-size: 10pt !important;
        line-height: 1.4 !important;
        color: #000000 !important;
    }

    .article-detail-body p {
        margin-bottom: 8px !important;
        page-break-inside: avoid !important;
    }

    @page {
        margin: 0;
    }
}

/* ==========================================================================
   SLIDE-UP AD CONTAINER
   ========================================================================== */
.slideup-ad-container {
    position: fixed;
    bottom: -150px; /* Start off-screen */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 728px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1), 0 -5px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 9999;
    padding: 16px;
    box-sizing: border-box;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.slideup-ad-container.active {
    bottom: 0;
    opacity: 1;
}

.slideup-ad-container.hidden {
    display: none !important;
}

/* Close button */
.slideup-ad-close {
    position: absolute;
    top: -12px;
    right: 12px;
    width: 26px;
    height: 26px;
    background: var(--text-primary);
    color: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 10000;
}

.slideup-ad-close:hover {
    background: var(--accent-red);
    transform: scale(1.1);
}

/* Slider & Slide styles */
.slideup-ad-slider {
    position: relative;
    width: 100%;
}

.slideup-ad-slide {
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.slideup-ad-slide.active {
    opacity: 1;
}

/* Content */
.slideup-ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.slideup-ad-img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    display: block;
    border-radius: var(--border-radius-sm);
    transition: transform 0.2s ease;
}

.slideup-ad-img:hover {
    transform: scale(1.01);
}

/* Script container fallback styling */
.slideup-ad-content iframe,
.slideup-ad-content div {
    margin: 0 auto;
}

/* Mobile specific styling */
@media (max-width: 768px) {
    .slideup-ad-container {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 12px;
        bottom: -150px;
    }
    .slideup-ad-img {
        max-height: 60px;
    }
    .slideup-ad-close {
        top: -10px;
        right: 10px;
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

/* Hide for print */
@media print {
    .slideup-ad-container {
        display: none !important;
    }
}
