/* Public website layout: header, navigation, footer, popup, cookie consent (scoped to body.front-site) */
body.front-site {
  --front-dark: #0f172a;
  --front-radius: 16px;
  --front-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  background: #fff;
  font-family: var(--front-body-font, 'Inter', sans-serif);
  color: var(--text-main);
  overflow-x: hidden;
}
body.front-site * { font-family: inherit; }
body.front-site .fa-solid, body.front-site .fa-regular, body.front-site .fa-brands, body.front-site .fa-solid::before { font-family: "Font Awesome 6 Free"; }
body.front-site .fa-brands { font-family: "Font Awesome 6 Brands"; }
body.front-site .fa-solid { font-weight: 900; }
body.front-site .fa-regular { font-weight: 400; }
body.front-site h1, body.front-site h2, body.front-site h3, body.front-site h4, body.front-site h5 { font-family: var(--front-heading-font, 'Inter', sans-serif); line-height: 1.25; }
body.front-site a { color: inherit; }
body.front-site .btn-primary { background: var(--primary); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--primary) 70%, transparent); color: #fff; }
body.front-site .btn-primary:hover { background: var(--primary-hover); color: #fff; }
body.front-site .btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Optional campus showcase layout. Colors come from the existing website theme settings. */
body.front-campus { background: linear-gradient(115deg, #fff 0 61%, color-mix(in srgb, var(--primary) 8%, #fff) 61% 100%); }
body.front-campus .front-header, body.front-campus .front-main, body.front-campus .front-footer { width: min(1480px, calc(100% - 48px)); margin-inline: auto; }
body.front-campus .front-header, body.front-campus .front-main { background: #fff; }
body.front-campus .front-header { margin-top: 28px; border: 1px solid #e8ece7; border-radius: 30px 30px 0 0; box-shadow: 0 24px 70px -48px rgba(20, 45, 32, .35); }
body.front-campus .front-main { box-shadow: 0 24px 70px -48px rgba(20, 45, 32, .35); }
body.front-campus .front-footer { margin-bottom: 28px; border-radius: 0 0 30px 30px; box-shadow: 0 24px 70px -48px rgba(20, 45, 32, .35); }
body.front-campus .front-hero { padding-block: clamp(64px, 9vw, 132px); }
body.front-campus .front-hero--one, body.front-campus .front-hero--two, body.front-campus .front-hero--three { background: #fff; }
body.front-campus .front-hero-inner { gap: clamp(32px, 7vw, 100px); }
body.front-campus .front-hero-title { max-width: 13ch; font-size: clamp(2.75rem, 5.5vw, 5.1rem); letter-spacing: -.055em; line-height: 1.02; }
body.front-campus .front-hero-media { min-height: 370px; }
body.front-campus .front-hero-img { filter: drop-shadow(0 22px 28px rgba(30, 56, 43, .13)); }
body.front-campus .front-hero-placeholder { background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 65%, #000), color-mix(in srgb, var(--primary) 65%, #fff)); color: #fff; }
body.front-campus .front-campus-features { padding: 34px 0; background: color-mix(in srgb, var(--primary) 5%, #fff); }
.front-campus-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.front-campus-feature-grid article { display: flex; align-items: center; gap: 16px; }
.front-campus-feature-grid h2 { margin: 0 0 5px; font-size: 1.08rem; }
.front-campus-feature-grid p { margin: 0; color: var(--text-muted, #647067); font-size: .92rem; line-height: 1.5; }
.front-campus-feature-icon { width: 62px; height: 62px; flex: 0 0 62px; display: grid; place-items: center; border-radius: 16px; color: var(--primary); background: #fff; box-shadow: 0 8px 26px -18px rgba(0,0,0,.4); font-size: 1.35rem; }
body.front-campus .front-section { padding-block: clamp(54px, 7vw, 92px); }
body.front-campus .front-section-head { margin-bottom: 48px; }
body.front-campus .front-section-head h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; letter-spacing: -.04em; }
body.front-campus .front-testimonials { background: color-mix(in srgb, var(--primary) 5%, #fff); }
body.front-campus .front-testimonial { min-height: 220px; padding: 30px; border: 1px solid color-mix(in srgb, var(--primary) 17%, #e5e7eb); border-radius: 4px; background: #fff; box-shadow: none; }
body.front-campus .front-contact-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); align-items: center; gap: clamp(36px, 8vw, 120px); }
body.front-campus .front-message-form { padding: clamp(24px, 4vw, 52px); border: 1px solid color-mix(in srgb, var(--primary) 13%, #e5e7eb); border-radius: 10px; background: color-mix(in srgb, var(--primary) 8%, #fff); box-shadow: none; }
body.front-campus .front-message-form .form-control { min-height: 52px; border-color: #e1e5e2; border-radius: 7px; background: rgba(255,255,255,.9); }
body.front-campus .front-message-form textarea.form-control { min-height: 150px; }
@media (max-width: 760px) {
  body.front-campus .front-header, body.front-campus .front-main, body.front-campus .front-footer { width: calc(100% - 20px); }
  body.front-campus .front-header { margin-top: 10px; border-radius: 18px 18px 0 0; }
  body.front-campus .front-footer { margin-bottom: 10px; border-radius: 0 0 18px 18px; }
  .front-campus-feature-grid { grid-template-columns: 1fr; gap: 22px; }
  body.front-campus .front-contact-layout { grid-template-columns: 1fr; }
  body.front-campus .front-hero-media { min-height: 0; }
}

.front-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.front-skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 1000; border-radius: 8px; }
.front-skip-link:focus { left: 8px; }
.front-main { min-height: 50vh; }

/* Topbar */
.front-topbar { background: var(--front-dark); color: #cbd5e1; font-size: 0.82rem; }
.front-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.front-topbar ul { display: flex; list-style: none; gap: 18px; align-items: center; }
.front-topbar a { color: #cbd5e1; display: inline-flex; gap: 6px; align-items: center; }
.front-topbar a:hover { color: #fff; }

/* Navbar */
.front-header { position: sticky; top: 0; z-index: 80; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(226, 232, 240, 0.8); transition: box-shadow .2s; }
.front-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.35); }
.front-navbar-inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.front-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.front-brand-logo { max-height: 44px; max-width: 170px; width: auto; }
.front-brand-text { font-weight: 800; font-size: 1.2rem; color: var(--front-dark); display: inline-flex; gap: 8px; align-items: center; }
.front-brand-text i { color: var(--primary); }
.front-nav { flex: 1; min-width: 0; }
.front-nav-list { display: flex; list-style: none; gap: 2px; align-items: center; }
.front-nav-item { position: relative; }
.front-nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-weight: 600; font-size: 0.93rem; color: #334155 !important; background: none; border: 0; cursor: pointer; border-radius: 10px; white-space: nowrap; }
.front-nav-link i { font-size: 0.65rem; opacity: .6; }
.front-nav-link:hover, .front-nav-link.active { color: var(--primary) !important; background: var(--primary-light); }
.front-dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; box-shadow: var(--front-shadow); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; z-index: 90; }
.front-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.front-nav-item:hover > .front-dropdown, .front-nav-item:focus-within > .front-dropdown { opacity: 1; visibility: visible; transform: none; }
.front-dropdown-list a, .front-mega-grid a { display: block; padding: 8px 12px; border-radius: 8px; color: #334155; font-size: 0.9rem; }
.front-dropdown-list a:hover, .front-mega-grid a:hover { background: var(--primary-light); color: var(--primary); }
.front-mega { min-width: 560px; padding: 16px; }
.front-mega-title { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding: 0 12px 10px; border-bottom: 1px solid var(--border-color); margin-bottom: 8px; }
.front-mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.front-mega-all { display: inline-flex; gap: 6px; align-items: center; margin: 10px 12px 0; font-weight: 600; font-size: 0.88rem; color: var(--primary) !important; }

.front-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.front-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--border-color); background: #fff; color: #334155; cursor: pointer; transition: var(--transition); }
.front-icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.front-locale-code { font-size: 0.75rem; font-weight: 700; }
.front-cart-count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.front-cart-count.hidden { display: none; }
.front-search { position: relative; display: flex; align-items: center; }
.front-search > i { position: absolute; left: 13px; color: #94a3b8; font-size: 0.85rem; pointer-events: none; }
.front-search input { width: 210px; height: 40px; border-radius: 12px; border: 1px solid var(--border-color); padding: 0 12px 0 36px; font-size: 0.88rem; background: #f8fafc; transition: var(--transition); }
.front-search input:focus { outline: none; width: 260px; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-light); }
.front-search-results { position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-height: 440px; overflow-y: auto; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; box-shadow: var(--front-shadow); padding: 8px; z-index: 95; }
.front-search-group { padding: 6px 0; }
.front-search-group + .front-search-group { border-top: 1px solid var(--border-color); }
.front-search-group h6 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 4px 10px; }
.front-search-item { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; color: #334155; font-size: 0.88rem; }
.front-search-item:hover { background: #f1f5f9; }
.front-search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.front-search-item small { display: block; color: var(--text-muted); font-size: 0.76rem; }
.front-search-empty { padding: 16px; text-align: center; color: var(--text-muted); font-size: 0.88rem; }
.front-search-toggle, .front-menu-toggle { display: none; }
.front-login-btn { height: 40px; padding: 0 16px; }

.front-user { position: relative; }
.front-user-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border-radius: 22px; border: 1px solid var(--border-color); background: #fff; cursor: pointer; font-weight: 600; color: #334155; }
.front-user-toggle i { font-size: 0.65rem; opacity: .6; }
.front-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.front-avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700; }
.front-user-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; box-shadow: var(--front-shadow); padding: 8px; display: none; z-index: 95; }
.front-user.open .front-user-menu { display: block; }
.front-user-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border-color); margin-bottom: 6px; }
.front-user-head strong { display: block; font-size: 0.92rem; }
.front-user-head span { font-size: 0.78rem; color: var(--text-muted); word-break: break-all; }
.front-user-menu a, .front-user-menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 0; background: none; font-size: 0.9rem; color: #334155; cursor: pointer; text-align: left; }
.front-user-menu a i, .front-user-menu button i { width: 16px; color: var(--text-muted); }
.front-user-menu a:hover, .front-user-menu button:hover { background: #f1f5f9; color: var(--primary); }

/* Mobile panel */
.front-mobile-panel { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.front-mobile-panel.open { visibility: visible; }
.front-mobile-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); opacity: 0; transition: opacity .2s; }
.front-mobile-panel.open .front-mobile-overlay { opacity: 1; }
.front-mobile-inner { position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: #fff; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; }
[dir="rtl"] .front-mobile-inner { left: auto; right: 0; transform: translateX(100%); }
.front-mobile-panel.open .front-mobile-inner { transform: none; }
.front-mobile-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border-color); }
.front-mobile-search { position: relative; margin: 14px 18px 4px; }
.front-mobile-search i { position: absolute; left: 12px; top: 13px; color: #94a3b8; font-size: 0.85rem; }
.front-mobile-search input { width: 100%; height: 42px; border: 1px solid var(--border-color); border-radius: 12px; padding: 0 12px 0 34px; }
.front-mobile-nav { padding: 8px 10px; flex: 1; }
.front-mobile-nav > a, .front-mobile-nav summary { display: block; padding: 12px; border-radius: 10px; font-weight: 600; color: #1e293b; cursor: pointer; }
.front-mobile-nav > a.active, .front-mobile-nav > a:hover, .front-mobile-nav summary:hover { background: var(--primary-light); color: var(--primary); }
.front-mobile-nav details a { display: block; padding: 8px 12px 8px 26px; color: #475569; font-size: 0.92rem; }
.front-mobile-foot { padding: 16px 18px; display: grid; gap: 10px; border-top: 1px solid var(--border-color); }

/* Locale modal */
.front-locale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.front-locale-title { font-size: 0.95rem; margin-bottom: 10px; }
.front-choice-list { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.front-choice { position: relative; cursor: pointer; }
.front-choice input { position: absolute; opacity: 0; }
.front-choice span { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 12px; font-weight: 600; font-size: 0.9rem; }
.front-choice span img { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; }
.front-choice small { color: var(--text-muted); font-weight: 400; }
.front-choice input:checked + span { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.front-choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-light); }

/* Footer */
.front-footer { background: var(--front-dark); color: #94a3b8; margin-top: 0; }
.front-footer a { color: #cbd5e1; }
.front-footer a:hover { color: #fff; }
.front-footer-top { display: flex; justify-content: space-between; gap: 40px; padding: 56px 0 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); flex-wrap: wrap; }
.front-footer-brand { max-width: 380px; }
.front-footer-logo img { max-height: 48px; max-width: 180px; }
.front-footer-logo .front-brand-text { color: #fff; }
.front-footer-brand p { margin-top: 14px; font-size: 0.92rem; line-height: 1.7; }
.front-social { display: flex; gap: 10px; list-style: none; margin-top: 18px; flex-wrap: wrap; }
.front-social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #e2e8f0; transition: var(--transition); }
.front-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.front-social-dark a { background: #f1f5f9; color: #334155; }
.front-footer-newsletter { flex: 1; max-width: 480px; min-width: 260px; }
.front-footer-newsletter h5 { color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.front-subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; }
.front-subscribe-form input[type=email] { flex: 1; min-width: 200px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; padding: 0 16px; font-size: 0.92rem; }
.front-subscribe-form input[type=email]::placeholder { color: #94a3b8; }
.front-subscribe-form input[type=email]:focus { outline: none; border-color: var(--primary); }
.front-subscribe-form .btn { height: 46px; }
.front-footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding: 40px 0; }
.front-footer-col h5 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.front-footer-col ul { list-style: none; display: grid; gap: 10px; font-size: 0.92rem; }
.front-footer-col p { font-size: 0.9rem; margin-bottom: 12px; }
.front-app-links { display: flex; flex-wrap: wrap; gap: 10px; }
.front-store-btn { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); color: #fff !important; }
.front-store-btn i { font-size: 1.4rem; }
.front-store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; font-size: 0.92rem; }
.front-store-btn small { font-size: 0.62rem; font-weight: 500; text-transform: uppercase; opacity: .75; }
.front-payment-banner { padding-bottom: 24px; text-align: end; }
.front-payment-banner img { max-height: 36px; }
.front-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: 0.86rem; text-align: center; }

.front-back-to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; box-shadow: var(--front-shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s; z-index: 70; }
.front-back-to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Popup */
.front-popup { padding: 0; overflow: hidden; position: relative; max-width: 860px; }
.front-popup-close { position: absolute; top: 12px; right: 14px; z-index: 2; }
.front-popup-grid { display: grid; grid-template-columns: 1fr 1fr; }
.front-popup-media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.front-popup-body { padding: 40px 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.front-popup-body .front-subscribe-form input[type=email] { background: #f8fafc; color: var(--text-main); border-color: var(--border-color); }
.front-popup-dontshow { display: flex; gap: 8px; align-items: center; width: 100%; font-size: 0.85rem; color: var(--text-muted); }

/* Cookie consent */
.front-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; display: flex; justify-content: center; }
.front-cookie-inner { max-width: 960px; width: 100%; background: #fff; border: 1px solid var(--border-color); border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .4); padding: 20px 24px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.front-cookie h4 { font-size: 1rem; margin-bottom: 4px; }
.front-cookie-text { font-size: 0.88rem; color: var(--text-muted); }
.front-cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 1100px) {
  .front-nav { display: none; }
  .front-menu-toggle { display: inline-flex; }
  .front-search input { width: 180px; }
}
@media (max-width: 760px) {
  .front-search { display: none; }
  .front-search.open { display: flex; position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); }
  .front-search.open input, .front-search.open input:focus { width: 100%; background: #fff; box-shadow: var(--front-shadow); }
  .front-search.open .front-search-results { width: 100%; }
  .front-search-toggle { display: inline-flex; }
  .front-navbar-inner { position: relative; gap: 10px; min-height: 64px; }
  .front-locale-code, .front-user-name, .front-login-btn span { display: none; }
  .front-login-btn { width: 40px; padding: 0; }
  .front-brand-logo { max-height: 36px; max-width: 130px; }
  .front-brand { min-width: 0; flex-shrink: 1; }
  .front-brand-text { font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
  .front-header-actions { flex-shrink: 0; gap: 5px; }
  .front-locale-grid, .front-popup-grid { grid-template-columns: 1fr; }
  .front-popup-media { display: none; }
  .front-cookie-inner { flex-direction: column; align-items: stretch; }
  .front-topbar-social { display: none !important; }
  .front-payment-banner { text-align: center; }
}
@media (max-width: 420px) {
  .front-navbar-inner { gap: 6px; }
  .front-header-actions .front-icon-btn { min-width: 34px; padding-inline: 7px; }
  .front-brand-text { font-size: .9rem; gap: 5px; }
}
/* Give a university's full name its own row instead of splitting it into letters. */
@media (min-width: 1101px) {
  .front-navbar-inner { flex-wrap: wrap; gap: 8px 24px; padding-block: 12px; }
  .front-nav { order: 3; flex-basis: 100%; }
  .front-nav-list { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .front-navbar-inner { flex-wrap: wrap; padding-block: 12px; row-gap: 10px; }
  .front-brand { flex: 0 0 100%; }
  .front-brand-text { font-size: 1rem; overflow-wrap: normal; }
  .front-header-actions { width: 100%; justify-content: flex-end; }
}
