/* Base Styles */
:root {
    --primary-color: #6C63FF;
    --secondary-color: #4D47BE;
    --accent-color: #FFB800;
    --text-color: #333333;
    --light-text: #777777;
    --bg-color: #FFFFFF;
    --light-bg: #F5F7FA;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --error-color: #EF4444;
    --font-primary: 'Nunito', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

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

html {
    font-size: 62.5%; /* 10px base font size */
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

button, .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}

button:hover, .btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Header Styles */
.site-header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2.4rem;
    margin-bottom: 0;
}

.logo a {
    color: var(--text-color);
}

.main-nav .nav-menu {
    display: flex;
    list-style: none;
}

.main-nav .nav-menu li {
    margin-left: 2rem;
}

.main-nav .nav-menu a {
    color: var(--text-color);
    font-weight: 600;
}

.main-nav .nav-menu a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
}

.menu-icon {
    display: block;
    width: 2.5rem;
    height: 0.2rem;
    background-color: var(--text-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    transition: transform 0.3s ease;
}

.menu-icon::before {
    transform: translateY(-0.8rem);
}

.menu-icon::after {
    transform: translateY(0.8rem);
}
/* Search styles with improved visibility - Add to your existing CSS */

/* Search link in navigation */
.search-toggle {
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-toggle:hover, 
.search-toggle:focus {
    color: var(--primary-color);
}

/* Search form container - IMPROVED VISIBILITY */
.search-form-container {
    display: none !important; /* Force hide with !important */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: 1.5rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999 !important; /* Ensure it's on top */
}

/* Force display with !important when active */
.search-form-container.active {
    display: block !important;
}

/* Google Search form */
.search-form {
    display: flex;
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.4rem 0 0 0.4rem;
    font-size: 1.6rem;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.search-form input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.search-form button {
    padding: 1.2rem 2rem;
    border-radius: 0 0.4rem 0.4rem 0;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.search-form button:hover {
    background-color: var(--secondary-color);
}

.search-form button i {
    font-size: 1.4rem;
}


/* Responsive styles for the search form */
@media screen and (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-form input[type="text"] {
        border-radius: 0.4rem;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .search-form button {
        border-radius: 0.4rem;
        width: 100%;
        justify-content: center;
    }
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/mmoMain.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.8rem;
    color: white;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 2rem;
    max-width: 60rem;
    margin: 0 auto 3rem;
}

/* Search Bar in Hero */
.hero-search {
    width: 80%;
    max-width: 60rem;
    margin: 3rem auto 0;
    position: relative;
    z-index: 2;
}

.hero-search form {
    display: flex;
    width: 100%;
}

.hero-search input[type="text"] {
    flex: 1;
    padding: 1.5rem;
    border: none;
    border-radius: 0.4rem 0 0 0.4rem;
    font-size: 1.6rem;
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-search button {
    padding: 1.5rem 3rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 0.4rem 0.4rem 0;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.hero-search button:hover {
    background-color: #e0a500;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
    
    .hero-search {
        width: 90%;
    }
    
    .hero-search input[type="text"] {
        padding: 1.2rem;
    }
    
    .hero-search button {
        padding: 1.2rem 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-search form {
        flex-direction: column;
    }
    
    .hero-search input[type="text"] {
        border-radius: 0.4rem;
        margin-bottom: 1rem;
    }
    
    .hero-search button {
        border-radius: 0.4rem;
    }
}


/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.featured-articles h2,
.categories-section h2,
.related-articles h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.article-card {
    background-color: var(--bg-color);
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-image {
    height: 20rem;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 50%;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-card .article-content {
    padding: 2rem;
}

.article-card .article-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.article-card .article-content h4 {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-excerpt {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.read-more {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 0.8rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 6rem 0;
    margin-top: 4rem;
}

.newsletter-content {
    max-width: 60rem;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    color: white;
}

.newsletter-form {
    display: flex;
    margin-top: 3rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.5rem;
    border: none;
    border-radius: 0.4rem 0 0 0.4rem;
    font-size: 1.6rem;
}

.newsletter-form .btn {
    background-color: var(--accent-color);
    border-radius: 0 0.4rem 0.4rem 0;
}

.newsletter-form .btn:hover {
    background-color: #e0a500;
}

/* Enhanced Single Article Page */
.article-container {
    padding: 3rem 0 5rem;
    background-color: var(--bg-color);
}

.main-article {
    max-width: 80rem;
    margin: 0 auto 4rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    position: relative;
}

/* Top meta info with reading time */
.article-meta-top {
    text-align: center;
    font-size: 1.4rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    font-weight: 500;
}

.article-meta-top .category a {
    color: var(--primary-color);
    font-weight: 600;
}

.article-meta-top .separator {
    margin: 0 0.8rem;
    display: inline-block;
}

.article-meta-top .reading-time {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Enhanced article header */
.article-header {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.article-header h1 {
    font-size: 4.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.article-header .subtitle {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--light-text);
    max-width: 80%;
    margin: 0 auto 1.5rem;
    line-height: 1.4;
}

/* Featured Image with enhanced styles */
.featured-image {
    margin: 0 -3rem 3rem; /* Negative margin to make image flush with container edges */
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.featured-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.featured-image:hover img {
    transform: scale(1.02);
}

.image-caption {
    text-align: center;
    color: var(--light-text);
    font-size: 1.3rem;
    font-style: italic;
    margin-top: 1rem;
    padding: 0 3rem;
}

/* Dropcap for first paragraph */
.dropcap {
    float: left;
    font-size: 7.5rem;
    line-height: 0.65;
    margin: 0.1em 0.15em 0 0;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-weight: 700;
}

/* Article content typography refinements */
.article-content {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #2d3748;
}

.article-content h2 {
    font-size: 2.8rem;
    margin-top: 4.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1.5rem;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 6rem;
    height: 0.3rem;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.article-content h3 {
    font-size: 2.4rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 2.5rem;
}

.article-content strong, 
.article-content b {
    color: #1a202c;
    font-weight: 700;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 2.5rem;
    padding-left: 2.5rem;
}

.article-content li {
    margin-bottom: 1rem;
    position: relative;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(108, 99, 255, 0.3);
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-color: var(--primary-color);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 2rem 3rem;
    margin: 3rem 0;
    background-color: rgba(108, 99, 255, 0.05);
    border-radius: 0.5rem;
    font-style: italic;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: rgba(108, 99, 255, 0.2);
    font-family: Georgia, serif;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Enhanced image containers with alternating layouts */
.article-image-container {
    margin: 3.5rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Alternating image alignment */
.article-image-alignment:nth-of-type(odd) {
    margin-right: 2rem;
    margin-left: -2rem;
}

.article-image-alignment:nth-of-type(even) {
    margin-left: 2rem;
    margin-right: -2rem;
}

.article-image {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-image.zoomed {
    transform: scale(1.05);
}

/* Article tags with enhanced design */
.article-tags {
    margin: 4rem 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tags-title {
    font-weight: 600;
    margin-right: 1.5rem;
    color: var(--text-color);
}

.tag {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 0.6rem 1.5rem;
    border-radius: 3rem;
    margin: 0.5rem;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Author info section */
.author-info {
    display: flex;
    align-items: center;
    padding: 2.5rem;
    background-color: var(--light-bg);
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.author-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 2rem;
    flex-shrink: 0;
    color: var(--primary-color);
}

.author-details h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.author-details p {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 0;
}

/* Redesigned share buttons */
.share-buttons {
    margin-top: 3rem;
}

.share-buttons h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.share-buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.8rem;
    border-radius: 3rem;
    color: white;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    min-width: 12rem;
}

.share-btn svg {
    margin-right: 0.8rem;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.email {
    background-color: #555555;
}

.share-btn.copy-link {
    background-color: #2d3748;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    opacity: 0.9;
    color: white;
    transform: translateY(-2px);
}

/* Enhanced Article Footer */
.article-footer {
    margin-top: 4rem;
}

/* Related articles section with enhanced design */
.related-articles {
    background-color: var(--light-bg);
    padding: 5rem 3rem;
    border-radius: 1rem;
    margin: 5rem auto;
    max-width: 120rem;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    font-size: 3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.related-articles h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.3rem;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Enhanced newsletter section */
.article-newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 5rem 3rem;
    border-radius: 1rem;
    margin: 5rem auto;
    text-align: center;
    max-width: 90rem;
    color: white;
    box-shadow: 0 10px 30px rgba(77, 71, 190, 0.3);
}

.article-newsletter h3 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.article-newsletter p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.article-newsletter .newsletter-form {
    display: flex;
    max-width: 55rem;
    margin: 0 auto;
}

.article-newsletter .newsletter-form input {
    flex: 1;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: 3rem 0 0 3rem;
    font-size: 1.6rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-newsletter .newsletter-form .btn {
    padding: 1.5rem 3rem;
    border-radius: 0 3rem 3rem 0;
    background-color: var(--accent-color);
    font-weight: 700;
    font-size: 1.6rem;
}

.article-newsletter .newsletter-form .btn:hover {
    background-color: #e0a500;
}

/* Category Page */
.category-header {
    text-align: center;
    margin-bottom: 4rem;
}

.category-header h1 {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
}

.category-description {
    max-width: 70rem;
    margin: 0 auto;
    font-size: 1.8rem;
    color: var(--light-text);
}

.articles-section {
    margin-bottom: 5rem;
}

.no-articles {
    text-align: center;
    padding: 5rem 0;
    color: var(--light-text);
    font-size: 1.8rem;
}

.other-categories {
    padding: 4rem 0;
    background-color: var(--light-bg);
    border-radius: 0.8rem;
    margin-bottom: 4rem;
}

.other-categories h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 5rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1;
}

.error-message {
    font-size: 2.4rem;
    margin-bottom: 2rem;
}

.error-description {
    color: var(--light-text);
    margin-bottom: 3rem;
}

.error-page .btn {
    margin: 0 1rem;
}

.suggested-links {
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.suggested-links h3 {
    margin-bottom: 2rem;
}

.suggested-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.suggested-list a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--light-bg);
    border-radius: 2rem;
    transition: background-color 0.3s ease;
}

.suggested-list a:hover {
    background-color: var(--border-color);
}

/* Enhanced Footer Styles */
.site-footer {
    background-color: #1A1A1A;
    color: rgba(255, 255, 255, 0.8);
    padding: 6rem 0 2rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4rem;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section .btn-sm {
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.social-links {
    display: flex;
    margin-top: 2rem;
    gap: 1.2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-section.links ul {
    list-style: none;
    column-count: 2;
    column-gap: 2rem;
}

.footer-section.links li {
    margin-bottom: 1.2rem;
    break-inside: avoid;
}

.footer-section.links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.3rem 0;
    position: relative;
}

.footer-section.links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section.links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-section.links a:hover::after {
    width: 100%;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    font-style: normal;
    margin-right: 1rem;
    font-size: 1.8rem;
}

.contact-link {
    color: var(--accent-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: white;
}

.footer-section.newsletter .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section.newsletter input {
    padding: 1.2rem;
    border-radius: 0.4rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
}

.footer-section.newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-section.newsletter button {
    border-radius: 0.4rem;
    background-color: var(--accent-color);
    font-weight: 600;
}

.footer-section.newsletter button:hover {
    background-color: #e0a500;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 2rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.4rem;
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 4rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 0.5rem;
    border-radius: 0.4rem;
    font-weight: 600;
}

.pagination a {
    background-color: var(--light-bg);
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination .current {
    background-color: var(--primary-color);
    color: white;
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 1.5rem;
}

/* Responsive image grid for article pages */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.image-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-grid-item:hover img {
    transform: scale(1.05);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav .nav-menu.active {
        display: flex;
    }
    
    .main-nav .nav-menu li {
        margin: 0;
    }
    
    .main-nav .nav-menu a {
        display: block;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 0.4rem;
        margin-bottom: 1rem;
    }
    
    .newsletter-form .btn {
        border-radius: 0.4rem;
    }
    
    .main-article {
        padding: 2rem;
    }
    
    .featured-image {
        margin: 0 -2rem 2.5rem;
    }
    
    .article-header h1 {
        font-size: 3.2rem;
    }
    
    .article-header .subtitle {
        font-size: 1.8rem;
        max-width: 100%;
    }
    
    .article-image-alignment:nth-of-type(odd),
    .article-image-alignment:nth-of-type(even) {
        margin-left: 0;
        margin-right: 0;
    }
    
    .article-content {
        font-size: 1.7rem;
    }
    
    .article-content h2 {
        font-size: 2.4rem;
    }
    
    .article-content h3 {
        font-size: 2rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .share-buttons-container {
        flex-wrap: wrap;
    }
    
    .share-btn {
        flex: 1 0 45%;
        margin-bottom: 1rem;
    }
    
    .article-newsletter {
        padding: 3rem 2rem;
    }
    
    .article-newsletter .newsletter-form {
        flex-direction: column;
    }
    
    .article-newsletter .newsletter-form input {
        border-radius: 3rem;
        margin-bottom: 1rem;
    }
    
    .article-newsletter .newsletter-form .btn {
        border-radius: 3rem;
    }
    
    .footer-content {
        gap: 3rem;
    }
    
    .footer-section.links ul {
        column-count: 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 55%;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-image {
        height: 18rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .main-article {
        padding: 1.5rem;
    }
    
    .featured-image {
        margin: 0 -1.5rem 2rem;
    }
    
    .article-header h1 {
        font-size: 2.8rem;
    }
    
    .dropcap {
        font-size: 6rem;
        margin: 0.05em 0.1em 0 0;
    }
    
    .article-content {
        font-size: 1.6rem;
    }
    
    .share-btn {
        flex: 1 0 100%;
    }
    
    .article-meta-top {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .article-meta-top .separator {
        display: none;
    }
    
    .footer-section h3 {
        font-size: 2rem;
    }
    
    .footer-section p {
        font-size: 1.5rem;
    }
}
/* Add this to the bottom of your style.css file */


/* Additional CSS Fixes for Category Dropdown */

/* Make sure the dropdown is positioned correctly */
#categories-nav-item {
    position: relative;
}

/* Position the dropdown to appear on the right */
#categories-dropdown {
    right: 0;
    left: auto;
    transform: none;
    min-width: 220px;
    top: 100%;
}

/* Ensure the dropdown styling is applied */
#categories-dropdown {
    display: none;
    position: absolute;
    z-index: 999;
    background: var(--bg-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin-top: 5px;
}

#categories-dropdown.active {
    display: block;
}

/* Style for the dropdown links */
.dropdown-column a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.dropdown-column a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.03);
    padding-left: 18px;
}

/* Fix the dropdown arrow */
.dropdown-arrow {
    display: inline-block;
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

#categories-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Enhanced About Page Styles */

/* Hero Section */
.about-hero {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(77, 71, 190, 0.1) 0%, rgba(108, 99, 255, 0.2) 100%);
    border-radius: 1.5rem;
    margin: 3rem 0 5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .about-hero {
        flex-direction: row;
        align-items: center;
        padding: 6rem 4rem;
    }
}

.about-hero-content {
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .about-hero-content {
        flex: 1;
        text-align: left;
        padding: 0 2rem 0 0;
    }
}

.about-hero h1 {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 800;
}

@media (min-width: 768px) {
    .about-hero h1 {
        font-size: 4.8rem;
    }
}

.accent-text {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: 0.6rem;
    left: 0;
    width: 100%;
    height: 0.8rem;
    background-color: rgba(108, 99, 255, 0.2);
    z-index: -1;
    border-radius: 1rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--light-text);
    max-width: 60rem;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        margin: 0 0 2rem;
        font-size: 2rem;
    }
}

.about-hero-image {
    margin-top: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .about-hero-image {
        flex: 1;
        margin-top: 0;
    }
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Section Styles */
.about-section {
    padding: 6rem 0;
    position: relative;
}

.alt-bg {
    background-color: var(--light-bg);
    border-radius: 1.5rem;
    padding: 6rem 3rem;
    margin: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-header h2 {
    font-size: 3.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-divider {
    width: 8rem;
    height: 0.4rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 2rem;
    border-radius: 0.2rem;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--light-text);
    max-width: 70rem;
    margin: 0 auto;
}

/* Our Story Section */
.about-story {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-story {
        flex-direction: row;
        align-items: center;
    }
}

.story-image {
    flex: 1;
    text-align: center;
}

.rounded-image {
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.rounded-image:hover {
    transform: translateY(-10px);
}

.story-content {
    flex: 1.2;
}

.emphasis {
    font-size: 2rem;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
}

.story-content p {
    margin-bottom: 2rem;
    font-size: 1.7rem;
    line-height: 1.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: white;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: 50%;
    overflow: hidden;
}

.service-icon img {
    max-width: 100%;
    height: auto;
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--light-text);
    font-size: 1.5rem;
    line-height: 1.7;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-member {
    text-align: center;
}

.member-image {
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

.team-member h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.member-bio {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.7;
}

.member-games {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-color);
}

.favorite-game {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 2rem;
}

/* Values Container */
.values-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .values-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .values-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-item {
    background-color: white;
    border-radius: 1rem;
    padding: 3rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.value-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(108, 99, 255, 0.1);
    line-height: 1;
}

.value-item h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
}

.value-item p {
    color: var(--light-text);
    font-size: 1.5rem;
    line-height: 1.7;
    position: relative;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 120rem;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 3rem 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.6rem;
    color: var(--light-text);
}

/* Join Section */
.join-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.join-section h2,
.join-section h3 {
    color: white;
}

.join-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .join-container {
        flex-direction: row;
        align-items: center;
    }
}

.join-content {
    flex: 1.3;
}

.join-content h2 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
}

.join-content p {
    font-size: 1.8rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.join-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

@media (min-width: 576px) {
    .join-options {
        flex-direction: row;
        align-items: center;
    }
}

.join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    border-radius: 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.join-btn i {
    margin-right: 1rem;
    font-size: 2rem;
}

.join-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.discord-btn i {
    color: #5865F2;
}

.about-social {
    display: flex;
    gap: 1.5rem;
}

.about-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.about-social a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

.newsletter-box {
    flex: 1;
    background-color: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.newsletter-box h3 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.newsletter-box p {
    color: var(--light-text);
    margin-bottom: 2.5rem;
    font-size: 1.6rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-form input {
    flex: 1;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    font-size: 1.6rem;
}

.newsletter-form button {
    padding: 1.5rem 3rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

/* Contact Container */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

@media (min-width: 992px) {
    .contact-container {
        flex-direction: row;
    }
}

.contact-info {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 576px) and (max-width: 991px) {
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-item {
    padding: 3rem;
    background-color: var(--light-bg);
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

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

.contact-item i {
    font-size: 3.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-item h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contact-item p {
    font-size: 1.5rem;
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-form-container {
    flex: 1;
    background-color: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.contact-form-container h3 {
    font-size: 2.4rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    font-size: 1.6rem;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.1);
    outline: none;
}

.contact-form .btn-primary {
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Responsive Adjustments for About Page */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 3.2rem;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
    
    .emphasis {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 3.2rem;
    }
    
    .join-content h2 {
        font-size: 2.8rem;
    }
    
    .contact-form-container,
    .newsletter-box {
        padding: 2.5rem;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
    
    .member-image {
        width: 15rem;
        height: 15rem;
    }
    
    .team-member h3 {
        font-size: 2rem;
    }
    
    .value-item {
        padding: 2.5rem;
    }
    
    .value-number {
        font-size: 4rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}