/* Timeline styles for About Us Journey section */
.timeline {
    position: relative;
    margin: 0 auto;
    padding: 2rem 0;
    max-width: 900px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.timeline-year {
    min-width: 56px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    background: var(--bs-accent);
    color: #fff;
    border-radius: 4px;
    margin-right: 1.5rem;
    padding: 0.2em 1em;
    margin-top: 0.2em;
}

.timeline-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
    padding: 1.2rem 1.5rem 1.2rem 1.5rem;
    flex: 1;
}

.timeline-content h4 {
    color: var(--bs-primary);
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--bs-dark);
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .timeline {
        padding: 1rem 0;
    }

    .timeline-item {
        flex-direction: column;
        align-items: stretch;
    }

    .timeline-year {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

/* Company Journey Timeline Styles */
.company-journey .timeline {
    position: relative;
    margin: 0 auto;
    padding: 2rem 0;
    max-width: 800px;
}

.company-journey .timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--bs-secondary);
    transform: translateX(-50%);
    border-radius: 2px;
}

.company-journey .timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

.company-journey .timeline-item.left {
    left: 0;
    text-align: right;
}

.company-journey .timeline-item.right {
    left: 50%;
    text-align: left;
}

.company-journey .timeline-content {
    position: relative;
    border-radius: 12px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    background: var(--bs-light);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
    display: inline-block;
    min-width: 260px;
    max-width: 340px;
}

.company-journey .timeline-year {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.4em 1.2em;
    border-radius: 2em;
    margin-bottom: 1rem;
    background: var(--bs-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
    .company-journey .timeline:before {
        left: 16px;
    }

    .company-journey .timeline-item,
    .company-journey .timeline-item.left,
    .company-journey .timeline-item.right {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 2.5rem;
        padding-right: 0.5rem;
    }

    .company-journey .timeline-content {
        min-width: 0;
        max-width: 100%;
    }
}

/* Custom Interactive SVG Roadmap Styles */
.svg-roadmap-section {
    position: relative;
    padding: 6rem 0 4rem;
    /* background: linear-gradient(to bottom, #f8faff 0%, #ffffff 100%); */
    overflow: hidden;
}

.svg-roadmap-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The curved SVG background road */
.roadmap-svg-path {
    width: 100%;
    height: auto;
    display: block;
}

/* Style the main road stroke */
.roadmap-svg-path path {
    fill: none;
    stroke: var(--bs-primary);
    stroke-width: 8;
    stroke-linecap: round;
    opacity: 0.15;
}

.roadmap-svg-path .animated-path {
    stroke: var(--bs-primary);
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    opacity: 1;
    animation: drawPath 1s ease-in-out forwards;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Stops container absolute positioned over the SVG */
.roadmap-nodes-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through to individual elements */
}

/* Individual Node Wrapper (holds the pin and the card) */
.svg-roadmap-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    /* Re-enable clicks for hover */
    transform: translate(-50%, -50%);
    /* Center perfectly on its coordinates */
    z-index: 10;
}

/* Upward nodes have the card above the pin */
.svg-roadmap-node.upward {
    flex-direction: column-reverse;
}

/* The Map Pin itself */
.roadmap-pin {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.roadmap-pin::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    animation: spin 10s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* The Line connecting the pin and card overlay */
.roadmap-connector-line {
    width: 2px;
    height: 40px;
    background: var(--bs-primary);
    opacity: 0.3;
}

.svg-roadmap-node:hover .roadmap-connector-line {
    opacity: 1;
    height: 30px;
    /* Slight pull down effect */
    transition: all 0.3s ease;
}

/* The Detailed Content Card */
.roadmap-detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.svg-roadmap-node:hover .roadmap-detail-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.svg-roadmap-node.downward:hover .roadmap-detail-card {
    transform: translateY(5px);
}

/* Card Header elements mapping to references */
.roadmap-metric-ribbon {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--bs-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.roadmap-year-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bs-dark);
    line-height: 1;
    margin-top: 5px;
    margin-bottom: 5px;
}

.roadmap-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bs-primary);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.roadmap-detail-text {
    font-size: 0.9rem;
    color: var(--bs-gray);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Thematic Coloring */
/* Node 1 */
.svg-roadmap-node:nth-child(1) .roadmap-pin {
    background: var(--bs-secondary);
}

.svg-roadmap-node:nth-child(1) .roadmap-metric-ribbon {
    background: var(--bs-secondary);
}

.svg-roadmap-node:nth-child(1) .roadmap-subtitle {
    color: var(--bs-secondary);
}

.svg-roadmap-node:nth-child(1) .roadmap-pin::after {
    border-color: rgba(9, 30, 62, 0.2);
}

/* Node 2 */
.svg-roadmap-node:nth-child(2) .roadmap-pin {
    background: var(--bs-primary);
}

.svg-roadmap-node:nth-child(2) .roadmap-metric-ribbon {
    background: var(--bs-primary);
}

.svg-roadmap-node:nth-child(2) .roadmap-subtitle {
    color: var(--bs-primary);
}

.svg-roadmap-node:nth-child(2) .roadmap-pin::after {
    border-color: rgba(212, 167, 98, 0.3);
}

/* Node 3 */
.svg-roadmap-node:nth-child(3) .roadmap-pin {
    background: var(--bs-accent);
}

/* Assuming accent is red/orange */
.svg-roadmap-node:nth-child(3) .roadmap-metric-ribbon {
    background: var(--bs-accent);
}

.svg-roadmap-node:nth-child(3) .roadmap-subtitle {
    color: var(--bs-accent);
}

.svg-roadmap-node:nth-child(3) .roadmap-pin::after {
    border-color: rgba(204, 51, 51, 0.2);
}

.svg-roadmap-node:hover .roadmap-pin {
    transform: scale(1.1) translateY(-5px);
}

/* Mobile Responsive overrides - Flatten into vertical list */
@media (max-width: 991px) {
    .roadmap-svg-path {
        display: none;
        /* Hide the complex SVG path on small screens */
    }

    .roadmap-nodes-overlay {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .svg-roadmap-node {
        position: relative;
        transform: none !important;
        /* Cancel inline positioning */
        left: auto !important;
        top: auto !important;
        flex-direction: column !important;
        /* Always card below pin */
        width: 100%;
        max-width: 350px;
    }

    .roadmap-connector-line {
        height: 20px;
        margin: 10px 0;
    }

    .roadmap-detail-card {
        width: 100%;
    }
}

:root {
    --tw-bg-opacity: 1;
    --bs-primary: rgb(212, 167, 98);
    --bs-primary-dark: rgb(180, 142, 83);
    --bs-secondary: rgb(0, 85, 170);
    --bs-accent: rgb(204, 51, 51);
    --bs-white: #ffffff;
    --bs-dark: #052b54;
    --bs-light: #ffffff;
}

p {
    color: #888888 !important;
    /* Light grey text color for paragraphs */
}

/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}

/*** Spinner End ***/


.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
    font-weight: 400 !important;
    font-family: 'Playball', cursive !important;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
    font-weight: 600 !important;
    font-family: 'Open Sans', sans-serif !important;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.wow,
.animated {
    animation-duration: 2s !important;
}


/*** Button Start ***/
.btn.btn-primary {
    border: 0;
}

.btn.btn-primary:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-primary) !important;
}

.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 38px;
    height: 38px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Button End ***/


/*** Navbar Start ***/
.nav-bar {
    background: var(--bs-light);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.navbar .navbar-nav .nav-link {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 17px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        opacity: 1;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

#searchModal .modal-content {
    background-color: rgba(255, 255, 255, .95);
}

/*** Navbar End ***/


/*** Events Start ***/
.event .tab-class .nav-item a.active {
    background: var(--bs-primary) !important;
}

.event .event-img .event-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(140, 198, 62, 0.7);
    border-radius: 8px;
    transition: 0.5s;
    opacity: 0;
    z-index: 1;
}

.event .event-img:hover .event-overlay {
    opacity: 1;
}

/*** Events End ***/


/*** service start ***/
.service .service-item {
    position: relative;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-content::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    bottom: auto;
    background: var(--bs-primary);
    border-radius: 8px;
    transition: 1s;
}

.service-item:hover .service-content::after {
    height: 100%;
    opacity: 1;
}

.service-item .service-content-icon {
    position: relative;
    z-index: 2;
}

.service-item .service-content-icon i,
.service-item .service-content-icon p {
    transition: 1s;
}

.service-item:hover .service-content-icon i {
    color: var(--bs-dark) !important;
}

.service-item:hover .service-content-icon p {
    color: var(--bs-white);
}

.service-item:hover .service-content-icon a.btn-primary {
    background: var(--bs-white);
    color: var(--bs-dark);
}

.service-item .service-content-icon a.btn-primary {
    transition: 1s !important;
}

/*** Accent Utilities (logo maroon) ***/
.text-accent {
    color: var(--bs-accent) !important;
}

.bg-accent {
    background-color: var(--bs-accent) !important;
    color: #fff !important;
}

.border-accent {
    border-color: var(--bs-accent) !important;
}

.link-accent {
    color: var(--bs-accent);
    text-decoration: underline;
}

.link-accent:hover {
    opacity: 0.9;
}

.btn-accent {
    color: #fff;
    background-color: var(--bs-accent);
    border: 1px solid var(--bs-accent);
    border-radius: 8px;
    transition: .25s;
}

.btn-accent:hover {
    filter: brightness(.95);
}

/*** Services End ***/


/*** Menu Start ***/
.menu .nav-item a.active {
    background: var(--bs-primary) !important;
}

.menu .menu-item .border-bottom {
    border-bottom-style: dashed !important;
}

/*** Menu End ***/


/*** Youtube Video start ***/
.video {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(rgba(254, 218, 154, 0.1), rgba(254, 218, 154, 0.1)), url(../img/fact.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 8px;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-white);
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--bs-dark);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

/*** Youtube Video End ***/


/*** Blog Start ***/
.blog-item {
    position: relative;
}

.blog-item img {
    transition: 0.5s;
}

.blog-item:hover img {
    transform: scale(1.3)
}

.blog-item .blog-content {
    position: relative;
    transform: translateY(-50%);
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.blog-item .blog-content a.btn h5 {
    transition: 0.5s;
}

.blog-item:hover .blog-content a.btn h5 {
    color: var(--bs-primary) !important;
}

/*** Blog End ***/


/*** Team Start ***/
.team-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.team-item .team-icon {
    position: absolute;
    top: 0;
    right: 0;
}

.team-item .team-icon .share-link {
    opacity: 0;
    transition: 0.9s;
}

.team-item:hover .share-link {
    opacity: 1;
}

.team-item .team-content {
    transition: 0.9s;
}

.team-item:hover .team-content {
    background: var(--bs-primary) !important;
    color: var(--bs-dark) !important;
}

.team-item .team-content h4,
.team-item .team-content p {
    transition: 0.5s;
}

.team-item:hover .team-content h4 {
    color: var(--bs-dark) !important;
}

.team-item:hover .team-content p {
    color: var(--bs-white);
}

/*** Team End ***/


/*** testimonial Start ***/
.testimonial-item {
    border: 1px solid var(--bs-primary);
    padding: 20px 20px;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel.owl-rtl .testimonial-item {
    direction: ltr !important;
}

/*** testimonial End ***/


/*** Contact start ***/
.contact-form {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

/*** Contact End ***/


/*** Footer Start ***/
.footer .footer-item a.text-body:hover {
    color: var(--bs-primary) !important;
}

/*** Footer End ***/

/* Responsive 2-column grid fixes */
@media (max-width: 767px) {
    .event-img img {
        height: 180px !important;
        object-fit: cover;
    }

    .event-overlay {
        padding: 0.75rem !important;
    }

    .event-overlay h4 {
        font-size: 1rem !important;
    }

    .service-item .service-content-icon i {
        font-size: 2.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-item .service-content-icon h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }

    .service-item .service-content-icon p {
        font-size: 0.75rem !important;
        margin-bottom: 1rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .service-item .service-content-icon a.btn {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
}