/* =========================================
   STYLE.CSS - PBJJF (VÉRTICE CODE PREMIUM)
   ========================================= */

@font-face {
    font-family: 'RopaSans';
    src: url('fonts/RopaSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RopaSans';
    src: url('fonts/RopaSans-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@700;800;900&display=swap');

:root {
    --dark-bg: #1E1E1E;
    --dark-surface: #2A2A2A;
    --dark-border: #3D3D3D;
    --light-bg: #F4F6F9;
    --light-surface: #FFFFFF;
    --brand-orange: #F9A42F;
    --brand-orange-hover: #E09020;
    --text-main-dark: #1A1A1A;
    --text-muted-dark: #6C757D;
    --text-main-light: #F4F4F4;
    --text-footer: #D1D5DB;

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-lg: 16px;
    --radius-md: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'RopaSans', 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-link,
.btn,
.pagination {
    font-family: 'RopaSans', 'Montserrat', sans-serif;
    font-style: italic;
    text-transform: uppercase;
}

a {
    text-decoration: none;
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
.navbar-dark-premium {
    background-color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    border-bottom: 2px solid var(--brand-orange);
}

.navbar-nav .nav-link {
    font-family: 'RopaSans', 'Inter', sans-serif;
    font-style: italic;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-main-light) !important;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--brand-orange) !important;
}

@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0) !important;
    }

    .dropdown>.dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px) !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        transition: all 0.3s ease;
        margin-top: 0;
        background-color: var(--dark-surface);
        border: 1px solid var(--dark-border);
        border-radius: 4px;
        padding: 1rem 0;
    }

    .dropdown>.dropdown-menu-end {
        left: auto !important;
        right: 0 !important;
    }
}

.dropdown-item {
    color: #A1A1A1;
    font-family: 'RopaSans', 'Inter', sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: transparent;
    color: var(--brand-orange);
    padding-left: 1.8rem;
}

/* =========================================
   BOTÕES GLOBAIS
   ========================================= */
.btn-orange {
    background-color: var(--brand-orange);
    color: #fff !important;
    font-weight: 800;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-orange:hover {
    background-color: var(--brand-orange-hover);
    transform: translateY(-2px);
}

.btn-outline-orange {
    background-color: transparent;
    border: 2px solid var(--brand-orange);
    color: var(--brand-orange);
    font-weight: 800;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-orange:hover {
    background-color: var(--brand-orange);
    color: #fff;
}

#back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    background-color: var(--dark-surface);
    color: var(--brand-orange);
    border: 2px solid var(--brand-orange);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top-btn:hover {
    background-color: var(--brand-orange);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(249, 164, 47, 0.4);
}

/* =========================================
   CARDS DE EVENTOS (HOME)
   ========================================= */
.evento-card {
    background-color: var(--light-surface);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.evento-img-wrapper {
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--brand-orange);
}

.evento-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.evento-card:hover .evento-img-wrapper img {
    transform: scale(1.05);
}

.badge-status {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.badge-open {
    background-color: #10B981;
    color: #fff;
}

.badge-closed {
    background-color: #4A4A4A;
    color: #fff;
}

.evento-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.evento-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.evento-info {
    color: var(--text-muted-dark);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evento-info i {
    color: var(--brand-orange);
    width: 15px;
    text-align: center;
}

.evento-list-item {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid transparent;
    overflow: hidden;
}

.evento-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-left-color: var(--dark-bg);
}

.evento-list-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(80%);
    transition: filter 0.3s;
}

.evento-list-item:hover .evento-list-img {
    filter: grayscale(0%);
}

.evento-list-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 4px;
}

.evento-list-details {
    font-size: 0.8rem;
    color: #666;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .evento-list-item {
        flex-direction: column;
        text-align: center;
    }

    .evento-list-img {
        width: 100%;
        height: 120px;
        margin-bottom: 12px;
        margin-right: 0 !important;
    }

    .btn-resultado {
        width: 100%;
        margin-top: 12px;
        margin-left: 0 !important;
    }
}

/* Paginação Customizada */
.pagination-orange .page-link {
    color: var(--dark-bg);
    background-color: #fff;
    border: none;
    font-weight: 700;
    margin: 0 3px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination-orange .page-item.active .page-link {
    background-color: var(--dark-bg);
    color: var(--brand-orange);
    border-color: var(--dark-bg);
}

.pagination-orange .page-link:hover {
    background-color: var(--dark-bg);
    color: #fff;
}

.pagination-orange .page-item.disabled .page-link {
    opacity: 0.6;
    background-color: #fff;
    color: #999;
}

/* =========================================
   ELEMENTOS REPETITIVOS (HERO, CARDS, TABELAS)
   ========================================= */
.page-hero,
.event-hero,
.contact-hero,
.diplomados-hero {
    position: relative;
    height: 35vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

.event-hero {
    height: 45vh;
    min-height: 380px;
    background-attachment: fixed;
}

.page-hero::before,
.event-hero::before,
.contact-hero::before,
.diplomados-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.9) 0%, rgba(15, 15, 15, 0.4) 100%);
}

.content-card {
    background: var(--light-surface);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Ajuste Pagina.php */
.content-card.page-content-card {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.content-card.page-content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.content-card.page-content-card h1,
.content-card.page-content-card h2,
.content-card.page-content-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--dark-bg);
    margin-top: 1.5rem;
}

.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--dark-bg);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-heading::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: #E9ECEF;
}

.table-premium {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.table-premium thead th {
    background-color: var(--dark-bg);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.table-premium tbody td {
    vertical-align: middle;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid #f8f9fa;
}

.dataTables_wrapper .pagination .page-link {
    color: var(--dark-bg);
    border: none;
    margin: 0 2px;
    border-radius: 4px;
}

.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: var(--dark-bg);
    color: var(--brand-orange);
}

.modal-header-premium {
    background-color: var(--dark-bg);
    color: #fff;
    border-bottom: 3px solid var(--brand-orange);
}

.chave-header {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
}

/* Filtros */
.filter-control {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    padding: 0.6rem;
    font-size: 0.9rem;
    color: #4a5568;
    background-color: #f8fafc;
    transition: border-color 0.2s;
}

.filter-control:focus {
    border-color: var(--brand-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 164, 47, 0.2);
}

.filter-label {
    font-weight: 700;
    color: var(--text-muted-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

/* =========================================
   PÁGINA DE EVENTOS ESPECÍFICO
   ========================================= */
.info-card {
    background: var(--light-surface);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--brand-orange);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(249, 164, 47, 0.1);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.btn-action-event {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 1rem;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: var(--text-main-dark) !important;
    height: 100%;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    text-decoration: none !important;
}

.btn-action-event i {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--brand-orange);
    transition: transform 0.3s;
}

.btn-action-event:hover:not(.disabled) {
    background: var(--brand-orange);
    color: #fff !important;
    border-color: var(--brand-orange);
    box-shadow: 0 5px 15px rgba(249, 164, 47, 0.3);
    text-decoration: none !important;
}

.btn-action-event:hover:not(.disabled) i {
    color: #fff;
    transform: scale(1.1);
}

.btn-action-event.disabled {
    background: #f8f9fa;
    color: #adb5bd !important;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-action-event.disabled i {
    color: #adb5bd;
}

.custom-file-tree {
    padding: 0;
    margin: 0;
    list-style: none;
}

.custom-file-tree li {
    margin: 8px 0;
}

.custom-file-tree a {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    color: var(--text-main-dark);
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.2s;
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.custom-file-tree a:hover {
    background-color: #fff;
    color: var(--brand-orange);
    border-color: var(--brand-orange);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-file-tree i.fa-folder,
.custom-file-tree i.fa-folder-open {
    color: #FFC107;
    font-size: 1.2rem;
}

.custom-file-tree .sub-tree {
    padding-left: 20px;
    display: none;
    margin-top: 8px;
    border-left: 2px dashed #e9ecef;
    margin-left: 18px;
}

.custom-file-tree li.expanded>.sub-tree {
    display: block;
}

/* =========================================
   PÁGINA DE CONTATO ESPECÍFICO
   ========================================= */
.form-card {
    background: var(--light-surface);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

.form-control-premium {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: var(--text-main-dark);
    transition: all 0.3s ease;
}

.form-control-premium:focus {
    background-color: #fff;
    border-color: var(--brand-orange);
    outline: none;
    box-shadow: 0 0 0 4px rgba(249, 164, 47, 0.15);
}

label.premium-label {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.contact-sidebar {
    background: var(--light-surface);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--brand-orange);
    position: sticky;
    top: 100px;
}

.contact-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(249, 164, 47, 0.1);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--dark-bg);
    font-size: 1.2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--brand-orange);
    color: #fff;
    border-color: var(--brand-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 164, 47, 0.3);
}

/* =========================================
   AUTENTICAÇÃO (LOGIN / RECUPERAÇÃO)
   ========================================= */
.login-section {
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    background-color: white;
}

.login-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(0, 0, 0, 0.85));
}

.login-quote {
    position: relative;
    z-index: 2;
    color: white;
    padding: 60px;
    max-width: 80%;
}

.login-quote h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: -1px;
}

.login-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: white;
    height: 100%;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.logo-on-light-wrapper {
    display: inline-block;
    background-color: var(--dark-surface);
    padding: 1rem;
    border-radius: var(--radius-md);
    line-height: 1;
}

.form-floating>.form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 3.5rem;
}

.form-floating>.form-control:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(249, 164, 47, 0.15);
    outline: none;
}

.btn-socio {
    background-color: var(--dark-bg);
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-socio:hover {
    transform: translateY(-2px);
    background-color: var(--brand-orange);
    box-shadow: 0 8px 20px rgba(249, 164, 47, 0.4);
    color: white !important;
}

/* Elementos de Reset Senha */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    z-index: 10;
    padding: 10px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--brand-orange);
}

.password-requirements {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.req-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
    transition: color 0.3s;
}

.req-item i {
    font-size: 0.6rem;
    margin-right: 8px;
    color: #cbd5e1;
    transition: color 0.3s;
}

.req-item.valid {
    color: #059669;
    font-weight: 500;
}

.req-item.valid i {
    color: #059669;
}

.validation-message {
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 5px;
}

.validation-message.active {
    display: flex;
}

/* =========================================
   PRELOADER PREMIUM (TELA DE CARREGAMENTO)
   ========================================= */
#preloader-premium,
#premium-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--dark-bg);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#preloader-premium.loaded,
#premium-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo,
.loader-logo {
    height: 60px;
    object-fit: contain;
    animation: pulsePremium 2s infinite ease-in-out;
}

@keyframes pulsePremium {
    0% {
        transform: scale(0.95);
        filter: drop-shadow(0 0 0 rgba(249, 164, 47, 0));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(249, 164, 47, 0.5));
    }

    100% {
        transform: scale(0.95);
        filter: drop-shadow(0 0 0 rgba(249, 164, 47, 0));
    }
}

.preloader-line {
    width: 120px;
    height: 2px;
    background-color: var(--dark-border);
    margin-top: 25px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.preloader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background-color: var(--brand-orange);
    border-radius: 2px;
    animation: loadingLine 1.5s infinite ease-in-out;
}

@keyframes loadingLine {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

.loader-ring {
    width: 110px;
    height: 110px;
    border: 3px solid rgba(249, 164, 47, 0.1);
    border-top-color: var(--brand-orange);
    border-radius: 50%;
    animation: loader-spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: absolute;
}

@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Helper Utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ls-1 {
    letter-spacing: 1px;
}

.fw-extra-bold {
    font-weight: 800;
}