/* The no-JS fallback fits the whole background image rather than cropping it. */
html.alfa3-modern #hero .carousel-item{background-size:contain;background-repeat:no-repeat;background-position:center;background-color:var(--a3-bg)}
html.alfa3-modern #hero.alfa3-full-slider{height:auto;min-height:0;padding:0;background:var(--a3-surface)}
html.alfa3-modern #hero.alfa3-full-slider .carousel,html.alfa3-modern #hero.alfa3-full-slider .carousel-inner{height:auto;min-height:0}
html.alfa3-modern #hero.alfa3-full-slider .carousel-item.alfa3-image-ready{position:relative;inset:auto;height:auto;min-height:0;background-image:none!important;background-color:var(--a3-bg)}
html.alfa3-modern #hero.alfa3-full-slider .alfa3-image-ready::before{display:none}
html.alfa3-modern #hero .alfa3-slide-image{display:block;width:100%;height:auto;max-height:50vh;object-fit:contain;object-position:center;background:var(--a3-bg)}
html.alfa3-modern #hero.alfa3-full-slider .alfa3-image-ready>.container{position:absolute!important;inset:auto;left:50%;bottom:16px;transform:translateX(-50%);width:88%;max-width:1140px;max-height:calc(100% - 24px);overflow:auto;margin:0;padding:12px 24px;border:1px solid rgba(175,199,220,.45);border-radius:16px;background:rgba(255,255,255,.70)!important;box-shadow:0 10px 32px rgba(8,30,49,.16);backdrop-filter:blur(3px);text-align:center}
html.alfa3-modern #hero.alfa3-full-slider h2{margin:0 0 10px;font-size:clamp(1.2rem,2.5vw,2rem);color:var(--a3-primary);text-shadow:none;overflow-wrap:anywhere}
html.alfa3-modern #hero.alfa3-full-slider p{color:var(--a3-text);text-shadow:none}
html.alfa3-modern #hero.alfa3-full-slider .carousel-control-next,html.alfa3-modern #hero.alfa3-full-slider .carousel-control-prev{width:48px}
html.alfa3-modern #hero.alfa3-full-slider .carousel-control-prev-icon,html.alfa3-modern #hero.alfa3-full-slider .carousel-control-next-icon{background-color:#163b59;border-radius:50%;padding:8px;color:#fff}
html.alfa3-modern #hero.alfa3-full-slider .carousel-indicators{bottom:0;margin-bottom:8px}
html.alfa3-modern .alfa3-college-page #main>.b-example-divider{padding:24px 20px 0;border:0;background:var(--a3-bg)}
html.alfa3-modern .alfa3-college-page .section-title{padding-bottom:16px}
html.alfa3-modern .alfa3-college-page #featured-services .row{row-gap:24px;justify-content:center}
html.alfa3-modern .alfa3-college-page #featured-services .icon-box{padding:28px;border:1px solid var(--a3-border);border-inline-start:4px solid var(--a3-accent);box-shadow:var(--a3-shadow);text-align:center}
html.alfa3-modern .alfa3-college-page #featured-services .icon-box .icon{margin-inline:auto}
html.alfa3-modern .alfa3-college-page #featured-services .title a{font-size:22px;color:var(--a3-primary)}
html.alfa3-modern .alfa3-college-page #chefs .row{row-gap:24px}
html.alfa3-modern .alfa3-college-page #chefs .member{height:100%;border:1px solid var(--a3-border);border-radius:var(--a3-radius);background:var(--a3-surface);overflow:hidden}
html.alfa3-modern .alfa3-college-page #chefs .member-img img{width:100%;height:230px;object-fit:cover}
html.alfa3-modern .alfa3-college-page #chefs .member-info{padding:24px;text-align:start}
html.alfa3-modern .alfa3-college-page #chefs h4 a{font-size:20px;line-height:1.7;color:var(--a3-primary)}
html.alfa3-modern .alfa3-college-page #chefs .member-info span{color:var(--a3-muted)}
html.alfa3-modern .alfa3-college-page [id^="counts"]{border-block:1px solid var(--a3-border)}
html.alfa3-modern .alfa3-college-page #gallery img{border-radius:12px}
@media(max-width:575.98px){html.alfa3-modern #hero.alfa3-full-slider .alfa3-image-ready>.container{width:calc(100% - 36px);bottom:12px;padding:10px 14px}html.alfa3-modern .alfa3-college-page #chefs .member-img img{height:200px}}

html.alfa3-modern #hero .alfa3-slide-fallback{display:flex;align-items:center;justify-content:center;min-height:160px;padding:24px;background:var(--a3-bg);color:var(--a3-text);font-size:18px}
/* Both legacy variants use absolute carousel wrappers; restore normal document flow. */
html.alfa3-modern #hero.alfa3-full-slider .hero-container,html.alfa3-modern #hero.alfa3-full-slider .carousel,html.alfa3-modern #hero.alfa3-full-slider .carousel-inner{position:relative;inset:auto;display:block;width:100%;height:auto;min-height:0}
html.alfa3-modern #hero.alfa3-full-slider .carousel-item.alfa3-image-ready{display:none;float:left;width:100%;margin-left:0;margin-right:-100%}
html.alfa3-modern #hero.alfa3-full-slider .carousel-item.alfa3-image-ready.active,html.alfa3-modern #hero.alfa3-full-slider .carousel-item.alfa3-image-ready.carousel-item-next,html.alfa3-modern #hero.alfa3-full-slider .carousel-item.alfa3-image-ready.carousel-item-prev{display:block}
html.alfa3-modern #hero.alfa3-full-slider .alfa3-image-ready>.carousel-container{position:static;inset:auto;display:block;width:100%;height:auto;min-height:0;padding:0}
html.alfa3-modern #hero.alfa3-full-slider .alfa3-image-ready>.carousel-container>.container{position:static!important;inset:auto;transform:none;width:100%;max-width:none;max-height:none;overflow:visible;margin:0;padding:16px 64px 32px;border:0;border-top:1px solid var(--a3-border);border-radius:0;background:var(--a3-surface)!important;box-shadow:none;backdrop-filter:none;text-align:center}
@media(max-width:575.98px){html.alfa3-modern #hero.alfa3-full-slider .alfa3-image-ready>.carousel-container>.container{padding:14px 44px 32px}}

html.alfa3-modern[dir="rtl"] #hero.alfa3-full-slider .carousel-item.alfa3-image-ready{float:right;margin-right:0;margin-left:-100%}

html.alfa3-modern[data-alfa3-mode="dark"] #hero.alfa3-full-slider .alfa3-image-ready>.container{background:rgba(25,38,56,.76)!important}
@media(prefers-color-scheme:dark){html.alfa3-modern[data-alfa3-mode="auto"] #hero.alfa3-full-slider .alfa3-image-ready>.container{background:rgba(25,38,56,.76)!important}}

/* Compact college and department pages; keep all original content and routes. */
html.alfa3-modern .alfa3-college-page #main>section:not(#hero){padding-block:24px;min-height:0}
html.alfa3-modern .alfa3-college-page #main>.b-example-divider{height:auto;min-height:0;max-width:1200px;margin:0 auto;padding:20px 20px 0;background:var(--a3-bg);box-shadow:none}
html.alfa3-modern .alfa3-college-page #main>.b-example-divider:not(:has(*)),html.alfa3-modern .alfa3-college-page #main>br{display:none}
html.alfa3-modern .alfa3-college-page #main>.b-example-divider h2{margin:0;padding:0 0 10px;font-size:clamp(1.25rem,2vw,1.7rem);border-bottom:1px solid var(--a3-border);text-align:start}
html.alfa3-modern .alfa3-college-page #hero.alfa3-full-slider .alfa3-image-ready>.carousel-container{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:0 6% 16px;pointer-events:none}
html.alfa3-modern .alfa3-college-page #hero.alfa3-full-slider .alfa3-image-ready>.carousel-container>.container{position:relative!important;inset:auto;transform:none;width:100%;max-width:1140px;max-height:none;overflow:visible;margin:0;padding:12px 24px;border:1px solid rgba(175,199,220,.45);border-radius:16px;background:rgba(255,255,255,.70)!important;box-shadow:0 10px 32px rgba(8,30,49,.16);backdrop-filter:blur(3px);pointer-events:auto}
html.alfa3-modern[data-alfa3-mode="dark"] .alfa3-college-page #hero.alfa3-full-slider .alfa3-image-ready>.carousel-container>.container{background:rgba(25,38,56,.76)!important}
@media(prefers-color-scheme:dark){html.alfa3-modern[data-alfa3-mode="auto"] .alfa3-college-page #hero.alfa3-full-slider .alfa3-image-ready>.carousel-container>.container{background:rgba(25,38,56,.76)!important}}
html.alfa3-modern .alfa3-college-page #hero.alfa3-full-slider .container>p{margin:0 0 4px;font-size:16px}
html.alfa3-modern .alfa3-college-page [id^="counts"]{background-image:none!important;background:var(--a3-bg);border:0}
html.alfa3-modern .alfa3-college-page [id^="counts"]>.overlay-mf{display:none}
html.alfa3-modern .alfa3-college-page [id^="counts"]>.container{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
html.alfa3-modern .alfa3-college-page [id^="counts"]>.container>.row{display:contents}
html.alfa3-modern .alfa3-college-page [id^="counts"] [class*="col-"]{width:auto;max-width:100%;margin:0!important;padding:0}
html.alfa3-modern .alfa3-college-page [id^="counts"] .count-box{width:100%;height:auto;margin:0;padding:16px 12px;border:1px solid var(--a3-border);border-radius:14px;background:var(--a3-surface);text-align:center;box-shadow:var(--a3-shadow)}
html.alfa3-modern .alfa3-college-page [id^="counts"] .count-box i{position:static;float:none;display:inline-block;margin:0 0 8px;padding:0;font-size:25px;color:var(--a3-primary)}
html.alfa3-modern .alfa3-college-page [id^="counts"] .count-box span{display:block;margin:0;font-size:28px;line-height:1.2;color:var(--a3-primary)}
html.alfa3-modern .alfa3-college-page [id^="counts"] .count-box p{margin:6px 0 0;padding:0;font-size:17px;color:var(--a3-text)}
html.alfa3-modern .alfa3-college-page #featured-services .row{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:0}
html.alfa3-modern .alfa3-college-page #featured-services .row>[class*="col-"]{width:auto;max-width:100%;margin:0!important;padding:0}
html.alfa3-modern .alfa3-college-page #featured-services .icon-box{display:flex;align-items:center;gap:20px;width:100%;padding:18px;text-align:start}
html.alfa3-modern .alfa3-college-page #featured-services .icon-box .icon{flex:0 0 88px;width:88px;height:88px;margin:0}
html.alfa3-modern .alfa3-college-page #featured-services .icon img{width:88px;height:88px;object-fit:contain}
html.alfa3-modern .alfa3-college-page #featured-services .title{margin:0}
html.alfa3-modern .alfa3-college-page #chefs .row{row-gap:16px}
html.alfa3-modern .alfa3-college-page #chefs .member{margin-bottom:0}
html.alfa3-modern .alfa3-college-page #chefs .member-img img{height:180px}
html.alfa3-modern .alfa3-college-page #chefs .member-info{padding:16px}
html.alfa3-modern .alfa3-college-page #chefs h4 a{font-size:18px;line-height:1.6}
html.alfa3-modern .alfa3-college-page #services .row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin:0}
html.alfa3-modern .alfa3-college-page #services .icon-box{width:auto;max-width:100%;margin:0!important;padding:16px 10px;border:1px solid var(--a3-border);border-radius:14px;background:var(--a3-surface);box-shadow:none;text-align:center}
html.alfa3-modern .alfa3-college-page #services .icon{height:auto;margin:0 0 10px}
html.alfa3-modern .alfa3-college-page #services .icon i{font-size:28px}
html.alfa3-modern .alfa3-college-page #services .title{margin:0;font-size:16px;line-height:1.6}
html.alfa3-modern .alfa3-college-page #gallery .section-title{padding-bottom:12px}
html.alfa3-modern .alfa3-college-page #contact .row.mt-5{margin-top:0!important}
html.alfa3-modern .alfa3-college-page #contact .info-box{padding:16px 12px}
html.alfa3-modern .alfa3-college-page #contact .info-box h3{margin:8px 0;font-size:20px}
html.alfa3-modern .alfa3-college-page #contact .info-box p{margin:0}
@media(max-width:991.98px){html.alfa3-modern .alfa3-college-page [id^="counts"]>.container{grid-template-columns:repeat(3,minmax(0,1fr))}html.alfa3-modern .alfa3-college-page #services .row{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:575.98px){html.alfa3-modern .alfa3-college-page #main>section:not(#hero){padding-block:18px}html.alfa3-modern .alfa3-college-page [id^="counts"]>.container{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html.alfa3-modern .alfa3-college-page #services .row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html.alfa3-modern .alfa3-college-page #hero.alfa3-full-slider .alfa3-image-ready>.carousel-container{padding:0 18px 12px}html.alfa3-modern .alfa3-college-page #hero.alfa3-full-slider .alfa3-image-ready>.carousel-container>.container{padding:10px 14px}html.alfa3-modern .alfa3-college-page #featured-services .row{grid-template-columns:minmax(0,1fr)}}

html.alfa3-modern .alfa3-college-page .section-title>span{display:none}
html.alfa3-modern .alfa3-college-page #gallery .section-title h2{position:static;margin:0;font-size:clamp(1.25rem,2vw,1.7rem);line-height:1.5}
