:root {
    --primary: #236b85;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
    --bs-primary-rgb: 23,57,69;
}

/* Prevent horizontal overflow on all devices */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    position: relative;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
    position: relative;
    z-index: 1;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

/*** Topbar ***/
.topbar {
    position: relative;
    z-index: 9999;
    background: var(--primary);
}



/*** Navbar ***/
.navbar {
    position: relative;
    transition: .5s;
}

.navbar.sticky-top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.navbar .navbar-nav .nav-link {
    padding: 20px 15px;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

@media (max-width: 991.98px) {
    .navbar {
        position: relative;
        background: #FFFFFF;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .navbar .navbar-nav .nav-link  {
        padding: 10px 0;
    }
    
    .navbar-brand h1 {
        font-size: 1.3em !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .navbar-brand h1 {
        font-size: 1.1em !important;
    }
}

@media (max-width: 575px) {
    .navbar {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .navbar-brand h1 {
        font-size: 0.95em !important;
        line-height: 1.2;
    }
}

.carousel-content {
    position: relative;
    z-index: 1 ;
}

/*** Hero Video Container ***/
.hero-container {
    height: calc(100vh - 140px); /* Subtract topbar + navbar height */
    overflow: hidden;
    max-width: 100vw;
}

.hero-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-width: 100%;
}

/* Mobile video positioning - shift right to show feet */
@media (max-width: 768px) {
    .hero-container video {
        object-position: 20% center; /* Shift video to the right */
    }
}

@media (max-width: 575px) {
    .hero-container video {
        object-position: 25% center; /* Shift more on smaller screens */
    }
}

@media (max-width: 425px) {
    .hero-container video {
        object-position: 20% center; /* Even more shift for very small screens */
    }
}

/* Tablet adjustments */
@media (max-width: 991.98px) {
    .hero-container {
        height: 70vh; /* More flexible height for tablets */
        min-height: 500px;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    .hero-container {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-container h5 {
        font-size: 0.9em !important;
    }
    
    .hero-container h1 {
        font-size: 1.5em !important;
        line-height: 1.3;
    }
    
    .hero-container p {
        font-size: 0.95em !important;
    }
}

/* Mobile portrait */
@media (max-width: 675px) {
    .hero-container {
        height: 65vh;
        min-height: 400px;
    }
    
    .hero-container h1{
        font-size: 1.2em !important;
        line-height: 1.2;
    }
    .hero-container p{
        font-size: 0.9em !important;
    }

}

@media (max-width: 425px) {
    .hero-container {
        height: 70vh;
        min-height: 380px;
    }
    
    .hero-container h5{
        font-size: 0.85em !important;
        margin-bottom: 8px !important;
    }    
    .hero-container h1{
        font-size: 1.1em !important;
        margin-bottom: 10px !important;
        line-height: 1.3;
    }
    .hero-container p{
        font-size: 0.85em !important;
        margin-bottom: 15px !important;
    }

    .carousel-content a {
        padding: 8px 15px !important;
        font-size: 0.85em !important;
        margin-bottom: 5px;
    }

}

@media (max-width: 375px) {
    .hero-container {
        height: 75vh;
        min-height: 350px;
    }
    
    .hero-container h5{
        font-size: 0.8em !important;
        margin-bottom: 8px !important;
    }    
    .hero-container h1{
        font-size: 1em !important;
        margin-bottom: 10px !important;
        line-height: 1.3;
    }
    .hero-container p{
        font-size: 0.8em !important;
    }
    
    .carousel-content a {
        padding: 6px 12px !important;
        font-size: 0.8em !important;
        /*display: block;*/
        margin-bottom: 8px;
    }

}




/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 5px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

/*** Top Shape ***/
.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(200deg);
}


@media (max-width: 575px) {
    .top-shape::before {
        display: none;
    }
}

@media (max-width: 845px) {
    .hoursTop {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .container-fluid.bg-light {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .container-fluid.bg-light .row {
        margin: 0 !important;
    }
    
    .container-fluid.bg-light .col-md-6 {
        padding: 8px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .hoursTop {
        max-width: 100% !important;
        width: 100%;
        justify-content: center;
    }
    
    .hoursTop small {
        font-size: 0.9em !important;
    }
    
    .top-shape {
        padding: 8px 15px !important;
        width: 100%;
        justify-content: center;
    }
    
    .top-shape p {
        font-size: 0.85em !important;
        margin: 0 !important;
    }
    
    .top-shape .me-3 {
        margin-right: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 575px) {
    .container-fluid.bg-light .col-md-6 {
        padding: 6px 8px !important;
    }
    
    .hoursTop small {
        font-size: 0.85em !important;
    }
    
    .top-shape {
        padding: 6px 12px !important;
    }
    
    .top-shape p {
        font-size: 0.8em !important;
    }
    
    .top-shape .me-3 {
        margin-right: 8px !important;
        padding-right: 8px !important;
    }
}

@media (max-width: 425px) {
    .hoursTop small {
        font-size: 0.8em !important;
    }
    
    .top-shape p {
        font-size: 0.75em !important;
    }
}


/*** Services Section Styles ***/


.service-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-panel.active {
    display: block;
    opacity: 1;
}

.service-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.service-list li:hover {
    transform: translateX(5px);
}

.service-list li i {
    color: rgba(var(--bs-primary-rgb), 0.6);
    font-size: 0.85em;
    margin-right: 1rem;
    position: absolute;
    left: 0;
    top: 0.25rem;
}

.service-list li i.fa-dot-circle {
    font-size: 0.7em;
    top: 0.4rem;
}

.service-list li i.fa-plus {
    font-size: 0.75em;
    top: 0.35rem;
}

.service-list li i.fa-angle-right,
.service-list li i.fa-caret-right {
    top: 0.2rem;
}

.service-content img {
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-content img:hover {
    transform: scale(1.02);
}

/*** Resume Timeline Styling ***/
#resumeTabs .nav-link {
    color: var(--dark);
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 30px;
    padding: 5px 15px;
    margin: 5px;
    transition: all 0.3s ease;
}

#resumeTabs .nav-link:hover,
#resumeTabs .nav-link.active {
    color: var(--light);
    background: var(--primary);
}

.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 40px;
}

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

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary);
    color: var(--light);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
}

.timeline-content {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 20px;
    border-style: solid;
    border-width: 10px;
    border-color: transparent #f8f9fa transparent transparent;
}

.timeline-content h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--dark);
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    background: var(--primary);
}

.timeline-item:hover .timeline-content::before {
    border-color: transparent var(--primary) transparent transparent;
}

.timeline-item:hover .timeline-content h4,
.timeline-item:hover .timeline-content p {
    color: var(--light);
}

/* Animation for timeline items */


.position-relative .position-absolute {
    pointer-events: none;
    transition: none;
    transform: none !important;
}

/* Ensure tab content doesn't affect layout */


.tab-content {
    overflow: visible;
    position: relative;
    min-height: 550px;
}

@media (max-width: 992px) {

    .tab-content {
        min-height: 150px;
    }

}

.tab-pane {
    position: relative;
    position: relative;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.tab-pane.show {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
}

#resumeContent {
    position: relative;
    padding-top: 2em;
}

/* Fix for tab pane height consistency */
.tab-pane {
    min-height: 624px;
}

.timeline {
    margin-bottom: 1rem;
}

/* Formations Grid Layout */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.formation-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 0;
}

.formation-year {
    background: var(--primary);
    color: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 0.75rem;
    min-width: 60px;
    text-align: center;
}

.formation-content h5 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--primary);
}

.formation-content span {
    font-size: 0.85rem;
    color: #6c757d;
    display: block;
    margin-top: 0.2rem;
}

/* Ensure the about section maintains height */
#about {
    padding-top: 2em;
    background: linear-gradient(212deg, #ffffff, #236b85);
}

#about .row {
    min-height: 500px;
}

#about div.citation {
    text-align: center;
    padding: 2rem 0;
}

#about div.citation p:first-child{
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    color: #ffffff;
    font-size: 3rem;
    text-align: center;
    font-style: normal;
    font-family: "Dynalight", serif;

}

@media (max-width: 575px) {
    #about div.citation p:first-child{
        padding: 1em;
    }
}

/* About Section */
#about {
    min-height: 100vh;
    background-color: #fff;
}

.about-img-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.about-img {
    position: relative;
    width: 80%;
    max-width: 500px;
    aspect-ratio: 4 / 3;
    border: 20px solid #f8f8f8;
    box-shadow: 0 0 0 2px #091e3e, 0 0 15px rgba(0, 0, 0, 0.1), inset 0 0 15px rgba(0, 0, 0, 0.1);
    background: #00000082;
    padding: 10px;
    top:25%;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #876c23;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.about-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.about-content-col {
    height: 100%;
    overflow-y: auto;
}

.about-content {
    padding: 4rem;
    height: 100%;
}

@media (max-width: 991.98px) {
    .about-img-col {
        height: 50%;
        min-height: 45vh;
        padding: 2rem;
    }
    
    .about-img {
        width: 70%;
        max-width: 400px;
    }
    
    .about-content-col {
        height: auto;
    }
    
    .about-content {
        padding: 2rem;
    }
}

@media (max-width: 575px) {
    .about-img-col {
        min-height: 50vh;
        padding: 1.5rem;
    }
    
    .about-img {
        width: 85%;
        border-width: 15px;
    }
    
    .about-content {
        padding: 1.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .formations-grid {
        grid-template-columns: 1fr;
    }
}



/* Position each gear */
.gear-1 {
    top: 35%;
    left: 27%;
    width: 10%;
    height: 23%;
}

.gear-2 {
    top: 52%;
    left: 36%;
    width: 10%;
    height: 26%;
}

.gear-3 {
    top: 24%;
    left: 45%;
    width: 11%;
    height: 29%;
}

.gear-4 {
    top: 51%;
    left: 54%;
    width: 9%;
    height: 23%;
}

.gear-5 {
    top: 29%;
    left: 63%;
    width: 10%;
    height: 31%;
}


/* Image fade animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}





.rightPart {
    max-width: 1580px;
    width: 100%;
}


/* Servuction section layout */
.servuction {
    position: relative;
    display: flex;
    background-image: url('../img/seamless_paper_texture.webp');
    background-position: center;    
}

.leftPart {
    position: relative;
    max-width: 532px;
    flex-shrink: 0;
    margin-left: -2rem;
}

.rightPart {
    flex: 1;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: normal;
}

.bienvenue-wrapper {
    position: sticky;
    top: 25%;
    color: #fff;
    padding: 40px 30px 40px 31px;
    width: 100%;
    z-index: 2;
    /* border-radius: 100px; */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(var(--bs-primary-rgb), 0.15),
                0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 3em;
}

.bienvenue-wrapper:hover {
    box-shadow: 0 15px 35px rgba(var(--bs-primary-rgb), 0.2),
                0 8px 20px rgba(0, 0, 0, 1.12);
    transform: translateY(-2px);
}

.bienvenue-wrapper::before {    
    content: "";
    /* border-radius: 100px; */
    position: absolute;
    background: rgba(var(--bs-primary-rgb), 0.8);
    backdrop-filter: blur(40px);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bienvenue-wrapper h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    line-height: 1.4;
}

.bienvenue-wrapper .bienvenue-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .leftPart {
        width: 600px;
    }
    .bienvenue-wrapper {
        padding: 60px;
    }
}

@media (max-width: 1200px) {
    .servuction {
        flex-direction: column;
    }
    .leftPart {
        width: 100%;
    }
    .bienvenue-wrapper {
        position: sticky;
        top: 15%;
        color: #fff;
        padding: 40px 30px 40px 31px;
        width: 100%;
        z-index: 2;
        /* border-radius: 100px; */
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(var(--bs-primary-rgb), 0.15),
                    0 5px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        margin-bottom: 3em;
    }
}

/*** Parallax Banner ***/
.parallax-banner {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--bs-primary-rgb), 0.6);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FFFFFF;
}

.parallax-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.parallax-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0;
}

/* Gear Animation Styles */
.gears-animation {
    position: relative;
    width: 90%;
    height: 400px;
    display: flex;
    justify-content: center;
}

.gear {
    position: absolute;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.gear i {
    font-size: 10rem;
    color: var(--primary);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.gear span {
    position: absolute;
    width: max-content;
    text-align: center;
    background-color: black;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    white-space: nowrap;
}

.gear span.active,
.gear:hover span {
    opacity: 1;
    visibility: visible;
}

/* Desktop gear positions and animations */
.gear1 {
    top: 109px;
    left: 11%;
}

.gear2 {
    top: 148px;
    left: 28%;
}

.gear3 {
    top: 109px;
    left: 45%;
}

.gear4 {
    top: 142px;
    left: 62%;
}

.gear5 {
    top: 106px;
    left: 79%;
}

/* Desktop span positions */
.gear1 span,
.gear3 span,
.gear5 span {
    top: -30px;
}

.gear2 span,
.gear4 span {
    bottom: -30px;
}

/* Gear animations */
.gear1 i,
.gear3 i,
.gear5 i {
    animation: rotateGear1 12s linear infinite;
}

.gear2 i,
.gear4 i {
    animation: rotateGear2 12s linear infinite;
}

/* Tablet view (max-width: 992px) */
@media (max-width: 992px) {
    .gears-animation {
        height: 800px;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }

    .gear {
        width: 120px;
        height: 120px;
    }

    .gear i {
        font-size: 6rem;
    }

    .gear span {
        min-width: 150px;
        font-size: 0.85rem;
    }

    /* Reset all gear positions for tablet */
    .gear1, .gear2, .gear3, .gear4, .gear5 {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Tablet gear vertical positions */
    .gear1 { top: 50px; }
    .gear2 { top: 200px; }
    .gear3 { top: 350px; }
    .gear4 { top: 500px; }
    .gear5 { top: 650px; }

    /* Tablet span positions */
    .gear1 span,
    .gear3 span,
    .gear5 span {
        top: 50%;
        right: calc(50%);
        left: auto;
        transform: translateY(-50%);
    }

    .gear2 span,
    .gear4 span {
        top: 50%;
        left: calc(50%);
        right: auto;
        transform: translateY(-50%);
    }
}

/* Mobile view (max-width: 768px) */
@media (max-width: 768px) {
    .gears-animation {
        height: 600px;
        padding: 1rem 0;
        left:50px;
    }

    .gear {
        width: 90px;
        height: 90px;
    }

    .gear i {
        font-size: 8.5rem;
    }

    .gear span {
        min-width: 130px;
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    /* Mobile gear vertical positions */
    .gear1 { top: 40px; }
    .gear2 { top: 160px; }
    .gear3 { top: 280px; }
    .gear4 { top: 400px; }
    .gear5 { top: 520px; }

    /* Mobile span positions - all to the right */
    .gear1 span,
    .gear3 span,
    .gear5 span {
        top: 35px;
    }

    .gear2 span,
    .gear4 span {
        bottom: 15px;
    }
}

/* Small mobile view (max-width: 480px) */
@media (max-width: 480px) {
    .gears-animation {
        height: 550px;
    }

    .gear {
        width: 80px;
        height: 80px;
    }

    .gear i {
        font-size: 8rem;
    }

    .gear span {
        min-width: 120px;
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    /* Small mobile gear vertical positions */
    .gear1 { top: 30px; }
    .gear2 { top: 140px; }
    .gear3 { top: 250px; }
    .gear4 { top: 360px; }
    .gear5 { top: 470px; }

    .return-arrow{
        display: none;
    }
    .gear1 span,
    .gear3 span,
    .gear5 span {
        top: 35px;
    }

    .gear2 span,
    .gear4 span {
        bottom: 15px;
    }


}

/* Gear rotation animations */
@keyframes rotateGear1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateGear2 {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Return arrow styles */
.return-arrow {
    position: absolute;
    top: 100%;
    left: calc(80% + 30px);  
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 3rem;
    opacity: 0;
    visibility: hidden;
    
}

.return-arrow.active {
    animation: returnArrowAnimation 1.5s ease-in-out;
}

@keyframes returnArrowAnimation {
    0% {
        opacity: 0;
        visibility: visible;
        transform: translate(-50%, -50%);
        left: calc(80% + 30px);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%);
        left: calc(80% + 30px);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%);
        left: calc(20% - 30px);  
    }
    100% {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -50%);
        left: calc(20% - 30px);
    }
}

/*** FAQ Accordion styling ***/
.accordion-item {
    border: 1px solid rgba(0,0,0,.125);
    margin-bottom: 0.5rem;
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem;
    background-color: #fff;
    color: var(--primary);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: #fff;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.accordion-button::after {
    background-size: 1.25rem;
    transition: all 0.3s ease;
}

.accordion-body {
    padding: 1.25rem;
    background-color: #f8f9fa;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

/*** Services introduction styling ***/
.services-intro {
    max-width: 1200px;
    margin: 0 auto;
    text-align: justify;
}

.feet-knowledge {
    background: rgba(var(--bs-primary-rgb), 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.feet-knowledge li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

/*** Service Squares ***/
.service-squares {
    margin: 3rem 0;
}

.service-square {
    background: white;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    height: 200px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--bs-primary-rgb), 0.1);
}

.service-square:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(var(--bs-primary-rgb), 0.2);
}

.service-square.active {
    background-color: var(--primary);
    color: white;
}

.service-square.active::before {
    background-color: rgba(var(--bs-primary-rgb), 0.75);
}

.service-square.active i,
.service-square.active h4 {
    color: black;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.service-square.active .square-details p {
    color: white;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.service-square::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.service-square:hover::before {
    background-color: rgba(255, 255, 255, 0.7);
}

.service-square.active:hover::before {
    background-color: rgba(var(--bs-primary-rgb), 0.65);
}

.square-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.service-square:hover .square-content {
    transform: translateY(-20px);
}

.square-content i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.square-content h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary);
}

.square-details {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.service-square:hover .square-details {
    bottom: 10px;
    opacity: 1;
}

.square-details p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Service Panel Content Styling */
.service-content {
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(var(--bs-primary-rgb), 0.1);
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-content h4 {
    color: var(--primary);
    margin-top: 2rem;
}

.service-content p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.service-content .alert {
    border-left: 4px solid var(--primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.service-content .card {
    border: none;
    box-shadow: 0 3px 10px rgba(var(--bs-primary-rgb), 0.1);
    transition: transform 0.3s ease;
}

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

.service-content .card-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.service-content .card-title i {
    color: var(--primary);
}

.service-content .card-body {
    padding: 3.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-content {
        padding: 1.5rem;
    }
    
    .service-content .card {
        margin-bottom: 1rem;
    }
    .service-content .card-body {
        padding: 0.5rem;
    }
}

@media (max-width: 575px) {

    .service-content .card-body {
        padding: 0.5rem;
    }


    .service-squares .row {
        flex-direction: column;
        gap: 0rem;
        padding: 0 1rem;
    }

    .service-squares .col {
        width: 100%;
        margin-bottom: 0;
    }

    .service-square {
        height: auto;
        min-height: 60px;
        margin: 0;
        background-image: none !important;
        border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
        border-radius: 8px;
    }

    .service-square::before {
        display: none;
    }

    .square-content {
        position: relative;
        padding: 0.75rem;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
    }

    .square-content i {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .square-content h4 {
        font-size: 0.95rem;
        margin: 0;
        flex: 1;
        text-align: left;
    }

    .square-details {
        position: relative;
        bottom: 0;
        opacity: 1;
        padding: 0;
        flex: 2;
    }

    .square-details p {
        font-size: 0.8rem;
        margin: 0;
        color: var(--dark);
        opacity: 0.8;
        text-align: left;
    }

    .service-square:hover .square-content{
        transform: none;
        box-shadow: none;
    }

    .service-square.active {
        border-color: var(--primary);
        background-color: rgba(var(--bs-primary-rgb), 0.05);
    }

    .service-square.active .square-details p {
        color: var(--primary);
        text-shadow: none;
    }
}

/* Pathology groups styling */
.pathology-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.pathology-group:hover {
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.pathology-group h5 {
    color: var(--primary);
    font-weight: 600;
}

.pathology-group ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.pathology-group ul li:last-child {
    margin-bottom: 0;
}

.pathology-group ul li i {
    font-size: 0.8rem;
    position: absolute;
    left: 0;
    top: 0.35rem;
}

/* Alert styling enhancements */
.alert {
    border-radius: 0.5rem;
}

.alert-info {
    background-color: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    color: #856404;
}

/* Consultation box styling */
.consultation-box {
    background-color: #f8f9fa;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.consultation-box:hover {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Enhanced service list styling */
.service-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.service-list li:last-child {
    margin-bottom: 0;
}

.service-list li i {
    position: absolute;
    left: 0;
    top: 0.25rem;
    color: var(--primary);
}

/* Quote text styling */
.quote-text {
    color: var(--primary);
    font-size: 1.1rem;
    position: relative;
    padding: 0 1.5rem;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    position: absolute;
    font-size: 1.5rem;
    color: rgba(var(--primary-rgb), 0.3);
}

.quote-text::before {
    left: 0;
}

.quote-text::after {
    right: 0;
}

/* Section headings */
.h5.text-primary {
    font-weight: 600;
}

.h5.text-primary i {
    font-size: 0.9em;
}

/* Patient Categories Styling */
.patient-categories {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/**.patient-categories::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    z-index: -1;
}**/

.category-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.category-card h5 {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
}

.category-card i {
    font-size: 1.3rem;
}

.category-card p {
    color: var(--secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Adjust spacing for mobile */
@media (max-width: 768px) {
    .patient-categories {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
}

/*** Technologies ***/


.tech-item {
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}



@media (max-width: 991.98px) {
    .tech-image-container {
        min-height: 200px;
    }
    
    .animated-image {
        width: 60% !important;
    }
}

@media (max-width: 767.98px) {
    .tech-item .row {
        flex-direction: column-reverse;
    }
    
    .tech-item:nth-child(even) .row {
        flex-direction: column;
    }
    
    .tech-image-container {
        min-height: 180px;
    }
    
    .tech-text {
        padding: 20px !important;
    }
}

/*** Technologies ***/
.tech-container {
    padding: 20px 0;
}

.tech-item {
    margin-bottom: 100px;
    position: relative;
}

.section-label {
    position: relative;
    margin-bottom: 30px;
}

.section-label .display-1 {
    font-size: 120px;
    font-weight: 700;
    opacity: 0.1;
    position: absolute;
    top: -30px;
    left: 0;
    z-index: -1;
}

.tech-title {
    color: var(--primary);
    font-weight: 600;
    margin-left: 70px;
    position: relative;
    z-index: 1;
}

.tech-image-wrapper {
    position: relative;
    padding: 20px;
    overflow: visible;
    z-index: 1;
}

.main-image-container {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.25, 0.1, 0.25, 1.0);
    filter: blur(5px);
}

.main-image-container.scrolled {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Add staggered animation for alternating items */
.tech-item:nth-child(even) .main-image-container {
    transform: translateY(20px) translateX(10px);
}

.tech-item:nth-child(even) .main-image-container.scrolled {
    transform: translateY(0) translateX(0);
}

.circle-image-container {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    bottom: -30px;
    right: -30px;
    border: 5px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    transition: all 0.8s ease;
}

.circle-image-container.scrolled {
    transform: translateY(-60px) scale(1.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tech-image-wrapper.right-aligned .circle-image-container {
    right: auto;
    left: -30px;
}

.circle-tech-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-description {
    padding: 30px;
}

.tech-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

@media (max-width: 991.98px) {
    .section-label .display-1 {
        font-size: 80px;
    }
    
    .tech-title {
        font-size: 24px;
        margin-left: 50px;
    }
    
    .circle-image-container {
        width: 150px;
        height: 150px;
    }
    
    .tech-item {
        margin-bottom: 70px;
    }
}

@media (max-width: 767.98px) {
    .tech-item .row {
        flex-direction: column;
    }
    
    .tech-item .row.flex-row-reverse {
        flex-direction: column;
    }
    
    .circle-image-container {
        width: 120px;
        height: 120px;
        bottom: -20px;
        right: 20px;
    }
    
    .tech-image-wrapper.right-aligned .circle-image-container {
        left: 20px;
    }
    
    .tech-description {
        padding: 20px 0;
    }
}

.certification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badge-pulse 2s infinite;
    z-index: 5;
}

.certification-badge i {
    position: absolute;
    color: #856c23;
    font-size: 150px;
    z-index: 1;
}

.certification-badge span {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-align: center;
    max-width: 60px;
    line-height: 1.2;
    z-index: 2;
}

@keyframes badge-pulse {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Responsive adjustments for certification badge */
@media (max-width: 991px) {
    .certification-badge {
        width: 100px;
        height: 100px;
        top: 10px;
        right: 10px;
    }
    
    .certification-badge i {
        font-size: 120px;
    }
    
    .certification-badge span {
        font-size: 11px;
        max-width: 50px;
    }
}

@media (max-width: 767px) {
    .certification-badge {
        width: 90px;
        height: 90px;
        top: -50px;
        right: 10px;
    }
    
    .certification-badge i {
        font-size: 110px;
    }
    
    .certification-badge span {
        font-size: 10px;
        max-width: 45px;
    }
}

@media (max-width: 575px) {
    .certification-badge {
        width: 110px;
        height: 80px;
        top: -50px;
        right: 5px;
    }
    
    .certification-badge i {
        font-size: 110px;
    }
    
    .certification-badge span {
        font-size: 12px;
        max-width: 40px;
    }
}

/* Default/Desktop positioning (above 992px) */
.gear1 {
    top: 109px;
    left: 11%;
}

.gear2 {
    top: 148px;
    left: 28%;
}

.gear3 {
    top: 109px;
    left: 45%;
}

.gear4 {
    top: 142px;
    left: 62%;
}

.gear5 {
    top: 106px;
    left: 79%;
}



@media (max-width: 1024px) {


    .bienvenue-wrapper {
        padding: 10px;
    }
    .bienvenue-wrapper h3 {
        font-size: 1.4em;
    }

    .gear i {
        font-size: 8rem;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    }

    .gear1 {
        top: 126px;
        left: 7%;
    }

    .gear2 {
        top: 158px;
        left: 26%;
    }

    .gear3 {
        top: 126px;
        left: 45%;
    }

    .gear4 {
        top: 153px;
        left: 64%;
    }

    .gear5 {
        top: 122px;
        left: 83%;
    }

}



/* Tablet view positioning */
@media (max-width: 992px) {
    .gear1 {
        top: 50px;    /* Adjust these values */
        left: 50%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .gear2 {
        top: 200px;   /* Adjust these values */
        left: 50%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .gear3 {
        top: 350px;   /* Adjust these values */
        left: 50%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .gear4 {
        top: 500px;   /* Adjust these values */
        left: 50%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .gear5 {
        top: 650px;   /* Adjust these values */
        left: 50%;    /* Adjust these values */
        transform: translateX(-50%);
    }
}

/* Mobile view positioning */
@media (max-width: 768px) {
    .gear1 {
        top: 45px;    /* Adjust these values */
        left: 45%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .gear2 {
        top: 160px;   /* Adjust these values */
        left: 50%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .gear3 {
        top: 275px;   /* Adjust these values */
        left: 55%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .gear4 {
        top: 390px;   /* Adjust these values */
        left: 50%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .gear5 {
        top: 505px;   /* Adjust these values */
        left: 45%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .return-arrow{
        display: none;
    }

}

/* Small mobile view positioning */
@media (max-width: 480px) {
    .gear1 {
        top: 30px;    /* Adjust these values */
        left: 60%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .gear2 {
        top: 140px;   /* Adjust these values */
        left: 50%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .gear3 {
        top: 250px;   /* Adjust these values */
        left: 40%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .gear4 {
        top: 360px;   /* Adjust these values */
        left: 50%;    /* Adjust these values */
        transform: translateX(-50%);
    }

    .gear5 {
        top: 470px;   /* Adjust these values */
        left: 40%;    /* Adjust these values */
        transform: translateX(-50%);
    }
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 25%;
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .map-container {
        padding-bottom: 75%;
    }
}

.map-frame {
    width: 100%;
    height: 350px;
    border: none;
}

@media (max-width: 768px) {
    .map-frame {
        height: 350px;
    }
}

/* Technologies Section Styles */
.technologies-section {
    padding: 50px 0;
    background: #fff;
    overflow: hidden;
}

.tech-header {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.tech-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tech-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

.tech-item {
    margin-bottom: 120px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.tech-content {
    position: relative;
    width: calc(50% - 20px);
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tech-item:nth-child(odd) .tech-content {
    order: 1;
}

.tech-item:nth-child(even) .tech-content {
    order: 2;
}

.tech-number {
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 120px;
    font-weight: 700;
    color: rgba(var(--bs-primary-rgb), 0.1);
    line-height: 1;
    z-index: 0;
}

.tech-details {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.tech-details h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

.tech-images {
    position: relative;
    margin-top: 30px;
}

.tech-secondary-image {
    width: calc(50% - 20px);
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tech-item:nth-child(odd) .tech-secondary-image {
    order: 2;
}

.tech-item:nth-child(even) .tech-secondary-image {
    order: 1;
}

.parallax-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 16/9;
    transform: translateZ(0);
}

.parallax-img {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 110%;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.2s ease-out;
}

/* Animation classes with improved performance */
[data-aos="fade-right"] {
    transform: translateX(-50px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 991px) {
    .tech-timeline::before {
        left: 20px;
    }

    .tech-item {
        flex-direction: column;
        gap: 20px;
    }

    .tech-content,
    .tech-secondary-image {
        width: calc(100% - 40px);
        margin-left: 40px;
    }

    .tech-item:nth-child(odd) .tech-content,
    .tech-item:nth-child(even) .tech-content,
    .tech-item:nth-child(odd) .tech-secondary-image,
    .tech-item:nth-child(even) .tech-secondary-image {
        order: unset;
    }

    .tech-number {
        font-size: 80px;
        top: -10px;
        left: -10px;
    }
}

@media (max-width: 576px) {
    .tech-content {
        padding: 20px;
    }

    .tech-content,
    .tech-secondary-image {
        width: calc(100% - 20px);
        margin-left: 20px;
    }
}

/* iPad Portrait Mode Fixes */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
    .about-img {
        position: relative !important;
        max-width: 100%;
        height: auto;
        padding: 2rem;
    }
    
    .about-img img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }

    .parallax-banner {
        background-attachment: scroll !important;
        min-height: 400px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

/* Team member images with hover effects */
.team-img img {
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.team-img img:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0,123,255,0.5);
}

/* Star ratings and hover effects */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 24px;
    color: #ffc107;
}

.star-rating i {
    transition: all 0.3s ease;
}

.star-rating i:hover {
    transform: scale(1.2);
    text-shadow: 0 0 8px rgba(255,193,7,0.8);
}

.rating-box {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
}

.rating-box .stars {
    font-size: 28px;
    color: #ffc107;
}

.rating-text {
    font-size: 18px;
    color: #666;
}
/*** Testimonials ***/
.testimonials-item {
    height: 400px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.testimonials-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.testimonials-rating {
    margin-bottom: 15px;
}

.star-rating {
    color: #ffc107;
}

.testimonials-text {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 10px;
}

.testimonials-text::-webkit-scrollbar {
    width: 5px;
}

.testimonials-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.testimonials-text::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

.testimonials-info {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
}

.testimonials-info p {
    margin: 0;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 991px) {
    .testimonials-item {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .testimonials-item {
        height: 300px;
    }
}
