/* ── UniLive Layout — shared structural CSS for all branded pages ── */
/* Color-neutral: uses var(--theme-color), var(--theme-cta-text), etc.    */
/* Load brand.css and a theme file (theme-student.css / theme-exhibitor.css) first. */

/* Base */
html { font-size: 16px !important; }
body { font-family: var(--font-main) !important; display: block !important; visibility: visible !important; }

/* ── Topbar ── */
#topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: var(--theme-color); padding: 7px 0; font-size: 1rem; line-height: 1; transition: transform .38s ease, opacity .38s ease; }
#topbar.hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
#topbar .inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: flex-end; }
#topbar a { color: var(--uni-yellow); font-weight: 700; text-decoration: none; letter-spacing: .03em; }
#topbar a:hover { opacity: .8; }

/* ── Header ── */
header { background: transparent !important; border-bottom: 1px solid transparent !important; box-shadow: none !important; position: fixed !important; top: 32px !important; left: 0 !important; right: 0 !important; z-index: 1001 !important; padding: 0 !important; transition: background .38s ease, border-color .38s ease, box-shadow .38s ease, top .38s ease !important; }
header.smaller, header.scrolled { background: var(--theme-color) !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; box-shadow: 0 2px 20px rgba(0,0,0,.18) !important; top: 0 !important; }
header .container { max-width: 1200px; display: flex; align-items: center; padding: 12px 24px; }
header .row, header .col-md-12 { display: contents; }
#logo { flex-shrink: 0; margin: 0 !important; padding: 0 !important; float: none !important; position: static !important; width: auto !important; min-width: 160px; overflow: visible !important; }
#logo a { display: block; line-height: 0; }
#logo img.logo, #logo img.logo-2 { display: none !important; }
#logo .ul-logo { height: 46px; width: auto; max-width: none; display: block; }
#mainmenu li a:after { content: none !important; }
#mainmenu li:not(:last-child):after { content: '/'; font-family: var(--font-main) !important; font-size: 1.1rem; font-weight: 400; color: rgba(255,255,255,.4); }
header.scrolled #mainmenu li:not(:last-child):after, header.smaller #mainmenu li:not(:last-child):after { color: rgba(255,255,255,.3) !important; }
#mainmenu li.nav-cta:after { content: none !important; }
#menu-btn { display: none !important; }
nav { flex: 1; display: flex !important; justify-content: flex-end; align-items: center; }
#mainmenu { display: flex !important; align-items: center; gap: 6px; list-style: none; margin: 0 !important; padding: 0 !important; float: none !important; position: static !important; background: none !important; box-shadow: none !important; }
#mainmenu li { margin: 0 !important; padding: 0 !important; display: inline-flex !important; align-items: center !important; }
#mainmenu li a { color: #fff !important; font-family: var(--font-main) !important; font-weight: 600 !important; font-size: 1.2rem !important; padding: 8px 16px !important; border-radius: 6px !important; text-decoration: none !important; background: none !important; display: block; transition: color .2s; line-height: 1 !important; }
#mainmenu li a:hover { color: var(--uni-yellow) !important; }
header.scrolled #mainmenu li a, header.smaller #mainmenu li a { color: #fff !important; }
header.scrolled #mainmenu li a:hover, header.smaller #mainmenu li a:hover { color: var(--uni-yellow) !important; }
#mainmenu > li.nav-cta { margin-left: 8px !important; }
#mainmenu > li.nav-cta > a { background: var(--uni-yellow) !important; color: var(--theme-cta-text) !important; border-radius: 8px !important; padding: 10px 24px !important; font-weight: 800 !important; font-size: 1.2rem !important; }
#mainmenu > li.nav-cta > a:hover { opacity: .9 !important; }
header.scrolled #mainmenu > li.nav-cta > a, header.smaller #mainmenu > li.nav-cta > a { background: var(--uni-yellow) !important; color: var(--theme-cta-text) !important; }
#wrapper { padding-top: 0 !important; }

/* ── Mobile hamburger ── */
.mob-hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; cursor: pointer; padding: 6px; border-radius: 8px; background: rgba(255,255,255,.15); border: none; transition: background .2s; flex-shrink: 0; }
.mob-hamburger:hover { background: rgba(255,255,255,.25); }
.mob-hamburger span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 2px; }

/* ── Mobile header (separate fixed element) ── */
#mob-header { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 1001; background: transparent; padding: 10px 18px; align-items: center; justify-content: space-between; transition: background .35s ease, box-shadow .35s ease; }
#mob-header.scrolled { background: var(--theme-color); box-shadow: 0 2px 16px rgba(0,0,0,.2); }
#mob-header .mob-logo { height: 38px; width: auto; display: block; }

@media (max-width: 767px) {
    header { display: none !important; }
    #topbar { display: none !important; }
    #mob-header { display: flex; }
}

/* ── Sidebar overlay ── */
.mob-overlay { display: none; position: fixed; inset: 0; background: rgba(10,0,40,.55); z-index: 1099; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.mob-overlay.open { display: block; }

/* ── Sidebar drawer ── */
.mob-sidebar { position: fixed; top: 0; right: 0; width: min(300px, 85vw); height: 100%; background: #fff; z-index: 1100; transform: translateX(100%); transition: transform .38s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; overflow-y: auto; box-shadow: -8px 0 40px var(--theme-shadow); }
.mob-sidebar.open { transform: translateX(0); }
.mob-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 18px; background: var(--theme-color); }
.mob-sidebar-head img { height: 36px; width: auto; }
.mob-close { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: none; background: rgba(255,255,255,.15); border-radius: 8px; cursor: pointer; color: #fff; font-size: 1rem; transition: background .2s; }
.mob-close:hover { background: rgba(255,255,255,.28); }
.mob-close i { text-transform: none !important; font-style: normal; }

/* ── Sidebar nav ── */
.mob-nav { flex: 1; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.mob-nav a { display: flex; align-items: center; gap: 13px; padding: 11px 12px; color: #2a2a3d; font-size: .96rem; font-weight: 600; font-family: var(--font-main); text-decoration: none; text-transform: none !important; transition: background .15s, color .15s; border-radius: 10px; letter-spacing: 0; }
.mob-nav a:hover { background: var(--mob-hover-bg); color: var(--theme-color); }
.mob-nav a.active { color: var(--theme-color); background: var(--mob-active-bg); font-weight: 700; }
.mob-nav a .nav-icon { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; background: var(--mob-hover-bg); display: flex; align-items: center; justify-content: center; transition: background .15s; }
.mob-nav a .nav-icon i { color: var(--theme-color); font-size: .88rem; text-transform: none !important; font-style: normal; line-height: 1; }
.mob-nav a:hover .nav-icon, .mob-nav a.active .nav-icon { background: var(--theme-color); }
.mob-nav a:hover .nav-icon i, .mob-nav a.active .nav-icon i { color: var(--uni-yellow); }

/* ── Sidebar footer ── */
.mob-sidebar-foot { padding: 18px 20px 32px; border-top: 1px solid #f0f0f5; }
.mob-cta { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--theme-color); color: #fff !important; padding: 13px 20px; border-radius: 10px; font-weight: 800; font-size: .97rem; font-family: var(--font-main); text-decoration: none !important; text-transform: none !important; transition: opacity .2s; margin-bottom: 18px; }
.mob-cta:hover { opacity: .88; }
.mob-cta i { text-transform: none !important; font-style: normal; font-size: .9rem; }
.mob-social { display: flex; gap: 8px; justify-content: center; }
.mob-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--mob-hover-bg); color: var(--theme-color); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .2s, color .2s; flex-shrink: 0; }
.mob-social a:hover { background: var(--theme-color); color: #fff; }
.mob-social a i { font-size: 14px; line-height: 1; text-transform: none !important; font-style: normal; display: block; background: none !important; }
.mob-social a svg { width: 13px; height: 13px; display: block; }

/* ── Preloader ── */
#preloader { background: #fff !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; }
.preloader-logo { width: 220px; height: auto; margin-bottom: 28px; animation: preloaderPulse 1.6s ease-in-out infinite; }
@keyframes preloaderPulse { 0%,100%{opacity:1;transform:scale(1);}50%{opacity:.55;transform:scale(.94);} }
#preloader .preloader1 { position: static !important; margin: 0 !important; top: auto !important; width: 36px !important; height: 36px !important; border-color: var(--preloader-ring, #c8b8f8) !important; border-top-color: var(--theme-color) !important; border-bottom-color: var(--uni-yellow) !important; }

/* ── Footer ── */
footer { background-color: var(--theme-color) !important; background-image: var(--footer-bg-img) !important; background-position: bottom center !important; background-repeat: no-repeat !important; background-size: 100% auto !important; padding-top: 72px !important; padding-bottom: 0 !important; }
.footer-inner { padding-bottom: 48px; }
.footer-skyline-spacer { padding-top: calc(100vw * 0.46 * (816/1456)); }
.footer-logo { height: 48px; width: auto; display: block; margin-bottom: 16px; }
.footer-desc { color: rgba(255,255,255,.7); font-size: .92rem; line-height: 1.75; margin-bottom: 22px; }
.footer-social, .footer-social-new { display: flex; gap: 9px; flex-wrap: wrap; }
.footer-social a, .footer-social-new a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; text-decoration: none; transition: background .2s, color .2s; flex-shrink: 0; }
.footer-social a:hover, .footer-social-new a:hover { background: var(--uni-yellow); color: var(--theme-color); }
.footer-social a i, .footer-social-new a i { font-size: 14px; line-height: 1; }
.footer-social a svg, .footer-social-new a svg { width: 13px; height: 13px; display: block; }
.footer-col-title { color: var(--uni-yellow); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 18px; font-family: var(--font-main); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links li a { color: rgba(255,255,255,.72); font-size: .92rem; text-decoration: none; transition: color .2s; }
.footer-links li a:hover { color: var(--uni-yellow); }
.footer-contact-item { display: flex; gap: 11px; margin-bottom: 13px; align-items: flex-start; }
.footer-contact-item i { color: var(--uni-yellow); font-size: .95rem; margin-top: 3px; flex-shrink: 0; width: 15px; text-align: center; }
.footer-contact-item span { color: rgba(255,255,255,.72); font-size: .91rem; line-height: 1.6; }
.footer-contact-item a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-contact-item a:hover { color: var(--uni-yellow); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.13); margin: 0 0 20px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 28px; }
.footer-bottom-copy { color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,.5); font-size: .85rem; text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--uni-yellow); }

@media (max-width: 991px) {
    footer { background-size: 160% auto !important; }
    .footer-skyline-spacer { padding-top: calc(160vw * 0.46 * (816/1456)); }
}
@media (max-width: 767px) {
    footer { background-size: 260% auto !important; background-position: bottom right !important; }
    .footer-skyline-spacer { padding-top: calc(260vw * 0.46 * (816/1456)); }
    .footer-inner .row > div { margin-bottom: 32px !important; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-bottom-links { gap: 14px; }
}
