:root {
    --teal-deep: #004D4D;
    --teal-mid: #006B6B;
    --teal-light: #74B1A4;
    --teal-pale: #e8f4f2;
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --charcoal: #1a1a2e;
    --off-white: #F8F6F1;
    --drawer-w: 320px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: var(--off-white); overflow-x: hidden; }

/* TOP BAR — hidden on homepage */
.top-bar { display: none; }

/* NAVBAR */
.navbar {
    position: fixed; width: 100%; z-index: 1100; padding: 0;
    background: transparent; transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
}
.navbar.scrolled {
    background: rgba(10,26,26,0.9);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 32px; transition: padding 0.4s; width: 100%;
}
.navbar.scrolled .navbar-inner { padding: 12px 32px; }

.brand-block { display: flex; align-items: center; gap: 14px; text-decoration: none; }

.logo-wrap img {
    height: 80px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    transition: height 0.4s, transform 0.5s cubic-bezier(0.34,1.56,0.64,1), filter 0.4s;
    transform-origin: center;
}
.navbar.scrolled .logo-wrap img { height: 54px; }
.logo-wrap img:hover {
    transform: rotate(-8deg) scale(1.18);
    filter: drop-shadow(0 0 12px rgba(116,177,164,0.7)) drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.logo-sep {
    width: 1px; height: 68px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
    transition: height 0.4s; flex-shrink: 0;
}
.navbar.scrolled .logo-sep { height: 46px; }

.logo2 { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.logo2 img {
    height: 54px;
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.5));
    transition: height 0.4s, transform 0.5s cubic-bezier(0.34,1.56,0.64,1), filter 0.4s;
    transform-origin: center;
}
.navbar.scrolled .logo2 img { height: 40px; }
.logo2 img:hover {
    transform: scale(1.2) translateY(-3px);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(201,168,76,0.8));
}
.logo2 span {
    font-size: 9px; color: rgba(255,255,255,0.6); letter-spacing: 1.8px;
    text-transform: uppercase; white-space: nowrap;
    font-weight: 700; font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.brand-text-sep {
    width: 1px; height: 68px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
    transition: height 0.4s; flex-shrink: 0;
}
.navbar.scrolled .brand-text-sep { height: 46px; }

.brand-name-block { display: flex; flex-direction: column; justify-content: center; }
.brand-abbr {
    font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: #fff;
    letter-spacing: 4px; line-height: 1; transition: font-size 0.4s;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-shadow: 0 1px 0 rgba(255,255,255,0.15), 0 2px 8px rgba(0,0,0,0.4);
}
.navbar.scrolled .brand-abbr { font-size: 24px; }
.brand-full {
    font-family: 'Cormorant Garamond', serif; font-size: 12.5px;
    color: var(--teal-light); letter-spacing: 0.8px; font-weight: 700;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.brand-est {
    font-size: 9px; color: rgba(255,255,255,0.45);
    letter-spacing: 2.5px; text-transform: uppercase; margin-top: 3px;
    font-weight: 600; font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Extra logo beside IIChE text */
.extra-logo img {
    height: 70px;
    transition: height 0.4s, transform 0.5s cubic-bezier(0.34,1.56,0.64,1), filter 0.4s;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
    transform-origin: center;
}
.navbar.scrolled .extra-logo img { height: 50px; }
.extra-logo img:hover {
    transform: scale(1.15) translateY(-4px);
    filter: drop-shadow(0 0 14px rgba(116,177,164,0.6)) drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Menu button */
.menu-btn {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
    color: #fff; padding: 9px 16px; cursor: pointer; transition: all 0.3s;
    font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}
.menu-btn:hover { background: rgba(116,177,164,0.15); border-color: var(--teal-light); color: var(--teal-light); }
.menu-btn .bars { display: flex; flex-direction: column; gap: 4px; }
.menu-btn .bars span { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: all 0.4s; }
.drawer-open .menu-btn .bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.drawer-open .menu-btn .bars span:nth-child(2) { opacity: 0; }
.drawer-open .menu-btn .bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* DRAWER */
.drawer-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1050;
    opacity: 0; visibility: hidden; transition: all 0.35s; backdrop-filter: blur(4px);
}
.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }

.side-drawer {
    position: fixed; top: 0; left: 0; width: var(--drawer-w); height: 100vh;
    background: #071414; z-index: 1200; transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto; display: flex; flex-direction: column;
    scrollbar-width: thin; scrollbar-color: var(--teal-mid) transparent;
}
.drawer-open .side-drawer { transform: translateX(0); box-shadow: 20px 0 70px rgba(0,0,0,0.7); }

.drawer-top-stripe { height: 4px; background: linear-gradient(90deg, var(--teal-deep), var(--teal-light), var(--gold)); flex-shrink: 0; }
.drawer-head {
    padding: 22px 24px 18px; border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.drawer-head .d-brand { display: flex; align-items: center; gap: 12px; }
.drawer-head img { height: 36px; }
.drawer-head .d-name { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: #fff; letter-spacing: 2px; line-height: 1; }
.drawer-head .d-name small { display: block; font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 400; color: var(--teal-light); letter-spacing: 1.5px; text-transform: uppercase; }
.drawer-close-btn {
    width: 32px; height: 32px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
    color: rgba(255,255,255,0.5); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 14px; transition: 0.3s;
}
.drawer-close-btn:hover { background: rgba(201,168,76,0.15); border-color: var(--gold); color: var(--gold); }

.drawer-body { flex-grow: 1; padding: 8px 0; }
.d-section-lbl { font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.2); padding: 16px 24px 8px; }

.d-item {
    display: flex; align-items: center;
    padding: 11px 24px; color: rgba(255,255,255,0.7); text-decoration: none;
    font-size: 13px; font-weight: 400; cursor: pointer; transition: all 0.25s;
    border-left: 2px solid transparent; user-select: none;
}
.d-item:hover { background: rgba(116,177,164,0.07); color: #fff; border-left-color: var(--teal-light); padding-left: 30px; }
.d-item.is-open { color: var(--teal-light); border-left-color: var(--teal-light); background: rgba(0,77,77,0.2); }
.d-icon { width: 30px; color: var(--teal-light); opacity: 0.6; font-size: 12px; flex-shrink: 0; }
.d-label { flex-grow: 1; }
.d-badge { background: #dc3545; color: #fff; font-size: 8px; padding: 1px 5px; border-radius: 3px; text-transform: uppercase; font-weight: 700; margin-left: 6px; }
.d-arrow { font-size: 9px; color: rgba(255,255,255,0.25); transition: transform 0.3s; flex-shrink: 0; }
.d-item.is-open .d-arrow { transform: rotate(90deg); color: var(--teal-light); }

.d-sub { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); background: rgba(0,0,0,0.3); }
.d-sub.is-open { max-height: 500px; }
.d-sub-item { display: block; padding: 9px 24px 9px 54px; color: rgba(255,255,255,0.45); text-decoration: none; font-size: 12px; transition: all 0.2s; position: relative; }
.d-sub-item::before { content: '›'; position: absolute; left: 38px; color: var(--teal-light); opacity: 0.4; }
.d-sub-item:hover { color: var(--teal-light); padding-left: 58px; background: rgba(116,177,164,0.05); }

.drawer-foot { padding: 18px 24px; border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.drawer-foot .socials a { color: rgba(255,255,255,0.35); font-size: 13px; margin-right: 14px; transition: 0.3s; }
.drawer-foot .socials a:hover { color: var(--teal-light); }
.drawer-foot .contact { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.25); line-height: 1.8; }
.drawer-foot .contact i { color: var(--teal-light); margin-right: 6px; }

/* HERO */
.carousel-item { height: 100vh; min-height: 600px; overflow: hidden; position: relative; }
.bg-zoom { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 1; }
.active .bg-zoom { animation: kenburns 20s linear infinite alternate; }
.carousel-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,30,30,0.68) 0%, rgba(0,0,0,0.3) 100%); z-index: 2;
}
.carousel-caption {
    top: 50%; transform: translateY(-50%); bottom: auto; z-index: 10;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.5); text-align: left; left: 8%; right: 38%;
}
.hero-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    color: var(--teal-light); margin-bottom: 16px; opacity: 0;
    display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--teal-light); }
.active .hero-eyebrow { animation: fadeInUp 0.8s ease forwards 0.2s; }
.hero-title {
    font-family: 'Cormorant Garamond', serif; font-size: 4.8rem; font-weight: 700;
    line-height: 1.05; margin-bottom: 18px; opacity: 0; transform: translateY(30px); color: #fff;
}
.active .hero-title { animation: fadeInUp 1s ease forwards 0.4s; }
.hero-sub { font-size: 1rem; font-weight: 300; letter-spacing: 2px; margin-bottom: 30px; opacity: 0; color: rgba(255,255,255,0.75); transform: translateY(15px); }
.active .hero-sub { animation: fadeInUp 0.9s ease forwards 0.7s; }
.hero-cta { opacity: 0; transform: translateY(10px); }
.active .hero-cta { animation: fadeInUp 0.9s ease forwards 1s; }
.btn-hero {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--teal-deep); border: 1px solid rgba(116,177,164,0.4); color: #fff;
    padding: 12px 28px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; text-decoration: none; border-radius: 4px; transition: 0.35s;
}
.btn-hero:hover { background: var(--teal-mid); color: #fff; border-color: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,93,93,0.4); }
@keyframes kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.12); } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.carousel-control-prev, .carousel-control-next {
    width: 50px; height: 50px; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%;
    top: 50%; transform: translateY(-50%); opacity: 0.6; transition: 0.3s; bottom: auto;
}
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; background: rgba(255,255,255,0.1); border-color: #fff; }
.carousel-control-prev { left: 30px; }
.carousel-control-next { right: 30px; }
.carousel-indicators [data-bs-target] { width: 40px; height: 2px; border: none; }

/* QUICK BELT */
.quick-belt { background: var(--teal-deep); position: relative; z-index: 40; overflow: hidden; }
.quick-belt::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.015) 10px, rgba(255,255,255,0.015) 20px);
}
.quick-belt-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.quick-belt-inner::-webkit-scrollbar { display: none; }
.q-link {
    display: flex; align-items: center; gap: 7px; padding: 17px 24px;
    color: rgba(255,255,255,0.65); text-decoration: none; font-size: 12px;
    font-weight: 500; letter-spacing: 0.4px; white-space: nowrap; transition: all 0.3s;
    border-right: 1px solid rgba(255,255,255,0.07); position: relative; flex-shrink: 0;
}
.q-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.3s; }
.q-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.q-link:hover::after { width: 100%; }
.q-link.featured { background: var(--gold); color: #000 !important; font-weight: 700; }
.q-link.featured:hover { background: var(--gold-light); }
.q-link.featured::after { display: none; }
.q-link i { font-size: 10px; opacity: 0.7; }
.q-badge { background: #dc3545; color: #fff; font-size: 7px; padding: 1px 4px; border-radius: 2px; text-transform: uppercase; font-weight: 800; }

/* ANNOUNCEMENT BAR */
.annbar { background: #111; display:flex; align-items:center; overflow:hidden; border-top:1px solid rgba(255,255,255,0.08); }
.annbar-label { background:var(--teal-deep); color:#fff; padding:13px 24px; font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; white-space:nowrap; display:flex; align-items:center; gap:8px; flex-shrink:0; }
.annbar-label i { color:var(--gold); }
.annbar-track { flex-grow:1; overflow:hidden; }
.annbar-text { display:inline-block; animation:scroll-ann 38s linear infinite; font-size:13px; font-weight:500; color:#fcf203; padding:13px 0; white-space:nowrap; }
@keyframes scroll-ann { 0% { transform:translateX(100vw); } 100% { transform:translateX(-100%); } }

@media (max-width:768px) {
    .hero-title { font-size:3rem; }
    .carousel-caption { left:5%; right:5%; text-align:center; }
    .hero-eyebrow { justify-content:center; }
    .brand-name-block { display:none !important; }
    .brand-text-sep { display:none !important; }
    .extra-logo { display:none !important; }
    .logo2 span { display:none; }
    .navbar-inner { padding:12px 16px; }
}
