/* ===== Blog Hero Section Modern ===== */
.blog-hero-modern {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    padding: 120px 0 80px;
    overflow: hidden;
    text-align: center;
    color: white;
}

.hero-overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(98, 182, 203, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(243, 156, 18, 0.1) 0%, transparent 50%);
    opacity: 0.5;
}

.blog-badge-modern {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(98, 182, 203, 0.2);
    border: 2px solid rgba(98, 182, 203, 0.5);
    border-radius: 50px;
    color: var(--accent-sky);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.blog-title-modern {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-sky), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Blog Cards Modern ===== */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(27,73,101,0.15); /* Match accent color */
    border-color: var(--accent-sky);
}

.blog-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

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

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.blog-meta span {
    display: flex;
    align-items: center;
}

html[dir="rtl"] .blog-meta span {
    margin-left: 15px;
}
html[dir="ltr"] .blog-meta span {
    margin-right: 15px;
}

.blog-meta i {
    color: var(--accent-orange);
}
html[dir="rtl"] .blog-meta i {
    margin-left: 5px;
}
html[dir="ltr"] .blog-meta i {
    margin-right: 5px;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.btn-read-more {
    margin-top: auto;
    align-self: flex-start;
    padding: 10px 25px;
    border-radius: 50px;
    background: rgba(98, 182, 203, 0.1);
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-read-more:hover {
    background: var(--primary-light);
    color: #fff;
    border-color: var(--primary-light);
}

/* Pagination */
.pagination .page-link {
    border-radius: 50%;
    margin: 0 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-light);
    color: white;
    box-shadow: 0 5px 15px rgba(27,73,101,0.3);
}

/* ===== Blog Details Section ===== */
.blog-details-header {
    background-color: #f8f9fa;
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
}

.blog-details-title {
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.blog-image-container {
    max-width: 900px;
    margin: -80px auto 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
}

.blog-image-container img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.blog-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #4a4a4a;
    line-height: 1.8;
}

.share-section {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin: 50px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: var(--primary-light);
    transition: all 0.3s;
    text-decoration: none;
    margin: 0 5px;
}

.share-btn:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-3px);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    border-radius: 50px;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--primary-light);
    color: white;
}
