/**
 * Classic Group - Custom Styles & Transitions
 * Supplements index-C1MSE6uh.css for carousel, animations, progress bars, and modal.
 */

/* -------------------------------------------------------------
   Hero Carousel Styles
   ------------------------------------------------------------- */
.carousel-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slides-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
}

@media (min-width: 768px) {
    .carousel-slides-wrapper {
        min-height: 800px;
    }
}

.carousel-slider-container .carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slider-container .carousel-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.custom-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 20;
}

.custom-dots .slick-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-dots .slick-dots li {
    margin: 0;
    height: 0.75rem;
    width: 0.75rem;
    list-style: none;
}

.custom-dots .slick-dots li button {
    height: 100%;
    width: 100%;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 0;
    transition: all 0.3s ease;
}

.custom-dots .slick-dots li.slick-active button,
.custom-dots .slick-dots li button:hover {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* -------------------------------------------------------------
   Progress Bars Animation (Our Legacy & Impact)
   ------------------------------------------------------------- */
.custom-progress-bar-item .progress-fill-line {
    transition: width 1.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-progress-bar-item .progress-thumb-dot {
    transition: left 1.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-progress-bar-item .progress-label-wrap,
.custom-progress-bar-item .progress-sublabel-wrap {
    transition: margin-left 1.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* -------------------------------------------------------------
   Sticky Header Transition
   ------------------------------------------------------------- */
.header.is-sticky {
    position: sticky;
    top: 0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    z-index: 50;
}

/* -------------------------------------------------------------
   Mobile Menu Transition
   ------------------------------------------------------------- */
.mobile-menu-wrap {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-wrap.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-wrap .mobile-menu {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #ffffff;
    padding: 24px;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
}

.mobile-menu-wrap.show .mobile-menu {
    transform: translateX(0);
}

.mobile-submenu.closed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.mobile-submenu.open {
    max-height: 400px;
    opacity: 1;
    transition: max-height 0.4s ease-in, opacity 0.4s ease-in;
}

/* -------------------------------------------------------------
   PDF Modal Viewer
   ------------------------------------------------------------- */
#pdf-modal.flex {
    display: flex !important;
}

#pdf-modal.hidden {
    display: none !important;
}

/* -------------------------------------------------------------
   Offer Carousel Navigation Buttons
   ------------------------------------------------------------- */
#carouselPrevBtn,
#carouselNextBtn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 40 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 9999px !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

#carouselPrevBtn {
    left: 0 !important;
}

#carouselNextBtn {
    right: 0 !important;
}

#carouselPrevBtn:hover,
#carouselNextBtn:hover {
    background-color: #e5e7eb !important;
}

#carouselPrevBtn:active,
#carouselNextBtn:active {
    transform: translateY(-50%) scale(0.95) !important;
}

#carouselPrevBtn svg,
#carouselNextBtn svg {
    width: 18px !important;
    height: 18px !important;
    color: #0A2471 !important;
    fill: #0A2471 !important;
    display: block !important;
}

/* Smooth slow transition for offer carousel cards stepping down/up */
.partner-card {
    transition: transform 900ms cubic-bezier(0.25, 1, 0.5, 1), margin-top 900ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 900ms cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* -------------------------------------------------------------
   Infinite Smooth Attention Marquee
   ------------------------------------------------------------- */
@keyframes classicMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.attention-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: classicMarquee 35s linear infinite;
    font-size: 50px;
}

@media (min-width: 768px) {

    .attention-marquee-track,
    .attention-marquee-track * {
        font-size: 130px !important;
        line-height: 1.1;
    }
}

.attention-marquee-track:hover {
    animation-play-state: paused;
}

/* -------------------------------------------------------------
   Dashed Line Connecting Diagram
   ------------------------------------------------------------- */
.legacy-diagram-container {
    pointer-events: none;
}



/* -------------------------------------------------------------
   Contact Us Form & Stationery Card Layout (Matches Live Design)
   ------------------------------------------------------------- */
.contact-section-wrapper {
    background-color: #f1f4fb;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.contact-section-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    max-width: 1060px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-section-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 40px;
    }
}

.contact-left-col {
    width: 100%;
    max-width: 440px;
    flex-shrink: 0;
}

.contact-left-title {
    font-size: 42px;
    line-height: 1.15;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #2D3B51;
    margin-bottom: 24px;
}

.contact-left-title span.blue-text {
    color: #0A2471;
    font-weight: 700;
}

.contact-left-title span.dot-red {
    color: #CB0917;
}

.contact-consultation-card {
    border: 1.5px solid #CB0917;
    background: transparent;
    padding: 24px 20px;
    border-radius: 4px;
    position: relative;
}

.contact-consultation-card p {
    color: #2D3B51;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.contact-consultation-card .consult-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: #2D3B51;
}

.contact-right-col {
    position: relative;
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Contact Us Form & Stationery Card Layout (Live React Site Equivalent) */
.contact-stationery-img-wrapper {
    display: none;
}

@media (min-width: 768px) {
    .contact-stationery-img-wrapper {
        display: block !important;
        width: 50% !important;
        margin-left: auto !important;
    }
}

.contact-form-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 320px;
    background-color: #EAEAEA;
    padding: 28px 24px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.contact-form-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    color: #2D3B51;
    margin: 0 0 16px 0;
}

.contact-form-card h3 span.blue-text {
    color: #1D357D;
    font-weight: 700;
}

.contact-form-card h3 span.dot-red {
    color: #CB0917;
    font-size: 24px;
}

.contact-form-card label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.contact-form-card label span.req {
    color: #EF4444;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    border: 1px solid #D1D5DB;
    background-color: #FFFFFF;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: #60A5FA;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.4);
}

.contact-form-card textarea {
    resize: none;
    height: 75px;
}

.contact-form-card .submit-btn {
    width: 100%;
    background-color: #1D357D;
    color: #FFFFFF;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 6px;
}

.contact-form-card .submit-btn:hover {
    background-color: #15275e;
}

.contact-map-iframe {
    width: 100% !important;
    height: 800px !important;
    min-height: 600px;
    border: 0;
    display: block;
}

@media (max-width: 767px) {
    .contact-map-iframe {
        height: 450px !important;
        min-height: 400px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .contact-map-iframe {
        height: 550px !important;
        min-height: 500px;
    }
}

.cta-email-input::placeholder {
    color: #ffffff !important;
    opacity: 0.9 !important;
}



/* Careers Opportunities At Classic section wave background */
.careers-team-container {
    background-image: url(../images/team-bg-CwOX2coG.png) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    position: relative;
    width: 100%;
}

@media (min-width: 1024px) {
    .careers-team-container {
        background-size: 100% 100% !important;
        background-position: center center !important;
    }
}

/* About Us: Team section wave lines background */
.about-team-bg {
    background-image: url(../images/team-bg-CwOX2coG.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
    position: relative;
    width: 100%;
}

/* Custom indicator dots for Opportunities slider */
.opp-dot-item {
    cursor: pointer;
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    border: 2px solid #CB0917 !important;
    background-color: #ffffff !important;
    padding: 0;
    transition: all 0.3s ease;
    display: inline-block;
}

.opp-dot-item.active {
    background-color: #0A2471 !important;
    border: 2px solid #CB0917 !important;
    transform: scale(1.1);
}

/* Our Expertise FAQ Accordion Icons */
.faq-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.faq-icon-plus,
.faq-icon-minus {
    display: block;
    width: 18px;
    height: 18px;
    stroke: #CB0917;
}

.faq-icon-minus {
    height: 3px;
}

.faq-icon-plus.hidden,
.faq-icon-minus.hidden {
    display: none !important;
}

/* Custom Progress Bar Transitions and Styling */
.progress-fill-line {
    background-color: #002F6C !important;
    height: 1.25rem !important;
    /* 20px thick solid blue bar */
    border-radius: 9999px !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: width 1.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.progress-thumb-dot {
    background-color: #ffffff !important;
    border: 2px solid #002F6C !important;
    border-radius: 9999px !important;
    width: 2.25rem !important;
    /* 36px circular knob */
    height: 2.25rem !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    transition: left 1.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
}

.progress-track-line {
    background-color: rgba(203, 9, 23, 0.3) !important;
    /* #CB09174D */
    height: 4px !important;
    width: 100% !important;
    border-radius: 9999px !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.progress-end-dot {
    background-color: #CB0917 !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 9999px !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1;
}

.progress-label-wrap,
.progress-sublabel-wrap {
    transition: margin-left 1.8s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
}

/* Vertical Stacked "Our History" Title */
.timeline-vertical-title {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 2.25rem; /* text-4xl */
    line-height: 2.5rem;
    letter-spacing: normal;
    display: block;
    user-select: none;
    text-align: center;
}

@media (min-width: 768px) {
    .timeline-vertical-title {
        writing-mode: vertical-rl;
        text-orientation: upright;
        font-size: 30px;
        letter-spacing: 0.16em;
        line-height: 1.1;
        display: inline-block;
        text-align: left;
    }
}

/* Approach section small icons */
.approach-item-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    display: inline-block;
}

@keyframes rotatePulse {

    0%,
    to {
        transform: scale(1) rotate(0);
    }

    50% {
        transform: scale(1.15) rotate(5deg);
    }
}

@-webkit-keyframes rotatePulse {

    0%,
    to {
        -webkit-transform: scale(1) rotate(0);
    }

    50% {
        -webkit-transform: scale(1.15) rotate(5deg);
    }
}

.animate-pulse-spin {
    animation: rotatePulse 2s ease-in-out infinite;
    -webkit-animation: rotatePulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes rotatePulse {

    0%,
    to {
        transform: scale(1) rotate(0);
    }

    50% {
        transform: scale(1.15) rotate(5deg);
    }
}

@-webkit-keyframes rotatePulse {

    0%,
    to {
        -webkit-transform: scale(1) rotate(0);
    }

    50% {
        -webkit-transform: scale(1.15) rotate(5deg);
    }
}

.animate-pulse-spin {
    animation: rotatePulse 2s ease-in-out infinite;
    -webkit-animation: rotatePulse 2s ease-in-out infinite;
    display: inline-block;
}

/* Flipping Card Hover Transitions for ServiceGridSection */
.flip-card {
    perspective: 1000px;
}

.flip-card .front-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 700ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    z-index: 2;
}

.flip-card:hover .front-card {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.flip-card .back-card {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 700ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.flip-card:hover .back-card {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 3;
}

.flip-card .back-card li {
    transition: transform 500ms ease-in-out;
}

.flip-card .back-card li:hover {
    transform: translateX(8px);
}

/* KPI Stat Box Hover Effect & Scroll Animation (ClassicEdgeSection)
   Exact Live Site Framer Motion:
   whileHover: { scale: 1.2, transition: { type: "spring", stiffness: 300, damping: 15 } }
   whileTap: { scale: 0.97 }
*/
.kpi-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    will-change: transform;
}

.kpi-card.in-view {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.kpi-card.in-view:hover {
    transform: translateY(0) scale(1.2) !important;
    z-index: 30;
    box-shadow: 0 16px 32px rgba(203, 9, 23, 0.18);
}

.kpi-card.in-view:active {
    transform: translateY(0) scale(0.97) !important;
}

/* Align last submenu to the right so it stays on screen without clipping */
.main-menu .menu .menu-item:last-child .submenu {
    left: auto !important;
    right: 0 !important;
}

/* Ensure desktop header sits above banner content */
.header {
    position: relative;
    z-index: 100 !important;
}

.main-menu .menu .menu-item .submenu {
    z-index: 9999 !important;
}

/* Original production mobile drawer slide and accordion styles */
.mobile-menu-wrap.show .mobile-menu {
    transform: translate(0) !important;
}

.mobile-nav .submenu.accordion.closed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.mobile-nav .submenu.accordion.open {
    max-height: 400px;
    opacity: 1;
    transition: max-height 0.4s ease-in, opacity 0.4s ease-in;
}

/* Fix mobile drawer close icon & header item spacing */
.main-menu .mobile-menu-wrap .mobile-menu {
    padding-top: 3.5rem !important;
}

.main-menu .mobile-menu-wrap .mobile-menu .close-icon {
    position: absolute !important;
    top: 1rem !important;
    right: 1.25rem !important;
    font-size: 1.5rem !important;
    color: #0a2471 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    line-height: 1 !important;
}

.main-menu .mobile-menu-wrap .mobile-menu .mobile-nav>.menu-item>button {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-right: 0.5rem !important;
}

/* -------------------------------------------------------------
   CTA Reach Out Form Scroll In-View Animation (Exact Live Site)
   initial: scaleX: 0, opacity: 0
   whileInView: scaleX: 1, opacity: 1 (origin-right, duration 1s)
   ------------------------------------------------------------- */
.cta-animated-form {
    transform-origin: right center !important;
    transform: scaleX(0);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.42, 0, 0.58, 1), opacity 1s cubic-bezier(0.42, 0, 0.58, 1) !important;
    will-change: transform, opacity;
}

.cta-animated-form.in-view {
    transform: scaleX(1) !important;
    opacity: 1 !important;
}

/* Also support graceful fallback if JS is delayed or disabled */
@media (prefers-reduced-motion: reduce) {
    .cta-animated-form {
        transform: scaleX(1) !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* -------------------------------------------------------------
   Home Page Up Next Styling (Exact Live Site)
   ------------------------------------------------------------- */
#home-up-next a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    gap: 0 !important;
}

#home-up-next svg {
    width: 48px !important;
    height: 48px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: -4px !important;
    flex-shrink: 0 !important;
}

@media (min-width: 768px) {
    #home-up-next svg {
        width: 58px !important;
        height: 58px !important;
        margin-right: -6px !important;
    }
}

/* -------------------------------------------------------------
   GSAP Style3 Title Animation (.sec-title-animation)
   initial: opacity: 0
   animated: opacity: 1, delay: 0.4s, stagger: 0.02s, ease: back.out(1.7), duration: 1s
   ------------------------------------------------------------- */
.sec-title-animation .title-anim-char {
    display: inline-block;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity;
}

.sec-title-animation .title-anim-char.space-char {
    width: 0.25em;
}

.sec-title-animation.in-view .title-anim-char {
    opacity: 1 !important;
}

/* -------------------------------------------------------------
   Discover Our Networks & Vertical Line Animation (Matches Live Site)
   Button: opacity: 0, y: 30 -> opacity: 1, y: 0 (duration: 1s)
   Line: scaleY: 0 -> scaleY: 1 (duration: 1s, ease: easeInOut, origin: top)
   ------------------------------------------------------------- */
.network-btn-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.42, 0, 0.58, 1), transform 1s cubic-bezier(0.42, 0, 0.58, 1);
    will-change: opacity, transform;
}

.network-btn-anim.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.network-line-anim {
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 1s cubic-bezier(0.42, 0, 0.58, 1);
    will-change: transform;
}

.network-line-anim.in-view {
    transform: scaleY(1) !important;
}

/* Quote card border: initial: {scaleX: 0}, whileInView: {scaleX: 1}, duration: 0.6s, origin: left center */
.quote-box-border-anim {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.42, 0, 0.58, 1);
    will-change: transform;
}

.quote-box-border-anim.in-view {
    transform: scaleX(1) !important;
}

/* VisionSection Cards: initial: {opacity: 0, y: 40}, whileInView: {opacity: 1, y: 0}, duration: 0.6s */
.vision-card-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.42, 0, 0.58, 1), transform 0.6s cubic-bezier(0.42, 0, 0.58, 1), background-color 0.2s ease, color 0.2s ease;
    will-change: opacity, transform;
}

.vision-card-anim.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* HorizontalScroller / Mission Cards: initial: {opacity: 0, y: 40}, whileInView: {opacity: 1, y: 0}, duration: 0.6s */
.mission-card-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.42, 0, 0.58, 1), transform 0.6s cubic-bezier(0.42, 0, 0.58, 1);
    will-change: opacity, transform;
}

.mission-card-anim.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Service Cards: initial: {opacity: 0, y: 40}, whileInView: {opacity: 1, y: 0}, viewport: {once: false}, duration: 0.6s */
.service-card-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.42, 0, 0.58, 1), transform 0.6s cubic-bezier(0.42, 0, 0.58, 1), background-color 0.15s ease, box-shadow 0.15s ease;
    will-change: opacity, transform;
}

.service-card-anim.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Instant synchronous hover color transitions to prevent mismatched text/background delay */
.service-card-anim:hover {
    background-color: #0a2471 !important;
    transition-delay: 0s !important;
}

.service-card-anim:hover h3 {
    color: #ffffff !important;
    transition: color 0.15s ease !important;
    transition-delay: 0s !important;
}

.service-card-anim:hover p {
    color: #ffffff !important;
    transition: color 0.15s ease !important;
    transition-delay: 0s !important;
}

/* Commitment Cards: initial: {opacity: 0, y: 40}, whileInView: {opacity: 1, y: 0}, viewport: {once: true}, duration: 0.5s */
.commitment-card-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s cubic-bezier(0.42, 0, 0.58, 1), transform 0.5s cubic-bezier(0.42, 0, 0.58, 1), background-color 0.3s ease;
    will-change: opacity, transform;
}

.commitment-card-anim.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Working At Classic Cards: initial: {opacity: 0, y: 30}, whileInView: {opacity: 1, y: 0}, viewport: {once: true}, duration: 0.6s */
.working-card-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.42, 0, 0.58, 1), transform 0.6s cubic-bezier(0.42, 0, 0.58, 1), box-shadow 0.3s ease;
    will-change: opacity, transform;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .working-card-anim {
        margin-top: 0;
    }
}

.working-card-anim.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Code of Conduct Cards: initial: {opacity: 0, y: 20}, whileInView: {opacity: 1, y: 0}, viewport: {once: true}, duration: 0.5s */
.conduct-card-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.42, 0, 0.58, 1), transform 0.5s cubic-bezier(0.42, 0, 0.58, 1);
    will-change: opacity, transform;
}

.conduct-card-anim.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Contact Cards (Reach Out): initial: {opacity: 0, y: 40}, whileInView: {opacity: 1, y: 0}, viewport: {once: true, amount: 0.3}, duration: 0.6s */
.contact-card-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.42, 0, 0.58, 1), transform 0.6s cubic-bezier(0.42, 0, 0.58, 1);
    will-change: opacity, transform;
}

.contact-card-anim.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Director Business Card Section (Vinit Gupta):
   Container: initial: {opacity: 0, y: 40}, whileInView: {opacity: 1, y: 0}, transition: {duration: 0.6, ease: "easeOut", staggerChildren: 0.2}, viewport: {once: true, amount: 0.2}
   Child items: initial: {opacity: 0, y: 20}, animate: {opacity: 1, y: 0}
*/
.director-card-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.director-card-section.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.director-card-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

/* Director Business Card Section (Vinit Gupta):
   Container: initial: {opacity: 0, y: 40}, whileInView: {opacity: 1, y: 0}, transition: {duration: 0.6, ease: "easeOut", staggerChildren: 0.2}, viewport: {once: true, amount: 0.2}
   Child items: initial: {opacity: 0, y: 20}, animate: {opacity: 1, y: 0}
*/
.director-card-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.director-card-section.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.director-card-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.director-card-section.in-view .director-card-item {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Who We Work With Cards (projectsandcollaborations.php) */
.work-with-card {
    height: 380px;
}

@media (min-width: 640px) {
    .work-with-card {
        height: 400px;
    }
}

@media (min-width: 1280px) {
    .work-with-card {
        height: 480px;
    }
}

/* Talent Policy & Career Application Mobile and Tablet Responsiveness (careers.php) */
@media (max-width: 1023px) {
    .talent-policy-overlay {
        position: relative !important;
        margin-top: -3rem;
        z-index: 10;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        bottom: auto !important;
    }
}

@media (max-width: 767px) {
    .careersApplication {
        padding-block: 4rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .careersApplication {
        padding-block: 8rem !important;
    }
}

/* Contact Us Page Mobile & Tablet Responsiveness (contactus.php) */
@media (max-width: 1023px) {
    #contact-form-section .md\:w-1\/2.ml-auto {
        display: none !important;
    }

    .contact-form-wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 1.5rem auto 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .contact-map-wrapper {
        min-height: 450px !important;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .contact-form-wrapper {
        max-width: 28rem !important;
    }
}

/* Value Creation Slider Tablet & Mobile Border Fix (contactus.php) */
.value-slide {
    margin: 4px 6px;
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .value-slide {
        margin: 4px 8px;
    }
}


