/* Blog Hero Section */
.hero-v3-section.blog-hero {
    background-image: linear-gradient(to bottom, rgb(14 17 52 / 65%), rgb(4 5 22 / 73%)), url('../images/home-banner.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 47vh;
    display: flex;
    align-items: center;
}

.blog-hero-badge {
    background-color: #202260;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.blog-hero-title {
    font-weight: 700;
    font-size:45px !important;
    margin-bottom: 15px;
    color: #fff;
}

.blog-hero-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 450px;
}

.blog-hero-btn-primary {
    background:linear-gradient(270deg, var(--gold) 0%, #e8bc4a 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.blog-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(213, 162, 42, 0.8), 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.blog-hero-btn-secondary {
    color: #111827;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.blog-hero-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5), 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #111827;
}

.blog-share-btn {
    transition: all 0.3s ease;
}

.blog-share-btn:hover {
    background: linear-gradient(270deg, var(--gold) 0%, #e8bc4a 100%) !important;
    border-color: transparent !important;
    color: #111827 !important;
}

/* Latest Blog Cards */
.latest-blog-card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.latest-blog-card:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateX(-5px);
}

.latest-blog-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
}

.latest-blog-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
}

.latest-blog-meta {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Blog Content Section */
.news-section {
    background-color: #f8f9fa;
}

.blog-search-wrapper {
    width: 60%;
    min-width: 350px;
    max-width: 100%;
}

@media (max-width: 991px) {
    .blog-search-wrapper {
        width: 100%;
        min-width: 100%;
    }
}

.blog-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.blog-search-input {
    padding: 8px 20px 8px 45px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

/* For form control */
.blog-search-input:focus {
    border-color: linear-gradient(270deg, var(--gold) 0%, #e8bc4a 100%);
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25);
}

/* Base card styles */
.news-card {
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(-0px)!important;
}

.news-card:hover, .news-card:active {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
    z-index: 10;
}

.blog-img-link {
    display: block;
    height: 100%;
}

.blog-img {
    object-fit: cover;
    object-position: top;
    border-radius: 3% 3% 0 0 !important;
    max-height: 300px;
}

.blog-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(270deg, var(--gold) 0%, #e8bc4a 100%);
    color: #111827;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
}

.blog-news-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.news-title .title-link {
    text-decoration: none;
    color: #111827;
    transition: color 0.2s ease;
}

.news-title .title-link:hover {
    color: #f59e0b !important;
}

/* Make the whole card clickable */
.title-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
}

.blog-news-desc {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
}

.blog-meta-info {
    font-size: 0.8rem;
    color: #6b7280;
}

.read-more-btn {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    background-color: #1e1b4b; /* Dark blue background */
    color: #ffffff; /* White text */
}

.news-card:hover .read-more-btn, .news-card:active .read-more-btn {
    background-color: #11102e; /* Slightly darker on hover */
    color: #f59e0b; /* White text */
}

/* Infinite scroll items */
.blog-article-count {
    font-size: 0.9rem;
}

.blog-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border-color: #f59e0b;
    border-right-color: transparent;
}

.blog-loading-text {
    color: #6b7280;
    font-size: 0.9rem;
}
