:root {
    --saaz-ink: #17172b;
    --saaz-muted: #727387;
    --saaz-paper: #f7f6f2;
    --saaz-accent: #ff6b4a;
    --saaz-accent-dark: #e85337;
    --saaz-line: rgba(23, 23, 43, .1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: var(--saaz-ink);
    font-family: "Heebo", Arial, sans-serif;
    line-height: 1.7;
}

img,
video,
iframe {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--saaz-ink);
    font-family: "Nunito", "Heebo", Arial, sans-serif;
    font-weight: 800;
    overflow-wrap: break-word;
}

p {
    color: var(--saaz-muted);
}

a {
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.text-primary {
    color: var(--saaz-accent) !important;
}

.bg-primary,
.btn-primary {
    background-color: var(--saaz-accent) !important;
}

.btn-primary {
    border: 1px solid var(--saaz-accent) !important;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(255, 107, 74, .2);
    color: #fff !important;
    font-weight: 700;
    padding: .8rem 1.5rem;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--saaz-accent-dark) !important;
    border-color: var(--saaz-accent-dark) !important;
    box-shadow: 0 12px 24px rgba(255, 107, 74, .28);
    transform: translateY(-2px);
}

.site-navbar {
    border-bottom: 1px solid var(--saaz-line);
    box-shadow: 0 6px 24px rgba(23, 23, 43, .06) !important;
    min-height: 82px;
    z-index: 1030;
}

.site-navbar .navbar-brand {
    margin-right: 1rem;
    padding: .5rem 0;
}

.site-navbar .navbar-brand img {
    height: auto !important;
    max-width: 190px;
    object-fit: contain;
    width: 110px;
}

.site-navbar .navbar-nav {
    align-items: center;
    gap: .15rem;
}

.site-navbar .navbar-nav .nav-link {
    border-radius: 999px;
    color: var(--saaz-ink) !important;
    font-size: .93rem;
    font-weight: 600;
    margin: 0 !important;
    padding: .65rem .82rem !important;
}

.site-navbar .navbar-nav .nav-link:hover,
.site-navbar .navbar-nav .nav-link.active {
    background: rgba(255, 107, 74, .1);
    color: var(--saaz-accent-dark) !important;
}

.site-navbar .dropdown-menu {
    border: 1px solid var(--saaz-line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(23, 23, 43, .12);
    margin-top: .6rem;
    min-width: 250px;
    padding: .55rem;
}

.site-navbar .dropdown-item {
    border-radius: 9px;
    color: var(--saaz-ink);
    font-size: .9rem;
    padding: .58rem .8rem;
    text-align: left;
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus {
    background: rgba(255, 107, 74, .1);
    color: var(--saaz-accent-dark);
}

.site-navbar .nav-join {
    align-self: center;
    align-items: center;
    display: inline-flex !important;
    height: 48px !important;
    justify-content: center;
    margin-left: .8rem;
    padding: .7rem 1.25rem;
    white-space: nowrap;
}

.style-switch {
    right: 0 !important;
    width: 0 !important;
}

.style-switch .switched-options {
    display: none !important;
}

.header-carousel {
    background: var(--saaz-ink);
    margin-bottom: 0 !important;
    overflow: hidden;
}

.header-carousel .owl-carousel-item {
    aspect-ratio: 1.9 / 1;
    height: 500px !important;
    min-height: 0 !important;
    width: 100%;
}

.header-carousel .owl-carousel-item::after {
    background: linear-gradient(90deg, rgba(14, 14, 31, .46), rgba(14, 14, 31, .05) 72%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.header-carousel .owl-carousel-item img {
    height: 100% !important;
    object-fit: fill;
    width: 100%;
}

.owl-carousel .owl-stage-outer {
    max-width: 100%;
    overflow: hidden;
}

.testimonial-carousel .owl-dots {
    display: none !important;
}

.header-carousel .owl-nav {
    align-items: center;
    bottom: 30px;
    display: flex;
    flex-direction: row;
    gap: .75rem;
    left: auto;
    right: max(calc((100vw - 1140px) / 2), 5%);
    top: auto;
    transform: none;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    background: rgba(255, 255, 255, .16) !important;
    border: 1px solid rgba(255, 255, 255, .5) !important;
    border-radius: 50%;
    color: #fff !important;
    height: 48px;
    margin: 0;
    width: 48px;
}

.container-xxl,
.rs-courses-2 {
    padding-bottom: 4.5rem !important;
    padding-top: 4.5rem !important;
}

.section-title {
    background: transparent !important;
    color: var(--saaz-accent-dark) !important;
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: .7rem;
    max-width: 100%;
    padding: 0 !important;
    text-transform: uppercase;
    white-space: normal;
}

.section-title-about {
    left: auto !important;
    margin-left: 0 !important;
}

.container-xxl h1,
.rs-courses-2 h1 {
    letter-spacing: -.035em;
}

.service-item,
.cource-item,
.team-item {
    background: #fff;
    border: 1px solid var(--saaz-line);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(23, 23, 43, .055);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.service-item {
    height: 100% !important;
    min-height: 260px;
}

.service-item:hover,
.cource-item:hover,
.team-item:hover {
    box-shadow: 0 18px 42px rgba(23, 23, 43, .12);
    transform: translateY(-5px);
}

.service-item i {
    color: var(--saaz-accent) !important;
}

.service-item h5,
.cource-item h5 {
    margin-bottom: .8rem;
}

.cource-img,
.card_outer {
    border-radius: 16px 16px 0 0;
}

.card_outer img {
    object-fit: cover;
    width: 100%;
}

.card_overlay a {
    background-color: var(--saaz-accent) !important;
    border-radius: 999px !important;
    padding: .7rem 1.1rem !important;
}

.page-header {
    min-height: 300px;
    overflow: hidden;
    position: relative;
}

.page-header::before {
    background: linear-gradient(115deg, rgba(18, 18, 40, .82), rgba(18, 18, 40, .34));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.page-header > .container {
    position: relative;
    z-index: 1;
}

.page-header h1,
.page-header h2,
.page-header h3 {
    color: #fff !important;
}

.page-header .display-3 {
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    letter-spacing: -.04em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .2);
}

.form-control,
select.form-control,
textarea.form-control {
    border: 1px solid var(--saaz-line);
    border-radius: 10px;
    max-width: 100%;
    min-height: 46px;
}

.form-control:focus {
    border-color: rgba(255, 107, 74, .7);
    box-shadow: 0 0 0 .2rem rgba(255, 107, 74, .12);
}

.modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(23, 23, 43, .2);
    overflow: hidden;
}

.footer {
    background: #17172b !important;
    margin-top: 4rem !important;
}

.footer h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.footer p,
.footer a,
.footer .btn.btn-link {
    color: rgba(255, 255, 255, .72);
}

.footer .btn.btn-link {
    display: block;
    padding: .2rem 0;
    text-align: left;
}

.footer a:hover {
    color: #fff !important;
}

.footer .btn-social {
    border-radius: 50%;
    margin-right: .4rem;
}

.footer iframe {
    border-radius: 14px;
}

.site-footer {
    background:
        radial-gradient(ellipse at 12% 0, rgba(255, 107, 74, .15), transparent 34%),
        linear-gradient(135deg, #17172b 0%, #111225 100%);
    border-top: 3px solid var(--saaz-accent);
    color: #fff;
    margin-top: 4rem;
}

.site-footer-main {
    padding-bottom: 3.5rem;
    padding-top: 4.25rem;
}

.site-footer h4 {
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 1.25rem;
    padding-bottom: .8rem;
    position: relative;
    text-transform: uppercase;
}

.site-footer h4::after {
    background: var(--saaz-accent);
    border-radius: 2px;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 34px;
}

.site-footer-logo {
    align-items: center;
    background: #fff;
    border-radius: 12px;
    display: inline-flex;
    justify-content: center;
    max-width: 180px;
    padding: .55rem .75rem;
}

.site-footer-logo img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 130px;
}

.site-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
}

.site-footer-social a {
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
    width: 40px;
}

.site-footer-social a i {
    font-size: 1.1rem;
}

.site-footer-social a:hover,
.site-footer-social a:focus-visible {
    background: var(--saaz-accent);
    border-color: var(--saaz-accent);
    color: #fff;
    transform: translateY(-2px);
}

.site-footer-links {
    display: grid;
    gap: .25rem;
}

.site-footer-links a {
    align-items: center;
    color: rgba(255, 255, 255, .72);
    display: flex;
    gap: .6rem;
    padding: .2rem 0;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.site-footer-links a::before {
    color: var(--saaz-accent);
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
    color: #fff;
    transform: translateX(3px);
}

.site-footer-contact {
    margin: 0;
}

.site-footer-contact p,
.site-footer-email {
    align-items: flex-start;
    color: rgba(255, 255, 255, .72);
    display: flex;
    gap: .75rem;
    line-height: 1.65;
    margin: 0 0 .85rem;
    text-decoration: none;
}

.site-footer-email span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-footer-contact i {
    color: var(--saaz-accent);
    flex: 0 0 1rem;
    margin-top: .35rem;
    text-align: center;
}

.site-footer-phone-icon {
    color: var(--saaz-accent);
    flex: 0 0 1.1rem;
    height: 1.1rem;
    margin-top: .3rem;
    width: 1.1rem;
}

.site-footer-email:hover,
.site-footer-email:focus-visible {
    color: #fff;
}

.site-footer-map {
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    min-height: 230px;
    overflow: hidden;
    position: relative;
}

.site-footer-map iframe {
    border: 0;
    display: block;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .68);
    font-size: .9rem;
    padding: 1.15rem 0;
}

.site-footer-bottom a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
}

.site-footer-bottom a:hover,
.site-footer-bottom a:focus-visible {
    color: #fff;
}

.site-footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.15rem;
    justify-content: center;
}

.back-to-top {
    border-radius: 50% !important;
    bottom: 24px;
    box-shadow: 0 10px 24px rgba(23, 23, 43, .2);
    height: 48px;
    right: 24px;
    width: 48px;
}

@media (max-width: 1199.98px) {
    .site-navbar .navbar-collapse {
        background: #fff;
        border-top: 1px solid var(--saaz-line);
        margin: 0 -12px;
        padding: .5rem 1rem 1rem;
    }

    .site-navbar .navbar-nav {
        align-items: stretch;
        gap: 0;
    }

    .site-navbar .navbar-nav .nav-link {
        border-radius: 10px;
    }

    .site-navbar .nav-join {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-navbar .navbar-brand {
        margin-right: .5rem;
        padding-left: .5rem !important;
        padding-right: .5rem !important;
    }

    .site-navbar .navbar-nav .nav-link {
        font-size: .84rem;
        padding-left: .5rem !important;
        padding-right: .5rem !important;
    }

    .site-navbar .nav-join {
        margin-left: .3rem;
        padding-left: .85rem;
        padding-right: .85rem;
    }
}

@media (max-width: 575.98px) {
    .site-navbar {
        min-height: 68px;
    }

    .site-navbar .navbar-brand img {
        height: auto !important;
        max-width: 165px;
        width: 100px;
    }

    .header-carousel .owl-carousel-item {
        background: var(--saaz-ink);
    }

    .header-carousel .owl-carousel-item img {
        height: 100% !important;
        object-fit: fill;
    }

    .style-switch {
        display: none !important;
    }

    .header-carousel .owl-carousel-item::after {
        background: linear-gradient(90deg, rgba(14, 14, 31, .38), rgba(14, 14, 31, .04));
    }

    .container-xxl,
    .rs-courses-2 {
        padding-bottom: 3rem !important;
        padding-top: 3rem !important;
    }

    .site-footer-main {
        padding-bottom: 2.5rem;
        padding-top: 3rem;
    }

    .site-footer-main > .row {
        --bs-gutter-x: 1.5rem;
    }

    .site-footer-map {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .page-header {
        min-height: 220px;
    }

    .page-header .display-3 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.15;
        margin-top: 0 !important;
    }

    .modal-dialog {
        margin: .5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-content {
        max-height: calc(100dvh - 1rem);
        overflow-y: auto;
    }

    .container,
    .container-fluid,
    .container-xxl {
        max-width: 100%;
    }

    .container-xxl > .container > .row {
        margin-left: -12px;
        margin-right: -12px;
    }
}

@media (max-width: 360px) {
    .site-navbar .navbar-brand img {
        width: 90px;
    }

    .site-navbar .navbar-toggler {
        padding: .25rem .45rem;
    }
}

/* Blog listing and article pages */
.container-xxl .card {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    min-width: 0;
}

.container-xxl .card a,
.container-xxl a > .card {
    height: 100%;
}

.container-xxl .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.container-xxl .card h4 {
    border-radius: 8px;
    line-height: 1.35;
    padding: .55rem .65rem;
}

.container-xxl .card .image,
.container-xxl .image {
    aspect-ratio: 16 / 10;
    height: auto !important;
    object-fit: cover;
    width: 100% !important;
}

.container-xxl .odd img {
    height: clamp(220px, 42vw, 350px) !important;
}

.container-xxl .row.text-center {
    row-gap: 1rem;
}

.container-xxl .modal-dialog {
    max-width: calc(100% - 1.5rem);
}

@media (max-width: 991.98px) {
    .container-xxl > .row.text-center > .col-md-4,
    .container-xxl > .container > .row.text-center > .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .container-xxl .row.text-center > .col-md-8 {
        width: 100%;
    }

    .container-xxl .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .container-xxl > .row.text-center > .col-md-4,
    .container-xxl > .container > .row.text-center > .col-md-4,
    .container-xxl .row > [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .container-xxl .row.text-center > .col-md-8,
    .container-xxl .row .col-md-6,
    .container-xxl .row .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .container-xxl .card,
    .container-xxl .card-link,
    .container-xxl a > .card {
        width: 100%;
    }

    .container-xxl .card h4 {
        font-size: 1.15rem;
    }

    .container-xxl .col-md-6 img,
    .container-xxl .col-md-4 img,
    .container-xxl .col-md-8 img,
    .container-xxl .odd img,
    .container-xxl .even img {
        height: auto !important;
        max-height: 420px;
        object-fit: contain;
    }

    .container-xxl .page-header,
    .page-header {
        height: auto !important;
        min-height: 180px;
    }

    .container-xxl .odd img {
        height: auto !important;
        max-height: 420px;
    }

    .container-xxl .pdf iframe,
    .container-xxl iframe {
        height: 70vh;
        max-height: 520px;
    }
}

@media (max-width: 575.98px) {
    .container-xxl .card .image,
    .container-xxl .image {
        aspect-ratio: 4 / 3;
    }

    .container-xxl {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .container-xxl .card {
        margin-bottom: .25rem;
    }

    .container-xxl .modal-dialog {
        margin: .5rem auto;
        max-width: calc(100% - 1rem);
    }

    .container-xxl .modal-content {
        max-height: calc(100dvh - 1rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
