@font-face {
    font-family: "Titulos-Bold";
  
    src: url("/assets/fonts/titulo/Sora-Bold.ttf");
}

@font-face {
    font-family: "Titulos-Semibold";
  
    src: url("/assets/fonts/titulo/Sora-SemiBold.ttf");
}

@font-face {
    font-family: "Titulos-Regular";
  
    src: url("/assets/fonts/titulo/Sora-Regular.ttf");
}

@font-face {
    font-family: "Cuerpos-Bold";
  
    src: url("/assets/fonts/texto/EuclidCircularA-Bold.ttf");
}

@font-face {
    font-family: "Cuerpos-Semibold";
  
    src: url("/assets/fonts/texto/EuclidCircularA-SemiBold.ttf");
}

@font-face {
    font-family: "Cuerpos-Regular";
  
    src: url("/assets/fonts/texto/EuclidCircularA-Regular.ttf");
} 

h1, h2, h3, h4, h5, h6{
    font-family: 'Titulos-Bold', sans-serif;
    color: #123e61;
}

a, p, span{
    font-family: 'Cuerpos-Regular', sans-serif;
}

body {
    background-color: #f2f7fa;
}

a:hover{
    text-decoration: none;
}

.topbar {
    background-color: #012a3f;
    padding: 10px 0;
    border-bottom: 1px solid #044d6e;
}

.topbar-text {
    color: #ffffff;
    font-size: 14px;
    font-family: 'Cuerpos-Regular', sans-serif;
}

.topbar-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.topbar-social a {
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.topbar-social a:hover {
    background-color: #39A4DC;
    color: #ffffff;
    transform: translateY(-2px);
}

@media only screen and (max-width: 900px) {
    .topbar {
        padding: 8px 0;
    }

    .topbar-text {
        font-size: 12px;
        text-align: center;
        margin-bottom: 8px;
    }

    .topbar-social {
        justify-content: center;
        gap: 10px;
    }

    .topbar-social a {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .topbar .col-md-4 {
        text-align: center !important;
    }
}

.navbar {
    background-color: #033250;
    padding: 30px 5%;
}

@media only screen and (max-width: 900px) {
    .navbar {
        padding: 15px 5%;
    }

    .navbar-brand img {
        width: 150px !important;
    }
}
.navbar-brand,
.navbar-nav .nav-link {
    color: #ffffff;
}
.hero {
    background-color: #033250;
    color: #ffffff;
    text-align: center;
    padding: 30px;
    width: 100%;
}
.hero h1 {
    font-size: 3rem;
}

@media only screen and (max-width: 900px) {
    .hero h1 {
        font-size: 2rem;
    }
}

.hero2 {
    background-color: #033250;
    color: #ffffff;
    text-align: center;
    padding: 50px;
}

.hero2 h1 {
    font-size: 3rem;
}

@media only screen and (max-width: 900px) {
    .hero2 h1 {
        font-size: 2rem;
    }
}


@media only screen and (max-width: 900px) {
    .hero {
        padding: 10% 5%;
    }

    .hero2 {
        padding: 10% 5%;
    }
    
}

.section-title {
    text-align: center;
    margin: 2rem 0 5rem 0 ;
}

@media only screen and (max-width: 900px) {
    .section-title {
        margin: 1rem 0 2rem 0;
        font-size: 1.5rem;
    }
}
.info-icons .col-md-3 {
    text-align: center;
    padding: 20px;
}

@media only screen and (max-width: 900px) {
    .info-icons .col-md-3 {
        padding: 15px 10px;
    }
}
.info-icons i {
    font-size: 2rem;
    color: #fff;
}

.info-icons .info-icons-circle{
    background-color: #033250;
    border-radius: 50%;
    margin: 20px auto;
    color: #fff;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}

.card{
    height: 100%;
    transition: 0.5s all ease;
}

.card:hover{
    transform: translate(-5px,-5px);
}

.challenge-card img {
    width: 100%;
    height: auto;
}

.card-body{
    padding: 50px;
    color: #033250;
    margin-bottom: 20px;
}

@media only screen and (max-width: 900px) {
    .card-body {
        padding: 30px 20px;
    }
}

.card:hover .card-body{
    text-decoration: none;
}

.card-body p:last-child{
    position: absolute;
    bottom: 35px;
    color: #39A4DC;
}

.my-ct{
    margin: 5rem 0;
}

.my-ct2{
    margin: 4rem 0;
}

.mt-ct{
    margin-top: 6rem!important;
}

.py-ct{
    padding: 5rem 0;
}

.py-ct2{
    padding: 4rem 0;
}

.pt-ct{
    padding-top: 6rem!important;
}

.d-flex-ct{
    display: flex;
}

@media only screen and (max-width: 900px) {
    .my-ct {
        margin: 2rem 0;
    }

    .my-ct2 {
        margin: 1rem 0;
    }

    .py-ct {
        padding: 2rem 0;
    }

    .py-ct2 {
        padding: 1rem 0;
    }

    .d-flex-ct{
        display: block;
    }
}

.btn-primary{
    background-color: #033250;
    padding: 10px 50px;
    border-radius: 20px;
    color: #fff;
    transition:all ease 0.5s;
    border-color: #fff;
}

@media only screen and (max-width: 900px) {
    .btn-primary {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
}

.btn-primary:hover{
    background-color: #A3D0E8;
    color: #212529;
    border-color: #A3D0E8;
}

.btn-primary-light{
    background-color: #fff;
    padding: 10px 50px;
    border-radius: 20px;
    color: #212529;
    transition:all ease 0.5s;
}

@media only screen and (max-width: 900px) {
    .btn-primary-light {
        padding: 10px 30px;
        font-size: 0.9rem;
        margin: 5px !important;
    }
}

.btn-primary-light:hover{
    background-color: #a3d1e9;
    color: #212529;
}

.bg-white-ct{
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
}

@media only screen and (max-width: 900px) {
    .bg-white-ct {
        padding: 1.5rem;
        font-size: 0.95rem;
    }
}

.bg-blue-ct{
    background-color: #39A4DC;
    border-radius: 10px;
    padding: 2rem;
}

@media only screen and (max-width: 900px) {
    .bg-blue-ct {
        padding: 1.5rem;
        text-align: center;
    }
}

.contact_form{
    width: 100%;
  }
  
.contact_form input{
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    border: 0.5px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact_form textarea{
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    border: 0.5px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    min-height: 120px;
}

@media only screen and (max-width: 900px) {
    .contact_form input,
    .contact_form textarea {
        font-size: 16px;
        padding: 12px;
    }

    .contact_form textarea {
        min-height: 150px;
    }
}

footer {
    background-color: #033250;
    color: #ffffff;
    padding: 20px 0;
}
footer a {
    color: #ffffff;
}

.redes-footer a img{
    width: 70px;
    height: auto;
}

/*page loading*/
.preloader {
    background-color: #fff;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    -webkit-transition: .6s;
    transition: .6s;
    margin: 0 auto;
}
  
.preloader img.jump {
    max-height: 100px;
    max-width: 100px;
}

@media (min-width: 1200px) {
    .container{
        max-width: 90%!important;
    }
}

.img-explicativo{
    width: 150px;
    height: auto;
    margin: auto;
    margin: 20px 0;
}

@media only screen and (max-width: 900px) {
    .img-explicativo {
        width: 100px;
        margin: 15px 0;
    }
}

.img-explicativo2{
    width: 250px;
    height: auto;
    margin: auto;
    margin: 20px 0;
}

@media only screen and (max-width: 900px) {
    .img-explicativo2 {
        width: 150px;
        margin: 15px 0;
    }
}

.centered{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.ic-desafio{
    margin-bottom: 20px;
    margin-right: 15px;
}

h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p, span {
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

.hero img {
    max-width: 100%;
}

@media only screen and (max-width: 900px) {
    .hero img {
        width: 80% !important;
    }

    .hero .d-flex {
        flex-direction: column;
    }

    h3 {
        font-size: 1.5rem;
    }

    h5 {
        font-size: 1.1rem;
    }

    .info-icons h5 {
        font-size: 1rem;
        padding: 0 10px;
    }

    .navbar-nav {
        padding-top: 10px;
    }

    .navbar-nav .nav-item {
        padding: 5px 0;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
        font-size: 1rem;
    }

    a, button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .card {
        margin-bottom: 15px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    body {
        font-size: 16px;
    }

    ol {
        padding-left: 25px;
    }

    ol li {
        margin-bottom: 15px;
        line-height: 1.6;
    }
}

/* Challenge Filters */
.challenge-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-btn {
    background: white;
    border: 2px solid #39A4DC;
    color: #123e61;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Cuerpos-Semibold', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: #39A4DC;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(57, 164, 220, 0.3);
}

.filter-btn.active {
    background: #123e61;
    color: white;
    border-color: #123e61;
}

.filter-btn i {
    font-size: 16px;
}

/* Improved Challenge Cards for Home */
.challenge-card-home {
    height: 100%;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.challenge-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.challenge-card-home .card-img-top {
    height: 200px;
    object-fit: cover;
}

.challenge-card-home .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.challenge-card-home .card-title {
    font-size: 20px;
    margin-bottom: 0;
    color: #123e61;
    font-family: 'Titulos-Bold', sans-serif;
    min-height: 50px;
}

.card-text-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Challenge Tags */
.challenge-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.challenge-tags .tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Cuerpos-Semibold', sans-serif;
}

/* Card Footer Info */
.card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.deadline-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.deadline-info i {
    color: #39A4DC;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Cuerpos-Bold', sans-serif;
}

.active-badge {
    background: #4caf50;
    color: white;
}

/* Finished Badge Small */
.finished-badge-small {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.finished-badge-small i {
    font-size: 12px;
}

/* Animation */
.challenge-item {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.challenge-item.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .challenge-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .challenge-card-home .card-title {
        font-size: 18px;
        min-height: auto;
    }

    .card-text-excerpt {
        font-size: 13px;
    }
}