body {
    font-family: "Inter", serif;
}

.about-section {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 60px 24px 100px 24px;
}


.about-content {
    display: flex;
    justify-content: space-between;
}
.about-heading {
    font-size: 50px;
    line-height: 56px;
    /* margin-bottom: 2rem; */
    font-weight: 500;
    font-family: "Inter", serif;
    max-width: 564px;
}
.about-small-text {
    max-width: 867px;
    display: flex;
    flex-direction: column;
    /* justify-content: flex-end; */
    /* align-items: flex-end; */
    margin-top: 10px;
} 
.about-small-text p {
    font-size: 20px;
    margin-top: 15px;
    max-width: 700px;
    line-height: 26px;
}
.aboutimage img {
    width: 100%;
}

.highlight {
    color: #0066FF;
}

.learn-more {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: 2px solid #0066FF;
    border-radius: 50px;
    color: #0066FF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
}

.learn-more:hover {
    background-color: #0066FF;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-section {
        padding: 64px 20px;
    }

    .about-heading {
        margin-bottom: 0;
    }

    .learn-more {
        padding: 0.875rem 1.75rem;
        margin-top: 1.5rem;
    }
    .about-content {
        width: 100% !important;
        flex-direction: column;
    }
    .about-small-text {
        flex-direction: column;
        margin-top: 0;
        margin-bottom: 20px;
    }
    .about-content h1 {
        font-size: 40px;
        line-height: 40px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 0 16px 48px 16px;
    }

    .learn-more {
        width: 100%;
        text-align: center;
    }
}

/* Service card section */

.services-section {
    margin: 0 auto;
    padding: 0 20px;
}

.services-heading {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 3rem;
}

.service-card {
    position: relative;
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-number {
    font-size: 142px;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1;
    height: 100px;
    overflow: hidden;
}

.service-title {
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
    padding-top: 70px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.see-all-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 1rem 2rem;
    border: 2px solid #0066FF;
    border-radius: 50px;
    color: #0066FF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.see-all-btn:hover {
    background-color: #0066FF;
    color: white;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0066FF;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1;
}

.service-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.service-description p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin: 1rem 0;
}

.service-description .top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.service-description .arrow {
    width: 24px;
    height: 24px;
    transform: rotate(45deg);
    border-top: 2px solid white;
    border-right: 2px solid white;
}

.service-card:hover::before {
    transform: translateY(0);
}

.service-card:hover .service-description {
    opacity: 1;
}

.service-card:hover .service-title,
.service-card:hover .service-numberhover {
    color: white;
}

.service-card:hover .service-title {
    transform: translateY(-20px);
}

.service-numberhover {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        gap: 16px;
    }

    .service-card {
        padding: 1.5rem;
        -webkit-tap-highlight-color: transparent;
    }

    .service-card:hover,
    .service-card:active {
        transform: none;
    }

    .service-card:active::before,
    .service-card.active::before {
        transform: translateY(0);
    }

    .service-card:active .service-description,
    .service-card.active .service-description {
        opacity: 1;
    }

    .service-card:active .service-title,
    .service-card.active .service-title {
        opacity: 0;
        visibility: hidden;
    }

    .service-card:active .service-description .top .service-title,
    .service-card.active .service-description .top .service-title {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-heading {
        margin-bottom: 2rem;
    }

    .see-all-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .service-card:hover .service-title {
        transform: none;
    }

    /* Hide initial title on hover/active */
    .service-card:hover .service-title:not(.top .service-title),
    .service-card:active .service-title:not(.top .service-title) {
        opacity: 0;
        visibility: hidden;
    }

    /* Show description title on hover/active */
    .service-card:hover .service-description .top .service-title,
    .service-card:active .service-description .top .service-title {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}


/* Specialization */
.specialization-section {
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    padding: 5% 24px;
}

.area h2 {
    font-size: 72px;
    font-weight: 400;
    margin-bottom: 3rem;
}

.specializations {
    background-color: #0845AA;
    color: white;
    padding: 4rem 24px;
    margin: 0 -24px;
    display: grid;
}

.specialization-item {
    /* max-width: 1200px; */
    /* margin: 0 auto 4rem; */
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 935px;
}
.specialization-item-right {
    justify-content: flex-end;
    justify-items: flex-end;
    align-self: flex-end;
    justify-self: flex-end;
}

.specialization-item:last-child {
    margin-bottom: 0;
}

/* .specialization-item:nth-child(even) {
    flex-direction: row-reverse;
} */

.image-container {
    flex: 0 0 400px;
}


.image-container img {
    width: 100%;
    height: auto;
    /* border-radius: 8px; */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content {
    flex: 1;
}

.content h3 {
    font-size: 50px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.content p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .specialization-item {
        gap: 2rem;
        width: 100% !important;
    }

    .image-container {
        flex: 0 0 350px;
    }
}

@media (max-width: 768px) {
    .specialization-section {
        padding: 48px 20px;
    }

    .specializations {
        padding: 3rem 20px;
        margin: 0 -20px;
    }

    .specialization-item,
    .specialization-item:nth-child(even) {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .image-container {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .content h3 {
        margin-bottom: 0.75rem;
        font-size: 32px;
        text-align: left;
    }
    .content p {
        text-align: left;
        font-size: 16px;
        font-weight: 400;
    }
    .why-section h2 {
        font-size: 44px !important;
    }
}

@media (max-width: 480px) {
    .specialization-section {
        padding: 32px 16px;
    }

    .specializations {
        padding: 2rem 16px;
        margin: 0 -16px;
    }

    .specialization-item {
        margin-bottom: 3rem;
    }
}



/* why choose us */
.why-section {
    
}



.reasons-container {
    display: flex;
    flex-direction: column;
    /* gap: 24px; */
}

.reason-card {
    position: relative;
    width: 100%;
    /* height: 500px; */
    overflow: hidden;
    color: white;
    /* border-radius: 8px; */
}

.reason-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.reason-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* padding: 48px 200px; */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.7)
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reason-title {
    font-size: 62px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding: 0 300px;
    /* max-width: 710px; */
}

.reason-description {
    font-size: 25px;
    line-height: 1.6;
    max-width: 600px;
    opacity: 0.9;
    align-self: flex-end;
    padding: 0 300px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .reason-card {
        height: 400px;
    }

    .reason-content {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .why-section {
        padding: 0;
    }

    .reason-card {
        height: 350px;
    }

    .reason-content {
        padding: 24px;
    }

    .reason-title {
        margin-bottom: 1rem;
    }

    .reason-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .why-section {
        padding: 0;
    }

    .reason-card {
        height: 300px;
    }

    .reason-content {
        text-align: center;
    }

    .reason-title,
    .reason-description {
        max-width: 100%;
    }
}


/* Testimonial */
.testimonial-section {
    position: relative;
    padding: 4rem 1.25rem;
    overflow: hidden;
}

.scroll-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.scrolling-text {
    font-size: clamp(150px, 30vw, 350px);
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-weight: 200;
    color: #051525;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.section-subtitle {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    color: #051525;
    font-weight: 200;
}

.testimonials-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1rem;
}

.testimonials-container::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 calc(100% - 2rem);
    max-width: 439px;
    background-color: #EFF5FF;
    padding: 2rem;
    border-radius: 8px;
    scroll-snap-align: start;
}

.rating {
    margin-bottom: 1rem;
    color: #141B34;
    font-size: 0.9rem;
}

.testimonial-title {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: 1rem;
    font-weight: 500;
}

.testimonial-text {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.author-name {
    font-weight: 500;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-button {
    width: 48px;
    height: 48px;
    border: 1px solid #141B34;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-button:hover {
    border-color: #0052CC;
    color: #0052CC;
}

@media (min-width: 768px) {
    .testimonial-section {
        padding: 5rem 2rem;
    }
    
    .testimonials-container {
        overflow-x: hidden;
    }
    
    .testimonial-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (min-width: 1024px) {
    .testimonial-section {
        padding: 5rem 4rem;
    }
}


/* Team Sectionz */
.team-section {
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    /* padding: 5% 24px; */
    padding: 100px 20px 0 20px;
}

.section-heading {
    font-size: 72px;
    font-weight: 400 !important;
    margin-bottom: 4rem;
    max-width: 800px;
    line-height: 1.2;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.member-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 32px; */
    align-items: center;
    background-color: #fff;
}

.member-card:nth-child(even) {
    direction: rtl;
}

.member-card > * {
    direction: ltr;
}

.member-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    /* border-radius: 8px; */
}

.member-content {
    padding:150px 70px;
    background-color: #EFF5FF;
    /* border-radius: 8px; */
    height: -webkit-fill-available;
}

.member-name {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.member-bio {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.book-button {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    background-color: transparent;
    border: 2px solid #0066FF;
    border-radius: 50px;
    color: #0066FF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.book-button:hover {
    background-color: #0066FF;
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .member-image {
        min-height: 350px;
    }

    .member-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 48px 20px;
    }

    .member-card,
    .member-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .member-image {
        min-height: 300px;
    }

    .section-heading {
        margin-bottom: 3rem;
    }

    .team-members {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 32px 16px;
    }

    .member-content {
        padding: 20px;
    }

    .book-button {
        width: 100%;
        text-align: center;
    }
}
.actiontext {
    display: grid;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    align-items: center;
    margin-top: 50px;
}

.actiontext h3 {
    font-size: 64px;
    font-weight: 500;
    text-align: left;
    max-width: 968px;
}
.actiontext button {
    padding: 20px 25px;
    background: transparent;
    border: 1px solid #54CBFA;
    color: #54CBFA;
    border-radius: 28px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: flex-start;
    width: fit-content;
    margin-top: 20px;
}
.why-section h2 {
    font-size: 72px;
    padding: 0 20px;
}

.actiontext button a {
    color: #fff;
    text-decoration: none;
}