.family-hero { position: relative; height: clamp(17rem, 27vw, 21rem); overflow: hidden; color: #fff; background: #23351b; }
.family-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.family-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 15 23 / 80%) 0%, rgb(0 19 27 / 58%) 35%, rgb(0 12 19 / 8%) 68%); }
.family-hero__content { position: relative; display: flex; height: 100%; flex-direction: column; justify-content: space-between; padding-block: clamp(2.8rem, 5vw, 4rem) 1.25rem; }
.family-hero__title h1 { position: relative; width: max-content; max-width: 100%; margin: 0 0 2.35rem; font-size: clamp(2.75rem, 5.6vw, 4.25rem); line-height: 1; letter-spacing: -.035em; }
.family-hero__title h1::after { position: absolute; bottom: -1rem; left: 0; width: 8.5rem; height: .35rem; border-radius: 100%; content: ''; background: var(--green); transform: rotate(-2deg); }
.family-hero__title p { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.15rem, 2.3vw, 1.65rem); font-style: italic; line-height: 1.45; text-shadow: 0 .1rem .3rem rgb(0 0 0 / 28%); }
.family-breadcrumb { display: flex; align-items: center; gap: .55rem; font-size: .76rem; font-weight: 700; }
.family-breadcrumb a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none; }
.family-breadcrumb .icon { width: .9rem; }

.family-content { padding-block: 2rem 1.6rem; }
.family-introduction { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; min-height: 5.6rem; padding: 1rem 1.2rem; border: 1px solid #e5eae4; border-radius: .65rem; background: linear-gradient(100deg, #f7faf5, #fff 72%, #f5f9f1); box-shadow: 0 .18rem .75rem rgb(0 29 62 / 5%); }
.family-introduction__message { display: flex; align-items: center; gap: 1.25rem; }
.family-introduction__icon { width: 3rem; height: 3rem; flex: 0 0 auto; color: var(--green); }
.family-introduction h2 { margin: 0 0 .25rem; color: var(--navy); font-size: 1.05rem; }
.family-introduction p { max-width: 43rem; margin: 0; font-size: .91rem; line-height: 1.65; }
.family-introduction .family-introduction__deadline { margin-top: .3rem; color: #315228; font-size: .83rem; font-weight: 700; }
.family-portal-button { display: inline-flex; min-height: 3.15rem; align-items: center; justify-content: center; gap: .75rem; padding: .65rem 1.35rem; border-radius: .45rem; color: #fff; background: linear-gradient(100deg, #308f0d, #1d7606); font-size: .83rem; font-weight: 800; text-decoration: none; text-transform: uppercase; box-shadow: 0 .25rem .7rem rgb(35 122 9 / 17%); }
.family-portal-button .icon { width: 1.75rem; height: 1.75rem; }
.family-portal-button.is-disabled { opacity: .7; }

.family-accesses { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1rem; margin-top: 1rem; }
.family-access-card { position: relative; display: flex; min-width: 0; min-height: 16.2rem; align-items: center; flex-direction: column; padding: 1rem .9rem .95rem; border: 1px solid #e0e6eb; border-radius: .65rem; background: #fff; box-shadow: 0 .18rem .75rem rgb(0 29 62 / 5%); text-align: center; }
.family-access-card__icon { width: 5.8rem; height: 5.8rem; flex: 0 0 auto; object-fit: contain; }
.family-access-card h2 { margin: .7rem 0 .55rem; font-size: 1.03rem; line-height: 1.18; }
.family-access-card p { margin: 0; color: #263a55; font-size: .75rem; line-height: 1.55; }
.family-access-card > a, .family-access-card__cta { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .8rem; color: var(--green); font-size: .69rem; font-weight: 800; text-decoration: none; }
.family-access-card > a::after { position: absolute; inset: 0; border-radius: inherit; content: ""; }
.family-access-card .icon { width: .9rem; }

.family-content .content-accordion__document { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .9rem; align-items: start; margin: .95rem 0 1.1rem; padding-top: 1.05rem; border-top: 1px solid #e4e9ed; }
.family-content .content-accordion__document-icon { width: 2.1rem; height: 2.1rem; color: var(--navy); }
.family-content .content-accordion__document-details { min-width: 0; }
.family-content .content-accordion__document h3 { margin: 0 0 .35rem; color: var(--navy); font-size: 1rem; line-height: 1.35; }
.family-content .content-accordion__document p { max-width: 65ch; margin: 0 0 .55rem; color: #33475f; font-size: .8rem; line-height: 1.65; }
.family-content .content-accordion__document a { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .5rem; color: var(--green); font-size: .8rem; font-weight: 800; line-height: 1.4; text-decoration: none; text-underline-offset: .2rem; }
.family-content .content-accordion__document a:hover { text-decoration: underline; }
.family-content .content-accordion__document a:focus-visible { border-radius: .2rem; outline: 3px solid var(--blue); outline-offset: 3px; }
.family-content .content-accordion__document-download { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.family-content .content-accordion__canteen-image { display: block; width: min(100%, 25rem); padding: .35rem; border: 1px solid #dce5eb; border-radius: .5rem; background: #fff; cursor: zoom-in; }
.family-content .content-accordion__canteen-image img { display: block; width: 100%; height: auto; max-height: 18rem; object-fit: contain; }
.family-content .content-accordion__canteen-image:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.family-information-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(18rem, .98fr); gap: 1rem; margin-top: 1rem; }
.family-news, .family-quick-links, .family-contact { min-width: 0; border: 1px solid #e2e7ec; border-radius: .65rem; background: #fff; box-shadow: 0 .18rem .8rem rgb(0 29 62 / 5%); }
.family-news { padding: .95rem 1.35rem 1rem; }
.family-panel-heading { display: flex; min-height: 2.15rem; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e4e8ec; }
.family-panel-heading h2 { position: relative; margin: 0; padding-bottom: .55rem; font-size: 1.25rem; }
.family-panel-heading h2::after { position: absolute; bottom: -.08rem; left: 0; width: 1.8rem; height: .15rem; content: ''; background: var(--green); }
.family-panel-heading > a { display: inline-flex; align-items: center; gap: .55rem; padding-top: .2rem; color: var(--green); font-size: .7rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.family-panel-heading > a .icon { width: .95rem; }
.family-news-list { display: grid; }
.family-news-item { position: relative; display: grid; grid-template-columns: 6.9rem minmax(0, 1fr) 1rem; gap: 1rem; align-items: center; min-height: 6.35rem; padding: .65rem 0; border-bottom: 1px solid #e4e8ec; }
.family-news-item:last-child { border-bottom: 0; }
.family-news-item > img { width: 6.9rem; height: 4.9rem; border-radius: .55rem; object-fit: cover; }
.family-news-item h3 { margin: 0 0 .18rem; font-size: .79rem; line-height: 1.25; }
.family-news-item p { margin: 0 0 .35rem; color: #263a55; font-size: .7rem; line-height: 1.4; }
.family-news-item time { display: inline-flex; align-items: center; gap: .35rem; color: #30425a; font-size: .65rem; }
.family-news-item time .icon { width: .85rem; color: #365c95; }
.family-news-item__arrow, .family-news-item__link { color: var(--green); font-size: 1.35rem; text-decoration: none; }
.family-news-item__link { display: grid; min-height: 2.75rem; place-items: center; }

.family-side-column { display: grid; grid-template-rows: auto 1fr; gap: 1rem; }
.family-quick-links { padding: .95rem 1rem .55rem; background: linear-gradient(120deg, #f5f9ff, #fff); }
.family-panel-heading--simple { justify-content: flex-start; }
.family-quick-links__list { display: grid; padding-top: .3rem; }
.family-quick-link { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 1rem; gap: .65rem; align-items: center; min-height: 3.55rem; padding: .55rem .45rem; border-bottom: 1px solid #e0e5ea; color: var(--navy); text-decoration: none; }
.family-quick-link:last-child { border-bottom: 0; }
.family-quick-link__icon { width: 1.5rem; height: 1.5rem; color: #31599a; }
.family-quick-link > span:nth-child(2) { display: grid; gap: .08rem; }
.family-quick-link strong { font-size: .75rem; }
.family-quick-link small { color: #27405f; font-size: .66rem; }
.family-quick-link__arrow { color: var(--green); font-size: 1.3rem; }
.family-quick-link--disabled { opacity: .72; }

.family-contact { display: grid; grid-template-columns: 3.7rem 1fr; gap: 1rem; align-items: start; padding: 1rem 1.2rem; border-color: #dbe7d5; background: linear-gradient(110deg, #f7faef, #fff); }
.family-contact__icon { width: 3.6rem; height: 3.6rem; color: var(--green); }
.family-contact h2 { margin: .1rem 0 .25rem; color: #388311; font-size: 1rem; }
.family-contact p { margin: 0 0 .45rem; color: #263a55; font-size: .7rem; line-height: 1.45; }
.family-contact div > a:not(.family-contact__button) { display: flex; align-items: center; gap: .55rem; width: max-content; max-width: 100%; margin-top: .22rem; color: var(--green); font-size: .7rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.family-contact div > a .icon { width: .95rem; }
.family-contact__button { display: flex; min-height: 2.2rem; align-items: center; justify-content: center; margin-top: .55rem; padding: .4rem .9rem; border-radius: .3rem; color: #fff; background: var(--green); font-size: .68rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }

@media (max-width: 56rem) {
    .family-accesses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .family-access-card { min-height: 15rem; }
    .family-access-card:nth-last-child(-n+2) { min-height: 14rem; }
}

@media (max-width: 62rem) {
    .family-introduction { grid-template-columns: 1fr; }
    .family-portal-button { width: min(100%, 24rem); }
    .family-information-grid { grid-template-columns: 1fr; }
    .family-side-column { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}

@media (max-width: 52rem) {
    .family-hero__image { object-position: center 54%; }
    .family-accesses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .family-access-card:last-child { grid-column: 1 / -1; }
    .family-side-column { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
    .family-hero { height: 19rem; }
    .family-hero__image { object-position: center 54%; }
    .family-hero__overlay { background: linear-gradient(90deg, rgb(0 15 23 / 90%), rgb(0 19 27 / 64%) 68%, rgb(0 12 19 / 25%)); }
    .family-hero__content { padding-block: 2.25rem 1rem; }
    .family-hero__title h1 { margin-bottom: 2rem; font-size: clamp(2.25rem, 11vw, 3rem); }
    .family-hero__title h1::after { bottom: -.8rem; width: 7rem; }
    .family-hero__title p { font-size: 1.08rem; }
    .family-breadcrumb { font-size: .7rem; }
    .family-content { padding-block: 1rem; }
    .family-introduction { gap: .9rem; padding: 1rem; }
    .family-introduction__message { align-items: flex-start; gap: .8rem; }
    .family-introduction__icon { width: 2.4rem; height: 2.4rem; }
    .family-introduction p { font-size: .8rem; }
    .family-portal-button { font-size: .72rem; }
    .family-accesses { grid-template-columns: 1fr; }
    .family-access-card:last-child { grid-column: auto; }
    .family-access-card { min-height: 13.8rem; }
    .family-news { padding-inline: .8rem; }
    .family-panel-heading { align-items: flex-start; flex-direction: column; padding-bottom: .45rem; }
    .family-panel-heading > a { align-self: flex-end; }
    .family-news-item { grid-template-columns: 5.5rem minmax(0, 1fr) .65rem; gap: .7rem; }
    .family-news-item > img { width: 5.5rem; height: 4.25rem; }
    .family-contact { grid-template-columns: 2.8rem 1fr; gap: .75rem; padding-inline: .9rem; }
    .family-contact__icon { width: 2.75rem; height: 2.75rem; }
}

@media (max-width: 23rem) {
    .family-hero__title h1 { font-size: 2.1rem; }
    .family-hero__title p { font-size: 1rem; }
    .family-news-item { grid-template-columns: 4.5rem minmax(0, 1fr); }
    .family-news-item > img { width: 4.5rem; height: 4rem; }
    .family-news-item__arrow, .family-news-item__link { display: none; }
}
