/* K8VN Theme Custom Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    text-decoration: none;
}

.logo a {
    text-decoration: none;
}

/* Navigation Desktop */
.nav-desktop {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-desktop li {
    position: relative;
}

.nav-desktop li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
}

.nav-desktop li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffd700;
}

/* Navigation Mobile */
.nav-mobile {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a237e;
    padding: 1rem;
    list-style: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile li {
    margin: 0.5rem 0;
}

.nav-mobile li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.75rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-mobile li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle:hover {
    color: #ffd700;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn,
.register-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.login-btn {
    background-color: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
}

.login-btn:hover {
    background-color: #ffd700;
    color: #1a237e;
    transform: translateY(-2px);
}

.register-btn {
    background-color: #ffd700;
    color: #1a237e;
}

.register-btn:hover {
    background-color: #ffecb3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Content Section */
.content-section {
    padding: 3rem 0;
    background: white;
}

.content-section h2 {
    color: #1a237e;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    color: #0d47a1;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.content-section ul,
.content-section ol {
    margin: 1rem 0 1rem 2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* List Grid */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.list-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

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

.list-item-content {
    padding: 1.5rem;
}

.list-item-content h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.list-item-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.list-item-content h3 a:hover {
    color: #667eea;
}

.list-item-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.list-item-content small {
    color: #999;
    font-size: 0.85rem;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffecb3 100%);
    color: #1a237e;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    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-section h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

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

.footer-bottom p {
    margin: 0.5rem 0;
    color: rgba(255,255,255,0.8);
}

/* Pagination */
.pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 5px;
    text-decoration: none;
    color: #1a237e;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #1a237e;
    color: white;
}

.pagination .current {
    background: #1a237e;
    color: white;
}

/* Post Navigation */
.post-navigation {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    margin: 1rem 0;
}

.post-navigation a {
    color: #1a237e;
    text-decoration: none;
    font-weight: 500;
}

.post-navigation a:hover {
    color: #667eea;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #1a237e;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .nav-mobile {
        order: 4;
        width: 100%;
    }

    .auth-buttons {
        display: none;
    }

    .hero-section h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .hero-section p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .content-section {
        padding: 2rem 0;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.2rem;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
    }

    .auth-buttons {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}
