* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    /* Changed to white for full-width effect */
    min-height: 100vh;
    margin: 0;
    /* Remove any default margin */
    padding: 0;
    /* Remove any default padding */
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.container {
    max-width: 100%;
    /* Full width for better visibility */
    margin: 0;
    /* Remove margin */
    padding: 0;
    /* Remove padding */
    background: white;
    min-height: 100vh;
    box-shadow: none;
    /* Remove shadow for full-width */
    position: relative;
    width: 100%;
    /* Ensure 100% width */
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 5px 10px;
    /* Minimal padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo h1 {
    font-size: 1.5em;
    /* Smaller for more space */
    font-weight: bold;
    letter-spacing: 1px;
    /* Reduced */
    margin-bottom: 3px;
    /* Reduced */
}

.tagline {
    font-size: 0.75em;
    /* Smaller */
    opacity: 0.9;
    direction: rtl;
}

.tagline {
    font-size: 0.9em;
    opacity: 0.9;
    direction: rtl;
}

.header-right {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in;
}

.header-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .header-logo {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 50px;
    }
}

.date {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.admin-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid white;
    transition: all 0.3s;
    display: inline-block;
}

.admin-link:hover {
    background: white;
    color: #1e3c72;
    transform: translateY(-2px);
}

/* Date Selector Section */
.date-selector-section {
    background: #fff;
    padding: 3px 10px;
    /* Minimal padding */
    border-bottom: 1px solid #e9ecef;
    /* Thinner border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 0;
    /* Remove any margin */
}

.date-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Reduced gap */
    flex-wrap: wrap;
}

.date-controls label {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
    /* Smaller font */
}

.date-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.date-controls label {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

#dateInput {
    padding: 10px 15px;
    border: 2px solid #1e3c72;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 180px;
}

#dateInput:hover {
    border-color: #2a5298;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.2);
}

#dateInput:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.today-btn {
    padding: 10px 25px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.today-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Navigation Styles */
.navigation {
    background: #f8f9fa;
    padding: 3px 10px;
    /* Minimal padding */
    border-bottom: 2px solid #1e3c72;
    /* Thinner */
    margin: 0;
    /* Remove any margin */
}

.nav-content {
    display: flex;
    gap: 15px;
    /* Reduced */
    align-items: center;
}

.page-dropdown {
    flex: 1;
    padding: 8px 15px;
    /* Smaller */
    font-size: 0.95em;
    /* Smaller font */
    border: 2px solid #1e3c72;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    direction: rtl;
}

.refresh-btn {
    padding: 8px 20px;
    /* Smaller */
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 0.9em;
    /* Smaller font */
}

.nav-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.page-dropdown {
    flex: 1;
    padding: 12px 20px;
    font-size: 1.1em;
    border: 2px solid #1e3c72;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    direction: rtl;
}

.page-dropdown:hover {
    border-color: #2a5298;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.2);
}

.refresh-btn {
    padding: 12px 30px;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.refresh-btn:hover {
    background: #2a5298;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding: 0;
    /* Remove all padding for maximum width */
    min-height: auto;
    /* Remove fixed height */
    width: 100%;
    /* Full width */
    margin: 0;
    /* Remove any margin */
}

.newspaper-viewer {
    background: #f5f5f5;
    /* Light gray background for contrast */
    border: none;
    /* Remove border for maximum width */
    border-radius: 0;
    /* Remove border radius */
    padding: 20px 0;
    /* Comfortable vertical padding */
    margin: 0;
    /* Remove any margin */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align to top */
    width: 100%;
    /* Full width */
    /* Natural page scrolling */
}

.newspaper-image {
    width: 992px;
    /* Jung newspaper width */
    max-width: 100%;
    /* Responsive on smaller screens */
    height: auto;
    /* Auto height to maintain ratio */
    object-fit: contain;
    /* Maintain aspect ratio, fit within container */
    border-radius: 4px;
    /* Subtle rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    /* Nice shadow for depth */
    cursor: zoom-in;
    transition: transform 0.3s;
    display: block;
    /* Remove any inline spacing */
    margin: 10px auto;
    /* Center with small margin */
    /* Jung newspaper dimensions: 992px x 1794px */
}


.newspaper-image:hover {
    transform: scale(1.02);
}

.no-page {
    text-align: center;
    padding: 60px;
    color: #666;
}

.no-page h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #1e3c72;
}

.no-page p {
    font-size: 1.1em;
    margin: 10px 0;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 20px;
    /* Reduced from 30px 40px */
    margin-top: 25px;
    /* Reduced from 50px */
}

.footer p {
    margin: 5px 0;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .date-controls {
        flex-direction: column;
        align-items: stretch;
    }

    #dateInput,
    .today-btn {
        width: 100%;
    }

    .nav-content {
        flex-direction: column;
    }

    .page-dropdown,
    .refresh-btn {
        width: 100%;
    }
}

.top-navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 100%;
    /* Changed from 1400px for full width */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    /* Standard padding for professional look */
}

.nav-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    /* Professional size */
    font-weight: bold;
    padding: 18px 0;
    /* Standard height */
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    /* Standard spacing */
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 18px 25px;
    /* Standard height and width */
    display: block;
    transition: all 0.3s;
    font-size: 1em;
    /* Standard font size */
    font-weight: 500;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: #34495e;
}

.nav-menu li a.admin-nav-link {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-left: 10px;
}

.nav-menu li a.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer with Thumbnails */
.footer-section {
    background: #f8f9fa;
    margin-top: 2px;
    /* Minimal margin */
}

.footer-pages {
    padding: 5px;
    /* Minimal padding */
    border-top: 1px solid #1e3c72;
    /* Thin border */
}

.footer-pages h3 {
    color: #333;
    font-size: 0.9em;
    /* Smaller title */
    margin-bottom: 5px;
    /* Minimal margin */
    text-align: center;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    /* Even smaller thumbnails */
    gap: 5px;
    /* Minimal gap */
    max-width: 100%;
    /* Changed from 1400px */
    margin: 0 auto;
}

.thumbnail-card {
    background: white;
    border: 1px solid #e9ecef;
    /* Thinner border */
    border-radius: 4px;
    /* Smaller radius */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.thumbnail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: #1e3c72;
}

.thumbnail-card img {
    width: 100%;
    height: 120px;
    /* Much smaller thumbnails */
    object-fit: cover;
    display: block;
}

.thumbnail-label {
    padding: 12px;
    text-align: center;
    background: #1e3c72;
    color: white;
    font-weight: 600;
    font-size: 0.9em;
}

.footer-info {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px 40px;
}

.footer-info p {
    margin: 5px 0;
    opacity: 0.9;
}

/* Page Content Styles (for About and Contact pages) */
.page-content {
    padding: 40px;
    min-height: 70vh;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content-section h1 {
    color: #1e3c72;
    font-size: 2.5em;
    margin-bottom: 20px;
    border-bottom: 3px solid #1e3c72;
    padding-bottom: 15px;
}

.lead {
    font-size: 1.3em;
    color: #555;
    line-height: 1.6;
    margin: 20px 0;
}

.about-intro,
.contact-intro {
    margin-bottom: 40px;
}

.about-section {
    margin: 40px 0;
}

.about-section h2 {
    color: #1e3c72;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.about-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #1e3c72;
}

.feature-box h3 {
    color: #1e3c72;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-left: 4px solid #1e3c72;
    font-size: 1.1em;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 15px;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Header Styles - Updated Theme */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4a6741 100%);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Date Selector - Updated Theme */
#dateInput {
    padding: 10px 15px;
    border: 2px solid #4a6741;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 180px;
}

#dateInput:hover {
    border-color: #2a5298;
    box-shadow: 0 2px 8px rgba(74, 103, 65, 0.3);
}

#dateInput:focus {
    outline: none;
    border-color: #4a6741;
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.2);
}

.today-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #4a6741 0%, #5c7d52 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.today-btn:hover {
    background: linear-gradient(135deg, #5c7d52 0%, #6e9463 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 103, 65, 0.4);
}

/* Navigation - Updated Theme */
.navigation {
    background: #f8f9fa;
    padding: 15px 40px;
    border-bottom: 3px solid #4a6741;
}

.page-dropdown {
    flex: 1;
    padding: 12px 20px;
    font-size: 1.1em;
    border: 2px solid #4a6741;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    direction: rtl;
}

.page-dropdown:hover {
    border-color: #2a5298;
    box-shadow: 0 2px 8px rgba(74, 103, 65, 0.3);
}

.refresh-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #4a6741 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #2a5298 0%, #5c7d52 100%);
    transform: translateY(-2px);
}

/* Footer - Updated Theme */
.footer-pages {
    padding: 40px;
    border-top: 3px solid #4a6741;
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
}

.thumbnail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 103, 65, 0.3);
    border-color: #4a6741;
}

.thumbnail-label {
    padding: 12px;
    text-align: center;
    background: linear-gradient(135deg, #1e3c72 0%, #4a6741 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9em;
}

.footer-info {
    background: linear-gradient(135deg, #2c3e50 0%, #1e3c72 50%, #4a6741 100%);
    color: white;
    text-align: center;
    padding: 25px 40px;
}

.admin-link {
    background: rgba(74, 103, 65, 0.8);
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid white;
    transition: all 0.3s;
    display: inline-block;
}

.admin-link:hover {
    background: white;
    color: #4a6741;
    transform: translateY(-2px);
}

.no-page h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #4a6741;
}

.content-section h1 {
    color: #4a6741;
    font-size: 2.5em;
    margin-bottom: 20px;
    border-bottom: 3px solid #4a6741;
    padding-bottom: 15px;
}

.about-section h2,
.contact-info-section h2,
.contact-form-section h2 {
    color: #4a6741;
    font-size: 1.8em;
    margin-bottom: 25px;
}

.feature-box:hover {
    border-color: #4a6741;
}

.feature-box h3,
.contact-item h3 {
    color: #4a6741;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.values-list li {
    border-left: 4px solid #4a6741;
}

.cta-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4a6741 100%);
}

.cta-button {
    background: white;
    color: #4a6741;
}

.cta-button:hover {
    background: #f8f9fa;
}

/* Advertisement Jump Link */
.ad-jump-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

.ad-jump-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.ad-jump-link::before {
    content: '🎯';
    font-size: 1.2em;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 107, 0.7);
    }
}

/* Advertisement Section */
.advertisement-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 60px 40px;
    margin: 40px 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.advertisement-section h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.advertisement-section p {
    color: white;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.ad-contact-btn {
    background: white;
    color: #f5576c;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ad-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .ad-jump-link {
        bottom: 10px;
        right: 10px;
        padding: 12px 20px;
        font-size: 0.9em;
    }
}