/* Global Styles */
:root {
    /* Updated modern palette */
    --primary-color: #0f2b6e; /* deep indigo */
    --secondary-color: #ffb703; /* warm amber */
    --accent-color: #3a86ff; /* bright accent blue */
    --text-color: #2b2b2b;
    --light-text: #f5f7fb;
    --dark-bg: #0b1d47;
    --light-bg: #f6f8fc;
    --gray-bg: #eef1f6;
    --border-color: #e3e8f0;
    --box-shadow: 0 10px 25px rgba(13, 35, 81, 0.12);
    --transition: all 0.25s ease;
    /* New helpers */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.3);
    --gradient-1: linear-gradient(135deg, #0f2b6e 0%, #3a86ff 100%);
    --gradient-2: linear-gradient(135deg, #ffb703 0%, #ff7b00 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn.primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
}

.btn.secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn.outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn.small {
    padding: 8px 20px;
    font-size: 12px;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo h1 span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover:after, .nav-links a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section e foto de fundo inicio */
.hero {
    position: relative;
    background: none !important;
    
    background-size: cover;
    background-position: center;
    color: #ffffff;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    color: #fff !important;
    text-shadow: 0 2px 8px #000, 0 1px 2px #000;
    background: none;
}

.hero-content,
.hero-content h1,
.hero-content p,
.hero-content a {
    color: #fff !important;
    text-shadow: 0 2px 8px #000, 0 1px 2px #000;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
    filter: blur(2px);
}

.carousel-image.active {
    opacity: 1;
    z-index: 1;
    filter: blur(0);
}

/* Highlights Section */
.highlights {
    padding: 80px 0;
    background-color: var(--light-bg);
}

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

.card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

.card .icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.stat h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Courses Section */
.courses {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.course-levels {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.level {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.level-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.level-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.level-info p {
    margin-bottom: 20px;
}

.level-info ul {
    margin-bottom: 25px;
}

.level-info ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.level-info ul li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Teachers Section */
.teachers {
    padding: 100px 0;
}

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

.teacher {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.teacher:hover {
    transform: translateY(-10px);
}

.teacher-image {
    height: 250px;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.teacher:hover .teacher-image img {
    transform: scale(1.1);
}

.teacher h3 {
    font-family: 'Montserrat', sans-serif;
    padding: 20px 20px 5px;
    color: var(--primary-color);
}

.teacher p {
    padding: 0 20px;
    margin-bottom: 10px;
}

.teacher p:first-of-type {
    color: var(--secondary-color);
    font-weight: 600;
}

.teacher p:last-of-type {
    padding-bottom: 20px;
}

/* Facilities Section */
.facilities {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.facilities-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.facility {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 250px;
}

.facility img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.facility:hover img {
    transform: scale(1.1);
}

.facility-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.facility-caption h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
}

/* Events Section */
.events {
    padding: 100px 0;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-width: 120px;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
}

.event-date .day {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 18px;
    text-transform: uppercase;
}

.event-details {
    padding: 25px;
    flex-grow: 1;
}

.event-details h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.event-time {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-details p:not(.event-time) {
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.8;
    position: relative;
    padding: 0 20px;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background: url('https://img.icons8.com/ios-filled/50/f39c12/quote-left.png') no-repeat center/contain;
    position: absolute;
}

.testimonial-content p::before {
    top: -15px;
    left: -15px;
}

.testimonial-content p::after {
    bottom: -15px;
    right: -15px;
    transform: rotate(180deg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f0f0f0; /* Fallback for missing images */
}

.testimonial-author h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Enrollment Section pode se colocar fundo se quiser */
.enrollment {
    padding: 100px 0;
    background-image: linear-gradient(rgba(26, 58, 126, 0.9), rgba(26, 58, 126, 0.9)), url('');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.enrollment-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.enrollment-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
}

.enrollment-text p {
    margin-bottom: 15px;
    font-size: 18px;
}

.enrollment-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 58, 126, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 15px;
}

.info-item .icon {
    font-size: 24px;
    color: var(--secondary-color);
    min-width: 50px;
    height: 50px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.social-media h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-logo h2 span {
    color: var(--secondary-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    margin-top: 10px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    opacity: 0.8;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-newsletter h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-newsletter h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    margin-top: 10px;
}

.footer-newsletter p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Poppins', sans-serif;
}

.footer-newsletter button {
    border-radius: 0 5px 5px 0;
    padding: 10px 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    opacity: 0.6;
    font-size: 14px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    opacity: 0.6;
    font-size: 14px;
}

.legal-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .about-content,
    .level,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .level-image {
        order: -1;
    }
    
    .teacher-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: #fff;
        font-size: 18px;
        padding: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1000;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .facility {
        height: 200px;
    }
    
    .event {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-newsletter {
        grid-column: auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .enrollment-cta {
        flex-direction: column;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
    
    .footer-newsletter input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .footer-newsletter button {
        border-radius: 5px;
    }
}

/* Estilos para o feedback do formulário */
#form-status {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

#form-status .loading {
    color: #0056b3;
    background-color: #e6f3ff;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

#form-status .success {
    color: #155724;
    background-color: #d4edda;
    padding: 10px;
    border-radius: 4px;
}

#form-status .error {
    color: #721c24;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
}

/* Requirements Section */
.requirements {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.requirements-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.requirements-list ul,
.requirements-values ul {
    list-style: none;
    padding: 0;
}

.requirements-list ul li,
.requirements-values ul li {
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirements-list ul li i {
    color: var(--secondary-color);
    font-size: 20px;
}

.requirements-values h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.requirements-values ul li {
    justify-content: space-between;
}

.requirements-values ul li strong {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .requirements-content {
        grid-template-columns: 1fr;
    }
}

/* Natureza Section Styles */
.nature {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.nature-content {
    max-width: 1200px;
    margin: 0 auto;
}

.nature-info {
    margin-bottom: 40px;
    text-align: center;
}

.nature-info h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.nature-info p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.mission, .vision {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mission h3, .vision h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

.mission p, .vision p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.principles {
    text-align: center;
}

.principles h3 {
    color: #333;
    margin-bottom: 40px;
    font-size: 24px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.principle-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.principle-item:hover {
    transform: translateY(-5px);
}

.principle-item i {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 20px;
}

.principle-item h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.principle-item p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

@media (max-width: 768px) {
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

/* Atualizações Section Styles */
.updates {
    padding: 80px 0;
    background-color: #fff;
}

.updates-slider {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
}

.update-slide {
    display: none;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.update-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.update-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.update-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    min-width: 70px;
}

.update-date .day {
    display: block;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.update-date .month {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
}

.update-content {
    padding: 30px;
}

.update-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.update-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    font-size: 16px;
}

.read-more:hover {
    color: #0056b3;
}

.read-more i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.prev-btn, .next-btn {
    background: #007bff;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background: #0056b3;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: #007bff;
}

@media (max-width: 768px) {
    .update-image {
        height: 300px;
    }

    .update-content {
        padding: 20px;
    }

    .update-content h3 {
        font-size: 20px;
    }

    .update-content p {
        font-size: 14px;
    }
}

/* ========================= */
/* Visual Enhancements v2.0  */
/* ========================= */

/* Header glassmorphism and hover */
header {
    background: var(--glass-bg);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

header .container {
    padding: 14px 20px;
}

.nav-links a {
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 2px 12px rgba(58, 134, 255, 0.35);
}

.nav-links a:after {
    height: 3px;
    background: var(--accent-color);
}

/* Hero overlay and improved legibility */
.hero {
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 19, 48, 0.55) 0%, rgba(6, 19, 48, 0.35) 40%, rgba(6, 19, 48, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    text-shadow: 0 10px 30px rgba(0,0,0,0.55), 0 2px 4px rgba(0,0,0,0.45);
}

.hero-content h1 {
    font-size: clamp(32px, 4vw, 56px);
    letter-spacing: 0.2px;
}

.hero-buttons .btn {
    transform: translateZ(0);
}

/* Buttons with modern gradients and micro-interactions */
.btn.primary {
    background: var(--gradient-1);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(58, 134, 255, 0.35);
}

.btn.primary:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(58, 134, 255, 0.45);
    color: #fff;
}

.btn.secondary {
    background: var(--gradient-2);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(255, 123, 0, 0.35);
}

.btn.secondary:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 123, 0, 0.45);
    color: #fff;
}

.btn.outline {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn.outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Elevated cards with subtle 3D hover */
.card, .teacher, .facility, .contact-form, .testimonial, .requirements-list ul li, .requirements-values ul li {
    border: 1px solid rgba(15, 43, 110, 0.06);
    box-shadow: 0 10px 25px rgba(13, 35, 81, 0.08);
}

.card:hover, .teacher:hover, .facility:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 40px rgba(13, 35, 81, 0.16);
}

.card .icon {
    background: linear-gradient(135deg, #ffb703 0%, #ff7b00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Facilities caption polish */
.facility-caption {
    backdrop-filter: blur(2px);
}

/* Updates slider controls and dots */
.prev-btn, .next-btn {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.prev-btn:hover, .next-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

.slider-dots .dot {
    background: rgba(0,0,0,0.15);
}

.slider-dots .dot.active {
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.15);
}

/* Inputs focus glow */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.15);
}

/* Back to Top: pulse */
.back-to-top {
    box-shadow: 0 12px 28px rgba(13, 35, 81, 0.2);
}

.back-to-top.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Footer gradient */
footer {
    background: linear-gradient(180deg, rgba(11, 29, 71, 0.98) 0%, rgba(11, 29, 71, 1) 100%);
}

/* Mobile menu panel polish */
@media (max-width: 768px) {
    .nav-links {
        background: rgba(11, 29, 71, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Modal / Lightbox polish */
.modal {
    backdrop-filter: blur(6px);
}

.modal .modal-content {
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border-radius: 12px;
}

.close-modal {
    color: #ffffff !important;
    text-shadow: 0 8px 24px rgba(0,0,0,0.6);
    transition: transform .2s ease, opacity .2s ease;
}

.close-modal:hover {
    transform: scale(1.08);
    opacity: .85;
}

/* ========================= */
/* Optional Visual Polish    */
/* ========================= */

/* Typography refinements */
h1, h2, h3, h4 {
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-header h2 {
    letter-spacing: 0.3px;
}

/* Animated underline for section titles */
.section-header h2::after {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform .5s ease;
}

/* Trigger on viewport animation class or hover as fallback */
.section-header.animated h2::after,
.section-header:hover h2::after {
    transform: scaleX(1);
}

/* Focus-visible outlines for accessibility */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(58, 134, 255, 0.5);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Image subtle zooms */
.about-image img,
.level-image img {
    transition: transform .5s ease;
}

.about-image:hover img,
.level-image:hover img {
    transform: scale(1.04);
}

/* Nav links hover background on large screens */
@media (min-width: 769px) {
    .nav-links a {
        padding: 8px 10px;
        border-radius: 6px;
    }
    .nav-links a:hover {
        background: rgba(58, 134, 255, 0.08);
    }
}

/* Social icons playful hover */
.social-icon:hover {
    transform: translateY(-5px) rotate(-3deg);
}

/* Footer link underline animation */
.footer-column ul li a {
    position: relative;
}
.footer-column ul li a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--secondary-color);
    transition: width .25s ease;
}
.footer-column ul li a:hover::after {
    width: 100%;
}

/* Custom scrollbar (WebKit) */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: #e9edf5;
}
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3a86ff, #0f2b6e);
    border-radius: 10px;
}
*::-webkit-scrollbar-thumb:hover {
    filter: brightness(1.05);
}
.value-header {
  background: #eef2ff;
  font-weight: 600;
}

.value-header span {
  color: #1f3c88;
}

.requirements-values {
  margin-top: -50px; /* ajusta aos poucos: -5px, -10px, -15px */
}
/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================= */
/* Library Page Styles      */
/* ========================= */

.page-hero {
    background: var(--gradient-1);
    color: #fff;
    padding: 120px 0 80px;
    margin-top: 80px;
    text-align: center;
}

.page-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-hero-content h1 i {
    margin-right: 15px;
    color: var(--secondary-color);
}

.page-hero-content p {
    font-size: 20px;
    opacity: 0.9;
}

.library-intro {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.library-categories {
    padding: 80px 0;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.category-section {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.category-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-section h3 i {
    color: var(--secondary-color);
}

.course-books {
    margin-bottom: 40px;
}

.course-books:last-child {
    margin-bottom: 0;
}

.course-books h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid var(--accent-color);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.book-item {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.book-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 35, 81, 0.12);
    border-color: var(--accent-color);
}

.book-cover {
    flex-shrink: 0;
    width: 80px;
    height: 110px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.book-cover:hover {
    transform: rotateY(-15deg) rotateX(5deg);
}

.book-spine {
    position: absolute;
    left: -8px;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    border-radius: 2px 0 0 2px;
}

.book-front {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.book-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.book-title {
    font-size: 10px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.book-author {
    font-size: 8px;
    opacity: 0.8;
    text-align: center;
}

.book-icon {
    font-size: 20px;
    text-align: center;
    opacity: 0.7;
    margin: auto;
}

/* Book cover themes */
.book-cover.programming .book-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.book-cover.networks .book-front {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.book-cover.systems .book-front {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.book-cover.agriculture .book-front {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.book-cover.conservation .book-front {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.book-cover.electricity .book-front {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.book-cover.cardiology .book-front {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.book-cover.anatomy .book-front {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.book-cover.physiology .book-front {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.book-cover.microbiology .book-front {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.book-cover.pharmacy .book-front {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
}

.book-cover.pharmacology .book-front {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
}

.book-cover.hospital-pharmacy .book-front {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.book-cover.clinical .book-front {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.book-cover.endocrinology .book-front {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.book-cover.specialties .book-front {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.book-cover.management .book-front {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.book-cover.rural-finance .book-front {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.book-cover.gender .book-front {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
}

.book-cover.operations .book-front {
    background: linear-gradient(135deg, #795548 0%, #8d6e63 100%);
}

.book-cover.maintenance .book-front {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.book-cover.hr .book-front {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.book-cover.psychology .book-front {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.book-cover.public-admin .book-front {
    background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
}

.book-cover.management .book-front {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.book-cover.customs .book-front {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.book-cover.international .book-front {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

.book-cover.accounting .book-front {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

.book-cover.financial .book-front {
    background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
}

.book-cover.municipal .book-front {
    background: linear-gradient(135deg, #ee9ca7 0%, #ffdde1 100%);
}

.book-cover.finance .book-front {
    background: linear-gradient(135deg, #2196f3 0%, #21cbf3 100%);
}

.book-cover.nursing .book-front {
    background: linear-gradient(135deg, #f8cdda 0%, #1d2b64 100%);
}

.book-cover.pediatrics .book-front {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.book-cover.hospital .book-front {
    background: linear-gradient(135deg, #fdcbf1 0%, #e6dee9 100%);
}

.book-cover.quality .book-front {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.book-cover.nutrition .book-front {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.book-cover.dietetics .book-front {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.book-info {
    flex-grow: 1;
}

.book-info h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.book-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 123, 0, 0.3);
}

.library-info {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(13, 35, 81, 0.15);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 32px;
}

.info-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .page-hero-content h1 {
        font-size: 36px;
    }
    
    .category-section {
        padding: 30px 20px;
    }
    
    .category-section h3 {
        font-size: 24px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .book-item {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .book-cover {
        width: 80px;
        height: 100px;
        font-size: 28px;
    }
}

/* Funcionalidades Extras da Biblioteca */

/* Controles da Biblioteca */
.library-controls {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-container {
    margin-bottom: 25px;
}

.search-options {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.search-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    user-select: none;
}

.search-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: var(--transition);
}

.search-option input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
}

.search-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.search-option:hover .checkmark {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* Content Preview Styles */
.content-preview {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(15, 43, 110, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 5px 5px 0;
    font-style: italic;
}

.content-preview small {
    color: #666;
    line-height: 1.4;
}

.preview-text {
    color: var(--text-color);
}

.preview-text mark {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

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

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 18px;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 50px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

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

.clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.filter-group select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-group select:focus {
    outline: none;
    border-color: #007bff;
}

.view-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.view-btn {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.view-btn.active,
.view-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.favorites-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorites-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,53,69,0.3);
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.results-info span {
    font-weight: 600;
    color: #495057;
}

.reset-btn {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #5a6268;
}

/* Botão de Favorito */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #6c757d;
    z-index: 10;
}

.favorite-btn:hover {
    background: white;
    color: #dc3545;
    transform: scale(1.1);
}

.favorite-btn.favorited {
    color: #dc3545;
}

.favorite-btn.favorited i {
    font-weight: 900;
}

/* Ações do Livro */
.book-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.preview-btn {
    flex: 1;
    padding: 10px 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

.download-btn {
    flex: 2;
}

/* Vista em Lista */
.books-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.books-grid.list-view .book-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.books-grid.list-view .book-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.books-grid.list-view .book-cover {
    width: 80px;
    height: 100px;
    margin-right: 20px;
    flex-shrink: 0;
}

.books-grid.list-view .book-info {
    flex: 1;
}

.books-grid.list-view .book-actions {
    margin-top: 0;
    margin-left: 20px;
    flex-direction: column;
    min-width: 150px;
}

/* Livros Ocultos */
.book-item.hidden {
    display: none !important;
}

/* Seção Oculta */
.course-books.hidden {
    display: none !important;
}

/* Modal de Visualização de PDF */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.preview-modal.active {
    display: flex;
}

.preview-content {
    background: white;
    border-radius: 15px;
    width: 95%;
    height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-content.pdf-viewer {
    max-width: 1200px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.preview-header h3 {
    margin: 0;
    color: #495057;
    font-size: 20px;
    font-weight: 600;
}

.preview-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.download-from-preview-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.download-from-preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

.read-aloud-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    min-width: 140px;
    justify-content: center;
}

.read-aloud-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

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

.preview-close {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-close:hover {
    background: #c82333;
    transform: scale(1.1);
}

.pdf-container {
    flex: 1;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #6c757d;
}

.pdf-loading i {
    font-size: 48px;
    color: #007bff;
}

.pdf-loading p {
    font-size: 18px;
    font-weight: 500;
}

.pdf-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #dc3545;
    text-align: center;
    padding: 40px;
}

.pdf-error i {
    font-size: 64px;
    color: #ffc107;
}

.pdf-error h4 {
    margin: 0;
    font-size: 24px;
    color: #dc3545;
}

.pdf-error p {
    margin: 0;
    font-size: 16px;
    color: #6c757d;
}

.error-actions {
    margin-top: 20px;
}

.retry-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* Responsividade do PDF Viewer */
@media (max-width: 768px) {
    .preview-content {
        width: 98%;
        height: 95vh;
        border-radius: 10px;
    }
    
    .preview-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .preview-controls {
        width: 100%;
        justify-content: center;
    }
    
    .download-from-preview-btn {
        flex: 1;
        max-width: 200px;
    }
    
    .read-aloud-btn {
        flex: 1;
        max-width: 180px;
        font-size: 13px;
        padding: 8px 15px;
    }
}

/* Responsividade dos Controles */
@media (max-width: 768px) {
    .library-controls {
        padding: 20px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        min-width: auto;
        width: 100%;
    }
    
    .view-controls {
        justify-content: center;
        margin-top: 15px;
    }
    
    .results-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .books-grid.list-view .book-item {
        flex-direction: column;
        text-align: center;
    }
    
    .books-grid.list-view .book-cover {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .books-grid.list-view .book-actions {
        margin-left: 0;
        margin-top: 15px;
        flex-direction: row;
        width: 100%;
    }
}
