 /* Override Bootstrap's primary color with #EC1D26 */
 :root {
    --bs-primary: #EC1D26;
    --bs-primary-rgb: 236, 29, 38;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #EC1D26;
    --bs-btn-border-color: #EC1D26;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d11921;
    --bs-btn-hover-border-color: #c5171f;
    --bs-btn-focus-shadow-rgb: 236, 29, 38;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c5171f;
    --bs-btn-active-border-color: #b9161d;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #EC1D26;
    --bs-btn-disabled-border-color: #EC1D26;
}

.dropdown-item:active, .dropdown-item.active {
    background-color: #EC1D26;
}

.navbar-light .navbar-nav .nav-link.active, 
.navbar-light .navbar-nav .show > .nav-link {
    color: #EC1D26;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #EC1D26;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: none;
}

.form-control:focus {
    border-color: #EC1D26;
    box-shadow: 0 0 0 0.25rem rgba(236, 29, 38, 0.25);
}

.search-box .search-icon {
    color: #EC1D26;
}

.dropdown-toggle::after {
    border-top-color: #EC1D26;
}

.dropdown-item:focus, .dropdown-item:hover {
    background-color: rgba(236, 29, 38, 0.1);
}

/* Blog Page Specific Styles */
.blog-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/Images/Home/Hero/1.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 50px;
}

.blog-card {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 20px;
}

.blog-card .card-title {
    color: #EC1D26;
    margin-bottom: 15px;
}

.blog-card .card-text {
    color: #666;
    margin-bottom: 15px;
}

.blog-card .read-more {
    color: #EC1D26;
    font-weight: 600;
    text-decoration: none;
}

.blog-card .read-more:hover {
    text-decoration: underline;
}

.blog-sidebar {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.blog-sidebar h4 {
    color: #EC1D26;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #EC1D26;
}

.recent-post {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post a {
    color: #333;
    text-decoration: none;
}

.recent-post a:hover {
    color: #EC1D26;
}

.recent-post small {
    color: #999;
    display: block;
    margin-top: 5px;
}

.tags a {
    display: inline-block;
    background-color: #eee;
    color: #333;
    padding: 5px 10px;
    margin: 0 5px 5px 0;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.tags a:hover {
    background-color: #EC1D26;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #EC1D26;
    border-color: #EC1D26;
}

.pagination .page-link {
    color: #EC1D26;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .blog-header {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    .blog-header {
        padding: 40px 0;
    }
    
    .blog-card img {
        height: 150px;
    }
}
