/*
Theme Name: EVEGuru
Theme URI: https://eveguru.online
Author: Sherlock Lynx
Author URI: https://eveguru.online
Description: A modern WordPress theme designed for EVEGuru
Version: 1.0.0
License: Proprietary
Text Domain: eveguru

Copyright (c) 2024 Sherlock Lynx. All Rights Reserved.
This code is the property of Sherlock Lynx and may not be copied, modified,
redistributed, sublicensed, or used in any way without explicit written permission.
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* Import CSS Variables */
@import url('css/variables.css');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove underlines from all links */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

body {
    background-color: #000C19;
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Update heading fonts */
h1, h2, h3, h4, h5, h6,
.site-title,
.primary-menu a,
.hero-content h1,
.section-title,
.category-title,
.grid-item-title,
.post-card-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Header Styles */
.site-header {
    position: relative;
    width: 100%;
    background: rgba(0, 12, 25, 0.95);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 168, 255, 0.1);
    height: var(--header-height);
    margin-top: 0 !important;
}

.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Adjust header position when admin bar is present */
.admin-bar .site-header {
    margin-top: 0 !important;
}

.site-logo {
    height: auto;  /* Changed from fixed height */
    display: flex;
    align-items: center;
}

.site-logo img,
.custom-logo {
    height: auto;  /* Changed from 100% */
    width: auto;
    max-height: 45px;  /* Changed from 40px */
}

.site-logo img.eve-partner-logo {
    height: 45px;
    width: auto;
    max-height: none !important;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.primary-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.primary-menu a:hover {
    color: var(--primary-color);
}

.site-content {
    min-height: calc(100vh - var(--header-height));
    padding-top: 0;
    margin-top: 0;
}

/* Keep spacing below header on homepage only */
body.home .site-content {
    padding-top: 2rem;
}

/* EVE GURU Promotional Banner */
.eveguru-promo {
    background-color: #0a0a0a;
    padding: 8px 15px;
    text-align: center;
    border-bottom: 1px solid #1a1a1a;
}

.eveguru-promo-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #ffffff;
}

.eveguru-promo-button {
    background: #1a1a1a;
    color: #00ff00;
    border: 1px solid #333;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
}

.eveguru-promo-button:hover {
    background: #222;
    border-color: #00ff00;
    color: #fff;
}

.eveguru-promo-link {
    color: #00ff00;
    text-decoration: none;
    padding: 2px 8px;
    border: 1px solid #00ff00;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.eveguru-promo-link:hover {
    background: #00ff00;
    color: #000;
}

/* Adjust header and content when promo banner is present */
body.has-promo .site-header {
    margin-top: 0 !important;
}

body.has-promo.admin-bar .site-header {
    margin-top: 0 !important;
}

@media screen and (max-width: 782px) {
    body.has-promo.admin-bar .site-header {
        margin-top: 0 !important;
    }
}

/* Navigation */
.main-navigation {
    height: 100%;
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    height: 100%;
    margin: 0;
    padding: 0;
    gap: 2px;
}

.primary-menu li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.primary-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.primary-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.primary-menu li.current-menu-item a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.primary-menu li.current-menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Add a subtle separator between menu items */
.primary-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height));
    max-height: 700px;
    min-height: 500px;
    background: #000C19;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-news-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-news-item.active {
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-news-item .thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-news-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news-item .thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.featured-news-item .content {
    position: relative;
    z-index: 3;
    padding: 60px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.featured-news-item h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
    max-width: 800px;
    text-align: center;
}

.featured-news-item .excerpt {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    text-align: center;
}

.featured-news-item .read-more {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.featured-news-item .read-more:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 12, 25, 0.8);
    border: 1px solid rgba(0, 168, 255, 0.3);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 24px;
}

.slider-arrow:hover {
    background: var(--primary-color);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: 30px;
}

.next-arrow {
    right: 30px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 12, 25, 0.6);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(0, 168, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    border-color: #fff;
    transform: scale(1.2);
}

@media (max-width: 1200px) {
    .featured-news-item .content {
        padding: 40px;
    }
    
    .featured-news-item h2 {
        font-size: 3rem;
    }
    
    .featured-news-item .excerpt {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        max-height: 600px;
        min-height: 400px;
    }

    .featured-news-item .content {
        padding: 20px;
        width: 90%;
    }
    
    .featured-news-item h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .featured-news-item .excerpt {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .featured-news-item .read-more {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .slider-arrow {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .prev-arrow {
        left: 15px;
    }

    .next-arrow {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 350px;
    }
    
    .featured-news-item .content {
        padding: 20px;
    }
    
    .featured-news-item h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .featured-news-item .excerpt {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .featured-news-item .read-more {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Blog Posts Grid */
.blog-posts-grid {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    max-width: 1800px;
    background: #000C19;
}

.grid-container {
    margin: 0 auto;
    padding: 0;
    max-width: 1800px;
    background: #000C19;
}

.posts-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 0 auto;
    padding: 20px;
    max-width: 1800px;
}

.post-nav-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

.post-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #00A8FF;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    pointer-events: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.post-arrow:hover {
    background: white;
    color: #00A8FF;
    transform: translateY(-50%) scale(1.1);
}

.post-prev {
    left: -20px;
}

.post-next {
    right: -20px;
}

/* Responsive styles for arrows */
@media (max-width: 768px) {
    .post-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .post-prev {
        left: -18px;
    }
    
    .post-next {
        right: -18px;
    }
    
    .posts-grid {
        padding: 10px;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .post-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .post-prev {
        left: -15px;
    }
    
    .post-next {
        right: -15px;
    }
}

/* Category Sections */
.category-section {
    margin: 0 auto;
    padding: 0;
    max-width: 1800px;
    background: #000C19;
}

.category-title {
    margin: 0 0 5px 0;
    padding: 0;
    border-bottom: 2px solid #333;
    text-align: left;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--primary-color);
    margin: 2px 0;
}

.category-section .posts-grid {
    margin: 0;
    padding: 20px;
}

@media (max-width: 768px) {
    .posts-grid,
    .category-section .posts-grid {
        padding: 15px;
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .posts-grid,
    .category-section .posts-grid {
        padding: 10px;
        gap: 3px;
    }
}

.grid-item {
    background: rgba(0, 12, 25, 0.95);
    border: 1px solid rgba(0, 168, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    height: 100%;
    position: relative;
}

.grid-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.grid-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
    cursor: pointer;
}

.grid-item-title {
    margin: 1rem;
    flex: 0 0 auto;
}

.grid-item-image {
    width: 100%;
    flex: 0 0 auto;
}

.grid-item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

.grid-item-excerpt {
    flex: 1;
    margin-bottom: 1rem;
}

.grid-item-meta {
    flex: 0 0 auto;
}

/* Prevent the link from affecting the read more button styling */
.grid-item .read-more {
    position: relative;
    z-index: 2;
    margin: 0 1rem 1rem;
}

/* Remove any default link styling */
.grid-item-link:hover {
    text-decoration: none;
    color: inherit;
}

.grid-item-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1.5px;
    padding: 5px 10px;
    margin: 0;
    text-align: center;
    background: transparent;
    border-bottom: none;
}

.grid-item-image {
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    margin-top: 0;
}

.grid-item-image a {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
}

.grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item:hover .grid-item-image img {
    transform: scale(1.05);
}

.grid-item-content {
    padding: 12px;
    background: linear-gradient(180deg, rgba(0, 12, 25, 0.95) 0%, rgba(0, 12, 25, 0.98) 100%);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.grid-item-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
    font-family: 'Rajdhani', sans-serif;
    flex-grow: 1;
}

.grid-item .read-more {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(0, 168, 255, 0.2);
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 168, 255, 0.3);
}

.grid-item .read-more:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.grid-item-meta {
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    gap: 15px;
}

.grid-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.grid-item-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background: var(--secondary-color);
}

.analytics-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 168, 255, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.analytics-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.grid-item {
    background: var(--card-bg);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.grid-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: transparent;
    border: none;
}

.grid-item-image a {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
}

.grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item:hover .grid-item-image img {
    transform: scale(1.05);
}

.grid-item-content {
    padding: 1.5rem;
}

.grid-item-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.grid-item-content h2 a {
    color: var(--text-color);
}

.post-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: #000C19;
    color: var(--text-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-branding {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-branding img {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.footer-social a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-social a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-2px);
}

.footer-widget h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: var(--primary-color);
}

.footer-connect {
    text-align: left;
}

.footer-connect .join-discord {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.footer-connect .join-discord:hover {
    background-color: var(--primary-color-dark);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-legal {
    font-size: 0.85rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-branding {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .site-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 1800px) {
    .blog-posts-grid,
    .grid-container,
    .posts-grid,
    .category-section {
        max-width: 1600px;
    }
    
    .featured-news-item .content {
        padding: 50px;
    }
    
    .featured-news-item h2 {
        font-size: 3.2rem;
    }
}

@media (max-width: 1600px) {
    .blog-posts-grid,
    .grid-container,
    .posts-grid,
    .category-section {
        max-width: 1400px;
    }
    
    .featured-news-item .content {
        padding: 45px;
    }
    
    .featured-news-item h2 {
        font-size: 3rem;
    }
}

@media (max-width: 1400px) {
    .blog-posts-grid,
    .grid-container,
    .posts-grid,
    .category-section {
        max-width: 1200px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .featured-news-item .content {
        padding: 40px;
    }
    
    .featured-news-item h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 1200px) {
    .blog-posts-grid,
    .grid-container,
    .posts-grid,
    .category-section {
        max-width: 1000px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-news-item .content {
        padding: 35px;
    }
    
    .featured-news-item h2 {
        font-size: 2.5rem;
    }
    
    .featured-news-item .excerpt {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .blog-posts-grid,
    .grid-container,
    .posts-grid,
    .category-section {
        max-width: 800px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-news-item .content {
        padding: 30px;
    }
    
    .featured-news-item h2 {
        font-size: 2.2rem;
    }
    
    .featured-news-item .excerpt {
        font-size: 1rem;
    }
    
    .grid-item-title {
        font-size: 0.9rem;
    }
    
    .grid-item-excerpt {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid,
    .grid-container,
    .posts-grid,
    .category-section {
        max-width: 600px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .featured-news-item .content {
        padding: 25px;
    }
    
    .featured-news-item h2 {
        font-size: 2rem;
    }
    
    .featured-news-item .excerpt {
        font-size: 0.9rem;
    }
    
    .grid-item-image {
        height: 120px;
    }
    
    .grid-item-content {
        padding: 10px;
    }
    
    .grid-item-title {
        font-size: 0.85rem;
        padding: 8px;
    }
    
    .grid-item-excerpt {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .grid-item .read-more {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .grid-item-meta {
        font-size: 0.7rem;
        gap: 10px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .blog-posts-grid,
    .grid-container,
    .posts-grid,
    .category-section {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .featured-news-item .content {
        padding: 20px;
    }
    
    .featured-news-item h2 {
        font-size: 1.8rem;
    }
    
    .featured-news-item .excerpt {
        font-size: 0.85rem;
    }
    
    .grid-item-image {
        height: 150px;
    }
    
    .grid-item-content {
        padding: 12px;
    }
    
    .grid-item-title {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .grid-item-excerpt {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .grid-item .read-more {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .grid-item-meta {
        font-size: 0.75rem;
        gap: 12px;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .featured-news-item .content {
        padding: 15px;
    }
    
    .featured-news-item h2 {
        font-size: 1.5rem;
    }
    
    .featured-news-item .excerpt {
        font-size: 0.8rem;
    }
    
    .grid-item-image {
        height: 130px;
    }
    
    .grid-item-content {
        padding: 10px;
    }
    
    .grid-item-title {
        font-size: 0.85rem;
        padding: 8px;
    }
    
    .grid-item-excerpt {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .grid-item .read-more {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .grid-item-meta {
        font-size: 0.7rem;
        gap: 10px;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
}

/* Ensure proper stacking context for mobile devices */
@media (max-width: 768px) {
    .site-header {
        height: 50px;
    }
    
    .admin-bar .site-header {
        margin-top: 0 !important;
    }
    
    .site-content {
        padding-top: 0;
    }
    
    .admin-bar .site-content {
        padding-top: 0;
    }
}

/* Fix for iOS devices */
@supports (-webkit-touch-callout: none) {
    .site-header {
        position: sticky;
    }
    
    .admin-bar .site-header {
        margin-top: 0 !important;
    }
    
    @media (max-width: 782px) {
        .admin-bar .site-header {
            margin-top: 0 !important;
        }
    }
}

/* Pagination */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: rgba(0, 168, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 3px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .page-numbers:hover:not(.current) {
    background: rgba(0, 168, 255, 0.2);
    border-color: var(--primary-color);
}

/* Download Page Styles */
.download-page {
    background: #000C19;
}

/* Hero Section */
.download-hero {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, var(--background-color) 100%);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Background image removed - file doesn't exist */
    /* background: url('assets/images/eve-space.jpg') center/cover; */
    background: linear-gradient(135deg, rgba(0, 50, 100, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0.2;
    z-index: 1;
}

.download-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.download-cta {
    margin-top: 2rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,168,255,0.3);
}

.download-button .version {
    font-size: 0.8rem;
    opacity: 0.8;
}

.compatibility {
    margin-top: 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: rgba(0,0,0,0.8);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: rgba(0,12,25,0.95);
    border: 1px solid rgba(0,168,255,0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Download Section */
.download-section {
    padding: 80px 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, var(--background-color) 100%);
}

.download-card {
    background: rgba(0,12,25,0.95);
    border: 1px solid rgba(0,168,255,0.1);
    border-radius: 15px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.version-info {
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.version-number {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-right: 1rem;
}

.release-date {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.requirements {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.requirements li {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.requirements li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.download-actions {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.primary-download,
.secondary-download {
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.primary-download {
    background: var(--primary-color);
    color: #fff;
}

.secondary-download {
    background: rgba(0,168,255,0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0,168,255,0.3);
}

.primary-download:hover,
.secondary-download:hover {
    transform: translateY(-2px);
}

/* Installation Guide */
.installation-section {
    padding: 80px 0;
    background: rgba(0,0,0,0.9);
}

.installation-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.installation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step {
    text-align: center;
    padding: 30px;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.step h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .download-card {
        margin: 0 20px;
        padding: 20px;
    }
}

/* Download Page Additional Styles */
.download-card {
    margin-bottom: 40px;
}

.linux-card {
    border-color: #E95420;
}

.download-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    margin-bottom: 20px;
}

.download-card h2 i {
    font-size: 24px;
}

.platform-note {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 5px;
}

.install-instructions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.install-instructions h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.install-instructions ol {
    list-style-position: inside;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.install-instructions li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.install-instructions em {
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

.important-note {
    background: rgba(233,84,32,0.1);
    border-left: 3px solid #E95420;
    padding: 15px;
    margin-top: 20px;
    color: rgba(255,255,255,0.8);
}

.important-note strong {
    color: #E95420;
}

.steam-instructions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.steam-instructions h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .install-instructions ol {
        padding-left: 20px;
    }
    
    .steam-instructions ol {
        padding-left: 20px;
    }
}

/* About Page Styles - Improved */
.about-page {
    background: #000C19;
    padding: 60px 0;
}

.about-content {
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 20px;
    color: #fff;
}

.section-title {
    font-size: 2.8rem;
    color: #00A8FF;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #00A8FF;
    margin: 15px auto 0;
}

.content-wrapper {
    line-height: 1.8;
    font-size: 1.1rem;
    background: rgba(0, 12, 25, 0.7);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.content-wrapper p {
    margin-bottom: 1.5rem;
}

.content-wrapper h2 {
    color: #00A8FF;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Rajdhani', sans-serif;
}

.content-wrapper h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.content-wrapper ul, 
.content-wrapper ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.content-wrapper a {
    color: #00A8FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-wrapper a:hover {
    color: #29daff;
    text-decoration: underline;
}

.content-wrapper img {
        max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
        margin: 2rem auto;
}

.team-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #00A8FF;
    margin-bottom: 40px;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.team-section h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #00A8FF;
    margin: 15px auto 0;
}

    .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: rgba(0, 12, 25, 0.7);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
}

.team-member:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00A8FF, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.5);
    background: rgba(0, 20, 40, 0.8);
}

.team-member:hover:before {
    transform: scaleX(1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #00A8FF;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 168, 255, 0.5);
}

.team-member h3 {
    font-size: 1.4rem;
    color: #00A8FF;
    margin-bottom: 5px;
    font-family: 'Rajdhani', sans-serif;
    transition: color 0.3s ease;
}

.team-member p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.team-member:hover h3 {
    color: #29daff;
}

.team-member:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Styles for About Page */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .about-page {
        padding: 40px 0;
    }
    
    .team-section h2 {
        font-size: 2rem;
    }
    
    .content-wrapper {
    font-size: 1rem;
        padding: 25px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.6rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .team-member {
        padding: 20px 15px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .team-member h3 {
    font-size: 1.2rem;
    }
    
    .team-member p {
        font-size: 0.9rem;
    }
    
    .content-wrapper {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Wiki Content Image Styles */
.entry-content img,
.wiki-content img,
.post-content img,
article img:not(.grid-item img):not(.blog-post-card img):not(.featured-news-item img):not(.post-card img),
.page-content img,
main img:not(.grid-item img):not(.blog-post-card img):not(.featured-news-item img):not(.post-card img),
figure.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 2rem auto;
}

.entry-content img:hover,
.wiki-content img:hover,
.post-content img:hover,
article img:not(.grid-item img):not(.blog-post-card img):not(.featured-news-item img):not(.post-card img):hover,
.page-content img:hover,
main img:not(.grid-item img):not(.blog-post-card img):not(.featured-news-item img):not(.post-card img):hover,
figure.wp-block-image img:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.2);
}

/* Post card/grid item image styles */
.grid-item img,
.blog-post-card img,
.featured-news-item img,
.post-card img {
    cursor: default;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
}

.grid-item:hover img,
.blog-post-card:hover img,
.featured-news-item:hover img,
.post-card:hover img {
    transform: scale(1.05);
}

/* Figure styles */
figure.wp-block-image {
    margin: 2rem auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

figure.wp-block-image:hover {
    transform: translateY(-2px);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.lightbox.active,
.lightbox[style*="display: flex"] {
    display: flex !important;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox button {
    position: absolute;
    background: rgba(0, 12, 25, 0.8);
    border: 1px solid rgba(0, 168, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000000;
    padding: 15px;
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox button:hover {
    background: rgba(0, 168, 255, 0.8);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Ensure lightbox is above admin bar */
body.admin-bar .lightbox {
    top: 32px;
    height: calc(100% - 32px);
}

@media (max-width: 782px) {
    body.admin-bar .lightbox {
        top: 46px;
        height: calc(100% - 46px);
    }
}

/* Ensure lightbox works with BasePress content */
.bpress-post-content img,
.bpress-article-content img,
.entry-content img,
.post-content img,
.wiki-content img,
figure.wp-block-image img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bpress-post-content img:hover,
.bpress-article-content img:hover,
.entry-content img:hover,
.post-content img:hover,
.wiki-content img:hover,
figure.wp-block-image img:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.2);
}

/* Fix for figure elements */
figure.wp-block-image {
    margin: 2rem auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

figure.wp-block-image:hover {
    transform: translateY(-2px);
}

/* Ensure proper stacking context */
.lightbox {
    z-index: 999999;
}

.lightbox-content {
    z-index: 1000000;
}

.lightbox button {
    z-index: 1000001;
}

/* Fix for mobile devices */
@media (max-width: 768px) {
    .lightbox button {
        padding: 10px;
        font-size: 20px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

.footer-branding {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-branding img {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
}

.footer-branding .custom-logo {
    max-width: 150px;
    height: auto;
}

.footer-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.post-title,
.page-title {
    font-family: var(--heading-font);
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    letter-spacing: 0.5px;
}

.post-content,
.page-content {
    font-family: var(--body-font);
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.post-content p,
.page-content p {
    margin-bottom: 1.5rem;
}

/* Ensure punctuation marks are clear */
.post-content,
.page-content,
.post-title,
.page-title {
    text-rendering: optimizeLegibility;
}

/* Ensure headings maintain brand style while being readable */
.site-title,
.nav-menu a,
.button,
.cta-button {
    font-family: var(--heading-font);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Add @font-face declarations if not already present */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.woff2') format('woff2'),
         url('fonts/Inter-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.woff2') format('woff2'),
         url('fonts/Inter-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('fonts/Rajdhani-SemiBold.woff2') format('woff2'),
         url('fonts/Rajdhani-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Floating Discord Button */
.floating-discord {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #5865F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.floating-discord:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
    background: #4752C4;
}

.floating-discord i {
    color: #fff;
    font-size: 28px;
}

@media (max-width: 768px) {
    .floating-discord {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-discord i {
        font-size: 24px;
    }
}

/* BasePress Post Styles */
.bpress-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bpress-post-content img:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.2);
}

/* Ensure lightbox works for BasePress */
.bpress-post-content {
    position: relative;
}

/* Wiki Link Styles */
.wiki-content a,
.bpress-post-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 1;
}

.wiki-content a:hover,
.bpress-post-content a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--primary-color);
    opacity: 1;
}

/* Blog Archive Page Styles */
.blog-archive {
    padding: 2rem;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #000C19;
}

.blog-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 20px;
    position: relative;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.blog-post-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

/* Blog Navigation Arrows */
.blog-nav-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.blog-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-size: 24px;
    z-index: 100;
}

.blog-arrow:hover {
    background: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.blog-prev {
    left: -25px;
}

.blog-next {
    right: -25px;
}

/* Blog Category Section */
.blog-category-section {
    margin-bottom: 40px;
    padding: 0;
    max-width: 1800px;
    margin: 0 auto 40px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 20px;
}

.category-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    position: relative;
}

.category-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--primary-color);
    margin-top: 5px;
}

/* Blog Post Cards */
.blog-post-card {
    background: rgba(0, 12, 25, 0.95);
    border: 1px solid rgba(0, 168, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.post-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border-bottom: none;
    padding: 0;
}

.post-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.post-card-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

.post-card-link {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(0, 168, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 168, 255, 0.2);
    margin-top: 15px;
}

.post-card-link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Blog Archive Navigation */
.blog-archive-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.archive-nav-button {
    background: rgba(0, 12, 25, 0.8);
    border: 1px solid rgba(0, 168, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-nav-button:hover {
    background: var(--primary-color);
    border-color: #fff;
}

/* Homepage Post Title Styles */
.news h2, 
.announcements h2,
.major-news h2,
.oz-section h2,
.oz-report-section h2,
.grid-item h2,
.grid-item h3,
.news-section article h2,
.announcements article h2,
.oz-section article h2,
.oz-report-section article h2 {
    background: transparent !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Title Links in Homepage Posts */
.news h2 a, 
.announcements h2 a,
.major-news h2 a,
.oz-section h2 a,
.oz-report-section h2 a,
.grid-item h2 a,
.grid-item h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    background: transparent !important;
}

.news h2 a:hover, 
.announcements h2 a:hover,
.major-news h2 a:hover,
.oz-section h2 a:hover,
.oz-report-section h2 a:hover,
.grid-item h2 a:hover,
.grid-item h3 a:hover {
    color: var(--primary-color);
}

/* Force removal of dark header bars in all cards */
.grid-item-title,
.post-card-title,
div.post-title,
h2.post-title,
h3.post-title,
.widget-title,
.entry-title,
.news-title,
.announcement-title {
    background: transparent !important;
    border-bottom: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

/* Target the specific EVE GURU post card title issue */
.news article h2,
.announcements article h2,
.oz-section article h2,
.oz-report-section article h2,
.major-news article h2 {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    position: relative;
    top: 0;
}

/* Fix spacing in all post cards */
article {
    display: flex;
    flex-direction: column;
}

article img, 
article .image, 
article .thumbnail {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Force consistent spacing in all post containers */
.grid-item, 
.post-card, 
.blog-post-card,
.news article,
.announcements article,
.post {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Fix for the space between title and image */
.grid-item-title + .grid-item-image,
h2 + .post-card-image,
h2 + img,
h3 + img,
h4 + img,
.title + .image,
.header + .image {
    margin-top: 0 !important;
}

/* Post navigation arrows - Fix visibility issues */
.post-nav-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    pointer-events: none;
}

.post-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-size: 20px;
    z-index: 200;
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.post-arrow:hover {
    background: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.post-prev {
    left: -20px;
}

.post-next {
    right: -20px;
}

/* Ensure proper positioning context */
.category-section {
    position: relative;
}

.posts-grid {
    position: relative;
    z-index: 1;
}

/* Post navigation arrows - Force visibility */
.post-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #00A8FF !important;
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5) !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

.post-prev {
    left: -22px !important;
}

.post-next {
    right: -22px !important;
}

/* Ensure the post navigation arrows container has proper positioning */
.post-nav-arrows {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9998 !important;
}

/* Override any potential conflicts */
button.post-arrow {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .post-arrow {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
    }
    
    .post-prev {
        left: -18px !important;
    }
    
    .post-next {
        right: -18px !important;
    }
}

/* Hide post navigation arrows */
.post-nav-arrows,
.post-arrow,
.post-prev,
.post-next {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* End of styles */ 

/* Video Styles for About Page */
.about-page .wp-block-embed,
.about-page .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 60px auto 40px;
}

.about-page .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.about-page .wp-block-embed__wrapper:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.about-page .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Remove border and padding from the content wrapper */
.about-page .content-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 40px;
}

/* About Page Team Section Improvements */
.team-section {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}

/* Add paragraph styling to ensure text is still readable on transparent background */
.about-page .content-wrapper p {
    background: rgba(0, 12, 25, 0.7);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Ensure the video maintains top position with less bottom margin */
.about-page .wp-block-embed,
.about-page .wp-block-embed__wrapper {
    margin-bottom: 20px;
}

/* Add less margin to content wrapper */
.about-page .content-wrapper {
    margin-bottom: 20px;
}

/* Adjust fullwidth layout for videos */
@media (min-width: 992px) {
    .about-page .wp-block-embed,
    .about-page .wp-block-embed__wrapper {
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .about-page .wp-block-embed,
    .about-page .wp-block-embed__wrapper {
        max-width: 100%;
    }
    
    .about-page .content-wrapper {
        padding: 0;
    }
}

@media (min-width: 1600px) {
    .about-page .wp-block-embed,
    .about-page .wp-block-embed__wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .about-content {
        margin: 20px auto 40px;
    }
    
    .about-page .wp-block-embed,
    .about-page .wp-block-embed__wrapper {
        margin: 40px auto 30px;
    }
}

/* Subscription Section Styling - Improved */
.subscription-section {
    padding: 60px 0;
    background: rgba(0, 12, 25, 0.7);
    border-top: 1px solid rgba(0, 168, 255, 0.1);
    margin-top: 20px;
}

.subscription-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0, 12, 25, 0.95);
    border: 1px solid rgba(0, 168, 255, 0.1);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.subscription-info h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subscription-info .trial-highlight {
    background: rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.subscription-info .trial-highlight h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.subscription-info ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.subscription-info ul li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.subscription-info ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.subscription-info .note {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-info .isk-note {
    background: rgba(233, 84, 32, 0.1);
    border-left: 3px solid #E95420;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .subscription-section {
        padding: 40px 0;
    }
    
    .subscription-info {
        padding: 20px;
        margin: 0 15px;
    }
    
    .subscription-info h2 {
        font-size: 1.7rem;
    }
    
    .subscription-info .trial-highlight h3 {
        font-size: 1.3rem;
    }
}

.mcp-author-highlights {
    margin: 0 auto;
    padding: 0;
    max-width: 1800px;
    background: #000C19;
}

.mcp-author-highlights h2 {
    margin: 0 0 5px 0;
    padding: 0;
    border-bottom: 2px solid #333;
    text-align: left;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mcp-author-highlights h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--primary-color);
    margin: 2px 0;
}

.mcp-highlights-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 0;
    padding: 20px;
}

/* Responsive adjustments for author highlights */
@media (max-width: 1200px) {
    .mcp-highlights-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .mcp-highlights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mcp-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mcp-highlights-grid {
        grid-template-columns: 1fr;
    }
}

.mcp-highlight-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1.5px;
    margin: 0 0 10px 0;
    background: transparent;
    border-bottom: none;
}

.mcp-highlight-content h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mcp-highlight-content h3 a:hover {
    color: var(--primary-color);
}

.mcp-highlight-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
    font-family: 'Rajdhani', sans-serif;
    flex-grow: 1;
}

.mcp-highlight-meta {
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    gap: 15px;
}

.mcp-highlight-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mcp-highlight-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.mcp-highlight-card .read-more {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(0, 168, 255, 0.2);
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 168, 255, 0.3);
    margin-top: 15px;
}

.mcp-highlight-card .read-more:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Responsive adjustments for author highlights */
@media (max-width: 1200px) {
    .mcp-highlights-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .mcp-highlights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mcp-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mcp-highlights-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
    position: relative;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: background 0.2s ease-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    left: 0;
    transition: all 0.2s ease-out;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    /* Keep the toggle button in the header when menu is closed */
    .mobile-menu-toggle {
        position: relative;
        right: 0;
        top: 0;
    }

    /* When menu is active, keep the button in its original position */
    .mobile-menu-toggle.active {
        position: relative;
        right: 0;
        top: 0;
    }

    .main-navigation {
        position: fixed;
        top: var(--header-height);
        right: -200px;
        width: auto;
        height: auto;
        background: #000C19;
        padding: 0;
        transition: right 0.3s ease-out;
        z-index: 999;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    }

    .main-navigation.active {
        right: 0;
    }

    .primary-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        white-space: nowrap;
    }

    .primary-menu li {
        width: 100%;
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .primary-menu a {
        padding: 12px 24px;
        width: 100%;
        justify-content: flex-start;
        font-size: 16px;
        color: #fff;
        transition: background 0.2s ease;
    }

    .primary-menu a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .primary-menu li::after {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Adjust header for mobile */
    .site-header {
        background: #000C19;
    }

    .header-content {
        padding: 0 20px;
    }

    /* Add a semi-transparent overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }
}