/* ==========================================================================
   Organization standalone website styles
   Colors are driven by --org-primary / --org-secondary injected per-org.
   ========================================================================== */

:root {
    --org-primary: #6c5ce7;
    --org-secondary: #ff9f7c;
    --org-ink: #1f2440;
    --org-muted: #6b7191;
    --org-bg-soft: #f6f7fb;
    --org-radius: 18px;
}

.org-site-body {
    background: #ffffff;
    color: var(--org-ink);
    /* Font comes from the platform: body -> main-font-family, body.rtl -> rtl-font-family */
    font-family: var(--font-family-base);
}

.org-site-wrapper {
    overflow-x: hidden;
}

.org-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.org-section {
    padding: 80px 0;
}

.org-section-soft {
    background: var(--org-bg-soft);
}

.org-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.org-eyebrow {
    display: inline-block;
    color: var(--org-primary);
    background: var(--org-primary-soft, rgba(108, 92, 231, 0.1));
    font-weight: 700;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.org-section-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 14px;
    color: var(--org-ink);
}

.org-section-sub {
    color: var(--org-muted);
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
}

/* Buttons -------------------------------------------------------------- */
.org-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.org-btn-primary {
    background: var(--org-primary);
    color: #fff;
}

.org-btn-primary:hover {
    filter: brightness(1.08);
    color: #fff;
    transform: translateY(-2px);
}

.org-btn-outline {
    background: transparent;
    border-color: var(--org-primary);
    color: var(--org-primary);
    padding: 9px 20px;
}

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

/* Navbar --------------------------------------------------------------- */
.org-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    transition: box-shadow .25s ease;
}

.org-nav.scrolled {
    box-shadow: 0 6px 24px rgba(20, 24, 64, 0.08);
}

.org-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.org-brand img {
    max-height: 46px;
    width: auto;
    display: block;
}

.org-brand-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--org-primary);
}

.org-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.org-nav-links > a {
    color: var(--org-ink);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color .2s ease;
}

.org-nav-links > a:hover {
    color: var(--org-primary);
}

.org-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.org-nav-cart {
    color: var(--org-ink);
    display: inline-flex;
}

.org-nav-cart:hover {
    color: var(--org-primary);
}

.org-nav-login {
    color: var(--org-ink);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.org-nav-login:hover {
    color: var(--org-primary);
}

.org-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--org-ink);
    cursor: pointer;
}

/* Hero ----------------------------------------------------------------- */
.org-hero {
    position: relative;
    padding: 90px 0 100px;
    background:
        linear-gradient(120deg, var(--org-primary-soft, rgba(108, 92, 231, 0.12)), rgba(255, 159, 124, 0.10));
    overflow: hidden;
}

.org-hero.has-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--org-hero-cover);
    background-size: cover;
    background-position: center;
    opacity: 1;
}

.org-hero.has-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(20, 24, 64, 0.72), rgba(20, 24, 64, 0.45));
}

.org-hero .org-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.org-hero.has-cover .org-hero-title,
.org-hero.has-cover .org-hero-sub {
    color: #fff;
}

.org-hero-logo {
    max-height: 90px;
    margin-bottom: 26px;
}

.org-hero-title {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 auto 20px;
    max-width: 900px;
    color: var(--org-ink);
}

.org-hero-sub {
    font-size: 20px;
    line-height: 1.8;
    color: var(--org-muted);
    max-width: 720px;
    margin: 0 auto 34px;
}

/* About ---------------------------------------------------------------- */
.org-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.org-about-grid.no-image {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.org-about-img img {
    width: 100%;
    border-radius: var(--org-radius);
    display: block;
}

.org-about-body {
    font-size: 17px;
    line-height: 2;
    color: var(--org-muted);
    white-space: pre-line;
}

/* Vision / Mission ----------------------------------------------------- */
.org-vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.org-vm-card {
    background: #fff;
    border-radius: var(--org-radius);
    padding: 38px 34px;
    box-shadow: 0 10px 40px rgba(20, 24, 64, 0.06);
    border-top: 4px solid var(--org-primary);
}

.org-vm-card:nth-child(2) {
    border-top-color: var(--org-secondary);
}

.org-vm-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--org-primary-soft, rgba(108, 92, 231, 0.12));
    color: var(--org-primary);
    margin-bottom: 20px;
}

.org-vm-card:nth-child(2) .org-vm-icon {
    background: rgba(255, 159, 124, 0.16);
    color: var(--org-secondary);
}

.org-vm-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 12px;
}

.org-vm-card p {
    color: var(--org-muted);
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
    white-space: pre-line;
}

/* Courses & instructors grids ------------------------------------------ */
.org-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.org-empty {
    text-align: center;
    color: var(--org-muted);
    padding: 30px;
    font-size: 16px;
}

/* Instructor card */
.org-instructor {
    background: #fff;
    border-radius: var(--org-radius);
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 10px 36px rgba(20, 24, 64, 0.06);
    transition: transform .2s ease;
    text-decoration: none;
    display: block;
}

.org-instructor:hover {
    transform: translateY(-4px);
}

.org-instructor img {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--org-primary-soft, rgba(108, 92, 231, 0.12));
}

.org-instructor h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--org-ink);
}

.org-instructor span {
    color: var(--org-muted);
    font-size: 14px;
}

/* FAQ ------------------------------------------------------------------ */
.org-faq {
    max-width: 820px;
    margin: 0 auto;
}

.org-faq-item {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
}

.org-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    color: var(--org-ink);
}

.org-faq-q .org-faq-icon {
    flex-shrink: 0;
    transition: transform .25s ease;
    color: var(--org-primary);
}

.org-faq-item.open .org-faq-q .org-faq-icon {
    transform: rotate(180deg);
}

.org-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    padding: 0 24px;
    color: var(--org-muted);
    line-height: 1.9;
    font-size: 16px;
}

.org-faq-item.open .org-faq-a {
    max-height: 600px;
    padding: 0 24px 22px;
}

/* Contact -------------------------------------------------------------- */
.org-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 900px;
    margin: 0 auto;
}

.org-contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 8px 30px rgba(20, 24, 64, 0.05);
    text-decoration: none;
    color: var(--org-ink);
    transition: transform .2s ease;
}

.org-contact-card:hover {
    transform: translateY(-3px);
    color: var(--org-ink);
}

.org-contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--org-primary-soft, rgba(108, 92, 231, 0.12));
    color: var(--org-primary);
    flex-shrink: 0;
}

.org-contact-card .label {
    font-size: 13px;
    color: var(--org-muted);
    display: block;
}

.org-contact-card .value {
    font-weight: 700;
    font-size: 16px;
    word-break: break-word;
}

.org-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.org-social a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--org-primary);
    color: #fff;
    transition: transform .2s ease;
}

.org-social a:hover {
    transform: translateY(-3px);
    color: #fff;
}

/* Footer --------------------------------------------------------------- */
.org-footer {
    background: var(--org-ink);
    color: #cfd2e6;
    padding: 56px 0 26px;
}

.org-footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
}

.org-footer-brand {
    max-width: 380px;
}

.org-footer-brand img {
    max-height: 50px;
    margin-bottom: 16px;
}

.org-footer-brand .name {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.org-footer-brand p {
    line-height: 1.9;
    font-size: 15px;
    margin: 0;
}

.org-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.org-footer-links a {
    color: #cfd2e6;
    text-decoration: none;
    font-size: 15px;
}

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

.org-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    text-align: center;
    font-size: 14px;
    color: #9aa0c4;
}

/* Floating edit button ------------------------------------------------- */
.org-edit-fab {
    position: fixed;
    inset-block-end: 26px;
    inset-inline-end: 26px;
    z-index: 80;
    background: var(--org-primary);
    color: #fff;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(20, 24, 64, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.org-edit-fab:hover {
    color: #fff;
    filter: brightness(1.08);
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 991px) {
    .org-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .org-hero-title {
        font-size: 38px;
    }
    .org-section-title {
        font-size: 28px;
    }
    .org-about-grid,
    .org-vm-grid,
    .org-contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .org-nav-toggle {
        display: inline-flex;
    }
    .org-nav-links {
        position: absolute;
        top: 74px;
        inset-inline-start: 0;
        inset-inline-end: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 14px 30px rgba(20, 24, 64, 0.1);
        transition: max-height .3s ease, padding .3s ease;
    }
    .org-nav-links.open {
        max-height: 460px;
        padding: 14px 20px 22px;
    }
    .org-nav-links > a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #f1f2f7;
    }
    .org-nav-actions {
        width: 100%;
        padding-top: 14px;
    }
    .org-grid {
        grid-template-columns: 1fr;
    }
    .org-section {
        padding: 56px 0;
    }
    .org-hero {
        padding: 64px 0 70px;
    }
    .org-hero-title {
        font-size: 31px;
    }
}
