@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');


:root {
  /* Ultra Premium Light Theme */
  --bg:         #FAFCFF;
  --bg2:        #F2F6FA;
  --surface:    rgba(255, 255, 255, 0.9);
  --surface-2:  rgba(255, 255, 255, 0.6);
  
  --text:       #0B132B;
  --sub:        #3A4A5A;
  --muted:      #6B7A90;
  --faint:      #94A3B8;
  
  --red:        #7B1113;
  --red-d:      #500000;
  --red-l:      #A31F2A;
  --red-glow:   rgba(123, 17, 19, 0.15);
  
  --gold:       #D4AF37;
  --gold-l:     #E5C058;
  --gold-glow:  rgba(212, 175, 55, 0.15);
  
  --navy:       #1D3557;
  --navy-d:     #0B1528;
  --navy-l:     #2A4D7A;
  
  --white:      #FFFFFF;
  
  /* Borders */
  --border:     rgba(0, 20, 50, 0.08);
  --border-m:   rgba(0, 20, 50, 0.15);
  
  /* Radius */
  --radius:     24px;
  --radius-sm:  12px;
  --radius-lg:  32px;
  
  /* Nav */
  --nav-h:      80px;
  --max-w:      1300px;
  
  /* Shadows */
  --sh-sm:      0 8px 24px rgba(0, 15, 40, 0.04);
  --sh-md:      0 16px 40px rgba(0, 15, 40, 0.06);
  --sh-lg:      0 24px 60px rgba(0, 15, 40, 0.08), 0 0 20px rgba(212, 175, 55, 0.05);
  --sh-red:     0 8px 30px var(--red-glow);
  --sh-gold:    0 8px 30px var(--gold-glow);
}

/* --- RESET & BASE --------------------------------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.2; }

/* --- UTILITIES ------------------------------------ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }

.grad-text {
  background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- MESH BACKGROUND ------------------------------ */
body::before {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(230, 57, 70, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 105%, rgba(212, 175, 55, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(29, 53, 87, 0.1) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* --- ANIMATIONS ----------------------------------- */
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.95); }
}
@keyframes pulse-ring { 0% { transform: scale(0.85); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes gold-bar-scroll { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.anim-fade { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.anim-fade.visible { opacity: 1; transform: translateY(0); }
.anim-stagger .anim-fade:nth-child(1) { transition-delay: .05s; }
.anim-stagger .anim-fade:nth-child(2) { transition-delay: .12s; }
.anim-stagger .anim-fade:nth-child(3) { transition-delay: .20s; }
.anim-stagger .anim-fade:nth-child(4) { transition-delay: .28s; }
.anim-stagger .anim-fade:nth-child(5) { transition-delay: .36s; }
.anim-stagger .anim-fade:nth-child(6) { transition-delay: .44s; }

.anim-slide-left  { opacity: 0; transform: translateX(-40px); transition: all .8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.anim-slide-right { opacity: 0; transform: translateX(40px);  transition: all .8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.anim-slide-left.visible, .anim-slide-right.visible { opacity: 1; transform: translateX(0); }
.anim-pop { opacity: 0; transform: scale(.9); transition: all .6s cubic-bezier(.34,1.56,.64,1); }
.anim-pop.visible { opacity: 1; transform: scale(1); }

/* --- NAVBAR ---------------------------------------- */
.navbar {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  width: 95%; max-width: 1200px; height: var(--nav-h);
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 20px;
  z-index: 1000; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--sh-sm);
}
.navbar.scrolled {
  width: 100%; top: 0; border-radius: 0; max-width: none;
  background: rgba(255, 255, 255, 0.95); border-left: none; border-right: none; border-top: none;
  box-shadow: var(--sh-md);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 2rem; }
.nav-brand { display: flex; align-items: center; gap: .6rem; }
.nav-logo { height: 70px; width: auto; display: block; object-fit: contain; }

.nav-menu { display: flex; gap: 0.1rem; align-items: center; }
.nav-menu a {
  padding: .5rem 0.8rem; border-radius: 20px;
  font-size: .75rem; font-weight: 600; color: var(--sub);
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: all .3s ease; position: relative; white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--navy-d); background: rgba(0, 20, 50, 0.05); }

/* --- DROPDOWN MENU --- */
.nav-item-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 0.5rem 0; min-width: 260px;
  box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease;
  display: flex; flex-direction: column; z-index: 1000;
}
.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
  padding: 0.8rem 1.5rem; color: var(--text); border-radius: 0;
  text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.9rem;
}
.nav-dropdown a:hover {
  background: rgba(123, 17, 19, 0.05); color: var(--red);
}

.hamburger { display: none; border: none; background: none; cursor: pointer; padding: .5rem; border-radius: 8px; flex-direction: column; gap: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
@media (max-width: 900px) {
  .hamburger { display: flex; z-index: 1001; }
  .nav-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; transition: 0.5s; border-radius: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.1); padding-top: 100px; padding-left: 0; overflow-y: auto; }
  .nav-menu.open { right: 0; }
  .nav-menu a { font-size: 1.05rem; color: var(--text); padding: 1.2rem 2rem; border-bottom: 1px solid var(--border); width: 100%; display: block; font-weight: 600; transition: all 0.3s ease; }
  .nav-menu a:hover { color: var(--red); background: rgba(123, 17, 19, 0.05); }
  
  /* Mobile dropdown styling */
  .nav-item-dropdown { width: 100%; display: flex; flex-direction: column; }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: rgba(0,20,50,0.02); border: none; box-shadow: none; padding: 0; min-width: auto; display: none; flex-direction: column; }
  .nav-item-dropdown:hover .nav-dropdown { display: flex; }
  .nav-item-dropdown.open .nav-dropdown { display: flex; }
  .nav-dropdown a { padding: 1rem 2rem 1rem 3.5rem; border-bottom: 1px solid rgba(0,20,50,0.05); font-size: 0.95rem; font-weight: 500; }
  .nav-dropdown a:hover { background: rgba(123, 17, 19, 0.08); color: var(--red); }
  
  /* Sub-dropdown styling for mobile */
  .nav-sub-menu { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: none; background: rgba(0,20,50,0.04); padding: 0; }
  .nav-sub-dropdown:hover .nav-sub-menu { display: flex; }
  .nav-sub-dropdown.open .nav-sub-menu { display: flex; }
  .nav-sub-menu a { padding: 0.9rem 2rem 0.9rem 4.5rem; font-size: 0.9rem; border-bottom: 1px solid rgba(0,20,50,0.03); }
  
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .navbar { width: 100%; border-radius: 0; top: 0; border: none; border-bottom: 1px solid var(--border); }
}

/* --- SHARED PAGE HERO -------------------------------- */
.page-hero { padding: calc(var(--nav-h) + 6rem) 2rem 4rem; text-align: center; background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%); position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero::before {
  content: ''; position: absolute; top: -150px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.15), transparent 65%);
  animation: float-blob 14s ease-in-out infinite;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -150px; left: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 65%);
  background: radial-gradient(circle, rgba(123, 17, 19, 0.1), transparent 65%);
  animation: float-blob 18s ease-in-out infinite reverse;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .tag {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: 2rem; padding: .5rem 1.5rem; border-radius: 50px;
  background: var(--red-glow);
  border: 1px solid rgba(123, 17, 19, 0.3);
  font-size: .85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); backdrop-filter: blur(8px);
}
.page-hero h1 {
  font-family: 'Inter', sans-serif; font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900; color: var(--navy-d); line-height: 1.1; letter-spacing: -1px; margin-bottom: 1.5rem;
}
.page-hero h1 em { color: var(--red); font-style: normal; }
.page-hero p {
  font-size: 1.15rem; color: var(--muted); max-width: 650px; margin: 0 auto; line-height: 1.8;
}

/* --- SECTIONS -------------------------------------- */
.section { padding: 8rem 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { margin-bottom: 4rem; }
.section-header h2 {
  font-family: 'Inter', sans-serif; font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 900; color: var(--navy-d); line-height: 1.2; letter-spacing: -0.5px;
}
.section-header p { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; line-height: 1.8; }
.section-header .bar {
  width: 60px; height: 4px; border-radius: 2px; margin-top: 1.5rem;
  background: linear-gradient(90deg, var(--red), var(--red));
  box-shadow: 0 0 15px rgba(123, 17, 19, 0.5);
}
.section-header.centered { text-align: center; }
.section-header.centered .bar { margin: 1.5rem auto 0; }

/* --- BUTTONS --------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: 1rem 2.5rem; border-radius: 30px;
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: 1px;
  transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
}
.btn-red {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-l) 100%);
  color: #fff; box-shadow: var(--sh-red);
}
.btn-red:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(230, 57, 70, 0.5); color: #fff; }
.btn-navy {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-d) 100%);
  color: #fff; box-shadow: var(--sh-red);
}
.btn-navy:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(123, 17, 19, 0.5); color: #fff; }
.btn-outline {
  background: rgba(255,255,255,0.15); color: var(--white);
  border: 2px solid rgba(255,255,255,0.6); backdrop-filter: blur(12px);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.btn-outline:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.8); color: #fff; transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* --- CARDS & GLASSMORPHISM ------------------------- */
.card, .about-card, .portfolio-mini, .news-card {
  background: var(--surface); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-top: 1px solid var(--border-m);
  border-radius: var(--radius); padding: 3rem 2rem;
  box-shadow: var(--sh-sm); transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative; overflow: hidden;
}
.card-hover:hover, .about-card:hover, .portfolio-mini:hover, .news-card:hover {
  transform: translateY(-10px); background: var(--surface-2);
  border-color: rgba(123, 17, 19, 0.3); box-shadow: var(--sh-lg);
}

.news-card { padding: 0; }
.news-card img { width: 100%; height: 240px; object-fit: cover; }
.news-content { padding: 2rem; }
.news-tag { display: inline-block; padding: 0.4rem 1.2rem; background: rgba(230,57,70,0.1); color: var(--red-l); font-size: 0.75rem; font-weight: 700; border-radius: 20px; margin-bottom: 1rem; text-transform: uppercase; border: 1px solid rgba(230,57,70,0.2); }
.news-content h3 { font-family: 'Inter', sans-serif; font-size: 1.4rem; color: var(--navy-d); margin-bottom: 1rem; }
.news-content p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.news-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 1rem; font-size: 0.85rem; color: var(--faint); }

/* --- PROFILE CARDS --------------------------------- */
.profile-card {
  display: block; background: var(--surface); backdrop-filter: blur(16px);
  border-radius: var(--radius); border: 1px solid var(--border); border-top: 1px solid var(--border-m);
  box-shadow: var(--sh-sm); padding: 3rem 1.5rem; text-align: center;
  position: relative; overflow: hidden; opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease, box-shadow .5s cubic-bezier(.16,1,.3,1), border-color .5s ease, background .5s ease;
}
.profile-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; opacity: 0.7; transition: height .4s ease, opacity .4s ease;
}
.profile-card:hover { box-shadow: var(--sh-lg); background: var(--surface-2); border-color: rgba(123, 17, 19, 0.3); }
.profile-card:hover::before { height: 6px; opacity: 1; }
.profile-card.visible { opacity: 1; transform: translateY(0); }

/* Tier accent bars */
.profile-card.tier-president::before { background: linear-gradient(90deg, var(--red), var(--red), var(--red)); background-size: 200%; animation: gold-bar-scroll 3s linear infinite; }
.profile-card.tier-deputy::before   { background: linear-gradient(90deg, var(--red), var(--red-l)); }
.profile-card.tier-admin::before    { background: linear-gradient(90deg, var(--red), var(--red)); }
.profile-card.tier-vp::before       { background: linear-gradient(90deg, var(--red), var(--red)); }
.profile-card.tier-dept::before     { background: linear-gradient(90deg, var(--red-l), var(--red)); }

/* Avatar */
.profile-card .avatar {
  width: 100% !important; height: 100% !important; border-radius: 0;
  border: none !important; object-fit: cover;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
  margin: 0; box-shadow: none;
}

/* Role pill */
.profile-card .role {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5rem 1.2rem; border-radius: 50px; font-size: .8rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 1.25rem; border: 1px solid currentColor;
  background: rgba(123, 17, 19, 0.08); color: var(--red); border-color: rgba(123, 17, 19, 0.25);
  transition: all .3s ease;
}
.profile-card.tier-president .role { background: rgba(230,57,70,.1);  color: var(--red-l);  border-color: rgba(230,57,70,.3); }
.profile-card.tier-deputy .role    { background: rgba(230,57,70,.1); color: var(--red-l); border-color: rgba(230,57,70,.3); }
.profile-card.tier-admin .role     { background: rgba(123,17,19,.1); color: var(--red); border-color: rgba(123,17,19,.3); }
.profile-card.tier-vp .role        { background: rgba(230,57,70,.1);  color: var(--red-l);  border-color: rgba(230,57,70,.3); }
.profile-card.tier-dept .role      { background: rgba(255,255,255,.05);  color: var(--sub);  border-color: rgba(255,255,255,.15); }

.profile-card h3 { font-family: 'Inter', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--navy-d); margin-bottom: .2rem; line-height: 1.3; }
.profile-card .nickname { font-size: .9rem; color: var(--red); font-weight: 600; margin-bottom: 1rem; }
.profile-card .major { font-size: .85rem; color: var(--muted); line-height: 1.5; margin-bottom: 1.5rem; }

/* Social links in card */
.profile-card .social-links { display: flex; justify-content: center; gap: 1rem; }
.profile-card .social-links a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .3s ease; border: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-card .social-links a:hover { background: var(--gold); color: #000; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); border-color: var(--gold); }

/* --- FOOTER ---------------------------------------- */
footer {
  padding: 5rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--red-d) 0%, var(--red) 100%);
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
  color: rgba(255,255,255,0.7);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.footer-brand { margin-bottom: 2rem; }
.footer-logo { height: 100px; margin: 0 auto; filter: drop-shadow(0 0 15px rgba(255,255,255,0.1)); }
.footer-links {
  display: flex; justify-content: center; gap: 2rem;
  margin-bottom: 2rem; flex-wrap: wrap; align-items: center;
}
/* Hide any stray nav-item-dropdown wrappers inside footer */
.footer-links .nav-item-dropdown { display: none; }
.footer-links a {
  color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; transition: 0.3s;
}
.footer-links a:hover { color: var(--gold-l); }
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.9rem; }

/* --- INDIVIDUAL PROFILE PAGE ----------------------- */
.p-hero { padding: calc(var(--nav-h) + 6rem) 2rem 5rem; background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%); text-align: center; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.p-avatar { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin: 0 auto 2rem; border: 4px solid var(--gold); box-shadow: 0 15px 40px rgba(0,0,0,0.6); }
.p-name { font-family: 'Inter', sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; color: var(--navy-d); margin-bottom: 0.5rem; line-height: 1.1; }
.p-role { font-size: 1.1rem; color: var(--red); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
.p-major { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin: 0 auto 2rem; }
.p-socials { display: flex; justify-content: center; gap: 1.5rem; }
.p-socials a { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 1.2rem; transition: 0.3s; }
.p-socials a:hover { background: var(--gold); color: #000; transform: translateY(-4px); box-shadow: var(--sh-gold); border-color: var(--gold); }

.p-content { padding: 6rem 2rem; max-width: 900px; margin: 0 auto; }
.p-section { margin-bottom: 4rem; }
.p-section h2 { font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 800; color: var(--navy-d); margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.p-section p { font-size: 1.1rem; color: var(--sub); line-height: 1.8; margin-bottom: 1.5rem; }
.p-section ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.p-section li { font-size: 1.1rem; color: var(--sub); margin-bottom: 0.8rem; }

/* --- RESPONSIVE GRIDS ------------------------------ */
.exco-grid, .about-grid, .portfolio-grid, .events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem; }

/* --- EXCO PAGE SPECIFICS --------------------------- */
.tier-label {
  font-family: 'Inter', sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--navy-d);
  text-align: center; margin: 5rem 0 2rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.oc-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem;
}
.photo-reveal-wrap {
  width: 190px; height: 190px; margin: 0 auto 1.5rem;
  border-radius: 50%; overflow: hidden;
  border: 4px solid var(--gold); box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  position: relative; transition: 0.5s;
}
.president-photo-wrap {
  width: 250px; height: 250px; border: 5px solid var(--gold);
}
.photo-reveal-wrap img { width: 100%; height: 100%; object-fit: cover; }
.photo-reveal-wrap:hover { transform: scale(1.05) rotate(2deg); border-color: var(--red); }

.premium-president-card {
  max-width: 480px; padding: 4rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin: 0 auto 3rem;
  box-shadow: var(--sh-lg);
  position: relative; overflow: hidden;
}
.president-badge {
  display: inline-block; padding: 0.6rem 2rem;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-d) 100%);
  color: #fff; border-radius: 50px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 1.5rem; font-size: 0.9rem;
  box-shadow: var(--sh-red);
}
.president-name {
  font-family: 'Inter', sans-serif; font-size: 2rem;
  font-weight: 900; color: var(--navy-d); line-height: 1.1; letter-spacing: -1px; margin-bottom: 1.5rem;
}
.president-name .major { display: block; font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--red); font-weight: 700; letter-spacing: 1px; margin-top: 0.5rem; text-transform: uppercase; }

.name {
  font-family: 'Inter', sans-serif; font-size: 1.5rem;
  font-weight: 800; color: var(--navy-d); line-height: 1.2; margin-bottom: 0.2rem;
}
.surname { color: var(--red); font-weight: 700; font-family: 'Inter', sans-serif; font-size: 0.9rem; display: block; margin-top: 0.4rem; letter-spacing: 1px; }
.president-name .surname { font-size: 1.1rem; }

.portfolio-section { margin-top: 4rem; }
.dept-title-centered {
  font-size: 1.2rem; font-weight: 700; color: var(--red); text-align: center;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem;
}
.dept-block { padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.dept-title { font-size: 1.3rem; font-weight: 800; color: var(--navy-d); }

/* --- ABOUT & STATS -------------------------------- */
.stat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.stat-box { text-align: center; }
.stat-num {
  font-family: 'Inter', sans-serif; font-size: 3rem; font-weight: 900;
  color: var(--red);
  line-height: 1; margin-bottom: 0.5rem;
}
.stat-lbl { font-size: 0.85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; }

.about-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  margin-bottom: 1.5rem; box-shadow: var(--sh-sm);
}
.about-icon.red { background: rgba(230,57,70,0.15); color: var(--red-l); border: 1px solid rgba(230,57,70,0.3); }
.about-icon.navy { background: rgba(212,175,55,0.15); color: var(--navy); border: 1px solid rgba(212,175,55,0.3); }

.portfolio-mini .p-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  margin-bottom: 1.2rem; background: rgba(230,57,70,0.1); color: var(--red-l);
  border: 1px solid rgba(230,57,70,0.2);
}
.portfolio-mini h4 { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--navy-d); margin-bottom: 0.5rem; }
.portfolio-mini p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.about-card h3 { font-family: 'Inter', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--navy-d); margin-bottom: 1rem; }
.about-card p, .about-card li { font-size: 1.05rem; color: var(--sub); line-height: 1.8; }
.about-card ul { padding-left: 1.5rem; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.about-card li { list-style: disc; }

/* --- WHAT WE DO SECTION CARDS ---------------------- */
.wwd-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  background: var(--red-glow); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; border: 1px solid rgba(123,17,19,0.2);
  transition: all .4s cubic-bezier(.16,1,.3,1);
}
.wwd-card:hover .wwd-icon-wrap {
  background: var(--red); color: #fff;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: var(--sh-red);
}
.wwd-card-text { flex: 1; }
.wwd-card-text h3 {
  font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 800;
  color: var(--navy-d); margin-bottom: .5rem;
}
.wwd-card-text p { font-size: .95rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.wwd-card-text a {
  font-size: .85rem; font-weight: 700; color: var(--red);
  display: inline-flex; align-items: center; gap: .4rem;
  transition: gap .25s;
}
.wwd-card-text a:hover { gap: .8rem; }

/* --- SOCIALS SECTION ------------------------------- */
.socials-section {
  padding: 8rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}

/* --- PROFILE DETAIL ICON (light theme fix) --------- */
.detail-icon {
  background: rgba(123,17,19,0.06) !important;
  border: 1px solid rgba(123,17,19,0.12) !important;
  color: var(--red) !important;
}
.name { font-family: 'Inter', sans-serif !important; font-size: 1.25rem !important; letter-spacing: -0.5px; }
.president-name { font-family: 'Inter', sans-serif !important; font-size: 1.8rem !important; letter-spacing: -0.5px; }

/* --- ABOUT PAGE GRID ------------------------------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.5rem; }

/* --- IMPROVED CARD HOVER LIFT ---------------------- */
.card-hover:hover { transform: translateY(-8px) !important; }

/* --- MOBILE NAV DROPDOWN FIX ----------------------- */
@media (max-width: 900px) {
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0;
    background: transparent; padding: 0 0 0 1rem;
    display: none;
  }
  .nav-item-dropdown:hover .nav-dropdown,
  .nav-item-dropdown.open .nav-dropdown { display: flex; }
  .nav-dropdown a { font-size: 1rem; padding: 0.5rem 1rem; }
}

/* HERO GLOW RESTORE */
@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}
.hero-logo-panel::before {
  content: ''; position: absolute;
  width: 120%; height: 120%; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,0.2) 0%, transparent 65%);
  animation: pulse-glow 4s ease-in-out infinite;
  z-index: 0; pointer-events: none;
}

/* NAME CAPITALIZATION OVERRIDE */
.name, .president-name, .member-name {
  text-transform: uppercase !important;
}
.breadcrumbs .current {
  text-transform: uppercase !important;
}

/* --- MOBILE RESPONSIVENESS OVERRIDES --- */
@media (max-width: 1200px) {
  .exco-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .exco-grid { grid-template-columns: repeat(2, 1fr); }
  .exco-dept-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero h1 { font-size: 2.8rem; }
}
@media (max-width: 600px) {
  .exco-grid { grid-template-columns: 1fr; }
  .exco-dept-grid { grid-template-columns: 1fr; }
  .profile-card { padding: 1.5rem; }
  .page-hero { padding: calc(var(--nav-h) + 4rem) 1.5rem 3rem; }
  .page-hero h1 { font-size: 2.2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .footer-links ul { align-items: center; }
  .footer-socials { justify-content: center; }
}



/* --- SUB-DROPDOWN MENU --- */
.nav-sub-dropdown { position: relative; width: 100%; }
.nav-sub-dropdown > a { display: flex; justify-content: space-between; align-items: center; }
.nav-sub-menu {
  position: absolute; top: 0; left: 100%;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 0.5rem 0; min-width: 260px;
  box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateX(10px);
  transition: all 0.3s ease;
  display: flex; flex-direction: column; z-index: 1000;
}
.nav-sub-dropdown:hover .nav-sub-menu {
  opacity: 1; visibility: visible; transform: translateX(0);
}
@media (max-width: 900px) {
  .nav-sub-menu { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-sub-dropdown:hover .nav-sub-menu { display: flex; }
}

/* --- CONTACT PAGE STYLING --- */
.social-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-d);
  box-shadow: var(--sh-sm);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}
.social-pill:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  color: #fff;
}
.social-pill.ig:hover { background: #E1306C; border-color: #E1306C; box-shadow: 0 10px 25px rgba(225, 48, 108, 0.35); }
.social-pill.tk:hover { background: #000000; border-color: #000000; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35); }
.social-pill.tg:hover { background: #0088cc; border-color: #0088cc; box-shadow: 0 10px 25px rgba(0, 136, 204, 0.35); }
.social-pill.fb:hover { background: #1877F2; border-color: #1877F2; box-shadow: 0 10px 25px rgba(24, 119, 242, 0.35); }
.social-pill.li:hover { background: #0077b5; border-color: #0077b5; box-shadow: 0 10px 25px rgba(0, 119, 181, 0.35); }
.social-pill.wa:hover { background: #25D366; border-color: #25D366; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35); }

.other-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}
.other-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: rgba(123, 17, 19, 0.25);
}


/* ═══════════════════════════════════════════════════
   DESIGN POLISH — GLOBAL FIXES & IMPROVEMENTS
   ═══════════════════════════════════════════════════ */

/* Poppins fallback for headings that use it */
h1, h2, h3 { font-family: 'Poppins', 'Inter', sans-serif; }

/* Smooth image loading */
img { transition: opacity 0.3s ease; }

/* Better focus ring for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- NAVBAR: tighter logo on scroll --- */
.navbar.scrolled .nav-logo { height: 52px; }

/* --- PAGE HERO: better mobile padding --- */
@media (max-width: 600px) {
  .page-hero { padding: calc(var(--nav-h) + 3rem) 1.25rem 2.5rem; }
  .page-hero h1 { font-size: 2rem; letter-spacing: -0.5px; }
  .page-hero p { font-size: 1rem; }
}

/* --- SECTION SPACING MOBILE --- */
@media (max-width: 600px) {
  .section { padding: 5rem 0; }
  .container { padding: 0 1.25rem; }
}

/* --- DEPT LAYOUT GRID RESPONSIVE --- */
@media (max-width: 992px) {
  .dept-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* --- CARD: consistent border-radius --- */
.card, .about-card, .premium-card { border-radius: var(--radius); }

/* --- BUTTON: consistent sizing on mobile --- */
@media (max-width: 500px) {
  .btn { padding: 0.85rem 1.75rem; font-size: 0.9rem; }
}

/* --- SOCIAL TILES: 2-col on tablet --- */
@media (max-width: 700px) {
  .social-tiles { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 420px) {
  .social-tiles { grid-template-columns: 1fr !important; }
}

/* --- STATS BAND: 2-col on mobile --- */
@media (max-width: 600px) {
  .stats-band-inner { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem; }
  .stats-band-num { font-size: 2.2rem; }
}

/* --- WWD SECTION: single col on mobile --- */
@media (max-width: 768px) {
  .wwd-inner { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .wwd-heading { position: static !important; }
}

/* --- PROFILE SIDEBAR: full width on mobile --- */
@media (max-width: 992px) {
  .premium-profile-grid { grid-template-columns: 1fr !important; }
}

/* --- FOOTER: responsive gap --- */
@media (max-width: 600px) {
  .footer-links { gap: 1.25rem; }
  .footer-links a { font-size: 0.78rem; }
}

/* --- ABOUT SECTION SPACING --- */
.about-section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.about-section.alt { background: var(--bg2); }

/* --- PLACEHOLDER IMAGE STYLE --- */
.placeholder-img {
  width: 100%; max-width: 800px; height: 400px;
  background: rgba(0,0,0,0.03);
  border: 2px dashed rgba(0,0,0,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem;
  color: var(--muted); font-weight: 500; font-size: 1.1rem;
}

/* --- LOGO EXPLAIN GRID --- */
.logo-explain-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }
.logo-explain-grid img { width: 100%; max-width: 300px; margin: 0 auto; display: block; }
@media (max-width: 768px) { .logo-explain-grid { grid-template-columns: 1fr; } }

/* --- SECTION TITLE (about page) --- */
.section-title {
  font-size: 2.2rem; font-weight: 800; color: var(--navy);
  margin-bottom: 2rem; text-align: center;
  font-family: 'Poppins', 'Inter', sans-serif;
}

/* --- SPIN RING ANIMATION (profile pages) --- */
@keyframes spinRing { 100% { transform: rotate(360deg); } }
