/* ===== Flights  Details Css ========= */

:root {
    --blue: #0a6cdc;
    --green: #0b7a4b;
    --text: #2b2b2b;
    --bar: #eeeeee;
    --border: #1f7ae0
}

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px
}

/* Feature box */
.features {
    margin: 38px auto 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px 30px 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px
}

.feature {
    display: flex;
    gap: 26px;
    align-items: flex-start
}

.feature svg {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    stroke: var(--green);
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round
}

.feature h3 {
    color: var(--blue);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 6px
}

.feature p {
    font-size: 16px;
    color: #333
}

/* Content */
.content {
    padding: 0 15px;
    margin-top: 52px
}

.content h1 {
    color: var(--blue);
    font-size: 29px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 16px
}

.content p {
    font-size: 16px;
    margin-bottom: 10px
}

.content h2 {
    color: var(--blue);
    font-size: 21px;
    font-weight: 400;
    margin: 14px 0 2px
}

/* FAQ */

.faq1 h2 {
    color: var(--blue);
    font-size: 25px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 14px
}

.faq-item {
    margin-bottom: 5px
}

.faq-q {
    width: 100%;
    background: var(--bar);
    border: 0;
    text-align: left;
    font: inherit;
    font-size: 15.5px;
    color: #222;
    padding: 0 18px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: background .2s
}

.faq-q:hover {
    background: #e4e4e4
}

.faq-q:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px
}

.faq-q .icon {
    font-size: 18px;
    color: #555;
    flex: 0 0 auto;
    transition: transform .25s
}

.faq-item.open .icon {
    transform: rotate(45deg)
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    background: #f7f7f7;
    transition: max-height .3s ease
}

.faq-a p {
    padding: 14px 18px;
    font-size: 15px;
    margin: 0
}

/* Tablet */
@media (max-width:991px) {
    .features {
        padding: 24px 22px;
        gap: 22px 28px
    }

    .feature {
        gap: 18px
    }

    .feature h3 {
        font-size: 21px
    }

    .content h1 {
        font-size: 26px
    }
}

/* Mobile */
@media (max-width:640px) {
    .features {
        grid-template-columns: 1fr;
        border-radius: 14px;
        margin-top: 20px
    }

    .feature svg {
        flex-basis: 50px;
        width: 50px;
        height: 50px
    }

    .feature h3 {
        font-size: 20px
    }

    .feature p {
        font-size: 15px
    }

    .content {
        margin-top: 34px
    }

    .content h1 {
        font-size: 23px
    }

    .content p {
        font-size: 15px
    }

    .content h2 {
        font-size: 19px
    }

    .faq1 {
        margin-top: 36px
    }

    .faq1 h2 {
        font-size: 21px
    }

    .faq-q {
        font-size: 14.5px;
        min-height: 52px;
        padding: 10px 14px
    }
}

@media (prefers-reduced-motion:reduce) {

    .faq-a,
    .faq-q .icon {
        transition: none
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Feature box entrance animation */
.features {
    animation: featuresFadeIn 0.8s ease-out both;
    box-shadow: 0 8px 25px rgba(10, 108, 220, 0.06);
    transition:
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}

.features:hover {
    box-shadow: 0 14px 35px rgba(10, 108, 220, 0.12);
    border-color: var(--blue);
}

/* Individual feature hover effect */
.feature {
    padding: 12px;
    border-radius: 12px;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    animation: featureSlideUp 0.7s ease-out both;
}

.feature:nth-child(2) {
    animation-delay: 0.12s;
}

.feature:nth-child(3) {
    animation-delay: 0.24s;
}

.feature:nth-child(4) {
    animation-delay: 0.36s;
}

.feature:hover {
    background-color: rgba(10, 108, 220, 0.045);
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(10, 108, 220, 0.07);
}

/* Feature icon animation */
.feature svg {
    transition:
        transform 0.4s ease,
        stroke 0.3s ease;
}

.feature:hover svg {
    transform: scale(1.1) rotate(-5deg);
    stroke: var(--blue);
}

/* Feature heading animation */
.feature h3 {
    transition: color 0.3s ease;
}

.feature:hover h3 {
    color: var(--green);
}

/* Content entrance animation */
.content {
    animation: contentFadeIn 0.9s ease-out both;
    animation-delay: 0.15s;
}

/* Heading underline effect */
.content h1 {
    position: relative;
    padding-bottom: 12px;
}

.content h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 65px;
    height: 3px;
    background: linear-gradient(90deg,
            var(--blue),
            var(--green));
    border-radius: 10px;
    transform: translateX(-50%);
    transition: width 0.35s ease;
}

.content h1:hover::after {
    width: 115px;
}

/* Section headings */
.content h2 {
    position: relative;
    transition:
        color 0.3s ease,
        padding-left 0.3s ease;
}

.content h2:hover {
    color: var(--green);
    padding-left: 6px;
}

/* Paragraph readability */
.content p,
.feature p {
    line-height: 1.75;
}

/* FAQ container entrance */
.faq1 {
    animation: contentFadeIn 0.8s ease-out both;
    animation-delay: 0.25s;
}

/* FAQ question styling */
.faq-q {
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        padding-left 0.3s ease,
        box-shadow 0.3s ease;
}

.faq-q::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--blue);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.faq-q:hover {
    color: var(--blue);
    padding-left: 23px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.faq-q:hover::before,
.faq-item.open .faq-q::before {
    transform: scaleY(1);
    transform-origin: top;
}

/* FAQ plus icon animation */
.faq-q .icon {
    display: inline-block;
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.faq-q:hover .icon {
    color: var(--blue);
}

.faq-item.open .faq-q {
    background: #e5efff;
    color: var(--blue);
}

/* FAQ answer appearance
   Works with your existing open/close logic */
.faq-a {
    border-radius: 0 0 8px 8px;
}

.faq-item.open .faq-a {
    border-top: 1px solid rgba(10, 108, 220, 0.12);
}

.faq-a p {
    line-height: 1.8;
    animation: answerFadeIn 0.35s ease both;
}

/* Keyframe animations */
@keyframes featuresFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes featureSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes answerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet and mobile refinements */
@media (max-width: 640px) {
    .feature:hover {
        transform: translateY(-2px);
    }

    .feature:hover svg {
        transform: scale(1.05);
    }

    .faq-q:hover {
        padding-left: 19px;
    }

    .features {
        box-shadow: 0 5px 18px rgba(10, 108, 220, 0.07);
    }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .features,
    .feature,
    .feature svg,
    .feature h3,
    .content,
    .content h1::after,
    .content h2,
    .faq1,
    .faq-q,
    .faq-q::before,
    .faq-q .icon,
    .faq-a p {
        animation: none !important;
        transition: none !important;
    }
}


/* Flight Hero Section */
.flight-hero {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background-color: #eaf0f7;
}

/* Hero Background Image */
.flight-hero .flight-hero-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: none;
    transition: transform 0.8s ease;
}

/* Smooth Zoom Animation */
.flight-hero:hover .flight-hero-bg {
    transform: scale(1.03);
}

/* Large Desktop Screens */
@media (min-width: 1400px) {
    .flight-hero {
        height: 520px;
    }
}

/* Laptop Screens */
@media (min-width: 992px) and (max-width: 1199px) {
    .flight-hero {
        height: 400px;
    }
}

/* Tablet Devices */
@media (min-width: 768px) and (max-width: 991px) {
    .flight-hero {
        height: 320px;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .flight-hero {
        height: 240px;
    }

    .flight-hero .flight-hero-bg {
        object-position: center;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .flight-hero {
        height: 190px;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .flight-hero {
        height: 160px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .flight-hero .flight-hero-bg {
        transition: none;
    }

    .flight-hero:hover .flight-hero-bg {
        transform: none;
    }
}
