/* Blog Modern Styling - Standardized */

/* Intro Pages Blog - Premium Look */
.intro_pages_blog {
    position: relative;
    z-index: 1;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60vh;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.intro_pages_blog::after {
    position: absolute;
    content: "";
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

.intro_pages_blog .box {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.intro_pages_blog span {
    color: var(--btnColor);
    display: block;
    margin-bottom: 15px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.intro_pages_blog h1 {
    font-size: 48px;
    color: #fff;
    margin: 0;
    font-weight: 800;
}

/* S1_blog - Grid & Cards */
.S1_blog {
    padding: 80px 0 !important;
    background-color: var(--body_bgColor);
}

.S1_blog .box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: start;
}

.S1_blog .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.S1_blog .box img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.S1_blog .box:hover img {
    transform: scale(1.05);
}

.S1_blog .box-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Header RTL Overrides */
[dir="rtl"] .nav-zone-end {
    justify-content: flex-start !important;
}

[dir="rtl"] .navbar-icons-right {
    flex-direction: row; /* Natural RTL row flow */
    gap: 15px;
}

.badge-count {
    position: absolute;
    top: -5px;
    inset-inline-end: -5px;
    background: #d4af37;
    color: #000;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: bold;
}

.S1_blog .box span {
    color: var(--btnColor);
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
}

.S1_blog h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.S1_blog h3 a {
    color: var(--textColor);
    text-decoration: none;
    transition: color 0.3s ease;
}

.S1_blog h3 a:hover {
    color: var(--btnColor);
}

.S1_blog .box p {
    color: var(--pragrafColor);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Single Blog Page */
.Single_blog {
    padding: 60px 0;
    background-color: var(--body_bgColor);
}

.Single_blog .right_side {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: start;
}

.Single_blog .main-img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.Single_blog h3 {
    font-size: 36px;
    color: var(--textColor);
    margin-bottom: 20px;
    font-weight: 800;
}

.Single_blog h4 {
    color: var(--btnColor);
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 600;
}

.Single_blog p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--pragrafColor);
}

/* Comments Section Modernization */
.comments {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.comment-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: start;
}

.comment-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--btnColor);
    object-fit: cover;
}

/* Sidebar Modernization */
.left_side h3 {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--btnColor);
    display: inline-block;
}

.recent-post-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: start;
}

.recent-post-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(calc(-1 * var(--rtl-direction, 1) * 5px));
}

[dir="rtl"] .recent-post-card:hover {
    transform: translateX(5px);
}

.recent-post-card img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post-card h5 {
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.recent-post-card span {
    font-size: 12px;
    color: var(--pragrafColor);
    opacity: 0.7;
}
