/* Blog Page Unique Styles - Using Premium Color Scheme */

/* Reset and Base Styles */
.blog-main-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero Section */
.blog-hero-section {
    background: linear-gradient(135deg, #0A1A3E 0%, #1F3C88 50%, #0A1A3E 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 80px;
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.blog-hero-content {
    color: #FFFFFF;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideInLeft 1s ease-out;
}

.highlight-text {
    background: linear-gradient(45deg, #FFD700, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideInLeft 1s ease-out 0.2s both;
}

/* Floating Animation Elements */
.blog-hero-animation {
    position: relative;
    height: 400px;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-circle, .floating-square, .floating-triangle {
    position: absolute;
    background: rgba(230, 57, 70, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.floating-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    top: 20%;
    right: 20%;
    animation: float 6s ease-in-out infinite;
}

.floating-square {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    top: 60%;
    right: 40%;
    animation: float 4s ease-in-out infinite reverse;
}

.floating-triangle {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    top: 10%;
    right: 60%;
    animation: float 5s ease-in-out infinite 1s;
    transform: rotate(45deg);
}

/* Main Content Container */
.blog-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    background: #F5F5F5;
}

/* Blog Grid */
.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* Blog Card Styles */
.blog-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 26, 62, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(230, 57, 70, 0.2);
}

.blog-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.3), rgba(139, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover .image-overlay {
    opacity: 1;
}

.blog-card-content {
    padding: 30px;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #1C1C1C;
}

.blog-author, .blog-date {
    position: relative;
}

.blog-author::after {
    content: '•';
    position: absolute;
    right: -10px;
    color: #E63946;
}

.blog-card-title {
    margin-bottom: 15px;
}

.blog-card-title a {
    color: #0A1A3E;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #E63946;
}

.blog-card-excerpt {
    color: #1C1C1C;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.blog-tag {
    background: linear-gradient(135deg, #E63946, #8B0000);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #F5F5F5;
}

.read-more-btn {
    background: linear-gradient(135deg, #E63946, #8B0000);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

.view-count {
    color: #1C1C1C;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Single Post Styles */
.single-post-container {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(10, 26, 62, 0.1);
    margin-top: 40px;
}

.post-header-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #F5F5F5;
}

.post-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #1C1C1C;
}

.post-meta-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta-info i {
    color: #E63946;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-badge {
    background: linear-gradient(135deg, #E63946, #8B0000);
    color: #FFFFFF;
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.15);
}

.post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-content-area {
    line-height: 1.8;
    color: #1C1C1C;
    margin-bottom: 40px;
}

.post-content-area h1, .post-content-area h2, .post-content-area h3 {
    color: #0A1A3E;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content-area h1 {
    font-size: 2rem;
    border-bottom: 3px solid #E63946;
    padding-bottom: 10px;
}

.post-content-area h2 {
    font-size: 1.5rem;
    color: #E63946;
}

.post-content-area p {
    margin-bottom: 20px;
}

.post-content-area a {
    color: #E63946;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.post-content-area a:hover {
    border-bottom-color: #E63946;
}

.post-navigation {
    padding-top: 30px;
    border-top: 2px solid #F5F5F5;
}

.back-to-blog-btn {
    background: linear-gradient(135deg, #0A1A3E, #1F3C88);
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.back-to-blog-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(10, 26, 62, 0.4);
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    padding: 80px 20px;
    color: #1C1C1C;
    grid-column: 1 / -1;
}

.no-posts-message i {
    font-size: 4rem;
    color: #E63946;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-posts-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0A1A3E;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .single-post-container {
        padding: 20px;
        margin: 20px;
    }
    
    .post-meta-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-main-container {
        padding: 40px 10px;
    }
    
    .floating-elements {
        display: none;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title a {
        font-size: 1.2rem;
    }
}