body {
    background-color: #fff;
    color: #000;
    font-family: 'Fira Sans', sans-serif;
}

a {
    text-decoration: underline;
}

a:hover {
    text-decoration: none !important;
}

.header-title {
    font-size: 3.5rem;
    font-weight: 700;
    padding: 10px 0 0 0;
    margin: 0 0 -19px 0;
    text-align: center;
    color: white;
}

.header-subtitle {
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    color: white;
    padding: 0 0 20px 0;
    margin: 0;
}

.header-title-bg {
    background-image: url('img/n1.gif');
    background-repeat: repeat-x;
    width: 100%;
}

.border-bottom {
    border-bottom: 2px solid #111 !important;
}

.nav-link {
    color: #000 !important;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-link:hover {
    text-decoration: none !important;
}

/* News List */
.news-item {
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.news-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    border-left: 3px solid #AB5500;
    padding-left: 10px;
}

.news-meta strong {
    color: #AB5500;
}

.news-tags {
    font-size: 0.8rem;
    color: #888;
}

.news-tags a {
    color: #888;
    text-decoration: none;
}

.news-tags a:hover {
    text-decoration: underline;
    color: #000;
}

.news-item h3 a {
    color: #562F00 !important;
    text-transform: lowercase;
    font-size: 2.2rem;
    font-weight: 900;
    text-decoration: none;
}

.news-content a {
    color: #AB5500;
}

/* Twoliner */
.twoliner-item a {
    color: #999 !important;
}

.twoliner-meta strong {
    color: #AB5500;
}

.sidebar-list a,
.news-meta a.comments-link {
    text-decoration: none;
}

.sidebar-list a:hover,
.news-meta a.comments-link:hover {
    text-decoration: underline !important;
}

/* Sidebar */
.sidebar-title {
    font-weight: 700;
    border-bottom: 2px solid #eee;
    margin-bottom: 15px;
    padding-bottom: 5px;
    color: #AB5500;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    font-size: 14.5px;
}

.sidebar-list li {
    margin-bottom: 8px;
}

.sidebar-list a {
    color: #000;
    text-decoration: none;
}

.sidebar-list a:hover {
    text-decoration: none !important;
}

/* Main Content Headings */
h1 {
    color: #AB5500;
    font-weight: 700;
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
    padding-bottom: 5px;
    font-size: 2rem;
}

h3 {
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #562F00;
}

h4 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #562F00;
}

.text-muted strong {
    color: #AB5500;
}

.article-content a {
    color: #AB5500;
}

.article-content img {
    float: right;
    width: 30% !important;
    height: auto !important;
    margin-left: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.article-content img:hover {
    opacity: 0.9;
}

.article-content img.image-non-float {
    float: none;
    display: block;
    width: auto !important;
    max-width: 100% !important;
    margin: 20px auto;
}

.article-content pre {
    background: #f8f0e0;
    border: 1px solid #d4b896;
    border-left: 4px solid #c8a96e;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #3d2b00;
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    border: 1px solid #d4b896;
    border-radius: 6px;
    overflow: hidden;
}

.article-content table th {
    background: #5a3e0a;
    color: #f8f0e0;
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #c8a96e;
}

.article-content table td {
    padding: 8px 14px;
    border-bottom: 1px solid #e8dcc8;
}

.article-content table tr:nth-child(even) td {
    background: #faf6ef;
}

.article-content table tr:hover td {
    background: #f0e8d8;
}

/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 3px solid #fff;
    border-radius: 4px;
    background: #fff;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

/* Comments Page */
.comment-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    display: flex;
    gap: 15px;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

/* Banner Slider */
.banner-slider-container {
    width: 300px;
    height: 90px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    margin: 0 auto;
}

.banner-slider {
    display: flex;
    transition: transform 1s ease-in-out;
    width: 100%;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 300px;
    height: 90px;
    object-fit: cover;
}

/* Pagination Styling */
.pagination .page-link {
    color: #AB5500;
    border-color: #eee;
    background-color: #fff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
}

.pagination .page-link:hover {
    color: #562F00;
    background-color: #f8f9fa;
    border-color: #AB5500;
    z-index: 2;
}

.pagination .page-item.active .page-link {
    background-color: #AB5500;
    border-color: #AB5500;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    border-color: #eee;
    background-color: #fff;
}

.pagination .page-item:first-child .page-link {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination .page-item:last-child .page-link {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Custom buttons matching theme */
.btn-atari {
    background-color: #AB5500;
    border-color: #AB5500;
    color: #fff;
    transition: all 0.2s;
}

.btn-atari:hover,
.btn-atari:focus {
    background-color: #562F00;
    border-color: #562F00;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-outline-atari {
    color: #AB5500;
    border-color: #AB5500;
    transition: all 0.2s;
}

.btn-outline-atari:hover,
.btn-outline-atari:focus {
    background-color: #AB5500;
    border-color: #AB5500;
    color: #fff;
}

/* Custom Success Alert matching theme */
.alert-atari-success {
    background-color: #FFF5EC;
    border-color: #FFDAB9;
    color: #562F00;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Custom Warning/Login Alert matching theme */
.alert-atari-warning {
    background-color: #FFF5EC;
    border: 1px solid #AB5500;
    color: #562F00;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
}

.alert-atari-warning a {
    color: #AB5500;
    font-weight: 700;
}

/* Twoliner specific input styling */
.twoliner-form-control {
    border: 1px solid #eee;
    transition: border-color 0.2s;
}

.twoliner-form-control:focus {
    border-color: #AB5500;
    box-shadow: none;
    outline: none;
}

/* Mobile View Adjustments */
@media (max-width: 991.98px) {
    .navbar-toggler {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        z-index: 2000 !important;
        background-color: rgba(86, 47, 0, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        padding: 6px !important;
        border-radius: 4px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }

    .navbar-toggler-icon {
        filter: invert(1) !important;
    }

    .header-title {
        font-size: 2.2rem !important;
        padding-top: 10px !important;
    }

    .header-subtitle {
        font-size: 0.9rem !important;
    }
}

/* Social Icons */
.social-icons {
    padding-left: 5px;
}

.social-link {
    color: #AB5500 !important;
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none !important;
}

.social-link i {
    text-decoration: none !important;
}

.social-link:hover {
    color: #562F00 !important;
    transform: scale(1.1);
}

@media (max-width: 991.98px) {
    .social-icons {
        justify-content: center;
        margin-top: 15px;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 10px;
        padding-left: 0;
    }

    .social-link {
        font-size: 1.5rem;
        padding: 0 15px !important;
    }
}