/* =====================================================================
   ARTROWRISTFELLOW 2027 — estilos das seções novas
   Usa a identidade do tema (navy #000f22, painel #07192f, verde AWF #23a455)
   ===================================================================== */
:root {
    --awf-green: #23a455;
    --awf-green-soft: #8cc63f;
    --awf-navy: #000f22;
    --awf-panel: #07192f;
    --awf-line: rgba(255, 255, 255, .12);
    --awf-text: #ced0df;
    --awf-white: #ffffff;
    --awf-radius: 20px;
}

html { scroll-behavior: smooth; }
body { font-size: 17px; line-height: 1.65; }

/* ---------- Faixa do prazo ---------- */
.awf-topbar {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 6px 14px; padding: 9px 16px; text-align: center;
    background: var(--awf-green); color: #fff; font-size: 15px; line-height: 1.4;
}
.awf-topbar strong { font-weight: 700; }
.awf-topbar a {
    color: var(--awf-navy); background: #fff; border-radius: 50px; padding: 2px 14px;
    font-weight: 600; font-size: 14px;
}
.awf-topbar a:hover { color: #fff; background: var(--awf-navy); }

/* ---------- Header ---------- */
.header .navbar-brand img { max-height: 54px; width: auto; }
.nav-item.active .nav-link { color: var(--awf-green) !important; }
.mobile-menu .nav-item.active .nav-link { color: var(--awf-green) !important; }

/* Seletor de idioma */
.language-selector { margin-right: 12px; position: relative; }
.language-selector .lang-button {
    background: transparent; border: 1px solid rgba(255, 255, 255, .3); color: #fff;
    padding: 7px 13px; border-radius: 6px; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; gap: 8px; transition: all .3s ease;
}
.language-selector .lang-button:hover { border-color: rgba(255, 255, 255, .6); }
.language-selector .flag { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }
.language-selector .arrow { font-size: 9px; transition: transform .3s ease; }
.language-selector .lang-button.active .arrow { transform: rotate(180deg); }
.language-selector .lang-dropdown {
    position: absolute; top: calc(100% + 6px); right: 0; min-width: 170px; z-index: 1000;
    background: #0d1f36; border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s ease; overflow: hidden;
}
.language-selector .lang-dropdown.show { opacity: 1; visibility: visible; transform: none; }
.language-selector .lang-dropdown a {
    display: flex; align-items: center; gap: 12px; padding: 11px 16px; color: #fff; font-size: 14px;
}
.language-selector .lang-dropdown a:hover { background: rgba(255, 255, 255, .08); }
.language-selector .lang-dropdown a.active { background: rgba(35, 164, 85, .25); }

/* ---------- Tipografia das seções ---------- */
.awf-eyebrow {
    color: var(--awf-green); font-family: "Bai Jamjuree", sans-serif; font-weight: 600;
    font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.awf-h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.15; margin-bottom: 22px; }
.awf-lead { font-size: 19px; line-height: 1.7; color: #e3e5ef; }
.awf-small { font-size: 15px; line-height: 1.6; color: #a9adc2; }
.awf-center { text-align: center; margin-left: auto; margin-right: auto; }
.awf-head { max-width: 860px; margin-bottom: 44px; }
.awf-link { display: inline-flex; align-items: center; gap: 8px; color: var(--awf-green); font-weight: 600; }
.awf-link:hover { color: #fff; }

.awf-section { padding: 110px 0; }
.awf-section--tight { padding: 80px 0; }
.awf-section--panel { background: var(--awf-panel); border-radius: 40px; }
.awf-section > .container, .awf-hero__inner, .awf-footer > .container { max-width: 1240px; }
.awf-photo { width: 100%; height: auto; border-radius: var(--awf-radius); object-fit: cover; aspect-ratio: 4 / 3; display: block; }
.awf-photo--portrait { aspect-ratio: 501 / 533; max-width: 420px; margin: 0 auto; }

/* ---------- Botões ---------- */
.btn i { font-size: 1.15em; }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .55) !important; }
.btn-ghost:hover { background: #fff; color: var(--awf-navy); }
.awf-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }
.awf-actions--center { justify-content: center; margin-bottom: 26px; }

/* ---------- 1. Hero ---------- */
.awf-hero {
    position: relative; overflow: hidden; background: var(--awf-navy);
    min-height: min(92vh, 860px); display: flex; align-items: center;
}
.awf-hero__media {
    position: absolute; top: 0; right: 0; bottom: 0; width: 52%;
    background: url("../images/awf27/hero-artroscopia.jpg") center 30% / cover no-repeat;
}
.awf-hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--awf-navy) 0%, rgba(0, 15, 34, .55) 35%, rgba(0, 15, 34, .1) 70%),
                linear-gradient(0deg, rgba(0, 15, 34, .7) 0%, rgba(0, 15, 34, 0) 40%);
}
.awf-hero__inner { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.awf-hero__title {
    font-size: clamp(28px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -.01em;
    margin: 0 0 22px;
}
@media (max-width: 420px) { .awf-hero__title { font-size: 7.6vw; } }
.awf-hero__title span { color: var(--awf-green); }
.awf-hero__sub { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: #e8eaf2; max-width: 620px; }
.awf-counters {
    list-style: none; padding: 0; margin: 34px 0 0; display: grid;
    grid-template-columns: repeat(4, minmax(0, 140px)); gap: 18px;
}
.awf-counters li { border-left: 2px solid var(--awf-green); padding-left: 14px; }
.awf-counters strong { display: block; font-family: "Bai Jamjuree", sans-serif; font-size: 46px; line-height: 1; color: #fff; }
.awf-counters span { display: block; font-size: 14px; line-height: 1.3; color: #c9ccdc; margin-top: 6px; }
.awf-deadline {
    display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 0;
    padding: 10px 18px; border-radius: 50px; background: rgba(35, 164, 85, .16);
    border: 1px solid rgba(35, 164, 85, .6); color: #fff; font-size: 15px; line-height: 1.4;
}
.awf-deadline i { color: var(--awf-green); }

/* ---------- 2. Programa ---------- */
.awf-blocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; }
.awf-block {
    background: var(--awf-panel); border: 1px solid var(--awf-line); border-radius: var(--awf-radius);
    padding: 30px 26px; transition: border-color .3s ease, transform .3s ease;
}
.awf-block:hover { border-color: var(--awf-green); transform: translateY(-4px); }
.awf-block__num { display: block; font-family: "Bai Jamjuree", sans-serif; font-weight: 700; font-size: 64px; line-height: 1; color: var(--awf-green); }
.awf-block__title { font-size: 22px; line-height: 1.25; margin: 10px 0 12px; }
.awf-block p { font-size: 16px; line-height: 1.6; margin: 0; }
.awf-callout {
    display: flex; gap: 16px; align-items: flex-start; margin: 40px 0 0;
    padding: 26px 30px; border-left: 4px solid var(--awf-green); border-radius: 0 var(--awf-radius) var(--awf-radius) 0;
    background: rgba(35, 164, 85, .08); color: #e3e5ef; font-size: 18px;
}
.awf-callout i { color: var(--awf-green); font-size: 22px; margin-top: 4px; }
.awf-callout strong { color: #fff; }

/* ---------- 3. Planos ---------- */
.awf-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.awf-plan { display: flex; flex-direction: column; border-radius: 26px; padding: 40px 36px; }
.awf-plan--master {
    background: linear-gradient(160deg, #0b2a4a 0%, var(--awf-navy) 70%);
    border: 1px solid rgba(35, 164, 85, .55); color: var(--awf-text);
}
.awf-plan--exp { background: #f4f7f5; color: #3b4456; }
.awf-plan--exp h3 { color: var(--awf-navy); }
.awf-plan__head h3 { font-size: 34px; margin: 14px 0 4px; }
.awf-plan__head p { margin: 0; font-size: 17px; }
.awf-plan--exp .awf-plan__head p { color: #57607a; }
.awf-plan__spots {
    display: inline-block; padding: 4px 14px; border-radius: 50px; font-size: 14px; font-weight: 600;
    background: var(--awf-green); color: #fff;
}
.awf-checks { list-style: none; padding: 0; margin: 28px 0; flex: 1; }
.awf-checks li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--awf-line); font-size: 17px; line-height: 1.45; }
.awf-plan--exp .awf-checks li { border-bottom-color: rgba(0, 15, 34, .1); }
.awf-checks li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 10px; color: var(--awf-green); font-size: 15px;
}
.awf-plan__foot p { font-size: 15px; font-style: italic; margin-bottom: 18px; }
.awf-plan__foot .btn { white-space: normal; text-align: center; }
.awf-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.awf-notes p { display: flex; gap: 12px; margin: 0; font-size: 15px; line-height: 1.55; color: #b9bdd0; }
.awf-notes i { color: var(--awf-green); margin-top: 4px; width: 18px; flex: none; }
.awf-notes strong { color: #fff; }

/* ---------- 4. Calendário ---------- */
.awf-modules { display: flex; flex-direction: column; gap: 12px; }
.awf-mod {
    background: var(--awf-panel); border: 1px solid var(--awf-line); border-radius: 18px;
    transition: border-color .3s ease; scroll-margin-top: 110px;
}
.awf-mod[open], .awf-mod:hover { border-color: rgba(35, 164, 85, .7); }
.awf-mod summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 22px; padding: 22px 26px;
}
.awf-mod summary::-webkit-details-marker { display: none; }
.awf-mod summary:focus-visible { outline: 2px solid var(--awf-green); outline-offset: 2px; border-radius: 18px; }
.awf-mod__month {
    flex: none; width: 86px; text-align: center; padding: 12px 4px; border-radius: 12px;
    background: rgba(35, 164, 85, .14); color: var(--awf-green);
    font-family: "Bai Jamjuree", sans-serif; font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .04em;
}
.awf-mod__head { flex: 1; min-width: 0; }
.awf-mod__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: #aeb2c6; }
.awf-mod__num { color: var(--awf-green); font-weight: 600; }
.awf-mod__place { display: inline-flex; align-items: center; gap: 6px; }
.awf-mod__place img { border-radius: 2px; }
.awf-mod__title { display: block; margin: 4px 0 0; font-family: "Bai Jamjuree", sans-serif; font-weight: 600; font-size: 23px; line-height: 1.3; color: #fff; }
.awf-mod__toggle {
    flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); position: relative;
    transition: transform .3s ease, background .3s ease;
}
.awf-mod__toggle::before, .awf-mod__toggle::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: #fff; transform: translate(-50%, -50%);
}
.awf-mod__toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s ease; }
.awf-mod[open] .awf-mod__toggle { background: var(--awf-green); border-color: var(--awf-green); }
.awf-mod[open] .awf-mod__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.awf-mod__body { padding: 0 26px 28px 134px; animation: awfFade .35s ease; }
.awf-mod__sub { font-size: 19px; font-style: italic; color: #e3e5ef; margin-bottom: 20px; }
.awf-mod__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.awf-mod__grid h4 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--awf-green); margin: 0 0 8px; }
.awf-mod__grid p { font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.awf-topics { padding-left: 18px; margin: 0; }
.awf-topics li { font-size: 16px; line-height: 1.5; padding: 3px 0; }
.awf-topics li::first-letter { text-transform: uppercase; }
.awf-topics li::marker { color: var(--awf-green); }
.awf-break {
    display: flex; align-items: center; gap: 22px; padding: 14px 26px; border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, .2); color: #9aa0b7; font-size: 16px;
}
.awf-break .awf-mod__month { background: rgba(255, 255, 255, .06); color: #9aa0b7; }
.awf-break strong { color: #d7d9e4; }
#calendar .awf-center { margin-top: 36px; }
@keyframes awfFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 5. Congressos ---------- */
.awf-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.awf-cong {
    display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; border-radius: var(--awf-radius);
    background: var(--awf-navy); border: 1px solid var(--awf-line); color: var(--awf-text);
    transition: border-color .3s ease, transform .3s ease;
}
.awf-cong:hover, .awf-cong:focus { border-color: var(--awf-green); transform: translateY(-4px); color: var(--awf-text); }
.awf-cong__kicker { font-family: "Bai Jamjuree", sans-serif; font-size: 22px; font-weight: 700; color: #fff; line-height: 1.25; }
.awf-cong__when { display: inline-flex; align-items: center; gap: 8px; color: var(--awf-green); font-weight: 600; font-size: 16px; }
.awf-cong__desc { font-size: 16px; line-height: 1.6; }
.awf-cong__desc em { color: #fff; }

/* ---------- 6. Tecnologia ---------- */
.awf-tech {
    padding: 34px 30px; border-radius: var(--awf-radius); background: var(--awf-panel); border: 1px solid var(--awf-line);
}
.awf-tech i { font-size: 34px; color: var(--awf-green); margin-bottom: 18px; display: block; }
.awf-tech h3 { font-size: 23px; line-height: 1.3; margin-bottom: 10px; }
.awf-tech p { font-size: 16px; margin: 0; }
#technology .awf-small { margin-top: 28px; }

/* ---------- 7. Cadaver labs ---------- */
.awf-table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: 16px; }
.awf-table th {
    text-align: left; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--awf-green);
    padding: 10px 14px 10px 0; border-bottom: 1px solid rgba(35, 164, 85, .6);
}
.awf-table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--awf-line); vertical-align: top; line-height: 1.45; }
.awf-table__center { color: #fff; font-weight: 500; }
.awf-table__date { white-space: nowrap; color: #fff; }

/* ---------- 8. Mentor ---------- */
.awf-role { color: var(--awf-green); font-weight: 600; margin-top: -10px; }
.awf-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.awf-facts > div { border-top: 2px solid var(--awf-green); padding-top: 14px; }
.awf-facts h3 { font-size: 19px; margin-bottom: 8px; }
.awf-facts p { font-size: 15px; line-height: 1.55; margin: 0; }

/* ---------- Galeria ---------- */
/* Todas as fotos com o mesmo tamanho de cartão, qualquer que seja o formato (retrato ou paisagem) */
.gallery-carousel .owl-item, .gallery-carousel .item { width: 100%; }
.gallery-carousel .gallery-item {
    display: block !important; width: 100% !important; height: 300px !important;
    border-radius: 14px; overflow: hidden; background: var(--awf-panel);
}
.gallery-carousel .gallery-item img {
    display: block !important; width: 100% !important; height: 100% !important;
    max-width: none !important; object-fit: cover !important; object-position: center 30% !important;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- 9. Inscrição ---------- */
.awf-section--apply {
    background: radial-gradient(ellipse at top, rgba(35, 164, 85, .22), rgba(0, 15, 34, 0) 60%), var(--awf-panel);
    border-radius: 40px;
}
.awf-section--apply .awf-head { text-align: center; margin-left: auto; margin-right: auto; }
.awf-steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.awf-steps li { background: var(--awf-navy); border: 1px solid var(--awf-line); border-radius: var(--awf-radius); padding: 30px 28px; }
.awf-steps__n {
    display: inline-block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
    color: var(--awf-navy); background: var(--awf-green); border-radius: 50px; padding: 3px 12px; margin-bottom: 14px;
}
.awf-steps h3 { font-size: 21px; line-height: 1.3; margin-bottom: 10px; }
.awf-steps p { font-size: 16px; margin: 0; }
.awf-section--apply .awf-lead { max-width: 760px; }
.awf-section--apply .awf-small { max-width: 640px; }

/* ---------- 10. Rodapé ---------- */
.awf-footer { padding-top: 80px; }
.awf-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.awf-footer__logo { max-width: 240px; }
.awf-footer__title { font-size: 18px; margin-bottom: 14px; }
.awf-footer__list { list-style: none; padding: 0; margin: 0; font-size: 16px; }
.awf-footer__list li { padding: 4px 0; }
.awf-footer__list a { color: var(--awf-text); }
.awf-footer__list a:hover { color: var(--awf-green); }
.awf-footer .footer-copyright { border-top: 1px solid var(--awf-line); padding: 22px 0; font-size: 14px; }

/* WhatsApp flutuante */
.awf-wa-float {
    position: fixed; left: 18px; bottom: 18px; z-index: 990; width: 54px; height: 54px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: transform .25s ease;
}
.awf-wa-float:hover { color: #fff; transform: scale(1.08); }

/* ---------- Aviso de cookies ---------- */
#cookie-consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; background: #0d1117; color: #e6edf3;
    border-top: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 -6px 24px rgba(0, 0, 0, .35); padding: 18px 20px;
    transform: translateY(110%); transition: transform .4s ease; font-size: 14px; line-height: 1.55;
}
#cookie-consent.show { transform: translateY(0); }
#cookie-consent .cc-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
#cookie-consent .cc-text { flex: 1 1 460px; margin: 0; }
#cookie-consent .cc-text a { color: #4dabf7; text-decoration: underline; }
#cookie-consent .cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-consent button { cursor: pointer; border-radius: 8px; padding: 10px 22px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
#cookie-consent .cc-accept { background: #2f9e44; color: #fff; }
#cookie-consent .cc-reject { background: transparent; color: #e6edf3; border-color: rgba(255, 255, 255, .3); }

/* =====================================================================
   Responsivo
   ===================================================================== */
@media (max-width: 1199px) {
    .awf-blocks { grid-template-columns: repeat(2, 1fr); }
    .awf-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    .awf-section { padding: 80px 0; }
    .awf-section--panel, .awf-section--apply { border-radius: 28px; }
    .awf-hero__media { width: 100%; }
    .awf-hero__media::after {
        background: linear-gradient(0deg, var(--awf-navy) 8%, rgba(0, 15, 34, .78) 55%, rgba(0, 15, 34, .55) 100%);
    }
    .awf-plans, .awf-cards3, .awf-steps, .awf-facts { grid-template-columns: 1fr; }
    .awf-notes { grid-template-columns: 1fr; gap: 14px; }
    .awf-mod__body { padding-left: 26px; }
    .awf-mod__grid { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 767px) {
    body { font-size: 16px; }
    .awf-topbar { font-size: 14px; }
    .awf-section { padding: 64px 0; }
    .awf-section--tight { padding: 56px 0; }
    .awf-head { margin-bottom: 30px; }
    .awf-lead { font-size: 17px; }
    .awf-hero { min-height: 0; }
    .awf-hero__inner { padding-top: 56px; padding-bottom: 56px; }
    .awf-counters { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
    .awf-counters strong { font-size: 38px; }
    .awf-actions .btn { width: 100%; padding: 14px 24px; white-space: normal; }
    .awf-deadline { border-radius: 14px; align-items: flex-start; }
    .awf-blocks { grid-template-columns: 1fr; margin-top: 44px; }
    .awf-block__num { font-size: 52px; }
    .awf-callout { padding: 20px; font-size: 16px; }
    .awf-plan { padding: 30px 22px; }
    .awf-plan__head h3 { font-size: 28px; }
    .awf-plan__foot .btn { width: 100%; padding: 14px 20px; }
    .awf-mod summary { gap: 14px; padding: 18px 16px; align-items: flex-start; }
    .awf-mod__month { width: 58px; font-size: 13px; padding: 9px 2px; }
    .awf-mod__title { font-size: 19px; }
    .awf-mod__meta { font-size: 14px; gap: 2px 12px; }
    .awf-mod__toggle { width: 32px; height: 32px; }
    .awf-mod__body { padding: 0 16px 22px; }
    .awf-break { gap: 14px; padding: 12px 16px; }
    .awf-break .awf-mod__month { width: 58px; }
    /* Tabela vira cartões */
    .awf-table thead { display: none; }
    .awf-table, .awf-table tbody, .awf-table tr, .awf-table td { display: block; width: 100%; }
    .awf-table tr { padding: 14px 0; border-bottom: 1px solid var(--awf-line); }
    .awf-table td { border: 0; padding: 2px 0; }
    .awf-table__date { color: var(--awf-green); }
    .awf-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .gallery-item { height: 260px; }
    .awf-wa-float { width: 50px; height: 50px; font-size: 27px; left: 14px; bottom: 14px; }
    #cookie-consent .cc-inner { flex-direction: column; align-items: stretch; }
    #cookie-consent button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
