/*
Theme Name: ABM Academy
Theme URI: https://anasbinmalikacademy.online/
Author: Anas Bin Malik Academy
Description: Custom starter theme for Anas Bin Malik Academy.
Version: 1.0.0
Text Domain: abm-academy
*/

:root {
    --abm-blue: #003f78;
    --abm-blue-light: #075c9e;
    --abm-blue-dark: #002f5d;
    --abm-gold: #f4b942;
    --abm-gold-light: #ffd978;
    --abm-text: #172033;
    --abm-muted: #667085;
    --abm-bg: #f7f9fc;
    --abm-white: #ffffff;
    --abm-border: #e5eaf1;
    --abm-radius: 18px;
    --abm-shadow: 0 12px 35px rgba(0, 63, 120, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--abm-text);
    background: var(--abm-white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.abm-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.abm-topbar {
    background: var(--abm-blue-dark);
    color: var(--abm-white);
    font-size: 13px;
}

.abm-topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.abm-topbar strong {
    color: var(--abm-gold-light);
}

.abm-site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--abm-border);
    box-shadow: 0 6px 20px rgba(0, 47, 93, 0.05);
    backdrop-filter: blur(12px);
}

.abm-header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.abm-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.abm-brand-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--abm-white);
    background:
        linear-gradient(
            135deg,
            var(--abm-blue),
            var(--abm-blue-light)
        );
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(0, 63, 120, 0.20);
}

.abm-brand-text strong {
    display: block;
    color: var(--abm-blue);
    font-size: 17px;
    line-height: 1.2;
}

.abm-brand-text span {
    display: block;
    margin-top: 4px;
    color: var(--abm-muted);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 58px;
    width: auto;
}

.abm-menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--abm-border);
    border-radius: 12px;
    background: var(--abm-white);
    color: var(--abm-blue);
    font-size: 24px;
    cursor: pointer;
}

.abm-primary-menu,
.abm-primary-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.abm-primary-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.abm-primary-menu > li {
    position: relative;
}

.abm-primary-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 11px;
    color: #263348;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.abm-primary-menu > li > a:hover,
.abm-primary-menu > li.current-menu-item > a,
.abm-primary-menu > li.current-menu-ancestor > a {
    color: var(--abm-blue);
    background: #edf5fc;
}

.abm-primary-menu > li:last-child > a {
    margin-left: 7px;
    padding-inline: 20px;
    color: var(--abm-blue-dark);
    background: var(--abm-gold);
    box-shadow: 0 7px 18px rgba(244, 185, 66, 0.25);
}

.abm-primary-menu > li:last-child > a:hover {
    background: var(--abm-gold-light);
}

.abm-primary-menu .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 230px;
    padding: 10px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    border: 1px solid var(--abm-border);
    border-radius: 15px;
    background: var(--abm-white);
    box-shadow: var(--abm-shadow);
    transition: 0.2s ease;
}

.abm-primary-menu li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.abm-primary-menu .sub-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--abm-text);
    font-size: 14px;
    font-weight: 600;
}

.abm-primary-menu .sub-menu a:hover {
    color: var(--abm-blue);
    background: #edf5fc;
}

.abm-hero {
    position: relative;
    overflow: hidden;
    padding: 105px 0 95px;
    color: var(--abm-white);
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(244, 185, 66, 0.23),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--abm-blue-dark),
            var(--abm-blue-light)
        );
}

.abm-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: -250px;
    border: 70px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.abm-hero-content {
    position: relative;
    z-index: 2;
    max-width: 790px;
}

.abm-eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    border: 1px solid rgba(255, 217, 120, 0.45);
    border-radius: 999px;
    color: var(--abm-gold-light);
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 700;
}

.abm-hero h1 {
    max-width: 750px;
    margin: 22px 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.abm-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.abm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.abm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 13px;
    font-weight: 800;
    transition: 0.2s ease;
}

.abm-button-primary {
    color: var(--abm-blue-dark);
    background: var(--abm-gold);
}

.abm-button-primary:hover {
    transform: translateY(-2px);
    background: var(--abm-gold-light);
}

.abm-button-secondary {
    color: var(--abm-white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.abm-section {
    padding: 85px 0;
}

.abm-section-light {
    background: var(--abm-bg);
}

.abm-section-title {
    max-width: 730px;
    margin: 0 auto 45px;
    text-align: center;
}

.abm-section-title span {
    color: var(--abm-blue-light);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.abm-section-title h2 {
    margin: 9px 0 12px;
    color: var(--abm-blue-dark);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
}

.abm-section-title p {
    margin: 0;
    color: var(--abm-muted);
}

.abm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.abm-card {
    padding: 30px;
    border: 1px solid var(--abm-border);
    border-radius: var(--abm-radius);
    background: var(--abm-white);
    box-shadow: var(--abm-shadow);
}

.abm-card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 14px;
    color: var(--abm-blue);
    background: #edf5fc;
    font-size: 24px;
}

.abm-card h3 {
    margin: 0 0 10px;
    color: var(--abm-blue-dark);
}

.abm-card p {
    margin: 0 0 18px;
    color: var(--abm-muted);
}

.abm-card a {
    color: var(--abm-blue-light);
    font-weight: 800;
}

.abm-page-hero {
    padding: 70px 0;
    color: var(--abm-white);
    background:
        linear-gradient(
            135deg,
            var(--abm-blue-dark),
            var(--abm-blue-light)
        );
    text-align: center;
}

.abm-page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
}

.abm-page-content {
    width: min(900px, calc(100% - 40px));
    min-height: 450px;
    margin: 0 auto;
    padding: 65px 0;
}

.abm-page-content h2,
.abm-page-content h3 {
    color: var(--abm-blue-dark);
}

.abm-site-footer {
    padding: 45px 0;
    color: rgba(255, 255, 255, 0.78);
    background: #001f3d;
}

.abm-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.abm-site-footer strong {
    color: var(--abm-white);
}

@media (max-width: 960px) {
    .abm-menu-toggle {
        display: block;
    }

    .abm-navigation {
        position: absolute;
        top: 100%;
        left: 20px;
        right: 20px;
        display: none;
        padding: 15px;
        border: 1px solid var(--abm-border);
        border-radius: 16px;
        background: var(--abm-white);
        box-shadow: var(--abm-shadow);
    }

    .abm-navigation.is-open {
        display: block;
    }

    .abm-primary-menu {
        display: block;
    }

    .abm-primary-menu > li > a {
        width: 100%;
    }

    .abm-primary-menu > li:last-child > a {
        margin: 8px 0 0;
    }

    .abm-primary-menu .sub-menu {
        position: static;
        width: 100%;
        padding: 4px 0 4px 18px;
        visibility: visible;
        opacity: 1;
        transform: none;
        border: 0;
        box-shadow: none;
    }

    .abm-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .abm-container {
        width: min(100% - 26px, 1180px);
    }

    .abm-topbar-inner {
        min-height: 44px;
        justify-content: center;
        text-align: center;
    }

    .abm-topbar-inner span:last-child {
        display: none;
    }

    .abm-brand {
        min-width: 0;
    }

    .abm-brand-text strong {
        font-size: 14px;
    }

    .abm-brand-text span {
        display: none;
    }

    .abm-hero {
        padding: 80px 0 72px;
        text-align: center;
    }

    .abm-actions {
        justify-content: center;
    }

    .abm-footer-inner {
        display: block;
        text-align: center;
    }
}

/* ABM LANGUAGE SWITCHER */
.abm-topbar-language {
    display: flex;
    align-items: center;
    gap: 9px;
}

.abm-language-label {
    color: rgba(255, 255, 255, 0.72);
}

.abm-language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.abm-language-switcher li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.abm-language-switcher li:not(:last-child)::after {
    content: "|";
    margin-left: 5px;
    color: rgba(255, 255, 255, 0.32);
}

.abm-language-switcher a {
    display: inline-flex;
    align-items: center;
    padding: 3px 5px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    transition: 0.2s ease;
}

.abm-language-switcher a:hover,
.abm-language-switcher .current-lang > a,
.abm-language-switcher .current-lang-item > a {
    color: #ffd978;
    background: rgba(255, 255, 255, 0.08);
}

html[dir="rtl"] .abm-topbar-language {
    direction: rtl;
}

@media (max-width: 650px) {
    .abm-language-label {
        display: none;
    }

    .abm-language-switcher a {
        font-size: 12px;
        padding-inline: 3px;
    }
}

/* ABM LANGUAGE BAR FINAL FIX */
.abm-topbar {
    min-height: 42px;
}

.abm-topbar-inner {
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

.abm-topbar-language {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-inline-start: auto;
    white-space: nowrap;
}

.abm-language-switcher {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.abm-language-switcher li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.abm-language-switcher li::marker {
    content: "" !important;
}

.abm-language-switcher a {
    display: inline-flex !important;
    padding: 3px 6px !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.abm-language-switcher .current-lang a {
    color: #ffd978 !important;
}

@media (max-width: 650px) {
    .abm-topbar-inner {
        justify-content: center !important;
        flex-wrap: wrap !important;
        padding-block: 7px;
    }

    .abm-topbar-language {
        margin-inline-start: 0;
    }

    .abm-language-label {
        display: none !important;
    }
}
