/* Base Styles */
:root {
    --primary-color: #d70036;
    --secondary-color: #ff5722;
    --dark-color: #2c2c2c;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #777;
    --transition: all 0.3s ease;
}

.blog-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.blog-page a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.blog-page a:hover {
    color: var(--secondary-color);
}

.blog-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.blog-header {
    background: linear-gradient(135deg, var(--primary-color), #d70036);
    color: white;
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
    opacity: 0.5;
    z-index: 0;
}

.blog-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    text-transform: none;
    color: white;
}

.blog-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.search-bar input[type="text"] {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 45px;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: #e64a19;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-media {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .card-media img {
    transform: scale(1.05);
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.blog-card:hover .video-icon {
    opacity: 1;
}

.card-content {
    padding: 25px;
}

.card-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.card-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 600;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 40px 0 60px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .search-bar {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .search-bar button {
        position: relative;
        width: 100%;
        margin-top: 10px;
        border-radius: 50px;
    }
}


.no-results-message {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    grid-column: 1 / -1; /* For CSS Grid layouts */
}

.message.notice {
    display: inline-block;
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #eee;
    color: #666;
}