/* ================================================
   HEADER & FOOTER - Custom Styles
   ================================================ */

/* ============================
   TOP BAR
   ============================ */

.academy-topbar {
    background: #0f172a;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
    position: relative;
    z-index: 1000;
}

.academy-topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.academy-topbar__info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.academy-topbar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

a.academy-topbar__item:hover {
    color: #66BB6A;
}

.academy-topbar__item svg {
    flex-shrink: 0;
    color: #66BB6A;
}

.academy-topbar__social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.academy-topbar__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}

.academy-topbar__social a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.academy-topbar__divider {
    width: 1px;
    height: 16px;
    background: #334155;
    margin: 0 4px;
}

/* Header Adjustments */
.site-header {
    border-bottom: 1px solid #f1f5f9;
}

.header-navigation .menu > li > a {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.header-navigation .menu > li > a:hover {
    background: #E8F5E9;
    color: #3E8E50 !important;
}

.header-navigation .menu > li.current-menu-item > a,
.header-navigation .menu > li.current_page_item > a {
    color: #3E8E50 !important;
    font-weight: 700 !important;
}

.header-navigation .menu > li.current-menu-item > a::after,
.header-navigation .menu > li.current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 20%;
    left: 20%;
    height: 2px;
    background: #3E8E50;
    border-radius: 2px;
}

.site-header .header-button .button {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    padding: 10px 24px !important;
    box-shadow: 0 2px 8px rgba(62,142,80,0.2);
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.site-header .header-button .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62,142,80,0.35) !important;
}

/* ============================
   CUSTOM FOOTER
   ============================ */

.academy-footer {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}

/* Footer CTA Bar */
.acf-cta {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7A3E 50%, #3E8E50 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.acf-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.acf-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.acf-cta__text h3 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}

.acf-cta__text p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.acf-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #2E7A3E;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s;
}

.acf-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: #2E7A3E;
}

/* Footer Main */
.acf-main {
    background: #111827;
    padding: 56px 0 40px;
}

.acf-main__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}

/* Footer Column */
.acf-col__title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3E8E50;
    display: inline-block;
}

/* About Column */
.acf-about__desc {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.8;
    margin: 0 0 20px;
}

.acf-about__social {
    display: flex;
    gap: 8px;
}

.acf-about__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.25s;
}

.acf-about__social a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.acf-about__social a.social-fb:hover { background: #1877F2; }
.acf-about__social a.social-ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.acf-about__social a.social-yt:hover { background: #FF0000; }
.acf-about__social a.social-wa:hover { background: #25D366; }
.acf-about__social a.social-tt:hover { background: #010101; }

/* Links Column */
.acf-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acf-links li {
    margin-bottom: 10px;
}

.acf-links a {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acf-links a::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #475569;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.2s;
}

.acf-links a:hover {
    color: #66BB6A;
    padding-right: 6px;
}

.acf-links a:hover::before {
    background: #66BB6A;
}

/* Contact Column */
.acf-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.acf-contact-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #66BB6A;
    flex-shrink: 0;
    margin-top: 2px;
}

.acf-contact-item__text {
    font-size: 13px;
    color: #6b7280;
}

.acf-contact-item__value {
    display: block;
    font-size: 14px;
    color: #d1d5db;
    font-weight: 500;
    margin-top: 2px;
}

.acf-contact-item__value a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.acf-contact-item__value a:hover {
    color: #66BB6A;
}

/* Footer Bottom */
.acf-bottom {
    background: #0a0f1a;
    padding: 18px 0;
}

.acf-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.acf-bottom__copy {
    font-size: 13px;
    color: #6b7280;
}

.acf-bottom__links {
    display: flex;
    gap: 20px;
}

.acf-bottom__links a {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.acf-bottom__links a:hover {
    color: #9ca3af;
}

/* Hide Kadence default footer */
.site-footer {
    display: none !important;
}

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

@media (max-width: 1024px) {
    .acf-main__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    /* Top Bar: stack vertically and simplify */
    .academy-topbar__inner {
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px;
        text-align: center;
    }

    .academy-topbar__info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .academy-topbar__item {
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 4px 8px;
    }

    .academy-topbar__item span.topbar-text {
        display: none;
    }

    .academy-topbar__social {
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .academy-topbar__social a {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .academy-topbar__divider {
        display: none;
    }

    /* Header nav buttons */
    .site-header .header-button .button {
        min-height: 44px;
        padding: 10px 20px !important;
    }

    .header-navigation .menu > li > a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 14px !important;
    }

    /* Footer CTA */
    .acf-cta {
        padding: 28px 0;
    }

    .acf-cta__inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .acf-cta__text h3 {
        font-size: 20px;
    }

    .acf-cta__text p {
        font-size: 14px;
    }

    .acf-cta__btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 14px 24px;
        min-height: 48px;
        font-size: 16px;
    }

    /* Footer Main */
    .acf-main {
        padding: 36px 0 28px;
    }

    .acf-main__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .acf-col__title {
        font-size: 16px;
    }

    .acf-about__desc {
        font-size: 14px;
        text-align: center;
    }

    .acf-about__social {
        justify-content: center;
        gap: 10px;
    }

    .acf-about__social a {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    /* Footer Links: adequate spacing for touch */
    .acf-links li {
        margin-bottom: 4px;
    }

    .acf-links a {
        font-size: 15px;
        min-height: 44px;
        padding: 10px 0;
    }

    /* Contact Column */
    .acf-contact-item {
        margin-bottom: 12px;
    }

    .acf-contact-item__icon {
        width: 40px;
        height: 40px;
    }

    .acf-contact-item__value {
        font-size: 15px;
    }

    .acf-contact-item__value a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Footer Bottom */
    .acf-bottom {
        padding: 16px 0;
    }

    .acf-bottom__inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .acf-bottom__copy {
        font-size: 13px;
    }

    .acf-bottom__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .acf-bottom__links a {
        font-size: 13px;
        min-height: 44px;
        padding: 10px 12px;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .academy-topbar__inner {
        padding: 8px 12px;
    }

    .academy-topbar__info {
        gap: 4px;
    }

    .academy-topbar__item {
        font-size: 13px;
    }

    .acf-cta__text h3 {
        font-size: 18px;
    }

    .acf-main {
        padding: 28px 0 20px;
    }

    .acf-about__social a {
        width: 44px;
        height: 44px;
    }

    .acf-links a {
        font-size: 14px;
    }

    .acf-contact-item__text {
        font-size: 12px;
    }

    .acf-contact-item__value {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .academy-topbar__item {
        font-size: 12px;
        gap: 4px;
    }

    .acf-cta__text h3 {
        font-size: 16px;
    }

    .acf-cta__text p {
        font-size: 13px;
    }

    .acf-cta__btn {
        font-size: 15px;
        padding: 12px 20px;
    }

    .acf-col__title {
        font-size: 15px;
    }
}
