/* ====== Shared (header, footer, home) ====== */
:root {
    --mint-bg: #F1F8F5;
    --card-border: #E7EEE4;
    --text-dark: #1F2A1F;
    --text-muted: #6F7A6F;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--green-color);
    transition: background-color .2s, color .2s;
    white-space: nowrap;
}

.btn-pill-lg {
    padding: 12px 32px;
    font-size: 16px;
}

.btn-pill-solid {
    background-color: var(--green-color);
    color: #fff;
}

.btn-pill-solid:hover {
    background-color: transparent;
    color: var(--green-color);
}

.btn-pill-outline {
    background-color: transparent;
    color: var(--green-color);
}

.btn-pill-outline:hover {
    background-color: var(--green-color);
    color: #fff;
}

.btn-pill-white {
    background-color: #fff;
    border-color: #fff;
    color: var(--green-color);
}

.btn-pill-white:hover {
    background-color: transparent;
    color: #fff;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: var(--green-light-color);
    color: var(--green-color);
    font-size: 12px;
    font-weight: 600;
}

/* ====== Header ====== */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--card-border);
}

.site-header .navbar-brand {
    margin: 0;
    padding: 0;
}

/* ملف اللوقو فيه فراغ شفاف فوق وتحت، فالهوامش السالبة بتمنع الهيدر من الطول */
.site-header .navbar-brand img {
    height: 96px;
    margin: -18px 0;
}

.site-header .navbar-nav {
    gap: 8px;
}

.site-header .navbar-nav .nav-item {
    margin: 0;
}

.site-header .navbar-nav .nav-link {
    font-size: 15px;
    color: var(--text-dark);
    padding: 6px 12px !important;
}

.site-header .navbar-nav .nav-link.active,
.site-header .navbar-nav .nav-link:hover {
    color: var(--green-color);
}

.site-header .navbar-nav .nav-link.active {
    border-bottom: 2px solid var(--green-color);
}

.site-header .navbar-brand img.brand-logo {
    height: 41px;
    margin: 8px 0;
}

/* الشاشات المتوسطة (لابتوب صغير): نقرّب الروابط حتى ما تلزق بالأزرار */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .navbar-nav {
        gap: 2px;
    }

    .site-header .navbar-nav .nav-link {
        font-size: 14px;
        padding: 6px 8px !important;
    }

    .site-header .header-actions {
        gap: 12px !important;
    }
}

/* بقائمة الموبايل الخط تحت الصفحة الحالية بعرض الكلمة بس */
@media (max-width: 991.98px) {
    .site-header .navbar-nav .nav-link {
        display: inline-block;
    }
}

/* هيدر المستخدم المسجل حسب التصميم: اللوقو عالشمال وأزرار الحساب عاليمين، والرئيسية جنب اللوقو */
@media (min-width: 992px) {

    .site-header.is-user .navbar>.container,
    .site-header.is-user .navbar-collapse,
    .site-header.is-user .navbar-nav,
    .site-header.is-user .header-actions {
        flex-direction: row-reverse;
    }
}

.header-bell {
    position: relative;
    color: var(--text-dark);
    font-size: 22px;
    line-height: 1;
}

.header-bell:hover {
    color: var(--green-color);
}

.header-bell-dot {
    position: absolute;
    top: 0;
    right: 1px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: #F04438;
}

.header-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--green-mid2);
    background-color: var(--mint-bg);
    color: var(--green-color);
    font-size: 20px;
    font-weight: 700;
}

.header-avatar-sm {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.user-menu {
    min-width: 250px;
    padding: 10px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.user-menu-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    background-color: #F6F8F6;
}

.user-menu-head strong {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
}

.user-menu-head span[dir] {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
}

.user-menu-item i {
    color: var(--text-muted);
    font-size: 16px;
}

.user-menu-item:hover,
.user-menu-item.active {
    background-color: var(--mint-bg);
    color: var(--green-color);
}

.user-menu-item.active {
    font-weight: 700;
    border: 1px solid #CDE5D2;
}

.user-menu-item.active i {
    color: var(--green-color);
}

.user-menu hr {
    margin: 8px 0;
    border-color: var(--card-border);
    opacity: 1;
}

.user-menu-logout,
.user-menu-logout i,
.user-menu-logout:hover {
    color: #E5484D;
}

.user-menu-logout:hover {
    background-color: #FDECEC;
}

/* ====== Footer ====== */
.site-footer {
    background-color: #1D4E1E;
    color: #fff;
    margin-top: 48px;
    padding: 72px 0 24px;
}

.site-footer.has-cta {
    margin-top: 140px;
    padding-top: 0;
}

.site-footer.flush {
    margin-top: 0;
}

.site-footer .footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background-color: #F6F8F6;
    border-radius: 24px;
    padding: 28px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transform: translateY(-50%);
    margin-bottom: -20px;
}

.site-footer .footer-cta h3 {
    color: var(--h2-color);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.site-footer .footer-cta p {
    color: var(--text-muted);
    margin: 0;
}

.site-footer .footer-brand {
    margin-bottom: 16px;
}

/* ملف اللوقو فيه فراغ شفاف كبير فوق وتحت */
.site-footer .footer-logo {
    height: 140px;
    margin: -44px 0 -28px;
}

.site-footer .footer-tagline {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.site-footer .footer-about {
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    line-height: 1.8;
    max-width: 320px;
}

.site-footer h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.site-footer h5::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    margin-top: 8px;
    border-radius: 2px;
    background-color: #34D399CC;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
}

.site-footer a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .footer-cta .btn-pill-outline {
    color: var(--green-color);
    background-color: #fff;
    border: 0;
    padding: 12px 34px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(42, 111, 43, .15);
}

.site-footer .footer-cta .btn-pill-outline:hover {
    color: #fff;
    background-color: var(--green-color);
}

@media (min-width: 768px) {
    .site-footer .footer-cta .btn-pill-outline {
        margin-left: 40px;
    }
}

.site-footer .footer-contact i {
    margin-left: 6px;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--green-color);
}

.site-footer .footer-heart {
    color: #34D399;
    font-size: 12px;
    margin-right: 4px;
}

.site-footer .footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}

/* ====== Home ====== */
.home p {
    color: var(--text-muted);
}

.home-hero {
    background-color: var(--mint-bg);
    padding: 64px 0 80px;
}

.hero-badge {
    display: inline-block;
    color: var(--green-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.5;
    font-weight: 800;
    color: var(--h2-color);
}

.hero-title span {
    color: var(--green-color);
}

@media (min-width: 992px) {
    .hero-title span {
        display: block;
    }
}

.home .hero-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-dark);
    max-width: 460px;
    margin-bottom: 32px;
}

@media (min-width: 992px) {
    .hero-media-col {
        width: 46%;
    }
}

.hero-play {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background-color: #fff;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    transition: transform .2s;
}

.hero-play i {
    color: var(--green-color);
    font-size: 20px;
}

.hero-play:hover {
    transform: scale(1.05);
}

.hero-media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    /* الإطار الأبيض برا الصورة، عشان حافتها تكون على نفس خط اللوقو */
    box-shadow: 0 0 0 6px #fff, 0 20px 40px rgba(42, 111, 43, .15);
}

.hero-media img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.home-section {
    padding: 72px 0 0;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.eyebrow {
    display: block;
    color: var(--green-mid);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.home h2.section-title {
    font-size: 36px;
    line-height: 1.4;
    margin: 0;
}

.home h2.section-title.title-green {
    color: var(--green-color) !important;
}

/* Specialties */
.specialty-card {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 18px 20px;
    background-color: #fff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.specialty-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
}

.tone-blue { background: #E8F0FE; color: #3B6FD8; }
.tone-green { background: #EAF6E1; color: #5DA824; }
.tone-red { background: #FDECEC; color: #E05A5A; }
.tone-purple { background: #F1EAFB; color: #8B5CD6; }
.tone-orange { background: #FDF0E4; color: #E0832F; }
.tone-teal { background: #E4F5F3; color: #2A9D8F; }
.tone-indigo { background: #ECEBFB; color: #5B5BD6; }
.tone-yellow { background: #FDF6DE; color: #D9A21B; }

/* Steps */
.steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 48px;
}

.step-card {
    flex: 0 1 300px;
    min-height: 260px;
    background-color: var(--mint-bg);
    border-radius: 20px;
    padding: 40px 28px;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--green-color);
    font-size: 22px;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.step-card p {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.step-arrow {
    align-self: center;
    color: var(--green-color);
    font-size: 22px;
}

/* Experts */
.expert-card {
    display: block;
    height: 100%;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    transition: box-shadow .2s, transform .2s;
}

.expert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(42, 111, 43, .12);
}

.expert-photo {
    background-color: var(--mint-bg);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.expert-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.expert-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.expert-card p {
    font-size: 13px;
    margin-bottom: 16px;
}

.expert-card .tag {
    background-color: var(--mint-bg);
    margin-bottom: 4px;
}

/* Testimonials */
.testimonials-swiper {
    padding: 8px 0 !important;
}

.testimonials-swiper .swiper-slide {
    width: min(720px, 86vw);
    opacity: .45;
    transition: opacity .3s;
}

.testimonials-swiper .swiper-slide-active {
    opacity: 1;
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.testimonial-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--green-mid2);
    background-color: var(--mint-bg);
    color: var(--green-color);
    font-size: 28px;
    font-weight: 700;
}

.testimonial-head h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.testimonial-head span {
    font-size: 13px;
    color: var(--text-muted);
}

.testimonial-head .testimonial-avatar {
    font-size: 30px;
    color: var(--green-color);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-quote {
    align-self: flex-start;
    margin-right: auto;
    width: 64px;
    height: 41px;
    fill: var(--green-mid2);
}

.testimonial-card p {
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 40px;
}

.testimonial-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}

.testimonial-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.testimonial-linkedin i {
    color: #0A66C2;
    font-size: 20px;
}

.testimonial-linkedin:hover {
    color: #0A66C2;
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.testimonials-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background-color: var(--green-light-color);
    color: var(--green-color);
}

.testimonials-nav .testimonials-next {
    background-color: #D9E6DA;
}

.testimonials-pagination {
    display: flex;
    gap: 6px;
    width: auto !important;
}

.testimonials-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background-color: var(--green-mid2);
    opacity: 1;
    transition: width .2s;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 4px;
    background-color: var(--green-color);
}

/* Join banner */
.join-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background-color: var(--green-color);
    border-radius: 28px;
    padding: 56px 64px;
    color: #fff;
}

.join-eyebrow {
    display: block;
    font-size: 15px;
    margin-bottom: 10px;
}

.home .join-banner h2 {
    color: #fff !important;
    text-align: start;
    font-size: 32px;
    margin-bottom: 8px;
}

.join-highlight {
    display: inline-block;
    font-size: 40px;
    font-weight: 800;
}

.join-banner .btn-pill {
    min-width: 210px;
    padding: 10px 28px;
    font-weight: 700;
}

/* FAQ */
.faq-item {
    background-color: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(42, 111, 43, .08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    border: 0;
    background: transparent;
    text-align: start;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.faq-question i {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #D9E6DA;
    color: var(--green-color);
    font-size: 13px;
    -webkit-text-stroke: 1px var(--green-color);
    transition: transform .2s;
}

.faq-question:not(.collapsed) i {
    transform: rotate(45deg);
}

.home .faq-answer {
    padding: 0 20px 18px;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.faq-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding: 20px 28px;
    background-color: #DCEBDC;
    border: 1px solid var(--card-border);
    border-radius: 16px;
}

@media (min-width: 768px) {
    .faq-contact .btn-pill {
        margin-left: 40px;
    }
}

.faq-contact strong {
    display: block;
    color: var(--text-dark);
}

.faq-contact span:not(.faq-contact-icon) {
    font-size: 14px;
    color: var(--text-muted);
}

.faq-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--green-color);
    font-size: 18px;
}

/* Articles */
.article-card {
    display: block;
    height: 100%;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(42, 111, 43, .12);
}

.article-cover {
    position: relative;
}

.article-cover img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background-color: var(--mint-bg);
}

.article-cover .tag {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background-color: var(--green-color);
    color: #fff;
}

.article-body {
    padding: 20px;
}

.article-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.6;
}

.article-body p {
    font-size: 14px;
    line-height: 1.8;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 991px) {
    .site-header.is-user .header-actions {
        padding-bottom: 12px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-media img {
        height: 260px;
    }

    .steps {
        flex-direction: column;
        gap: 16px;
    }

    .step-card {
        flex: none;
        min-height: 0;
    }

    .step-arrow {
        transform: rotate(-90deg);
    }

    .join-banner {
        padding: 36px 28px;
    }

    .expert-card {
        padding: 10px;
    }

    .article-cover img {
        height: 160px;
    }

    .article-meta {
        flex-wrap: wrap;
    }

    .site-footer .footer-cta {
        padding: 24px;
    }
}

@media (max-width: 575px) {
    .home h2.section-title {
        font-size: 26px;
    }

    .specialty-card {
        flex-direction: column;
        text-align: center;
        font-size: 13px;
    }

    .testimonial-card {
        padding: 22px;
    }

    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }

    .testimonial-quote {
        width: 44px;
        height: 28px;
    }

    .join-highlight {
        font-size: 30px;
    }
}

/* رسالة الطوارئ */
.emergency-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    border: 1px solid #FDA29B;
    border-radius: 12px;
    background-color: #FEF3F2;
    color: #7A271A;
    font-size: 14px;
    line-height: 1.8;
}

.emergency-note i {
    color: #D92D20;
    font-size: 18px;
    line-height: 1.5;
}

.emergency-note p {
    margin: 0;
}

.emergency-note.on-dark {
    margin: 32px 0 0;
    border-color: rgba(255, 255, 255, .25);
    background-color: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .9);
}

.emergency-note.on-dark i {
    color: #FDA29B;
}
