/*
Theme Name: WinROMs
Theme URI: https://nsproms.com
Author: WinROMs Team
Author URI: https://nsproms.com
Description: A modern WordPress theme for game ROMs download site
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: winroms
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.single_game.container {
    padding-top: 15px;
}

/* Navigation Styles */
.nav_single_main {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e7e7e7;
    padding: 0;
}

.nav_single {
    width: 100% !important;
    position: relative !important;
    float: none !important;
    padding: 0;
}

.nav_single .container {
    height: auto !important;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 10px 15px;
}

.nav_single nav {
    flex-direction: row !important;
    flex: 1;
    display: flex;
    gap: 0.5rem;
}

.nav_single .logo {
    padding: 0 !important;
}

.logo h1 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #333;
    transition: background-color 0.3s;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: #e7e7e7;
}

.nav-link svg {
    margin-right: 8px;
}

.nav-link .body-2 {
    font-size: 14px;
}

/* Search Styles */
#blocksearch {
    position: relative;
    width: 300px;
}

#blocksearch input.search {
    width: 100%;
    padding: 8px 80px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search_btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.q_search_btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
}

.clear_btn {
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Mobile Navigation */
.mobile-bar {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: left 0.3s;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-bar.active {
    left: 0;
}

.mob-nav-body {
    height: 100%;
    overflow-y: auto;
}

.m-close {
    background: transparent;
    border: none;
    cursor: pointer;
}

.blocksearch-container {
    padding: 15px;
}

#m-blocksearch {
    display: none;
}

.m_nav_btn,
.m_search_btn {
    background: transparent;
    border: none;
    cursor: pointer;
}

.mb_search {
    display: none;
    padding: 15px;
}

/* Main Content Styles */
main {
    padding: 0;
}

.home_custom {
    padding: 20px 0;
}

/* Section Titles */
.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e7e7e7;
}

.title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.title a {
    color: #337ab7;
    font-size: 14px;
}

.title a:hover {
    text-decoration: underline;
}

/* Card Grid Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.more-col {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Article Item Styles */
.article-item {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
}

.article-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.article-item picture,
.article-item img,
.article-item .game-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.exclusive-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
}

.exclusive-badge .badge {
    background-color: #f0ad4e;
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.article-item .container {
    padding: 12px;
}

.article-item .text h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 38px;
}

.article-item .text h2:hover {
    color: #337ab7;
}

.article-item .caption-1 {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.article-item .topline {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e7e7e7;
}

.article-item .topline .caption-1 {
    font-size: 11px;
    color: #999;
}

/* Soft Item (Game Item) Styles */
.soft-item {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.soft-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.soft-item .container {
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.archive-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.icon-big {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 4px;
}

.icon-big img,
.icon-big picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.soft-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.soft-item-title:hover {
    color: #337ab7;
}

.app-badge {
    margin-top: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
}

.badge-warning {
    background-color: #f0ad4e;
    color: #fff;
}

.archive-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.archive-right .version {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.archive-right .category {
    font-size: 11px;
    color: #666;
}

.archive-right .date {
    font-size: 11px;
    color: #999;
}

/* Panel Styles */
.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}

.panel-default {
    border-color: #ddd;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background-color: #f5f5f5;
    border-color: #ddd;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
    color: inherit;
    font-weight: 600;
}

.panel-body {
    padding: 15px;
}

.panel-body ul {
    margin: 0;
    padding-left: 20px;
}

.panel-body ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #333;
}

.panel-body a {
    color: #337ab7;
    text-decoration: none;
}

.panel-body a:hover {
    text-decoration: underline;
}

/* Right Container (Game Details) */
.right-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    margin-bottom: 0;
    padding: 8px 0;
}

.info-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 2px;
    line-height: 1.4;
}

.info-label {
    color: #000;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.info-value {
    color: #333;
    font-size: 13px;
    font-weight: 400;
}

.info-value a {
    color: #337ab7;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Screenshots */
.screenshots_row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.screenshots_row a {
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border 0.2s ease-in-out;
    display: block;
}

.screenshots_row a:hover {
    border: 1px solid #337ab7;
}

.screen_shot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Plugins Mini */
.plugins-mini a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.plugins-mini a:hover {
    background-color: #f8f8f8;
}

.plugins-mini__image img {
    width: 46px;
    height: auto;
}

/* Last News */
.last_news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* Help Block */
.help-block {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    margin-bottom: 32px;
    background-color: #f8f9fa;
}

/* Footer Styles */
#footer {
    background-color: #f8f8f8;
    border-top: 1px solid #e7e7e7;
    padding: 20px 0;
    margin-top: 40px;
}

.footer_inner {
    text-align: center;
}

.footer-nav {
    font-size: 13px;
}

.footer-nav a {
    color: #666;
    margin: 0 5px;
}

.footer-nav a:hover {
    color: #337ab7;
    text-decoration: underline;
}

.separator {
    margin: 0 5px;
    color: #999;
}

/* Utility Classes */
.text-dark {
    color: #333 !important;
}

.text-muted {
    color: #666 !important;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-white {
    color: #fff !important;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.my-4 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.p-0 {
    padding: 0 !important;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Responsive Styles */
@media only screen and (max-width: 900px) {
    .nav_single nav {
        display: none;
    }

    #blocksearch {
        display: none;
    }

    #m-blocksearch {
        display: block;
    }

    .blocksearch-container {
        display: block;
    }

    .logo {
        display: none;
    }

    .logo-mobile {
        display: block !important;
    }

    .right-container {
        grid-template-columns: 100%;
    }

    .last_news {
        grid-template-columns: 100%;
    }

    .screenshots_row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mobile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media only screen and (max-width: 600px) {
    .soft-item .container {
        flex-direction: column;
        text-align: center;
    }

    .archive-right {
        align-items: center;
        text-align: center;
    }

    .title h2 {
        font-size: 1.2rem;
    }
    
    /* Ensure card grid stays 2 columns on small mobile */
    .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    .mobile-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    /* Adjust article items for small screens */
    .article-item h2 {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .article-item .caption-1 {
        font-size: 0.7rem;
    }
}

/* Typography */
.body-2 {
    font-size: 14px;
}

.caption-1 {
    font-size: 12px;
}

.h4 {
    font-size: 1.25rem;
}

.font-weight-bold {
    font-weight: 700;
}

/* Additional Styles */
.main-page {
    margin: 20px 0;
}

.wrapper_game {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 0;
    margin-top: 0;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.bg-transparent {
    background: transparent;
}

.text-decoration-none {
    text-decoration: none;
}

button {
    cursor: pointer;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Single Game Page Styles */
.single_game .main-title {
    margin-bottom: 20px;
    margin-top: 0;
}

.single_game .main-title .icon {
    align-items: flex-start;
}

.game-icon-large {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.game-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single_game .main-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.single_game .version {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb-nav a {
    color: #337ab7;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-nav .current {
    color: #333;
    font-weight: 500;
}

/* Format Tags */
.format-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.format-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #337ab7;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: #ffa500;
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.votes-text {
    font-size: 13px;
    color: #999;
}

.single_game .category a {
    color: #337ab7;
    text-decoration: none;
}

.single_game .category a:hover {
    text-decoration: underline;
}

.single_game .info-block {
    margin-bottom: 15px;
}

.single_game .info-block span {
    display: block;
    margin-bottom: 5px;
}

.single_game .btn-block .btn {
    font-size: 16px;
    font-weight: 600;
}

.single_game .btn.green {
    background-color: #28a745;
    border-color: #28a745;
}

.single_game .btn.green:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Mini Articles / Related Games */
.mini-articles {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    padding: 15px;
}

.plugins-mini {
    margin-bottom: 15px;
}

.plugins-mini:last-child {
    margin-bottom: 0;
}

.plugins-mini a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.plugins-mini a:hover {
    background-color: #f8f8f8;
}

.plugins-mini__image {
    flex-shrink: 0;
}

.plugins-mini__image img {
    width: 46px;
    height: auto;
    border-radius: 3px;
}

.plugins-mini .text {
    flex: 1;
    min-width: 0;
}

.plugins-mini .text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-news-container {
    margin-bottom: 30px;
}

.related-news-container h2 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.related-news .caption-1 {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #666;
}

/* Breadcrumbs */
.bread-crumbs {
    margin-bottom: 15px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: 13px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 8px;
    color: #999;
}

.breadcrumb-item a {
    color: #337ab7;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

/* Download Button Styling */
.btn-primary {
    background-color: #337ab7;
    border-color: #2e6da4;
    color: #fff;
}

.btn-primary:hover {
    background-color: #286090;
    border-color: #204d74;
}

/* Two-Click Download Button States */
.btn-primary.second-click-ready {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    animation: pulse-download 1.5s infinite;
}

@keyframes pulse-download {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px 5px rgba(102, 126, 234, 0.3);
    }
}

/* Telegram Join Section - Professional Design */
.telegram-join-section {
    margin: 15px 0;
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.12);
}

.telegram-join-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.telegram-icon {
    width: 36px;
    height: 36px;
    color: #ffffff;
    flex-shrink: 0;
}

.telegram-join-text {
    flex: 1;
    color: #ffffff;
}

.telegram-join-text h4 {
    margin: 0 0 3px 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.telegram-join-text p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.telegram-join-btn {
    background: #ffffff;
    color: #0088cc;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.telegram-join-btn:hover {
    background: #f0f0f0;
    color: #0088cc;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Social Media Section - Professional Design */
.social-media-section {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-align: center;
}

.social-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Individual Social Icon Colors */
.social-icon.telegram {
    background: #0088cc;
    color: #ffffff;
}

.social-icon.telegram:hover {
    background: #006ba3;
}

.social-icon.discord {
    background: #5865F2;
    color: #ffffff;
}

.social-icon.discord:hover {
    background: #4752C4;
}

.social-icon.youtube {
    background: #FF0000;
    color: #ffffff;
}

.social-icon.youtube:hover {
    background: #CC0000;
}

.social-icon.facebook {
    background: #1877F2;
    color: #ffffff;
}

.social-icon.facebook:hover {
    background: #145DBF;
}

.social-icon.bluesky {
    background: #1185FE;
    color: #ffffff;
}

.social-icon.bluesky:hover {
    background: #0D6AC9;
}

/* Responsive Design for Social Elements */
@media (max-width: 768px) {
    .telegram-join-content {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .telegram-icon {
        width: 32px;
        height: 32px;
    }
    
    .telegram-join-text h4 {
        font-size: 14px;
    }
    
    .telegram-join-text p {
        font-size: 11px;
    }
    
    .telegram-join-btn {
        padding: 7px 16px;
        font-size: 12px;
    }
    
    .social-media-section {
        padding: 12px;
        margin: 12px 0;
    }
    
    .social-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icon {
        width: 34px;
        height: 34px;
    }
    
    .social-icon svg {
        width: 17px;
        height: 17px;
    }
}

/* Text Utilities */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.font-weight-bold {
    font-weight: 700;
}

/* About Section Plain Styling - No container/box like nswpedia.com */
.about-section-plain {
    line-height: 1.6;
}

.about-section-plain h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #333;
}

.about-section-plain p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
    font-size: 14px;
}

.about-section-plain ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.about-section-plain ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

.about-section-plain strong {
    color: #333;
    font-weight: 600;
}

/* About Content Styling for page templates */
.about-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #333;
}

.about-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #444;
}

.about-content p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555;
}

.about-content ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.about-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.about-content strong {
    color: #333;
}

/* Pagination Styling - Simple & Clean */
.pagination-wrapper {
    display: block;
    text-align: center;
    margin: 30px auto;
    padding: 15px 0;
    width: 100%;
}

.pagination-wrapper .page-numbers {
    list-style: none;
    display: inline-flex;
    gap: 10px;
    padding: 0;
    margin: 0 auto;
    align-items: center;
}

.pagination-wrapper .page-numbers li {
    display: inline-block;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 38px;
    padding: 0;
    text-align: center;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.pagination-wrapper .page-numbers a:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.pagination-wrapper .page-numbers .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

.pagination-wrapper .page-numbers .dots {
    background: transparent;
    border: none;
    color: #999;
}

.pagination-wrapper .page-numbers .prev,
.pagination-wrapper .page-numbers .next {
    min-width: 40px;
    padding: 0;
}

.pagination-wrapper .page-numbers .prev:hover,
.pagination-wrapper .page-numbers .next:hover {
    background: #333;
    color: #fff;
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 768px) {
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav {
        margin-top: 10px;
    }
    
    /* Card grid - 2 columns on mobile */
    .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .article-item {
        margin-bottom: 15px;
    }
    
    .article-item h2 {
        font-size: 0.9rem;
    }
    
    .article-item .caption-1 {
        font-size: 0.75rem;
    }
    
    .game-card-img {
        height: auto;
    }
    
    /* Breadcrumb on mobile */
    .breadcrumb-nav {
        font-size: 12px;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .breadcrumb-nav .current {
        display: inline-block;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }
    
    /* Format tags on mobile */
    .format-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    /* Single page adjustments */
    .single_game .main-title .icon {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .single_game .main-title .ml-3 {
        margin-left: 0 !important;
        margin-top: 15px;
    }
    
    .single_game .main-title h1 {
        font-size: 1.1rem;
    }
    
    .single_game .main-title img {
        max-width: 150px;
    }
    
    /* Screenshots - 2 columns on mobile */
    .screenshots_row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    /* Game info - single column on mobile */
    .right-container {
        grid-template-columns: 1fr !important;
        gap: 5px;
    }
    
    .info-item {
        margin-bottom: 3px;
    }
    
    .info-label,
    .info-value {
        font-size: 12px;
    }
    
    /* Panel adjustments */
    .panel {
        margin-bottom: 15px;
    }
    
    .panel-heading h3 {
        font-size: 1rem;
    }
    
    .panel-body {
        padding: 10px;
    }
    
    /* Download button */
    .btn-primary {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }
    
    /* Rating section */
    .rating-section {
        font-size: 0.9rem;
    }
    
    /* About section */
    .about-section-plain h4 {
        font-size: 1rem;
    }
    
    .about-section-plain p {
        font-size: 13px;
    }
    
    /* Pagination - Mobile Responsive */
    .pagination-wrapper {
        margin: 30px 0;
        padding: 15px 0;
    }
    
    .pagination-wrapper .page-numbers {
        gap: 6px;
    }
    
    .pagination-wrapper .page-numbers a,
    .pagination-wrapper .page-numbers span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
    
    .pagination-wrapper .page-numbers .prev,
    .pagination-wrapper .page-numbers .next {
        padding: 0 12px;
        font-size: 12px;
    }
}

@media only screen and (max-width: 480px) {
    /* Very small screens - single column */
    .card-grid {
        grid-template-columns: 1fr !important;
    }
    
    .article-item h2 {
        font-size: 1rem;
    }
    
    .screenshots_row {
        grid-template-columns: 1fr !important;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Request Help Section */
.request-help-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.request-help-section p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.request-help-section .btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.request-help-section .btn:hover {
    background-color: #000;
}

/* Request Help Modal */
.request-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.request-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.request-modal-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.request-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.request-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.request-modal-close:hover,
.request-modal-close:focus {
    color: #000;
}

.request-modal-body {
    padding: 20px;
}

.request-form-group {
    margin-bottom: 15px;
}

.request-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.request-form-group input,
.request-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.request-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.request-form-group input:focus,
.request-form-group textarea:focus {
    outline: none;
    border-color: #337ab7;
    box-shadow: 0 0 0 0.2rem rgba(51, 122, 183, 0.25);
}

.request-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

.request-submit-btn {
    background-color: #337ab7;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.request-submit-btn:hover {
    background-color: #286090;
}

.request-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.request-success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

.request-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

/* Screenshot hover fix */
.screenshots_row a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.screenshots_row a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
}

.screenshots_row a:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

/* Screenshot Lightbox */
.screenshot-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.screenshot-lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.screenshot-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
}

.screenshot-lightbox-close:hover,
.screenshot-lightbox-close:focus {
    color: #bbb;
}

/* Related Posts Styling */
.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-post-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.related-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post-item a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.related-post-item a:hover {
    color: #337ab7;
}

.related-post-thumb {
    width: 60px;
    height: 60px;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Related Posts Styling */
.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-post-item {
    border-bottom: 1px solid #e5e5e5;
}

.related-post-item:last-child {
    border-bottom: none;
}

.related-post-link {
    display: flex;
    align-items: center;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.related-post-link:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.related-post-thumbnail {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-title {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #333;
}

.related-post-link:hover .related-post-title {
    color: #337ab7;
}

/* Modern Comment Section - NSWPedia Style */
.comments-area-modern {
    margin-top: 40px;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comments-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.comments-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.comment-count {
    margin-left: 8px;
    color: #999;
    font-weight: 400;
}

.comment-list-modern {
    margin-bottom: 30px;
}

.comment-item-modern {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item-modern:last-child {
    border-bottom: none;
}

.comment-body-modern {
    display: flex;
    flex-direction: column;
}

.comment-author-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-author-modern strong {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.comment-date-modern {
    font-size: 13px;
    color: #999;
}

.comment-text-modern {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.comment-text-modern p {
    margin: 0;
}

.reply-link-modern a {
    font-size: 13px;
    color: #337ab7;
    text-decoration: none;
}

.reply-link-modern a:hover {
    text-decoration: underline;
}

.comment-awaiting-modern {
    font-size: 13px;
    color: #f0ad4e;
    font-style: italic;
    margin: 5px 0;
}

.comment-form-modern {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modern-form p {
    margin: 0;
}

.form-group-modern textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.form-group-modern textarea:focus {
    outline: none;
    border-color: #337ab7;
}

/* Name and Email in single row */
.modern-form .comment-form-author,
.modern-form .comment-form-email {
    display: inline-block;
    width: calc(50% - 7.5px);
    margin: 0;
}

.modern-form .comment-form-author {
    margin-right: 15px;
}

.modern-form input[type="text"],
.modern-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.modern-form input[type="text"]:focus,
.modern-form input[type="email"]:focus {
    outline: none;
    border-color: #337ab7;
}

.submit-modern {
    align-self: flex-end;
    padding: 12px 30px;
    background: #555;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.submit-modern:hover {
    background: #333;
}

.submit-modern svg {
    width: 16px;
    height: 16px;
}

.no-comments {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

/* Old Comments Section Styling */
.comments-area {
    margin-top: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #337ab7;
}

.comment-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.comment-content p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

.comment-reply-link {
    font-size: 13px;
    color: #337ab7;
    text-decoration: none;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.comment-respond {
    margin-top: 20px;
}

/* Archive Page Modern Styling - NSWPedia Style */
.archive-page {
    padding-top: 20px;
}

.page-header-modern {
    margin-bottom: 30px;
}

.archive-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 15px 0;
    line-height: 1.3;
}

.archive-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.archive-description p {
    margin-bottom: 15px;
}

.archive-description a {
    color: #337ab7;
    text-decoration: none;
}

.archive-description a:hover {
    text-decoration: underline;
}

/* Archive Page Responsive */
@media only screen and (max-width: 768px) {
    .archive-page {
        padding-top: 15px;
    }
    
    .archive-title {
        font-size: 22px;
        margin: 15px 0 12px 0;
    }
    
    .archive-description {
        font-size: 14px;
        line-height: 1.6;
    }
}

.comment-form {
    display: grid;
    gap: 15px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.comment-form-comment textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    margin: 0;
}

.submit {
    background-color: #337ab7;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.submit:hover {
    background-color: #286090;
}

/* Contact Page Styling */
.contact-page {
    padding: 40px 0;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-page .page-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.contact-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.contact-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.contact-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#contact-form .form-group {
    margin-bottom: 20px;
}

#contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #337ab7;
}

#contact-form textarea {
    resize: vertical;
}

.form-submit {
    text-align: right;
}

.btn-submit {
    background: #337ab7;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #286090;
}

@media only screen and (max-width: 768px) {
    .contact-page {
        padding: 20px 0;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .contact-page .page-title {
        font-size: 24px;
    }
}

/* Professional Comment Section Styling */
.comments-area-pro {
    margin-top: 40px;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comments-header-pro {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.comments-title-pro {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.comment-count-pro {
    margin-left: 8px;
    color: #999;
    font-weight: 400;
    font-size: 18px;
}

.comment-list-pro {
    margin-bottom: 30px;
}

.comment-item-pro {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item-pro:last-child {
    border-bottom: none;
}

.comment-body-pro {
    display: flex;
    gap: 15px;
}

.comment-avatar-pro {
    flex-shrink: 0;
}

.comment-avatar-pro img {
    border-radius: 50%;
}

.comment-content-pro {
    flex: 1;
}

.comment-meta-pro {
    margin-bottom: 10px;
}

.comment-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.comment-date {
    font-size: 13px;
    color: #999;
}

.comment-text-pro {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.comment-text-pro p {
    margin: 0 0 10px 0;
}

.comment-reply-pro a {
    font-size: 13px;
    color: #337ab7;
    text-decoration: none;
}

.comment-reply-pro a:hover {
    text-decoration: underline;
}

.comment-awaiting {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 10px;
}

.comment-form-pro {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.comment-reply-title-pro {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.comment-form-pro .comment-form-comment,
.comment-form-pro .comment-form-author,
.comment-form-pro .comment-form-email {
    margin-bottom: 15px;
}

.comment-form-pro textarea,
.comment-form-pro input[type="text"],
.comment-form-pro input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.comment-form-pro textarea:focus,
.comment-form-pro input:focus {
    outline: none;
    border-color: #337ab7;
}

.comment-form-pro textarea {
    resize: vertical;
}

.submit-pro {
    background: #337ab7;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-pro:hover {
    background: #286090;
}

.comment-form-pro .form-submit {
    margin: 0;
    text-align: right;
}

@media only screen and (max-width: 768px) {
    .comments-area-pro {
        padding: 20px;
    }
    
    .comment-form-pro {
        padding: 20px;
    }
    
    .comment-body-pro {
        gap: 10px;
    }
    
    .comment-avatar-pro img {
        width: 32px;
        height: 32px;
    }
}
