@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Kanit', sans-serif;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    height: .1rem;
    width: .5rem;
}

::-webkit-scrollbar-track {
    background-color: #121212;
}

::-webkit-scrollbar-thumb {
    background-color: #DF2626;
    border-radius: 5rem;
}

body {
    background: #121212;
    color: #FAFAFA;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

header {
    background: #121212;
    padding: 15px 10%;
    position: fixed;
    top: 0%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* Centers everything */
    align-items: center;
    gap: 600px; /* Adjust spacing */
    z-index: 1001;
    transition: 0.2s ease-in-out;
    box-shadow: 1px 7px 5px 0px rgba(0,0,0,0.49);
    -webkit-box-shadow: 1px 7px 5px 0px rgba(0,0,0,0.49);
    -moz-box-shadow: 1px 7px 5px 0px rgba(0,0,0,0.49);
}

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

.navlist {
    display: flex;
    align-items: center;
    gap: 50px;
}

.navlist li a {
    color: #FAFAFA;
    font-weight: 500;
    font-size: 16px;
}

.navlist li a:hover {
    color: #DF2626;
    transition: 0.3s ease-in-out;
}

.logo-img {
    width: 200px;
    height: auto;
    
}

/* Story Hero Video Section */
.story-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.story-hero .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.story-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.9));
    z-index: 2;
}

.story-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    width: 90%;
    max-width: 900px;
}

.story-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #FFFFFF;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.story-title span {
    color: #DF2626;
}

.story-subtitle {
    font-size: 1.5rem;
    color: #d4d4d4;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* News Hero Section */
.news-hero {
    height: 50vh;
    min-height: 400px;
    background-image: url('../assets/news/news-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px; /* To account for fixed header */
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.news-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.news-hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: #DF2626;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.news-hero-content p {
    font-size: 18px;
    color: #FAFAFA;
    line-height: 1.6;
}

/* News Filter Section */
.news-filter {
    background-color: #191919;
    padding: 20px 0;
    position: -webkit-sticky;
    position: sticky;
    top: 80px; /* Match header height */
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-container h3 {
    color: #FAFAFA;
    font-size: 16px;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #2A2A2A;
    color: #FAFAFA;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #DF2626;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    background-color: #2A2A2A;
    border: none;
    padding: 8px 16px;
    border-radius: 20px 0 0 20px;
    color: #FAFAFA;
    font-size: 14px;
    width: 200px;
}

.search-box input:focus {
    outline: none;
}

.search-btn {
    background-color: #DF2626;
    color: #FAFAFA;
    border: none;
    padding: 8px 16px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

/* Featured News */
.featured-news {
    padding: 60px 0;
    background-color: #121212;
}

.featured-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-news-card {
    background-color: #191919;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.featured-news-img {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.featured-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #FAFAFA;
}

.news-category.anime {
    background-color: #5D3FD3;
}

.news-category.manga {
    background-color: #E67E22;
}

.news-category.events {
    background-color: #2ECC71;
}

.news-category.merch {
    background-color: #3498DB;
}

.featured-news-content {
    flex: 1;
    padding: 40px;
}

.news-date {
    color: #a3a3a3;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
}

.featured-news-content h2 {
    color: #FAFAFA;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-news-content p {
    color: #a3a3a3;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.read-more-btn {
    display: inline-block;
    background-color: #DF2626;
    color: #FAFAFA;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.read-more-btn:hover {
    opacity: 0.8;
}

/* News Grid */
.news-grid-section {
    padding: 60px 0;
    background-color: #0A0A0A;
}

.news-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background-color: #191919;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
}

.news-item-img {
    position: relative;
    height: 200px;
}

.news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    padding: 20px;
}

.news-item-content h3 {
    color: #FAFAFA;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-item-content p {
    color: #a3a3a3;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.news-link {
    color: #DF2626;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.news-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.news-link:hover {
    color: #ff4949;
}

.news-link:hover i {
    transform: translateX(5px);
}

.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    background-color: transparent;
    color: #FAFAFA;
    border: 2px solid #DF2626;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #DF2626;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background-color: #191919;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../assets/news/newsletter-bg.jpg');
    background-size: cover;
    background-position: center;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.newsletter-content h2 {
    color: #DF2626;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.newsletter-content p {
    color: #FAFAFA;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    background-color: #DF2626;
    color: #FAFAFA;
    border: none;
    padding: 0 30px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.newsletter-form button:hover {
    opacity: 0.8;
}

/* Footer Styles */
.footer {
    background-color: #0f0f0f;
    padding: 60px 0 20px;
    color: #a3a3a3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    margin-bottom: 30px;
}

.footer-logo-img {
    width: 100%;
    height: auto;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-links-column {
    min-width: 150px;
    margin-bottom: 30px;
}

.footer-links-column h4 {
    color: #FAFAFA;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: #a3a3a3;
    transition: color 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: #DF2626;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h4 {
    color: #FAFAFA;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #232323;
    color: #FAFAFA;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #DF2626;
    transform: translateY(-5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    border-top: 1px solid #2a2a2a;
    text-align: center;
    font-size: 14px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .featured-news {
        flex-direction: column;
    }
    
    .featured-news-image {
        min-height: 250px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        max-width: 200px;
        margin: 0 auto 30px;
    }
    
    .footer-links {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-social {
        text-align: center;
        width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}