/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #bb86fc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header - Custom Navbar Styling */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.custom-navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 8px 0;
    border-bottom: 2px solid #333;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    justify-content: center; /* Center the brand content vertically */
}

.brand-text {
    font-size: 1.8em;
    font-weight: 700;
    color: #bb86fc !important;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
    font-size: 0.7em;
    color: #888;
    font-weight: 400;
    margin-top: -2px;
}

.custom-toggler {
    border: 2px solid #bb86fc;
    border-radius: 6px;
    padding: 4px 8px;
    height: auto; /* Let height be determined by content */
    min-height: calc(1.8em * 1); /* Match the brand-text font-size and line-height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(187, 134, 252, 0.25);
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23bb86fc' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.2em;
    height: 1.2em;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px !important;
    margin: 0 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #e0e0e0 !important;
    font-weight: 500;
}

.nav-link-custom:hover {
    background-color: rgba(187, 134, 252, 0.1);
    color: #bb86fc !important;
    transform: translateY(-2px);
}

.nav-link-custom.active {
    background-color: #bb86fc;
    color: #121212 !important;
}

.nav-icon {
    font-size: 1.1em;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.nav-link-custom:hover .nav-icon {
    filter: grayscale(0);
}

/* Hero Section */
.hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 18, 18, 1) 0%, rgba(18, 18, 18, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 3.5em;
    margin: 0;
}

.hero-content p {
    font-size: 1.2em;
    margin-top: 10px;
}

/* Section Titles */
.section-title {
    font-size: 2em;
    color: #ffffff;
    text-align: center;
    margin: 60px 0 40px;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background-color: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-content h3 {
    margin: 0 0 10px;
    font-size: 1.4em;
    color: #ffffff;
}

.post-card-content p {
    margin: 0 0 15px;
    flex-grow: 1;
}


/* Post Card Image Wrapper for Overlay */
.post-card-image-wrapper {
    position: relative;  /* Enables absolute positioning for children */
    width: 100%;
    overflow: hidden;  /* Ensures overlay doesn't spill out */
    border-radius: 12px 12px 0 0;  /* Matches existing image border-radius */
}

.post-card-image-wrapper img {
    width: 100%;
    height: 220px;  /* Keep existing height */
    object-fit: cover;
    display: block;  /* Removes any inline spacing issues */
}

.post-card-category {
    position: absolute;  /* Positions the span over the image */
    top: 10px;  /* Distance from top of the image (was bottom: 10px;) */
    right: 10px;  /* Distance from right of the image (was left: 10px;) */
    background-color: rgba(24, 23, 26, 0.8);  /* Semi-transparent purple background (matches theme color #bb86fc) */
    color: white;  /* Dark text for contrast */
    padding: 6px 12px;  /* Padding for badge-like appearance */
    border-radius: 20px;  /* Rounded corners */
    font-size: 0.85em;  /* Slightly smaller font */
    font-weight: 600;  /* Bold text */
    text-transform: uppercase;  /* Makes it look like a tag */
    letter-spacing: 0.5px;  /* Slight spacing for readability */
    transition: all 0.3s ease;  /* Smooth hover effect */
}

.post-card:hover .post-card-category {
    background-color: #bb86fc;  /* Full opacity on hover */
    color: #121212;
    transform: translateY(-2px);  /* Slight lift on hover */
}

/* Category Section */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.category-card-overlay h3 {
    font-size: 2em;
    margin: 0;
}

/* Category Quote Styling */
.category-quote {
    margin: 10px 0 0;
    padding: 10px 20px;
    font-style: italic;
    color: #e0e0e0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-quote p {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    line-height: 1.5;
}

.category-quote cite {
    display: block;
    text-align: right;
    font-size: 0.9em;
    color: #bb86fc;
    font-style: normal;
}

/* Responsive adjustments for the quote */
@media (max-width: 768px) {
    .category-quote {
        padding: 10px 15px;
        margin: 15px 10px 0;
    }

    .category-quote p {
        font-size: 1em;
    }

    .category-quote cite {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .category-quote {
        margin: 10px 5px 0;
        padding: 8px 12px;
    }

    .category-quote p {
        font-size: 0.9em;
    }

    .category-quote cite {
        font-size: 0.8em;
    }
}

/* Single Post Page - Minimalistic Design */
.post-container {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.post-hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.breadcrumbs {
    margin-bottom: 30px;
    /* margin-left: 10px; */
    font-size: 0.85em;
    color: #888;
    padding: 0px;
}

.breadcrumbs a {
    color: #bb86fc;
    transition: color 0.2s ease;
    font-size: 1.1em;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.breadcrumbs span {
    color: #e0e0e0;
}

/* Article Content Styling */
.article-content {
    padding: 0px;
    line-height: 1.8;
    font-size: 1.1em;
    color: #e0e0e0;
    word-break: break-word;
    hyphens: auto;
    text-rendering: optimizeLegibility;
}


.article-content h1 {
    font-size: 1.9em;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.article-content h2 {
    font-size: 1.5em;
    font-weight: 600;
    color: #ffffff;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.article-content h3 {
    font-size: 1.1em;
    font-weight: 500;
    color: #ffffff;
    margin: 30px 0 15px 0;
}

.article-content h4,
.article-content h5,
.article-content h6 {
    font-weight: 500;
    color: #ffffff;
    margin: 25px 0 15px 0;
}

.article-content p {
    margin: 0 0 20px 0;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content ul ul,
.article-content ol ol {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: circle; /* or 'square' to visually differentiate */
}

.article-content ul li::marker {
    color: #bb86fc;
}


.article-content li {
    margin: 8px 0;
}

.article-content em {
    font-style: italic;
    color: #cccccc;
}

.article-content strong {
    font-weight: 700;
    color: #ffffff;
}

.article-content mark {
    background-color: #bb86fc;
    color: #000;
    padding: 0 4px;
    border-radius: 3px;
}


.article-content blockquote {
    background-color: #1a1a1a;
    border-left: 4px solid #bb86fc;
    margin: 30px 0;
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #ccc;
}

.article-content code {
    background-color: #2a2a2a;
    color: #bb86fc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.article-content a {
    color: #bb86fc;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: #ffffff;
    text-decoration-color: #bb86fc;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.article-content th,
.article-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.article-content th {
    background-color: #2a2a2a;
    font-weight: 600;
    color: #ffffff;
}

.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #333, transparent);
    margin: 40px 0;
}

/* affilate*/
.affiliate-title {
    font-size: 2em;
    margin: 0 0 20px 0;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
}

.affiliate-links {
    margin: 40px 0;
    padding: 0px;
}
.affiliate-disclosure {
    font-size: 0.85em;
    color: #888;
    text-align: left;
    margin-bottom: 20px;
}
.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.affiliate-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.affiliate-card:hover {
    transform: translateY(-5px);
    border-color: #bb86fc;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.affiliate-card-content h3 {
    font-size: 1.1em;
    color: #ffffff;
    margin: 0;
}
.affiliate-card-content h3:hover {
    color: #bb86fc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .affiliate-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .affiliate-links {
        padding: 0 10px;
    }
}
@media (max-width: 480px) {
    .affiliate-card-content h3 {
        font-size: 1em;
    }
}

/* Recommended Posts Section */
.recommended-posts {
    margin: 80px 0 60px 0;
    padding: 0px;
}

.recommended-posts .section-title {
    font-size: 2em;
    margin: 0 0 40px 0;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
}

.recommended-posts .post-grid {
    gap: 25px;
}

.recommended-posts .post-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.recommended-posts .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: #bb86fc;
}

.recommended-posts .post-card img {
    height: 180px;
}

.recommended-posts .post-card-content h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.recommended-posts .post-card-content p {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 12px;
}

.back-button-container {
    text-align: center;
    margin: 60px 0;
    padding: 0 20px;
}

.back-button {
    background-color: transparent;
    color: #bb86fc;
    padding: 12px 24px;
    border: 2px solid #bb86fc;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    background-color: #bb86fc;
    color: #121212;
    transform: translateX(-5px);
}

/* Footer - Enhanced Styling */
.custom-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #e0e0e0;
    padding: 60px 0 20px 0;
    margin-top: 80px;
    border-top: 3px solid #333;
    position: relative;
}

.custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #bb86fc, transparent);
}

.footer-section {
    height: 100%;
}

.footer-title {
    color: #bb86fc;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-subtitle {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-description {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #2a2a2a;
    border-radius: 50%;
    font-size: 1.2em;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
    color: #e0e0e0;
}

.social-link:hover {
    background-color: #bb86fc;
    border-color: #bb86fc;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(187, 134, 252, 0.3);
    color: #121212;
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
    position: relative;
}


.footer-links a:hover {
    color: #bb86fc;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-newsletter-text {
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 20px;
    line-height: 1.5;
}


.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #333, transparent);
    margin: 40px 0 30px 0;
}

.footer-copyright {
    color: #888;
    font-size: 0.9em;
    margin: 0;
}

.footer-legal {
    text-align: right;
    font-size: 0.9em;
}

.footer-legal a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #bb86fc;
}

.footer-legal .separator {
    color: #555;
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .category-card {
        max-height: 80px;
    }
    
    .post-container {
        padding: 40px 0;
    }
    
    .article-content {
        padding: 0 15px;
    }
    
    .article-content h1 {
        font-size: 2.2em;
    }
    
    .article-content h2 {
        font-size: 1.6em;
    }
    
    .recommended-posts {
        padding: 0 15px;
    }
    
    .breadcrumbs {
        padding: 0 15px;
    }
    
    .back-button-container {
        padding: 0 15px;
    }
    
    /* Navbar responsive */
    .brand-text {
        font-size: 1.6em;
    }
    
    .brand-subtitle {
        font-size: 0.65em;
    }
    
    .nav-link-custom {
        padding: 8px 12px !important;
        margin: 2px 0;
    }
    
    /* Footer responsive */
    .custom-footer {
        padding: 50px 0 20px 0;
    }
    
    .footer-legal {
        text-align: left;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .post-container {
        padding: 30px 0;
    }
    
    .post-hero-image {
        margin-bottom: 30px;
        border-radius: 8px;
    }
    
    .article-content {
        padding: 0 10px;
        font-size: 1em;
    }
    
    .article-content h1 {
        font-size: 1.9em;
        margin-bottom: 15px;
    }
    
    .article-content h2 {
        font-size: 1.4em;
        margin: 30px 0 15px 0;
    }
    
    .article-content h3 {
        font-size: 1.2em;
        margin: 25px 0 12px 0;
    }
    
    .article-content p {
        margin-bottom: 16px;
        text-align: left;
    }
    
    .article-content blockquote {
        padding: 15px 20px;
        margin: 20px 0;
    }
    
    .article-content pre {
        padding: 15px;
        margin: 20px 0;
        font-size: 0.85em;
    }

    .affiliate-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    
    .recommended-posts {
        margin: 60px 0 40px 0;
        padding: 0 10px;
    }
    
    .recommended-posts .section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    
    .breadcrumbs {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .back-button-container {
        padding: 0 10px;
        margin: 40px 0;
    }
    
    .back-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    /* Navbar mobile */
    .custom-navbar {
        padding: 12px 0;
    }
    
    .brand-text {
        font-size: 1.4em;
    }
    
    .brand-subtitle {
        font-size: 0.6em;
    }
    
    .nav-link-custom {
        justify-content: center;
        padding: 12px 16px !important;
        margin: 4px 0;
        border-radius: 6px;
    }
    
    .nav-icon {
        font-size: 1.2em;
    }
    
    /* Footer mobile */
    .custom-footer {
        padding: 40px 0 20px 0;
        margin-top: 60px;
    }
    
    .footer-title {
        font-size: 1.3em;
        margin-bottom: 12px;
    }
    
    .footer-subtitle {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    .footer-description {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    
    .social-links {
        justify-content: center;
        gap: 12px;
        margin-top: 15px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1em;
    }
    
    
    .footer-divider {
        margin: 30px 0 20px 0;
    }
    
    .footer-copyright {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .footer-legal {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-content h1 {
        font-size: 1.7em;
    }
    
    .article-content {
        line-height: 1.7;
    }
    
    .recommended-posts .post-card-content {
        padding: 15px;
    }
    
    .recommended-posts .post-card-content h3 {
        font-size: 1.1em;
    }
    
    .recommended-posts .post-card-content p {
        font-size: 0.85em;
    }
    
    /* Navbar extra small screens */
    .brand-text {
        font-size: 1.4em;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .nav-link-custom span {
        font-size: 0.9em;
    }
    
    /* Footer extra small screens */
    .footer-title {
        font-size: 1.2em;
        text-align: center;
    }
    
    .footer-subtitle {
        font-size: 0.95em;
        text-align: center;
    }
    
    .footer-description {
        text-align: center;
        font-size: 0.85em;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-newsletter-text {
        text-align: center;
        font-size: 0.85em;
    }
    
}

/* Archives Page Styling */
.archives-container {
    padding: 60px 0;
    min-height: 80vh;
}

.archives-header {
    text-align: center;
    margin-bottom: 60px;
}

.archives-title {
    font-size: 3em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.archives-subtitle {
    font-size: 1.2em;
    color: #ccc;
    margin-bottom: 40px;
}

.archives-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #bb86fc;
    line-height: 1;
}

.stat-label {
    font-size: 0.9em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archives-filters {
    margin-bottom: 50px;
    text-align: center;
}

.filter-group {
    display: inline-flex;
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 5px;
    gap: 5px;
    border: 1px solid #333;
}

.filter-btn {
    background: none;
    border: none;
    color: #ccc;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    color: #bb86fc;
    background-color: rgba(187, 134, 252, 0.1);
}

.filter-btn.active {
    background-color: #bb86fc;
    color: #121212;
}

.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.archive-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: #bb86fc;
}

.archive-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 0 20px;
}

.archive-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 10px;
    min-width: 60px;
}

.date-day {
    font-size: 1.1em;
    font-weight: 600;
    color: #bb86fc;
    line-height: 1;
}

.date-month {
    font-size: 0.8em;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-year {
    font-size: 0.7em;
    color: #888;
}

.archive-category {
    margin-left: 15px;
}

.category-tag {
    background-color: #bb86fc;
    color: #121212;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-card-content {
    padding: 20px;
}

.archive-title {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    line-height: 1.3;
}

.archive-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-title a:hover {
    color: #bb86fc;
}

.archive-summary {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.archive-card-footer {
    padding: 0 20px 20px 20px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bb86fc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.read-more-btn svg {
    transition: transform 0.3s ease;
}

.read-more-btn:hover svg {
    transform: translateX(3px);
}

.view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #ccc;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.toggle-btn:hover {
    color: #bb86fc;
    border-color: #bb86fc;
}

.toggle-btn.active {
    background-color: #bb86fc;
    color: #121212;
    border-color: #bb86fc;
}

.archives-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.archives-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #bb86fc, #333);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    background-color: #bb86fc;
    border-radius: 50%;
    margin-right: 30px;
    margin-top: 8px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    flex: 1;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: #bb86fc;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.timeline-date {
    color: #bb86fc;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-title {
    margin: 0 0 12px 0;
    font-size: 1.2em;
}

.timeline-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.timeline-title a:hover {
    color: #bb86fc;
}

.timeline-summary {
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.timeline-category {
    background-color: #2a2a2a;
    color: #bb86fc;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Archives Page Responsive */
@media (max-width: 992px) {
    .archives-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .archives-stats {
        gap: 40px;
    }
    
    .filter-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .archives-container {
        padding: 40px 0;
    }
    
    .archives-title {
        font-size: 2.2em;
    }
    
    .archives-subtitle {
        font-size: 1.1em;
    }
    
    .archives-stats {
        gap: 30px;
        margin-top: 25px;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .archives-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-card-header {
        padding: 15px 15px 0 15px;
    }
    
    .archive-card-content {
        padding: 15px;
    }
    
    .archive-card-footer {
        padding: 0 15px 15px 15px;
    }
    
    .view-toggle {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .toggle-btn {
        width: 200px;
        justify-content: center;
    }
    
    .archives-timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        margin-right: 20px;
    }
    
    .timeline-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .archives-title {
        font-size: 1.8em;
    }
    
    .archives-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-group {
        padding: 3px;
        gap: 3px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    .archive-date {
        min-width: 50px;
        padding: 8px;
    }
    
    .date-day {
        font-size: 0.9em;
    }
    
    .date-month {
        font-size: 0.7em;
    }
    
    .archive-title {
        font-size: 1.2em;
    }
    
    .archive-summary {
        font-size: 0.9em;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-title {
        font-size: 1.1em;
    }
}

/* Pagination Styling */
.pagination-container {
    margin: 60px 0 40px 0;
    text-align: center;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1a1a1a;
    color: #bb86fc;
    padding: 12px 20px;
    border: 2px solid #333;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: center;
}

.pagination-btn:hover {
    background-color: #bb86fc;
    color: #121212;
    border-color: #bb86fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(187, 134, 252, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    color: #ccc;
    border: 1px solid #333;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background-color: rgba(187, 134, 252, 0.1);
    color: #bb86fc;
    border-color: #bb86fc;
}

.pagination-number.active {
    background-color: #bb86fc;
    color: #121212;
    border-color: #bb86fc;
    font-weight: 700;
}

.pagination-info {
    color: #888;
    font-size: 0.9em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-separator {
    color: #555;
}

/* Pagination Responsive */
@media (max-width: 768px) {
    .pagination-container {
        margin: 40px 0 30px 0;
    }
    
    .pagination-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-btn {
        min-width: 120px;
        padding: 10px 16px;
    }
    
    .pagination-numbers {
        order: -1;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 0.9em;
    }
    
    .pagination-info {
        flex-direction: column;
        gap: 5px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .pagination-nav {
        gap: 12px;
    }
    
    .pagination-btn {
        min-width: 100px;
        padding: 8px 14px;
        font-size: 0.9em;
    }
    
    .pagination-numbers {
        gap: 6px;
    }
    
    .pagination-number {
        width: 32px;
        height: 32px;
        font-size: 0.85em;
    }
}


/* Page transition overlay */
/* Curtains start outside screen */
.curtain {
    position: fixed;
    top: 0;
    width: 50%;
    height: 100%;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(2px);
    z-index: 9999;
    transition: transform 0.6s ease-in-out;
}

/* Default - open */
.left-curtain { left: 0; transform: translateX(-100%); }
.right-curtain { right: 0; transform: translateX(100%); }

/* Halfway closing (stop before center) */
.left-curtain.closing { transform: translateX(-50%); }
.right-curtain.closing { transform: translateX(50%); }

/* Fully closed */
.left-curtain.active { transform: translateX(0); }
.right-curtain.active { transform: translateX(0); }


