/* Blog Layout Styles */
.blog-section {
    background-color: #f5f4ef;  /* Specific background for blog section */
    min-height: 100vh;
    padding: 1rem 50px;  /* Reduced top padding */
    padding-top: 40px;  /* Reduced from 110px */
}

/* New label styling */
.new-label {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1c20;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    margin-right: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    position: relative;
    top: -2px;
}

.new-label::after {
    content: 'New';
}

/* Navigation Logo Section */
nav .left {
    margin-right: auto;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    padding-top: 20px;  /* Increased top padding */
    padding-left: 10px;
    transform: translateY(0);
}

/* Hide logo when scrolled */
nav.scrolled .left {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    pointer-events: none;
    position: absolute;
}

/* Navigation Logo Styles */
nav .left a {
    color: var(--text-color);
    font-family: 'Dancing Script', cursive;
    font-size: 42px;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 10px 25px 10px 0;
    background: transparent;
    border: none;
    box-shadow: none;
    letter-spacing: 0.8px;
    text-shadow: none;  /* Removed shadow for cleaner look */
    display: block;
}

/* Navigation Bar Styles */
nav {
    height: 80px;  /* Increased height */
    padding: 0 50px 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #f5f4ef;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
}

/* Navigation when scrolled */
nav.scrolled {
    background: transparent;
}

/* Navigation Right Section */
nav .right {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    border-radius: 30px;
    padding: 6px 8px;  /* Further reduced horizontal padding */
    margin-right: 20px;
    margin-top: 12px;
    transition: all 0.3s ease;
}

/* Navigation Links */
nav .right a {
    color: var(--text-color);
    margin: 0 6px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 12px;  /* Further reduced horizontal padding */
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Navigation Link Hover Effect */
nav .right a:hover {
    background: rgba(74, 118, 238, 0.18);
    color: var(--link-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 118, 238, 0.2);
}

/* Active Navigation Link */
nav .right a.active {
    background: rgba(74, 118, 238, 0.25);
    color: var(--link-color);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(74, 118, 238, 0.25);
    transform: translateY(-1px);
    text-shadow: 0 1px 3px rgba(74, 118, 238, 0.1);
}

/* Remove the underline effects since we're using background highlight */
nav .right a::after,
nav .right a:hover::after,
nav .right a.active::after {
    display: none;
}

/* Adjust right section when scrolled */
nav.scrolled .right {
    margin-left: auto;
    margin-right: 20px;
}

/* Blog Section Content */
.blog-section h1 {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    margin-top: 0;  /* Remove top margin */
}

.blog-section h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;  /* Reduced padding */
    max-width: 100%;
    margin: 0;
}

.section-description {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0.5rem 0 1.5rem 0;  /* Reduced top margin */
    font-family: var(--font-mono);
    max-width: 800px;
    padding-left: 2px;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    opacity: 0.9;
}

/* Blog Search */
/* .blog-search {
    margin: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

#blog-search {
    flex: 1;
    max-width: 500px;
    padding: 0.8rem 1.5rem;
    border: 2px solid #e1e1e1;
    border-radius: 50px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

#blog-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
} */

/* Dark theme overrides */
[data-theme='dark'] .section-description {
    color: #999;
}

[data-theme='dark'] #blog-search {
    background: #2a2a2a;
    border-color: #404040;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-section {
        padding: 2rem 20px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }
} 