/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-4d26t50j25] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-4d26t50j25] {
    flex: 1;
    width: 100%;
}

.top-navbar[b-4d26t50j25] {
    background: linear-gradient(110deg, var(--islamic-dark-green) 0%, #0f7a53 45%, #14956a 100%);
    color: var(--islamic-white);
    padding: 0.9rem 1.4rem;
    box-shadow: 0 10px 30px rgba(2, 26, 18, 0.35);
    position: sticky;
    top: 0;
    z-index: 20000;
    isolation: isolate;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.navbar-container[b-4d26t50j25] {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 20001;
    overflow: visible;
}

.navbar-brand[b-4d26t50j25] {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--islamic-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover[b-4d26t50j25] {
    color: var(--islamic-gold);
}

.brand-icon[b-4d26t50j25] {
    font-size: 1.75rem;
}

.navbar-nav[b-4d26t50j25] {
    display: flex;
    flex-direction: row !important; /* override Bootstrap navbar-nav column layout */
    gap: 0.85rem;
    align-items: center;
    margin-left: auto; /* keep items to the right of the brand */
    flex-wrap: wrap;
    position: relative;
    z-index: 20002;
    overflow: visible;
}

.nav-link[b-4d26t50j25] {
    color: var(--islamic-white);
    text-decoration: none;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    transition: all var(--transition-base);
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Force top navbar links (NavLink-rendered anchors) to render white */
.top-navbar[b-4d26t50j25]  a,
.top-navbar[b-4d26t50j25]  a:visited,
.top-navbar[b-4d26t50j25]  .nav-link,
.top-navbar[b-4d26t50j25]  .nav-link:visited,
.top-navbar[b-4d26t50j25]  .btn-link {
    color: #ffffff !important;
}

.nav-link:hover[b-4d26t50j25] {
    background-color: rgba(255, 255, 255, 0.16);
    color: #facc15 !important;
    transform: translateY(-1px);
}

.nav-link.active[b-4d26t50j25] {
    background-color: rgba(255, 255, 255, 0.24);
    color: var(--islamic-white);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}

.btn-link[b-4d26t50j25] {
    color: var(--islamic-white);
    background: none;
    border: none;
    padding: 0.55rem 0.82rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-link:hover[b-4d26t50j25] {
    background-color: rgba(255, 255, 255, 0.16);
    color: #facc15 !important;
    transform: translateY(-1px);
}

/* Ensure active/current route is still bright and readable */
.top-navbar[b-4d26t50j25]  .nav-link.active {
    color: #ffffff !important;
}

.language-picker-wrap[b-4d26t50j25] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    padding: 0.35rem 0.55rem;
    position: relative;
    z-index: 20003;
    overflow: visible;
}

.language-picker-label[b-4d26t50j25] {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.language-picker[b-4d26t50j25] {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
    min-width: 110px;
    position: relative;
    z-index: 20004;
}

.language-picker:focus[b-4d26t50j25] {
    outline: none;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.4);
}

.language-picker option[b-4d26t50j25] {
    color: #0f172a;
}

.content[b-4d26t50j25] {
    width: 100%;
    padding: 0;
}

.top-row[b-4d26t50j25] {
    display: none;
}

@media (max-width: 768px) {
    .navbar-container[b-4d26t50j25] {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .navbar-nav[b-4d26t50j25] {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-link[b-4d26t50j25] {
        padding: 0.45rem 0.75rem;
        font-size: 0.88rem;
    }

    .language-picker-wrap[b-4d26t50j25] {
        width: 100%;
        justify-content: center;
    }

    .navbar-brand[b-4d26t50j25] {
        align-self: center;
    }
}

@media (min-width: 1400px) {
    .top-navbar[b-4d26t50j25] {
        padding-inline: 2.2rem;
    }
}

#blazor-error-ui[b-4d26t50j25] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-4d26t50j25] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Floating WhatsApp (all pages using this layout) */
.wa-float[b-4d26t50j25] {
    --wa-green: #25d366;
    --wa-green-dark: #128c7e;
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.375rem;
    height: 3.375rem;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
}

@media (min-width: 768px) {
    .wa-float[b-4d26t50j25] {
        right: max(1.5rem, env(safe-area-inset-right, 0px));
        bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
        width: 3.75rem;
        height: 3.75rem;
    }
}

.wa-float__ring[b-4d26t50j25] {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.35);
    animation: wa-float-pulse-b-4d26t50j25 2.4s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .wa-float__ring[b-4d26t50j25] {
        animation: none;
        opacity: 0.45;
    }
}

.wa-float__btn[b-4d26t50j25] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--wa-green) 0%, #20c55a 45%, var(--wa-green-dark) 100%);
    box-shadow:
        0 4px 14px rgba(18, 140, 126, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        filter 0.2s ease;
}

.wa-float:hover .wa-float__btn[b-4d26t50j25] {
    transform: scale(1.08);
    box-shadow:
        0 8px 28px rgba(37, 211, 102, 0.55),
        0 4px 10px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

.wa-float:active .wa-float__btn[b-4d26t50j25] {
    transform: scale(1.02);
}

.wa-float:focus-visible[b-4d26t50j25] {
    outline: none;
}

.wa-float:focus-visible .wa-float__btn[b-4d26t50j25] {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow:
        0 0 0 3px var(--wa-green-dark),
        0 8px 28px rgba(37, 211, 102, 0.5);
}

.wa-float__icon[b-4d26t50j25] {
    width: 55%;
    height: 55%;
    flex-shrink: 0;
}

@keyframes wa-float-pulse-b-4d26t50j25 {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    70% {
        transform: scale(1.45);
        opacity: 0;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-ysxwwr3ttb] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-ysxwwr3ttb] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-ysxwwr3ttb] {
    height: 3.5rem;
    background-color: rgba(2, 28, 19, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar-brand[b-ysxwwr3ttb] {
    font-size: 1.1rem;
    color: white;
}

.navbar-brand:visited[b-ysxwwr3ttb],
.navbar-brand:hover[b-ysxwwr3ttb],
.navbar-brand:focus[b-ysxwwr3ttb] {
    color: white;
}

.bi[b-ysxwwr3ttb] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-ysxwwr3ttb] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-mortarboard-fill-nav-menu[b-ysxwwr3ttb] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8.211 1.055a.5.5 0 0 0-.422 0l-7.5 3.5a.5.5 0 0 0 .025.917l7.5 3a.5.5 0 0 0 .372 0L14 7.14V13a1 1 0 0 0-1 1v2h3v-2a1 1 0 0 0-1-1V6.739l.686-.275a.5.5 0 0 0 .025-.917l-7.5-3.5ZM8 8.46 1.758 5.965 8 3.052l6.242 2.913L8 8.46Z'/%3E%3Cpath d='M4.176 9.032a.5.5 0 0 0-.656.327l-.58 3.083a.5.5 0 0 0 .956.294l.58-3.083a.5.5 0 0 0-.327-.656ZM8 11.207l-1-.02-1.021.042H8v-.022Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-ysxwwr3ttb] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-ysxwwr3ttb] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-ysxwwr3ttb] {
    font-size: 0.92rem;
    padding-bottom: 0.35rem;
}

    .nav-item:first-of-type[b-ysxwwr3ttb] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-ysxwwr3ttb] {
        padding-bottom: 1rem;
    }

    .nav-item[b-ysxwwr3ttb]  .nav-link {
        color: white;
        background: none;
        border: none;
        border-radius: 12px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
        padding-inline: 0.85rem;
        transition: background-color var(--transition-base), transform var(--transition-fast), color var(--transition-base);
    }

.nav-item[b-ysxwwr3ttb]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-ysxwwr3ttb]  .nav-link:hover {
    background-color: rgba(255,255,255,0.14);
    color: #facc15;
    transform: translateX(2px);
}

.nav-scrollable[b-ysxwwr3ttb] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-ysxwwr3ttb] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-ysxwwr3ttb] {
        display: none;
    }

    .nav-scrollable[b-ysxwwr3ttb] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        padding: 0.65rem 0.45rem 0.75rem;
    }
}
/* /Components/Pages/OnlineAcademy.razor.rz.scp.css */
.oa-page[b-o3j3xfkmwc] {
    width: 100%;
    min-height: 100%;
    background: var(--islamic-light-bg);
}

.oa-hero[b-o3j3xfkmwc] {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem clamp(2rem, 5vw, 3.25rem);
    color: var(--islamic-white);
    background: linear-gradient(135deg, var(--islamic-dark-green) 0%, var(--islamic-green) 48%, #0d4d2e 100%);
    overflow: hidden;
}

.oa-hero__pattern[b-o3j3xfkmwc] {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 45 L5 45 Z' fill='none' stroke='%23ffffff' stroke-width='0.8'/%3E%3C/svg%3E");
    background-size: 48px 48px;
    animation: oa-pattern-drift-b-o3j3xfkmwc 40s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .oa-hero__pattern[b-o3j3xfkmwc] {
        animation: none;
    }
}

.oa-hero__content[b-o3j3xfkmwc] {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.oa-hero__eyebrow[b-o3j3xfkmwc] {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.oa-hero__title[b-o3j3xfkmwc] {
    margin: 0 0 0.75rem;
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.oa-hero__subtitle[b-o3j3xfkmwc] {
    margin: 0;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    line-height: 1.55;
    opacity: 0.95;
    font-weight: 500;
}

.oa-inner[b-o3j3xfkmwc] {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
}

.oa-intro[b-o3j3xfkmwc] {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--islamic-white);
    border-radius: 14px;
    border: 1px solid var(--islamic-border);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.oa-intro p[b-o3j3xfkmwc] {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--islamic-text);
}

.oa-grid[b-o3j3xfkmwc] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.oa-card[b-o3j3xfkmwc] {
    position: relative;
    background: var(--islamic-white);
    border-radius: 16px;
    padding: 1.5rem 1.35rem 1.6rem;
    border: 1px solid rgba(0, 107, 60, 0.12);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
    transition:
        transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
        box-shadow 0.28s ease,
        border-color 0.25s ease;
}

.oa-card:hover[b-o3j3xfkmwc] {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0, 66, 37, 0.12);
    border-color: rgba(212, 175, 55, 0.45);
}

.oa-card--wide[b-o3j3xfkmwc] {
    grid-column: 1 / -1;
}

.oa-card__icon[b-o3j3xfkmwc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(0, 107, 60, 0.1), rgba(212, 175, 55, 0.15));
}

.oa-card__title[b-o3j3xfkmwc] {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    color: var(--islamic-dark-green);
}

.oa-card__text[b-o3j3xfkmwc] {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4b5563;
}

.oa-contact[b-o3j3xfkmwc] {
    margin-top: 2.5rem;
}

.oa-contact__panel[b-o3j3xfkmwc] {
    background: linear-gradient(135deg, var(--islamic-dark-green) 0%, #0a4d2c 100%);
    color: var(--islamic-white);
    border-radius: 18px;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: 0 16px 48px rgba(0, 34, 20, 0.28);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.oa-contact__title[b-o3j3xfkmwc] {
    margin: 0 0 0.65rem;
    font-size: 1.5rem;
    color: #fefce8;
}

.oa-contact__text[b-o3j3xfkmwc] {
    margin: 0 0 1.35rem;
    line-height: 1.65;
    opacity: 0.92;
    max-width: 52ch;
}

.oa-contact__actions[b-o3j3xfkmwc] {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.oa-wa-btn[b-o3j3xfkmwc] {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 6px 22px rgba(18, 140, 126, 0.45);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.2s ease;
}

.oa-wa-btn:hover[b-o3j3xfkmwc] {
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    filter: brightness(1.06);
}

.oa-wa-btn:focus-visible[b-o3j3xfkmwc] {
    outline: 3px solid #fef9c3;
    outline-offset: 3px;
}

.oa-wa-btn__icon[b-o3j3xfkmwc] {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.oa-link-btn[b-o3j3xfkmwc] {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    color: var(--islamic-dark-green);
    background: #fefce8;
    border: 1px solid rgba(212, 175, 55, 0.5);
    transition: background 0.2s ease, transform 0.2s ease;
}

.oa-link-btn:hover[b-o3j3xfkmwc] {
    color: var(--islamic-dark-green);
    background: #fffbeb;
    transform: translateY(-2px);
}

@keyframes oa-pattern-drift-b-o3j3xfkmwc {
    to {
        background-position: 240px 240px;
    }
}
