:root {
    --color-green: #00843d;
    --color-blue: #0033a0;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-light: #f4f4f4;

    /* Theme Variables - Default Light */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #000000;
    --text-secondary: #555555;
    --card-bg: #ffffff;
    --border-color: #eeeeee;
    --header-bg: rgba(255, 255, 255, 0.98);
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.05);
    --input-bg: #f8f9fa;

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

body.dark-mode {
    --bg-primary: #0f1115;
    --bg-secondary: #161a21;
    --text-primary: #f1f3f5;
    --text-secondary: #adb5bd;
    --card-bg: #1c2128;
    --border-color: #2d333b;
    --header-bg: rgba(15, 17, 21, 0.98);
    --shadow-main: 0 10px 40px rgba(0, 0, 0, 0.4);
    --input-bg: #2d333b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: justify;
}

/* Typography */
h1,
h2,
h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

h4,
h5,
h6 {
    text-align: center;
}

/* Header & Navigation */
header {
    background: var(--header-bg);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 60px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.dark-mode .logo-link img,
.dark-mode #hero-logo {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-green);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-green);
}

.nav-link:hover::after {
    width: 100%;
}

/* Cinematic Hero Carousel */
.hero {
    height: 100vh;
    min-height: 600px;
    padding: 0;
    max-width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.carousel-container {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    transform: scale(1);
    transition: transform 12s linear, opacity 1.5s ease-in-out;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 1000px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.carousel-slide.active .carousel-content {
    opacity: 1;
    transform: translateY(0);
}

.carousel-content #hero-logo {
    max-width: 350px;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
    animation: floatLogo 5s ease-in-out infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.carousel-content h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 5px 35px rgba(0, 0, 0, 0.7);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 3.5rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.hero .btn-primary {
    background: var(--color-green);
    border: none;
    font-size: 1.2rem;
    padding: 1.4rem 4rem;
    border-radius: 60px;
    box-shadow: 0 15px 35px rgba(0, 132, 61, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero .btn-primary:hover {
    background: #fff;
    color: var(--color-green);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 132, 61, 0.5);
}

.carousel-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 15px;
}

.carousel-dots .dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2.5px solid transparent;
}

.carousel-dots .dot.active {
    background: var(--color-green);
    transform: scale(1.5);
    border-color: #fff;
    box-shadow: 0 0 20px var(--color-green);
}

.hero .btn-primary:hover {
    background: #fff;
    color: var(--color-green);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 132, 61, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: relative;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--header-bg);
        padding: 2.5rem 1.5rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        text-align: justify;
        z-index: 1000;
        backdrop-filter: blur(20px);
    }

    .carousel-content h1 {
        font-size: 2.6rem !important;
        letter-spacing: -1px;
    }

    .carousel-content p {
        font-size: 1.1rem !important;
        margin-bottom: 2.5rem;
    }

    .hero .btn-primary {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .carousel-content #hero-logo {
        max-width: 220px !important;
        margin-bottom: 1.5rem;
    }

    .carousel-dots {
        bottom: 30px;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--color-blue);
}

.theme-toggle .fa-sun {
    display: none;
}

.dark-mode .theme-toggle .fa-sun {
    display: block;
    color: #ffcc00;
}

.dark-mode .theme-toggle .fa-moon {
    display: none;
}

/* Header Styles Improved */
.nav-search {
    position: relative;
    margin: 0 1rem;
    display: flex;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search input {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: var(--transition);
    width: 180px;
}

.nav-search input:focus {
    width: 250px;
    border-color: var(--color-blue);
    background: var(--bg-primary);
    box-shadow: 0 5px 15px rgba(0, 51, 160, 0.08);
}

.nav-search i {
    position: absolute;
    left: 12px;
    color: var(--color-blue);
    pointer-events: none;
    font-size: 0.9rem;
}

/* Live Search Dropdown */
#search-live-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-main);
    margin-top: 10px;
    display: none;
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#search-live-results.active {
    display: block;
}

.live-search-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
    transition: var(--transition);
}

.live-search-item:hover {
    background: #f0f4ff;
}

.live-search-item h4 {
    font-size: 0.95rem;
    color: var(--color-blue);
    margin-bottom: 3px;
    text-transform: none;
    letter-spacing: 0;
    text-align: justify;
}

.live-search-item p {
    font-size: 0.8rem;
    color: #888;
    text-align: justify;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    margin-left: 1rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-blue);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* Search Results (General) */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 3000;
    display: none;
    flex-direction: column;
    padding: 100px 2rem;
}

.search-overlay.active {
    display: flex;
}

.results-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Transparency Search */
.transparency-search {
    margin-bottom: 3rem;
}

.transparency-search input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
}

.transparency-search input:focus {
    border-color: var(--color-blue);
    background: var(--bg-primary);
    box-shadow: 0 10px 20px rgba(0, 51, 160, 0.1);
}

.search-field-wrapper {
    position: relative;
    max-width: 600px;
}

.search-field-wrapper i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-blue);
    font-size: 1.2rem;
}


.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-blue);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-blue);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition);
    border: 2px solid var(--color-blue);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-blue);
}

/* Sections */
section {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-green);
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.4;
    transition: 0.3s;
    border: 2px solid transparent;
}

.carousel-dots .dot.active {
    opacity: 1;
    transform: scale(1.3);
    border-color: var(--color-green);
}

.carousel-dots .dot:hover {
    opacity: 0.8;
}

.about-content {
    font-size: 1.1rem;
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
}

.highlight-border {
    border-left: 10px solid var(--color-green);
    padding-left: 2rem;
}

#hero-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Contato Section */
.contact-container {
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
}

.contact-description {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #555;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-main);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--color-green);
}

/* Area Cards Adjustments */
.area-card h4,
.area-card h4 i {
    color: var(--color-blue) !important;
}

.area-card:hover h4 i {
    transform: scale(1.1);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--color-blue);
    transition: var(--transition);
}

.contact-item:hover i {
    color: var(--color-green);
}

.contact-info-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-info-text span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.contact-info-text strong {
    font-size: 1.1rem;
    color: var(--color-blue);
}

.contact-item:hover .contact-info-text strong {
    color: var(--color-green);
}


/* Footer */
footer {
    background: var(--bg-primary);
    padding: 4rem 2rem 1rem;
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info {
    text-align: justify;
}

.footer-info h3 {
    color: var(--color-blue);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.credit {
    text-align: justify;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 992px) {
    .nav-search input {
        width: 150px;
    }

    .nav-search input:focus {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1.5rem;
    }

    .nav-search {
        margin: 0;
        flex: 1;
        justify-content: flex-end;
    }

    .nav-search input {
        width: 40px;
        padding-left: 12px;
        color: transparent;
        cursor: pointer;
    }

    .nav-search input:focus {
        width: 180px;
        padding-left: 2.5rem;
        color: var(--color-black);
        cursor: text;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--color-white);
        padding: 2rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        text-align: justify;
        z-index: 1000;
    }

    #search-live-results {
        width: 90%;
        right: 5%;
        left: 5%;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .carousel-content h1 {
        font-size: 2.2rem;
    }

    .carousel-content p {
        font-size: 1.1rem;
    }
}

/* Transparency Section */
.transparency-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transparency-container {
    max-width: 1000px;
    margin: 40px auto;
}

.transparency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-gray-light);
    padding-bottom: 1rem;
}

.transparency-container .section-title {
    margin-bottom: 2rem !important;
    text-align: center;
}

.transparency-container .section-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.btn-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--color-black);
    transition: var(--transition);
    line-height: 1;
}

.btn-close:hover {
    color: var(--color-green);
    transform: rotate(90deg);
}

.transparency-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-align: justify;
}

/* Document Groups */
.category-group {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.5rem;
    color: var(--color-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-green);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Document Button */
.doc-card {
    position: relative;
    padding: 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-card i {
    font-size: 1.2rem;
    color: var(--color-blue);
}

.doc-card:hover {
    background: var(--color-blue);
    color: #fff;
    border-color: var(--color-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doc-card:hover i {
    color: #fff;
}

/* Tooltip/Description */
.doc-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #333;
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 400;
    width: 240px;
    text-align: justify;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    margin-bottom: 10px;
}

.doc-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.doc-card:hover .doc-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Loading State */
.loading-state {
    text-align: justify;
    padding: 4rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--color-blue);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .transparency-section {
        padding: 1rem;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .doc-tooltip {
        display: none;
    }
}

/* Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.objective-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-main);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.objective-item:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--color-green);
}

.objective-item i {
    font-size: 1.5rem;
    color: var(--color-blue);
    width: 40px;
    text-align: center;
}

/* Identity Section */
.identity-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 4rem;
}

.identity-card {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-main);
    border-top: 5px solid var(--color-blue);
    transition: var(--transition);
}

.identity-card:nth-child(2) {
    border-top-color: var(--color-green);
}

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

.identity-card h3 {
    color: var(--color-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.values-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.values-list li {
    position: relative;
    padding-left: 20px;
}

.values-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: bold;
}

/* Certifications */
.cert-section {
    background-color: var(--bg-secondary);
    padding: 60px 2rem;
    border-radius: 12px;
    margin-top: 4rem;
}

.cert-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.cert-list li {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: var(--shadow-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    border-left: 5px solid var(--color-blue);
}

.service-card:hover {
    transform: scale(1.03);
    border-left-color: var(--color-green);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--color-blue);
    margin-bottom: 1.5rem;
}

/* Projects Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--color-gray-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-primary);
    border: 4px solid var(--color-green);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--card-bg);
    position: relative;
    border-radius: 8px;
    box-shadow: var(--shadow-main);
    border-top: 3px solid var(--color-blue);
    text-align: justify;
}

.timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-blue);
}

.timeline-content .date {
    display: inline-block;
    background: var(--color-green);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.timeline-details {
    list-style: none;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
}

.timeline-details li::before {
    content: '→';
    margin-right: 5px;
    color: var(--color-green);
}

/* EASI Project */
.easi-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-main);
}

.easi-hero {
    background: linear-gradient(rgba(0, 132, 61, 0.9), rgba(0, 132, 61, 0.9)), url('img/easi-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 2rem;
    text-align: center;
}

.easi-hero h3 {
    font-size: 2.22rem;
    color: #fff;
    margin-bottom: 1rem;
}

.easi-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

.easi-content {
    padding: 4rem 2rem;
}

.easi-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: justify;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border-bottom: 4px solid var(--color-green);
}

.stat-item span {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-item strong {
    font-size: 1.2rem;
    color: var(--color-blue);
}

/* EASI Interactive Topics (Green Theme) */
.easi-detailed-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: flex-start;
}

.easi-topic {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-main);
    transition: all 0.3s ease;
    border-left: 5px solid var(--color-green);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    min-height: 160px;
    position: relative;
    overflow: hidden;
    flex: 1 1 300px;
    /* Flex growth with base width */
    max-width: 450px;
    /* Prevent overly wide cards on large screens */
}

.easi-topic:hover {
    transform: translateY(-5px);
    border-left-color: var(--color-blue);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.easi-topic i {
    font-size: 2.5rem;
    color: var(--color-green);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.easi-topic.active i {
    color: var(--color-blue);
}

.easi-topic h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: justify;
    width: 100%;
}

.easi-topic p,
.easi-topic .visual-highlight-box {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.5s ease-in-out;
    color: #555;
    line-height: 1.6;
}

.easi-topic.active {
    background-color: #fff;
    border-left-color: var(--color-blue);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.easi-topic.active p,
.easi-topic.active .visual-highlight-box {
    max-height: 800px;
    /* Allow large enough height for content */
    opacity: 1;
    margin-top: 1rem;
}

.easi-info-block ul {
    list-style: none;
}

.easi-info-block ul li {
    margin-bottom: 0.8rem;
    padding-left: 20px;
    position: relative;
}

.easi-info-block ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-size: 1.5rem;
    line-height: 1;
}

/* EASI Gallery */
.easi-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.easi-photo-placeholder {
    background: #fff;
    border: 2px dashed var(--color-green);
    border-radius: 12px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-green);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.easi-photo-placeholder:hover {
    background: rgba(0, 132, 61, 0.05);
    transform: translateY(-5px);
}

.easi-photo-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.easi-photo-placeholder span {
    font-weight: 600;
    opacity: 0.8;
}

/* Helper class for when real images are added */
.easi-photo-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-main);
    transition: transform 0.3s ease;
}

.easi-photo-item:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 21px;
    }

    .values-list {
        grid-template-columns: 1fr;
    }
}

/* Highlight Card for Deep Linking */
.highlight-card {
    border: 2px solid var(--color-green) !important;
    box-shadow: 0 0 20px rgba(0, 132, 61, 0.4) !important;
    transform: scale(1.02);
    transition: all 0.5s ease;
    z-index: 10;
    position: relative;
    background-color: rgba(0, 132, 61, 0.05);
}

/* Area Cards (New Style - copying Service Cards) */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: flex-start;
    /* Prevents other cards from stretching when one expands */
}

.area-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-main);
    transition: all 0.3s ease;
    border-left: 5px solid var(--color-blue);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    /* Allow height to adjust */
    min-height: 160px;
    /* Minimum height for consistency */
    position: relative;
    overflow: hidden;
    /* Needed for reliable height animations if using max-height, but we'll use auto for simplicity first */
}

.area-card:hover {
    transform: translateY(-5px);
    /* Move up instead of scale to avoid blur/jumpiness */
    border-left-color: var(--color-green);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.area-card i {
    font-size: 2.5rem;
    color: var(--color-blue);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.area-card.active i {
    color: var(--color-green);
}

.area-card h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: justify;
    width: 100%;
}

.area-card p {
    display: block;
    /* Always in DOM but hidden by height */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    transition: all 0.5s ease-in-out;
}

.area-card.active {
    background-color: #fff;
    border-left-color: var(--color-green);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
    /* Slight z-index boost */
}

.area-card.active p {
    max-height: 500px;
    /* Arbitrary large height to allow content to show */
    opacity: 1;
    margin-top: 1rem;
}

/* Red More Prompt Style */
.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.area-card .read-more {
    color: var(--color-blue);
}

.easi-topic .read-more {
    color: var(--color-green);
}

.read-more i {
    font-size: 0.75rem !important;
    margin-bottom: 0 !important;
    transition: transform 0.3s ease;
}

.active .read-more i {
    transform: rotate(180deg);
}

.read-more span::before {
    content: 'Ver mais';
}

.active .read-more span::before {
    content: 'Ver menos';
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}