html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #5A8C5A;
    --logo-color: #31C39D; 
    --dark-text: #333333;
    --light-text: #555555;
    --bg-light-shape: #f8f9fa;
    --container-width: 1140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: var(--dark-text);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 100;
    padding: 16px 0; 
}

/* Header uses a wider rail so long PT labels don't collide */
header .container {
    max-width: 1320px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    /* background-color: var(--logo-color); */
    color: var(--logo-color) !important; /* !important garante que sobrescreva o azul do navegador */
    padding: 8px 12px;
    text-decoration: none; 
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 110;
    flex-shrink: 0;
}

.logo::before {
    content: 'Guta da Silva'; 
    display: inline-block;
    font-weight: bold;
    margin-right: 0; 
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(1.1rem, 1.8vw, 1.85rem);
    flex: 1 1 auto;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 0 0.75rem;
    min-width: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
    transition: transform 0.3s ease-in-out;
}

.nav-links li {
    flex-shrink: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: nowrap;
    display: inline-block;
    padding: 0.35rem 0.15rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

/* Index only: Contato + language switch (blog keeps its own inline styles) */
header:not(.blog-header) .blog-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    padding: 8px 14px;
    background: rgba(49, 195, 157, 0.06);
    border-radius: 999px;
    border: 1px solid rgba(49, 195, 157, 0.2);
    flex-shrink: 0;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 120;
}

header:not(.blog-header) > .container {
    padding-right: clamp(220px, 17vw, 290px);
}

header:not(.blog-header) .blog-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

header:not(.blog-header) .blog-nav-links li {
    margin: 0;
}

header:not(.blog-header) .blog-flag {
    display: inline-flex;
    padding: 4px;
    border-radius: 6px;
    line-height: 0;
    opacity: 0.75;
    transition: background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

header:not(.blog-header) .blog-flag img {
    width: 32px;
    height: auto;
    display: block;
    border-radius: 4px;
}

header:not(.blog-header) .blog-flag:hover {
    background: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

header:not(.blog-header) .blog-flag-active {
    box-shadow: 0 0 0 2px var(--primary-color, #31C39D);
    opacity: 1;
}

header:not(.blog-header) .blog-nav-links .blog-flag:not(.blog-flag-active) {
    opacity: 0.75;
}

header:not(.blog-header) .blog-btn,
header:not(.blog-header) .btn.blog-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    background: var(--primary-color, #31C39D);
    color: #fff;
    border: none;
    text-align: center;
}

header:not(.blog-header) .blog-btn:hover,
header:not(.blog-header) .btn.blog-btn:hover {
    background: #2ab38a;
    color: #fff;
}

header:not(.blog-header) .blog-btn i {
    margin-right: 0;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #4a774a;
}

.nav-btn-desktop {
    display: block; 
    width: 130px;
    text-align: center;
    flex-shrink: 0; 
}

.nav-btn-li {
    display: none;
}

.mobile-lang-switch {
    display: none;
}

.menu-toggle {
    display: none; 
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero-section {
    position: relative;
    padding: 60px 0;
    padding-top: 100px; 
}

.hero-section::before {
    content: '';
    position: absolute;
    left: -200px;
    top: -150px;
    width: 800px;
    height: 800px;
    background-color: var(--bg-light-shape);
    z-index: -1;
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    animation: morph 15s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    }
    50% {
        border-radius: 55% 45% 55% 45% / 45% 55% 40% 60%;
    }
    100% {
        border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    }
}

.hero-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-content {
    position: relative;
}

.hero-content .subtitle {
    color: var(--light-text);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content .description {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
    margin: -10px 0 18px;
    max-width: 540px;
}

.hero-bio {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 560px;
}

.hero-bio p {
    margin-bottom: 12px;
}

.hero-bio-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px;
}

.hero-bio-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
}

.hero-bio-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.hero-bio-list strong {
    color: var(--dark-text);
    font-weight: 600;
}

.hero-actions .social-links {
    gap: 14px;
}

.hero-actions .social-links a {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    color: var(--primary-color);
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(49, 195, 157, 0.22);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-actions .social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 24px rgba(49, 195, 157, 0.35);
}

.recommendations-section {
    padding: 90px 0;
    background-color: #fff;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.recommendation-card {
    background: #f9fbfd;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recommendation-card .quote-icon {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.recommendation-card .feedback {
    flex-grow: 1;
    margin-bottom: 24px;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    font-style: italic;
}

.recommendation-card .author-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.recommendation-card .author-info .name {
    font-weight: 700;
    color: var(--dark-text);
}

.recommendation-card .author-info .role {
    font-size: 0.85rem;
    color: var(--light-text);
}

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

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

    .recommendations-section .section-header h2 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .recommendations-section .section-header .description {
        font-size: 0.9rem;
    }

    .hero-role {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-bio {
        text-align: left;
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-media {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 150px 25px 150px 25px; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.play-button {
    position: absolute;
    bottom: 20px;
    left: 20px; 
    right: auto;
    width: 140px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-button:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.6);
}

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

.play-icon {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid white;
    margin-left: 5px;
}

.deco-grid {
    position: absolute;
    width: 100px;
    height: 80px;
    background-image: 
        linear-gradient(rgba(180,180,180,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180,180,180,0.5) 1px, transparent 1px);
    background-size: 15px 15px;
    background-position: -1px -1px;
    z-index: -1;
}

.grid-top {
    top: -20px;
    right: 40px;
}

.grid-bottom {
    bottom: -30px;
    left: -40px;
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    font-weight: 300;
}

@media (max-width: 1280px) {
    .menu-toggle {
        display: flex;
    }

    .nav-btn-desktop {
        display: none;
    }

    header:not(.blog-header) .blog-nav-right {
        display: none;
    }

    header:not(.blog-header) > .container {
        padding-right: 20px;
    }

    .mobile-lang-switch {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .mobile-lang-switch .blog-flag {
        display: inline-flex;
        padding: 4px;
        border-radius: 6px;
        line-height: 0;
        opacity: 0.75;
        transition: background 0.2s, opacity 0.2s, box-shadow 0.2s;
    }

    .mobile-lang-switch .blog-flag img {
        width: 40px;
        height: auto;
        display: block;
        border-radius: 4px;
    }

    .mobile-lang-switch .blog-flag-active {
        opacity: 1;
        box-shadow: 0 0 0 2px var(--primary-color, #31C39D);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding: 0;
        white-space: normal;
        transform: translateX(100%);
        z-index: 105;
    }

    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li a {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .nav-btn-li {
        display: block; 
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
        margin-top: 30px;
    }
    
    .hero-media {
        order: 1;
    }
    
    .hero-content .description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section::before {
        width: 500px;
        height: 500px;
        left: 50%;
        transform: translateX(-50%);
        top: 200px;
        animation: none;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-section::before {
        display: none;
    }
    
    .deco-grid {
        display: none;
    }
    
    .play-button {
        width: 110px;
        height: 60px;
        bottom: 10px;
        left: 10px; 
        right: auto;
    }

    .play-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .play-icon {
        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 16px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

.products-section {
    background-color: #f9fbfd; 
    padding: 100px 0;
    position: relative;
    overflow: hidden; 
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .subtitle {
    color: var(--light-text);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.section-header .description {
    color: var(--light-text);
    font-size: 1rem;    
    line-height: 1.7;
}

.swiper-slide.product-card {
    height: auto !important;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .swiper-slide.product-card {
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .swiper-slide.product-card {
        min-height: 350px;
    }
}

.product-swiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 50px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.product-swiper:active {
    cursor: grabbing;
}

.product-swiper .swiper-wrapper {
    cursor: grab;
}

.product-swiper.swiper-grab .swiper-wrapper {
    cursor: grab;
}

.product-swiper.swiper-grabbing .swiper-wrapper {
    cursor: grabbing;
}

.product-swiper .swiper-slide {
    cursor: grab;
}

.product-swiper.swiper-grabbing .swiper-slide {
    cursor: grabbing;
}

.product-card.swiper-slide {
    display: flex;
    flex-direction: column;
}

.product-swiper .swiper-pagination {
    bottom: 0; 
}

.product-swiper .swiper-pagination-bullet {
    background-color: #ccc;
    opacity: 1;
    width: 10px;
    height: 10px;
}

.product-swiper .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.card-icon-wrapper {
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.card-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 140, 90, 0.05) 0%, rgba(49, 195, 157, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover .card-icon-wrapper::before {
    opacity: 1;
}

.card-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.product-card:hover .card-icon-wrapper img {
    transform: scale(1.08);
}

/* Lazy loading placeholder */
.card-icon-wrapper img[loading="lazy"] {
    background-color: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.product-card {
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;

    background-color: #ffffff;
    border-radius: 20px;
    padding: 24px;
    min-height: 500px;
    text-align: left;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
    transition: opacity 320ms ease, transform 320ms ease, box-shadow 0.3s ease;
    will-change: opacity, transform;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.product-swiper.swiper-grabbing .product-card {
    cursor: grabbing;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
    font-size: 1.35rem;
    color: var(--dark-text);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    width: 100%;
}

.product-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.65;
    width: 100%;
}

/* Estilos para texto truncado e expandido */
.card-text-content {
    position: relative;
    margin-bottom: 12px;
    width: 100%;
}

.text-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
    text-align: left;
    color: var(--light-text);
}

.product-card.expanded .text-preview {
    -webkit-line-clamp: unset;
    display: block;
}

.read-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    width: auto;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.read-more-btn:hover {
    background: var(--logo-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card.expanded .read-more-btn {
    background: #dc3545;
}

.product-card.expanded .read-more-btn:hover {
    background: #c82333;
}

/* Responsividade para cards — legendas unificadas */
@media (max-width: 768px) {
    .product-card {
        padding: 0;
        min-height: auto;
        border-radius: 16px;
        overflow: hidden;
        align-items: stretch;
        text-align: left;
    }
    
    .card-icon-wrapper {
        height: 200px !important;
        margin-bottom: 0;
        border-radius: 0;
    }

    .product-card h3,
    .product-card p,
    .card-text-content,
    .read-more-btn {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        margin-top: 14px;
        line-height: 1.35;
    }
    
    .product-card p {
        font-size: 0.875rem;
        line-height: 1.55;
    }
    
    .card-text-content {
        margin-bottom: 12px;
        max-height: none;
        overflow: visible;
    }

    .text-preview {
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
    
    .read-more-btn {
        display: none;
    }
}

@media (max-width: 576px) {
    .product-card {
        padding: 0;
        min-height: auto;
        border-radius: 14px;
    }
    
    .product-card h3 {
        font-size: 1.05rem;
        margin-top: 12px;
        margin-bottom: 6px;
        padding-left: 14px;
        padding-right: 14px;
    }
    
    .product-card p,
    .card-text-content {
        font-size: 0.84rem;
        line-height: 1.5;
        padding-left: 14px;
        padding-right: 14px;
        margin-bottom: 14px;
    }
    
    .card-icon-wrapper {
        height: 180px !important;
        margin-bottom: 0;
        border-radius: 0;
    }
    
    .text-preview {
        -webkit-line-clamp: 3;
    }
    
    .read-more-btn {
        display: none;
    }
}

@media (min-width: 1200px) {
    .card-icon-wrapper {
        height: 240px !important;
    }
    
    .text-preview {
        -webkit-line-clamp: 5;
    }
    
    .product-card {
        min-height: 550px;
    }
}

.product-card.pre-hidden {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
    pointer-events: none;
}

.grid-products-top {
    top: 40px;
    left: 40px;
}

.grid-products-bottom {
    bottom: 40px;
    left: 40px;
}

.blob {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background-color: #ffffff;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.7;
}

.blob-top-right {
    top: -300px;
    right: -300px;
    opacity: 0.5;
}

.blob-bottom-left {
    bottom: -300px;
    left: -300px;
}

.certificates-section {
    background-color: #24263a;
    color: #ffffff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.certificates-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px;
}

.certificates-content .subtitle {
    color: #aab2c8;
}

.certificates-content h2 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.certificates-content .description {
    color: #c0c8dd;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 450px;
}

.certificates-content .description:last-of-type {
    margin-bottom: 0;
}

.button-group {
    margin-top: 35px;
    display: flex;
    gap: 12px;
}

/* Horizontal filter carousel (swipe on mobile) */
#filter-btn-group.filter-carousel {
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 4px 14px;
    margin-left: -4px;
    margin-right: -4px;
    touch-action: pan-x;
    cursor: grab;
}

#filter-btn-group.filter-carousel::-webkit-scrollbar {
    display: none;
}

#filter-btn-group.filter-carousel .btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    #filter-btn-group.filter-carousel {
        gap: 8px;
        padding: 4px 2px 12px;
        mask-image: linear-gradient(to right, #000 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    }

    #filter-btn-group.filter-carousel .btn {
        padding: 9px 16px;
        font-size: 0.85rem;
    }
}

.certificates-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.certificates-hint {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #aab2c8;
}

.certificate-card {
    background-color: #ffffff;
    color: var(--dark-text);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.certificate-card:hover,
.certificate-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    border-color: rgba(49, 195, 157, 0.35);
    outline: none;
}

.cert-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(49, 195, 157, 0.15), rgba(90, 140, 90, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cert-icon i {
    font-size: 1.6rem;
    color: var(--primary-color, #31C39D);
}

.cert-text {
    min-width: 0;
    flex: 1;
}

.cert-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 6px;
    line-height: 1.35;
}

.cert-text p {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.55;
    margin-bottom: 0;
}

.certificate-card .download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .certificate-card {
        padding: 16px;
        gap: 14px;
    }

    .cert-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .cert-icon i {
        font-size: 1.35rem;
    }

    .cert-text h3 {
        font-size: 1rem;
    }
}

.cert-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.grid-certs-top {
    top: 40px;
    left: 40px;
    opacity: 0.1;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--dark-text);
}

.btn.active-filter {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #ffffff;
}

.certificate-card.hide-card {
    transform: scale(0.8);
    opacity: 0;
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.about-section {
    background-color: #ffffff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
}

.about-image-wrapper {
    position: relative;
    margin-left: -100px; 
}

.about-image {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.grid-about-left {
    top: 0;
    left: 80px;
    z-index: 1;
}

.about-content-wrapper {
    position: relative;
    z-index: 2;
}

.blob-about {
    width: 500px;
    height: 500px;
    background-color: var(--bg-light-shape);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    z-index: -1;
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    animation: morph 15s ease-in-out infinite;
}

.about-content-box {
    background-color: #24263a;
    color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.about-content-box h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-content-box p {
    color: #c0c8dd;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-content-box p:last-of-type {
    margin-bottom: 0;
}

.btn-outline-dark {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

@media (max-width: 992px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .certificates-content .description {
        margin-left: auto;
        margin-right: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        margin-left: 0;
        margin-bottom: 30px;
    }
    
    .grid-about-left {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .section-header h2,
    .certificates-content h2 {
        font-size: 2.2rem;
    }

    .about-image-wrapper {
        display: none; 
    }
    
    .about-content-box h3 {
        font-size: 1.5rem;
    }
}

.latest-products-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.latest-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    row-gap: 80px;
    margin-top: 60px;
}

.lp-item {
    display: flex;
    flex-direction: column;
}

.lp-image-wrapper {
    width: 100%;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 20px;
}

.lp-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.lp-item:hover .lp-image-wrapper img {
    transform: scale(1.05);
}

.lp-content {
    text-align: left;
}

.lp-tag {
    display: block;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 8px;
    font-weight: 500;
}

.lp-content h3 {
    font-size: 1.6rem;
    color: var(--dark-text);
    font-weight: 700;
    font-family: 'Poppins', serif; 
}

@media (max-width: 768px) {
    .latest-products-grid {
        grid-template-columns: 1fr;
        row-gap: 50px;
    }

    .lp-content h3 {
        font-size: 1.4rem;
    }
}

.testimonials-section {
    background-color: #f9fbfd;
    padding: 100px 0;
}

.testimonial-swiper {
    padding-bottom: 50px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.testimonial-swiper:active {
    cursor: grabbing;
}

.testimonial-swiper.swiper-grabbing {
    cursor: grabbing;
}

.testimonial-swiper .swiper-wrapper {
    cursor: grab;
}

.testimonial-swiper.swiper-grabbing .swiper-wrapper {
    cursor: grabbing;
}

.testimonial-swiper .swiper-slide {
    cursor: grab;
}

.testimonial-swiper.swiper-grabbing .swiper-slide {
    cursor: grabbing;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: auto;
    display: flex;
    flex-direction: column;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.feedback {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.author-info .line {
    width: 20px;
    height: 2px;
    background-color: var(--dark-text);
}

.author-info .name {
    font-weight: 700;
    color: var(--dark-text);
}

.author-info .date {
    color: #999;
}

.blog-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.blog-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-header-wrapper .section-header {
    text-align: left;
    margin-bottom: 0;
    margin-left: 0;
    max-width: 600px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    position: relative;
    margin-bottom: 30px;
}

.blog-img {
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
}

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

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

.blog-content {
    background-color: #ffffff;
    width: 85%;
    margin: -60px auto 0 auto;
    position: relative;
    z-index: 2;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.blog-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.4;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-box {
        padding: 50px;
    }

    .cta-text h2 {
        font-size: 2.5rem;
    }
}

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

    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .blog-header-wrapper {
        justify-content: center;
        text-align: center;
    }
    
    .blog-header-wrapper .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

.cta-section {
    padding-bottom: 100px;
}

.cta-box {
    background-color: #4a8b4a;
    background: linear-gradient(135deg, #4a8b4a 0%, #3d753d 100%);
    border-radius: 20px;
    padding: 60px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-text {
    max-width: 60%;
}

.cta-btn {
    flex-shrink: 0;
}

.cta-text .white-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 10px;
}

.cta-text h2 {
    font-size: 3rem;
    font-family: 'Poppins', serif;
    font-weight: 700;
}

.btn-white {
    background-color: #ffffff;
    color: #4a8b4a;
    font-weight: 600;
}

.btn-white:hover {
    background-color: #f0f0f0;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 15px;
    max-width: 600px;
    line-height: 1.6;
}

footer {
    background-color: #1a1d2e;
    color: #ffffff;
    padding: 80px 0 30px 0;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--logo-color);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: serif;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.contact-info i {
    color: #ffffff;
    font-size: 1rem;
    margin-top: 3px;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 100%;
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .logo-col {
        grid-column: span 2;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .logo-col {
        grid-column: span 1;
    }

    .contact-info li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cta-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
    display: flex;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* =========================================================
   Publications PDF lightbox
   ========================================================= */
.pub-lightbox {
    background: rgba(6, 8, 10, 0.62);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

.pub-lightbox__shell {
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: #f5f7fa;
    opacity: 0;
    transform: translateY(10px) scale(0.99);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pub-lightbox.show .pub-lightbox__shell {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pub-lightbox__topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    background: rgba(10, 12, 14, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 5;
}

.pub-lightbox__heading {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pub-lightbox__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffb4b4;
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.28);
}

.pub-lightbox__heading h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(70vw, 640px);
}

.pub-lightbox__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pub-lightbox__open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0b1f1a;
    background: var(--logo-color, #31C39D);
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.pub-lightbox__open:hover {
    background: #2ab089;
    color: #061410;
    box-shadow: 0 8px 20px rgba(49, 195, 157, 0.28);
    transform: translateY(-1px);
}

.pub-lightbox__open:focus-visible,
.pub-lightbox__icon-btn:focus-visible {
    outline: 2px solid var(--logo-color, #31C39D);
    outline-offset: 3px;
}

.pub-lightbox__icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
}

.pub-lightbox__icon-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.04);
}

.pub-lightbox__stage {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    background:
        radial-gradient(ellipse at center, #2a2d31 0%, #121417 70%);
    padding: 16px 16px 8px;
}

.pub-lightbox__stage iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.pub-lightbox__caption {
    flex: 0 0 auto;
    padding: 14px 22px 18px;
    background: rgba(10, 12, 14, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pub-lightbox__caption p {
    margin: 0 auto;
    max-width: 920px;
    color: rgba(235, 238, 242, 0.78);
    font-size: 0.9rem;
    line-height: 1.65;
}

.pub-lightbox__caption p:empty {
    display: none;
}

@media (max-width: 768px) {
    .pub-lightbox__topbar {
        padding: 12px 14px;
        align-items: flex-start;
    }

    .pub-lightbox__heading h3 {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: none;
        font-size: 1rem;
    }

    .pub-lightbox__open {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .pub-lightbox__stage {
        padding: 10px 10px 6px;
    }

    .pub-lightbox__stage iframe {
        border-radius: 8px;
    }

    .pub-lightbox__caption {
        padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .pub-lightbox__caption p {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .pub-lightbox__actions {
        gap: 8px;
    }

    .pub-lightbox__open span,
    .pub-lightbox__open {
        padding: 8px 10px;
    }

    .pub-lightbox__icon-btn {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub-lightbox__shell,
    .pub-lightbox__open,
    .pub-lightbox__icon-btn {
        transition: none;
    }
}

/* =========================================================
   Gallery lightbox — premium full-viewport experience
   ========================================================= */
.gallery-lightbox {
    background: rgba(6, 8, 10, 0.55);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

.gallery-lightbox__shell {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: #f5f7fa;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-lightbox.show .gallery-lightbox__shell {
    opacity: 1;
    transform: scale(1);
}

.gallery-lightbox__topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent);
}

.gallery-lightbox__topbar > * {
    pointer-events: auto;
}

.gallery-lightbox__counter {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    font-variant-numeric: tabular-nums;
}

.gallery-lightbox__icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    font-size: 1.05rem;
    line-height: 1;
}

.gallery-lightbox__icon-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.04);
}

.gallery-lightbox__icon-btn:focus-visible {
    outline: 2px solid var(--logo-color, #31C39D);
    outline-offset: 3px;
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 28;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 14, 16, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    font-size: 1.1rem;
    margin: 0;
}

.gallery-lightbox__nav--prev { left: 12px; }
.gallery-lightbox__nav--next { right: 12px; }

.gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.gallery-lightbox__nav:focus-visible {
    outline: 2px solid var(--logo-color, #31C39D);
    outline-offset: 3px;
}

.gallery-lightbox__nav:disabled,
.gallery-lightbox__nav[aria-disabled="true"] {
    opacity: 0.28;
    cursor: default;
    pointer-events: none;
}

.gallery-lightbox__main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-lightbox__media {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 72px 28px;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.gallery-lightbox__media img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 1280px);
    max-height: calc(100dvh - 220px);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-lightbox.is-loading .gallery-lightbox__media::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--logo-color, #31C39D);
    animation: galleryLightboxSpin 0.75s linear infinite;
    z-index: 5;
}

.gallery-lightbox.is-loading .gallery-lightbox__media img {
    opacity: 0.2;
    filter: blur(6px);
}

.gallery-lightbox.is-swapping .gallery-lightbox__media img {
    opacity: 0;
    transform: translateY(6px);
}

@keyframes galleryLightboxSpin {
    to { transform: rotate(360deg); }
}

.gallery-lightbox__caption {
    flex: 0 0 auto;
    z-index: 20;
    padding: 0;
    border: none;
    background: linear-gradient(to top, rgba(4, 6, 8, 0.92) 0%, rgba(4, 6, 8, 0.72) 55%, rgba(4, 6, 8, 0) 100%);
    max-height: none;
    overflow: visible;
}

.gallery-lightbox__caption-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 28px 32px;
    text-align: left;
}

.gallery-lightbox__caption h3 {
    margin: 0 0 10px;
    padding: 0;
    border: none;
    color: #fff;
    font-size: clamp(1.15rem, 1.6vw, 1.55rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.gallery-lightbox__caption p {
    margin: 0;
    max-width: 68ch;
    color: rgba(235, 238, 242, 0.78);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
}

@media (min-width: 1100px) {
    .gallery-lightbox__main {
        flex-direction: row;
        align-items: stretch;
    }

    .gallery-lightbox__media {
        flex: 1 1 auto;
        padding: 80px 40px 40px 88px;
    }

    .gallery-lightbox__media img {
        max-height: calc(100dvh - 120px);
        max-width: 100%;
    }

    .gallery-lightbox__caption {
        flex: 0 0 min(360px, 32vw);
        max-width: 380px;
        display: flex;
        align-items: flex-end;
        background: linear-gradient(to left, rgba(4, 6, 8, 0.88), rgba(4, 6, 8, 0.55) 70%, transparent);
        padding: 80px 28px 40px 8px;
    }

    .gallery-lightbox__caption-inner {
        margin: 0;
        padding: 24px 20px 12px;
        max-height: calc(100dvh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .gallery-lightbox__caption h3 {
        font-size: 1.45rem;
        margin-bottom: 14px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .gallery-lightbox__caption p {
        font-size: 0.94rem;
        line-height: 1.75;
    }
}

@media (max-width: 768px) {
    .gallery-lightbox__topbar {
        padding: 14px 14px;
    }

    .gallery-lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .gallery-lightbox__nav--prev { left: 6px; }
    .gallery-lightbox__nav--next { right: 6px; }

    .gallery-lightbox__nav:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .gallery-lightbox__media {
        padding: 64px 16px 12px;
    }

    .gallery-lightbox__media img {
        max-height: calc(100dvh - 260px);
        border-radius: 4px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }

    .gallery-lightbox__caption-inner {
        padding: 20px 18px 28px;
    }

    .gallery-lightbox__caption h3 {
        font-size: 1.1rem;
    }

    .gallery-lightbox__caption p {
        font-size: 0.88rem;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow-y: auto;
        max-height: 9.6em;
    }
}

@media (max-width: 480px) {
    .gallery-lightbox__counter {
        font-size: 0.72rem;
    }

    .gallery-lightbox__icon-btn {
        width: 40px;
        height: 40px;
    }

    .gallery-lightbox__nav {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.45);
    }

    .gallery-lightbox__nav:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .gallery-lightbox__media img {
        max-height: calc(100dvh - 280px);
    }

    .gallery-lightbox__caption-inner {
        padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-lightbox__shell,
    .gallery-lightbox__media img,
    .gallery-lightbox__nav,
    .gallery-lightbox__icon-btn {
        transition: none;
    }

    .gallery-lightbox.is-loading .gallery-lightbox__media::after {
        animation: none;
    }
}

.download-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: margin-left 0.3s ease;
}

.download-link:hover {
    margin-left: 5px;
    text-decoration: underline;
}

.download-link i {
    font-size: 0.8rem;
    margin-left: 5px;
}

.certificate-card {
    opacity: 1;
    max-height: 500px;
    overflow: hidden;
}

.certificate-card.hide-item {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
    border: none;
}

.cta-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    
    .cta-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }

    .cta-text {
        max-width: 100%;
    }

    .cta-btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .btn-white {
        width: 100%; 
        max-width: 400px;
        justify-content: center;
    }
    
    .cta-box {
        padding: 40px 30px;
    }
    
    .cta-text h2 {
        font-size: 2rem;
    }
}

.btn-white {
    background-color: #ffffff;
    color: #3D7A43;
    font-weight: 700;
    padding: 18px 60px; 
    min-width: 280px; 
    border-radius: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1rem;
}

.btn-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* --- Animação do Filtro de Produção Acadêmica --- */

/* Estado visível (Padrão) */
.certificate-card {
    display: flex;
    opacity: 1;
    transform: scale(1);
    max-height: 500px; /* Altura máxima suficiente */
    margin-bottom: 20px;
    padding: 20px;
    
    /* Transição suave de todas as propriedades */
    transition: 
        opacity 0.4s ease, 
        transform 0.4s ease, 
        max-height 0.5s ease, 
        margin 0.5s ease, 
        padding 0.5s ease;
    
    overflow: hidden; /* Importante para animar a altura */
}

/* Estado escondido (Classe adicionada pelo JS) */
.certificate-card.hide-item {
    opacity: 0;
    transform: scale(0.9);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
    width: 100%;
    pointer-events: none; /* Impede cliques */
}

/* --- Seção de Serviços (layout em grid, sem foto) --- */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(49, 195, 157, 0.12);
    border-color: rgba(49, 195, 157, 0.25);
}

.service-card:hover::before {
    height: 100%;
}

.service-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(49, 195, 157, 0.12) 0%, rgba(49, 195, 157, 0.06) 100%);
    color: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

.service-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-card-body p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin: 0;
    line-height: 1.6;
}

/* Sexto item do grid: CTA em forma de card com animação */
.service-card-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 28px 24px;
    background: linear-gradient(145deg, rgba(49, 195, 157, 0.15) 0%, rgba(49, 195, 157, 0.06) 50%, rgba(49, 195, 157, 0.12) 100%);
    border: 2px dashed rgba(49, 195, 157, 0.4);
    border-radius: 16px;
    text-decoration: none;
    color: var(--dark-text);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.service-card-cta-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(49, 195, 157, 0.2) 0%, transparent 70%);
    opacity: 0;
    animation: service-cta-pulse 3s ease-in-out infinite;
}

.service-card-cta:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 48px rgba(49, 195, 157, 0.25);
    border-color: var(--primary-color);
    background: linear-gradient(145deg, rgba(49, 195, 157, 0.2) 0%, rgba(49, 195, 157, 0.1) 100%);
}

.service-card-cta:hover .service-card-cta-glow {
    opacity: 1;
    animation: service-cta-pulse 1.2s ease-in-out infinite;
}

.service-card-cta-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: service-cta-icon-float 2.5s ease-in-out infinite;
}

.service-card-cta:hover .service-card-cta-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(49, 195, 157, 0.5);
    animation: service-cta-icon-float 1s ease-in-out infinite;
}

.service-card-cta-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    position: relative;
    z-index: 1;
    transition: color 0.25s ease;
}

.service-card-cta:hover .service-card-cta-text {
    color: var(--primary-color);
}

.service-card-cta-sub {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 4px;
    position: relative;
    z-index: 1;
    transition: color 0.25s ease;
}

.service-card-cta:hover .service-card-cta-sub {
    color: var(--primary-color);
}

@keyframes service-cta-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

@keyframes service-cta-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
    }
    .service-card {
        padding: 24px 20px;
    }
    .service-card-cta {
        padding: 24px 20px;
    }
    .service-card-cta-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .services-section {
        padding: 60px 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }
    .service-card {
        padding: 22px 20px;
    }
    .service-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
    .service-card-body h3 {
        font-size: 1.1rem;
    }
    .service-card-body p {
        font-size: 0.9rem;
    }
    .service-card-cta {
        padding: 24px 20px;
    }
    .service-card-cta-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    .service-card-cta-text {
        font-size: 1rem;
    }
}

/* --- Estilos Específicos para o Preview de Trabalhos --- */
.testimonial-card.preview-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 320px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.preview-tag {
    background-color: rgba(49, 195, 157, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.preview-date {
    font-size: 0.8rem;
    color: #999;
}

.preview-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: center;
}

.preview-card .feedback {
    font-style: normal;
    font-size: 0.95rem;
    color: #666;
    flex-grow: 1;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 50px;
}

/* =========================================
   ESTILIZAÇÃO DA BARRA DE SCROLL (Scrollbar)
   ========================================= */
::-webkit-scrollbar {
    width: 10px;         
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: #31C39D;
    border-radius: 20px;
    border: 2px solid #f8f9fa;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #26a685;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f8f9fa;
}


/* =========================================
    Notificação Estilo Push
   ========================================= */

.mobile-notification {
    position: fixed;
    top: -200px; /* Começa bem escondido */
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    
    /* Animação de Entrada e Saída */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: none;
}

/* Estado Ativo */
.mobile-notification.show {
    top: 20px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Hover effect */
.mobile-notification:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.08);
    transform: translateY(-2px) scale(1);
}

.notif-content {
    display: flex;
    gap: 12px;
    flex: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.notif-content:hover {
    opacity: 0.9;
}

.notif-text {
    flex: 1;
    min-width: 0; /* Permite quebra de texto */
}

/* Ícones e Texto */
.notif-icon {
    flex-shrink: 0;
}

.notif-icon img { 
    width: 48px; 
    height: 48px; 
    border-radius: 12px; 
    background: #f0f0f0;
    object-fit: cover;
}

.notif-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-size: 0.75rem; 
    color: #888; 
    margin-bottom: 4px; 
}

.app-name { 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.time {
    font-size: 0.65rem;
    opacity: 0.7;
}

.notif-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-body .title { 
    font-weight: 700; 
    font-size: 0.95rem; 
    color: #333; 
    display: block;
    line-height: 1.3;
}

.notif-body .message { 
    font-size: 0.85rem; 
    color: #666; 
    line-height: 1.4; 
}

/* BOTÃO FECHAR */
.notif-close {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    
    /* Aumenta a área de clique */
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    
    /* Garante que fique acima do conteúdo */
    position: relative; 
    z-index: 10; 
    flex-shrink: 0;
    
    transition: all 0.2s ease;
}

.notif-close:hover,
.notif-close:focus {
    background-color: rgba(0,0,0,0.08);
    color: #ff4757;
    transform: rotate(90deg);
}

.notif-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* Responsividade */
@media (max-width: 768px) {
    .mobile-notification {
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .mobile-notification {
        right: 10px;
        left: 10px;
        padding: 14px;
        top: -180px;
    }
    
    .mobile-notification.show {
        top: 15px;
    }
    
    .notif-icon img {
        width: 40px;
        height: 40px;
    }
    
    .notif-body .title {
        font-size: 0.9rem;
    }
    
    .notif-body .message {
        font-size: 0.8rem;
    }
}