/* =========================================================
   BEAUTIFUL BLOG PAGE - GRID LAYOUT WITH CARD DESIGN
   ========================================================= */

/* Main Blog Section */
.blog-main {
    font-family: 'Georgia', serif;
    background-color: #ffffff;
    color: #1b1b1b;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 0;
}

/* Dramatic Blog Banner */
.blog-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.blog-banner .banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Slideshow Container */
.blog-banner .slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.blog-banner .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.blog-banner .slide.active {
    opacity: 1;
}

.blog-banner .slide.fade-out {
    opacity: 0;
}

.blog-banner .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 20s ease-out;
}

.blog-banner .slide.active .banner-image {
    transform: scale(1);
}

/* Dramatic Black Vignette Effect */
.blog-banner .banner-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 15%, rgba(0,0,0,0.2) 35%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.9) 95%),
        linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 25%, transparent 50%),
        linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 20%, transparent 40%),
        linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 15%, transparent 30%),
        linear-gradient(to left, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 15%, transparent 30%);
    pointer-events: none;
    z-index: 5;
}

/* Banner Content */
.blog-banner .banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem 2rem 120px 2rem;
    max-width: 800px;
}

.blog-banner .banner-title {
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: -2px;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInDown 0.8s ease-out;
}

.blog-banner .banner-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Scroll Indicator */
.blog-banner .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
    z-index: 20;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.blog-banner .scroll-indicator:hover {
    opacity: 0.8;
}

.blog-banner .scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: scrollArrow 2s infinite;
}

.blog-banner .scroll-text {
    font-size: 0.9rem;
    color: white;
    letter-spacing: 1px;
}

/* Blog Content Section */
.blog-content {
    padding: 6rem 2rem;
    background-color: #fafafa;
    min-height: calc(100vh - 600px);
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Blog Card Image */
.blog-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e0e0e0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

/* Blog Card Content */
.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    color: #1b1b1b;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: #0066cc;
}

.blog-card-preview {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-read-more {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-read-more:hover {
    color: #005fa3;
    transform: translateX(4px);
}

.blog-card-read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-read-more::after {
    transform: translateX(4px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes scrollArrow {
    0% {
        transform: rotate(45deg) translateY(0);
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        transform: rotate(45deg) translateY(8px);
        opacity: 1;
    }
}

/* Loading State */
.blog-card-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .blog-banner .banner-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .blog-content {
        padding: 4rem 1rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .blog-banner .banner-title {
        font-size: 2.5rem;
    }
    
    .blog-banner .banner-description {
        font-size: 1rem;
    }
    
    .blog-banner .banner-content {
        padding: 2rem 1rem 100px 1rem;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 3rem 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-banner {
        height: 70vh;
        min-height: 400px;
    }
    
    .blog-banner .banner-title {
        font-size: 2rem;
    }
    
    .blog-banner .banner-description {
        font-size: 0.9rem;
    }
    
    .blog-card-image {
        height: 200px;
    }
}
