/* Custom CSS for ePaper Reader */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    padding-top: 180px; /* Further reduced - calculated: 35px + 65px + 35px + 55px = 190px, using 180px for some breathing room */
}

/* Color Scheme */
:root {
    --premium-blue: #0080fa;
    --premium-blue-light: #4da3fc;
    --premium-blue-dark: #0066cc;
    --premium-yellow: #e7e749;
    --premium-black: #1a1a1a;
    --premium-gray: #4a5568;
    --premium-light-gray: #f7fafc;
    --premium-white: #ffffff;
    --material-on-surface: #212121;
    --material-surface: #ffffff;
    --premium-shadow: 0 4px 20px rgba(0, 128, 250, 0.15);
    --premium-shadow-lg: 0 8px 30px rgba(0, 128, 250, 0.2);
    --material-primary: #1976d2;
    --material-transition: all 0.3s
    cubic-bezier(0.4, 0.0, 0.2, 1);

}
/* Top Black Bar */
.top-black-bar {
    background-color: #f8f9fa;
    height: 40px;
    z-index: 1031;
    top: 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-nav-link {
    color: #212529;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.top-nav-link:hover {
    color: #0080fa;
    text-decoration: none;
}

/* Header Styles */
.newspaper-header {
    background: var(--premium-white);
    box-shadow: var(--premium-shadow-lg);
    z-index: 1030;
    backdrop-filter: blur(10px);
}

/* Main Blue Header Bar */
.main-header-bar {
    padding: 15px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
}

.main-header-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.main-header-bar .newspaper-logo {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 8px 0;
}

.main-header-bar .logo-text {
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    color: var(--premium-white);
    display: block;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 600;
    letter-spacing: 1px;
}

.main-header-bar .brand-name {
    font-family: 'Times New Roman', serif;
    font-weight: 900;
    color: var(--premium-white);
    font-size: 1.8rem;
    letter-spacing: 3px;
    line-height: 1;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    margin: 4px 0;
}

.header-ad-banner img {
    max-height: 80px;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Blue Controls Bar */
.red-controls-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    min-height: 44px;
}

.unified-date-component {
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
    min-width: 150px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unified-date-component:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.calendar-icon {
    color: #ffffff;
    margin-left: 8px;
    opacity: 0.8;
}

/* Page Navigation */
.page-navigation-controls {
    gap: 8px;
}

.page-nav-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-nav-control:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
}

.page-numbers {
    display: flex;
    gap: 3px;
    align-items: center;
}

.page-number {
    color: #212529;
    opacity: .5;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    min-width: 35px;
    height: 35px;
    text-align: center;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    text-decoration: none;
}

.page-number.active {
    background: #ffffff;
    color: #0080fa;
    font-weight: 700;
    opacity: 1;
}

/* Header Controls */
.header-controls {
    gap: 5px;
}

.header-control-btn {
    background: transparent;
    border: none;
    color: var(--material-on-surface);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--material-transition);
    display: flex
;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.header-control-btn:hover {
   /* background: rgba(255,255,255,0.2);
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
    text-decoration: none;*/
}

.header-control-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.brand-bar {
    height: 65px;
    background: linear-gradient(135deg, var(--premium-blue) 0%, var(--premium-blue-dark) 0%) !important;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.brand-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.brand-bar .newspaper-logo {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 8px 0;
}

.brand-bar .logo-text {
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    color: var(--premium-white);
    display: block;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 600;
    letter-spacing: 1px;
}

.brand-bar .brand-name {
    font-family: 'Times New Roman', serif;
    font-weight: 900;
    color: var(--premium-white);
    font-size: 1.8rem;
    letter-spacing: 3px;
    line-height: 1;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    margin: 4px 0;
}

.brand-bar .brand-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.controls-bar {
    height: 70px;
    background: linear-gradient(180deg, var(--premium-white) 0%, #f8fafc 100%);
    border-bottom: 2px solid rgba(173, 26, 35, 0.1);
    padding: 8px 2rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    overflow: hidden;
}

.controls-bar .container-fluid {
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.controls-bar .d-flex {
    height: 100%;
    align-items: center !important;
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.controls-bar .d-flex > * {
    flex-shrink: 0;
    height: 36px;
    display: flex;
    align-items: center;
}

/* Unified Date Component */
.unified-date-component {
    background: var(--premium-white);
    border: 2px solid rgba(173, 26, 35, 0.2);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 8px 12px;
    height: 36px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.unified-date-component:hover {
    border-color: #2c3e50;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
}

.current-date-text {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2c3e50;
    font-family: 'Times New Roman', serif;
    white-space: nowrap;
    line-height: 1;
}

.calendar-icon {
    color: #2c3e50;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.unified-date-component:hover .calendar-icon {
    opacity: 1;
    transform: scale(1.1);
}

.date-picker-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Page Navigation Controls - Newspaper Theme */
.page-navigation-controls {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.08);
    padding: 2px;
    height: 28px;
    transition: all 0.2s ease;
}

.page-navigation-controls:hover {
    border-color: #2c3e50;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
}

.page-nav-control {
    background: transparent !important;
    border: none !important;
    color: #2c3e50 !important;
    font-weight: 600;
    border-radius: 4px;
    padding: 4px 6px;
    transition: all 0.2s ease;
    box-shadow: none !important;
    font-family: 'Times New Roman', serif;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.page-nav-control:hover {
    background: #2c3e50 !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

.page-nav-control:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    background: transparent !important;
    color: #999999 !important;
}

.page-info {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--premium-black);
    font-family: 'Times New Roman', serif;
    white-space: nowrap;
    min-width: 50px;
    text-align: center;
}

/* Newspaper Header Redesign */
.newspaper-header {
    background: #fefefe;
    border-bottom: 2px solid #2c3e50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-family: 'Times New Roman', serif;
}

.controls-bar {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%) !important;
    border-bottom: 1px solid #e1e5e9 !important;
    padding: 8px 0;
}

/* Newspaper Logo Styling */
.newspaper-logo {
    text-align: center;
    padding: 10px 0;
}

.brand-name {
    font-family: 'Times New Roman', serif !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin: 0 !important;
}

.logo-text {
    font-family: 'Times New Roman', serif;
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    display: block;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.nav-tabs-bar {
    height: 55px;
    background-color: #d9d9d9 !important;
    border-bottom-color: #cfcfcf !important;
}

/* Navigation Categories Container */
.nav-categories-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 55px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    line-height: 0;
}

.nav-categories-container::-webkit-scrollbar {
    display: none;
}

.nav-categories {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 8px 0;
    min-width: max-content;
    height: 100%;

    text-decoration: none;

    font-weight: 500;

}

.nav-category {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 0;
    font-size: 0.85rem;
    font-family: 'Times New Roman', serif;
    border: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    height: fit-content;
    box-shadow: none;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    position: relative;
    color: var(--material-on-surface);

    font-weight: 500;
    transition: var(--material-transition);

    background: #d9d9d9 !important;;
}

.nav-category::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0080fa;
    transition: width 0.3s ease;
}

.nav-category:hover {
    background: rgba(255,255,255, 0.15);
    text-decoration: none;
    transform: translateY(-1px);
    border-radius: 4px;

}

.nav-category:hover::before {
    width: 70%;
    background: #0080fa;
}

.nav-category.active {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);

    color: var(--material-primary);
    background: rgba(25, 118, 210, 0.08);
    border-bottom-color: var(--material-primary);
    font-weight: 600;
}

.nav-category.active::before {
    width: 90%;
    background: #0080fa;
    height: 3px;
    bottom: -6px;
}

.nav-category i {
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav-text {
    font-size: 0.8rem;
}

/* Main Layout */
.main-wrapper {
    min-height: auto;
    background: var(--newspaper-white);
}

/* News Viewer */
.news-viewer {
    width: 100%;
    background-color: rgba(33, 37, 41, 0.7);
    overflow: auto;
    min-height: auto;
}

.news-viewer.full-width {
    margin-left: 0;
}

/* Viewer Container */
.viewer-container {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

@media (min-width: 768px) {
    .viewer-container {
        padding: 2rem;
        min-height: auto;
        padding-top: 0;
        padding-bottom: 0rem;

    }
}

/* Newspaper Container */
.newspaper-container {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 0;
    border: 1px solid #dee2e6;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 92%;
    position: relative;
}

.newspaper-page {
    padding: 1rem;
    min-height: 600px;
    background: var(--newspaper-white);
    color: var(--newspaper-black);
    transform-origin: top left;
    transition: transform 0.2s ease;
}

@media (min-width: 768px) {
    .newspaper-page {
        padding: 2rem;
        min-height: 800px;
    }
}

/* Newspaper Masthead */
.newspaper-masthead {
    border-bottom: 2px solid var(--newspaper-black);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.masthead-top small {
    font-size: 0.7rem;
    color: var(--newspaper-gray);
    line-height: 1.2;
}

.main-logo {
    text-align: center;
}

.logo-bengali {
    font-family: 'Times New Roman', serif;
    font-size: 1.5rem;
    color: var(--newspaper-red);
    display: block;
    line-height: 1;
}

.newspaper-title {
    font-family: 'Times New Roman', serif;
    font-weight: 900;
    color: var(--newspaper-black);
    font-size: 3rem;
    letter-spacing: 3px;
    line-height: 1;
    margin: 0;
}

.edition-info {
    font-size: 0.7rem;
    color: var(--newspaper-gray);
    line-height: 1.2;
}

.date-line {
    font-weight: 600;
    color: var(--newspaper-black);
    font-size: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--newspaper-gray);
}

.current-date-display {
    font-weight: 600;
    color: var(--newspaper-black);
}

/* Article Styles */
.newspaper-content {
    max-width: 100%;
}

.main-article {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .main-article {
        margin-bottom: 2rem;
    }
}

.article-headline {
    font-family: 'Times New Roman', serif;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--newspaper-black);
    font-weight: 700;
}

.article-byline {
    font-size: 0.9rem;
    border-bottom: 1px solid var(--newspaper-gray);
    padding-bottom: 0.5rem;
    color: var(--newspaper-gray);
    font-weight: 600;
}

.article-image-placeholder {
    height: 150px;
    border: 2px dashed var(--newspaper-gray);
    background: var(--newspaper-light-gray);
}

@media (min-width: 768px) {
    .article-image-placeholder {
        height: 200px;
    }
}

.article-content {
    text-align: justify;
    line-height: 1.6;
    color: var(--newspaper-black);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.side-article .article-headline {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--newspaper-red);
}

.side-article {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--newspaper-gray);
    background: var(--newspaper-light-gray);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.side-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Page Navigation Controls */
.page-controls {
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

@media (min-width: 768px) {
    .page-controls {
        left: 2rem;
        right: 2rem;
    }
}

.page-nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    pointer-events: all;
    transition: all 0.3s ease;
    opacity: 0.8;

}

@media (min-width: 768px) {
    .page-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.page-nav-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.page-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;

}

/* Zoom Levels */
.newspaper-page.zoom-50 {
    transform: scale(0.5);
}

.newspaper-page.zoom-75 {
    transform: scale(0.75);
}

.newspaper-page.zoom-100 {
    transform: scale(1);
}

.newspaper-page.zoom-125 {
    transform: scale(1.25);
}

.newspaper-page.zoom-150 {
    transform: scale(1.5);
}

.newspaper-page.zoom-200 {
    transform: scale(2);
}

/* Newspaper-themed Loading Spinner */
#loadingSpinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.15);
    border: 2px solid #e1e5e9;
    z-index: 20;
    color: #2c3e50;
    padding: 2rem;
}

.newspaper-spinner {
    color: #2c3e50 !important;
    border-width: 3px;
    width: 3rem;
    height: 3rem;
}

.loading-text {
    color: #2c3e50;
    font-family: 'Times New Roman', serif;
    font-weight: 500;
    font-size: 1rem;
}

/* Compact Controls */
.btn-compact {
    height: 32px !important;
    padding: 0 8px !important;
    font-size: 0.75rem !important;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-controls {
    height: 32px;
}

.compact-controls .btn {
    height: 32px;
    padding: 0 8px;
    font-size: 0.75rem;
}

/* Newspaper-style Page Navigation */
.page-navigation-controls {
    font-family: 'Times New Roman', serif;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    padding: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.page-nav-control {
    background: #fff !important;
    border: 1px solid #ccc !important;
    color: #2c3e50 !important;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: 'Times New Roman', serif;
    height: 28px !important;
    min-width: 28px;
    padding: 0 8px;
}

.page-nav-control:hover {
    background: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(44,62,80,0.3);
}

.page-info {
    font-family: 'Times New Roman', serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    padding: 0 8px;
    white-space: nowrap;
}

/* Date Component Styling */
.unified-date-component {
    font-family: 'Times New Roman', serif;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.current-date-text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
}

.calendar-icon {
    color: #2c3e50;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.calendar-icon:hover {
    color: #1a252f;
}

/* Newspaper-style Zoom Controls */
.compact-controls {
    font-family: 'Times New Roman', serif;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.compact-controls .btn {
    background: #fff !important;
    border: none !important;
    color: #2c3e50 !important;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 0 !important;
    border-right: 1px solid #ddd !important;
}

.compact-controls .btn:last-child {
    border-right: none !important;
}

.compact-controls .btn:hover {
    background: #2c3e50 !important;
    color: #fff !important;
}

/* Fullscreen Button */
.fullscreen-btn {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #2c3e50 !important;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: 'Times New Roman', serif;
    height: 32px !important;
    min-width: 32px;
}

.fullscreen-btn:hover {
    background: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(44,62,80,0.3);
}

.fullscreen-btn:focus {
    background: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(173, 26, 35, 0.15), 0 4px 15px rgba(173, 26, 35, 0.3);
}

/* Form Controls */
.form-control {
    background: var(--premium-white);
    border: 2px solid rgba(173, 26, 35, 0.2) !important;
    color: var(--premium-black);
    border-radius: 6px !important;
    padding: 0 8px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    font-family: 'Times New Roman', serif !important;
    height: 32px !important;
    min-width: 120px;
    font-size: 0.8rem !important;
}

.form-control:focus {
    border-color: var(--premium-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(173, 26, 35, 0.15), 0 4px 12px rgba(173, 26, 35, 0.1) !important;
    background: var(--premium-white) !important;
    color: var(--premium-black);
    transform: translateY(-1px) !important;
}

/* Newspaper-themed Dropdown Styles */
.dropdown-menu {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.15);
    background: #ffffff;
    padding: 8px 4px;
    margin: 0;
    min-width: 200px;
    z-index: 999999 !important;
    position: fixed !important;
    display: none;
}

/* Ensure dropdown items are properly styled */
.dropdown-menu .dropdown-item {
    display: block;
    padding: 8px 12px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 2px;
    font-family: 'Times New Roman', serif;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #1a252f;
}

.dropdown-item {
    color: #2c3e50;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    font-family: 'Times New Roman', serif;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #1a252f;
    transform: translateX(2px);
}

.dropdown-divider {
    border-color: #e1e5e9;
    margin: 8px 0;
}

/* List Group */
.list-group-item {
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: transparent !important;
    border: none !important;
    color: var(--newspaper-black) !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

.list-group-item:hover {
    background: rgba(0, 128, 250, 0.1) !important;
    color: var(--premium-blue) !important;
    transform: translateX(5px);
}

.list-group-item.active {
    background: var(--premium-blue) !important;
    color: var(--premium-white) !important;
    font-weight: 600;
    transform: translateX(8px);
    box-shadow: 0 2px 8px rgba(0, 128, 250, 0.3);
}

/* Modern Footer - Inspired by Screenshot */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ecf0f1 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    padding: 0 !important;
    position: relative;
    margin-top: auto;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    /*background: linear-gradient(90deg, #0080fa, #4da3fc, #0080fa);*/
}

.footer .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Navigation Links */
.footer-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav-link {
    color: #bdc3c7 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.footer-nav-link:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0080fa;
    transition: width 0.3s ease;
}

.footer-nav-link:hover::after {
    width: 100%;
}

/* Right Section */
.footer-right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-copyright {
    color: #bdc3c7;
    font-size: 0.85rem;
    text-align: right;
}

.footer-copyright .brand-text {
    color: #ffffff;
    font-weight: 600;
    font-family: 'Times New Roman', serif;
}

.footer-copyright .powered-by {
    color: #95a5a6;
    font-size: 0.8rem;
    margin-left: 5px;
}

.footer-actions {
    display: flex;
    align-items: center;
}

.footer-pages-btn {
    background: #0080fa !important;
    border: none !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-pages-btn:hover {
    background: #0066cc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 128, 250, 0.3);
}

/* Social Media Section */
.footer-social-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px 0 10px 0;
}

.footer-social-text {
    color: #bdc3c7;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer .social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer .social-link {
    color: #bdc3c7 !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer .social-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.footer .social-link.facebook:hover {
    background: #4267B2 !important;
    border-color: #4267B2 !important;
}

.footer .social-link.twitter:hover {
    background: #1DA1F2 !important;
    border-color: #1DA1F2 !important;
}

.footer .social-link.instagram:hover {
    background: #E4405F !important;
    border-color: #E4405F !important;
}

.footer .social-link.linkedin:hover {
    background: #0077B5 !important;
    border-color: #0077B5 !important;
}

.footer-established {
    color: #95a5a6;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-nav-links {
        gap: 20px;
        justify-content: center;
        margin-bottom: 15px;
    }

    .footer-right-section {
        align-items: center;
        text-align: center;
    }

    .footer-copyright {
        text-align: center !important;
    }

    .footer-social-section {
        gap: 15px;
        padding: 10px 0;
    }

    .footer-nav-link {
        font-size: 0.85rem;
    }
}

/* Button Styles */
.btn-outline-secondary {
    height: 32px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    font-size: 0.75rem;
}

.btn-group {
    height: 32px;
}

.btn-outline-secondary {
    border: 2px solid rgba(173, 26, 35, 0.3);
    color: var(--premium-red);
    background: var(--premium-white);
    font-weight: 600;
    border-radius: 6px;
    padding: 0 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-family: 'Times New Roman', serif;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, var(--premium-red) 0%, #8b1419 100%);
    border-color: var(--premium-red);
    color: var(--premium-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(173, 26, 35, 0.3);
}

.btn-premium {
    background: linear-gradient(135deg, var(--premium-red) 0%, #8b1419 100%);
    border: 2px solid var(--premium-red);
    color: var(--premium-white);
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(173, 26, 35, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-premium:hover {
    background: linear-gradient(135deg, #8b1419 0%, var(--premium-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(173, 26, 35, 0.4);
    color: var(--premium-white);
}

.badge-danger {
    background-color: var(--newspaper-red);
}

/* Mobile-First Responsive Design */

/* Extra Small Devices (portrait phones, <576px) */
@media (max-width: 575.98px) {
    body {
        padding-top: 120px !important; /* Increased for top bar + header */
        overflow-x: hidden;
        background: #fafbfc !important;
    }

    /* Show Top Black Bar on Mobile */
    .top-black-bar {
        display: block !important;
        height: 40px !important;
        z-index: 1051 !important;
        top: 0 !important;
    }

    .top-black-bar .top-nav-links {
        gap: 15px !important;
    }

    .top-black-bar .top-nav-link {
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
    }

    /* Modern Mobile Header */
    .newspaper-header {
        position: fixed !important;
        top: 40px !important; /* Position below top bar */
        left: 0 !important;
        right: 0 !important;
        z-index: 1050 !important;
        background: transparent !important; /* Let individual bars show their colors */
        box-shadow: 0 4px 20px rgba(0, 128, 250, 0.08) !important;
        backdrop-filter: none !important;
        border-bottom: none !important;
    }

    /* Hide brand bar on mobile */
    .brand-bar {
        display: none !important;
    }

    /* Main Header Bar - Mobile Only Branding */
    .main-header-bar {
        padding: 12px 0 !important;
        background: linear-gradient(135deg, #0080fa 0%, #0066cc 100%) !important;
    }

    .main-header-bar .row {
        margin: 0 !important;
    }

    .main-header-bar .col-md-3 {
        display: none !important; /* Hide advertisement spaces */
    }

    .main-header-bar .col-12.col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .main-header-bar .newspaper-logo .brand-name {
        font-size: 1.4rem !important;
        margin: 0 !important;
    }

    .main-header-bar .newspaper-logo .logo-text {
        font-size: 0.75rem !important;
        margin-top: 2px !important;
    }

    /* Red Controls Bar - Mobile Layout */
    .red-controls-bar {
        display: block !important;
        padding: 10px 0 !important;
        background: linear-gradient(135deg, #0080fa 0%, #0066cc 100%) !important;
    }

    .red-controls-bar .row {
        margin: 0 !important;
    }

    .red-controls-bar .col-md-3:first-child {
        display: block !important; /* Show date picker */
        flex: 0 0 auto !important;
        max-width: none !important;
    }

    .red-controls-bar .col-md-6 {
        display: none !important; /* Hide page navigation on mobile */
    }

    .red-controls-bar .col-md-3:last-child {
        display: block !important; /* Show download button */
        flex: 0 0 auto !important;
        max-width: none !important;
        margin-left: auto !important;
        text-align: right !important;
    }

    /* Ensure download button container alignment */
    .red-controls-bar .col-md-3:last-child .header-controls {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    .red-controls-bar .container-fluid .row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Mobile Date Picker */
    .unified-date-component {
        background: rgba(255,255,255,0.1) !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        color: #ffffff !important;
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        min-width: auto !important;
        height: 32px !important;
        border-radius: 4px !important;
    }

    .current-date-text {
        color: #ffffff !important;
        font-weight: 500 !important;
    }

    .calendar-icon {
        color: #ffffff !important;
        opacity: 0.8 !important;
    }

    /* Mobile Download Button */
    .header-controls {
        gap: 8px !important;
    }

    .header-control-btn {
        font-size: 1rem !important;
        padding: 8px 12px !important;
        margin: 2px 2px !important;
        min-width: 0px !important;
        height: 36px !important;
        background: rgba(255,255,255,0.1) !important;
        border: 1px solid rgba(255,255,255,0.3) !important;

        border-radius: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 500 !important;
    }

    /* Hide zoom controls on mobile, show only download */
   /* .header-control-btn:not(.downloadPdf) {
        display: none !important;
    }*/

    /* Mobile Component Styles */
    .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Ensure proper z-index stacking */
    .news-viewer {
        z-index: 1 !important;
        margin-top: 0 !important;
    }

    .sidebar {
        z-index: 1 !important;
    }

    /* Modern Category Bar - Same as Desktop */
    .nav-tabs-bar {
        height: 55px !important;
        padding: 0 16px !important;
        position: relative !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0, 128, 250, 0.15) !important;
    }

    .nav-categories-container {
        height: 55px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        position: relative !important;
        padding: 0 !important;
    }

    .nav-categories-container::-webkit-scrollbar {
        display: none !important;
    }

    .nav-categories {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 2px !important;
        padding: 8px 0 !important;
        min-width: max-content !important;
        height: 100% !important;
    }


    /* Critical overrides to ensure elements are visible */
    .unified-date-component {
        display: flex !important;
        visibility: visible !important;
    }

    .main-header-bar {
        display: block !important;
        visibility: visible !important;
    }

    .brand-name {
        display: block !important;
        visibility: visible !important;
        color: #ffffff !important;
    }
}

/* Additional Mobile Styles */
@media (max-width: 575.98px) {

    /* User controls */
    .premium-subscription-btn {
        height: 24px !important;
        padding: 0 6px !important;
        font-size: 0.65rem !important;
        background: #ffc107 !important;
        border-color: #ffc107 !important;
        color: #212529 !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
    }

    .premium-subscription-btn i {
        font-size: 0.6rem !important;
    }

    .premium-user-btn {
        height: 24px !important;
        padding: 0 6px !important;
        font-size: 0.65rem !important;
        min-width: 50px !important;
        border-radius: 4px !important;
    }

    .fullscreen-btn {
        height: 24px !important;
        width: 24px !important;
        padding: 0 !important;
        font-size: 0.7rem !important;
        margin-right: 4px !important;
    }

    /* Hide zoom controls completely on mobile */
    .compact-controls,
    .fullscreen-btn {
        display: none !important;
    }

    /* Show date picker and page navigation controls */
    .unified-date-component,
    .page-navigation-controls {
        display: flex !important;
    }
    .dropdown{
        position:absolute !important; top:  0; right: 0;z-index:1059
    }

    /* Hide text on mobile buttons */
    .d-none.d-sm-inline {
        display: none !important;
    }

    /* Category Navigation Bar - Override with blue theme */

    /* Mobile Component Styles */
    .unified-date-component {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 4px 8px !important;
        height: 24px !important;
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 4px !important;
        cursor: pointer !important;
        font-size: 0.7rem !important;
    }

    .current-date-text {
        font-size: 0.7rem !important;
        color: #495057 !important;
        font-weight: 500 !important;
    }

    .calendar-icon {
        font-size: 0.7rem !important;
        color: #6c757d !important;
    }

    .page-navigation-controls {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        height: 24px !important;
    }

    .page-nav-control {
        width: 24px !important;
        height: 24px !important;
        padding: 0 !important;
        font-size: 0.7rem !important;
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #495057 !important;
    }

    .page-nav-control:hover {
        background: #e9ecef !important;
        border-color: #adb5bd !important;
    }

    .page-info {
        font-size: 0.65rem !important;
        color: #6c757d !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        padding: 0 4px !important;
    }

    /* Logo styling */
    .newspaper-logo .brand-name {
        font-size: 1.4rem !important;
        line-height: 1 !important;
        margin-bottom: 3px !important;
        color: #2c3e50 !important;
        font-weight: 700 !important;
    }

    .newspaper-logo .logo-text {
        font-size: 0.85rem !important;
        line-height: 1 !important;
        color: #6c757d !important;
        display: block !important;
    }

    /* User controls */
    .premium-subscription-btn {
        height: 24px !important;
        padding: 0 6px !important;
        font-size: 0.65rem !important;
        background: #ffc107 !important;
        border-color: #ffc107 !important;
        color: #212529 !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
    }

    .premium-subscription-btn i {
        font-size: 1rem !important;
    }

    .premium-user-btn {
        height: 24px !important;
        padding: 0 6px !important;
        font-size: 0.65rem !important;
        min-width: 50px !important;
        border-radius: 4px !important;
    }

    .fullscreen-btn {
        height: 24px !important;
        width: 24px !important;
        padding: 0 !important;
        font-size: 0.7rem !important;
        margin-right: 4px !important;
    }

    /* Hide zoom controls completely on mobile */
    .compact-controls {
        display: none !important;
    }

    /* Hide text on mobile buttons */
    .d-none.d-sm-inline {
        display: none !important;
    }

    /* Touch improvements */
    .unified-date-component,
    .page-nav-control,
    .nav-category,
    .premium-user-btn,
    .premium-subscription-btn,
    .fullscreen-btn {
        -webkit-tap-highlight-color: rgba(44, 62, 80, 0.2) !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    /* Active states for better feedback */
    .page-nav-control:active,
    .premium-user-btn:active,
    .premium-subscription-btn:active,
    .fullscreen-btn:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }

    /* Dropdown improvements */
    .dropdown-menu {
        min-width: 160px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        margin-top: 4px !important;
    }

    .dropdown-item {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    body {
        padding-top: 110px !important;
    }

    .controls-bar {
        height: 50px !important;
        padding: 6px 12px !important;
    }

    .controls-bar .d-flex.align-items-center.justify-content-between {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .nav-tabs-bar {
        height: 36px !important;
    }

    .nav-categories-container {
        height: 36px !important;
    }

    .nav-category {
        height: 26px !important;
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    .unified-date-component {
        height: 28px !important;
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }

    .page-navigation-controls {
        height: 28px !important;
    }

    .page-nav-control {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.75rem !important;
    }

    .premium-user-btn,
    .premium-subscription-btn,
    .fullscreen-btn {
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    .compact-controls {
        display: flex !important;
    }

    .newspaper-logo .brand-name {
        font-size: 1.1rem !important;
    }

    .newspaper-logo .logo-text {
        font-size: 0.65rem !important;
    }
}

/* Form Controls */
.form-control {
    height: 32px !important;
    font-size: 0.8rem !important;
    padding: 0 8px !important;
    min-width: 80px !important;
}

.btn-group .btn,
.btn-outline-secondary {
    height: 32px !important;
    padding: 0 8px !important;
    font-size: 0.8rem !important;
    min-width: 32px !important;
}

/* Content Area */
.news-viewer {
    margin-left: 0 !important;
}


.newspaper-page {
    padding: 1rem !important;
    margin: 0 !important;
}

/* Footer */
.footer {
    padding: 0.6rem 0 !important;
}

.footer .container {
    padding: 0 0.5rem !important;
}

.footer .brand-name {
    font-size: 1rem !important;
}

.footer .copyright-text {
    font-size: 0.65rem !important;
    margin-top: 0.3rem !important;
}

.footer .footer-links {
    gap: 0.4rem !important;
    margin-bottom: 0.5rem !important;
}

.footer .footer-link {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.4rem !important;
}

.footer .social-links {
    gap: 0.4rem !important;
    padding-top: 0.5rem !important;
}

.footer .social-link {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.7rem !important;
}

/* Touch-friendly improvements */
.nav-category:hover,
.nav-category:focus {
    color: var(--material-primary);
    background: rgba(25, 118, 210, 0.04);
    text-decoration: none;

}

.page-nav-control:hover,
.page-nav-control:focus {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
}

/* Guest Dropdown Mobile */
.dropdown-menu {
    min-width: 180px !important;
    font-size: 0.8rem !important;
}

.dropdown-item {
    padding: 0.75rem 1rem !important;
    font-size: 0.8rem !important;
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    body {
        padding-top: 120px;
    }

    .controls-bar {
        height: 50px !important;
    }

    .controls-bar .d-flex {
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .nav-tabs-bar {
        height: 38px !important;
    }

    .nav-categories-container {
        height: 38px !important;
    }

    .nav-category {
        height: 30px !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    .unified-date-component {
        height: 32px !important;
        min-width: 110px !important;
    }

    .page-navigation-controls {
        height: 32px !important;
        min-width: 130px !important;
    }

    .page-nav-control {
        height: 30px !important;
        width: 30px !important;
    }

    .premium-user-btn,
    .premium-subscription-btn,
    .fullscreen-btn {
        height: 32px !important;
    }

    .compact-controls {
        display: flex !important;
    }
}

/* Mobile Header Layout Fixes */
@media (max-width: 575.98px) {
    /* Override Bootstrap's responsive utilities for better mobile layout */
    .d-none.d-sm-inline-block {
        display: none !important;
    }

    .d-none.d-sm-inline {
        display: none !important;
    }

    /* Header container fixes */
    .newspaper-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1050 !important;
        background: white !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }

    /* Controls bar specific mobile layout */
    .controls-bar .container-fluid .d-flex.align-items-center.justify-content-between {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        height: 100% !important;
    }

    /* First row: Date + Page controls */
    .controls-bar .d-flex.align-items-center:first-child {
        order: 1 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    /* Second row: Logo */
    .controls-bar .text-center {
        order: 2 !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    /* Third row: User controls */
    .controls-bar .d-flex.align-items-center:last-child {
        order: 3 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    /* Category navigation improvements */
    .nav-categories {
        align-items: center !important;
        height: 100% !important;
    }

    .nav-category {
        transition: all 0.2s ease !important;
        position: relative !important;
    }

    .nav-category::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(44, 62, 80, 0.1);
        border-radius: 14px;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .nav-category:active::before {
        opacity: 1;
    }

    /* Improve touch targets */
    .unified-date-component,
    .page-nav-control,
    .nav-category {
        -webkit-tap-highlight-color: rgba(44, 62, 80, 0.2) !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
}

/* Tablet specific improvements */
@media (min-width: 576px) and (max-width: 991.98px) {
    .controls-bar .d-flex {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .nav-text {
        display: inline !important;
    }

    .compact-controls {
        display: flex !important;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    body {
        padding-top: 135px;
    }

    .brand-bar {
        height: 50px;
        padding: 0 15px;
    }

    .brand-bar .brand-name {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .controls-bar {
        height: 55px;
        padding: 8px 15px;
    }

    .nav-tabs-bar {
        height: 42px;
        padding: 0 15px;
    }

    .nav-category {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .unified-date-component {
        height: 36px;
        padding: 8px 10px;
    }

    .page-navigation-controls {
        height: 36px;
        padding: 6px;
    }

    .btn-compact {
        height: 36px !important;
        padding: 0 10px !important;
        font-size: 0.8rem !important;
    }

    .premium-user-btn {
        height: 36px !important;
        min-width: 80px !important;
        font-size: 0.8rem !important;
        padding: 0 10px !important;
    }

    .newspaper-page {
        padding: 1.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    body {
        padding-top: 140px;
    }

    .brand-bar {
        height: 55px;
        padding: 0 20px;
    }

    .controls-bar {
        height: 60px;
        padding: 10px 20px;
    }

    .nav-tabs-bar {
        height: 45px;
        padding: 0 20px;
    }

    .newspaper-page {
        padding: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    body {
        padding-top: 145px;
    }

    .brand-bar {
        height: 60px;
        padding: 0 30px;
    }

    .controls-bar {
        height: 65px;
        padding: 12px 30px;
    }

    .nav-tabs-bar {
       //
    }

    .newspaper-page {
        padding: 2.5rem;
        max-width: 1000px;
        margin: 0 auto;
    }
}

/* Page Grid */
.page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.page-thumbnail {
    aspect-ratio: 3/4;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--newspaper-gray);
    background: var(--newspaper-white);
    position: relative;
    padding: 4px;
}

.page-thumbnail:hover {
    border-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.page-thumbnail.active {
    border-color: #2c3e50;
    background: #2c3e50;
    color: #ffffff;
    font-weight: 700;
}

.page-thumbnail .page-number {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
}

/* Card Styles */
.card {
    background: var(--newspaper-white) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.card-body h6 {
    color: var(--newspaper-black) !important;
    font-weight: 700;
}

.card-body h6 i {
    color: var(--newspaper-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 95px;
    }

    .newspaper-title {
        font-size: 2rem;
    }

    /* Compact Footer Responsive */
    .footer {
        padding: 0.8rem 0 !important;
    }

    .footer .brand-name {
        font-size: 1.1rem !important;
        text-align: center;
    }

    .footer .copyright-text {
        text-align: center;
        font-size: 0.75rem;
        color: #666666 !important;
        line-height: 1.4;
        margin-top: 0.25rem;
    }

    .footer .footer-links {
        justify-content: center;
        gap: 0.7rem;
        margin-bottom: 0.7rem;
    }

    .footer .footer-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        color: #666666 !important;
    }

    .footer .social-links {
        justify-content: center;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e1e5e9;
        padding-top: 0.7rem;
        gap: 0.6rem;
    }

    .footer .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        color: #666666 !important;
        background: #f8f9fa;
        border: 1px solid #e1e5e9;
    }

    .footer .powered-by-text {
        font-size: 0.65rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: none;
    outline-offset: 2px;
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar,
.news-viewer::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.news-viewer::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.sidebar::-webkit-scrollbar-thumb,
.news-viewer::-webkit-scrollbar-thumb {
    background: var(--newspaper-red);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.news-viewer::-webkit-scrollbar-thumb:hover {
    background: #0066cc;
}

/* Mobile Horizontal Scroll Improvements */
@media (max-width: 575.98px) {
    .controls-bar {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .controls-bar::-webkit-scrollbar {
        display: none !important;
    }

    /* Mobile Horizontal Scroll Improvements */
    @media (max-width: 575.98px) {
        /* Category bar scroll indicators */
        .nav-categories-container {
            position: relative !important;
        }

        .nav-categories-container::before,
        .nav-categories-container::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 10px;
            pointer-events: none;
            z-index: 1;
            transition: opacity 0.3s ease;
        }

        .nav-categories-container::before {
            left: 0;
        }

        .nav-categories-container::after {
            right: 0;
        }

        /* Better scroll behavior */
        .nav-categories-container {
            scroll-behavior: smooth !important;
        }

        /* Add some padding to show scroll affordance */
        .nav-categories {
            padding-left: 12px !important;
            padding-right: 12px !important;
        }

        /* First and last category margin */
        .nav-category:first-child {
            margin-left: 0 !important;
        }

        .nav-category:last-child {
            margin-right: 0 !important;
        }
    }

    /* Enhanced touch interactions */
    @media (max-width: 767.98px) {
        /* Improve button press feedback */
        .page-nav-control:active,
        .btn-compact:active,
        .premium-user-btn:active,
        .premium-subscription-btn:active {
            transform: scale(0.95) !important;
            transition: transform 0.1s ease !important;
        }

        /* Better dropdown positioning */
        .dropdown-menu {
            transform: translateX(-50%) !important;
            left: 50% !important;
            right: auto !important;
            margin-top: 4px !important;
            border-radius: 8px !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        }
    }
}

/* Landscape Phone Optimizations */
@media (max-width: 767px) and (orientation: landscape) {
    body {
        padding-top: 100px !important;
    }

    .brand-bar {
        height: 35px !important;
    }

    .controls-bar {
        height: 40px !important;
    }

    .nav-tabs-bar {
        height: 30px !important;
    }

    .unified-date-component,
    .page-navigation-controls,
    .btn-compact,
    .premium-user-btn {
        height: 28px !important;
    }
}

/* Ultra-wide screens optimization */
@media (min-width: 1400px) {
    .container,
    .container-fluid {
        max-width: 1320px !important;
    }

    .newspaper-page {
        max-width: 100% !important;
    }
}

/* Print Styles */
@media print {
    .newspaper-header,
    .sidebar,
    .page-controls,
    .footer {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: white !important;
        color: black !important;
    }

    .news-viewer {
        margin-left: 0 !important;
        width: 100% !important;
        min-height: auto;
        background: white !important;
    }

    .newspaper-container {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
        border: none;
    }

    .newspaper-page {
        padding: 0;
        transform: none !important;
        min-height: auto;
        background: white !important;
        color: black !important;
    }
}

/* Zoom Levels */
.newspaper-page.zoom-50 {
    transform: scale(0.5);
}

.newspaper-page.zoom-75 {
    transform: scale(0.75);
}

.newspaper-page.zoom-100 {
    transform: scale(1);
}

.newspaper-page.zoom-125 {
    transform: scale(1.25);
}

.newspaper-page.zoom-150 {
    transform: scale(1.5);
}

.newspaper-page.zoom-200 {
    transform: scale(2);
}

/* Loading Spinner */
#loadingSpinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--premium-white);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(173, 26, 35, 0.3);
    border: 2px solid var(--premium-red);
    z-index: 20;
    color: var(--premium-black);
}

#loadingSpinner .spinner-border {
    color: var(--premium-red) !important;
}

/* Button Styles */
.btn-link {
    border: none !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link:hover {
    background-color: rgba(173, 26, 35, 0.1);
    border-radius: 4px;
}

/* Card Styles */
/* Form Controls */
.form-control {
    background: var(--premium-white);
    border: 1px solid var(--premium-red);
    color: var(--premium-black);
}

.form-control:focus {
    border-color: var(--premium-yellow);
    box-shadow: 0 0 0 0.2rem rgba(231, 231, 73, 0.25);
    background: var(--premium-white);
    color: var(--premium-black);
}

/* List Group */
.list-group-item {
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: transparent !important;
    border: none !important;
    color: var(--premium-black) !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(173, 26, 35, 0.2) !important;
}

.list-group-item:hover {
    background: rgba(173, 26, 35, 0.1) !important;
    color: var(--premium-yellow) !important;
    transform: translateX(5px);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--premium-red) 0%, #8b1419 100%) !important;
    color: var(--premium-white) !important;
    font-weight: 700;
    transform: translateX(8px);
    box-shadow: 0 2px 8px rgba(173, 26, 35, 0.3);
}

/* Footer Styles */
.footer {
    background: var(--premium-black) !important;
    margin-top: auto;
    color: var(--premium-black);
}

.footer .text-muted {
    color: #6c757d !important;
}

.footer a:hover {
    color: var(--premium-yellow) !important;
    text-decoration: underline !important;
}

/* Responsive Design */
@media (max-width: 768px) {

    .main-wrapper::after {
        content: '';
        position: fixed;
        top: 110px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.8);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1030;
    }

    .main-wrapper.sidebar-open::after {
        opacity: 1;
        pointer-events: all;
    }

    .newspaper-title {
        font-size: 2.5rem !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */


/* Custom Scrollbar */
.sidebar::-webkit-scrollbar,
.news-viewer::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.news-viewer::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.sidebar::-webkit-scrollbar-thumb,
.news-viewer::-webkit-scrollbar-thumb {
    background: var(--premium-red);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.news-viewer::-webkit-scrollbar-thumb:hover {
    background: var(--premium-yellow);
}

/* Newspaper-style Authentication Modal */
.premium-auth-modal {
    border: 3px double #2c3e50;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.2);
    background: #fefefe;
    overflow: hidden;
    font-family: 'Times New Roman', serif;
}

.premium-auth-header {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    border: none;
    padding: 1.5rem 2rem;
    position: relative;
    border-bottom: 2px solid #1a252f;
}

.premium-auth-logo {
    text-align: center;
    position: relative;
    z-index: 2;
}

.premium-auth-title {
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 0;
    color: #ecf0f1;
}

.premium-auth-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-style: italic;
    color: #bdc3c7;
}

.premium-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecf0f1;
    font-size: 1.2rem;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
}

.premium-close-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.premium-auth-body {
    padding: 2rem;
    background: #fafafa;
    border-top: 1px solid #e1e5e9;
}

.premium-form-title {
    color: #2c3e50;
    font-weight: 700;
    font-family: 'Times New Roman', serif;
    letter-spacing: 0.5px;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.premium-form-label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: 'Times New Roman', serif;
}

.premium-auth-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fff;
    font-weight: 500;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    font-family: 'Times New Roman', serif;
}

.premium-auth-input:focus {
    border-color: #0080fa;
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 250, 0.15), inset 0 1px 3px rgba(0,0,0,0.1);
    outline: none;
}

.premium-checkbox {
    border: 1px solid #ddd;
    border-radius: 3px;
}

.premium-checkbox:checked {
    background-color: #0080fa;
    border-color: #0080fa;
}

.premium-checkbox-label {
    color: #555;
    font-size: 0.9rem;
    font-family: 'Times New Roman', serif;
}

.btn-premium {
    background: linear-gradient(180deg, #0080fa 0%, #0066cc 100%);
    border: 1px solid #0080fa;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: 'Times New Roman', serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-premium:hover {
    background: linear-gradient(180deg, #0066cc 0%, #004d99 100%);
    border-color: #004d99;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 128, 250, 0.3);
}

.premium-auth-link {
    color: #0080fa;
    font-weight: 600;
    transition: color 0.2s ease;
    text-decoration: none;
}

.premium-auth-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.auth-title {
    color: var(--premium-blue);
    font-weight: 700;
    font-family: 'Times New Roman', serif;
    letter-spacing: 1px;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.auth-input {
    border: 2px solid rgba(0, 128, 250, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--premium-white);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.auth-input:focus {
    border-color: var(--premium-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 250, 0.15), 0 4px 12px rgba(0, 128, 250, 0.1);
    background: var(--premium-white);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 700;
    color: var(--premium-black);
    margin-bottom: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.auth-link {
    color: var(--premium-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link:hover {
    color: var(--premium-blue-dark);
    text-decoration: none;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--premium-blue);
    transition: width 0.3s ease;
}

.auth-link:hover::after {
    width: 100%;
}

.form-check-input:checked {
    background-color: var(--premium-blue);
    border-color: var(--premium-blue);
    box-shadow: 0 2px 4px rgba(0, 128, 250, 0.3);
}

.form-check-input:focus {
    border-color: var(--premium-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 250, 0.15);
}

.form-check-label {
    font-weight: 500;
    color: var(--premium-gray);
}

/* Newspaper-style User Dropdown */
.premium-user-btn {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 0 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    font-family: 'Times New Roman', serif !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    min-width: 70px !important;
    font-size: 0.75rem !important;
}

.premium-user-btn:hover {
    background: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(44,62,80,0.3) !important;
}

.premium-user-btn:focus {
    background: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(44,62,80,0.15), 0 2px 6px rgba(44,62,80,0.3) !important;
}

.premium-dropdown {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.15);
    background: #ffffff;
    min-width: 200px;
    z-index: 1060 !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    margin-top: 8px !important;
}

.premium-dropdown-item {
    color: #2c3e50;
    font-weight: 500;
    font-family: 'Times New Roman', serif;
    padding: 12px 20px;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 4px;
}

.premium-dropdown-item:hover {
    background: #f8f9fa;
    color: #1a252f;
    text-decoration: none;
}

.premium-dropdown-divider {
    border-color: #e1e5e9;
    margin: 8px 0;
}
/* Mobile Horizontal Scroll Improvements */
@media (max-width: 575.98px) {
    .premium-dropdown {

        top: 40px !important;
        right: 20px !important;
    }
    .mobile-mt-60 {
        margin-top: 60px !important;
        margin-left: 20px !important;
    }
}
/* Zoom Feedback */
.zoom-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(173, 26, 35, 0.9);
    color: var(--premium-white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 8px 25px rgba(173, 26, 35, 0.4);
    display: none;
    animation: zoomFeedbackShow 0.3s ease;
}

@keyframes zoomFeedbackShow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Enhanced Date Picker Styles */
.unified-date-component {
    cursor: pointer;
    user-select: none;
}

.unified-date-component:active {
    transform: translateY(1px);
}

/* Clickable Zoom Level Button */
#zoomLevel {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
}

#zoomLevel:hover {
    background: rgba(173, 26, 35, 0.1) !important;
    transform: translateY(-1px) !important;
}

#zoomLevel:active {
    transform: translateY(0) !important;
    background: rgba(173, 26, 35, 0.2) !important;
}

/* Premium Notification */
.premium-notification {
    border: 2px solid var(--premium-red);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(173, 26, 35, 0.3);
    background: var(--premium-white);
    color: var(--premium-black);
}

.premium-notification.alert-success {
    border-color: #28a745;
    background: #d4edda;
}

.premium-notification.alert-danger {
    border-color: var(--premium-red);
    background: #f8d7da;
}

.premium-notification.alert-info {
    border-color: #17a2b8;
    background: #d1ecf1;
}

/* Premium Subscription Button */
.premium-subscription-btn {
    background: #ffd700;
    border: 1px solid #ffd700;
    color: var(--premium-black);
    font-weight: 600;
    border-radius: 4px;
    padding: 0 6px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.2);
    font-size: 0.65rem;
    font-family: 'Times New Roman', serif;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 60px;
    margin-right: 12px;
}

.premium-subscription-btn:hover {
    background: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
    color: var(--premium-black);
}

.premium-subscription-btn i {
    color: #b8860b;
    font-size: 0.6rem;
}

/* Newspaper-style Subscription Modal */
.premium-subscription-modal {
    border: 3px double #2c3e50;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(44, 62, 80, 0.25);
    background: #fefefe;
    overflow: hidden;
    font-family: 'Times New Roman', serif;
}

.premium-subscription-header {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    border: none;
    padding: 1.5rem 2rem;
    position: relative;
    border-bottom: 2px solid #1a252f;
}

.premium-subscription-logo {
    text-align: center;
    position: relative;
    z-index: 2;
}

.premium-crown-icon {
    font-size: 2rem;
    color: #f39c12;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.premium-subscription-title {
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 0;
    color: #ecf0f1;
}

.premium-subscription-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-style: italic;
    color: #bdc3c7;
}

.premium-subscription-body {
    padding: 2rem;
    background: #fafafa;
    border-top: 1px solid #e1e5e9;
}

.premium-subscription-heading {
    color: #2c3e50;
    font-weight: 700;
    font-family: 'Times New Roman', serif;
    letter-spacing: 0.5px;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.premium-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.premium-plan-wrapper {
    position: relative;
}

.premium-plan-card {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.premium-plan-card:hover {
    border-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.15);
}

.premium-plan-popular {
    border-color: #2c3e50;
    background: #f8f9fa;
}

.premium-popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.premium-plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.premium-plan-icon {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.premium-plan-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', serif;
}

.premium-plan-price {
    margin-bottom: 0.5rem;
}

.premium-price-currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.premium-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    font-family: 'Times New Roman', serif;
}

.premium-price-period {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.premium-plan-savings {
    background: #e8f5e8;
    color: #27ae60;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.premium-plan-features {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.premium-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-feature-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
}

.premium-check {
    color: #27ae60;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.premium-plan-btn {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    border: 1px solid #2c3e50;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-plan-btn:hover {
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
    border-color: #1a252f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.premium-plan-btn-popular {
    background: linear-gradient(180deg, #27ae60 0%, #229954 100%);
    border-color: #27ae60;
}

.premium-plan-btn-popular:hover {
    background: linear-gradient(180deg, #229954 0%, #27ae60 100%);
    border-color: #1e8449;
}

.premium-payment-methods {
    margin-top: 1rem;
}

.premium-payment-methods i {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    color: #666;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.premium-payment-methods i:hover {
    opacity: 1;
}



/* Subscription Plan Cards */

/* Responsive Design for Subscription Modal */
@media (max-width: 1200px) {
    .premium-plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .premium-plans-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .premium-plan-popular {
        transform: none;
    }

    .premium-plan-card {
        min-height: 400px;
        padding: 1.5rem 1rem;
    }



    .premium-price-amount {
        font-size: 2rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 575.98px) {
    /* Authentication Modal Mobile */
    .auth-modal .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100vw - 1rem) !important;
    }

    .auth-modal .modal-content {
        border-radius: 8px !important;
    }

    .auth-modal .modal-header {
        padding: 1rem !important;
    }

    .auth-modal .modal-body {
        padding: 1rem !important;
    }

    .auth-modal .form-control {
        height: 40px !important;
        font-size: 0.9rem !important;
    }

    .auth-modal .btn {
        height: 40px !important;
        font-size: 0.9rem !important;
    }

    /* Subscription Modal Mobile */
    .premium-subscription-header {
        padding: 1rem !important;
    }

    .premium-subscription-title {
        font-size: 1.3rem !important;
    }

    .premium-subscription-body {
        padding: 1rem !important;
    }

    .premium-plans-grid {
        gap: 0.8rem !important;
    }

    .premium-plan-card {
        padding: 1rem !important;
        min-height: 300px !important;
    }

    .premium-plan-title {
        font-size: 1.1rem !important;
    }

    .premium-price-amount {
        font-size: 1.8rem !important;
    }

    .premium-plan-feature {
        font-size: 0.8rem !important;
        padding: 0.4rem 0 !important;
    }

    .premium-plan-btn {
        height: 40px !important;
        font-size: 0.85rem !important;
    }

    /* Date Picker Mobile */
    .date-picker-container {
        max-width: 300px !important;
        width: 95% !important;
        margin: 0.5rem !important;
    }

    .date-picker-header {
        padding: 12px 16px !important;
    }

    .date-picker-body {
        padding: 16px !important;
    }

    .date-picker-body .form-control {
        height: 40px !important;
        font-size: 0.9rem !important;
    }

    .date-picker-body .btn {
        height: 40px !important;
        font-size: 0.9rem !important;
        padding: 0 16px !important;
    }

    /* General Mobile Improvements */
    .brand-title {
        font-size: 1rem !important;
    }
    .newspaper-container {
        margin-top: 0 !important;
        max-width: 100%;
    }
    .page-controls {
        left: 0;
        right: 0;
    }
    .page-nav-btn {
        width: 45px;
        height: 45px;
    }
    .newspaper-page {
        padding: 0.5rem !important;
    }

    .article-headline {
        font-size: 1.2rem !important;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    /* Touch-friendly button sizes */
    .nav-category {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .page-nav-control {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    .btn-compact {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* Guest Dropdown Mobile */
    .guest-dropdown {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        width: 200px !important;
        max-width: 90vw !important;
        margin-top: 2px !important;
    }

    .guest-dropdown .dropdown-item {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
    }
}

/* Small Device Optimizations */
@media (min-width: 576px) and (max-width: 767.98px) {
    .auth-modal .modal-dialog {
        margin: 1rem !important;
        max-width: 500px !important;
    }

    .date-picker-container {
        max-width: 350px !important;
    }

    .premium-plan-card {
        min-height: 350px !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .page-controls,
    .footer,
    .section-tabs {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: white !important;
        color: black !important;
    }

    .news-viewer {
        margin-left: 0 !important;
        width: 100% !important;
        min-height: auto;
        background: white !important;
    }

    .newspaper-container {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
        border: none;
    }

    .newspaper-page {
        padding: 0;
        transform: none !important;
        min-height: auto;
        background: white !important;
        color: black !important;
    }

    .brand-title,
    .newspaper-title {
        color: black !important;
    }
}

/* Date Picker Overlay Styles */
.date-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1070;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.date-picker-overlay.show {
    opacity: 1;
}

.date-picker-container {
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(44, 62, 80, 0.2);
    max-width: 350px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid #e1e5e9;
}

.date-picker-overlay.show .date-picker-container {
    transform: scale(1);
}

.date-picker-header {
    background: #2c3e50;
    color: white;
    padding: 16px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-picker-header h6 {
    color: white;
    font-weight: 600;
    font-family: 'Times New Roman', serif;
}

.date-picker-header .btn-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.date-picker-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.date-picker-header .btn-close::before {
    content: '×';
}

.date-picker-body {
    padding: 20px;
    background: #ffffff;
}

.date-picker-body .form-control {
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: 'Times New Roman', serif;
    transition: all 0.2s ease;
}

.date-picker-body .form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    outline: none;
}

.date-picker-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.date-picker-actions .btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-family: 'Times New Roman', serif;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.date-picker-actions .btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.date-picker-actions .btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

.date-picker-actions .btn-primary {
    background: #0080fa;
    border-color: #0080fa;
    color: #ffffff;
}

.date-picker-actions .btn-primary:hover {
    background: #0066cc;
    border-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 128, 250, 0.2);
}

.page-navigation-controls {
    position: relative;
}

/* Social Media Icons Styling */
.text-muted a[title*="Follow us"],
.text-muted a[title*="Connect with us"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 14px;
}

.text-muted a[title*="Follow us"]:hover,
.text-muted a[title*="Connect with us"]:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* Individual social media colors on hover */
.text-muted a[title*="Facebook"]:hover {
    color: #1877f2 !important;
    background-color: rgba(24, 119, 242, 0.1);
}

.text-muted a[title*="Twitter"]:hover {
    color: #1da1f2 !important;
    background-color: rgba(29, 161, 242, 0.1);
}

.text-muted a[title*="Instagram"]:hover {
    color: #e4405f !important;
    background-color: rgba(228, 64, 95, 0.1);
}

.text-muted a[title*="LinkedIn"]:hover {
    color: #0077b5 !important;
    background-color: rgba(0, 119, 181, 0.1);
}

/* Mobile Side Menu Styles */
.mobile-menu-toggle {
    background: transparent !important;
    border: none !important;
    color: #495057 !important;
    font-size: 1.1rem !important;
    padding: 0 !important;
    height: 36px !important;
    width: 36px !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background: #f8f9fa !important;
    color: #2c3e50 !important;
    box-shadow: none !important;
}

.mobile-side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.mobile-side-menu.active {
    visibility: visible;
    opacity: 1;
}

.mobile-side-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mobile-side-menu-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transition: left 0.3s ease;
}

.mobile-side-menu.active .mobile-side-menu-content {
    right: 0;
}

.mobile-side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.mobile-side-menu-header h5 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.mobile-side-menu-close {
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mobile-side-menu-close:hover {
    background: #e9ecef;
    color: #495057;
}

.mobile-side-menu-body {
    padding: 0;
}

.mobile-menu-section {
    border-bottom: 1px solid #f1f3f5;
}

.mobile-menu-section:last-child {
    border-bottom: none;
}

.mobile-menu-section-title {
    padding: 12px 20px 8px;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-items {
    padding-bottom: 8px;
}

.mobile-menu-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 0.875rem;
    color: #495057;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mobile-menu-item:hover {
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
}

.mobile-menu-item i {
    width: 20px;
    color: #6c757d;
    font-size: 0.875rem;
}

.mobile-menu-item.premium-item {
    color: var(--premium-red);
}

.mobile-menu-item.premium-item i {
    color: var(--premium-red);
}

.mobile-menu-item.premium-item:hover {
    background: rgba(173, 26, 35, 0.05);
    color: var(--premium-red);
}

.mobile-menu-item.user-info {
    background: #f8f9fa;
    cursor: default;
    font-weight: 500;
}

.mobile-menu-item.user-info:hover {
    background: #f8f9fa;
}

.mobile-menu-item.page-info-mobile {
    background: #f8f9fa;
    cursor: default;
    font-weight: 500;
    color: #2c3e50;
}

.mobile-menu-item.page-info-mobile:hover {
    background: #f8f9fa;
}

/* Mobile Date Picker Styles */
.mobile-menu-item.date-picker-mobile {
    position: relative;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin: 0 8px 8px 8px;
    transition: all 0.2s ease;
}

.mobile-menu-item.date-picker-mobile:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.mobile-date-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Hide mobile menu on desktop */
@media (min-width: 576px) {
    .mobile-side-menu {
        display: none;
    }
}

/* Additional mobile overrides to ensure elements are hidden */
@media (max-width: 575.98px) {
    .unified-date-component,
    .page-navigation-controls {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }

    /* Ensure modals appear above mobile side menu */
    .modal {
        z-index: 1070 !important;
    }

    .modal-backdrop {
        z-index: 1065 !important;
    }
}

/* CRITICAL MOBILE OVERRIDES - Final priority */
@media (max-width: 575.98px) {
    /* Force visibility of essential mobile elements with ultra-high specificity */
    body .newspaper-header .main-header-bar {
        display: block !important;

        height: auto !important;
        padding: 12px 0 !important;
    }

    body .newspaper-header .main-header-bar .container-fluid {
        display: block !important;
        visibility: visible !important;
    }

    body .newspaper-header .main-header-bar .row {
        display: flex !important;
        visibility: visible !important;
    }

    body .newspaper-header .main-header-bar .col-12.col-md-6 {
        display: block !important;
        visibility: visible !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    body .newspaper-header .main-header-bar .newspaper-logo {
        display: block !important;
        visibility: visible !important;
    }

    body .newspaper-header .main-header-bar .newspaper-logo .brand-name {
        display: block !important;
        visibility: visible !important;
        color: #ffffff !important;
        font-size: 1.4rem !important;
        margin: 0 !important;
        opacity: 1 !important;
    }

    body .newspaper-header .red-controls-bar .unified-date-component {
        display: flex !important;
        visibility: visible !important;
        background: rgba(255,255,255,0.1) !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        color: #ffffff !important;
        opacity: 1 !important;
    }

    body .newspaper-header .red-controls-bar {
        display: block !important;
        visibility: visible !important;
        background: linear-gradient(135deg, #0080fa 0%, #0066cc 100%) !important;
        opacity: 1 !important;
    }

    body .newspaper-header .nav-tabs-bar {
        height: 55px !important;
        display: block !important;
        visibility: visible !important;
    }

    body .newspaper-header .nav-category {

    }

    body .newspaper-header .nav-category:hover,
    body .newspaper-header .nav-category.active {

    }

    /* Emergency visibility override - Force all essential elements to show */
    h2.brand-name,
    .brand-name,
    .newspaper-logo,
    .main-header-bar,
    .unified-date-component,
    .current-date-text,
    .calendar-icon {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
    }

    /* Specific override for flex elements */
    .unified-date-component {
        display: flex !important;
    }

    /* Reset any transforms or positioning that might hide elements */
    .main-header-bar,
    .brand-name,
    .newspaper-logo,
    .unified-date-component {
        transform: none !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        margin: 0 !important;
        padding: revert !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        text-indent: 0 !important;
        font-size: revert !important;
        line-height: normal !important;
        white-space: normal !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        text-transform: none !important;
        text-decoration: none !important;
        vertical-align: baseline !important;
        color: inherit !important;
        background: transparent !important;
        border-radius: 0 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
        z-index: auto !important;
        float: none !important;
        clear: none !important;
    }

    /* Re-apply essential styling */
    .main-header-bar {
        padding: 12px 0 !important;
        display: block !important;
        visibility: visible !important;
    }

    /* FORCE brand name visibility with maximum specificity */
    body .main-header-bar h2.brand-name,
    body .main-header-bar .brand-name,
    body .newspaper-logo h2.brand-name,
    body .newspaper-logo .brand-name,
    h2.brand-name.mb-0,
    .brand-name.mb-0 {
        color: #ffffff !important;
        font-size: 1.4rem !important;
        font-weight: 900 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        line-height: 1.2 !important;
        letter-spacing: 1px !important;
        font-family: 'Times New Roman', serif !important;
    }

    /* FORCE logo text visibility */
    body .main-header-bar .logo-text,
    body .newspaper-logo .logo-text {
        color: #ffffff !important;
        font-size: 0.75rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: center !important;
        margin-top: 2px !important;
    }

    /* Fix date picker and download button layout - side by side with same size */
    body .red-controls-bar .container-fluid .row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body .red-controls-bar .col-md-3:first-child,
    body .red-controls-bar .col-md-3:last-child {
        flex: 0 0 auto !important;
        max-width: none !important;
        width: auto !important;
    }

    body .unified-date-component,
    body .header-control-btn.downloadPdf {
        background: rgba(255,255,255,0.1) !important;
        color: #ffffff !important;
        padding: 8px 12px !important;
        border-radius: 4px !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        height: 36px !important;
        min-width: 120px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        text-decoration: none !important;
    }

    body .unified-date-component {
        gap: 6px !important;
    }

    body .current-date-text {
        color: #ffffff !important;
        font-weight: 500 !important;
    }

    body .calendar-icon {
        color: #ffffff !important;
        opacity: 0.8 !important;
    }

    /* ABSOLUTE FINAL OVERRIDE FOR BRAND NAME - Every possible selector */
    .main-header-bar .col-12.col-md-6,
    .main-header-bar .text-center,
    .main-header-bar .newspaper-logo,
    .main-header-bar h2,
    .main-header-bar h2.brand-name,
    .main-header-bar h2.brand-name.mb-0,
    .main-header-bar .brand-name,
    .main-header-bar .brand-name.mb-0,
    body .main-header-bar .col-12.col-md-6,
    body .main-header-bar .text-center,
    body .main-header-bar .newspaper-logo,
    body .main-header-bar h2,
    body .main-header-bar h2.brand-name,
    body .main-header-bar h2.brand-name.mb-0,
    body .main-header-bar .brand-name,
    body .main-header-bar .brand-name.mb-0,
    .newspaper-header .main-header-bar .col-12.col-md-6,
    .newspaper-header .main-header-bar .text-center,
    .newspaper-header .main-header-bar .newspaper-logo,
    .newspaper-header .main-header-bar h2,
    .newspaper-header .main-header-bar h2.brand-name,
    .newspaper-header .main-header-bar h2.brand-name.mb-0,
    .newspaper-header .main-header-bar .brand-name,
    .newspaper-header .main-header-bar .brand-name.mb-0 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        transform: none !important;
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -o-transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        outline: none !important;
        text-indent: 0 !important;
        color: #ffffff !important;
        background: transparent !important;
        font-size: 1.4rem !important;
        font-weight: 900 !important;
        font-family: 'Times New Roman', serif !important;
        line-height: 1.2 !important;
        letter-spacing: 1px !important;
        text-align: center !important;
        text-decoration: none !important;
        text-transform: none !important;
        vertical-align: baseline !important;
        white-space: normal !important;
        word-spacing: normal !important;
        z-index: auto !important;
        float: none !important;
        clear: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
        flex: none !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        flex-basis: auto !important;
        order: 0 !important;
        align-self: auto !important;
        justify-self: auto !important;
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    /* Reset Bootstrap margin bottom class */
    .main-header-bar .mb-0,
    body .main-header-bar .mb-0,
    .newspaper-header .main-header-bar .mb-0 {
        margin-bottom: 0 !important;
    }

    /* Ultra-specific brand name targeting with attribute selectors */
    h2[class*="brand-name"],
    *[class*="brand-name"],
    .main-header-bar *[class*="brand-name"],
    body .main-header-bar *[class*="brand-name"],
    .newspaper-header .main-header-bar *[class*="brand-name"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
        font-size: 1.4rem !important;
        font-weight: 900 !important;
        font-family: 'Times New Roman', serif !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        line-height: 1.2 !important;
        letter-spacing: 1px !important;
    }

    /* Force the exact text content to be visible */
    .main-header-bar *:contains("দৈনিক অসম"),
    body .main-header-bar *:contains("দৈনিক অসম"),
    .newspaper-header .main-header-bar *:contains("দৈনিক অসম") {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
    }

    /* Ensure all parent containers are visible */
    .main-header-bar,
    .main-header-bar .container-fluid,
    .main-header-bar .row,
    .main-header-bar .col-12,
    .main-header-bar .col-md-6,
    .main-header-bar .text-center,
    .main-header-bar .newspaper-logo,
    body .main-header-bar,
    body .main-header-bar .container-fluid,
    body .main-header-bar .row,
    body .main-header-bar .col-12,
    body .main-header-bar .col-md-6,
    body .main-header-bar .text-center,
    body .main-header-bar .newspaper-logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        width: auto !important;
        overflow: visible !important;
        position: static !important;
    }

    /* Special handling for Bootstrap row and col classes */
    .main-header-bar .row {
        display: flex !important;
    }

    .main-header-bar .col-12.col-md-6 {
        display: block !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ULTIMATE DEBUG RULE - Force brand name visibility with colored backgrounds for debugging */
@media (max-width: 575.98px) {
    /* Make the newspaper logo container clearly visible */
    html body .main-header-bar .newspaper-logo {
        display: block !important;
        visibility: visible !important;
        padding: 15px !important;
        margin: 10px 0 !important;
        position: relative !important;
        z-index: 999 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 80px !important;
        text-align: center !important;
        background-color: rgba(255, 0, 0, 0.3) !important; /* Debug: red background */
        opacity: 1 !important;
        overflow: visible !important;
        transform: none !important;
        filter: none !important;
        border: 3px solid #00ff00 !important; /* Debug: green border */
    }

    /* Force brand name visibility with maximum specificity */
    html body .main-header-bar .newspaper-logo h2.brand-name.mb-0,
    html body .main-header-bar .newspaper-logo .brand-name.mb-0,
    html body .main-header-bar h2.brand-name.mb-0,
    html body .main-header-bar .brand-name.mb-0,
    html body .newspaper-logo h2.brand-name,
    html body .newspaper-logo .brand-name,
    html body h2.brand-name,
    html body .brand-name {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;

        font-family: Arial, 'Times New Roman', sans-serif !important;
        font-size: 1.6rem !important;
        font-weight: 900 !important;
        line-height: 1.3 !important;
        margin: 10px auto !important;
        padding: 5px !important;
        text-align: left !important;
        position: relative !important;
        z-index: 9999 !important;
        width: auto !important;
        max-width: 100% !important;
        min-height: 50px !important;
        overflow: visible !important;
        text-transform: none !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-overflow: visible !important;
        color: #1a1a1a !important;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    }
}

/* Profile Page Styles */
.profile-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
    min-height: 100vh;
    padding: 40px 0;
}

.profile-card {
    background: var(--premium-white);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 128, 250, 0.15);
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-header {
    background: linear-gradient(135deg, var(--premium-blue) 0%, var(--premium-blue-light) 100%);
    color: var(--premium-white);
    padding: 30px;
    text-align: center;
}

.profile-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.profile-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.profile-section {
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
}

.profile-section:last-child {
    border-bottom: none;
}

.section-title {
    color: var(--premium-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.1rem;
}

.profile-info .info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.info-item label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0;
    min-width: 120px;
}

.info-value {
    flex-grow: 1;
    color: #212529;
    font-size: 1rem;
    margin: 0 15px;
}

.edit-btn {
    border-color: var(--premium-blue);
    color: var(--premium-blue);
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background-color: var(--premium-blue);
    color: var(--premium-white);
}

.password-form {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--premium-blue);
}

.password-form .form-group {
    margin-bottom: 15px;
}

.password-form label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.subscription-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 25px;
    border-left: 5px solid var(--premium-blue);
}

.subscription-status {
    margin-bottom: 15px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.premium {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.status-badge.expired {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

.subscription-details {
    margin: 20px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

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

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #212529;
    font-weight: 500;
}

.subscription-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.account-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-container {
        padding: 20px 0;
    }

    .profile-card {
        margin: 0 10px;
    }

    .profile-section {
        padding: 20px 15px;
    }

    .profile-info .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .info-item label {
        min-width: auto;
    }

    .info-value {
        margin: 0;
        width: 100%;
    }

    .edit-btn {
        align-self: flex-end;
    }

    .form-actions {
        flex-direction: column;
    }

    .subscription-actions {
        flex-direction: column;
    }

    .account-actions {
        flex-direction: column;
    }

    .account-actions .btn {
        min-width: auto;
    }
}

/* Material Mobile Side Menu */
.mobile-side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mobile-side-menu.show {
    visibility: visible;
    opacity: 1;
}

.mobile-side-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.mobile-side-menu-content {
    position: absolute;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--material-surface);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-right: 1px solid var(--material-divider);
}

/* Wider menu on larger screens */
@media (min-width: 768px) {
    .mobile-side-menu-content {
        width: 400px;
        left: -400px;
    }
}

.mobile-side-menu.show .mobile-side-menu-content {
    right: 0;
}

.mobile-side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--material-divider);
    background: var(--material-surface);
    min-height: 64px;
}

.mobile-side-menu-header h5 {
    color: var(--material-on-surface);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.mobile-side-menu-close {
    background: transparent;
    border: none;
    color: var(--material-on-surface);
    font-size: 1.3rem;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--material-transition);
}

.mobile-side-menu-close:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--material-primary);
}

.mobile-side-menu-body {
    padding: 8px 0;
}

.mobile-menu-section {
    margin-bottom: 16px;
}

.mobile-menu-section:last-child {
    margin-bottom: 0;
}

.mobile-menu-section-title {
    padding: 16px 24px 8px;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--material-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu-items {
    padding-bottom: 0;
}

.mobile-menu-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 16px 24px;
    font-size: 0.9rem;
    color: var(--material-on-surface);
    transition: var(--material-transition);
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.mobile-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--material-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mobile-menu-item:hover::before,
.mobile-menu-item:focus::before {
    transform: scaleY(1);
}

.mobile-menu-item:hover,
.mobile-menu-item:focus {
    background: rgba(25, 118, 210, 0.04);
    color: var(--material-primary);
    outline: none;
    text-decoration: none;
}

.mobile-menu-item i {
    margin-right: 16px;
    width: 24px;
    text-align: center;
    opacity: 0.7;
}

.mobile-menu-item:hover i,
.mobile-menu-item:focus i {
    opacity: 1;
}

.mobile-menu-item.premium-item {
    color: var(--material-accent);
}

.mobile-menu-item.premium-item i {
    color: var(--material-accent);
}

.mobile-menu-item.premium-item:hover {
    background: rgba(255, 87, 34, 0.05);
    color: var(--material-accent);
}


/* Desktop Options Panel */
.desktop-options-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.desktop-options-panel.show {
    visibility: visible;
    opacity: 1;
}

.desktop-options-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.desktop-options-content {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--material-surface);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.24);
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-left: 1px solid var(--material-divider);
}

.desktop-options-panel.show .desktop-options-content {
    right: 0;
}

.desktop-options-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--material-divider);
    background: var(--material-surface);
    min-height: 64px;
}

.desktop-options-header h5 {
    color: var(--material-on-surface);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.desktop-options-close {
    background: transparent;
    border: none;
    color: var(--material-on-surface);
    font-size: 1.3rem;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--material-transition);
}

.desktop-options-close:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--material-primary);
}

.desktop-options-body {
    padding: 8px 0;
}

.options-section {
    margin-bottom: 16px;
}

.options-section:last-child {
    margin-bottom: 0;
}

.options-section-title {
    padding: 16px 24px 8px;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--material-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.options-items {
    padding-bottom: 0;
}

.options-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 16px 24px;
    font-size: 0.9rem;
    color: var(--material-on-surface);
    transition: var(--material-transition);
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.options-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--material-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.options-item:hover::before,
.options-item:focus::before {
    transform: scaleY(1);
}

.options-item:hover,
.options-item:focus {
    background: rgba(25, 118, 210, 0.04);
    color: var(--material-primary);
    outline: none;
    text-decoration: none;
}

.options-item i {
    margin-right: 16px;
    width: 24px;
    text-align: center;
    opacity: 0.7;
}

.options-item:hover i,
.options-item:focus i {
    opacity: 1;
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--premium-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 250, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--premium-blue) 0%, var(--premium-blue-light) 100%);
    border-color: var(--premium-blue);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--premium-blue-dark) 0%, var(--premium-blue) 100%);
    border-color: var(--premium-blue-dark);
}

.btn-outline-primary {
    border-color: var(--premium-blue);
    color: var(--premium-blue);
}

.btn-outline-primary:hover {
    background-color: var(--premium-blue);
    border-color: var(--premium-blue);
}

/* Sidebar Menu Styles */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    transition: left 0.3s ease;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-menu.active .sidebar-overlay {
    opacity: 1;
    pointer-events: all;
}

.sidebar-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-menu.active .sidebar-content {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.sidebar-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: bold;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.sidebar-close:hover {
    color: #333;
}

.sidebar-body {
    padding: 20px;
}

.sidebar-section-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1976d2;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-article-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.sidebar-article-item:hover {
    text-decoration: none;
    color: inherit;
    background: #f8f9fa;
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-article-item .article-category {
    font-size: 0.7rem;
    font-weight: bold;
    color: #1976d2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.sidebar-article-item .article-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.sidebar-article-item .article-summary {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.sidebar-article-item .article-time {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

