/* =========================================================
   ملف تحسينات بصرية إضافية - أفق العلا
   يُحمَّل بعد الأنماط الأساسية لإضافة لمسات حديثة وحركية
   على بلوكات: إنجازاتنا وقيمنا / من نحن / قيمنا الأساسية /
   فريقنا المتميز / لماذا أفق العلا / المدونة / الفوتر
   ========================================================= */

:root {
    --afq-glow: rgba(106, 23, 31, 0.18);
    --afq-glow-soft: rgba(106, 23, 31, 0.08);
    --afq-radius-lg: 22px;
    --afq-radius-md: 16px;
    --afq-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- أدوات مشتركة: تأخير متدرّج للبطاقات عند الظهور ---------- */
.feature-card.fade-in:nth-child(1),
.social-card.fade-in:nth-child(1),
.social-card1.fade-in:nth-child(1),
.team-card.fade-in:nth-child(1),
.blog-card.fade-in:nth-child(1),
.vm-card.fade-in:nth-child(1) { transition-delay: 0s; }
.feature-card.fade-in:nth-child(2),
.social-card.fade-in:nth-child(2),
.social-card1.fade-in:nth-child(2),
.team-card.fade-in:nth-child(2),
.blog-card.fade-in:nth-child(2),
.vm-card.fade-in:nth-child(2) { transition-delay: 0.08s; }
.feature-card.fade-in:nth-child(3),
.social-card.fade-in:nth-child(3),
.social-card1.fade-in:nth-child(3),
.team-card.fade-in:nth-child(3),
.blog-card.fade-in:nth-child(3) { transition-delay: 0.16s; }
.feature-card.fade-in:nth-child(4),
.social-card.fade-in:nth-child(4),
.social-card1.fade-in:nth-child(4),
.team-card.fade-in:nth-child(4),
.blog-card.fade-in:nth-child(4) { transition-delay: 0.24s; }
.feature-card.fade-in:nth-child(5),
.social-card.fade-in:nth-child(5),
.social-card1.fade-in:nth-child(5),
.blog-card.fade-in:nth-child(5) { transition-delay: 0.32s; }
.feature-card.fade-in:nth-child(6),
.social-card1.fade-in:nth-child(6),
.blog-card.fade-in:nth-child(6) { transition-delay: 0.4s; }

/* =========================================================
   1) إنجازاتنا وقيمنا
   ========================================================= */
.achievements-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.achievements-section::before,
.achievements-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}
.achievements-section::before {
    width: 420px;
    height: 420px;
    top: -180px;
    inset-inline-start: -140px;
    background: radial-gradient(circle, var(--afq-glow) 0%, transparent 70%);
}
.achievements-section::after {
    width: 380px;
    height: 380px;
    bottom: -160px;
    inset-inline-end: -120px;
    background: radial-gradient(circle, var(--afq-glow) 0%, transparent 70%);
}

.achievements-section .badge {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 8px 20px var(--afq-glow-soft);
}

.achievements-section .divider {
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    height: 3px;
}

.achievements-section .feature-card {
    background: #fff;
    border: none;
    border-radius: var(--afq-radius-lg);
    box-shadow: 0 8px 26px rgba(20, 20, 20, 0.09);
    transition: transform 0.45s var(--afq-ease), box-shadow 0.45s var(--afq-ease);
    position: relative;
    overflow: hidden;
}

.achievements-section .feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--afq-glow-soft), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s var(--afq-ease);
    pointer-events: none;
}

.achievements-section .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 44px rgba(106, 23, 31, 0.18);
}
.achievements-section .feature-card:hover::before { opacity: 1; }

.achievements-section .icon-wrapper {
    transition: transform 0.5s var(--afq-ease), background 0.4s ease;
}
.achievements-section .feature-card:hover .icon-wrapper {
    transform: rotate(-8deg) scale(1.12);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.achievements-section .card-title {
    position: relative;
    display: inline-block;
}

/* =========================================================
   2) من نحن
   ========================================================= */
.about-section {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #faf7f7 100%);
}

.about-section .about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.about-section .about-stat {
    background: #fff;
    border: 1px solid rgba(106, 23, 31, 0.1);
    border-radius: var(--afq-radius-md);
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s var(--afq-ease), box-shadow 0.4s var(--afq-ease);
    flex: 1 1 140px;
}
.about-section .about-stat:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 30px var(--afq-glow-soft);
}

.about-section .about-stat-num {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-section .about-stat-label {
    color: var(--dark);
    opacity: 0.75;
    font-size: 0.92rem;
}

.about-section .vision-mission {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.about-section .vm-card {
    flex: 1 1 260px;
    background: linear-gradient(150deg, #ffffff 0%, #f7f1f1 100%);
    border-radius: var(--afq-radius-lg);
    padding: 30px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.45s var(--afq-ease), box-shadow 0.45s var(--afq-ease);
}
.about-section .vm-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -30px;
    inset-block-start: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--afq-glow-soft);
}
.about-section .vm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(106, 23, 31, 0.14);
}
.about-section .vm-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 18px var(--afq-glow-soft);
}

/* =========================================================
   3) قيمنا الأساسية
   ========================================================= */
.social-media {
    background: linear-gradient(160deg, #6a171f 0%, #4a1017 55%, #2b2b2b 130%);
    position: relative;
    overflow: hidden;
}
.social-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05), transparent 45%);
    pointer-events: none;
}

.social-media .social-title,
.social-media .social-subtitle {
    color: #fff;
    position: relative;
    z-index: 1;
}
.social-media .social-subtitle { opacity: 0.85; }

.social-media .social-grid {
    position: relative;
    z-index: 1;
}

.social-media .social-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--afq-radius-md);
    transition: transform 0.45s var(--afq-ease), background 0.4s ease, border-color 0.4s ease;
}
.social-media .social-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--gold);
}
.social-media .social-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--primary) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s var(--afq-ease), background 0.4s ease;
}
.social-media .social-icon .afaq-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}
.social-media .social-card:hover .social-icon {
    transform: scale(1.15) rotate(6deg);
    background: var(--gold);
}
.social-media .social-name { color: #fff; }

/* =========================================================
   4) فريقنا المتميز
   ========================================================= */
.team-section {
    position: relative;
}

.team-section .team-grid {
    grid-template-columns: repeat(3, 1fr);
}

.team-section .team-card {
    background: #fff;
    border-radius: var(--afq-radius-lg);
    border: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    transition: transform 0.45s var(--afq-ease), box-shadow 0.45s var(--afq-ease);
    position: relative;
    padding: 36px 26px;
}
.team-section .team-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    height: 5px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--gold));
    transition: width 0.5s var(--afq-ease);
    border-radius: 5px 5px 0 0;
}
.team-section .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.24);
}
.team-section .team-card:hover::before { width: 100%; }

.team-section .team-card h3 {
    color: var(--dark) !important;
}
.team-section .team-card p {
    color: #6b6b6b !important;
}

.team-section .team-icon,
.team-card .team-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border: none !important;
    color: #fff;
    margin: 0 auto 18px;
    box-shadow: 0 10px 22px rgba(106, 23, 31, 0.3);
    transition: transform 0.5s var(--afq-ease), background 0.4s ease;
}
.team-section .team-card .team-icon .afaq-icon,
.team-card .team-icon .afaq-icon {
    color: #fff !important;
    width: 32px;
    height: 32px;
}
.team-section .team-card:hover .team-icon {
    background: linear-gradient(135deg, var(--secondary), var(--primary)) !important;
    transform: scale(1.1) rotate(-6deg);
}

@media (max-width: 900px) {
    .team-section .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .team-section .team-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   5) لماذا أفق العلا
   ========================================================= */
.social-media1 {
    background: #faf7f7;
    position: relative;
}

.social-media1 .social-card1 {
    background: #fff;
    border: none;
    border-radius: var(--afq-radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.45s var(--afq-ease), box-shadow 0.45s var(--afq-ease);
    position: relative;
    overflow: hidden;
}
.social-media1 .social-card1::after {
    content: "";
    position: absolute;
    inset-inline-end: -20px;
    inset-block-end: -20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--afq-glow-soft);
    transition: transform 0.5s var(--afq-ease);
}
.social-media1 .social-card1:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 42px rgba(106, 23, 31, 0.16);
}
.social-media1 .social-card1:hover::after {
    transform: scale(1.4);
}
.social-media1 .social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    box-shadow: 0 8px 18px rgba(106, 23, 31, 0.25);
    transition: transform 0.5s var(--afq-ease);
}
.social-media1 .social-icon .afaq-icon {
    color: #fff !important;
    width: 26px;
    height: 26px;
}
.social-media1 .social-card1:hover .social-icon {
    transform: scale(1.15) rotate(-6deg);
}

/* =========================================================
   6) المدونة
   ========================================================= */
.blog-section {
    position: relative;
    padding-block: 70px;
}

.blog-section .blog-header {
    text-align: center;
    margin-bottom: 40px;
}
.blog-section .blog-header .badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.blog-section .blog-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--dark);
    margin: 0 0 10px;
}
.blog-section .blog-header .divider {
    width: 70px;
    height: 3px;
    margin: 0 auto 14px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 3px;
}

.blog-section .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.blog-section .blog-card {
    background: #fff;
    border-radius: var(--afq-radius-lg);
    border: 1px solid rgba(106, 23, 31, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.45s var(--afq-ease), box-shadow 0.45s var(--afq-ease);
}
.blog-section .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 40px rgba(106, 23, 31, 0.15);
}

.blog-section .blog-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 0;
}
.blog-section .blog-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--afq-glow-soft), transparent);
    color: var(--primary);
    transition: transform 0.4s var(--afq-ease);
}
.blog-section .blog-card:hover .blog-icon {
    transform: rotate(-8deg) scale(1.08);
}
.blog-section .blog-category {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--afq-glow-soft);
    color: var(--primary);
}

.blog-section .blog-card-body {
    padding: 16px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.blog-section .blog-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #8a8a8a;
}
.blog-section .blog-title {
    font-size: 1.15rem;
    margin: 0;
    color: var(--dark);
    line-height: 1.5;
    transition: color 0.3s ease;
}
.blog-section .blog-card:hover .blog-title { color: var(--primary); }
.blog-section .blog-excerpt {
    color: #6b6b6b;
    font-size: 0.92rem;
    line-height: 1.7;
    flex: 1;
}
.blog-section .blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-top: 6px;
    transition: gap 0.3s ease, color 0.3s ease;
}
.blog-section .blog-card:hover .blog-read-more {
    gap: 12px;
    color: var(--secondary);
}
.blog-section .blog-load-more { text-align: center; margin-top: 40px; }
.blog-section .no-posts {
    text-align: center;
    padding: 40px;
    color: #888;
    background: #faf7f7;
    border-radius: var(--afq-radius-md);
}

/* =========================================================
   7) الفوتر
   ========================================================= */
#site-footer {
    position: relative;
    background: linear-gradient(180deg, #1c1c1c 0%, #2b2b2b 55%, #241012 100%);
    overflow: hidden;
}
#site-footer::before {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    top: -220px;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(106, 23, 31, 0.35), transparent 70%);
    pointer-events: none;
}

.footer-top-line {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--secondary));
    background-size: 200% 100%;
    animation: afq-shimmer 6s linear infinite;
}
@keyframes afq-shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* شريط الدعوة لاتخاذ إجراء */
.footer-cta-banner {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    position: relative;
    z-index: 1;
}
.footer-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 20px;
}
.footer-cta-text h3 {
    color: #fff;
    margin: 0 0 6px;
    font-size: 1.35rem;
}
.footer-cta-text p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.95rem;
}
.footer-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.35s var(--afq-ease), box-shadow 0.35s var(--afq-ease), background 0.35s ease;
    white-space: nowrap;
}
.footer-cta-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.footer-cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}
.footer-cta-btn-solid {
    background: var(--gold);
    color: var(--primary);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.footer-cta-btn-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.footer-inner { position: relative; z-index: 1; }

.footer-logo img {
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    display: block;
    margin-bottom: 18px;
}

.footer-section h3 {
    color: #fff;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.footer-section h3::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border-radius: 3px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease, padding-inline-start 0.3s ease;
    display: inline-block;
}
.footer-section ul li a:hover {
    color: var(--gold);
    padding-inline-start: 4px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    margin-inline-end: 8px;
    transition: transform 0.4s var(--afq-ease), background 0.4s ease, box-shadow 0.4s ease;
}
.footer-social-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 20px rgba(106, 23, 31, 0.4);
}

.footer-contact address ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}
.footer-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
}
.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.35s var(--afq-ease);
}
.footer-cta:hover { transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 28px;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .footer-cta-inner { flex-direction: column; text-align: center; justify-content: center; }
    .footer-bottom { justify-content: center; text-align: center; }
    .about-section .vision-mission,
    .about-section .about-stats { flex-direction: column; }
}

/* =========================================================
   8) خدماتنا المتميزة — تصميم بارز واحترافي
   ========================================================= */

/* شبكة أمان: تظل البطاقات ظاهرة دائمًا حتى لو تعطّلت مكتبة GSAP الخارجية
   (GSAP تتحكم بالحركة عبر inline style أثناء التمرير، وهذا لا يمنعها) */
.service-card {
    opacity: 1;
    transform: none;
}

.services {
    position: relative;
    background: linear-gradient(180deg, #faf7f7 0%, #fff 100%);
    overflow: hidden;
}
.services::before {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    top: -120px;
    transform: translateX(-50%);
    width: 900px;
    height: 320px;
    background: radial-gradient(ellipse, var(--afq-glow-soft), transparent 70%);
    pointer-events: none;
}
.services .section-title {
    position: relative;
    z-index: 1;
}

.services-grid {
    position: relative;
    z-index: 1;
    gap: 26px;
}

.service-card {
    border: none !important;
    border-radius: 24px;
    padding: 42px 32px 34px;
    box-shadow: 0 10px 28px rgba(20, 20, 20, 0.07);
    position: relative;
}
.service-card::before {
    height: 5px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--gold));
    transform: scaleX(1);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
    border-color: transparent;
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 26px 50px rgba(106, 23, 31, 0.18);
}

/* رقم تسلسلي بارز لكل خدمة */
.service-card {
    counter-increment: afq-service;
}
.services-grid { counter-reset: afq-service; }
.service-card::after {
    content: "0" counter(afq-service);
    position: absolute;
    top: 18px;
    inset-inline-end: 22px;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--afq-glow-soft);
    z-index: 0;
    line-height: 1;
}

.service-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(106, 23, 31, 0.28);
    position: relative;
    z-index: 1;
}
.service-card:hover .service-icon {
    transform: scale(1.12) rotate(-6deg);
}

/* ألوان متبادلة لكل بطاقة لإعطاء إحساس نابض وملفت */
.service-card:nth-child(6n+1) .service-icon { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.service-card:nth-child(6n+2) .service-icon { background: linear-gradient(135deg, #8b1f29, #b3352f); }
.service-card:nth-child(6n+3) .service-icon { background: linear-gradient(135deg, #6a171f, #a8434a); }
.service-card:nth-child(6n+4) .service-icon { background: linear-gradient(135deg, #4a1017, #8b1f29); }
.service-card:nth-child(6n+5) .service-icon { background: linear-gradient(135deg, #6a171f, #b3b2b2); }
.service-card:nth-child(6n+6) .service-icon { background: linear-gradient(135deg, #8b1f29, #6a171f); }

.service-title { position: relative; z-index: 1; font-weight: 700; }
.service-desc { position: relative; z-index: 1; }

.service-link {
    position: relative;
    z-index: 1;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--afq-glow-soft);
    transition: background 0.35s ease, gap 0.35s ease, color 0.35s ease;
}
.service-card:hover .service-link {
    background: var(--primary);
    color: #fff;
    gap: 12px;
}
.service-card:hover .service-link .afaq-icon { color: #fff; }

@media (max-width: 640px) {
    .service-card { padding: 34px 24px 28px; }
}

/* =========================================================
   9) قيمنا الأساسية — إعادة تصميم كاملة (بدون مربعات تقليدية)
   ========================================================= */
.social-media .social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
}

.social-media .social-card {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    /* شكل غير تقليدي: زوايا غير متماثلة بدل المربع الكلاسيكي */
    border-radius: 30px 30px 30px 6px;
    padding: 38px 26px 30px;
    text-align: center;
    position: relative;
}
.social-media .social-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, var(--gold), transparent, var(--gold));
    opacity: 0.8;
}
.social-media .social-card:hover {
    border-radius: 6px 30px 30px 30px;
}

.social-media .social-icon {
    width: 70px;
    height: 70px;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.social-media .social-icon .afaq-icon {
    width: 32px;
    height: 32px;
}

.social-media .social-name {
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 14px;
    margin-bottom: 8px;
}
.social-media .social-card p {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.94rem;
    line-height: 1.8;
}

/* =========================================================
   10) فريقنا المتميز — نفس خلفية الفوتر
   ========================================================= */
.team-section {
    background: linear-gradient(180deg, #1c1c1c 0%, #2b2b2b 55%, #241012 100%) !important;
    position: relative;
    overflow: hidden;
}
.team-section::before {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    top: -200px;
    transform: translateX(-50%);
    width: 640px;
    height: 380px;
    background: radial-gradient(ellipse, rgba(106, 23, 31, 0.35), transparent 70%);
    pointer-events: none;
}
.team-section .container { position: relative; z-index: 1; }

/* =========================================================
   11) تحسينات الهيدر
   ========================================================= */
.nav-links a {
    font-weight: 500;
    letter-spacing: 0.2px;
}
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.login-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   12) بلوك المدونة الجديد (أرشيف/مقال مفرد)
   ========================================================= */
.afq-breadcrumbs {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.afq-breadcrumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.afq-breadcrumbs a:hover { color: var(--gold); }
.afq-breadcrumbs .sep { opacity: 0.55; }

.afq-page-hero {
    background: linear-gradient(160deg, #1c1c1c 0%, #2b2b2b 45%, #6a171f 130%);
    padding: 150px 0 60px;
    position: relative;
    overflow: hidden;
}
.afq-page-hero::before {
    content: "";
    position: absolute;
    inset-inline-end: -100px;
    top: -100px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(106, 23, 31, 0.4), transparent 70%);
}
.afq-page-hero h1 {
    color: #fff;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin: 14px 0 6px;
    position: relative;
    z-index: 1;
}
.afq-page-hero p {
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.afq-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    padding-block: 60px;
}

.afq-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-bottom: 60px;
    flex-wrap: wrap;
}
.afq-pagination a, .afq-pagination span {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: var(--dark);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    font-weight: 600;
    transition: all 0.3s ease;
}
.afq-pagination a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.afq-pagination .current { background: var(--primary); color: #fff; }

.afq-single-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}
.afq-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 26px;
    align-items: center;
}
.afq-single-meta span { display: inline-flex; align-items: center; gap: 6px; }
.afq-single-thumb {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}
.afq-single-thumb img { width: 100%; height: auto; display: block; }

.afq-article-content {
    font-size: 1.05rem;
    line-height: 2;
    color: #333;
}
.afq-article-content h2 { font-size: 1.5rem; margin: 34px 0 14px; color: var(--dark); }
.afq-article-content h3 { font-size: 1.25rem; margin: 28px 0 12px; color: var(--dark); }
.afq-article-content p { margin-bottom: 18px; }
.afq-article-content img { max-width: 100%; height: auto; border-radius: 14px; margin: 20px 0; }
.afq-article-content a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--afq-glow-soft); }
.afq-article-content ul, .afq-article-content ol { margin: 0 0 18px; padding-inline-start: 24px; }
.afq-article-content blockquote {
    border-inline-start: 4px solid var(--primary);
    background: var(--afq-glow-soft);
    padding: 18px 22px;
    border-radius: 0 14px 14px 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--dark);
}

.afq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 36px 0;
}
.afq-tags a {
    background: var(--afq-glow-soft);
    color: var(--primary);
    padding: 7px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.afq-tags a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.afq-author-box {
    display: flex;
    gap: 18px;
    align-items: center;
    background: #faf7f7;
    border-radius: 20px;
    padding: 24px;
    margin: 36px 0;
}
.afq-author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.afq-author-box h4 { margin: 0 0 4px; color: var(--dark); }
.afq-author-box p { margin: 0; color: #777; font-size: 0.9rem; }

.afq-related-posts {
    background: #faf7f7;
    padding: 60px 0;
}
.afq-related-posts h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 30px;
}
.afq-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.afq-cta-strip {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    border-radius: 20px;
    padding: 34px 30px;
    text-align: center;
    margin: 40px 0;
}
.afq-cta-strip h4 { color: #fff; margin: 0 0 8px; font-size: 1.2rem; }
.afq-cta-strip p { color: rgba(255,255,255,.85); margin: 0 0 16px; }
.afq-cta-strip a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--primary);
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.afq-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}
.afq-search-form input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid #e2d9d9;
    font-family: inherit;
}
.afq-search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 640px) {
    .afq-page-hero { padding: 130px 0 40px; }
    .afq-author-box { flex-direction: column; text-align: center; }
}

/* بطاقة مدونة عامة (تُستخدم أيضًا خارج .blog-section: صفحات الأرشيف والمقال المفرد) */
.blog-card {
    background: #fff;
    border-radius: var(--afq-radius-lg);
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.45s var(--afq-ease), box-shadow 0.45s var(--afq-ease);
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 40px rgba(106, 23, 31, 0.15);
}
.blog-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 0;
}
.blog-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--afq-glow-soft), transparent);
    color: var(--primary);
    transition: transform 0.4s var(--afq-ease);
}
.blog-card:hover .blog-icon { transform: rotate(-8deg) scale(1.08); }
.blog-category {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--afq-glow-soft);
    color: var(--primary);
}
.blog-card-body {
    padding: 16px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.blog-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #8a8a8a;
}
.blog-title {
    font-size: 1.15rem;
    margin: 0;
    color: var(--dark);
    line-height: 1.5;
    transition: color 0.3s ease;
}
.blog-card:hover .blog-title { color: var(--primary); }
.blog-excerpt {
    color: #6b6b6b;
    font-size: 0.92rem;
    line-height: 1.7;
    flex: 1;
}
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-top: 6px;
    transition: gap 0.3s ease, color 0.3s ease;
}
.blog-card:hover .blog-read-more { gap: 12px; color: var(--secondary); }
