body {
    padding-top: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, #f0f0f0 1px, transparent 0);
    background-size: 20px 20px;
    font-family: var(--body-font);
}

/* Navbar Styles */
.navbar {
    background-color: transparent !important;
    position: absolute;
    width: 100%;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    position: fixed;
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-link,
.navbar.scrolled .navbar-brand,
.navbar.scrolled .navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: normal;
}

.navbar > .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.navbar-brand img {
    height: 75px;
    width: auto;
    position: relative;
    z-index: 9999;
}

.navbar-light .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.navbar.scrolled .navbar-nav .nav-link,
.navbar.scrolled .navbar-brand {
    color: var(--primary-color) !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: rgba(255,255,255,0.8);
}

/* WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    margin-top: -76px;
}

.hero .carousel-item {
    height: 600px;
    transition: transform .6s ease-in-out, opacity .5s ease-in-out;
    position: relative;
}

.hero .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0.4) 60%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.hero .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Presentation Section */
.presentation {
    background-color: transparent;
}

.about-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.about-content {
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.about-gallery {
    max-width: 100%;
    margin: 0 auto;
}

.about-image {
    background: white;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    margin-bottom: 15px;
}

.about-image:hover {
    transform: translateY(-5px);
}

.about-gallery .row {
    margin: -8px;
}

.about-gallery .col-6 {
    padding: 8px;
}

/* Service Cards */
.service-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

/* Footer */
footer {
    padding: 40px 0;
    background: var(--footer-bg-color);
    margin-top: auto;
}

footer h5 {
    font-family: var(--title-font);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

footer .social-icons {
    margin: 0;
    gap: 1rem;
    display: flex;
    justify-content: flex-start;
}

footer .social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: opacity 0.3s;
}

footer .social-icons a:hover {
    opacity: 0.8;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero {
        margin-top: -70px;
    }

    .hero .carousel-item {
        height: 400px;
    }

    .banner-img {
        max-height: 400px;
        object-position: center;
    }

    footer h5,
    footer p,
    footer .social-icons {
        text-align: center;
    }

    footer .social-icons {
        justify-content: center;
    }

    .about-image {
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

    padding: 0.5rem 0.7rem;

/* Contact Page Styles */
.contact-cards {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.8rem;
    color: white;
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-info p {
    margin: 0;
    color: #666;
}

.contact-info a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.social-links h3 {
    color: var(--primary-color);
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
    color: white;
}

@media (max-width: 768px) {
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .contact-icon {
        margin-bottom: 1rem;
    }
}

.navbar-light .navbar-toggler {
    border: none;
    z-index: 1100;
    position: relative;
    padding: 0;
    width: 30px;
    height: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-toggler {
        display: flex;
    }
}

.navbar-light .navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-light .navbar-toggler-icon::before,
.navbar-light .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-light .navbar-toggler-icon::before {
    transform: translateY(-8px);
}

.navbar-light .navbar-toggler-icon::after {
    transform: translateY(8px);
}

.navbar-light .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-light .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
}

.navbar-light .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--header-bg-color);
        transition: all 0.3s ease-in-out;
        padding: 2rem;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-nav {
        margin-top: 4rem;
        text-align: center;
        padding-left: 0;
    }

    .navbar-nav .nav-item {
        margin: 0.3rem 0;
        text-align: center;
        width: 100%;
    }

    .navbar-nav .nav-link {
        text-align: center;
        padding-left: 0;
        font-size: 1.2rem;
        padding: 0.3rem 0;
        color: var(--nav-links-color) !important;
    }

    .mobile-social-title {
        color: var(--nav-links-color);
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        text-align: center;
        padding-left: 0;
    }

    .mobile-social-icons {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        padding-left: 0;
    }

    .mobile-social-icons a {
        color: var(--nav-links-color);
        font-size: 1.4rem;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);

.map-container {
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    border-radius: 10px;
}

        z-index: 999;
        backdrop-filter: blur(3px);
    }
}

.social-icons {
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-left: 1rem;
    text-decoration: none;
}

.social-icons a:hover {
    opacity: 0.8;
}

.location-info {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
}

.location-info i {
    margin-right: 8px;
    color: white;
}

.dropdown-menu {
    background-color: #2f2c79;
    border: 1px solid rgba(255,255,255,0.1);
}

.dropdown-item {
    color: white;
}

.dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

header {
    width: 100%;
    background: var(--header-bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.admin-link {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

.admin-link:hover {
    color: rgba(255, 255, 255, 0.5);
}

footer .contact-info i {
    margin-right: 10px;
    width: 20px;
}

@media (max-width: 768px) {
    footer .social-icons {
        margin: 0 auto;
        justify-content: center;
    }
}

footer .institutional-text {
    max-width: 300px;
    margin: 20px 0 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    footer .institutional-text {
        margin: 20px auto 0;
        text-align: center;
    }
}

footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

footer .copyright .heart {
    color: #ff4d4d;
    margin: 0 3px;
}

footer h5.mt-4 {
    margin-top: 2rem;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity .6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .banner-img {
        max-height: 400px;
        object-position: center;
        will-change: transform;
        content-visibility: auto;
    }
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.hero .carousel-control-prev {
    left: 20px;
}

.hero .carousel-control-next {
    right: 20px;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
    background: white;
}

.presentation-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

.services-content {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.specialty-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    display: block;
    text-align: center;
    margin: 0 auto;
}

.specialty-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.services-subtitle {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.services-description {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    right: -20px;
    height: 60%;
    background: radial-gradient(circle at 30% 107%, rgba(var(--abstract-color), 0.05) 0%, rgba(var(--abstract-color), 0.08) 5%, rgba(var(--abstract-color), 0.15) 45%, rgba(var(--abstract-color), 0.05) 60%, transparent 70%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(-5deg);
    z-index: 0;
    filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 70%;
    height: 40%;
    background: radial-gradient(circle at 70% 30%, rgba(var(--abstract-color), 0.08) 0%, rgba(var(--abstract-color), 0.12) 45%, transparent 70%);
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    transform: rotate(5deg);
    z-index: 0;
    filter: blur(8px);
}

.services-cards > div:nth-child(12n+1) .service-card { --abstract-color: 255, 107, 107; }
.services-cards > div:nth-child(12n+2) .service-card { --abstract-color: 78, 205, 196; }
.services-cards > div:nth-child(12n+3) .service-card { --abstract-color: 69, 183, 209; }
.services-cards > div:nth-child(12n+4) .service-card { --abstract-color: 150, 206, 180; }
.services-cards > div:nth-child(12n+5) .service-card { --abstract-color: 75, 139, 190; }
.services-cards > div:nth-child(12n+6) .service-card { --abstract-color: 155, 89, 182; }
.services-cards > div:nth-child(12n+7) .service-card { --abstract-color: 231, 76, 60; }
.services-cards > div:nth-child(12n+8) .service-card { --abstract-color: 52, 152, 219; }
.services-cards > div:nth-child(12n+9) .service-card { --abstract-color: 46, 204, 113; }
.services-cards > div:nth-child(12n+10) .service-card { --abstract-color: 241, 196, 15; }
.services-cards > div:nth-child(12n+11) .service-card { --abstract-color: 230, 126, 34; }
.services-cards > div:nth-child(12n+12) .service-card { --abstract-color: 26, 188, 156; }

.service-card > * {
    position: relative;
    z-index: 1;
}

.services-cards > div:nth-child(12n+1) .service-card { background-color: #FFF5F5; }
.services-cards > div:nth-child(12n+2) .service-card { background-color: #F0FFF4; }
.services-cards > div:nth-child(12n+3) .service-card { background-color: #F0F5FF; }
.services-cards > div:nth-child(12n+4) .service-card { background-color: #F7FAFC; }
.services-cards > div:nth-child(12n+5) .service-card { background-color: #F0FFFF; }
.services-cards > div:nth-child(12n+6) .service-card { background-color: #FFF0F5; }
.services-cards > div:nth-child(12n+7) .service-card { background-color: #F5F0FF; }
.services-cards > div:nth-child(12n+8) .service-card { background-color: #F0FAFF; }
.services-cards > div:nth-child(12n+9) .service-card { background-color: #F5FFFA; }
.services-cards > div:nth-child(12n+10) .service-card { background-color: #FFFFF0; }
.services-cards > div:nth-child(12n+11) .service-card { background-color: #FFF5F0; }
.services-cards > div:nth-child(12n+12) .service-card { background-color: #F0FFF9; }

.service-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid currentColor;
    opacity: 0.3;
    border-radius: 5px;
    clip-path: polygon(
        0% 25%,
        25% 25%,
        25% 0%,
        75% 0%,
        75% 25%,
        100% 25%,
        100% 75%,
        75% 75%,
        75% 100%,
        25% 100%,
        25% 75%,
        0% 75%
    );
}

.services-cards > div:nth-child(12n+1) .service-icon i { color: #FF6B6B; } /* Coral */
.services-cards > div:nth-child(12n+2) .service-icon i { color: #4ECDC4; } /* Turquesa */
.services-cards > div:nth-child(12n+3) .service-icon i { color: #45B7D1; } /* Azul claro */
.services-cards > div:nth-child(12n+4) .service-icon i { color: #96CEB4; } /* Verde menta */
.services-cards > div:nth-child(12n+5) .service-icon i { color: #4B8BBE; } /* Azul médio */
.services-cards > div:nth-child(12n+6) .service-icon i { color: #9B59B6; } /* Roxo */
.services-cards > div:nth-child(12n+7) .service-icon i { color: #E74C3C; } /* Vermelho */
.services-cards > div:nth-child(12n+8) .service-icon i { color: #3498DB; } /* Azul */
.services-cards > div:nth-child(12n+9) .service-icon i { color: #2ECC71; } /* Verde */
.services-cards > div:nth-child(12n+10) .service-icon i { color: #F1C40F; } /* Amarelo */
.services-cards > div:nth-child(12n+11) .service-icon i { color: #E67E22; } /* Laranja */
.services-cards > div:nth-child(12n+12) .service-icon i { color: #1ABC9C; } /* Verde água */

.service-card h5 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.service-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.contact-prompt {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 2rem;
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
}

.cta-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
}

.cta-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp i {
    margin-right: 10px;
}

.testimonials {
    background-color: transparent;
    padding: 4rem 0;
}

.testimonials h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.success-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

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

@media (max-width: 575.98px) {
    .success-stories-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

@media (max-width: 991.98px) {
    .story-row {
        flex-wrap: nowrap;
        margin: 0;
        padding: 0 15px;
    }

    .story-col {
        flex: 0 0 85%;
        max-width: 85%;
        padding: 0;
        transition: transform 0.3s ease;
        margin-right: -15%;
    }

    #successCarousel .carousel-inner {
        overflow: visible;
        padding: 0;
    }

    #successCarousel .carousel-item {
        visibility: visible;
    }

    .testimonial-card {

/* Page Template Styles */
.page-intro {
    position: relative;
    background-color: transparent;
    overflow: hidden;
}

.page-intro .col-md-6:first-child {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}

::root {
    --heading-font-size-xl: 2.5rem;
    --heading-font-size-lg: 2rem;
    --heading-font-size-md: 1.5rem;
    --body-font-size-lg: 1.2rem;
    --body-font-size-md: 1.1rem;
    --body-font-size-sm: 1rem;
}

.page-content {
    background-color: #ffffff;
    font-family: var(--body-font);
    color: #444;
    line-height: 1.8;
}

.featured-image-wrapper {
    background: white;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    max-width: 90%;
    margin: 0 auto;
}

.presentation-title {
    font-family: var(--title-font);
    font-size: var(--heading-font-size-xl);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.presentation-subtitle {
    font-family: var(--title-font);
    font-size: var(--heading-font-size-md);
    color: #444;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.description-text {
    font-family: var(--body-font);
    font-size: var(--body-font-size-lg);
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.services-text {
    font-family: var(--body-font);
    font-size: var(--body-font-size-md);
    color: #555;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .presentation-title {
        font-size: var(--heading-font-size-lg);
        text-align: center;
    }

    .presentation-subtitle {
        font-size: var(--heading-font-size-md);
        text-align: center;
    }

    .description-text {
        font-size: var(--body-font-size-md);
        text-align: center;
    }
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.content-wrapper {
    padding: 2rem;
}

.description-text {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .featured-image-wrapper {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .content-wrapper {
        padding: 1rem;
        text-align: center;
    }
}

.page-content .page-intro .col-md-6:first-child img.img-fluid:hover {
    transform: rotate(0deg) translateY(-10px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2) !important;
}

.page-intro img::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(0,0,0,0.1);
}

.page-intro img:hover {
    transform: rotate(0deg) translateY(-15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.page-intro {
    position: relative;
    background-color: transparent;
    overflow: hidden;
    background-image: 
        linear-gradient(45deg, #f8f9fa 25%, transparent 25%),
        linear-gradient(-45deg, #f8f9fa 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f8f9fa 75%),
        linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.page-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(150, 206, 180, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(69, 183, 209, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.05) 0%, transparent 60%),
        linear-gradient(45deg, rgba(46, 204, 113, 0.03) 0%, transparent 40%);
    z-index: 0;
}

.page-intro .container {
    position: relative;
    z-index: 1;
}

.page-intro .presentation-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
}

.page-intro .presentation-text {
    color: #444;
    font-weight: 500;
    text-align: left;
}

.page-intro .services-text {
    color: #444;
    line-height: 1.8;
    text-align: left;
}

.page-intro img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .page-intro {
        padding: 40px 0;
    }

    .page-intro .presentation-title {
        font-size: 2rem;
        text-align: center;
    }

    .page-intro .presentation-text,
    .page-intro .services-text {
        text-align: center;
    }

    .page-intro .col-md-6:first-child {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .page-intro .col-md-6:first-child img.img-fluid {
        margin: 0 auto 30px auto;
        max-width: 100% !important;
    }
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.page-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.page-intro {
    padding: 60px 0;
    background: #f8f9fa;
}

.intro-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-main-content {
    padding: 60px 0;
}

.text-content,
.html-content {
    margin-bottom: 2rem;
}

.cards-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.gallery-section {
    padding: 60px 0;
}

.gallery-grid {
    margin: -10px;
}

.gallery-item {
    display: block;
    margin: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image-wrapper {
    width: 350px;
    height: 350px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-image-wrapper {
        width: 100%;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1.2rem;
    }

    .intro-content {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .content-wrapper {
        padding: 0 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .gallery-grid {
        padding: 0 20px;
    }
}

        height: 350px;
        width: 100%;
        margin: 0;
    }

    .testimonial-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }
}

#successCarousel .carousel-control-prev,
#successCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(47, 44, 121, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

#successCarousel .carousel-control-prev {
    left: -20px;
}

#successCarousel .carousel-control-next {
    right: -20px;
}

#successCarousel .carousel-control-prev:hover,
#successCarousel .carousel-control-next:hover {
    background: rgba(47, 44, 121, 1);
}

#successCarousel .carousel-control-prev-icon,
#successCarousel .carousel-control-next-icon {
    filter: brightness(2);
}

.story-row {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    gap: 15px;
}

@media (min-width: 992px) {
    .story-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
    }

    .story-col {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        padding: 0;
        display: block;
    }

    #successCarousel .carousel-inner {
        overflow: hidden;
        padding: 0 15px;
    }

    #successCarousel .carousel-item {
        display: block;
    }

    #successCarousel .carousel-item .story-col {
        margin-right: 0;
    }
}

@media (max-width: 991.98px) {
    .story-col {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}

.testimonial-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.testimonial-card {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-overlay {
    transform: translateY(0);
}

.testimonial-overlay p {
    color: white;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .testimonial-card {
        height: 250px;
    }
}

.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.feature-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.instagram-feed {
    background-color: transparent;
}

.instagram-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.instagram-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-overlay i {
    color: white;
    font-size: 2rem;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .instagram-item img {
        height: auto;
        object-fit: contain;
    }
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-preview {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding: 40px 0;
    }

    .about-preview img {
        margin-bottom: 2rem;
    }
}

.gallery-grid {
    padding: 0 20px;
}

.medical-partners {
    background-color: transparent;
}

.medical-partners img {
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.medical-partners img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .medical-partners img {
        max-height: 180px;
        padding: 15px;
    }
    
    .medical-partners .row .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .medical-partners .carousel-item .row > div:not(:first-child) {
        display: none;
    }
}

#partnersCarousel .carousel-control-prev,
#partnersCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

#partnersCarousel .carousel-control-prev:hover,
#partnersCarousel .carousel-control-next:hover {
    opacity: 1;
}

#partnersCarousel .carousel-control-prev {
    left: -50px;
}

#partnersCarousel .carousel-control-next {
    right: -50px;
}

@media (max-width: 768px) {
    #partnersCarousel .carousel-control-prev,
    #partnersCarousel .carousel-control-next {
        display: none;
    }

    
}