/* Targeted layout fixes. Typography intentionally remains controlled by the existing theme. */

.attavo-mobile-header-actions {
    display: none;
}

.tm-header-main .navbar .tm-serch-bar {
    box-sizing: border-box;
    margin-left: 28px;
}

.tm-header-main .tm-serch-bar form {
    align-items: stretch;
    display: flex;
    width: 100%;
}

.tm-header-main .tm-serch-bar input[type="search"] {
    min-width: 0;
}

.tm-header-main .tm-serch-bar button[type="submit"] {
    flex: 0 0 auto;
}

/* Compact header search: show only the lens until the control is opened. */
.js .tm-header-main .navbar .attavo-header-search {
    background: transparent;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    box-sizing: border-box;
    flex: 0 0 auto;
    margin: 0 0 0 28px;
    max-width: min(420px, 38vw);
    overflow: visible;
    padding: 0;
    position: relative;
    top: auto;
    transition: width .25s ease;
    width: 42px;
}

.js .tm-header-main .navbar .attavo-header-search.is-open {
    width: min(420px, 38vw);
}

.js .attavo-header-search form {
    align-items: center;
    display: flex;
    position: relative;
    width: 100%;
}

.js .tm-header-main .navbar .attavo-header-search input[type="search"] {
    background: #fff;
    border: 1px solid #cfd9e8;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(0, 31, 70, .08);
    color: #001f46;
    font-size: 13px;
    height: 42px;
    max-height: none;
    opacity: 0;
    outline: 0;
    padding: 0 50px 0 14px;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease;
    visibility: hidden;
    width: 100%;
}

.js .tm-header-main .navbar .attavo-header-search.is-open input[type="search"] {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.js .tm-header-main .navbar .attavo-header-search button[type="submit"],
.js .tm-header-main .navbar .attavo-header-search button#search_button {
    align-items: center;
    background: #f7bb00;
    border: 0;
    border-radius: 9px;
    color: #001f46;
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
    width: 42px;
    z-index: 2;
}

.js .tm-header-main .navbar .attavo-header-search button#search_button:hover,
.js .tm-header-main .navbar .attavo-header-search button#search_button:focus-visible {
    background: #001f46;
    box-shadow: 0 0 0 3px rgba(247, 187, 0, .3);
    color: #fff;
    outline: 0;
}

.custom-footer .footer-col .widget-title,
.custom-footer .footer-col h1,
.custom-footer .footer-col h2,
.custom-footer .footer-col h3,
.custom-footer .footer-col h4,
.custom-footer .footer-col h5,
.custom-footer .footer-col h6 {
    color: #fff !important;
    opacity: 1 !important;
}

/* Homepage footer labels are generated with ::before, not heading tags. */
.custom-footer .footer-col::before,
.home .custom-footer .footer-col::before {
    color: #fff !important;
    opacity: 1 !important;
}

.custom-footer .footer-col {
    color: #fff !important;
}

.custom-footer .footer-col p,
.custom-footer .footer-col li,
.custom-footer .footer-col a {
    color: #fff !important;
    opacity: 1 !important;
}

.custom-footer .footer-col a:hover,
.custom-footer .footer-col a:focus {
    color: #f7bb00 !important;
}

/*
 * Shared site footer.
 * The homepage footer is the approved design, so its layout and visual system
 * are applied to every template that renders footer-inner.php.
 */
.custom-footer {
    background:
        radial-gradient(circle at 85% 15%, rgba(54, 102, 199, 0.24), transparent 25%),
        linear-gradient(145deg, #061b3a 0%, #092754 100%) !important;
    padding: 64px 0 0 !important;
    position: relative;
}

.custom-footer::before {
    background: linear-gradient(90deg, #3158ff 0%, #32c1a2 62%, #ffbd1a 100%);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.custom-footer > .container > .row > [class*="col-"] {
    flex: 1 1 0 !important;
    max-width: none !important;
}

.custom-footer > .container > .row > [class*="col-"]:has(.footer-col:empty),
.custom-footer > .container > .row > [class*="col-"]:has(.footer-col-4):not(:has(a, p, img, ul)) {
    display: none;
}

.custom-footer .footer-col {
    color: transparent !important;
    font-size: 0;
    margin: 0;
    padding-top: 46px;
    position: relative;
}

.custom-footer .footer-col::before {
    color: #fff !important;
    font-family: 'Exo 2', sans-serif;
    font-size: 17px;
    font-weight: 700;
    left: 0;
    letter-spacing: .25px;
    padding-bottom: 12px;
    position: absolute;
    text-transform: none;
    top: 0;
}

.custom-footer .footer-col::after {
    background: linear-gradient(90deg, #fff 0 36%, #f7bb00 36% 100%);
    border-radius: 999px;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    top: 31px;
    width: 47px;
}

.custom-footer .footer-col-1::before {
    content: "About";
}

.custom-footer .footer-col-2::before {
    content: "Categories";
}

.custom-footer .footer-col-3::before {
    content: "Terms & Support";
}

.custom-footer .footer-col-4::before {
    content: "Connect";
}

.custom-footer .footer-col:empty,
.custom-footer .footer-col-4:not(:has(a, p, img, ul)) {
    display: none;
}

.custom-footer .footer-col h4 {
    color: #fff !important;
    font-family: 'Exo 2', sans-serif;
    font-size: 17px;
    letter-spacing: .25px;
    margin: 0 0 20px;
    padding: 0 0 12px;
    text-transform: none;
}

.custom-footer .footer-col h4::before {
    background: #fff;
    height: 3px;
    width: 18px;
}

.custom-footer .footer-col h4::after {
    background: #f7bb00;
    height: 3px;
    left: 16px;
    width: 28px;
}

.custom-footer .footer-col-1 p,
.custom-footer .footer-col ul li a {
    color: #b9cbe7 !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    line-height: 1.8;
    text-transform: none;
}

.custom-footer .footer-col ul,
.custom-footer .footer-col ul li {
    margin-left: 0;
}

.custom-footer .footer-col ul li {
    margin-bottom: 10px;
}

.custom-footer .footer-col ul li a:hover,
.custom-footer .footer-col ul li a:focus {
    color: #fff !important;
    padding-left: 3px;
}

.custom-footer .footer-spcial li {
    align-items: center;
    background: rgba(255, 255, 255, .09);
    display: inline-flex;
    justify-content: center;
    margin: 0 6px 0 0;
}

.custom-footer .footer-btm {
    background: rgba(0, 0, 0, .15);
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 48px;
    padding: 16px 0;
}

.custom-footer .footer-btm p {
    color: #aebfda !important;
    font-size: 12px;
    margin: 0;
}

@media (max-width: 991px) {
    .custom-footer {
        padding-top: 50px !important;
    }

    .custom-footer > .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .custom-footer > .container > .row {
        display: grid;
        gap: 26px 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0;
    }

    .custom-footer > .container > .row > [class*="col-"] {
        flex: none !important;
        max-width: 100% !important;
        padding: 0;
        width: 100%;
    }

    .custom-footer > .container > .row > [class*="col-"]:first-child {
        grid-column: 1 / -1;
    }

    .custom-footer .footer-col {
        margin: 0;
        padding-top: 39px;
    }

    .custom-footer .footer-col::before,
    .custom-footer .footer-col h4 {
        font-size: 14px;
    }

    .custom-footer .footer-col::after {
        top: 27px;
        width: 40px;
    }

    .custom-footer .footer-col-1 p,
    .custom-footer .footer-col ul li a {
        font-size: 10px;
        line-height: 1.65;
    }

    .custom-footer .footer-col ul li {
        margin-bottom: 7px;
    }

    .custom-footer .footer-btm {
        margin-top: 30px;
        padding: 13px 10px;
    }

    .custom-footer .footer-btm p {
        font-size: 9px;
        line-height: 1.55;
    }
}

@media (max-width: 575px) {
    .custom-footer {
        padding: 25px 0 0 !important;
    }

    .custom-footer > .container > .row {
        align-items: stretch;
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .custom-footer > .container > .row > [class*="col-"]:first-child {
        grid-column: auto;
    }

    .custom-footer .footer-col {
        background: rgba(255, 255, 255, .045);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 12px;
        height: 100%;
        margin: 0;
        padding: 42px 12px 12px;
    }

    .custom-footer .footer-col::before {
        left: 12px;
        top: 11px;
    }

    .custom-footer .footer-col::after {
        left: 12px;
        top: 31px;
    }

    .custom-footer .footer-col ul,
    .custom-footer .footer-col ul li {
        margin: 0;
        padding: 0;
    }

    .custom-footer .footer-col-1 ul {
        display: flex;
        flex-wrap: wrap;
        gap: 7px 18px;
    }

    .custom-footer .footer-col-2 ul,
    .custom-footer .footer-col-3 ul {
        display: grid;
        gap: 7px 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-footer .footer-col ul li a {
        align-items: flex-start;
        display: flex;
        gap: 4px;
        overflow-wrap: anywhere;
    }

    .custom-footer .footer-col ul li a i {
        color: #f7bb00;
        flex: 0 0 auto;
        font-size: 8px;
        margin-top: 4px;
    }

    .custom-footer .footer-col-2 ul li {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .custom-footer .footer-col-2 ul li a {
        align-items: start;
        display: grid !important;
        gap: 5px;
        grid-template-columns: 9px minmax(0, 1fr);
        justify-content: start !important;
        text-align: left !important;
        width: 100%;
    }

    .custom-footer .footer-col-2 ul li a i {
        float: none !important;
        justify-self: start;
        margin: 4px 0 0 !important;
        position: static !important;
        text-align: left;
        width: 9px;
    }

    .custom-footer .footer-btm {
        margin-top: 18px;
        padding: 12px 10px;
    }
}

.home .attavo-spotlight__content-list {
    align-content: start;
    gap: 12px !important;
    grid-auto-rows: max-content;
}

.home .attavo-spotlight__item {
    box-sizing: border-box;
    height: auto !important;
    margin: 0 !important;
    min-height: 64px;
    overflow: hidden;
    padding-bottom: 12px;
    padding-top: 12px;
}

.home .attavo-spotlight__item > div {
    min-width: 0;
    overflow: hidden;
}

.home .attavo-spotlight__item h3,
.home .attavo-spotlight__item h3 a,
.home .attavo-spotlight__item p {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: normal;
}

.home .attavo-spotlight__item h3 {
    margin-bottom: 4px;
}

.home .attavo-spotlight__item p {
    padding-bottom: 1px;
}

/* Homepage category cards: use the requested light-blue treatment. */
.home .custom-course-icon {
    background: #e7effb;
    border-color: #d5e2f3;
}

.home .custom-course-content ul li a {
    background: #e7effb;
    border-color: #d5e2f3;
    color: #001f46;
}

.home .custom-course-content ul li a .fa-arrow-right {
    color: #001f46;
}

.home .custom-course-content ul li a:hover,
.home .custom-course-content ul li a:focus {
    background: #001f46;
    border-color: #001f46;
    color: #fff;
}

.home .custom-course-content ul li a:hover .fa-arrow-right,
.home .custom-course-content ul li a:focus .fa-arrow-right {
    color: #fff;
}

.attavo-practice-dashboard .attavo-bookmark:focus {
    box-shadow: none;
    outline: none;
}

.attavo-practice-dashboard .attavo-bookmark:focus-visible {
    border-radius: 5px;
    outline: 2px solid #f7bb00;
    outline-offset: 2px;
}

.attavo-practice-dashboard .attavo-comment-action a:hover,
.attavo-practice-dashboard .attavo-comment-action a:focus,
.attavo-practice-dashboard .attavo-comment-action.is-open a {
    background: #001f46;
    border-radius: 5px;
    color: #fff !important;
    padding-left: 9px;
    padding-right: 9px;
}

.attavo-practice-dashboard .attavo-comment-action a:hover i,
.attavo-practice-dashboard .attavo-comment-action a:hover span,
.attavo-practice-dashboard .attavo-comment-action a:focus i,
.attavo-practice-dashboard .attavo-comment-action a:focus span,
.attavo-practice-dashboard .attavo-comment-action.is-open i,
.attavo-practice-dashboard .attavo-comment-action.is-open span {
    color: inherit !important;
}

/*
 * Keep the homepage utility bar identical to the current avatto.com header.
 * The homepage redesign previously replaced the yellow social/login panel and
 * hid the entire utility bar on phones; these rules restore the shared theme
 * header without affecting the redesigned content below it.
 */
.home .header-top {
    background: #001f46;
    border: 0;
    overflow: hidden;
    padding: 0;
}

.home .header-top-left,
.home .header-top-right {
    min-height: 0;
}

.home .header-top-left {
    align-items: initial;
    display: block;
    margin: 5px 0 0;
}

.home .header-top-left ul,
.home .header-top-right ul {
    margin: 0;
}

.home .header-top-left ul li {
    margin: 0 16px 0 0;
}

.home .header-top-left ul li a {
    display: inline;
}

.home .header-top-left ul li a p {
    color: #fff;
    display: inline-block;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 28px;
}

.home .header-top-left ul li a span {
    color: #f7bb00;
    font-size: 16px;
    margin-right: 5px;
}

.home .header-top-right {
    align-items: initial;
    background: #f7bb00;
    display: block;
    min-height: 0;
    padding: 3px 0 6px;
    position: relative;
    text-align: right;
}

.home .header-top-right::after {
    background: #f7bb00;
    bottom: 0;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    right: -4000px;
    top: 0;
    width: 4000px;
}

.home .header-top-right::before {
    border-bottom: 35px solid transparent;
    border-right: 68px solid #f7bb00;
    border-top: 0 solid transparent;
    content: '';
    display: block;
    height: 0;
    left: -67px;
    position: absolute;
    top: 0;
    width: 0;
}

.home .header-top-left::after {
    background: #fff;
    content: '';
    display: block;
    height: 111px;
    position: absolute;
    right: 8px;
    top: -43px;
    transform: rotate(-63deg);
    width: 8px;
}

.home .header-social {
    display: inline-block;
    margin: 0 30px 0 0;
}

.home .header-social h5 {
    color: #001f46;
    display: inline-block;
    font-family: 'Exo 2', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 22.5px;
    margin: 0 5px 0 0;
}

.home .header-social li {
    background: #001f46;
    border-radius: 50%;
    display: inline-block;
    height: 19px;
    line-height: 16px;
    margin: 0;
    text-align: center;
    vertical-align: middle;
    width: 19px;
}

.home .header-social li:hover {
    background: #001f46;
}

.home .header-social li a,
.home .header-social li:hover a {
    color: #f7bb00;
    font-size: 11px;
}

.home .log-in {
    display: inline-block;
    margin: 0 30px 0 0;
}

.home .log-in li {
    display: list-item;
    margin: 0;
}

.home .log-in li a,
.home .log-in li > span:last-child a {
    background: transparent;
    border-radius: 0;
    color: #001f46;
    display: inline;
    font-family: 'Exo 2', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 22.5px;
    margin: 0;
    padding: 0;
}

.home .log-in li > span:first-child {
    display: inline;
    margin-right: 6px;
}

.attavo-comment-error {
    background: #fff0f0;
    border: 1px solid #efb8b8;
    border-radius: 6px;
    color: #a12d2d;
    margin: 0 0 14px !important;
    padding: 10px 12px !important;
}

@media (max-width: 767px) {
    .home .header-top {
        display: block !important;
    }

    .home .header-top-left::after {
        height: 128px;
        right: -12px;
        transform: rotate(-48deg);
    }

    .home .header-top-right::before {
        border-bottom-width: 58px;
        border-right-width: 63px;
        left: -63px;
    }

    .home .header-top-left ul li {
        margin-right: 2px;
    }

    .home .header-top-left ul li a p,
    .home .header-social h5 {
        display: none !important;
    }

    .home .header-top-left ul li a span {
        font-size: 14px;
        margin-right: 3px;
    }

    .home .header-social {
        display: inline-block !important;
        margin-right: 12px;
    }

    .home .log-in {
        margin-right: 12px;
    }

    .home .log-in li a,
    .home .log-in li > span:last-child a {
        font-size: 13px;
        font-weight: 600;
    }

    .home .log-in li > span:first-child {
        display: inline;
    }

    .tm-header-main nav.navbar {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
    }

    .attavo-mobile-header-actions {
        align-items: center;
        display: flex;
        gap: 10px;
        margin-left: auto;
    }

    .js .tm-header-main .navbar .attavo-header-search {
        flex: 0 0 40px;
        left: auto;
        margin: 0 0 0 auto;
        max-width: 100%;
        order: 3;
        position: relative;
        right: auto;
        top: auto;
        width: 40px;
    }

    .js .tm-header-main .navbar .attavo-header-search.is-open {
        flex-basis: 100%;
        margin-top: 10px;
        order: 4;
        width: 100%;
    }

    .js .tm-header-main .navbar .attavo-header-search button[type="submit"],
    .js .tm-header-main .navbar .attavo-header-search button#search_button {
        height: 40px;
        width: 40px;
    }

    .js .tm-header-main .navbar .attavo-header-search input[type="search"] {
        height: 40px;
        padding-right: 48px;
    }

    .js .home .header-main .navbar {
        display: grid !important;
        grid-template-areas: "toggle logo search actions";
        grid-template-columns: 34px minmax(0, 1fr) 40px auto;
    }

    .js .home .tm-header-main .navbar .attavo-header-search {
        flex: none;
        grid-area: search;
        justify-self: end;
        margin: 0 !important;
        order: initial;
        width: 40px !important;
    }

    .js .home .tm-header-main .navbar .attavo-header-search.is-open {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 2px !important;
        width: 100% !important;
    }

    .home .attavo-spotlight__content-list {
        grid-auto-rows: max-content;
        gap: 8px !important;
    }

    .home .attavo-spotlight__item {
        min-height: 54px;
        padding-bottom: 8px;
        padding-top: 8px;
    }
}

@media (max-width: 480px) {
    .home .header-social {
        margin-right: 4px;
    }

    .home .header-social li {
        height: 17px;
        line-height: 12px;
        width: 17px;
    }

    .home .header-social li a,
    .home .header-social li:hover a {
        font-size: 9px;
    }

    .home .log-in {
        margin-right: 3px;
    }

    .home .log-in li {
        line-height: 15px;
    }

    .home .log-in li a,
    .home .log-in li > span:last-child a {
        font-size: 10px;
    }

    .home .log-in li > span:first-child {
        margin-right: 0;
    }
}
