/* Blog Page Styles */

/* Container utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Hero Banner - Dark Theme */
.blog-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4) contrast(1.2) saturate(0.8);
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(18, 24, 32, 0.7) 0%, 
        rgba(26, 72, 84, 0.6) 50%, 
        rgba(18, 24, 32, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.blog-hero-content {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
}

.blog-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    background: linear-gradient(135deg, #ffffff 0%, #e8f4f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
    color: #e8f4f8;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #7fd1e6;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.blog-filter-btn {
    background: white;
    color: #2c5f6f;
    border: 2px solid #2c5f6f;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: #2c5f6f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 95, 111, 0.3);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.blog-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card.featured .blog-card-image {
    height: 100%;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #2c5f6f;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.featured-tag {
    background: #d4af37;
    color: #1a4854;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card.featured .blog-card-content {
    padding: 30px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #7fd1e6;
}

.blog-date {
    font-weight: 500;
}

.blog-category {
    background: #e8f4f8;
    color: #2c5f6f;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #7fd1e6;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card.featured .blog-card-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.blog-card-excerpt {
    color: #7fd1e6;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.blog-card.featured .blog-card-excerpt {
    font-size: 1rem;
}

.blog-card-link {
    color: #7fd1e6;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    margin-top: auto;
}

.blog-card-link:hover {
    color: #7fd1e6;
}

.blog-card-link .arrow {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-link .arrow {
    transform: translateX(3px);
}

/* Hidden items for filtering */
.blog-card.hidden {
    display: none;
}

/* Load More Button */
.blog-load-more {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: #2c5f6f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: #1a4854;
    transform: translateY(-2px);
}

.load-more-btn .arrow {
    transition: transform 0.3s ease;
}

.load-more-btn:hover .arrow {
    transform: translateY(3px);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1a4854 0%, #2c5f6f 100%);
    color: white;
    padding: 60px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 280px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    background: white;
    color: #333;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-btn {
    background: #d4af37;
    color: #1a4854;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #c19b26;
    transform: translateY(-2px);
}

/* Animation for filtering */
.blog-card {
    transition: all 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
}

.blog-card.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

.blog-card.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Focus styles for accessibility */
.blog-filter-btn:focus,
.load-more-btn:focus,
.newsletter-btn:focus {
    outline: 2px solid #2c5f6f;
    outline-offset: 2px;
}

.blog-card:focus {
    outline: 2px solid #2c5f6f;
    outline-offset: 2px;
}

/* Reading time styles */
.reading-time {
    color: #7fd1e6;
    font-size: 0.8rem;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        height: 50vh;
        min-height: 300px;
        margin-top: 50px;
    }
    
    .blog-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .blog-hero-content p {
        font-size: 1.1rem;
    }
    
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-card.featured {
        grid-column: span 1;
        display: block;
    }
    
    .blog-card.featured .blog-card-image {
        height: 220px;
    }
    
    .blog-filters {
        gap: 10px;
    }
    
    .blog-filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-input {
        min-width: 100%;
        max-width: 400px;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        height: 40vh;
        min-height: 250px;
    }
    
    .blog-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .blog-hero-content p {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .blog-card {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 1.2rem;
    }
    
    .blog-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .blog-filter-btn {
        width: 200px;
        text-align: center;
    }
    
    .newsletter-content h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-content p {
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    .blog-filters,
    .newsletter-section,
    .blog-load-more {
        display: none;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-link {
        display: none;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .blog-section {
        background: #1a1a1a;
    }
    
    .blog-card {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .blog-card-title {
        color: #ffffff;
    }
    
    .blog-card-excerpt {
        color: #cccccc;
    }
}