.filtro {
    align-items: center;
}

.btnacor {
    border-color: #104a74;
    background-color: #104a74;
    color: white;
}

.btnacor:hover {
    background-color: #104a74d7;
    color: white;
}

.accordion-item:first-of-type .accordion-button {
    border-radius: 0 !important;
}f

.accordion-item:first-of-type {
    border-radius: 0 !important;
}

.accordion-item:first-of-type,
.accordion-item:last-of-type {
    border-radius: 0 !important;
}

ul,
li {
    list-style: none !important;
}

li {
    margin-bottom: 2px;
}

p {
    margin: 0;
}

#id_curso {
    background: #EEE;
    pointer-events: none;
    touch-action: none;
}
.nome_lugar{
    background-color: red;
    position: absolute;
    top: 0;
    right: 12px;
    color: #fff;
    border-radius: 4px;
    padding: 0px 5px!important;
    height: 23px;
    line-height: 23px;
    margin: 5px;
}
@media(max-width: 1024px){

}
@media(max-width: 768px){
    .btn_matricula{
        padding: 10px;
        width: 25vw !important;
    }
}
@media(max-width: 425px){
    .btn_matricula{
        padding: 10px;
        width: 40vw !important;
    }
    #div_cursos_listados{
        display: block !important;
    }
    .curso_listado{
        width: 60vw !important;
        margin: auto !important;
        margin-bottom: 20px !important;
    }
    .curso_listado img{
        width: 60vw !important;
        height: 20vw !important;
    }
    .nome_lugar{
        position: absolute;
        right: 55px;
        
    }
}
@media(max-width: 375px){

}
@media(max-width: 320px){
    .btn_matricula{
        padding: 5px;
        font-size: 14pt !important;
        width: 45vw !important;
    }
}

/* ===== Course card styles (copied from home template exactly) ===== */
.course-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 480px;
    min-height: 480px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-top-left-radius: var(--border-radius-xl);
    border-top-right-radius: var(--border-radius-xl);
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Curso / Serviço Ícone (compatível com FontAwesome) */
.course-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: rgba(11, 97, 214, 0.08);
    font-size: 32px;
    color: #0b61d6;
    transition: all 0.3s ease;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-image .course-icon {
    /* larger icon inside top rectangle */
    width: 64px;
    height: 64px;
    font-size: 28px;
    border-radius: 8px;
}

/* Efeito no hover do card */
.course-card:hover .course-icon {
    background: #0b61d6;
    color: #ffffff;
    transform: scale(1.1) rotate(3deg);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    transform: none;
}

/* Disable hover zoom for images */
.course-card:hover .course-image img {
    transform: none;
}
  
.course-category {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
  
.course-content {
    padding: 1rem 1.5rem 0px 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}
  
.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 8px;
    /* line-height: 1.4; */
    text-align: center;
}
  
.course-meta {
    color: var(--gray-600);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    text-align: justify;
}

.course-meta span{
    width: 100%;
    text-align: justify;
    display: block;
}

.course-desc {
    color: var(--gray-700);
    font-size: 0.9rem;
    text-align: justify;
    margin-top: 6px;
    line-height: 1.35;
    display: -webkit-box; /* limit to 4 lines with ellipsis */
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-sep {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0 18px; /* larger gap below the line before the button */
    width: 100%;
}

.course-meta i {
    color: var(--primary-color);
}
  
.btn-course-details {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
    margin-top: auto;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
  
.btn-course-details:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: none; /* disable translate/zoom on hover */
    box-shadow: 0 6px 18px rgba(11,97,214,0.12); /* softer shadow */
    color: white;
}
  
.btn-course-details::after {
    content: ' →';
    display: inline-block;
    margin-left: 8px;
    font-weight: 700;
}
  
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}
  
.section-content {
    padding: 3rem 0;
}
  
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        margin-top: -100px;
    }

    .hero-section img.img-fluid {
        margin-top: 2rem;
    }

    .hero-section form {
            margin-top: 1rem; 
    }
    
    .mobile-menu-toggle, .social-links{
        display: none !important;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
  
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
  
    .course-image {
        height: 180px;
    } 

    /* allow cards to size naturally on small screens */
    .course-card {
        height: auto;
        min-height: 0;
        max-width: 100%;
    }
  
    .hero-section input[name="q"] {
        font-size: 14px !important;
        padding-left: 15px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .hero-section button[type="submit"] {
        padding: 12px 20px !important;
        font-size: 12px !important;
    }

    .courses-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .courses-grid a.course-card {
        width: 90%;
        max-width: 400px; 
        min-height: 250px;
        text-align: center;
        display: block;
    }

    .course-card .course-content {
        justify-content: center;
        flex-direction: column; 
    }

    .course-icon {
        margin: 0 auto 1rem auto;
    }

 /* Modal permite scroll vertical */
 .custom-modal {
     overflow-y: auto;
     padding-top: 20px;
     padding-bottom: 20px;
 }

 /* Evita que o conteúdo transborde */
 .custom-modal-content {
     max-height: 90vh;
     overflow-y: auto;
     width: 92%;
     padding: 20px;
 }

 /* 2 colunas obrigatórias */
 .modal-grid {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 12px;
     justify-items: center;
 }

 /* Cada card com mesmo tamanho */
 .modal-option {
     width: 100%;     
     height: 110px;   
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     text-align: center;
     padding: 10px;
     background: #fff;
     border-radius: 10px;
     font-size: 13px;
 }

 /* Ícones */
 .modal-option i {
     font-size: 22px;
     margin-bottom: 6px;
 }

 /* Títulos */
 .modal-title {

/* ===== Empty state styles for adocao page (matching attached design) ===== */
.empty-box-wrapper {
    padding: 1.25rem 1.25rem 1.5rem 1.25rem;
}

.empty-box {
    border-radius: var(--border-radius-lg);
    padding: 56px 32px;
    background: #f7fbfd;
    border: 2px dashed rgba(16, 74, 116, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 320px;
    text-align: center;
}

.empty-icon {
    font-size: 56px;
    color: #9fc7f5;
    margin-bottom: 18px;
}

.empty-title {
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 6px 0;
    font-size: 1.05rem;
}

.empty-sub {
    color: var(--gray-500);
    margin: 0;
}

@media (max-width: 768px) {
    .empty-box { padding: 36px 18px; min-height: 220px; }
    .empty-icon { font-size: 44px; }
}
     font-size: 20px;
     text-align: center;
 }

 .modal-subtitle {
     font-size: 15px;
     text-align: center;
 }
}

/* ===== end course card styles ===== */
