/* ---------------------------------------------------------------------- */
/*	Global - Mobile First (Estilos Padrão/Telas Pequenas)
/* ---------------------------------------------------------------------- */
html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif, serif;
    color: var(--primaryColor, #1b4332);
    font-size: var(--fontSize, 1rem);
    font-weight: var(--fontWeight, 400);
    background: var(--backgroundColor, #fafafa);
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ---------------------------------------------------------------------- */
/*	Header - Mobile First
/* ---------------------------------------------------------------------- */
header {
    padding: 1.5rem 0;
}

header .logo {
    text-align: center;
}

header .logo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primaryColor, #1b4332);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto 10px;
}

header .logo h1 {
    font-size: 1.25rem;
    font-weight: 500;
}

header .social-medias {
    text-align: center;
    margin-top: 0.5rem;
}

header .social-medias a {
    font-size: 1.25rem;
}

header .social-medias a i {
    background-image: linear-gradient(
        45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* ---------------------------------------------------------------------- */
/*	Notices & Cards
/* ---------------------------------------------------------------------- */
.notices {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.card-body {
    background-color: var(--primaryColor, #1b4332) !important;
    color: var(--whiteColor, #ffffff) !important;
}

.card-text {
    color: var(--whiteColor, #ffffff) !important;
}

/* ---------------------------------------------------------------------- */
/*	Galeria de Fotos (Gallery Section) - Mobile First
/* ---------------------------------------------------------------------- */
.gallery-section {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primaryColor, #1b4332);
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.gallery-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primaryColor, #2d6a4f);
    border-radius: 2px;
    margin-top: 4px;
}

/* Grid da Galeria (1 a 2 colunas no mobile) */
.about-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

/* Item Individual da Imagem */
.about-image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e9ecef;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.3s ease;
}

.about-image-item:active {
    transform: scale(0.98);
}

/* Link container */
.gallery-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Proporção uniforme para as fotos */
    text-decoration: none;
    overflow: hidden;
}

/* A Imagem */
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Efeito Hover nas Imagens */
.about-image-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.about-image-item:hover .about-image {
    transform: scale(1.08);
}

/* Overlay / Legenda */
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* chamadas */
.attendance-session {
    background-color: var(--primaryColor, #1b4332);
    color: var(--whiteColor, #ffffff);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.attendance-session h1 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.attendance-session h2 {
    margin-top: 1rem !important;
    padding: 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    background-color: var(--secondaryColor);
    border-radius: var(--borderRadius, 8px);
}

.attendance-session h3,
.attendance-session h4 {
    margin-top: 1rem !important;
    padding: 0.5rem 0;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    background-color: var(--redColor);
    border-radius: var(--borderRadius, 8px);
}

/* ---------------------------------------------------------------------- */
/*	Media Queries (Breakpoints para telas maiores)
/* ---------------------------------------------------------------------- */

/* Tablets e pequenos laptops (>= 576px) */
@media (min-width: 576px) {
    .about-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .gallery-title {
        font-size: 1.4rem;
    }

    .image-caption {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

/* Tablets e desktops médios (>= 768px) */
@media (min-width: 768px) {
    header {
        padding: 2rem 0;
    }

    header .logo img {
        width: 120px;
        height: 120px;
        border-width: 4px;
        margin-bottom: 15px;
    }

    header .logo h1 {
        font-size: 1.5rem;
    }

    header .social-medias a {
        font-size: 1.5rem;
    }

    .gallery-section {
        margin-top: 3rem;
    }

    .about-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .about-image-item:hover {
        transform: translateY(-4px);
    }
}

/* Desktops grandes (>= 1200px) */
@media (min-width: 1200px) {
    .about-images-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primaryColor, #1b4332);
    margin-bottom: 0.9rem;
}
