/* ═══════════════════════════════════════
   AIRLINES DIRECTORY - ENHANCED STYLING
   Add below your existing CSS
═══════════════════════════════════════ */

.deals-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #eef3f9 100%);
    padding: 65px 0 70px;
    isolation: isolate;
}

/* Subtle decorative background circles */
.deals-section::before,
.deals-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: floatCircle 8s ease-in-out infinite alternate;
}

.deals-section::before {
    width: 220px;
    height: 220px;
    top: -100px;
    left: -65px;
    background: rgba(0, 123, 255, 0.07);
}

.deals-section::after {
    width: 280px;
    height: 280px;
    right: -100px;
    bottom: -140px;
    background: rgba(0, 86, 179, 0.06);
    animation-delay: 1.5s;
}

/* Animated section heading */
.deals-title {
    position: relative;
    display: table;
    margin: 0 auto 38px;
    padding-bottom: 14px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #142238;
    text-align: center;
    text-transform: uppercase;
    animation: titleReveal 0.8s ease-out both;
}

.deals-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 65px;
    height: 4px;
    border-radius: 10px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    transform: translateX(-50%);
    animation: underlineGrow 0.8s ease-out 0.3s both;
}

/* Airline directory layout */
.deals-section .row {
    display: flex;
    row-gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
}

/* Individual airline columns */
.deals-section .row>div {
    display: flex;
    animation: cardReveal 0.65s ease-out both;
}

.deals-section .row>div:nth-child(1) {
    animation-delay: 0.1s;
}

.deals-section .row>div:nth-child(2) {
    animation-delay: 0.2s;
}

.deals-section .row>div:nth-child(3) {
    animation-delay: 0.3s;
}

.deals-section .row>div:nth-child(4) {
    animation-delay: 0.4s;
}

/* Airline links styled as elegant cards */
.deals-section .row>div>a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 76px;
    padding: 20px 18px;
    overflow: hidden;
    border: 1px solid #e0e8f2;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 18px rgba(20, 45, 80, 0.06);
    color: #25364d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

/* Animated arrow icon */
.deals-section .row>div>a .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #eaf3ff;
    color: #007bff;
    font-size: 14px;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

/* Soft animated shine on hover */
.deals-section .row>div>a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(110deg,
            transparent,
            rgba(255, 255, 255, 0.75),
            transparent);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
    pointer-events: none;
}

/* Hover effects */
.deals-section .row>div>a:hover {
    color: #0069d9;
    border-color: #8ec5ff;
    box-shadow: 0 12px 28px rgba(0, 105, 217, 0.13);
    transform: translateY(-6px);
}

.deals-section .row>div>a:hover::before {
    left: 150%;
}

.deals-section .row>div>a:hover .fa {
    color: #fff;
    background: linear-gradient(135deg, #007bff, #00b4ff);
    transform: translateX(4px);
}

/* Keyboard accessibility */
.deals-section .row>div>a:focus-visible {
    outline: 3px solid #80bdff;
    outline-offset: 4px;
    border-color: #007bff;
}

/* ═══════════════════════════════════════
   ANIMATION KEYFRAMES
═══════════════════════════════════════ */

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes underlineGrow {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 65px;
        opacity: 1;
    }
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatCircle {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(20px, -15px);
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
═══════════════════════════════════════ */

@media (max-width: 991px) {
    .deals-section {
        padding: 50px 0;
    }

    .deals-section .row>div>a {
        min-height: 72px;
        padding: 16px 14px;
    }
}

@media (max-width: 768px) {
    .deals-title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .deals-section .row {
        row-gap: 14px;
    }

    .deals-section .row>div>a {
        font-size: 14px;
        min-height: 66px;
    }
}

@media (max-width: 480px) {
    .deals-section {
        padding: 40px 0;
    }

    .deals-section .row {
        margin-left: -7px;
        margin-right: -7px;
    }

    .deals-section .row>div {
        padding-left: 7px;
        padding-right: 7px;
    }

    .deals-section .row>div>a {
        gap: 9px;
        padding: 13px 10px;
        min-height: 64px;
        font-size: 13px;
        border-radius: 10px;
    }

    .deals-section .row>div>a .fa {
        width: 27px;
        height: 27px;
        font-size: 12px;
    }
}

/* Respect reduced-motion accessibility preferences */
@media (prefers-reduced-motion: reduce) {

    .deals-section *,
    .deals-section *::before,
    .deals-section *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== 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 */
.faq {
    margin-top: 56px;
    padding-bottom: 40px
}

.faq 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
    }

    .faq {
        margin-top: 36px
    }

    .faq 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 */
.faq {
    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,
    .faq,
    .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;
    }
}
