/* ============================================
   DESIGN SYSTEM — IAC CEARÁ (PREMIUM)
============================================ */
:root {
    --iac-primary: #071D41;
    --iac-secondary: #0D3272;
    --iac-accent: #071D41;
    --iac-accent-dark: #05142d;
    --iac-bg: #fcfdfe;
    --iac-white: #ffffff;
    --iac-text: #1e293b;
    --iac-muted: #64748b;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--iac-bg);
    color: var(--iac-text);
    margin: 0;
    /* overflow-x é controlado pelo base_site.html globalmente */
}

section[id] {
    scroll-margin-top: 140px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
}

/* ======= ANIMATIONS ======= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* ======= HERO ======= */
#heroCarousel {
    border-radius: 0 0 60px 60px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.hero-slide {
    height: 750px;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.carousel-item.active .hero-slide img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7, 29, 65, 0.9) 0%, rgba(7, 29, 65, 0.3) 100%);
}

.hero-caption {
    position: absolute;
    top: 40%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    max-width: 750px;
    z-index: 10;
}

.hero-caption h2 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-caption p {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Hero Specific Buttons (High Contrast — Verde Esmeralda vibrante) */
.btn-hero {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.40);
    transition: var(--transition);
    text-decoration: none !important;
    border: 2px solid rgba(255,255,255,0.20);
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.55);
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: white !important;
    text-decoration: none !important;
}

/* ======= IMPACT SECTION ======= */
.impact-card {
    background: linear-gradient(135deg, var(--iac-primary) 0%, var(--iac-secondary) 100%);
    padding: 3rem 2rem;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(7, 29, 65, 0.25);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
    color: white;
}

.impact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(7, 29, 65, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.impact-number {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: block;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.impact-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* ======= MISSION SECTION ======= */
.mission-section {
    padding: 120px 0;
    background-color: var(--iac-white);
}

.mission-img-wrap {
    position: relative;
    padding: 20px;
}

.mission-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18);
}

.mission-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: linear-gradient(135deg, var(--iac-primary) 0%, var(--iac-secondary) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.8rem;
    box-shadow: 0 20px 40px rgba(7, 29, 65, 0.45);
    animation: float 5s ease-in-out infinite;
    z-index: 5;
    text-align: center;
}

/* ======= PROJECTS SHOWCASE ======= */
.projects-section {
    padding: 110px 0 90px;
    position: relative;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-media {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(7, 29, 65, 0.12);
    background: var(--iac-primary);
}

.project-media img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.06);
    filter: saturate(1.05);
}

.project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 29, 65, 0.08) 20%, rgba(7, 29, 65, 0.5) 100%);
}

.project-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    color: var(--iac-primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    box-shadow: 0 8px 20px rgba(7, 29, 65, 0.08);
}

.project-meta {
    padding: 1.35rem 0.7rem 0;
    text-align: center;
}

.project-meta h3 {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.65rem;
    color: #081226;
}

.project-meta p {
    color: var(--iac-muted);
    max-width: 290px;
    margin: 0 auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    color: var(--iac-accent);
    font-weight: 700;
}

.text-accent {
    color: #10b981;
}

.fw-800 {
    font-weight: 800;
}

@media (max-width: 992px) {
    .hero-caption h2 {
        font-size: 3rem;
    }

    .hero-slide {
        height: 600px;
    }

    .donation-section {
        padding: 4rem 1.5rem;
    }

    .contact-card {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-caption {
        left: 5%;
        right: 5%;
        width: 90%;
        max-width: 100%;
        text-align: center;
        top: 50%;
    }

    .hero-caption h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-caption p {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }

    .btn-hero {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }

    .hero-slide {
        height: 500px;
    }

    .mission-badge {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 30px;
        text-align: center;
    }

    .mission-img {
        height: 350px;
    }

    .donation-section {
        padding: 3rem 1rem;
        margin: 30px 10px;
        border-radius: 30px;
    }

    .pix-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .certificates-grid {
        gap: 1.5rem;
    }

    .cert-item {
        width: 110px;
    }

    .cert-icon-wrapper {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }

    .cert-name {
        font-size: 0.65rem;
        margin-top: 0.8rem;
    }

    .contact-card {
        padding: 2.5rem 1.5rem;
        border-radius: 28px;
    }

    .contact-card h2 {
        font-size: 2rem;
        text-align: center;
    }

    .contact-card p {
        text-align: center;
    }
}
/* ======= DONATION SECTION ======= */
.donation-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--iac-primary) 0%, var(--iac-secondary) 100%);
    border-radius: 60px;
    margin: 40px 20px;
    color: white;
    box-shadow: 0 20px 50px rgba(7, 29, 65, 0.15);
}
.donation-section .text-accent {
    color: #6ee7b7; /* Verde claro vibrante para contraste no fundo escuro, consistente com accent global */
}
.donation-section h2 {
    color: white;
}
.donation-section img {
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}
.donation-section img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}
.pix-card {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(7, 29, 65, 0.05);
    color: var(--iac-text); /* Garante que o texto dentro do card branco continue escuro */
}
.pix-code {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 12px;
    font-family: monospace;
    font-weight: 700;
    word-break: break-all;
    margin: 1.5rem 0;
    color: var(--iac-text);
}

/* ======= NEWS & VAGAS CARDS ======= */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}
.card-iac {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f1f5f9;
}
.card-iac:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(7, 29, 65, 0.1);
}
.card-iac-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}
.card-iac-body {
    padding: 1.5rem;
}
/* ======= PREMIUM NEWS CARD (DARK MODE SIMILAR TO VAGAS) ======= */
.card-noticia-premium {
    background: var(--iac-primary);
    color: white;
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(7,29,65,0.18);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card-noticia-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(7, 29, 65, 0.28);
    border-color: rgba(255, 255, 255, 0.15);
}
.badge-data-noticia {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    align-self: flex-start;
}
.noticia-title {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}
.noticia-img-container {
    width: 100%;
    height: 180px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.noticia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card-noticia-premium:hover .noticia-img {
    transform: scale(1.05);
}
.noticia-resumo {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.5;
}
.btn-ler-mais {
    background: #e6eef8;
    color: #071D41;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.8rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
    display: block;
}
.btn-ler-mais:hover {
    background: #10b981;
    color: white;
    text-decoration: none;
}
.card-iac-project {
    display: block;
    text-decoration: none;
    color: inherit;
}
.card-iac-project:hover {
    text-decoration: none;
    color: inherit;
}
.card-iac-project .card-iac-body {
    text-align: left;
}
.card-iac-project .project-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.empty-state-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
    border: 1px dashed rgba(7, 29, 65, 0.18);
    border-radius: 24px;
    padding: 3rem 2rem;
}

/* ======= PARTNERS SCROLL ======= */
.partners-wrapper {
    overflow: hidden;
    padding: 40px 0;
    background: white;
    white-space: nowrap;
    position: relative;
}
.partners-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: partners-scroll 40s linear infinite;
}
.partner-logo {
    height: 80px;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s, filter 0.3s;
    filter: grayscale(1);
}
.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}
@keyframes partners-scroll {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.partner-item-link {
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
}
.partner-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    min-width: 120px;
    transition: transform 0.3s ease;
}
.partner-logo-container:hover {
    transform: scale(1.08);
}
.partner-logo-fallback {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: #f0fbf9;
    border: 2.5px solid #ccfbf1;
    border-radius: 50px;
    color: #115e59;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}
.partner-logo-fallback i {
    font-size: 1.4rem;
}
.partner-item-link:hover .partner-logo-fallback {
    background: #115e59;
    color: white;
    border-color: #115e59;
    box-shadow: 0 8px 24px rgba(17, 94, 89, 0.25);
}

/* ======= CONTACT SECTION ======= */
.contact-card {
    background: var(--iac-primary);
    color: white;
    padding: 4rem;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}
.contact-form .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 1rem;
    border-radius: 12px;
}
.contact-form .form-control::placeholder { color: rgba(255,255,255,0.4); }

/* ======= CERTIFICADOS SECTION ======= */
.certificates-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    padding: 30px 0;
}
.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    width: 140px;
}
.cert-icon-wrapper {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 20px;
    transition: var(--transition);
    filter: grayscale(1);
    opacity: 0.6;
    border: 1px solid #e2e8f0;
}
.cert-item:hover .cert-icon-wrapper {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1) translateY(-5px);
    background: white;
    box-shadow: 0 15px 30px rgba(7, 29, 65, 0.1);
    border-color: var(--iac-accent);
}
.cert-icon-wrapper i {
    font-size: 3rem;
    color: var(--iac-primary);
    transition: var(--transition);
}
/* Specific colors for icons on hover */
.cert-item:hover .bi-patch-check-fill { color: #0d6efd; }
.cert-item:hover .bi-award-fill { color: #ffc107; }
.cert-item:hover .bi-shield-check { color: #198754; }
.cert-item:hover .bi-star-fill { color: #fd7e14; }
.cert-item:hover .bi-trophy-fill { color: #6f42c1; }
.cert-item:hover .bi-heart-fill { color: #dc3545; }
.cert-item:hover .bi-gem { color: #0dcaf0; }
.cert-item:hover .bi-lightning-fill { color: #ffc107; }

.cert-name {
    margin-top: 1.2rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--iac-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    text-align: center;
}
.cert-item:hover .cert-name {
    color: var(--iac-primary);
}

/* ======= SOCIAL REDES SECTION ======= */
.social-card {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--iac-primary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    box-shadow: 0 8px 20px rgba(7, 29, 65, 0.06);
    background-color: white;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(7, 29, 65, 0.15);
}

.social-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

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

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

.social-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 29, 65, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover .social-overlay {
    opacity: 1;
}

.social-overlay i {
    font-size: 2.5rem;
    color: white;
}

/* Play button circle style for YouTube video overlay */
.play-btn-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: transform 0.3s ease;
}

.social-card:hover .play-btn-circle {
    transform: scale(1.1);
    background-color: rgba(220, 38, 38, 0.9); /* Red YouTube color on hover */
    border-color: rgba(220, 38, 38, 0.9);
}

/* Custom styled tabs navigation */
#socialTab .nav-link {
    background-color: #e6eef8;
    color: var(--iac-primary);
    border: 1px solid #d0e1f4;
}

#socialTab .nav-link.active {
    background-color: var(--iac-primary) !important;
    color: white !important;
    border-color: var(--iac-primary);
    box-shadow: 0 8px 20px rgba(7, 29, 65, 0.2);
}

/* Buttons style */
.btn-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(220, 39, 67, 0.3);
    opacity: 0.95;
}

.btn-youtube {
    background-color: #ff0000;
    color: white !important;
}

.btn-youtube:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(204, 0, 0, 0.3);
}

