/* =====================================================
   Offices Theme - Main styles
   Palette driven by CSS variables defined in global.css
   ===================================================== */

/* ----------------------------------------- */
/* --------------Header styles-------------- */
/* ----------------------------------------- */

.site-header {
    background-color: var(--header-background-color);
    border-bottom: 1px solid var(--border-color);
}

.site-branding img {
    width: 180px;
    height: auto;
}

.site-header-inner {
    padding: 15px 0;
}

.site-toggle-btn {
    outline: none;
    border: none;
    background-color: transparent;
}

.site-toggle-btn:focus {
    outline: none;
    box-shadow: none;
}

.burger-bar {
    margin: 8px 0;
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--fao-dark);
}

.burger-bar:nth-child(2) {
    width: 22px;
}

/* Desktop navigation */

.site-main-menu-primary ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-main-menu-primary ul li {
    display: block;
}

.site-main-menu-primary ul li a {
    display: block;
    padding: 10px 14px;
    color: var(--fao-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.site-main-menu-primary ul li a:hover,
.site-main-menu-primary ul li.current-menu-item > a {
    color: var(--fao-accent-dark);
}

/* Mobile menu */

.admin-bar div#mobile-navigation {
    top: 46px;
}

div#mobile-navigation {
    position: fixed;
    background: var(--mobile-menu-background-color);
    width: var(--mobile-menu-width);
    height: 100%;
    left: 0;
    top: 0;
    z-index: 999;
    padding: 30px 20px;
    transform: translateX(-100%);
    transition: all 0.3s ease-in;
}

div#mobile-navigation.show {
    transform: translateX(0);
}

.mobile-navigation__logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mobile-navigation__logo .site-branding {
    font-size: 20px;
    color: var(--fao-dark);
    margin: 0;
}

a.mobile-navigation__close {
    font-size: 42px;
    color: var(--mobile-menu-close-btn-color);
    text-decoration: none;
    line-height: 1;
}

.mobile-navigation__menu {
    height: calc(100% - 100px);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-navigation__menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation__menu-list > li > a,
.mobile-navigation__menu .menu-item-has-children ul > li > a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--mobile-menu-link-color);
    font-weight: 600;
}

.mobile-navigation__menu-list > li > a:hover {
    color: var(--mobile-menu-link-hover-color);
}

.mobile-navigation__menu .menu-item-has-children {
    cursor: pointer;
}

/* Reserve space for the caret so labels never run underneath it */
.mobile-navigation__menu .menu-item-has-children > a {
    padding-right: 35px;
}

/* Dropdown submenus (desktop + mobile) */

.menu-item-has-children {
    position: relative;
}

.menu-item-has-children::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    right: 0;
    top: 50%;
    border-top: 2px solid var(--fao-dark);
    border-left: 2px solid var(--fao-dark);
    transform-origin: center;
    transform: rotate(-135deg) translate(50%);
    transition: transform 0.3s ease-in;
}

.mobile-navigation__menu .menu-item-has-children::after {
    top: 18px;
    right: 15px;
}

.desktop-navigation__menu .menu-item-has-children:hover::after,
.mobile-navigation__menu .menu-item-has-children.show::after {
    transform: rotate(45deg);
}

.menu-item-has-children ul {
    position: absolute;
    z-index: 99;
    background: #fff;
    right: -50%;
    top: 100%;
    width: 100%;
    min-width: 200px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transform-origin: top;
    transform: rotateX(90deg);
    opacity: 0;
    transition: all 0.3s ease-in;
    max-height: 250px;
    overflow: auto;
}

.desktop-navigation__menu .menu-item-has-children:hover ul {
    box-shadow: var(--box-shadow-hover);
    transform: rotateX(0deg);
    opacity: 1;
}

.mobile-navigation__menu .menu-item-has-children ul {
    left: 0;
    top: 110%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding-left: 10px;
    list-style: none;
    overflow: hidden;
    position: relative;
    max-height: fit-content;
    height: 0;
}

.mobile-navigation__menu .menu-item-has-children.show ul {
    transform: rotateX(0deg);
    opacity: 1;
    height: 100%;
}

/* Mobile menu overlay + body lock */

.mobile-menu-support::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 40%);
    z-index: 998;
    transform: translateX(-100%);
    transition: all 0.3s ease-in;
}

.mobile-menu-support.mobile-menu-open::before {
    transform: translateX(0);
}

.mobile-menu-open {
    overflow: hidden;
}

/* ----------------------------------------- */
/* -------------Page header (hero)----------- */
/* ----------------------------------------- */

body:not(.page-child) .page-title {
    color: #fff;
}

.front-page-header .page-header-inner {
    display: flex;
    justify-content: center;
    flex-flow: wrap column;
}

.page-header {
    padding: 30px 0;
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: rgba(var(--fao-dark-rgb), 0.35);
}

.page-header.front-page-header {
    min-height: 400px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg,
            rgba(var(--fao-dark-rgb), 0.92) 0%,
            rgba(var(--fao-dark-rgb), 0.74) 55%,
            rgba(var(--fao-dark-rgb), 0.5) 130%);
}

@media only screen and (max-width: 600px) {
    .page-header {
        background-position: right center !important;
    }

    .blog .page-header {
        background-position: left center !important;
    }
}

/* ------------Breadcrumbs styles------------ */

nav#theme-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav#theme-breadcrumbs ol li {
    position: relative;
    display: inline-block;
}

nav#theme-breadcrumbs ol li:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: #cfcfcf;
    border-radius: 50px;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
}

body:not(.page-child) nav#theme-breadcrumbs ol li a,
body:not(.page-child) #breadcrumbs a {
    color: #fff;
    display: block;
    padding-right: 10px;
    text-decoration: underline;
}

body:not(.page-child) nav#theme-breadcrumbs ol li span,
body:not(.page-child) #breadcrumbs span {
    color: #fff;
    display: block;
    padding-right: 10px;
}

body #breadcrumbs span,
body #breadcrumbs a {
    display: inline-block !important;
    padding-right: 0 !important;
}

#breadcrumbs {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
}

body.page-child #breadcrumbs {
    margin-bottom: 15px;
}

/* Breadcrumbs on light background (child page body) */

body.page-child nav#theme-breadcrumbs {
    margin-bottom: 18px;
}

body.page-child nav#theme-breadcrumbs ol li a,
body.page-child nav#theme-breadcrumbs ol li span {
    padding-right: 16px;
}

body.page-child nav#theme-breadcrumbs ol li a {
    color: var(--link-color);
    font-weight: 600;
}

body.page-child nav#theme-breadcrumbs ol li a:hover {
    color: var(--fao-accent);
}

body.page-child nav#theme-breadcrumbs ol li span {
    color: var(--dark-gray-color);
}

body.page-child nav#theme-breadcrumbs ol li:not(:last-child)::after {
    background: #94a3b8;
}

/* ----------------------------------------- */
/* ---------------Search form---------------- */
/* ----------------------------------------- */

.search-form {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    align-items: stretch;
    background: var(--white-color);
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 5px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(var(--fao-dark-rgb), 0.35);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: var(--fao-accent);
    box-shadow: 0 0 0 4px rgba(var(--fao-accent-rgb), 0.28),
        0 12px 32px rgba(var(--fao-dark-rgb), 0.35);
}

.search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--fao-dark);
    outline: none;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-button {
    background-color: var(--fao-accent);
    border: none;
    border-radius: 50px;
    padding: 10px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: var(--fao-accent-dark);
}

.search-button:focus-visible {
    outline: 2px solid var(--fao-dark);
    outline-offset: 2px;
}

.search-icon {
    width: 18px;
    height: 18px;
    fill: #fff;
    flex-shrink: 0;
}

/* Search results header (search.php) */

.search-section .search-results-title {
    font-size: 1.15rem;
    color: var(--fao-dark);
}

.search-section .search-results-title strong {
    color: var(--fao-accent-dark);
}

.no-results {
    text-align: center;
    padding: 40px 15px;
}

.no-results .search-form {
    margin-top: 20px;
}

/* ----------------------------------------- */
/* ---------------Main styles---------------- */
/* ----------------------------------------- */

.page-content {
    margin: 0 auto 50px;
}

/* Front page white section cards */

.home-section {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    margin-bottom: 24px;
}

/* Section headings (front page blocks) */

.section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 30px;
}

.section-heading h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    color: var(--fao-dark);
    margin: 0 0 6px;
}

.section-heading .section-subtitle {
    color: var(--gray-color);
    margin: 0;
    font-size: 0.98rem;
}

.section-heading::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 3px;
    background: var(--fao-accent);
}

/* Popular airlines image cards */

.contain-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.contain-img img {
    min-height: 350px;
    max-height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.contain-img:hover img {
    transform: scale(1.05);
}

.contain-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(var(--fao-dark-rgb), 0.88) 0%,
            rgba(var(--fao-dark-rgb), 0.3) 45%,
            transparent 72%);
    pointer-events: none;
}

.contain-img .contain-title {
    position: absolute;
    width: 90%;
    text-align: center;
    top: 80%;
    left: 50%;
    transform: translate(-50%, 0);
    transition: all 0.3s ease;
    z-index: 2;
}

.contain-img .contain-title a {
    color: #fff;
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.contain-img .contain-title:hover {
    top: 78%;
}

.contain-img .contain-title:hover a {
    color: var(--fao-accent-light);
}

/* Feature list (front page below-banner) */

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.feature-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--fao-accent);
}

.below-banner-image {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

/* ----------------------------------------- */
/* ---------------Post cards----------------- */
/* ----------------------------------------- */

.post-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(var(--fao-dark-rgb), 0.28);
}

.post-card .card-img-top {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-card .card-title {
    font-size: 1.02rem;
    line-height: 1.45;
    margin: 0 0 8px;
}

.post-card .card-title a {
    color: var(--fao-dark);
    font-weight: 700;
}

.post-card .card-title a:hover,
.post-card:hover .card-title a {
    color: var(--fao-accent-dark);
}

.post-card-meta {
    font-size: 0.78rem;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.post-card-excerpt {
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.post-card-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fao-accent-dark);
}

.post-card-link:hover {
    color: var(--fao-accent);
}

/* Simple link cards (sibling offices, text cards) */

.card .card-title {
    color: var(--fao-dark);
    font-weight: 600;
}

.card .card-title:hover {
    color: var(--fao-accent-dark);
}

/* ----------------------------------------- */
/* --------------Single post----------------- */
/* ----------------------------------------- */

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.post-meta i {
    color: var(--fao-accent);
    margin-right: 5px;
}

.post-meta a {
    color: var(--gray-color);
}

.post-meta a:hover {
    color: var(--fao-accent-dark);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0;
}

.post-tags a {
    display: inline-block;
    padding: 4px 14px;
    background: var(--light-gray-color);
    color: var(--dark-gray-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.post-tags a:hover {
    background: var(--fao-dark);
    color: #fff;
}

.page-links {
    margin: 24px 0;
    font-weight: 600;
}

.page-links .post-page-numbers {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(var(--fao-dark-rgb), 0.25);
    border-radius: 6px;
    margin-right: 6px;
}

.page-links a.post-page-numbers:hover,
.page-links .post-page-numbers.current {
    background: var(--fao-dark);
    border-color: var(--fao-dark);
    color: #fff;
}

/* Prev / next post navigation */

.post-navigation {
    margin: 34px 0;
}

.post-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1 1 240px;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 18px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    border-color: rgba(var(--fao-dark-rgb), 0.3);
    box-shadow: var(--box-shadow);
}

.post-navigation .meta-nav {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-color);
    margin-bottom: 4px;
}

.post-navigation .nav-links a {
    display: block;
    color: var(--fao-dark);
    font-weight: 600;
}

.post-navigation .nav-links a:hover {
    color: var(--fao-accent-dark);
}

/* Author box */

body.single-post .author-info-on-blog {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin: 40px 0;
}

body.single-post .author-info-on-blog img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid rgba(var(--fao-dark-rgb), 0.18);
}

body.single-post .author-info-on-blog .author-bio {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

body.single-post .author-info-on-blog .author-bio .author-name span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-color);
}

body.single-post .author-info-on-blog .author-bio .author-name p {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--fao-dark);
    margin: 4px 0 0;
}

body.single-post .post-author-on-blog ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.single-post .post-author-on-blog ul li a {
    font-weight: 600;
}

body.single-post .post-author-on-blog p {
    margin-bottom: 8px;
}

/* ----------------------------------------- */
/* -----------------Comments----------------- */
/* ----------------------------------------- */

.comments-area {
    margin-top: 40px;
}

.comments-area h3,
.comments-title {
    color: var(--fao-dark);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.comment-list li {
    list-style: none;
}

.comment-list .comment-body {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 18px;
}

.comment-list .bypostauthor > .comment-body {
    border-color: rgba(var(--fao-dark-rgb), 0.35);
}

.comment-list .avatar {
    border-radius: 50%;
    border: 2px solid rgba(var(--fao-dark-rgb), 0.18);
}

.comment-list .comment-meta {
    margin-bottom: 8px;
}

.comment-list .fn {
    font-weight: 700;
    color: var(--fao-dark);
}

.comment-list .comment-metadata {
    font-size: 0.82rem;
}

.comment-list .comment-metadata a {
    color: var(--gray-color);
}

.comment-list .children {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0 28px;
}

.comment-list .reply a {
    display: inline-block;
    padding: 3px 14px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--dark-gray-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.comment-list .reply a:hover {
    background: var(--fao-dark);
    border-color: var(--fao-dark);
    color: #fff;
}

.comment-respond {
    padding: 20px 10px;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 24px;
}

#commentform {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.comment-notes {
    font-size: 14px;
    color: var(--gray-color);
}

.comment-form p {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#commentform .comment-form-email,
#commentform .comment-form-author {
    width: calc(50% - 15px);
}

#commentform .comment-form-email {
    margin-left: auto;
}

#commentform label {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--fao-dark);
}

#commentform input,
#commentform textarea {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    color: var(--body-color);
}

#commentform input:focus,
#commentform textarea:focus {
    border-color: var(--fao-accent);
    box-shadow: 0 0 0 3px rgba(var(--fao-accent-rgb), 0.15);
    outline: none;
}

#commentform textarea {
    resize: vertical;
}

.comment-form-cookies-consent {
    flex-direction: row !important;
    align-items: center;
}

.comment-form-cookies-consent input {
    margin-right: 8px;
}

#commentform .submit {
    background-color: var(--fao-dark);
    color: #fff;
    padding: 12px 26px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#commentform .submit:hover {
    background-color: var(--fao-darker);
}

.comment-nav-below .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

/* ----------------------------------------- */
/* -----------------Sidebar------------------ */
/* ----------------------------------------- */

.sidebar {
    border: 1px solid var(--border-color);
    background: var(--white-color);
    overflow: hidden;
    border-radius: var(--border-radius);
}

.sidebar h2,
.sidebar h3 {
    background: var(--fao-dark);
    color: var(--white-color);
    padding: 10px 14px;
    font-size: 1.08rem;
    margin: 0;
}

.sidebar .widget {
    padding-bottom: 8px;
}

.sidebar ul {
    margin: 0;
    padding: 10px 14px 14px;
    list-style: none;
}

.sidebar ul > li {
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.sidebar ul > li:last-child {
    border-bottom: none;
}

.sidebar ul > li img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar ul > li > a {
    display: block;
    color: var(--fao-dark);
    font-weight: 600;
    font-size: 0.93rem;
}

.sidebar ul > li > a:hover {
    color: var(--fao-accent-dark);
}

/* Child page mini sidebar */

.child-page-sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--fao-dark);
    font-weight: 600;
    font-size: 0.92rem;
}

.child-page-sidebar ul li a img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 64px;
}

.child-page-sidebar ul li a:hover {
    color: var(--fao-accent-dark);
}

/* ----------------------------------------- */
/* -----------Parent / child pages----------- */
/* ----------------------------------------- */

.child-pages-grid {
    margin: 34px 0 10px;
}

.child-pages-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--fao-dark);
}

.child-pages-heading::before {
    content: '';
    width: 6px;
    height: 26px;
    border-radius: 4px;
    background: var(--fao-accent);
    flex-shrink: 0;
}

.other-locations .card .card-title {
    display: block;
}

/* Content bottom banner heading (used inside page content) */

article > h2:nth-last-of-type(1) {
    padding: 12px 18px;
    color: var(--fao-dark);
    background-color: var(--light-gray-color);
    border-left: 4px solid var(--fao-accent);
    text-align: left;
    display: block;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1.4;
}

/* Airline alphabet divider */

.airline-alphabet {
    display: inline-block;
    padding: 5px 30px;
    position: relative;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--fao-dark);
}

.airline-alphabet::before,
.airline-alphabet::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: rgba(var(--fao-dark-rgb), 0.25);
    top: 50%;
    transform: translateY(-50%);
}

.airline-alphabet::before {
    left: -15px;
}

.airline-alphabet::after {
    right: -15px;
}

/* FAQ accordion (Rank Math style schema-faq-section blocks converted
   into native <details> elements by offices_faq_accordion_content) */

.faq-item {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 0 0 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(var(--fao-dark-rgb), 0.28);
    box-shadow: var(--box-shadow);
}

.faq-item summary.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    cursor: pointer;
    color: var(--fao-dark);
    background: var(--white-color);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5;
    list-style: none;
    user-select: none;
}

.faq-item summary.faq-question::-webkit-details-marker {
    display: none;
}

.faq-item summary.faq-question:hover {
    color: var(--fao-accent-dark);
}

.faq-item .faq-toggle {
    position: relative;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--light-gray-color);
    transition: background 0.3s ease;
}

.faq-item .faq-toggle::before,
.faq-item .faq-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--fao-dark);
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item .faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item[open] .faq-toggle {
    background: var(--fao-dark);
}

.faq-item[open] .faq-toggle::before,
.faq-item[open] .faq-toggle::after {
    background: #fff;
}

.faq-item .faq-answer {
    padding: 2px 18px 16px;
    color: var(--body-color);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.faq-item .faq-answer p {
    margin: 0 0 12px;
}

.faq-item .faq-answer p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------- */
/* ---------------404 page------------------- */
/* ----------------------------------------- */

.error-container {
    text-align: center;
    display: flex;
    flex-flow: wrap column;
    justify-content: center;
    align-items: center;
    padding: 60px 15px;
}

.error-container h1 {
    font-size: 100px;
    font-weight: bold;
    color: var(--fao-dark);
    text-shadow: 2px 2px 0 rgba(var(--fao-accent-rgb), 0.25);
    margin: 0;
}

.error-container p {
    color: var(--dark-gray-color);
    margin: 10px 0 20px;
}

.error-container .home-btn {
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: underline;
}

.error-container .error-cta-subtext {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    font-weight: 600;
}

/* The main call-to-action button with a pulsing animation */

.error-cta-button {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 12px;
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    margin-bottom: 20px;
    background: var(--fao-dark);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(var(--fao-dark-rgb), 0.35);
    animation: error-cta-pulse 2s infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes error-cta-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--fao-dark-rgb), 0.45);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(var(--fao-dark-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--fao-dark-rgb), 0);
    }
}

.error-cta-button:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(var(--fao-dark-rgb), 0.45);
    animation: none;
    background: var(--fao-darker);
}

.error-cta-button .error-cta-icon {
    animation: error-cta-ring 1.5s infinite;
}

@keyframes error-cta-ring {
    0%, 100% {
        transform: rotate(0deg);
    }

    10%, 30% {
        transform: rotate(-10deg);
    }

    20%, 40% {
        transform: rotate(10deg);
    }
}

/* ----------------------------------------- */
/* ----------Modern Flight Support Card------ */
/* ----------------------------------------- */

.flight-support-card-wrapper {
    margin: 40px auto;
    position: relative;
}

.flight-card-container {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(var(--fao-dark-rgb), 0.12);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(var(--fao-dark-rgb), 0.08),
        0 8px 16px rgba(var(--fao-dark-rgb), 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

/* Header with icon */

.flight-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.flight-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--fao-dark);
    border-radius: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(var(--fao-dark-rgb), 0.2);
}

.flight-icon {
    width: 28px;
    height: 28px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.flight-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fao-dark);
    margin: 0;
    background: linear-gradient(90deg, var(--fao-dark), var(--dark-gray-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

/* Content */

.flight-card-content {
    position: relative;
    z-index: 1;
}

.flight-card-text {
    color: var(--dark-gray-color);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.flight-card-text.highlight {
    color: var(--fao-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 18px;
    background: var(--light-gray-color);
    border-radius: 12px;
    border-left: 4px solid var(--fao-dark);
    margin: 20px 0;
}

/* CTA Button */

.flight-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 32px;
    background: var(--fao-dark);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(var(--fao-dark-rgb), 0.25);
    margin-top: 10px;
}

.flight-cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--fao-accent-dark) 0%, var(--fao-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.flight-cta-button:hover {
    color: #fff !important;
}

.flight-cta-button:hover::before {
    opacity: 1;
}

.button-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.flight-cta-button:hover .button-icon {
    transform: translateX(5px);
}

/* Ripple effect for button */

.flight-cta-button::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.35;
    }

    100% {
        transform: scale(14);
        opacity: 0;
    }
}

/* Decorative element */

.flight-card-container::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--fao-dark-rgb), 0.05) 0%, transparent 70%);
    z-index: 0;
}

/* ----------------------------------------- */
/* ------------------Footer------------------ */
/* ----------------------------------------- */

.footer {
    background-color: var(--footer-background-color);
    padding: 50px 0 34px;
    margin-top: 50px;
    color: var(--footer-text-color);
}

.footer a {
    color: var(--footer-link-color);
}

.footer a:hover {
    color: var(--footer-link-hover-color);
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer ul li > a {
    display: block;
    padding: 4px 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.footer h2,
.footer h3 {
    color: var(--footer-heading-color);
    font-size: 1.12rem;
    margin: 0 0 16px;
}

.footer h2::after,
.footer h3::after {
    content: '';
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 8px;
    border-radius: 3px;
    background: var(--fao-accent);
}

/* Footer middle row (menus + social) */

.footer-middle {
    background-color: var(--footer-background-color);
    border-top: 1px solid var(--footer-border-color);
    padding: 18px 0;
    color: var(--footer-text-color);
}

.footer-middle a {
    color: var(--footer-link-color);
}

.footer-middle a:hover {
    color: var(--footer-link-hover-color);
}

.footer-middle ul li a {
    display: block;
    padding: 2px 0;
}

.footer-social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--footer-border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social li a:hover {
    background: var(--fao-accent);
    border-color: var(--fao-accent);
    color: #fff;
}

.footer-social svg {
    width: 16px;
}

/* Footer disclaimer strip */

.footer-disclaimer {
    background-color: var(--footer-background-color);
    border-top: 1px solid var(--footer-border-color) !important;
    padding: 14px 0 6px;
    color: var(--footer-text-color);
    font-size: 0.88rem;
}

.footer-disclaimer p {
    margin: 0 0 8px;
}

.footer-disclaimer a {
    color: var(--footer-link-hover-color);
    text-decoration: underline;
}

/* Footer bottom bar */

.footer-bottom {
    background-color: var(--bottom-footer-background-color);
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

/* ----------------------------------------- */
/* -------------Responsive tweaks------------ */
/* ----------------------------------------- */

@media screen and (min-width: 992px) {
    .mobile-navigation {
        display: none;
    }

    .front-page-header .page-header-inner,
    .search-page-header .page-header-inner {
        max-width: 50%;
        margin: 0 auto;
        text-align: center;
    }

    .menu-item-has-children {
        padding-right: 10px;
    }

    .menu-item-has-children ul {
        min-width: 50vw;
        column-count: 3;
    }

    .mobile-menu-support::before {
        display: none;
    }

    .mobile-menu-open {
        overflow: auto;
    }
}

@media screen and (max-width: 520px) {
    body.single-post .author-info-on-blog {
        gap: 5px;
    }

    body.single-post .author-info-on-blog .author-bio {
        flex-direction: column;
        align-items: center;
    }

    body.single-post .author-info-on-blog .author-bio .author-name {
        text-align: center;
    }

    .page-header {
        height: auto !important;
        min-height: 250px !important;
    }
}

@media (max-width: 768px) {
    .flight-card-container {
        padding: 16px 12px;
        border-radius: 18px;
    }

    .flight-card-title {
        font-size: 1.3rem;
    }

    .flight-card-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .flight-cta-button {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .flight-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .flight-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .flight-card-container {
        padding: 20px;
        border-radius: 16px;
    }

    .flight-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }

    .flight-card-title {
        font-size: 1.2rem;
    }

    .flight-cta-button {
        display: inline-block;
        padding: 15px;
    }
}

/* ----------------------------------------- */
/* ----------Office detail page (ACF)-------- */
/* ----------------------------------------- */

/* Hero card (child page top section) */

.office-hero-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 32px;
}

@media (max-width: 576px) {
    .office-hero-card {
        padding: 20px 16px;
    }
}

.office-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light-gray-color);
    color: var(--dark-gray-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    margin: 0 0 14px;
}

.office-hero-eyebrow i {
    color: var(--fao-accent);
}

.office-hero-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--fao-dark);
    margin: 0 0 20px;
    line-height: 1.3;
}

/* Contact rows */

.office-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.office-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border-color);
}

.office-contact-list li:last-child {
    border-bottom: none;
}

.office-contact-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray-color);
    color: var(--fao-dark);
    border-radius: 10px;
    font-size: 1.05rem;
}

.office-contact-text {
    color: var(--dark-gray-color);
    line-height: 1.6;
    padding-top: 7px;
    word-break: break-word;
}

.office-contact-text a {
    color: var(--link-color);
    font-weight: 600;
}

.office-contact-text a:hover {
    color: var(--fao-accent);
}

/* Hero actions + feedback button */

.office-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.office-hero-figure {
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: var(--white-color);
}

.office-hero-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.office-hero-feedback {
    margin-top: 16px;
}

/* Section headings on child/parent pages (neutral, small accent bar) */

.child-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    color: var(--fao-dark);
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--fao-dark);
    border-radius: 10px;
    padding: 12px 18px;
    margin: 0 0 16px;
}

.child-section-heading::before {
    content: '';
    width: 6px;
    height: 24px;
    border-radius: 4px;
    background: var(--fao-accent);
    flex-shrink: 0;
}

.child-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--fao-dark);
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 16px;
    margin: 0;
}

.child-sidebar-heading i {
    color: var(--fao-accent-light);
}

/* Sibling office link cards (Other Locations) */

.office-link-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.office-link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--fao-dark-rgb), 0.32);
    box-shadow: var(--box-shadow);
}

.office-link-card .card-body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
}

.office-link-card-icon {
    color: var(--fao-accent);
    font-size: 0.95rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.office-link-card .card-title {
    color: var(--fao-dark);
    font-weight: 600;
    font-size: 0.96rem;
    line-height: 1.45;
}

.office-link-card .card-title:hover {
    color: var(--fao-accent-dark);
}

/* Child page sidebar list */

.child-page-sidebar ul {
    padding: 10px 14px 14px;
}

.child-page-sidebar ul li {
    border-bottom: 1px solid var(--border-color);
    padding: 4px 0;
    margin: 0 0 2px;
}

.child-page-sidebar ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.child-page-sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 8px;
    color: var(--fao-dark);
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.4;
    transition: background 0.3s ease, color 0.3s ease;
}

.child-page-sidebar ul li a img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 64px;
}

.child-page-sidebar ul li a:hover {
    background: var(--light-gray-color);
    color: var(--fao-accent-dark);
}

/* Legacy CTA button (kept for content that links to it) */

.cta-unset {
    display: inline-block;
    color: var(--white-color);
    background-color: var(--fao-dark);
    border: 2px solid var(--fao-dark);
    padding: 8px 24px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.3s ease-in;
}

.cta-unset:hover {
    color: var(--white-color);
    background-color: var(--fao-darker);
    border-color: var(--fao-darker);
}

/* Office social icons */

.office-socials li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--fao-dark);
    transition: all 0.3s ease;
}

.office-socials li a:hover {
    background: var(--fao-dark);
    border-color: var(--fao-dark);
    color: #fff;
}

.office-socials svg {
    width: 16px;
}
