@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    ascent-override: 90.28%;
    descent-override: 22.45%;
    line-gap-override: 0.00%;
    size-adjust: 107.45%
}

body {
    font-family: 'Inter', 'Inter Fallback', sans-serif
}

:root {
    --brand-purple: #8e44ad;
    --brand-purple-dark: #5e3370;
    --brand-purple-light: #a569bd;
    --accent-gold: #f39c12;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-light: #fff;
    --text-secondary: #fff !important;
    --text-muted: #d4d4d4;
    --text-readable: #2c3e50
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all .3s ease
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .7)), url(../img/pedra-roseta-bg.png?v=16) no-repeat center center fixed;
    background-size: cover;
    color: var(--text-light)
}

.text-purple {
    color: var(--accent-gold);
    font-weight: 600
}

.text-purple-alt {
    color: var(--brand-purple-light);
    font-weight: 600
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-light);
    font-weight: 600
}

h1 {
    font-size: 2.5rem
}

h2 {
    font-size: 2.2rem
}

h3 {
    font-size: 1.8rem
}

h4 {
    font-size: 1.5rem
}

h5 {
    font-size: 1.3rem
}

h6 {
    font-size: 1.1rem
}

p,
span,
div {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6
}

.highlight-text {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 1.2rem
}

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

.videoteca-title i {
    color: var(--brand-purple)
}

.admin-section {
    margin-top: 20px
}

.admin-actions {
    margin-top: 10px
}

.admin-btn {
    font-size: .9rem !important;
    padding: 8px 16px !important
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff
}

.search-button-container {
    display: flex;
    align-items: end
}

.search-btn {
    width: 100%
}

.results-info {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px
}

.results-text {
    color: #fff;
    margin: 0
}

.smart-ordering-info {
    margin-top: 10px;
    padding: 10px;
    background: rgba(142, 68, 173, .1);
    border-radius: 8px;
    font-size: .9rem;
    color: #fff
}

.smart-icon {
    color: var(--brand-purple)
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.featured-section {
    margin-top: 10px
}

.featured-tag {
    background: rgba(241, 196, 15, .25);
    color: #f1c40f
}

.sequence-section {
    margin-top: 8px
}

.sequence-tag {
    background: rgba(52, 152, 219, .25);
    color: #3498db;
    font-size: .8rem
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--brand-purple)
}

.empty-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff
}

.empty-description {
    color: #ccc;
    margin-bottom: 30px
}

.stats-section {
    margin-top: 40px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 20px
}

.stats-title {
    color: #fff;
    margin-bottom: 15px
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 20px !important;
}

.stat-item {
    text-align: center
}

.stat-value {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700
}

.stat-value.purple {
    color: var(--brand-purple)
}

.stat-value.blue {
    color: #3498db
}

.stat-value.gray {
    color: #95a5a6
}

.stat-value.green {
    color: #2ecc71
}

.stat-label {
    color: #ccc;
    font-size: .9rem
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    max-width: 100%
}

.video-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all .3s ease;
    cursor: default
}

.video-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    border-color: var(--brand-purple);
    background-color: rgba(74, 20, 140, 0.15); /* Roxo (da tarja) claro e transparente */
    border-color: rgba(170, 100, 255, 0.25);
}

.video-thumb-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden
}

.video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-purple), #5e3370);
    display: flex;
    align-items: center;
    justify-content: center
}

.video-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .7)
}

.placeholder-text {
    font-size: .9rem;
    opacity: .8
}

.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 700;
    z-index: 10
}

.badge-sequence {
    background: #3498db
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
    background: rgba(0, 0, 0, .5)
}

.video-thumb:hover .video-overlay {
    opacity: 1
}

.play-button {
    background: var(--brand-purple);
    border-radius: 50%;
    padding: 15px;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 18px
}

.video-info {
    padding: 20px;
    /* NOVO: Propriedades para alinhar cards */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-info h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
    /* NOVO: Limita o título a 3 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.3rem * 3);
    max-height: calc(1.3rem * 3);
}

.video-speaker {
    color: var(--accent-gold);
    font-size: 1.1rem;
    /* AJUSTADO: Margem e altura para 2 linhas */
    margin: 8px 0 10px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    /* NOVO: Limita o speaker a 2 linhas */
    line-height: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2rem * 2);
    max-height: calc(1.2rem * 2);
}

.video-desc {
    color: #ccc;
    font-size: .85rem;
    line-height: 1.4;
    margin-bottom: 15px;
    /* NOVO: Garante que a descrição preencha o espaço (máx 4 linhas) */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.video-meta {
    font-size: .8rem;
    color: #999
}

.tag {
    background: rgba(142, 68, 173, .25);
    color: var(--brand-purple);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 500
}

.videoteca-filtros {
    margin-bottom: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px
}

select,
.filtros-grid select,
.vision-form select,
.form-group select,
.input-group select {
    background: rgba(255, 255, 255, .15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .3) !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5) !important
}

select option {
    background: #2c3e50 !important;
    color: #fff !important;
    padding: 8px 12px !important;
    font-weight: 500 !important
}

select:hover {
    background: rgba(255, 255, 255, .2) !important;
    border-color: var(--brand-purple) !important
}

select:focus {
    outline: none !important;
    background: rgba(255, 255, 255, .25) !important;
    border-color: var(--brand-purple) !important;
    box-shadow: 0 0 0 2px rgba(142, 68, 173, .3) !important
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
.filtros-grid input,
.vision-form input,
.form-group input {
    background: rgba(255, 255, 255, .15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .3) !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .3) !important
}

input::placeholder,
select::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, .7) !important;
    font-weight: 400 !important
}

textarea {
    background: rgba(255, 255, 255, .15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .3) !important;
    font-weight: 500 !important
}

.search-filters select,
.filtros-container select {
    background: rgba(255, 255, 255, .18) !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6) !important
}

select:disabled,
input:disabled,
textarea:disabled {
    background: rgba(255, 255, 255, .05) !important;
    color: rgba(255, 255, 255, .5) !important;
    opacity: .6 !important;
    cursor: not-allowed !important
}

.glass-header,
.glass-footer,
.card,
.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px
}

.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    height: 80px;
    z-index: 1000
}

.glass-header img {
    height: 40px
}

.glass-header nav ul {
    display: flex;
    list-style: none;
    gap: 24px
}

.glass-header nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px
}

.glass-header nav a:hover {
    background: var(--brand-purple);
    color: #fff
}

.glass-header.scrolled {
    background: rgba(20, 20, 20, .5);
    backdrop-filter: blur(30px);
    height: 65px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35)
}

.glass-footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center
}

.glass-footer .footer-links {
    margin: 15px 0
}

.glass-footer .footer-links a {
    margin: 0 10px;
    color: var(--text-light);
    text-decoration: none
}

.glass-footer .footer-links a:hover {
    color: var(--brand-purple)
}

.footer-copy {
    font-size: 14px;
    color: #ccc
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory
}

.carousel::-webkit-scrollbar {
    display: none
}

.card {
    width: 250px;
    padding: 16px;
    text-align: center;
    flex-shrink: 0;
    scroll-snap-align: start
}

.card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px
}

.card:hover {
    box-shadow: 0 8px 35px rgba(142, 68, 173, .6)
}

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

.project-card {
    padding: 20px;
    text-align: center;
    font-weight: 700
}

.project-card:hover {
    background: rgba(142, 68, 173, .3);
    transform: scale(1.05)
}

.fade-item {
    opacity: 0;
    transform: translateY(30px) scale(.95)
}

.fade-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity .8s ease, transform .8s ease
}

.glass-hero {
    background: rgba(142, 68, 173, .3);
    backdrop-filter: blur(25px);
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInHero 1.2s ease forwards;
    transform: translateY(20px);
    opacity: 0
}

.glass-hero h1 {
    font-size: 2.8rem
}

.glass-hero p {
    font-size: 1.2rem;
    margin-top: 15px
}

.hero-logo {
    margin-bottom: 30px
}

.translators-logo img {
    max-width: 300px;
    height: auto
}

.hero-headline {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light)
}

.hero-subheadline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 30px
}

.social-proof-hero {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px
}

.social-proof-hero .proof-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500
}

.social-proof-hero .proof-item i {
    color: var(--accent-gold);
    font-size: 1.5rem
}

.hero-cta-section {
    margin-top: 40px
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2)
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent-gold), #ffc107);
    color: #2c3e50
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(243, 156, 18, .4)
}

.pulse-animation {
    animation: pulse 2s infinite
}

.hero-guarantee {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 20px
}

.value-problem-combined {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px
}

.main-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px
}

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

.value-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all .3s ease
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .2)
}

.value-card .value-icon {
    font-size: 3rem;
    color: var(--brand-purple);
    margin-bottom: 15px
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-light)
}

.value-card p {
    font-size: 1rem;
    color: var(--text-secondary)
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px
}

.challenge-solution-section,
.solution-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px
}

.challenge-title,
.solution-title {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: center
}

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

.challenge-card,
.solution-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all .3s ease
}

.challenge-card:hover,
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .2)
}

.challenge-card .challenge-icon,
.solution-card .solution-icon {
    font-size: 2.5rem;
    margin-bottom: 15px
}

.challenge-card .challenge-icon i {
    color: #e74c3c
}

.solution-card .solution-icon i {
    color: #2ecc71
}

.challenge-card h4,
.solution-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-light)
}

.challenge-card p,
.solution-card p {
    font-size: 1rem;
    color: var(--text-secondary)
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px
}

.testimonials-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    margin-bottom: 40px
}

.testimonials-carousel::-webkit-scrollbar {
    display: none
}

.testimonial-card {
    flex: 0 0 auto;
    width: 350px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    scroll-snap-align: center;
    transition: all .3s ease
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .2)
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--brand-purple);
    margin-bottom: 20px
}

.testimonial-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px
}

.testimonial-card .author-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold)
}

.testimonial-card .author-title {
    font-size: 0.9rem;
    color: var(--text-muted)
}

.cta-section-banner {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px
}

.cta-section-banner h2 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 20px
}

.cta-section-banner p {
    font-size: 1.4rem;
    color: #f0f0f0;
    margin-bottom: 40px
}

.cta-section-banner .cta-btn {
    background: #fff;
    color: var(--brand-purple);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2)
}

.cta-section-banner .cta-btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .3)
}

.planos-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px
}

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

.plano-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all .3s ease
}

.plano-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .2)
}

.plano-card.featured {
    border-color: var(--accent-gold);
    box-shadow: 0 0 40px rgba(243, 156, 18, .5)
}

.plano-card h3 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 15px
}

.plano-card h3.featured-title {
    color: var(--accent-gold)
}

.plano-card .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px
}

.plano-card .price span {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted)
}

.plano-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px
}

.plano-card ul li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px
}

.plano-card ul li i {
    color: #2ecc71
}

.plano-card .cta-btn {
    width: 100%
}

.faq-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: default;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    transition: background .3s ease
}

.faq-question:hover {
    background: rgba(255, 255, 255, .05)
}

.faq-question i {
    color: var(--brand-purple);
    transition: transform .3s ease
}

.faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none
}

.faq-item.active .faq-answer {
    display: block
}

.faq-item.active .faq-question i {
    transform: rotate(180deg)
}

.contact-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px
}

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

.form-group label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 8px
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, .6)
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(142, 68, 173, .3)
}

.contact-form .cta-btn {
    width: 100%;
    margin-top: 20px
}

/* =================================================================== */
/* =================== CORREÇÃO DO LAYOUT PRINCIPAL ================== */
/* =================================================================== */
.main-content {
    /* NOVO: Garante o padding para acomodar o header (100px) e a sidebar recolhida (110px) */
    padding: 20px 40px 40px 110px; 
    min-height: 20vh;
    /* Transição mantida, mas agora o principal controle é pelo margin-left e width da sidebar */
    transition: margin-left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* O código JS que adiciona .sidebar-collapsed não é mais necessário, 
   mas esta regra é inofensiva e garante o padding padrão. */
body.sidebar-collapsed .main-content {
    padding-left: 110px; 
}

/* Para telas de tablet e mobile (até 900px), removemos o padding da sidebar */
@media (max-width: 900px) {
    .main-content {
        padding: 20px 20px 40px 20px;
    }
}
/* =================================================================== */
/* =================== FIM DA CORREÇÃO =============================== */
/* =================================================================== */

/* =================================================================== */
/* =================== BARRA LATERAL (HOVER/FLUTUANTE) =============== */
/* =================================================================== */
.glass-sidebar {
    /* NOVO: LARGURA RECOLHIDA POR PADRÃO (ÍCONES APENAS) */
    width: 80px; 
    
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    position: fixed; /* ESSENCIAL PARA SOBREPOSIÇÃO */
    top: 0;
    left: 0;
    height: 100%;
    padding-top: 80px;
    z-index: 1000; /* Z-index aumentado para flutuar */
    
    /* Usa a largura para a transição */
    transition: width .3s ease, transform .3s ease; 
    overflow-x: hidden; /* Esconde o texto que extrapola a largura inicial */
}

/* NOVO: Expande a largura ao passar o mouse */
.glass-sidebar:hover {
    width: 250px; 
}

/* A classe .collapsed e .active não são mais necessárias para o hover */
.glass-sidebar.collapsed {
    width: 80px
}

.glass-sidebar.collapsed .sidebar-nav span {
    /* Esta regra é duplicada pela próxima, mas mantida por segurança */
    display: none
}

.glass-sidebar.collapsed .sidebar-nav a {
    justify-content: center
}

.glass-sidebar.collapsed .sidebar-nav i {
    margin-right: 0
}

.sidebar-nav ul {
    list-style: none;
    padding: 0
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all .3s ease;
    /* NOVO: Garante o alinhamento correto na largura total */
    justify-content: flex-start;
}

.sidebar-nav li a i {
    font-size: 1.3rem;
    margin-right: 15px;
    color: var(--text-muted);
    transition: color .3s ease
}

/* NOVO: Esconde o texto por padrão (na largura de 80px) */
.glass-sidebar .sidebar-nav span {
    display: none;
    opacity: 0;
    transition: opacity .1s ease;
}

/* NOVO: Mostra o texto ao passar o mouse */
.glass-sidebar:hover .sidebar-nav span {
    display: inline;
    opacity: 1;
}

/* FIM DAS REGRAS DE HOVER */
/* =================================================================== */

.sidebar-nav li a:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--accent-gold)
}

.sidebar-nav li a:hover i {
    color: var(--accent-gold)
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, .2), rgba(255, 215, 0, .1)) !important;
    border-left: 4px solid var(--accent-gold) !important;
    color: var(--accent-gold) !important;
    font-weight: 600 !important;
    transform: translateX(5px) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, .3) !important
}

.sidebar-nav a.active i {
    color: var(--accent-gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, .5) !important
}

.sidebar-nav a.active span {
    color: var(--accent-gold) !important
}

.sidebar-nav a {
    transition: all .3s ease !important
}

.sidebar-nav a:not(.active):hover {
    background: rgba(255, 255, 255, .1) !important;
    transform: translateX(3px) !important
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: default;
    z-index: 1001
}

.hero-content-conversion {
    max-width: 800px;
    margin: 0 auto
}

.creator-info-enhanced-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px
}

.creator-image {
    border-radius: 50% !important;
    overflow: hidden;
    border: 5px solid var(--brand-purple);
    box-shadow: 0 0 20px rgba(142, 68, 173, .5);
    margin-bottom: 20px
}

.creator-image img {
    border-radius: 50% !important; /* Força o formato de círculo */
    border: 4px solid var(--accent-gold);
    box-shadow: 0 20px 50px rgba(243, 156, 18, 0.4);
    object-fit: cover !important; /* Garante que a imagem cubra a área sem distorcer */
    object-position: center top !important; /* Garante o alinhamento no topo */
}


.creator-name {
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 5px
}

.creator-title {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 20px
}

.expertise-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px
}

.expertise-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500
}

.expertise-card i {
    font-size: 1.5rem;
    color: var(--brand-purple)
}

.expertise-card.credential-item {
    background: rgba(243, 156, 18, .1);
    border-color: rgba(243, 156, 18, .3);
    color: var(--accent-gold)
}

.expertise-card.credential-item i {
    color: var(--accent-gold)
}

.upcoming-lectures-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px
}

.upcoming-lectures-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--text-light)
}

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

.lecture-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all .3s ease;
    position: relative
}

.lecture-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .2)
}

.lecture-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden
}

.lecture-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.lecture-info {
    padding: 20px
}

.lecture-info h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.3
}

.lecture-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px
}

.lecture-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted)
}

.lecture-meta span i {
    margin-right: 5px;
    color: var(--brand-purple)
}

.lecture-card .cta-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 20px auto;
    background: linear-gradient(135deg, var(--accent-gold), #ffc107);
    color: #2c3e50;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center
}

.lecture-card .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, .4)
}

.admin-controls {
    text-align: center;
    margin-bottom: 40px
}

.btn-admin-add {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
    color: var(--text-light);
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: default;
    transition: all .3s ease;
    font-size: 1rem
}

.btn-admin-add:hover {
    box-shadow: 0 10px 25px rgba(142, 68, 173, .5)
}

.edit-lecture-btn,
.delete-lecture-btn {
    position: absolute;
    top: 15px;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: default;
    transition: all .3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0
}

.edit-lecture-btn {
    background: rgba(142, 68, 173, .9);
    right: 15px
}

.edit-lecture-btn:hover {
    background: var(--brand-purple)
}

.delete-lecture-btn {
    background: rgba(231, 76, 60, .9);
    right: 65px
}

.delete-lecture-btn:hover {
    background: var(--accent-red)
}

.upcoming-lectures {
    background: linear-gradient(135deg, rgba(142, 68, 173, .1), rgba(255, 255, 255, .05));
    margin: 40px 0
}

.solution-icon i {
    color: var(--accent-green)
}

.challenge-card h4,
.solution-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600
}

.challenge-card p,
.solution-card p {
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 1rem
}

.testimonials-grid-narrow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 50px auto;
    max-width: 900px
}

.lectures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0
}

.video-card h2 {
    padding-left: 20px
}

@media (max-width: 1200px) {
    /* As regras aqui abaixo foram sobrescritas pelas regras de hover globais */
    .glass-sidebar {
        width: 80px
    }
    .glass-sidebar .sidebar-nav span {
        display: none
    }
    .glass-sidebar .sidebar-nav a {
        justify-content: center
    }
    .glass-sidebar .sidebar-nav i {
        margin-right: 0
    }
    .glass-header {
        padding: 16px 20px
    }
    .hero-headline {
        font-size: 2.5rem
    }
    .hero-subheadline {
        font-size: 1.2rem
    }
    .social-proof-hero {
        gap: 20px
    }
    .value-grid-compact {
        grid-template-columns: repeat(2, 1fr)
    }
    .problem-solution-grid {
        grid-template-columns: 1fr
    }
    .challenge-title,
    .solution-title {
        font-size: 1.8rem
    }
    .challenge-cards-grid,
    .solution-cards-grid {
        grid-template-columns: 1fr
    }
    .testimonial-card {
        width: 100%
    }
    .cta-section-banner h2 {
        font-size: 2.2rem
    }
    .cta-section-banner p {
        font-size: 1.2rem
    }
    .planos-grid {
        grid-template-columns: 1fr
    }
    .faq-question {
        font-size: 1.1rem
    }
    .contact-form {
        padding: 30px
    }
    .lectures-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 900px) {
    .glass-sidebar {
        transform: translateX(-100%);
        transition: transform .3s ease
    }
    .glass-sidebar.active {
        transform: translateX(0)
    }
    .mobile-menu-toggle {
        display: block
    }
    .desktop-nav {
        display: none
    }
    .glass-hero {
        padding: 20px
    }
    .hero-headline {
        font-size: 2rem
    }
    .hero-subheadline {
        font-size: 1rem
    }
    .social-proof-hero {
        flex-direction: column;
        align-items: center
    }
    .value-grid-compact {
        grid-template-columns: 1fr
    }
    .challenge-title,
    .solution-title {
        font-size: 1.5rem
    }
    .challenge-card h4,
    .solution-card h4 {
        font-size: 1.2rem
    }
    .challenge-card p,
    .solution-card p {
        font-size: 1rem
    }
    .testimonial-card {
        padding: 20px
    }
    .cta-section-banner h2 {
        font-size: 1.8rem
    }
    .cta-section-banner p {
        font-size: 1rem
    }
    .planos-grid {
        grid-template-columns: 1fr
    }
    .faq-question {
        font-size: 1rem
    }
    .contact-form {
        padding: 20px
    }
    .lectures-grid {
        grid-template-columns: 1fr
    }
    .testimonials-grid-narrow {
        grid-template-columns: 1fr
    }
}

@keyframes fadeInHero {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }
    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

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

@media (max-width: 480px) {
    .glass-header {
        padding: 10px 15px
    }
    .glass-header img {
        height: 35px
    }
    .hero-headline {
        font-size: 1.8rem
    }
    .hero-subheadline {
        font-size: 0.9rem
    }
    .cta-btn {
        padding: 12px 25px;
        font-size: 1.1rem
    }
    .value-card h3 {
        font-size: 1.3rem
    }
    .value-card p {
        font-size: 0.9rem
    }
    .challenge-card h4,
    .solution-card h4 {
        font-size: 1.1rem
    }
    .challenge-card p,
    .solution-card p {
        font-size: 0.9rem
    }
    .testimonial-card {
        padding: 15px
    }
    .testimonial-card p {
        font-size: 1rem
    }
    .cta-section-banner h2 {
        font-size: 1.5rem
    }
    .cta-section-banner p {
        font-size: 0.9rem
    }
    .plano-card h3 {
        font-size: 1.8rem
    }
    .plano-card .price {
        font-size: 3rem
    }
    .plano-card .price span {
        font-size: 1.2rem
    }
    .plano-card ul li {
        font-size: 1rem
    }
    .faq-question {
        padding: 15px 20px;
        font-size: 0.95rem
    }
    .faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem
    }
    .contact-form {
        padding: 15px
    }
    .form-group label {
        font-size: 1rem
    }
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem
    }
    .lectures-grid {
        gap: 20px
    }
    .lecture-info h3 {
        font-size: 1.2rem
    }
    .lecture-info p {
        font-size: 0.85rem
    }
    .lecture-meta {
        font-size: 0.8rem
    }
    .lecture-card .cta-btn {
        padding: 10px 15px;
        font-size: 0.9rem
    }
}
/* =================================================================== */
/* NOVAS REGRAS PARA ALINHAMENTO DOS CARDS DE VÍDEO - SOLUÇÃO COMPLETA */
/* =================================================================== */

/* 1. Transforma a área de informações em um container flexível */
.video-info {
    display: flex;
    flex-direction: column; /* Organiza os itens em coluna */
    flex-grow: 1;         /* Faz esta área ocupar todo o espaço vertical disponível no card */
}

/* 2. Garante que o TÍTULO do vídeo ocupe sempre 3 linhas */
.video-info h3 {
    font-size: 1rem;
    line-height: 1.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.3rem * 3); /* Força a altura mínima */
    max-height: calc(1.3rem * 3); /* Força a altura máxima */
}

/* 3. Garante que o NOME DO PALESTRANTE ocupe sempre 2 linhas */
.video-speaker {
    font-size: 0.95rem;
    line-height: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2rem * 2); /* Força a altura mínima */
    max-height: calc(1.2rem * 2); /* Força a altura máxima */
    margin-bottom: 10px;
}

/* 4. Garante que a DESCRIÇÃO ocupe o espaço restante e tenha até 4 linhas */
.video-desc {
    font-size: 0.8rem;
    line-height: 1.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limita a descrição a 4 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1; /* Faz a descrição se expandir para preencher o espaço vazio */
}

/* 5. Empurra a seção "Colocar na minha lista" para o fundo do card */
.watchlist-section {
    margin-top: auto; /* A mágica acontece aqui! */
    padding-top: 10px; /* Adiciona um espaço acima */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* forms.css - Estilo para formulários Apple Vision */

.vision-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-wide {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #FFD700;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7B61FF;
    background: rgba(123, 97, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group select {
    cursor: default;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFD700' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.form-actions .cta-btn {
    padding: 0.85rem 2rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #7B61FF, #483D8B);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: default;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-actions .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 97, 255, 0.4);
}

.form-actions .cta-btn:active {
    transform: translateY(0);
}

.form-actions .cta-btn i {
    font-size: 0.9rem;
}

/* Responsividade do formulário */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-wide {
        grid-column: span 1;
    }
}

/* Estados de validação */
.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group select:invalid:not(:focus),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: rgba(244, 67, 54, 0.5);
}

.form-group input:valid:not(:focus):not(:placeholder-shown),
.form-group select:valid:not(:focus),
.form-group textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: rgba(76, 175, 80, 0.5);
}

/* Estilo para inputs desabilitados */
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

/* Checkbox e Radio customizados (caso precise) */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    cursor: default;
    accent-color: #7B61FF;
}

/*
 * Força o ícone do date/time picker a ficar branco
 * (Funciona em navegadores baseados em WebKit: Chrome, Edge, Safari)
 */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    
    /* * filter: invert(1) é a forma mais confiável.
     * Ele pega o ícone (que geralmente é preto ou cinza escuro)
     * e inverte sua cor, tornando-o branco.
     */
    filter: invert(1);
    
    /* Opcional: Ajusta a opacidade se o branco puro for muito forte */
    opacity: 0.8; 
}