/* ==========================================================================
   الدليل المصري - El Daleel El Masry News Portal
   Homepage & Hero Section Styles (style-index.css)
   ========================================================================== */

/* 1. قسم الهيرو الإخباري المتقدم (Egyptian Guide Modern Hero Grid) */
.hero-section-modern {
    margin-top: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-modern-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-modern-grid {
        grid-template-columns: 2.1fr 1.1fr;
        min-height: 520px;
    }
}

/* الخبر الرئيسي الكبير في الهيرو */
.hero-main-large {
    position: relative;
    border-radius: var(--radius-xl, 24px);
    overflow: hidden;
    background-color: var(--color-navy-dark, #0b192c);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    box-shadow: 0 10px 30px -5px rgba(11, 25, 44, 0.2);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

@media (min-width: 768px) {
    .hero-main-large {
        min-height: 520px;
    }
}

.hero-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-main-large:hover .hero-main-image img {
    transform: scale(1.04);
}

.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 25, 44, 0.05) 0%, rgba(11, 25, 44, 0.65) 50%, rgba(11, 25, 44, 0.96) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-main-content {
    position: relative;
    z-index: 3;
    padding: 2.5rem 2rem 2rem;
    color: #ffffff;
}

@media (max-width: 640px) {
    .hero-main-content {
        padding: 1.5rem 1.25rem;
    }
}

.hero-main-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--color-primary, #ba181b);
    color: #ffffff;
    font-size: 0.825rem;
    font-weight: 800;
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 3px 10px rgba(186, 24, 27, 0.4);
    letter-spacing: 0.3px;
}

.hero-main-title {
    color: #ffffff !important;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.38;
    margin-top: 0.85rem;
    margin-bottom: 0.85rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
    .hero-main-title {
        font-size: 2.15rem;
    }
}

.hero-main-title a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-main-title a:hover {
    color: #fca5a5 !important;
}

.hero-main-excerpt {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 92%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-main-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.825rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.hero-main-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-main-meta i {
    color: var(--color-gold, #d4af37);
}

/* 2. القائمة الجانبية التفاعلية بالهيرو (Hero Side Trends & Most Read) */
.hero-side-wrapper {
    background-color: #ffffff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-xl, 24px);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-side-header {
    background: linear-gradient(135deg, var(--color-navy-dark, #0b192c) 0%, #1e3e62 100%);
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--color-gold, #d4af37);
}

.hero-side-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.hero-side-title i {
    color: var(--color-gold, #d4af37);
}

.hero-side-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
}

.hero-side-list {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    justify-content: space-around;
}

.hero-side-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: var(--radius-md, 12px);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.hero-side-item:hover {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(-3px);
}

.hero-side-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--color-navy-dark, #0b192c);
    font-size: 0.85rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-side-item:nth-child(1) .hero-side-rank {
    background: var(--color-primary, #ba181b);
    color: #ffffff;
}

.hero-side-item:nth-child(2) .hero-side-rank {
    background: var(--color-gold, #d4af37);
    color: #0b192c;
}

.hero-side-item:nth-child(3) .hero-side-rank {
    background: #1e3e62;
    color: #ffffff;
}

.hero-side-thumb {
    width: 76px;
    height: 64px;
    border-radius: var(--radius-sm, 8px);
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.hero-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-side-item:hover .hero-side-thumb img {
    transform: scale(1.08);
}

.hero-side-body {
    flex: 1;
    min-width: 0;
}

.hero-side-cat {
    font-size: 0.725rem;
    font-weight: 800;
    color: var(--color-primary, #ba181b);
    margin-bottom: 0.25rem;
    display: block;
}

.hero-side-item-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--color-text-main, #0b192c);
    line-height: 1.45;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.hero-side-item:hover .hero-side-item-title {
    color: var(--color-primary, #ba181b);
}

.hero-side-meta {
    font-size: 0.725rem;
    color: var(--color-text-light, #94a3b8);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* 3. رؤوس الأقسام والتبويبات (Section Headers) */
.section-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.section-header-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary, #ba181b), var(--color-gold, #d4af37));
    border-radius: 3px;
}

.section-title-modern {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--color-navy-dark, #0b192c);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
}

.section-title-modern i {
    color: var(--color-primary, #ba181b);
    font-size: 1.25rem;
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-primary, #ba181b);
    font-size: 0.875rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.section-view-all:hover {
    color: #780000;
    transform: translateX(-4px);
}

/* 4. كروت الأخبار المطورة (Egyptian Guide News Cards) */
.news-card-modern {
    background: #ffffff;
    border-radius: var(--radius-lg, 18px);
    border: 1px solid var(--color-border, #e2e8f0);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(11, 25, 44, 0.12);
    border-color: #cbd5e1;
}

.news-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
}

.news-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card-modern:hover .news-card-thumb-wrap img {
    transform: scale(1.06);
}

.news-card-cat-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--color-navy-dark, #0b192c);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.news-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-navy-dark, #0b192c);
    line-height: 1.45;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.news-card-title a:hover {
    color: var(--color-primary, #ba181b);
}

.news-card-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-body, #334155);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: var(--color-text-light, #94a3b8);
    font-weight: 600;
}

.news-card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.news-card-footer i {
    color: var(--color-gold, #d4af37);
}

/* 5. شريط أقسام الخدمات ودليل المحافظات السريع */
.eg-services-bar {
    background: linear-gradient(135deg, #0b192c 0%, #1e3e62 100%);
    border-radius: var(--radius-xl, 24px);
    padding: 1.5rem 2rem;
    color: #ffffff;
    margin: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.eg-services-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.eg-services-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.eg-services-title {
    font-size: 1.25rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
}

.eg-services-title i {
    color: var(--color-gold, #d4af37);
}

.eg-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .eg-services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .eg-services-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.eg-service-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md, 12px);
    padding: 1rem 0.75rem;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.eg-service-card:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--color-gold, #d4af37);
    transform: translateY(-3px);
}

.eg-service-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-gold, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.eg-service-name {
    font-size: 0.825rem;
    font-weight: 800;
}