/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Define CSS Variables for consistent colors */
:root {
    --color-primary: #011f4b;
    --color-secondary: #03396c;
    --color-white: #ffffff;
    --color-light: #f8f9fa;
    --color-gray: #6b7280;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-light);
}

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

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-link {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

/* New styles for logo text parts */
.logo-vol {
    color: var(--color-primary);
}

.logo-tix {
    color: var(--color-white);
    text-shadow: 1px 1px 1px var(--color-primary);
}

/* Navigation Links */
.navigation {
    flex: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-list li {
    display: inline-block;
}

.nav-link {
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    background-color: transparent;
}

/* Active state - only applies when no hover */
.nav-link.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Hover state */
.nav-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* When hovering any nav link, remove active background */
.nav-list:hover .nav-link.active {
    background-color: transparent;
    color: var(--color-primary);
}

/* Restore hover state for active link when hovered */
.nav-list:hover .nav-link.active:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Language and Support Buttons */
.lang-btn,
.help-btn {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.lang-btn:hover,
.help-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.7;
}

/* Search Section */
.search-section {
    background: var(--color-white);
    padding: 3rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    position: relative;
}

.search-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.search-box {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-right: none;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #3b82f6;
}

.search-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    transform: translateY(-1px);
}

.manual-search-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: #f1f5f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.manual-search-link:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* Latest Posts Section */
.latest-posts {
    padding: 4rem 0;
    background: var(--color-light);
}

.section-title {
    font-size: 2.2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.2);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-date {
    color: #9ca3af;
    font-size: 0.9rem;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1e40af;
}

/* Most Popular Section */
.most-popular {
    padding: 4rem 0;
    background: var(--color-white);
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-light);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
}

.popular-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.item-rank {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.item-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.item-link:hover {
    color: #3b82f6;
}

/* Statistics Section */
.statistics {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
}

.statistics .section-title {
    color: var(--color-white);
}

.statistics .section-title::after {
    background: linear-gradient(90deg, var(--color-white), rgba(255, 255, 255, 0.7));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2.5rem;
    color: #93c5fd;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #1f2937;
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

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

.footer-title {
    color: #93c5fd;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #93c5fd;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-list {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        border-right: 2px solid #e5e7eb;
        border-bottom: none;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card,
.popular-item,
.stat-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Blog Page Styles */
.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.blog-header {
    margin-bottom: 3rem;
    text-align: center;
}

.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-tag {
    padding: 0.5rem 1.5rem;
    background: var(--color-light);
    border: 1px solid var(--color-primary);
    border-radius: 30px;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tag:hover, .category-tag.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.blog-post {
    margin-bottom: 4rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 2rem;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 1.5rem;
}

.blog-post .post-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.blog-post .post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--color-gray);
    font-size: 0.9rem;
}

.post-author, .post-date, .post-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post .post-content {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-post .post-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.blog-post .post-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.blog-post .post-image:hover img {
    transform: scale(1.03);
}

.read-more-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-light);
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover, .page-link.active {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Software Directory Styles */
.software-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.category-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 1.5rem;
    position: relative;
}

.category-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    opacity: 0.8;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-description {
    opacity: 0.9;
    font-size: 0.9rem;
}

.software-list {
    list-style: none;
    padding: 1.5rem;
}

.software-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.software-item:last-child {
    border-bottom: none;
}

.software-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.software-link:hover {
    color: var(--color-secondary);
}

.software-name {
    font-weight: 500;
}

.software-version {
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* Support Page Styles */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.support-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.support-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin: 2rem 0 1rem;
    text-align: center;
}

.support-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.support-description {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
    color: var(--color-gray);
    flex-grow: 1;
}

.support-action {
    padding: 1rem;
    background: var(--color-light);
    text-align: center;
}

.support-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.support-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: var(--color-light);
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-toggle {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}
