/* ================================================
   HOMEPAGE v2 - الصفحة الرئيسية
   الأكاديمية الفلاحية - Brand Identity
   ================================================ */

body.home .site-main .entry-content,
body.home .content-area,
body.home .entry-content-wrap,
body.page-id-538 .site-main .entry-content,
body.page-id-538 .entry-content-wrap {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.home .entry-title,
body.home .page-title,
body.home .entry-header,
body.home .kadence-breadcrumbs,
body.home .site-main > .kadence-page-title,
body.page-id-538 .entry-title,
body.page-id-538 .page-title,
body.page-id-538 .entry-header,
body.page-id-538 .kadence-breadcrumbs {
    display: none !important;
}

body.home .site,
body.page-id-538 .site {
    overflow-x: hidden !important;
}

.hp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   HERO SECTION
   ============================ */

.hp-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1B4332 50%, #2E7A3E 100%);
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hp-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(62, 142, 80, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102, 187, 106, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(27, 94, 32, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hp-hero__floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hp-float {
    position: absolute;
    font-size: 32px;
    opacity: 0.12;
    animation: floatUp 12s ease-in-out infinite;
}

.hp-float--1 { top: 20%; left: 8%; animation-delay: 0s; font-size: 40px; }
.hp-float--2 { top: 60%; right: 10%; animation-delay: 3s; font-size: 36px; }
.hp-float--3 { bottom: 25%; left: 15%; animation-delay: 6s; font-size: 28px; }
.hp-float--4 { top: 30%; right: 20%; animation-delay: 9s; font-size: 44px; }

@keyframes floatUp {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 0.2; }
}

.hp-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 24px 60px;
    max-width: 800px;
    animation: heroFadeIn 0.8s ease-out;
}

.hp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(62, 142, 80, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(102, 187, 106, 0.3);
    color: #A5D6A7;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #66BB6A;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hp-hero__title {
    font-family: 'Tajawal', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 20px;
}

.hp-hero__title--accent {
    background: linear-gradient(90deg, #66BB6A, #A5D6A7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-hero__subtitle {
    font-size: 18px;
    color: #A5D6A7;
    line-height: 1.8;
    margin: 0 0 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hp-hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hp-hero__actions .hp-btn--outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.hp-hero__actions .hp-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.hp-hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hp-hero__trust-avatars {
    display: flex;
}

.hp-trust-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    margin-right: -8px;
}

.hp-hero__trust-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
    margin-right: 8px;
}

/* ============================
   BUTTONS
   ============================ */

.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.hp-btn--primary {
    background: #3E8E50;
    color: #fff;
    border-color: #3E8E50;
}

.hp-btn--primary:hover {
    background: #2E7A3E;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(62, 142, 80, 0.35);
    color: #fff;
}

.hp-btn--outline {
    background: transparent;
    color: #3E8E50;
    border-color: #3E8E50;
}

.hp-btn--outline:hover {
    background: #3E8E50;
    color: #fff;
    transform: translateY(-2px);
}

.hp-btn--white {
    background: #fff;
    color: #1B5E20;
    border-color: #fff;
}

.hp-btn--white:hover {
    background: #E8F5E9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
    color: #1B5E20;
}

.hp-btn--outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hp-btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.hp-btn--lg {
    padding: 14px 32px;
    font-size: 16px;
}

.hp-btn--sm {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 8px;
    background: #3E8E50;
    color: #fff;
}

.hp-btn--sm:hover {
    background: #2E7A3E;
    color: #fff;
}

/* ============================
   STATS BAR
   ============================ */

.hp-stats {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.hp-stats__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px 0;
}

.hp-stats__item {
    text-align: center;
    padding: 0 40px;
}

.hp-stats__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    background: #E8F5E9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3E8E50;
}

.hp-stats__number {
    display: block;
    font-family: 'Tajawal', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1B5E20;
}

.hp-stats__label {
    font-size: 14px;
    color: #6b7280;
    margin-top: 2px;
}

.hp-stats__divider {
    width: 1px;
    height: 50px;
    background: #e5e7eb;
}

/* ============================
   SECTION HEADERS
   ============================ */

.hp-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.hp-section-tag {
    display: inline-block;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #3E8E50;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #E8F5E9;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hp-section-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.3;
}

.hp-section-desc {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.hp-section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ============================
   ABOUT SECTION (NEW)
   ============================ */

.hp-about {
    padding: 80px 0;
    background: #fff;
}

.hp-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hp-about__visual {
    position: relative;
    height: 400px;
}

.hp-about__circle {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hp-about__card {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    z-index: 1;
    border: 1px solid #f1f5f9;
}

.hp-about__card-icon {
    font-size: 28px;
}

.hp-about__card--main {
    top: 30%;
    right: 10%;
    animation: cardFloat 4s ease-in-out infinite;
}

.hp-about__card--secondary {
    bottom: 15%;
    right: 5%;
    animation: cardFloat 4s ease-in-out infinite 1.5s;
}

.hp-about__card--tertiary {
    top: 10%;
    left: 10%;
    animation: cardFloat 4s ease-in-out infinite 3s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hp-about__text {
    direction: rtl;
}

.hp-about__text .hp-section-title {
    text-align: right;
}

.hp-about__text p {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    margin: 0 0 16px;
}

.hp-about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.hp-about__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    padding: 8px 0;
}

/* ============================
   TRAINING DOMAINS
   ============================ */

.hp-domains {
    padding: 80px 0;
    background: #f8faf9;
}

.hp-domains__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hp-domain-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hp-domain-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3E8E50, #66BB6A);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hp-domain-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(62, 142, 80, 0.1);
    border-color: transparent;
}

.hp-domain-card:hover::after {
    transform: scaleX(1);
}

.hp-domain-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: #E8F5E9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3E8E50;
    transition: transform 0.3s ease;
}

.hp-domain-card:hover .hp-domain-card__icon {
    transform: scale(1.1);
}

.hp-domain-card__icon--orange { background: #FFF3E0; color: #E65100; }
.hp-domain-card__icon--green { background: #E8F5E9; color: #2E7A3E; }
.hp-domain-card__icon--gold { background: #FFF8E1; color: #F57F17; }

.hp-domain-card h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.hp-domain-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
}

.hp-domain-card__link {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3E8E50;
    transition: gap 0.2s;
}

/* ============================
   FEATURED COURSES
   ============================ */

.hp-courses {
    padding: 80px 0;
    background: #fff;
}

.hp-courses__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.hp-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.hp-course-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.hp-course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-course-card:hover .hp-course-card__image img {
    transform: scale(1.05);
}

.hp-course-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.hp-course-card__cat {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(27, 94, 32, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Tajawal', sans-serif;
}

.hp-course-card__body {
    padding: 20px;
}

.hp-course-card__body h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.4;
}

.hp-course-card__meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.hp-course-card__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #64748b;
}

.hp-course-card__meta svg {
    color: #94a3b8;
}

.hp-course-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.hp-course-card__price {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #3E8E50;
}

.hp-course-card__price--free {
    color: #2E7A3E;
    background: #E8F5E9;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 14px;
}

.hp-course-card__price--contact {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

/* ============================
   FEATURED PRODUCTS (NEW)
   ============================ */

.hp-products {
    padding: 80px 0;
    background: #f8faf9;
}

.hp-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hp-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.hp-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.hp-product-card__link {
    text-decoration: none;
    display: block;
}

.hp-product-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8faf9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.hp-product-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.hp-product-card:hover .hp-product-card__image img {
    transform: scale(1.05);
}

.hp-product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #E65100;
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
}

.hp-product-card__body {
    padding: 16px 20px 20px;
    text-align: center;
}

.hp-product-card__body h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.4;
}

.hp-product-card__price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Tajawal', sans-serif;
}

.hp-product-card__price-old {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}

.hp-product-card__price-new {
    font-size: 18px;
    font-weight: 700;
    color: #3E8E50;
}

/* ============================
   BENEFITS
   ============================ */

.hp-benefits {
    padding: 80px 0;
    background: #fff;
}

.hp-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hp-benefit-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    background: #fff;
}

.hp-benefit-card:hover {
    border-color: #C8E6C9;
    box-shadow: 0 8px 24px rgba(62, 142, 80, 0.08);
    transform: translateY(-4px);
}

.hp-benefit-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #E8F5E9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3E8E50;
}

.hp-benefit-card__icon--green { background: #E8F5E9; color: #2E7A3E; }
.hp-benefit-card__icon--orange { background: #FFF3E0; color: #E65100; }
.hp-benefit-card__icon--dark { background: #1B5E20; color: #fff; }

.hp-benefit-card h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.hp-benefit-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ============================
   TESTIMONIALS
   ============================ */

.hp-testimonials {
    padding: 80px 0;
    background: #f8faf9;
}

.hp-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.hp-testimonial-card::before {
    content: '\201D';
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 48px;
    color: #E8F5E9;
    font-family: Georgia, serif;
    line-height: 1;
}

.hp-testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.hp-testimonial-card__stars {
    color: #f59e0b;
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hp-testimonial-card p {
    font-size: 15px;
    color: #334155;
    line-height: 1.8;
    margin: 0 0 20px;
    font-style: italic;
}

.hp-testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-testimonial-card__avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3E8E50, #1B5E20);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.hp-testimonial-card__author strong {
    display: block;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    color: #0f172a;
}

.hp-testimonial-card__author span {
    font-size: 13px;
    color: #94a3b8;
}

/* ============================
   HOW IT WORKS (STEPS)
   ============================ */

.hp-steps {
    padding: 80px 0;
    background: #fff;
}

.hp-steps__grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.hp-step {
    text-align: center;
    padding: 0 32px;
    max-width: 280px;
}

.hp-step__number {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3E8E50, #2E7A3E);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Tajawal', sans-serif;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(62, 142, 80, 0.25);
}

.hp-step h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.hp-step p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.hp-step__connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #C8E6C9, #3E8E50, #C8E6C9);
    margin-top: 28px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ============================
   BLOG SECTION (NEW)
   ============================ */

.hp-blog {
    padding: 80px 0;
    background: #f8faf9;
}

.hp-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.hp-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.hp-blog-card__link {
    text-decoration: none;
    display: block;
}

.hp-blog-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.hp-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-blog-card:hover .hp-blog-card__image img {
    transform: scale(1.05);
}

.hp-blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-blog-card__cat {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(27, 94, 32, 0.85);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Tajawal', sans-serif;
}

.hp-blog-card__body {
    padding: 20px;
}

.hp-blog-card__date {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 8px;
}

.hp-blog-card__body h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.5;
}

.hp-blog-card__body p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 12px;
}

.hp-blog-card__read {
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3E8E50;
    transition: color 0.2s;
}

.hp-blog-card:hover .hp-blog-card__read {
    color: #2E7A3E;
}

/* ============================
   FAQ SECTION (NEW)
   ============================ */

.hp-faq {
    padding: 80px 0;
    background: #fff;
}

.hp-faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.hp-faq__item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hp-faq__item:hover {
    border-color: #C8E6C9;
}

.hp-faq__item.active {
    border-color: #3E8E50;
    box-shadow: 0 4px 16px rgba(62, 142, 80, 0.08);
}

.hp-faq__question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    direction: rtl;
    transition: color 0.2s;
}

.hp-faq__question:hover {
    color: #3E8E50;
}

.hp-faq__arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.hp-faq__item.active .hp-faq__arrow {
    transform: rotate(180deg);
    color: #3E8E50;
}

.hp-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.hp-faq__item.active .hp-faq__answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.hp-faq__answer p {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

/* ============================
   FINAL CTA
   ============================ */

.hp-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7A3E 50%, #3E8E50 100%);
    position: relative;
    overflow: hidden;
}

.hp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hp-cta__content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hp-cta__icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.hp-cta__content h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.hp-cta__content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 32px;
}

.hp-cta__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================
   QUIZ CTA
   ============================ */

.hp-quiz-cta {
    padding: 40px 0;
}

.hp-quiz-cta__card {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 2px solid #A5D6A7;
    border-radius: 20px;
    text-align: center;
    padding: 48px 32px;
}

.hp-quiz-cta__icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.hp-quiz-cta__card h2 {
    font-family: 'Tajawal', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1B5E20;
    margin: 0 0 8px;
}

.hp-quiz-cta__card p {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    color: #2E7A3E;
    margin: 0 0 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hp-quiz-cta__card .hp-btn {
    font-size: 18px;
    padding: 14px 36px;
}

/* ============================
   ANIMATIONS
   ============================ */

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1024px) {
    .hp-about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hp-about__visual {
        height: 300px;
        order: -1;
    }

    .hp-about__text .hp-section-title {
        text-align: center;
    }

    .hp-about__text {
        text-align: center;
    }

    .hp-about__features {
        justify-items: center;
    }

    .hp-about__text .hp-btn {
        margin: 0 auto;
    }

    .hp-domains__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-courses__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================
   MOBILE: Disable complex animations for performance
   ============================ */

@media (max-width: 768px) {
    .hp-hero::before {
        display: none;
    }

    .hp-float,
    .hp-hero__floating {
        display: none !important;
    }

    .hp-about__card {
        animation: none !important;
    }

    .hp-domain-card:hover,
    .hp-course-card:hover,
    .hp-product-card:hover,
    .hp-blog-card:hover,
    .hp-testimonial-card:hover,
    .hp-benefit-card:hover {
        transform: none;
    }

    .hp-course-card:hover .hp-course-card__image img,
    .hp-product-card:hover .hp-product-card__image img,
    .hp-blog-card:hover .hp-blog-card__image img {
        transform: none;
    }

    .hp-domain-card:hover .hp-domain-card__icon {
        transform: none;
    }

    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Hero Section: compact but impactful */
    .hp-hero {
        min-height: auto;
    }

    .hp-hero__content {
        padding: 48px 16px 36px;
    }

    .hp-hero__badge {
        font-size: 13px;
        padding: 8px 16px;
        margin-bottom: 20px;
    }

    .hp-hero__title {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .hp-hero__subtitle {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    .hp-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hp-hero__actions .hp-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        font-size: 16px;
        padding: 14px 24px;
    }

    .hp-hero__trust {
        flex-direction: column;
        gap: 8px;
    }

    .hp-hero__trust-text {
        margin-right: 0;
        font-size: 13px;
    }

    /* Stats Bar: 2x2 grid */
    .hp-stats__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 20px 0;
    }

    .hp-stats__item {
        padding: 14px 10px;
        background: #f9fafb;
        border-radius: 10px;
    }

    .hp-stats__divider {
        display: none;
    }

    .hp-stats__number {
        font-size: 22px;
    }

    .hp-stats__label {
        font-size: 13px;
    }

    .hp-stats__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    /* Section headers */
    .hp-section-header {
        margin-bottom: 32px;
    }

    .hp-section-title {
        font-size: 24px;
    }

    .hp-section-desc {
        font-size: 14px;
    }

    .hp-section-tag {
        font-size: 12px;
        padding: 5px 14px;
    }

    /* Sections: reduce padding */
    .hp-about,
    .hp-domains,
    .hp-courses,
    .hp-products,
    .hp-benefits,
    .hp-testimonials,
    .hp-steps,
    .hp-blog,
    .hp-faq {
        padding: 48px 0;
    }

    .hp-cta {
        padding: 48px 0;
    }

    /* About Section */
    .hp-about__visual {
        height: 220px;
    }

    .hp-about__card {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 12px;
    }

    .hp-about__circle {
        width: 180px;
        height: 180px;
    }

    .hp-about__features {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hp-about__feature {
        font-size: 14px;
        padding: 10px 0;
        min-height: 44px;
    }

    .hp-about__text p {
        font-size: 15px;
    }

    /* Domains: single column */
    .hp-domains__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hp-domain-card {
        padding: 24px 20px;
        display: flex;
        flex-direction: row;
        text-align: right;
        gap: 16px;
        align-items: center;
    }

    .hp-domain-card__icon {
        width: 56px;
        height: 56px;
        margin: 0;
        flex-shrink: 0;
        border-radius: 12px;
    }

    .hp-domain-card h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .hp-domain-card p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .hp-domain-card__link {
        font-size: 13px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Courses: single column */
    .hp-courses__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hp-course-card__image {
        height: 180px;
    }

    .hp-course-card__body {
        padding: 16px;
    }

    .hp-course-card__body h3 {
        font-size: 15px;
    }

    .hp-course-card__footer {
        padding-top: 12px;
    }

    .hp-course-card__price {
        font-size: 16px;
    }

    .hp-btn--sm {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
    }

    /* Products: 2 columns on tablet */
    .hp-products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hp-product-card__image {
        height: 160px;
        padding: 10px;
    }

    .hp-product-card__body {
        padding: 12px 14px 16px;
    }

    .hp-product-card__body h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .hp-product-card__price-new {
        font-size: 16px;
    }

    .hp-product-card__price-old {
        font-size: 12px;
    }

    /* Benefits: single column */
    .hp-benefits__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hp-benefit-card {
        padding: 24px 20px;
        display: flex;
        flex-direction: row;
        text-align: right;
        gap: 16px;
        align-items: center;
    }

    .hp-benefit-card__icon {
        width: 52px;
        height: 52px;
        margin: 0;
        flex-shrink: 0;
        border-radius: 12px;
    }

    .hp-benefit-card h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .hp-benefit-card p {
        font-size: 13px;
    }

    /* Testimonials: single column */
    .hp-testimonials__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hp-testimonial-card {
        padding: 20px;
    }

    .hp-testimonial-card p {
        font-size: 14px;
    }

    .hp-testimonial-card__author strong {
        font-size: 14px;
    }

    /* Steps */
    .hp-steps__grid {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .hp-step {
        padding: 16px;
        max-width: 100%;
    }

    .hp-step__number {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 14px;
    }

    .hp-step h3 {
        font-size: 16px;
    }

    .hp-step p {
        font-size: 13px;
    }

    .hp-step__connector {
        width: 2px;
        height: 32px;
        background: linear-gradient(180deg, #C8E6C9, #3E8E50, #C8E6C9);
        margin: 0;
    }

    /* Blog: single column */
    .hp-blog__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hp-blog-card__image {
        height: 180px;
    }

    .hp-blog-card__body {
        padding: 16px;
    }

    .hp-blog-card__body h3 {
        font-size: 15px;
    }

    .hp-blog-card__body p {
        font-size: 13px;
    }

    .hp-blog-card__read {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* FAQ: readable on mobile */
    .hp-faq__question {
        font-size: 15px;
        padding: 16px;
        min-height: 48px;
        gap: 12px;
    }

    .hp-faq__answer {
        padding: 0 16px;
    }

    .hp-faq__item.active .hp-faq__answer {
        padding: 0 16px 16px;
    }

    .hp-faq__answer p {
        font-size: 14px;
        line-height: 1.8;
    }

    .hp-faq__item {
        margin-bottom: 10px;
    }

    /* CTA: full-width buttons */
    .hp-cta__content h2 {
        font-size: 24px;
    }

    .hp-cta__content p {
        font-size: 15px;
    }

    .hp-cta__icon {
        font-size: 36px;
    }

    .hp-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hp-cta__actions .hp-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        font-size: 16px;
    }

    /* Quiz CTA mobile */
    .hp-quiz-cta__card {
        padding: 32px 20px;
    }

    .hp-quiz-cta__card h2 {
        font-size: 22px;
    }

    .hp-quiz-cta__card p {
        font-size: 14px;
    }

    .hp-quiz-cta__card .hp-btn {
        font-size: 16px;
        padding: 14px 24px;
        width: 100%;
        min-height: 48px;
    }

    /* General buttons on mobile */
    .hp-section-cta .hp-btn {
        min-height: 48px;
        font-size: 16px;
        padding: 14px 28px;
    }
}

/* ============================
   RESPONSIVE - Small phones (480px)
   ============================ */

@media (max-width: 480px) {
    .hp-hero__content {
        padding: 40px 12px 32px;
    }

    .hp-hero__title {
        font-size: 24px;
    }

    .hp-hero__subtitle {
        font-size: 14px;
    }

    .hp-hero__badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    .hp-stats__grid {
        gap: 8px;
        padding: 16px 0;
    }

    .hp-stats__number {
        font-size: 20px;
    }

    .hp-stats__label {
        font-size: 12px;
    }

    .hp-section-title {
        font-size: 20px;
    }

    .hp-section-desc {
        font-size: 13px;
    }

    .hp-products__grid {
        grid-template-columns: 1fr;
    }

    .hp-product-card__image {
        height: 200px;
    }

    .hp-product-card__body h3 {
        font-size: 15px;
    }

    .hp-about__visual {
        height: 180px;
    }

    .hp-about__card--secondary {
        bottom: 5%;
    }

    .hp-about__card--tertiary {
        top: 5%;
        left: 5%;
    }

    .hp-about__circle {
        width: 150px;
        height: 150px;
    }

    .hp-domain-card {
        padding: 18px 14px;
        gap: 12px;
    }

    .hp-domain-card__icon {
        width: 48px;
        height: 48px;
    }

    .hp-course-card__image {
        height: 160px;
    }

    .hp-benefit-card {
        padding: 18px 14px;
        gap: 12px;
    }

    .hp-benefit-card__icon {
        width: 48px;
        height: 48px;
    }

    .hp-blog-card__image {
        height: 160px;
    }

    .hp-faq__question {
        font-size: 14px;
        padding: 14px 12px;
    }

    .hp-faq__answer p {
        font-size: 13px;
    }

    .hp-cta__content h2 {
        font-size: 20px;
    }

    .hp-cta__content p {
        font-size: 14px;
    }

    .hp-testimonial-card {
        padding: 16px;
    }

    .hp-testimonial-card p {
        font-size: 13px;
    }

    .hp-step__number {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .hp-about,
    .hp-domains,
    .hp-courses,
    .hp-products,
    .hp-benefits,
    .hp-testimonials,
    .hp-steps,
    .hp-blog,
    .hp-faq,
    .hp-cta {
        padding: 36px 0;
    }
}

/* ============================
   RESPONSIVE - Very small phones (360px)
   ============================ */

@media (max-width: 360px) {
    .hp-hero__title {
        font-size: 22px;
    }

    .hp-hero__subtitle {
        font-size: 13px;
    }

    .hp-hero__content {
        padding: 36px 10px 28px;
    }

    .hp-stats__number {
        font-size: 18px;
    }

    .hp-stats__icon {
        width: 36px;
        height: 36px;
    }

    .hp-section-title {
        font-size: 18px;
    }

    .hp-section-desc {
        font-size: 12px;
    }

    .hp-course-card__body h3 {
        font-size: 14px;
    }

    .hp-course-card__price {
        font-size: 15px;
    }

    .hp-cta__content h2 {
        font-size: 18px;
    }

    .hp-cta__content p {
        font-size: 13px;
    }

    .hp-faq__question {
        font-size: 13px;
        padding: 12px 10px;
    }

    .hp-faq__answer p {
        font-size: 12px;
    }

    .hp-hero__actions .hp-btn {
        font-size: 15px;
        padding: 12px 20px;
    }

    .hp-cta__actions .hp-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* ============================
   REDUCED MOTION for mobile performance
   ============================ */

@media (prefers-reduced-motion: reduce) {
    .hp-float,
    .badge-dot,
    .hp-about__card {
        animation: none !important;
    }

    .hp-hero__content {
        animation: none !important;
    }

    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hp-course-card__image img,
    .hp-product-card__image img,
    .hp-blog-card__image img {
        transition: none !important;
    }
}
