/* Modern Homepage Styling - All White Text */

/* Animated ECG Line */
.ecg {
    width: 100%;
    height: 60px; /* کاهش از 120px به 60px */
    opacity: 0.6; /* کاهش شفافیت */
    filter: drop-shadow(0 0 4px rgba(0,224,255,0.25)); /* کاهش سایه */
    position: absolute !important;
    bottom: 0 !important; /* اطمینان از قرارگیری در پایین */
    top: auto !important; /* جلوگیری از تداخل */
    left: 0 !important;
    z-index: 1 !important;
}

.ecg path {
    stroke: #00e0ff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: dash 4s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -700;
    }
}

/* Global Homepage Styles */
.homepage-section {
    background: transparent !important;
    padding: 0px 0 !important;
    position: relative;
    z-index: 2;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Remove spacing between news and gallery sections */
.news-section {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

.gallery-section {
    padding-top: 0px !important;
    margin-top: 0px !important;
}

/* Force remove spacing with higher specificity */
div.homepage-section.news-section {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

div.homepage-section.gallery-section {
    padding-top: 0px !important;
    margin-top: 0px !important;
}

/* Override any other CSS */
#about-section.news-section {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

/* All Text White */
.homepage-section h1,
.homepage-section h2,
.homepage-section h3,
.homepage-section h4,
.homepage-section h5,
.homepage-section h6,
.homepage-section p,
.homepage-section span,
.homepage-section div,
.homepage-section a,
.homepage-section li,
.homepage-section .title,
.homepage-section .description,
.homepage-section .entry-title,
.homepage-section .grid-entry-title,
.homepage-section .title-container,
.main_color,
.main_color h1,
.main_color h2,
.main_color h3,
.main_color h4,
.main_color h5,
.main_color h6,
.main_color p,
.main_color span,
.main_color div,
.main_color a,
.main_color li {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Services Section */
#about-section {
    background: transparent !important;
    padding: 80px 0;
}

.color-eef4f7 {
    background: transparent !important;
}

.svg-new {
    display: none; /* Hide decorative SVG */
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-items: center !important;
    align-items: start;
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px;
    padding: 0;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.service-image {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0 !important;
    color: #ffffff !important;
}

.service-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-title a:hover {
    color: #f0f0f0 !important;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0 !important;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-meta {
    margin-top: auto;
}

.service-link {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Services Section Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-title {
        font-size: 1.2rem !important;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .service-link {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        gap: 15px;
        margin-top: 20px;
    }
    
    .service-content {
        padding: 15px;
    }
    
    .service-title {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    
    .service-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
}

.grid-entry-title {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin: 20px 0 15px 0 !important;
    color: #ffffff !important;
}

.grid-entry-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.grid-entry-title a:hover {
    color: #f0f0f0 !important;
}

.entry-footer p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0 !important;
    margin-bottom: 0;
}

/* Title Section */
.title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.liner-continer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.left-line, .right-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.title-container {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Main Advantages Section */
.advantages-section {
    padding: 20px 0 20px 0;
    margin-bottom: 20px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.advantage-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    /* backdrop-filter: blur(10px); - حذف شد */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.advantage-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Articles Section */
.articles-section {
    padding: 40px 0;
    background: transparent !important;
}

/* Articles Section */
.articles-section {
    padding: 40px 0;
    background: transparent !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.articles-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Owl Carousel for Articles */
#article_owl {
    display: block !important;
    visibility: visible !important;
}

#article_owl .owl-item {
    padding: 0 15px;
}

/* Modern Article Cards */
.modern-article-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto 30px auto;
    display: flex;
    flex-direction: column;
    max-width: 520px;
}

.modern-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.article-image {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: #ffffff !important;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.article-title {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 15px !important;
    line-height: 1.4;
}

.article-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-title a:hover {
    color: #f0f0f0 !important;
}

.article-excerpt {
    color: #e0e0e0 !important;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-date,
.article-comments {
    font-size: 0.85rem;
    color: #b0b0b0 !important;
    font-weight: 500;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-comments {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Articles Responsive Design */
@media (max-width: 768px) {
    .modern-article-card {
        margin-bottom: 20px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.1rem !important;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 15px;
    }
    
    .article-title {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    
    .article-excerpt {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
}

/* Gallery Wrapper */
.gallery-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    padding-bottom: 0;
    overflow: hidden;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0 40px 0 !important;
    background: transparent !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Gallery Cards */
.gallery-section .med-card {
    margin-bottom: 0 !important;
    height: auto;
    min-height: 300px;
    overflow: hidden;
}

.gallery-section .post-body {
    padding-bottom: 20px !important;
    margin-bottom: 0 !important;
}

.gallery-section .owl-carousel {
    margin-bottom: 0 !important;
}

.gallery-section .owl-item {
    margin-bottom: 0 !important;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
}

/* Owl Carousel Styling */
.owl-carousel .owl-nav {
    margin-top: 20px;
    text-align: center;
}

.owl-carousel .owl-nav button {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    margin: 0 10px !important;
    color: #ffffff !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
}

.owl-carousel .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1) !important;
}

.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-carousel .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dots .owl-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* News Section */
.news-section {
    padding: 40px 0;
    background: transparent !important;
}

.news-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    /* backdrop-filter: blur(10px); - حذف شد */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.news-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-date {
    color: #b0b0b0 !important;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 15px !important;
}

.news-content {
    color: #e0e0e0 !important;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .homepage-section {
        padding: 20px 0;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .title-container {
        font-size: 2rem !important;
    }
    
    .inner-entry,
    .advantage-item,
    .article-card,
    .news-item {
        margin-bottom: 20px;
    }
    
    .liner-continer {
        flex-direction: column;
        gap: 10px;
    }
    
    .left-line, .right-line {
        width: 50px;
    }
    
    .footer-line {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .footer-line img {
        margin: 0 0 15px 0 !important;
    }
    
    .modern-btn {
        padding: 12px 30px !important;
        font-size: 0.8rem !important;
    }
    
    .owl-carousel .owl-nav button {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .title-container {
        font-size: 1.5rem !important;
    }
    
    .inner-entry {
        padding: 20px;
    }
    
    .advantage-item {
        padding: 30px 20px;
    }
    
    .modern-btn {
        padding: 10px 25px !important;
        font-size: 0.75rem !important;
    }
}

/* Remove any remaining dark backgrounds */
.color-f9f9f9,
.color-eef4f7,
.vc_custom_right {
    background: transparent !important;
    background-color: transparent !important;
}

/* Image overlays */
.image-overlay {
    background: rgba(0, 0, 0, 0.3) !important;
    transition: opacity 0.3s ease !important;
}

.grid-image:hover .image-overlay {
    opacity: 0.7 !important;
}

/* Modern Button Styles */
.modern-btn {
    background: rgba(255,255,255,0.1) !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    /* backdrop-filter: blur(10px) !important; - حذف شد */
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.9rem !important;
}

.modern-btn:hover {
    background: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.4) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}

/* Medical Footer with ECG Design */
.medical-footer {
    background: linear-gradient(135deg, #0a0e14 0%, #1a2332 50%, #0f1520 100%) !important;
    border-top: 3px solid #00e0ff !important;
    margin-top: 0 !important;
    position: relative;
    overflow: hidden;
    clear: both;
    z-index: 10;
    padding: 40px 20px 20px 20px;
    text-align: center;
    box-shadow: 0 -10px 30px rgba(0,224,255,0.1) !important;
}

.medical-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0,224,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,224,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0,224,255,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}





.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.footer-content {
    padding: 40px 0 30px 0 !important;
    position: relative;
    z-index: 3;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: start;
}

.footer-section {
    padding: 0 15px;
}

.footer-title {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    letter-spacing: 0.5px !important;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #00e0ff 0%, #4facfe 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,224,255,0.5) !important;
}

.footer-text {
    color: #c8d4e6 !important;
    line-height: 1.8 !important;
    font-size: 15px !important;
    text-align: justify;
    margin: 8px 0 0 0 !important;
    font-weight: 400 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    padding: 15px !important;
    background: rgba(255,255,255,0.03) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0,224,255,0.1) !important;
    backdrop-filter: blur(10px) !important;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,224,255,0.1);
    color: #00e0ff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,224,255,0.3);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
}

.social-link.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.social-link.aparat:hover {
    background: #ff6b35;
    border-color: #ff6b35;
}

.social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-link i {
    font-size: 1.1rem;
}

/* Footer Bottom */
.footer-bottom {
    background: #0b0f14 !important;
    border-top: 1px solid #24313f !important;
    padding: 20px 0 !important;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    text-align: center;
}

.copyright {
    color: #9fb3c8 !important;
    font-size: 14px !important;
    margin: 8px 0 0 0 !important;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-content {
        padding: 30px 0 20px 0 !important;
    }
    
    .footer-section {
        padding: 0 10px;
        text-align: center;
    }
    
    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 25px 0 15px 0 !important;
    }
    
    .footer-title {
        font-size: 1rem !important;
    }
    
    .footer-text {
        font-size: 0.85rem !important;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link i {
        font-size: 1rem;
    }
}

.socket_color .external:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.socket_color .external img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Blog Page Styles */
.av-alb-blogposts {
    background: transparent !important;
}

.post-entry {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    margin-bottom: 40px !important;
    /* backdrop-filter: blur(15px) !important; - حذف شد */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.post-entry:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.post-title, .entry-title {
    color: #ffffff !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.post-title a, .entry-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.post-title a:hover, .entry-title a:hover {
    color: #f0f0f0 !important;
}

.entry-content {
    color: #e0e0e0 !important;
    line-height: 1.7 !important;
    font-size: 1.1rem !important;
    margin-bottom: 25px !important;
}

.post-meta-infos {
    color: #b0b0b0 !important;
    font-size: 0.9rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 20px !important;
    margin-top: 25px !important;
}

.post-meta-infos a {
    color: #c0c0c0 !important;
}

.post-meta-infos a:hover {
    color: #ffffff !important;
}

.big-preview img {
    border-radius: 15px !important;
    width: 100% !important;
    max-width: 600px !important;
    height: auto !important;
    margin: 20px auto !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.big-preview img:hover {
    transform: scale(1.05) !important;
}

/* Blog Grid Styles */
.slide-entry {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    margin: 0 auto 30px auto !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    max-width: 520px;
}

.slide-entry:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.slide-entry img {
    border-radius: 10px !important;
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    margin-bottom: 20px !important;
    transition: transform 0.3s ease !important;
}

.slide-entry:hover img {
    transform: scale(1.1) !important;
}

.slide-entry-title {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

.slide-entry-title a {
    color: #ffffff !important;
}

.slide-entry-excerpt {
    color: #e0e0e0 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
    margin-bottom: 15px !important;
}

.slide-meta {
    color: #b0b0b0 !important;
    font-size: 0.85rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 15px !important;
}

.slide-meta a {
    color: #c0c0c0 !important;
}

.blog-categories {
    color: #a0a0a0 !important;
    font-size: 0.9rem !important;
    margin-bottom: 10px !important;
}

.blog-categories a {
    color: #c0c0c0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 5px 12px !important;
    border-radius: 15px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 2px !important;
    transition: all 0.3s ease !important;
}

.blog-categories a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Sidebar Styles */
.sidebar {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.widget {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.widgettitle {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.widget ul li {
    color: #e0e0e0 !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.widget ul li:last-child {
    border-bottom: none !important;
}

.widget ul li a {
    color: #e0e0e0 !important;
    transition: color 0.3s ease !important;
}

.widget ul li a:hover {
    color: #ffffff !important;
}

.news-content {
    display: flex !important;
    align-items: center !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
}

.news-content:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(-5px) !important;
}

.news-thumb img {
    border-radius: 8px !important;
    margin-left: 15px !important;
}

.news-headline {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.news-time {
    color: #b0b0b0 !important;
    font-size: 0.8rem !important;
    display: block !important;
    margin-top: 5px !important;
}

/* Pagination Styles */
.pagination {
    text-align: center !important;
    margin-top: 40px !important;
}

.pagination a, .pagination span {
    display: inline-block !important;
    padding: 12px 18px !important;
    margin: 0 5px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

.pagination .current {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 600 !important;
}

.pagination-meta {
    color: #c0c0c0 !important;
    font-size: 0.9rem !important;
    margin-bottom: 20px !important;
    display: block !important;
}

/* Search Form Styles */
#searchform {
    position: relative !important;
}

#searchform input[type="text"] {
    width: 100% !important;
    padding: 15px 50px 15px 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 25px !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

#searchform input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    outline: none !important;
}

#searchform input[type="text"]::placeholder {
    color: #b0b0b0 !important;
}

#searchsubmit {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#searchsubmit:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* Blog Details Page Styles */
.breadcrumb-trail {
    background: rgba(255, 255, 255, 0.05) !important;
    /* backdrop-filter: blur(10px) !important; - حذف شد */
    border-radius: 25px !important;
    padding: 15px 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.breadcrumb-title, .trail-begin, .trail-end {
    color: #ffffff !important;
    font-weight: 500 !important;
}

.breadcrumb-trail a {
    color: #e0e0e0 !important;
    transition: color 0.3s ease !important;
}

.breadcrumb-trail a:hover {
    color: #ffffff !important;
}

.sep {
    color: #c0c0c0 !important;
    margin: 0 10px !important;
}

/* Blog Article Content */
.template-single-blog .post-entry {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 25px !important;
    padding: 50px !important;
    margin-bottom: 40px !important;
    /* backdrop-filter: blur(20px) !important; - حذف شد */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.template-single-blog .post-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 30px !important;
    line-height: 1.3 !important;
}

.template-single-blog .entry-content {
    color: #e8e8e8 !important;
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    margin: 30px 0 !important;
}

.template-single-blog .entry-content h1,
.template-single-blog .entry-content h2,
.template-single-blog .entry-content h3,
.template-single-blog .entry-content h4,
.template-single-blog .entry-content h5,
.template-single-blog .entry-content h6 {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin: 30px 0 20px 0 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.template-single-blog .entry-content p {
    color: #e8e8e8 !important;
    margin-bottom: 20px !important;
}

.template-single-blog .entry-content ul,
.template-single-blog .entry-content ol {
    color: #e8e8e8 !important;
    margin: 20px 0 !important;
    padding-right: 25px !important;
}

.template-single-blog .entry-content li {
    color: #e8e8e8 !important;
    margin-bottom: 10px !important;
}

.template-single-blog .entry-content table {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 25px 0 !important;
    overflow: hidden !important;
}

.template-single-blog .entry-content th,
.template-single-blog .entry-content td {
    color: #ffffff !important;
    padding: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.template-single-blog .entry-content th {
    background: rgba(255, 255, 255, 0.1) !important;
    font-weight: 600 !important;
}

.template-single-blog .img-center {
    border-radius: 20px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 30px auto !important;
    display: block !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s ease !important;
}

.template-single-blog .img-center:hover {
    transform: scale(1.02) !important;
}

/* Image Gallery */
.small-demo {
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    margin-top: 40px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.small-demo img {
    border-radius: 10px !important;
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    margin-bottom: 15px !important;
}

.small-demo img:hover {
    transform: scale(1.05) !important;
}

/* Social Share */
.av-share-box {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    margin: 40px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
}

.av-share-link-description {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-bottom: 25px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.av-share-box-list {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.av-share-link a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.av-share-link a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Related Posts */
.related_posts {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    margin: 50px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.related_title {
    color: #ffffff !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.related_column {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.related_column:hover {
    transform: translateY(-5px) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.related_column img {
    border-radius: 10px !important;
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
    margin-bottom: 15px !important;
    transition: transform 0.3s ease !important;
}

.related_column:hover img {
    transform: scale(1.05) !important;
}

.av-related-title {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    display: block !important;
    text-align: center !important;
}

/* Comments Section */
.comment-entry {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    margin: 50px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.comment_meta_container {
    text-align: center !important;
    margin-bottom: 40px !important;
}

.comment-count {
    color: #ffffff !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    display: block !important;
}

.comment-text {
    color: #c0c0c0 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.comment {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.comment-content {
    color: #e0e0e0 !important;
    line-height: 1.6 !important;
}

.comment-author {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.comment-date {
    color: #b0b0b0 !important;
    font-size: 0.9rem !important;
}

/* Ensure main containers have proper z-index above background */
#wrap_all, .container, .main_color {
    position: relative !important;
    z-index: 10 !important;
}

/* Ensure all links are white */
a, a:hover, a:visited, a:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

a:hover {
    color: #f0f0f0 !important;
}

/* Force remove spacing between news and gallery sections - MAXIMUM SPECIFICITY */
body .homepage-section.news-section.rtlDir.animate-fade-up#about-section {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
    border-bottom: none !important;
}

body .homepage-section.gallery-section.rtlDir.animate-fade-up[data-parallax="0.06"] {
    padding-top: 0px !important;
    margin-top: 0px !important;
    border-top: none !important;
}

/* Remove any container spacing */
body .homepage-section.news-section .vc_custom_right {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

body .homepage-section.gallery-section .container {
    padding-top: 0px !important;
    margin-top: 0px !important;
}

/* Additional override for any remaining spacing */
.homepage-section + .homepage-section {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

.news-section + .gallery-section {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

/* Footer spacing control */
.footer-main {
    margin-top: 0px !important;
    padding-top: 20px !important;
}

/* Ensure gallery is close to footer */
.gallery-section + .footer-main {
    margin-top: 0px !important;
}
