@Import url("http://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700;800;900&family=Forum&display=swap");

:root {
    --primary-color: #12c2b9;
    --secondary: #dbfffe;
    --black: #141414;
    --white: #fff;
    --grey: #707070;
    --box-shadow: 0 .5rem 1rem rgba(0,0,0, 0.15);
}

* {
    font-family: 'DM Sans', sans-serif;
    margin: 0; padding: 0;
    box-sizing: border-box;
    outline: none; border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .2s linear;
}

body {
    font-family: 'DM Sans', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar{
    width: 1rem;
}

html::-webkit-scrollbar-track{
    background-color: transparent;
}

html::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

section {
    padding: 5rem 7%;
}

.heading {
    position: relative;
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4rem;
    text-align: center;
    margin-bottom: 3rem;
}

.heading::after {
    content: url('src/images/ui/separator.svg');
    display: block;
    width: 10rem;
    margin-inline: auto;
    margin-top: -1rem;
}



/* btn styles starts*/

.btn {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    max-width: max-content;
    border: .1rem solid var(--primary-color);
    background: var(--secondary);
    padding: 1.2rem 4.5rem;
    overflow: hidden;
    z-index: 1;
    border-radius: .5rem;
}

.btn::before {
    content: "";
    position: absolute;
    bottom: 100%; left: 50%;
    transform: translateX(-50%);
    width: 200%; height: 200%;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: 500ms ease;
    z-index: -1;
}

.btn .text {
    transition: 250ms ease;
}

.btn .text-2 {
    position: absolute;
    top: 100%; left: 46%;
    transform: translateX(-50%);
    max-width: max-content;
    color: var(--secondary);
}

.btn:is(:hover, :focus-visible)::before {
    bottom: -50%;
}

.btn:is(:hover, :focus-visible) .text-1 {
    transform: translateY(-4rem);
}

.btn:is(:hover, :focus-visible) .text-2 {
    top: 50%;
    transform: translate(-50%, -50%);
}

/* btn styles starts*/

/* header styles starts */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .9rem 9%;
}

#logoImage {
    width: 20vh;
}

.header .logo {
    font-size: 2.5rem;
    font-weight: bolder;
    color: var(--black);
}

.header .logo img {
    padding-right: .2rem;
}

.header .navbar a,
.header .navbar button.hover-underline {
    font-size: 1.7rem;
    color: var(--black);
    margin: 0 1rem;
    padding-block: 1rem;
}

.header .navbar button.hover-underline {
    background: transparent;
    cursor: pointer;
}

.header .navbar a:hover,
.header .navbar button.hover-underline:hover {
    color: var(--primary-color);
}

.header .navbar .hover-underline {
    position: relative;
    max-width: max-content;
}

.header .navbar .hover-underline::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: .5rem;
    border-block: .1rem solid var(--primary-block);
    transform: scaleX(0.2);
    opacity: 0;
    transition: 500ms ease;
}

.header .navbar .hover-underline:is(:hover, :focus-visible)::after{
    transform: scaleX(1);
    opacity: 1;
}

.header .navbar .hover-underline.is-current-section,
.header .navbar a[aria-current="page"],
.header .navbar button.hover-underline[aria-current="page"] {
    color: var(--primary-color);
}

.header .navbar .hover-underline.is-current-section::after,
.header .navbar a[aria-current="page"]::after,
.header .navbar button.hover-underline[aria-current="page"]::after {
    transform: scaleX(1);
    opacity: 1;
}

.header .icons button{
    font-size: 2.5rem;
    margin-left: 1.7rem;
    color: var(--black);
    cursor: pointer;
    background: transparent;
}

.header .icons button:hover{
    color: var(--primary-color);
}

#menu-btn {
    display: none;
}

/* dropdown menu styles */
.header .navbar .nav-item {
    position: relative;
    display: inline-block;
}

.header .navbar .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 16rem;
    box-shadow: var(--box-shadow);
    z-index: 1000;
}

.header .navbar .dropdown-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--black);
    white-space: nowrap;
}

.header .navbar .nav-item:hover > .dropdown-menu {
    display: block;
}

.header .navbar .nav-item:focus-within > .dropdown-menu,
.header .navbar .nav-item.open > .dropdown-menu {
    display: block;
}

/* second‑level submenu (opens to the right) */
.header .navbar .dropdown-menu .nav-item {
    position: relative;
}

.header .navbar .dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
}

/* Replicar cor e efeito de seleção do menu principal nos submenus */
.header .navbar .dropdown-menu a:hover,
.header .navbar .dropdown-menu a:focus {
    color: var(--primary-color);
    background: rgba(18,194,185,0.05);
}

.header .navbar .dropdown-menu a.hover-underline {
    position: relative;
    max-width: none;
}

.header .navbar .dropdown-menu a.hover-underline::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: .5rem;
    background: var(--primary-color);
    transform: scaleX(0.2);
    opacity: 0;
    transition: 300ms ease;
}

.header .navbar .dropdown-menu a.hover-underline:is(:hover, :focus-visible)::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Garantir que links do segundo nível também adotem o estilo quando houver hover no próprio item */
.header .navbar .dropdown-menu .nav-item > a:hover,
.header .navbar .dropdown-menu .nav-item > a:focus {
    color: var(--primary-color);
}

/* header styles ends */

/* home top card */

.home-top-card {
    position: relative;
    width: 100%;
    min-height: 72rem;
    padding: 12rem 7% 6rem;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 20% 50%, rgba(18, 194, 185, 0.2), transparent 48%),
        linear-gradient(120deg, #f6fffd 0%, #e6f6f4 60%, #f5fbfa 100%);
}

.home-top-card::before,
.home-top-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.home-top-card::before {
    background:
        radial-gradient(42rem 30rem at 8% 22%, rgba(129, 195, 181, 0.28), transparent 72%),
        radial-gradient(48rem 34rem at 88% 20%, rgba(230, 168, 146, 0.22), transparent 74%),
        radial-gradient(36rem 30rem at 82% 82%, rgba(255, 216, 161, 0.24), transparent 73%);
    filter: blur(1.2rem);
    opacity: 0.9;
}

.home-top-card::after {
    background:
        radial-gradient(34rem 26rem at 24% 84%, rgba(173, 208, 236, 0.2), transparent 72%),
        radial-gradient(40rem 26rem at 58% 12%, rgba(164, 226, 214, 0.2), transparent 75%);
    filter: blur(1.8rem);
    opacity: 0.85;
}

.home-top-card__layout {
    position: relative;
    z-index: 1;
    max-width: 128rem;
    margin: 0 auto;
    min-height: 54rem;
    border-radius: 2.8rem;
    background:
        radial-gradient(34rem 25rem at 12% 18%, rgba(132, 195, 184, 0.42), transparent 72%),
        radial-gradient(30rem 22rem at 78% 20%, rgba(236, 180, 162, 0.38), transparent 74%),
        radial-gradient(36rem 25rem at 86% 84%, rgba(255, 223, 172, 0.34), transparent 73%),
        radial-gradient(30rem 22rem at 28% 86%, rgba(165, 205, 232, 0.3), transparent 75%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(247, 252, 250, 0.82));
    border: .1rem solid rgba(18, 194, 185, 0.2);
    box-shadow: 0 2rem 5rem rgba(20, 20, 20, 0.12);
    display: grid;
    grid-template-columns: minmax(18rem, 22rem) minmax(28rem, 1fr) minmax(30rem, 35%);
    align-items: start;
    gap: 2.4rem;
    padding: 3.2rem;
}

.home-top-card__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6rem;
    justify-self: center;
    align-self: center;
    transform: translateY(12rem);
}

.home-top-card__actions .btn {
    text-align: center;
}

.home-top-card__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    padding-block: 3.5rem;
    color: #123735;
    min-height: 100%;
}

.home-top-card__copy h1 {
    font-family: 'Forum', cursive;
    font-size: clamp(2.8rem, 3.6vw, 4.8rem);
    line-height: 1.08;
    text-align: center;
    color: #123735;
    text-transform: none;
}

.home-top-card__copy p {
    font-size: clamp(1.7rem, 1.6vw, 2rem);
    line-height: 1.85;
    text-align: left;
    color: #365654;
    text-transform: none;
    max-width: 60ch;
    margin-top: auto;
}

.home-top-card__media {
    position: relative;
    width: 100%;
    max-width: 100%;
    justify-self: center;
    align-self: center;
    border-radius: 2rem;
    overflow: hidden;
    min-height: 32rem;
    box-shadow: 0 1.6rem 3.8rem rgba(18, 194, 185, 0.2);
}

.home-top-card__carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 32rem;
}

.home-top-card__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
}

.home-top-card__slide.is-active {
    opacity: 1;
}

.home-top-card__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.45);
    border: .1rem solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    font-size: 2.8rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .25s ease, transform .25s ease;
}

.home-top-card__nav:hover,
.home-top-card__nav:focus-visible {
    background: rgba(18, 194, 185, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.home-top-card__nav--prev {
    left: 1.8rem;
}

.home-top-card__nav--next {
    right: 1.8rem;
}

.home-top-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* home top card ends */

/* turma page starts */

.turma-page {
    background: linear-gradient(180deg, #f5fbfa 0%, #ffffff 42%, #f8f3ed 100%);
}

.page-hero {
    min-height: 62rem;
    padding: 15rem 7% 8rem;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(13, 45, 46, 0.82) 0%, rgba(13, 45, 46, 0.62) 38%, rgba(13, 45, 46, 0.18) 100%);
}

.page-hero--bercario {
    background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)), url(src/images/turmas/bercario/bercario_01.jpg) center/cover no-repeat;
}

.page-hero--educacao-infantil {
    background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)), url(src/images/turmas/educacao_infantil/educacao_infantil_01.jpg) center/cover no-repeat;
}

.page-hero--ensino-fundamental {
    background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)), url(src/images/turmas/ensino_fundamental/ensino_fundamental_01.jpg) center/cover no-repeat;
}

.page-hero--turmas {
    background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)), url(src/images/turmas/educacao_infantil/educacao_infantil_02.jpg) center/cover no-repeat;
}

.page-hero__content {
    position: relative;
    z-index: 1;
    max-width: 64rem;
    color: var(--white);
}

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: .9rem 1.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: .1rem solid rgba(255, 255, 255, 0.25);
    font-size: 1.4rem;
    letter-spacing: .18rem;
    text-transform: uppercase;
}

.page-hero__content h1 {
    margin-top: 2rem;
    font-family: 'Forum', cursive;
    font-size: clamp(4.8rem, 9vw, 8rem);
    line-height: .96;
    text-transform: none;
}

.page-hero__content p {
    margin-top: 1.8rem;
    font-size: 1.9rem;
    line-height: 1.7;
    text-transform: none;
}

.turma-card-section {
    position: relative;
    margin-top: -6rem;
    padding-top: 0;
}

.turma-card {
    max-width: 112rem;
    margin: 0 auto;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.94);
    border: .1rem solid rgba(18, 194, 185, 0.16);
    border-radius: 3.2rem;
    box-shadow: 0 2rem 5rem rgba(20, 20, 20, 0.12);
    backdrop-filter: blur(8px);
}

.turma-card__content {
    width: 100%;
}

.turma-card__label {
    display: inline-block;
    margin-bottom: 1.2rem;
    color: #8d5d34;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .16rem;
    text-transform: uppercase;
}

.turma-card__content h2 {
    font-family: 'Forum', cursive;
    font-size: clamp(3.8rem, 6vw, 5.6rem);
    color: #123735;
    text-transform: none;
}

.turma-card__content p {
    margin-top: 1.6rem;
    font-size: 1.85rem;
    line-height: 1.9;
    color: #365654;
    text-transform: none;
    text-align: justify;
}

.turma-gallery-carousel {
    margin-top: 3.2rem;
    position: relative;
    max-width: 90rem;
    margin-inline: auto;
    padding: 0 8rem 5.6rem;
}

.turma-gallery__stage {
    position: relative;
    min-height: 22rem;
}

.turma-gallery {
    position: relative;
    height: 22rem;
}

.turma-gallery__item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(18rem, 24vw);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 2rem;
    cursor: pointer;
    background: #dff4f2;
    border: .2rem solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1rem 2.4rem rgba(18, 194, 185, 0.14);
    transform: translate(-50%, -50%) scale(.72);
    opacity: .38;
    z-index: 1;
    transition: transform .7s ease, opacity .7s ease, box-shadow .4s ease;
}

.turma-gallery__item::after {
    content: "Ampliar";
    position: absolute;
    inset: auto 1.2rem 1.2rem auto;
    padding: .7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #123735;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .04rem;
    opacity: 0;
    transform: translateY(.6rem);
    transition: opacity .35s ease, transform .35s ease;
}

.turma-gallery__item.is-active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 3;
    box-shadow: 0 1.8rem 3.6rem rgba(18, 194, 185, 0.28);
}

.turma-gallery__item.is-prev {
    transform: translate(calc(-50% - 18rem), -50%) scale(.8) rotate(-4deg);
    opacity: .88;
    z-index: 2;
}

.turma-gallery__item.is-next {
    transform: translate(calc(-50% + 18rem), -50%) scale(.8) rotate(4deg);
    opacity: .88;
    z-index: 2;
}

.turma-gallery__item.is-hidden {
    transform: translate(-50%, -50%) scale(.62);
    opacity: 0;
    pointer-events: none;
}

.turma-gallery__item:hover,
.turma-gallery__item:focus-visible {
    box-shadow: 0 1.6rem 3rem rgba(18, 194, 185, 0.24);
}

.turma-gallery__item:hover::after,
.turma-gallery__item:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.turma-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.turma-gallery__nav {
    position: absolute;
    top: 8.8rem;
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    background: #ffffff;
    color: #123735;
    font-size: 2.8rem;
    line-height: 1;
    box-shadow: 0 1rem 2rem rgba(18, 194, 185, 0.18);
    cursor: pointer;
    z-index: 4;
}

.turma-gallery__nav:hover,
.turma-gallery__nav:focus-visible {
    background: var(--primary-color);
    color: var(--white);
}

.turma-gallery__nav--prev {
    left: 0;
}

.turma-gallery__nav--next {
    right: 0;
}

.turma-gallery__dots {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.turma-gallery__dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(18, 194, 185, 0.24);
    cursor: pointer;
}

.turma-gallery__dot.is-active {
    background: var(--primary-color);
    transform: scale(1.15);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.4rem;
    opacity: 0;
    pointer-events: none;
}

.gallery-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 21, 22, 0.82);
    backdrop-filter: blur(6px);
}

.gallery-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(96vw, 104rem);
    max-height: 90vh;
    padding: 2.4rem 7rem 2rem;
    border-radius: 2.4rem;
    background: rgba(255, 255, 255, 0.14);
    border: .1rem solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2.4rem 6rem rgba(0, 0, 0, 0.3);
}

.gallery-lightbox__figure {
    margin: 0;
}

.gallery-lightbox__image {
    width: 100%;
    max-height: calc(90vh - 13rem);
    object-fit: contain;
    border-radius: 1.8rem;
    display: block;
    background: rgba(255, 255, 255, 0.16);
}

.gallery-lightbox__caption {
    margin-top: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1.5;
    text-transform: none;
}

.gallery-lightbox__counter {
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

.gallery-lightbox__close {
    position: absolute;
    top: -1.4rem;
    right: -1.2rem;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    background: var(--white);
    color: #123735;
    font-size: 3rem;
    line-height: 1;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.turmas-overview {
    max-width: 124rem;
    margin: 0 auto;
}

.turmas-overview__header {
    max-width: 80rem;
    margin-bottom: 3.6rem;
}

.turmas-overview__header h2 {
    font-family: 'Forum', cursive;
    font-size: clamp(3.8rem, 6vw, 5.4rem);
    color: #123735;
    text-transform: none;
}

.turmas-overview__header p {
    margin-top: 1.6rem;
    font-size: 1.8rem;
    line-height: 1.8;
    color: #365654;
    text-transform: none;
}

.turmas-overview__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

.turmas-overview__card {
    overflow: hidden;
    border-radius: 2.8rem;
    background: rgba(255, 255, 255, 0.94);
    border: .1rem solid rgba(18, 194, 185, 0.16);
    box-shadow: 0 2rem 5rem rgba(20, 20, 20, 0.1);
}

.turmas-overview__image {
    display: block;
    width: 100%;
    height: 24rem;
    object-fit: cover;
}

.turmas-overview__body {
    padding: 2.6rem;
}

.turmas-overview__age {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .7rem 1.1rem;
    border-radius: 999px;
    background: rgba(18, 194, 185, 0.12);
    color: #0f6b66;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .08rem;
}

.turmas-overview__body h3 {
    font-size: 2.7rem;
    color: #123735;
    text-transform: none;
}

.turmas-overview__body p {
    min-height: 10.5rem;
    margin-top: 1.2rem;
    font-size: 1.65rem;
    line-height: 1.75;
    color: #365654;
    text-transform: none;
}

.gallery-lightbox__nav {
    position: absolute;
    top: calc(50% - 3.2rem);
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #123735;
    font-size: 2.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-lightbox__nav--prev {
    left: 1.4rem;
}

.gallery-lightbox__nav--next {
    right: 1.4rem;
}

.gallery-lightbox__thumbs {
    margin-top: 1.8rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.gallery-lightbox__thumb {
    width: 7.2rem;
    aspect-ratio: 1 / 1;
    border-radius: 1.2rem;
    overflow: hidden;
    opacity: .62;
    border: .2rem solid transparent;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.gallery-lightbox__thumb.is-active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.95);
}

.gallery-lightbox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* turma page ends */

/* home */

.home {
    min-height: 120vh;
    display: flex;
    align-items: center;
    background: url(src/images/backgrounds/background.svg) no-repeat;
    /* --Background Padrao */
    /* background: url(src/kid_books2.svg) no-repeat; */
    background-size: cover;
    background-position: center top;
}

.home .content {
    max-width: 67rem;
    margin-top: -10rem;
}

.home .content h3 {
    font-size: 4.5rem;
    color: var(--white);
    line-height: 1.5;
}

.home .content h1 {
    font-size: 4rem;
    color: var(--white);
    line-height: 1.5;
    font-weight: 700;
    text-transform: none;
    margin-bottom: 6rem;
    text-align: center;
}


.home .content p {
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--white);
    padding: 1rem 0;
    text-transform: none;
}

/* Tooltip */
.home .tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
  animation: fadeSlide 5s ease-in-out; /* aparece sozinho ao carregar */
}

.home .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 20px;
  border-width: 8px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Mostrar tooltip ao passar o mouse */
.home .whatsapp-float:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(-5px); /* sobe levemente */
}

/* Animação inicial */
@keyframes fadeSlide {
  0% { opacity: 0; transform: translateY(0); visibility: visible; }
  10% { opacity: 1; transform: translateY(-5px); visibility: visible; }
  80% { opacity: 1; transform: translateY(-5px); visibility: visible; }
  100% { opacity: 0; transform: translateY(0); visibility: hidden; }
}


/* home ends*/


/* about start */

.about .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    padding: 0 5%;
}

.about .container .about-image {
    /* position: relative; */
    flex: 1 1 40rem;
    max-width: 70rem;
}

.about .container .about-image img {
    width: 40rem;
    height: auto;
}

.about .container .about-image .img1 {
    width: 80%;
}

.about .container .about-image .about-img {
    position: absolute;
    bottom: -10rem;
    right: -1rem;
    width: 40rem;
    padding-block: 5rem;
}
.about .container .about-content {
    flex: 1 1 40rem;
    /* padding-left: 6rem;
    padding-top: 8rem; */
    max-width: 70rem;
    padding: 2rem;
    margin: 5rem;
}

.about .container .about-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about .container .about-content p {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-transform: none;
}

.about .container .about-content ul {
    margin-bottom: 1rem;
    padding-left: 2.4rem;
}

.about .container .about-content li {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 0.6rem;
    text-transform: none;
}

.about .container .about-content li::marker {
    color: var(--primary-color);
}

/* about ends */


/* subjects */

.subjects .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
    padding: 4rem;
}

.subjects .box-container .box {
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 10px;
    max-width: 35rem;
    margin: 0 auto;
}

.subjects .box-container .box:hover {
    background: rgb(161, 179, 182, 0.8);
    cursor: pointer;
}

.subjects .box-container .box img {
    height: 10rem;
    margin-bottom: .7rem;
}

.subjects .box-container .box h3 {
    font-size: 1.7rem;
    color: #444;
    padding: .5rem 0;
    text-transform: capitalize;
}

.subjects .box-container .box:hover h3 {
    color: #fff;
}

.subjects .box-container .box p {
    font-size: 1.5rem;
    line-height: 2;
    color: #777;
    height: auto;
    max-width: 80%;
    margin: 0 auto;
    text-transform: none;
    height: 250px;
}

.subjects .box-container .box:hover p {
    color: #fff;;
}



/* subjects ends */

/* blog starts */

.blog {
    background: rgba(196, 196, 196, 0.4);
}

.blog .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
}

.blog .box-container .box {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding-top: 100%;
}

.blog .box-container .box .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.blog .box-container .box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog .box-container .box:hover .image img {
    transform: scale(1.1);
}

.blog .box-container .box .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;  
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0), transparent);
    color: #fff;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.blog .box-container .box .content h3 {
    font-size: 3rem;
    margin-bottom: 0;
    padding: 1rem;
}

.blog .box-container .box .content p {
    font-size: 1.4rem;
}


/* blog ends */

/* contatos starts */

.contact {
    background-color: rgba(196, 196, 196, 0.4);
    padding: 5rem 0;
}

.contact-map {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    position: relative;
    padding-top: 2.4rem;
}

.contact-map__badge {
    position: absolute;
    top: -15px;
    left: 0;
    z-index: 2;
    width: clamp(34rem, 58vw, 78rem);
    min-height: 5.4rem;
    padding: 1.4rem 2.2rem;
    background: linear-gradient(120deg, rgba(154, 49, 45, 0.9), rgba(125, 37, 34, 0.86));
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    border-radius: 0 2.8rem 0 0;
    border: .1rem solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
}

.contact-map__frame {
    border-radius: 0;
    overflow: hidden;
    height: clamp(48rem, 72vh, 80rem);
}

.contact-map__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 900px) {
    .contact-map {
        padding-top: 2rem;
    }

    .contact-map__badge {
        width: min(88vw, 52rem);
        min-height: 5rem;
        padding: 1.2rem 1.6rem;
        font-size: 1.7rem;
        border-radius: 0 2.2rem 0 0;
    }

    .contact-map__frame {
        height: 56vh;
    }
}


/* contatos ends */

/* footer starts */
.footer {
    color: var(--black);
    padding: 4rem 7%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-logo {
    width: 100px;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 1.4rem;
    line-height: 1.6;
}

.footer-principles {
    list-style-type: none;
    padding-left: 1rem;
}

.footer h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #873030;
}

.footer ul {
    list-style-type: none;
    padding: 0;
}

.footer ul li, .footer p {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.footer a {
    color: #707070;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: #505050;
}

.footer i {
    margin-right: 0.5rem;
}


@media (max-width: 768px) {
    .footer-column {
        flex-basis: 100%;
    }
}

/* footer ends */

/* modals starts */

.modal {
    position: fixed;
    z-index: 1001; /* Increase z-index to be above the header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: flex-start; /* Align to the top */
    justify-content: center;
    padding-top: 60px; /* Add padding to account for header height */
}

.modal-content {
    background-color: #fefefe;
    margin: 0 auto; /* Center horizontally */
    padding: 2rem;
    border: 0.1rem solid #888;
    width: 90%;
    max-width: 120rem;
    max-height: calc(100vh - 80px); /* Subtract header height and some extra space */
    border-radius: 2rem;
    position: relative;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#modalContent {
    font-size: 1.6rem;
    line-height: 1.5;
    overflow-y: auto;
    padding-right: 2rem;
    flex-grow: 1;
}


.modal-content p {
    text-transform: none;
}

.modal-header {
    padding: 10px;
    color: white;
    position: relative;
    margin: -20px -20px 20px -20px;
}

.modal-header.one {
    background-color: #65211E;
}

.modal-header.two {
    background-color: #FEC942;
    color: #B48E2E;
}

.modal-header.three {
    background-color: #798D32;
    color: #B2D149;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    background: transparent;
    border: 0;
}

.close:hover,
.close:focus,
.close:focus-visible {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modalTitle {
    font-family: 'Forum', serif;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.modal-highlight {
    color: inherit;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin: 2rem 0;
    text-align: center;
}

.modal-subtitle {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
}

.modal-content.two .modal-highlight {
    color: #B48E2E;
}

#materialsModal .modal-content {
    width: 90%;
    max-width: 800px;
}

#gradeButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.grade-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.grade-btn:hover {
    background-color: var(--secondary);
    color: var(--primary-color);
}

#materialsList h3 {
    margin-top: 20px;
    color: var(--primary-color);
}

#materialsList ul {
    list-style-type: none;
    padding-left: 20px;
}



@media screen and (max-width: 768px) {
    .modal {
        padding-top: 50px; /* Adjust padding for smaller screens */
    }

    .modal-content {
        width: 95%;
        max-height: calc(100vh - 70px); /* Adjust for smaller header on mobile */
    }

    #modalTitle {
        font-size: 2rem;
    }

    #modalContent {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .modal-highlight {
        font-size: 1.8rem;
    }

    .modal-subtitle {
        font-size: 1.6rem;
    }

    .close {
        font-size: 2.5rem;
        top: 5px;
        right: 10px;
    }
}



@keyframes modalFadeIn {
    from {opacity: 0; transform: scale(0.8);}
    to {opacity: 1; transform: scale(1);}
}

@keyframes modalFadeOut {
    from {opacity: 1; transform: scale(1);}
    to {opacity: 0; transform: scale(0.8);}
}



/* modals ends */







@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    .home-top-card {
        min-height: auto;
        padding: 10rem 4% 3.6rem;
    }

    .home-top-card__layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .home-top-card__copy {
        order: 1;
        text-align: center;
    }

    .home-top-card__actions {
        order: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1.6rem;
        transform: none;
    }

    .home-top-card__media {
        order: 2;
        min-height: 26rem;
    }

    .home-top-card__actions .btn {
        margin-top: 0;
    }

    .home {
        min-height: auto;
        display: block;
        padding-top: 7rem;
        padding-bottom: 11rem;
        background-image:
            linear-gradient(
                to bottom,
                rgba(15, 145, 136, 0.9) 0%,
                rgba(14, 160, 150, 0.86) 42%,
                rgba(16, 170, 161, 0.34) 66%,
                rgba(18, 194, 185, 0) 78%
            ),
            url(src/images/backgrounds/background.svg);
        background-repeat: no-repeat, no-repeat;
        background-size: 100% 100%, 108% auto;
        background-position: center top, center bottom;
    }

    .home .content {
        max-width: 100%;
        text-align: left;
        margin-top: 0;
    }

    .home .content h3 {
        font-size: clamp(2.3rem, 6.4vw, 2.8rem);
        line-height: 1.35;
        text-align: center;
    }

    .home .content p {
        font-size: 1.52rem;
        line-height: 1.65;
        text-align: center;
    }

    .home .content .btn {
        margin-top: 1.4rem;
        margin-left: 0.8rem;
        margin-right: 0;
    }

    .subjects .box-container {
        padding: 1.2rem;
    }

    .subjects .box-container .box p {
        height: auto;
        max-width: 100%;
    }

    .about .container .about-image,
    .about .container .about-content {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .header {
        padding: 2rem;
    }

    .header .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        background: var(--white);
        width: 30rem;
        height: calc(100vh - 9.5rem);
    }

    .header .navbar.active {
        right: 0;
    }

    .header .navbar a,
    .header .navbar button.hover-underline {
        display: block;
        margin: 1.5rem;
        padding: .5rem;
        font-size: 2rem;
    }

    #menu-btn {
        display: inline-block;
    }

    .home .content h3 {
        font-size: 3rem;
    }

    .home .content p {
        font-size: 1.5rem;
    }

    .home-top-card__nav {
        width: 3.8rem;
        height: 3.8rem;
        font-size: 2.2rem;
    }

    .home-top-card__nav--prev {
        left: 1rem;
    }

    .home-top-card__nav--next {
        right: 1rem;
    }

    .about .container {
        flex-direction: column;
    }

    .about .second-container {
        display: flex;
        flex-direction: column;
    }

    .about .container .second-content {
        order: 2;
    }

    .about .container .second-image {
        order: 1;
    }
}

/* Mobile: permitir que submenus sejam exibidos por clique/toggle */
@media (max-width: 992px) {
    .home-top-card {
        min-height: auto;
        padding: 11rem 5% 4.5rem;
    }

    .home-top-card__layout {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .home-top-card__copy {
        grid-column: auto;
        order: 1;
    }

    .home-top-card__media {
        order: 2;
        min-height: 30rem;
    }

    .home-top-card__actions {
        order: 3;
        justify-self: center;
        align-self: center;
        transform: none;
    }

    .page-hero {
        min-height: 54rem;
        padding-top: 13rem;
    }

    .turma-card {
        padding: 3rem;
        border-radius: 2.4rem;
    }

    .turma-gallery-carousel {
        padding-inline: 5.6rem;
    }

    .turmas-overview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .turma-gallery__item {
        width: min(16rem, 28vw);
    }

    .turma-gallery__item.is-prev {
        transform: translate(calc(-50% - 13rem), -50%) scale(.78) rotate(-4deg);
    }

    .turma-gallery__item.is-next {
        transform: translate(calc(-50% + 13rem), -50%) scale(.78) rotate(4deg);
    }

    .header .navbar .nav-item {
        display: block;
    }

    .header .navbar .nav-item .dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        min-width: auto;
        display: none; /* escondido ate o toggle */
        padding-left: 1.5rem;
    }

    .header .navbar .nav-item.open > .dropdown-menu {
        display: block;
    }

    /* Niveis aninhados tambem abrem quando a classe .open for adicionada */
    .header .navbar .dropdown-menu .nav-item .dropdown-menu {
        padding-left: 2.5rem;
    }

    /* Ajuste visual dos links do menu movel */
    .header .navbar .dropdown-menu a {
        color: var(--black);
        padding: .8rem 1rem;
        background: transparent;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .turma-card {
        padding: 2.4rem;
    }

    .gallery-lightbox__dialog {
        padding: 1rem;
        border-radius: 1.6rem;
    }

    .gallery-lightbox__close {
        top: -.8rem;
        right: -.6rem;
    }
}

@media screen and (max-width: 600px) {
    .page-hero {
        min-height: 46rem;
        padding: 12rem 6% 5rem;
    }

    .page-hero__content p {
        font-size: 1.7rem;
    }

    .turma-card-section {
        margin-top: -4rem;
    }

    .turmas-overview__grid {
        grid-template-columns: 1fr;
    }

    .turmas-overview__body p {
        min-height: 0;
    }

    .turma-gallery-carousel {
        padding: 0 0 4.8rem;
    }

    .turma-gallery__stage {
        min-height: 18rem;
    }

    .turma-gallery {
        height: 18rem;
    }

    .turma-gallery__item {
        width: min(13rem, 34vw);
    }

    .turma-gallery__item.is-prev {
        transform: translate(calc(-50% - 8.6rem), -50%) scale(.76) rotate(-4deg);
    }

    .turma-gallery__item.is-next {
        transform: translate(calc(-50% + 8.6rem), -50%) scale(.76) rotate(4deg);
    }

    .turma-gallery__nav {
        top: 7rem;
        width: 4.2rem;
        height: 4.2rem;
    }

    .gallery-lightbox {
        padding: 1.2rem;
    }

    .gallery-lightbox__dialog {
        padding: 5.6rem 1.2rem 1.6rem;
    }

    .gallery-lightbox__nav {
        top: 1.2rem;
        width: 4.2rem;
        height: 4.2rem;
    }

    .gallery-lightbox__nav--prev {
        left: 1.2rem;
    }

    .gallery-lightbox__nav--next {
        right: 1.2rem;
    }

    .gallery-lightbox__caption {
        flex-direction: column;
        align-items: flex-start;
        gap: .6rem;
    }

    .modal-content {
        width: 90%;
    }

    .close {
        font-size: 28px;
    }

    #modalTitle {
        font-size: 20px;
    }

    #modalContent {
        font-size: 14px;
    }

    .contact-map__badge {
        width: min(92vw, 50rem);
        font-size: 1.55rem;
        box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.16);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
    }
}

/* BTN Watss */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float .tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
}

.whatsapp-float .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 20px;
  border-width: 8px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.whatsapp-float:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(-5px);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}
