* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: #ffffff;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}



/* Brand Header - Identidade Visual Oficial UEPB */
.brand-header {
    margin-bottom: 2rem;
}

.official-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.brand-identity {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.institution-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.uepb-logo-icon {
    height: 2.2rem;
    width: auto;
    object-fit: contain;
}

.separator {
    font-size: 2.2rem;
    color: #666;
    font-weight: 300;
    margin: 0 0.2rem;
}

.program-code {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FF0000;
    letter-spacing: 0.05em;
    font-family: 'Ubuntu', sans-serif;
}

.program-description {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    line-height: 1.3;
    max-width: 450px;
    margin-top: 0.2rem;
}

/* Main Hero Content */
.hero-main {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-text {
    margin-bottom: 2.5rem;
}

.hero h1 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: #FF0000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.3s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 1.2s ease 0.4s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #FF0000;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Legal Reference */
.legal-reference {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 0, 0, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 450px;
    margin: 4rem auto 0;
    animation: fadeInUp 1.4s ease 0.5s both;
}

.legal-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF0000;
    flex-shrink: 0;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.legal-text {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

.legal-link {
    color: #FF0000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.3;
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF0000;
    transition: width 0.3s ease;
}

.legal-link:hover::after {
    width: calc(100% - 20px);
}

.legal-link:hover {
    color: #cc0000;
}

.legal-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.legal-link:hover i {
    transform: translateX(3px);
}

/* Main Content */
.main-content {
    background: #ffffff;
    min-height: 100vh;
    padding: 40px 0;
    position: relative;
}

/* Search Section */
.search-section {
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: #1a1a1a;
}

.search-box input:focus {
    outline: none;
    border-color: #FF0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filters select {
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23FF0000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: #1a1a1a;
}

.filters select:hover {
    border-color: #FF0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.1);
}

.filters select:focus {
    outline: none;
    border-color: #FF0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.filters select option {
    padding: 0.8rem;
    background: white;
    color: #1a1a1a;
    font-size: 1rem;
}

.filters select option:hover {
    background: #f8f8f8;
}

.filters select option:checked {
    background: #FF0000;
    color: white;
}

/* Legal link icon */
.legal-link-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.legal-link-icon:hover {
    color: #FF0000;
    transform: scale(1.1);
}

/* Quick Access Cards */
.quick-access {
    margin-bottom: 3rem;
    transition: all 0.4s ease;
}

.quick-access.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
}

.quick-access h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #1a1a1a;
}

.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    position: relative;
    overflow: visible;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #FF0000;
    border-radius: 15px 15px 0 0;
    transition: height 0.4s ease;
}



.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.2);
}

.quick-card:hover::before {
    height: 8px;
}



.quick-card-icon {
    font-size: 2.5rem;
    color: #FF0000;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.quick-card:hover .quick-card-icon {
    transform: scale(1.1) rotate(5deg);
    color: #cc0000;
}

.quick-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    transition: color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.quick-card p {
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    overflow: visible;
    text-overflow: initial;
    flex: 1;
}

.quick-card:hover h3 {
    color: #FF0000;
}

.quick-card:hover p {
    color: #555;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 3rem;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.faq-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.faq-header h2 {
    font-size: 2rem;
    color: #1a1a1a;
}

.active-filter-indicator {
    display: none;
    align-items: center;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 0, 0, 0.08);
    color: #FF0000;
    border: 1px solid rgba(255, 0, 0, 0.15);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    animation: fadeInScale 0.3s ease;
}

.active-filter-indicator.show {
    display: flex;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.faq-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reset-filters-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 0, 0, 0.1);
    color: #FF0000;
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters-btn.show {
    display: flex;
}

.reset-filters-btn:hover {
    background: #FF0000;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.reset-filters-btn i {
    font-size: 0.8rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.faq-item.active {
    border-color: #FF0000;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.1);
}

.faq-header-item {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.faq-header-item:hover {
    background: #f8f8f8;
}

.faq-question-content {
    flex: 1;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.faq-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.faq-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 300;
}

.faq-tag.topic {
    background: transparent;
    color: #FF0000;
    border: 0.5px solid #FF0000;
}

.faq-tag.subtopic {
    background: rgba(106, 106, 106, 0.08);
    color: #555;
    border: 0.5px solid rgba(106, 106, 106, 0.15);
}

.faq-chevron {
    font-size: 1.2rem;
    color: #999;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: #FF0000;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-content {
    max-height: 2000px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer {
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.faq-details {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.detail-category {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.detail-points {
    list-style: none;
    padding: 0;
}

.detail-points li {
    padding: 0.25rem 0;
    color: #4a4a4a;
    position: relative;
    padding-left: 1.5rem;
}

.detail-points li::before {
    content: '•';
    color: #FF0000;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.info-icon {
    color: #FF0000;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-content h5 {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.info-content p {
    color: #4a4a4a;
    font-size: 0.85rem;
    line-height: 1.5;
}

.legal-link-icon {
    font-size: 0.7rem;
    color: #FF0000;
    margin-left: 0.3rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.info-item:hover .legal-link-icon {
    opacity: 1;
    transform: translateX(2px);
}

/* Pagination */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid #f0f0f0;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    border-color: #FF0000;
    color: #FF0000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.1);
}

.pagination-btn.active {
    background: #FF0000;
    color: white;
    border-color: #FF0000;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-ellipsis {
    color: #999;
    font-size: 0.9rem;
    padding: 0 0.5rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    display: none;
}

.no-results.show {
    display: block;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #999;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a4a4a;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.footer-disclaimer {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

.footer-disclaimer i {
    color: #FF0000;
    margin-right: 0.5rem;
}

.footer-creator {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}

.footer-creator strong {
    color: #FF0000;
    font-weight: 600;
}

.footer-version {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
}

.footer-version i {
    color: #FF0000;
    margin-right: 0.5rem;
}

.version-clickable {
    color: #FF0000;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.version-clickable:hover {
    color: #cc0000;
    text-decoration: none;
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2rem;
    }

    .hero::before {
        display: none;
    }

    .brand-header {
        margin-bottom: 2rem;
    }

    .official-brand {
        text-align: center;
    }

    .institution-name {
        justify-content: center;
        gap: 0.8rem;
    }

    .uepb-logo-icon {
        height: 1.8rem;
    }

    .program-code {
        font-size: 1.8rem;
    }

    .separator {
        font-size: 1.8rem;
    }

    .program-description {
        text-align: center;
        font-size: 0.9rem;
        max-width: 350px;
    }

    .hero-main {
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .legal-reference {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
        padding: 0.5rem 0.4rem;
        max-width: 400px;
    }

    .legal-content {
        align-items: center;
    }

    .footer-content {
        gap: 0.5rem;
    }

    .footer-disclaimer,
    .footer-creator {
        font-size: 0.8rem;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    .quick-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filters select {
        width: 100%;
        min-width: unset;
        padding: 1rem 3rem 1rem 1.5rem;
    }

    .faq-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .faq-title-section {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .faq-header h2 {
        font-size: 1.75rem;
    }

    .active-filter-indicator {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .search-box input {
        padding: 1rem 1rem 1rem 3rem;
        border-radius: 20px;
    }

    .faq-question {
        font-size: 1rem;
        line-height: 1.5;
    }

    .quick-access h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pagination-controls {
        gap: 0.25rem;
    }

    .pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .pagination-info {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .main-content {
        padding: 24px 0;
    }

    .hero {
        padding: 2rem 0 1.5rem;
    }

    .institution-name {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .uepb-logo-icon {
        height: 1.5rem;
    }

    .program-code {
        font-size: 1.5rem;
    }

    .separator {
        font-size: 1.5rem;
    }

    .program-description {
        font-size: 0.85rem;
        max-width: 300px;
        line-height: 1.4;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .legal-reference {
        padding: 0.4rem 0.5rem;
        margin: 0 1rem;
        max-width: 320px;
    }

    .legal-icon {
        width: 32px;
        height: 32px;
    }

    .legal-text {
        font-size: 0.7rem;
    }

    .legal-link {
        font-size: 0.8rem;
    }

    .quick-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
        min-height: auto;
        height: auto;
    }

    .quick-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
        white-space: normal;
        word-wrap: break-word;
    }

    .quick-card p {
        font-size: 0.8rem;
        line-height: 1.4;
        white-space: normal;
        word-wrap: break-word;
        overflow: visible;
        text-overflow: initial;
    }

    .quick-card-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .faq-header-item {
        padding: 1.25rem;
    }

    .faq-item {
        border-radius: 12px;
    }

    .search-section {
        margin-bottom: 2rem;
    }

    .quick-access {
        margin-bottom: 2rem;
    }

    .pagination-container {
        padding: 1.5rem 0;
    }

    .pagination-controls {
        gap: 0.2rem;
    }

    .pagination-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .pagination-info {
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.faq-item,
.quick-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #FF0000;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}

/* Responsivo para o botão */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Version Modal */
.version-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}

.version-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.version-modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

.version-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f8f8;
    border-radius: 15px 15px 0 0;
}

.version-modal-header h3 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.version-modal-header h3 i {
    color: #FF0000;
}

.version-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.version-modal-close:hover {
    background: #f0f0f0;
    color: #FF0000;
}

.version-modal-body {
    padding: 2rem;
}

.version-section {
    margin-bottom: 2rem;
}

.version-section:last-of-type {
    margin-bottom: 1.5rem;
}

.version-section h4 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.version-section h4 i {
    color: #FF0000;
}

.version-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-section li {
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #4a4a4a;
    line-height: 1.5;
}

.version-section li::before {
    content: '•';
    color: #FF0000;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.version-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
}

.version-info p {
    margin: 0.3rem 0;
    color: #666;
    font-size: 0.9rem;
}

.version-info strong {
    color: #1a1a1a;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .version-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .version-modal-header {
        padding: 1.2rem 1.5rem;
    }

    .version-modal-header h3 {
        font-size: 1.2rem;
    }

    .version-modal-body {
        padding: 1.5rem;
    }

    .version-section h4 {
        font-size: 1rem;
    }

    .version-section li {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }

    .version-info {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .version-modal-content {
        width: 98%;
        max-height: 90vh;
    }

    .version-modal-header {
        padding: 1rem;
    }

    .version-modal-body {
        padding: 1rem;
    }

    .version-section {
        margin-bottom: 1.5rem;
    }

    .version-info {
        padding: 1rem;
        margin-top: 1.5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF0000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}