:root {
    /* Main Theme Colors */
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #f5f7f9;
    --white: #ffffff;
    --border-color: #ddd;

    /* Layout Constants */
    --max-width: 1200px;
    --header-height: 140px;
    --border-radius: 0;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    color: var(--primary-color);
}

.logo {
    color: var(--primary-color);
    font-style: italic;
}

a {
    transition: all 0.3s ease;
}

/* Header & Nav */
header {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.logo span {
    font-weight: 800;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Category Bar */
.cat-bar {
    background: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}


.cat-container {
    width: var(--max-width);
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
}


.cat-container .cat-item {
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}


.cat-container .cat-item:hover,
.cat-container .cat-item.active {
    opacity: 0.8;
    color: var(--cat-color) !important;
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 2rem auto;
    /*padding: 0 2rem;*/
}

.section-title {
    margin: 3rem 0 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    border-left: 6px solid var(--accent-color);
    padding-left: 1rem;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-main {
    height: 500px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    z-index: 5;
}

.unsplash-credit {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.unsplash-credit a {
    color: #fff;
    text-decoration: underline;
    opacity: 0.9;
}

.unsplash-credit a:hover {
    opacity: 1;
}

.hero-title {
    font-size: 2.5rem;
    color: #fff;
    margin: 1rem 0;
    line-height: 1.2;
    font-weight: 900;
}

.hero-desc {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-side {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
}

.side-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.side-card img {
    width: 120px;
    height: 100%;
    object-fit: cover;
}

.side-card h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 5px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    align-items: start;
}

.card {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

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

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

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.read-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.card-title-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.card:hover .card-title-link,
.card:hover .read-link {
    color: var(--cat-color) !important;
}

/* Badges */
.label {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 5rem 0 3rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-container .logo {
    color: #fff;
    margin-bottom: 1rem;
    display: block;
}

.footer-container p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #2980b9;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Language Switch */
.lang-switch {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 10px;

}

.lang-switch a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.lang-switch a.active {
    background: var(--accent-color);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent-color);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    /*.hero-main { height: 400px; }*/
    .hero-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

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

    .hero-content {
        padding: 1.2rem;
    }

    .hero-title {
        font-size: 1.5rem;
        color: #fff;
        margin: 1rem 0;
        line-height: 1.2;
        font-weight: 700;
    }

    .hero-desc {
        opacity: 0.9;
        margin-bottom: 1.5rem;
    }
}

/* Mobile Menu & Hamburger Logic */
@media (max-width: 900px) {
    header nav {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    .cat-bar {
        display: none;
    }

    /* Hide cat-bar on mobile in favor of menu */
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    z-index: 2100;
    padding: 10px;
    width: 45px;
    height: 45px;
    border-radius: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff !important;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #111111;
    z-index: 3000;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 100px 2rem 2rem;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
}

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

.mobile-menu-inner {
    height: 100%;
    overflow-y: auto;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

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

/* GTA In-article Image Styles */
.article-inner-img {
    margin: 3.5rem -3.5rem; /* Break out of main padding */
    overflow: hidden;
    background: #000;
}
.article-inner-img img {
    width: 100%;
    display: block;
    transition: 0.5s;
}
.article-inner-img:hover img {
    transform: scale(1.02);
}

@media (max-width: 1100px) {
    .article-inner-img {
        margin: 2.5rem -1.5rem;
    }
}

/* Mobile Menu Widget Styles */
.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-list {
    list-style: none;
    padding: 0;
}

.cat-list li {
    margin-bottom: 0.5rem;
}

.cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.cat-link:hover {
    padding-left: 10px;
    color: var(--accent-color);
}