/* ALFA3 public presentation profiles. Existing content, IDs and routes remain intact. */
html.alfa3-modern{--a3-primary:#163b59;--a3-accent:#bd9450;--a3-bg:#f4f7fa;--a3-surface:#fff;--a3-text:#203448;--a3-muted:#566c7e;--a3-border:#dce5ed;--a3-shadow:0 12px 36px rgb(18 50 77 / 8%);--a3-radius:18px;color-scheme:light}
html.alfa3-modern[data-alfa3-theme="news"]{--a3-primary:#173f65;--a3-accent:#b64c35;--a3-bg:#f3f5f7;--a3-radius:12px}
html.alfa3-modern[data-alfa3-theme="academic"]{--a3-primary:#17584f;--a3-accent:#9b713a;--a3-bg:#f8f8f2;--a3-radius:10px}
html.alfa3-modern[data-alfa3-mode="dark"]{--a3-primary:#9ac4e4;--a3-accent:#e1bd7d;--a3-bg:#101a28;--a3-surface:#192638;--a3-text:#e4edf6;--a3-muted:#b2c0cf;--a3-border:#304157;--a3-shadow:0 12px 36px rgb(0 0 0 / 18%);color-scheme:dark}
@media(prefers-color-scheme:dark){html.alfa3-modern[data-alfa3-mode="auto"]{--a3-primary:#9ac4e4;--a3-accent:#e1bd7d;--a3-bg:#101a28;--a3-surface:#192638;--a3-text:#e4edf6;--a3-muted:#b2c0cf;--a3-border:#304157;--a3-shadow:0 12px 36px rgb(0 0 0 / 18%);color-scheme:dark}}
.alfa3-modern body{background:var(--a3-bg);color:var(--a3-text);font-family:Tahoma,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.9;min-width:0}
.alfa3-modern a{color:var(--a3-primary);text-decoration:none;transition:color .18s ease}
.alfa3-modern a:hover{color:var(--a3-accent)}
.alfa3-modern h1,.alfa3-modern h2,.alfa3-modern h3,.alfa3-modern h4,.alfa3-modern h5{color:var(--a3-primary);font-family:inherit;line-height:1.65;letter-spacing:0}
.alfa3-modern :focus-visible{outline:3px solid var(--a3-accent);outline-offset:4px}
.alfa3-modern #topbar{background:#12324d;color:#fff;min-height:36px;font-size:13px;border-bottom:1px solid rgb(255 255 255 / 12%)}
.alfa3-modern #header{background:var(--a3-surface);border-bottom:1px solid var(--a3-border);box-shadow:0 4px 20px rgb(12 35 55 / 7%);min-height:88px}
.alfa3-modern #header .logo img{max-height:66px;height:auto;width:auto;object-fit:contain}
.alfa3-modern #navbar a{color:var(--a3-primary);font-weight:700;font-size:15px}
.alfa3-modern #navbar a:hover,.alfa3-modern #navbar .active{color:var(--a3-accent)}
.alfa3-modern #navbar .dropdown ul{background:var(--a3-surface);border:1px solid var(--a3-border);border-radius:12px;box-shadow:var(--a3-shadow)}
.alfa3-modern #hero{background:#163b59}
.alfa3-modern #hero .carousel-item::before{background:linear-gradient(90deg,rgb(13 38 60 / 75%),rgb(13 38 60 / 20%))}
.alfa3-modern #hero h2,.alfa3-modern #hero p{color:#fff;text-shadow:0 2px 12px rgb(0 0 0 / 20%)}
.alfa3-modern #hero h2{font-size:clamp(1.9rem,4vw,3.3rem);font-weight:800}
.alfa3-modern section{padding-block:64px;background-color:transparent}
.alfa3-modern .section-title{padding-bottom:32px}
.alfa3-modern .section-title h2{font-size:clamp(1.5rem,2.4vw,2.1rem);font-weight:800}
.alfa3-modern .section-title h2::after{background:var(--a3-accent);height:3px;border-radius:3px}
.alfa3-modern .section-title p,.alfa3-modern .text-muted{color:var(--a3-muted)!important}
.alfa3-modern .featured-services .icon-box,.alfa3-modern .services .icon-box,.alfa3-modern .chefs .member,.alfa3-modern .doctors .member,.alfa3-modern .pricing .box,.alfa3-modern .blog .blog-details,.alfa3-modern .blog .sidebar,.alfa3-modern .about .icon-box{background:var(--a3-surface);border:1px solid var(--a3-border);border-radius:var(--a3-radius);box-shadow:var(--a3-shadow);color:var(--a3-text);overflow-wrap:anywhere}
.alfa3-modern .featured-services .icon-box{padding:28px 24px;height:100%;border-top:3px solid var(--a3-accent);transition:transform .2s ease,box-shadow .2s ease}
.alfa3-modern .featured-services .icon-box:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgb(18 50 77 / 13%)}
.alfa3-modern .featured-services .icon-box .title a{font-size:18px;color:var(--a3-primary)}
.alfa3-modern .featured-services .icon-box p{color:var(--a3-muted);margin-bottom:0}
.alfa3-modern .chefs .member,.alfa3-modern .doctors .member{overflow:hidden}
.alfa3-modern .chefs .member img,.alfa3-modern .doctors .member img{max-width:100%;height:auto}
.alfa3-modern .chefs .member .member-info,.alfa3-modern .doctors .member .member-info{padding:24px}
.alfa3-modern .about .content p,.alfa3-modern .blog .content{color:var(--a3-text);font-size:17px;line-height:2}
.alfa3-modern .blog .blog-details{padding:28px}
.alfa3-modern .blog .blog-details .title{font-size:clamp(1.35rem,2.2vw,2rem);margin-block:22px}
.alfa3-modern .blog .post-img{border-radius:12px;overflow:hidden}
.alfa3-modern .blog .post-img img{max-width:100%;height:auto}
.alfa3-modern .blog .meta-top,.alfa3-modern .blog .meta-bottom{color:var(--a3-muted)}
.alfa3-modern .blog .sidebar{padding:26px;margin-bottom:24px}
.alfa3-modern .blog .sidebar-title{font-size:19px;border-bottom:1px solid var(--a3-border);padding-bottom:16px}
.alfa3-modern .blog .sidebar ul{padding-inline-start:0;list-style:none}
.alfa3-modern .blog .sidebar .categories a{padding-block:6px;display:inline-block}
.alfa3-modern .blog .sidebar .recent-posts h4{font-size:15px;line-height:1.8}
.alfa3-modern .breadcrumbs{background:var(--a3-surface);border-bottom:1px solid var(--a3-border);padding:18px 24px;color:var(--a3-text)}
.alfa3-modern .breadcrumb{margin:0;background:transparent;color:var(--a3-muted)}
.alfa3-modern .breadcrumb-item.active{color:var(--a3-muted)}
.alfa3-modern .counts{background:var(--a3-surface);border-block:1px solid var(--a3-border)}
.alfa3-modern .counts .count-box{color:var(--a3-text)}
.alfa3-modern .counts .count-box i{color:var(--a3-accent)}
.alfa3-modern .table,.alfa3-modern table{color:var(--a3-text);border-color:var(--a3-border);max-width:100%}
.alfa3-modern #main table{background:var(--a3-surface)}
.alfa3-modern #main table th,.alfa3-modern #main table td{padding:13px 16px;vertical-align:middle;border-color:var(--a3-border);overflow-wrap:anywhere}
.alfa3-modern .table-striped>tbody>tr:nth-of-type(odd)>*{color:var(--a3-text);background:rgb(120 140 160 / 6%)}
.alfa3-modern .form-control,.alfa3-modern .form-select,.alfa3-modern .contact input,.alfa3-modern .contact textarea{background:var(--a3-surface);border:1px solid var(--a3-border);color:var(--a3-text);border-radius:10px;padding:12px 16px}
.alfa3-modern .btn-primary,.alfa3-modern .btn-get-started,.alfa3-modern .contact button[type="submit"]{background:#163b59;border-color:#163b59;color:#fff;border-radius:10px;font-weight:700;padding:10px 22px}
.alfa3-modern .btn-primary:hover,.alfa3-modern .btn-get-started:hover{background:#235c84;border-color:#235c84}
.alfa3-modern blockquote{border-inline-start:4px solid var(--a3-accent);border-radius:12px;background:var(--a3-bg);color:var(--a3-text)}
.alfa3-modern #footer{background:#102c44;color:#d8e5ef;border-top:4px solid var(--a3-accent)}
.alfa3-modern #footer .footer-top{background:#13334e;color:#d8e5ef;border-bottom:1px solid rgb(255 255 255 / 12%)}
.alfa3-modern #footer h3,.alfa3-modern #footer h4,.alfa3-modern #footer a,.alfa3-modern #footer p{color:#eef5fa}
.alfa3-modern #footer a:hover{color:#e1bd7d}
.alfa3-modern #footer .footer-links ul i{color:#e1bd7d}
.alfa3-modern .cta{border-radius:0;background-color:#173e5d;color:#fff}
.alfa3-modern .cta h3,.alfa3-modern .cta p{color:#fff}
html.alfa3-modern[dir="rtl"] body{text-align:right}
.alfa3-modern[dir="rtl"] #navbar .dropdown ul{right:0;left:auto;text-align:right}
.alfa3-modern[dir="rtl"] #navbar .dropdown .dropdown ul{right:100%;left:auto}
.alfa3-modern[dir="rtl"] .blog .meta-top ul{padding-right:0;padding-left:0;gap:12px;flex-wrap:wrap}
.alfa3-modern[dir="rtl"] .blog .sidebar .recent-posts img{float:right;margin-left:12px;margin-right:0}
.alfa3-modern[dir="rtl"] .blog .sidebar .recent-posts h4,.alfa3-modern[dir="rtl"] .blog .sidebar .recent-posts time{margin-left:0;margin-right:92px}
.alfa3-modern[dir="rtl"] .breadcrumb-item+.breadcrumb-item::before{float:right;padding-left:.5rem;padding-right:0}
.alfa3-modern[dir="rtl"] .contact .info i{float:right;margin-left:16px;margin-right:0}
.alfa3-modern[dir="rtl"] .contact .info h4,.alfa3-modern[dir="rtl"] .contact .info p{padding-right:64px;padding-left:0}
html.alfa3-modern[data-alfa3-theme="news"] .chefs .member{border-radius:10px;border-bottom:4px solid var(--a3-accent)}
html.alfa3-modern[data-alfa3-theme="news"] .blog .blog-details{border-top:5px solid var(--a3-accent)}
html.alfa3-modern[data-alfa3-theme="news"] .section-title{text-align:start}
html.alfa3-modern[data-alfa3-theme="academic"] .about .content{max-width:78ch;margin-inline:auto}
html.alfa3-modern[data-alfa3-theme="academic"] .featured-services .icon-box{box-shadow:none;border-top-width:1px;border-inline-start:4px solid var(--a3-primary)}
html.alfa3-modern[data-alfa3-theme="academic"] #hero h2{font-weight:600}
@media(min-width:992px){.alfa3-modern[dir="rtl"] .blog>.container>.row>.col-lg-4{order:-1}.alfa3-modern .blog>.container>.row>.col-lg-4{position:relative}html.alfa3-modern[data-alfa3-theme="news"] #chefs .row>[class*="col-"]:first-child{flex:0 0 50%;max-width:50%}html.alfa3-modern[data-alfa3-theme="news"] #chefs .row>[class*="col-"]:not(:first-child){flex:0 0 25%;max-width:25%}}
@media(max-width:991.98px){.alfa3-modern #header{min-height:78px}.alfa3-modern #header .logo img{max-height:56px}.alfa3-modern #navbar.navbar-mobile ul{left:15px;right:15px;background:var(--a3-surface)}.alfa3-modern #navbar.navbar-mobile .dropdown ul{position:static;margin:12px;box-shadow:none}.alfa3-modern #navbar .mobile-nav-toggle{color:var(--a3-primary)}.alfa3-modern .blog .blog-details{padding:20px}.alfa3-modern section{padding-block:44px}}
@media(max-width:575.98px){.alfa3-modern body{font-size:16px}.alfa3-modern #main{min-width:0}.alfa3-modern #main table{display:block;overflow-x:auto;width:100%}.alfa3-modern .container{padding-inline:18px}.alfa3-modern .blog .blog-details{padding:16px}.alfa3-modern .blog .sidebar{padding:20px}.alfa3-modern .breadcrumbs{padding:16px}.alfa3-modern #hero h2{font-size:1.9rem}}
@media(prefers-reduced-motion:reduce){.alfa3-modern *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Live visual verification: legacy hero panels and news.css need explicit contrast. */
.alfa3-modern #hero .carousel-item>.container{background:var(--a3-surface);border:1px solid var(--a3-border);box-shadow:var(--a3-shadow)}
.alfa3-modern #hero .carousel-item>.container h2,.alfa3-modern #hero .carousel-item>.container p{color:var(--a3-primary);text-shadow:none}
.alfa3-modern #main>.parallax{display:flex;align-items:center;justify-content:center;position:relative;min-height:300px;height:auto;padding:48px 24px;background-attachment:scroll}
.alfa3-modern #main>.parallax>.centered{position:relative;top:auto;left:auto;transform:none;max-width:960px;margin:0;padding:18px 28px;font-size:clamp(1.35rem,3vw,2.3rem);line-height:1.8;background:rgb(13 38 60 / 80%);border-radius:14px;color:#fff;text-shadow:none}
.alfa3-modern .breadcrumbs .breadcrumb .breadcrumb-item{color:var(--a3-text);display:block}
.alfa3-modern .breadcrumbs .breadcrumb .breadcrumb-item a{color:var(--a3-primary)}
.alfa3-modern .breadcrumbs .breadcrumb .breadcrumb-item a:hover{color:var(--a3-accent)}
.alfa3-modern .blog .blog-details .title,.alfa3-modern .blog .blog-details .title:hover{background:transparent;color:var(--a3-primary);padding:0;margin:22px 0;text-shadow:none}
/* Clear the existing fixed masthead above news banners. */
.alfa3-modern #main>.parallax{margin-top:144px}
@media(max-width:991.98px){.alfa3-modern #main>.parallax{margin-top:114px}}
/* Shared surfaces follow the selected palette in both light and dark modes. */
html.alfa3-modern #main .b-example-divider{background:var(--a3-bg);border-block:1px solid var(--a3-border);box-shadow:none}
html.alfa3-modern #main .blog .sidebar .sidebar-title{background:var(--a3-bg);color:var(--a3-primary);border-color:var(--a3-border);text-shadow:none}
html.alfa3-modern #main .blog .sidebar a,html.alfa3-modern #main .blog .meta-top a,html.alfa3-modern #main .blog .meta-bottom a{color:var(--a3-primary)}
html.alfa3-modern #main .blog .sidebar a:hover,html.alfa3-modern #main .blog .meta-top a:hover{color:var(--a3-accent)}
html.alfa3-modern #main .blog .sidebar .categories span,html.alfa3-modern #main .blog .sidebar time{color:var(--a3-muted)}
html.alfa3-modern #main .blog .content,html.alfa3-modern #main .blog .content p,html.alfa3-modern #main .blog .content li{color:var(--a3-text)}
html.alfa3-modern #main .table th,html.alfa3-modern #main .table td,html.alfa3-modern #main table th,html.alfa3-modern #main table td{color:var(--a3-text);background-color:var(--a3-surface);border-color:var(--a3-border)}
html.alfa3-modern #main table thead th{background-color:var(--a3-bg);color:var(--a3-primary)}
html.alfa3-modern .page-link{background:var(--a3-surface);color:var(--a3-primary);border-color:var(--a3-border)}
html.alfa3-modern .page-item.active .page-link{background:#163b59;color:#fff;border-color:#163b59}
html.alfa3-modern .page-item.disabled .page-link{background:var(--a3-bg);color:var(--a3-muted);border-color:var(--a3-border)}
html.alfa3-modern .form-control::placeholder,html.alfa3-modern textarea::placeholder{color:var(--a3-muted);opacity:1}
html.alfa3-modern select option{background:var(--a3-surface);color:var(--a3-text)}
html.alfa3-modern .services .icon-box h4,html.alfa3-modern .pricing .box h3{background:var(--a3-bg);color:var(--a3-primary)}
html.alfa3-modern[data-alfa3-mode="dark"] #main .blog .content font[color]{color:var(--a3-text)}
@media(prefers-color-scheme:dark){html.alfa3-modern[data-alfa3-mode="auto"] #main .blog .content font[color]{color:var(--a3-text)}}
/* Keep text links readable; reserve the lighter gold for borders and decoration. */
html.alfa3-modern{--a3-link-hover:#805b20}
html.alfa3-modern[data-alfa3-theme="news"]{--a3-link-hover:#a23b26}
html.alfa3-modern[data-alfa3-theme="academic"]{--a3-link-hover:#795426}
html.alfa3-modern[data-alfa3-mode="dark"]{--a3-link-hover:#e1bd7d}
@media(prefers-color-scheme:dark){html.alfa3-modern[data-alfa3-mode="auto"]{--a3-link-hover:#e1bd7d}}
.alfa3-modern a:hover,.alfa3-modern #navbar a:hover,.alfa3-modern #navbar .active,html.alfa3-modern #main .blog .sidebar a:hover,html.alfa3-modern #main .blog .meta-top a:hover{color:var(--a3-link-hover)}
