/* ===== WICE WEBSITE — Global Styles ===== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary:       #6D28D9;
  --primary-dark:  #4C1D95;
  --primary-light: #EDE9FE;
  --primary-mid:   #7C3AED;
  --gold:          #D97706;
  --gold-light:    #FEF3C7;
  --gold-dark:     #92400E;
  --gold-vivid:    #F59E0B;
  --pink:          #DB2777;
  --pink-light:    #FCE7F3;
  --white:         #FFFFFF;
  --off-white:     #FAFAF9;
  --gray-50:       #F9FAFB;
  --gray-100:      #F3F4F6;
  --gray-200:      #E5E7EB;
  --gray-300:      #D1D5DB;
  --gray-500:      #6B7280;
  --gray-600:      #4B5563;
  --gray-700:      #374151;
  --gray-800:      #1F2937;
  --gray-900:      #111827;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(109,40,217,.12);
  --shadow-lg:     0 10px 40px rgba(109,40,217,.18);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    all .3s cubic-bezier(.4,0,.2,1);
  --announce-gap:  0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--gray-900);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-header p { color: var(--gray-600); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(109,40,217,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(109,40,217,.45); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-vivid), var(--gold));
  color: #fff;
  box-shadow: 0 4px 15px rgba(217,119,6,.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(217,119,6,.45); }
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 26px;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  padding: 10px 26px;
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); }
.btn-sm { padding: 8px 20px; font-size: .875rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: calc(var(--announce-h, 0px) + var(--announce-gap, 0px)); left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 72px; max-width: 1280px; margin: 0 auto;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-brand img { height: 48px; width: 48px; object-fit: contain; border-radius: 50%; }
.brand-text .brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.1rem;
  color: var(--primary-dark);
  line-height: 1.1;
}
.brand-text .brand-tagline {
  font-size: .68rem; color: var(--gray-500); font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
}

.navbar-nav {
  display: flex; align-items: center; gap: 2px;
}
.nav-link {
  padding: 8px 12px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}
.navbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── Member dropdown ──────────────────────────────────────── */
.mbr-wrap { position: relative; flex-shrink: 0; }

/* Trigger reuses .btn .btn-primary .btn-sm — only overrides padding & gap */
.mbr-trigger.btn { padding: 5px 14px 5px 5px; gap: 8px; }

.mbr-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; letter-spacing: .03em;
  flex-shrink: 0; line-height: 1;
}
.mbr-name {
  max-width: 170px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mbr-caret { font-size: .6rem; flex-shrink: 0; transition: transform .22s ease; }
.mbr-wrap.open .mbr-caret { transform: rotate(180deg); }

.mbr-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 230px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 36px rgba(0,0,0,.13);
  border: 1px solid var(--gray-200);
  padding: 6px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.mbr-wrap.open .mbr-menu {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}

.mbr-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 4px;
}
.mbr-head-name {
  font-weight: 700; font-size: .88rem; color: #111827;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mbr-head-num { font-size: .72rem; color: #9CA3AF; margin-top: 2px; font-family: monospace; }

.mbr-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: .85rem; font-weight: 500; color: #374151;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.mbr-item:hover { background: #F5F3FF; color: var(--primary); }
.mbr-item i { width: 16px; text-align: center; font-size: .8rem; flex-shrink: 0; }
.mbr-divider { height: 1px; background: var(--gray-100); margin: 4px 0; }
.mbr-logout { color: #DC2626; }
.mbr-logout:hover { background: #FEF2F2; color: #DC2626; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: 8px; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700); border-radius: 2px; transition: var(--transition);
}

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed; top: calc(72px + var(--announce-h, 0px) + var(--announce-gap, 0px)); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px 24px; z-index: 999;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 72px - var(--announce-h, 0px) - var(--announce-gap, 0px));
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-link { display: block; padding: 12px 16px; font-size: 1rem; }
.mobile-menu-divider { height: 1px; background: var(--gray-200); margin: 8px 0 12px; }
.mobile-auth-link { display: flex !important; align-items: center; gap: 10px; color: var(--gray-700); }
.mobile-auth-link i { width: 18px; text-align: center; color: var(--primary); flex-shrink: 0; }
.mobile-auth-logout { color: #DC2626 !important; }
.mobile-auth-logout i { color: #DC2626; }
.mobile-auth-register {
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-dark));
  color: #fff !important; border-radius: 8px; margin-top: 4px;
  justify-content: center;
}
.mobile-auth-register:hover { color: #fff !important; opacity: .9; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #A855F7 100%);
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-blob {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.06); filter: blur(60px);
}
.hero-blob-1 { width: 500px; height: 500px; top: -100px; right: -100px; }
.hero-blob-2 { width: 300px; height: 300px; bottom: 50px; left: -50px; }

.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text { color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: .8rem; font-weight: 600;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 24px;
  letter-spacing: .06em; text-transform: uppercase;
}
.hero-badge span { width: 6px; height: 6px; background: var(--gold-vivid); border-radius: 50%; display: block; }
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: #fff; line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--gold-vivid); }
.hero-subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,.82);
  max-width: 480px; margin-bottom: 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 36px; }
.hero-stat { }
.hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: #fff; line-height: 1;
}
.hero-stat .label { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 4px; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-card {
  background: rgba(255,255,255,.12); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg); padding: 40px; text-align: center;
  width: 100%; max-width: 400px;
}
.hero-logo-wrap {
  width: 160px; height: 160px; margin: 0 auto 24px;
  background: rgba(255,255,255,.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.hero-logo-wrap img { width: 140px; height: 140px; object-fit: contain; border-radius: 50%; }
.hero-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.hero-card p { color: rgba(255,255,255,.75); font-size: .9rem; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .8rem; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollLine 1.5s ease infinite;
}
@keyframes scrollLine { 0%,100%{opacity:.6;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.1)} }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center; padding: 10px 24px; font-size: .875rem;
  font-weight: 500;
}
.announcement-bar a { color: var(--gold-vivid); text-decoration: underline; }

/* ===== CARDS ===== */
.card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden; transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; }
.card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.tag {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 50px;
}
.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-gold { background: var(--gold-light); color: var(--gold-dark); }
.tag-pink { background: var(--pink-light); color: var(--pink); }
.tag-green { background: #D1FAE5; color: #065F46; }
.date-meta { font-size: .8rem; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: .9rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 16px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }

/* ===== FEATURES GRID ===== */
.feature-card {
  padding: 32px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-100); text-align: center; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
}
.feature-icon.purple { background: var(--primary-light); color: var(--primary); }
.feature-icon.gold   { background: var(--gold-light);    color: var(--gold); }
.feature-icon.pink   { background: var(--pink-light);    color: var(--pink); }
.feature-icon.green  { background: #D1FAE5; color: #059669; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { font-size: .9rem; color: var(--gray-600); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
  padding: 120px 0 64px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.page-header-content { position: relative; z-index: 1; }
.page-header .badge-white {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.9);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 50px; margin-bottom: 16px;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 14px; }
.page-header p { color: rgba(255,255,255,.8); max-width: 540px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.breadcrumb a { color: rgba(255,255,255,.65); font-size: .875rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.4); font-size: .75rem; }

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-100); overflow: hidden; margin-bottom: 24px;
}
.sidebar-widget-header {
  padding: 16px 20px; border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.sidebar-widget-header h4 {
  font-size: .95rem; font-weight: 700; color: var(--primary-dark);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-widget-body { padding: 20px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-700); }
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 8px; font-family: inherit; font-size: .9rem;
  color: var(--gray-800); background: #fff; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109,40,217,.1); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary-dark); color: #fff; padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 16px; border-right: 1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--gold-vivid); }
.stat-item .label { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ===== JOURNAL ===== */
.journal-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-100); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.journal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.journal-cover { height: 220px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.journal-cover-inner { text-align: center; color: #fff; padding: 24px; }
.journal-cover-inner h3 { font-size: 1.4rem; margin-bottom: 4px; }
.journal-cover-inner span { font-size: .85rem; opacity: .75; }
.journal-vol-badge { position: absolute; top: 16px; right: 16px; background: var(--gold-vivid); color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.journal-body { padding: 24px; flex: 1; }
.journal-meta { display: flex; gap: 16px; margin-bottom: 16px; font-size: .82rem; color: var(--gray-500); }
.journal-meta i { color: var(--primary); }
.article-list { }
.article-item { padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.article-item:last-child { border-bottom: none; padding-bottom: 0; }
.article-title { font-size: .95rem; font-weight: 600; margin-bottom: 4px; color: var(--gray-800); }
.article-title a:hover { color: var(--primary); }
.article-authors { font-size: .8rem; color: var(--gray-500); margin-bottom: 6px; }
.article-abstract { font-size: .82rem; color: var(--gray-600); line-height: 1.5; }

/* ===== EVENTS ===== */
.event-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-100); overflow: hidden; display: flex; transition: var(--transition); }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.event-date-box { background: var(--primary-dark); color: #fff; padding: 20px 24px; text-align: center; min-width: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event-date-box .day { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.event-date-box .month { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; margin-top: 4px; }
.event-date-box .year { font-size: .72rem; opacity: .6; margin-top: 2px; }
.event-body { padding: 20px 24px; flex: 1; }
.event-type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: 6px; }
.event-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.event-title a:hover { color: var(--primary); }
.event-details { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: .85rem; color: var(--gray-600); }
.event-details span { display: flex; align-items: center; gap: 5px; }
.event-details i { color: var(--primary); }
.event-excerpt { font-size: .875rem; color: var(--gray-600); }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(76,29,149,.85), transparent); opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; padding: 16px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: #fff; font-size: .875rem; font-weight: 600; }
.gallery-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn { padding: 7px 18px; border-radius: 50px; font-size: .85rem; font-weight: 600; border: 1.5px solid var(--gray-200); color: var(--gray-600); transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== MARKETPLACE ===== */
.product-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-100); overflow: hidden; transition: var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img-wrap { position: relative; height: 220px; overflow: hidden; background: var(--gray-50); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge { position: absolute; top: 12px; left: 12px; }
.product-badge-new { background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.product-body { padding: 20px; }
.product-seller { font-size: .78rem; color: var(--gray-500); margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.product-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.product-name a:hover { color: var(--primary); }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.product-price .price { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.product-price .old-price { font-size: .9rem; color: var(--gray-400); text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; justify-content: center; }
.wishlist-btn { width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--gray-200); display: flex; align-items: center; justify-content: center; color: var(--gray-400); transition: var(--transition); flex-shrink: 0; }
.wishlist-btn:hover { border-color: var(--pink); color: var(--pink); }

/* ===== FORUM ===== */
.forum-category { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-100); margin-bottom: 16px; overflow: hidden; }
.forum-category-header { padding: 16px 20px; background: var(--primary-light); display: flex; align-items: center; gap: 14px; }
.forum-category-icon { width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.forum-category-header h3 { font-size: 1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 2px; }
.forum-category-header p { font-size: .8rem; color: var(--gray-600); }
.forum-category-stats { margin-left: auto; text-align: right; font-size: .8rem; color: var(--gray-500); }
.forum-topic { padding: 16px 20px; border-top: 1px solid var(--gray-100); display: flex; align-items: flex-start; gap: 14px; transition: var(--transition); }
.forum-topic:hover { background: var(--gray-50); }
.topic-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); font-size: .9rem; }
.topic-body { flex: 1; min-width: 0; }
.topic-title { font-size: .95rem; font-weight: 600; color: var(--gray-800); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-title a:hover { color: var(--primary); }
.topic-meta { font-size: .78rem; color: var(--gray-500); display: flex; gap: 14px; flex-wrap: wrap; }
.topic-stats { display: flex; gap: 16px; font-size: .8rem; color: var(--gray-500); flex-shrink: 0; margin-left: auto; }
.topic-stat { display: flex; align-items: center; gap: 4px; }

/* ===== COMMUNITY PROFILE ===== */
.profile-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-100); text-align: center; padding: 32px 24px; transition: var(--transition); }
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.profile-avatar { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; border: 4px solid var(--primary-light); }
.profile-avatar-placeholder { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, var(--primary-mid), var(--primary-dark)); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: #fff; border: 4px solid var(--primary-light); }
.profile-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.profile-role { font-size: .82rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.profile-institution { font-size: .82rem; color: var(--gray-500); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.profile-social { display: flex; justify-content: center; gap: 10px; }
.social-link { width: 34px; height: 34px; border-radius: 50%; background: var(--gray-100); color: var(--gray-600); display: flex; align-items: center; justify-content: center; font-size: .875rem; transition: var(--transition); }
.social-link:hover { background: var(--primary); color: #fff; }

/* ===== ADVERTS ===== */
.advert-banner { border-radius: var(--radius); overflow: hidden; position: relative; }
.advert-leaderboard { height: 120px; background: linear-gradient(135deg, var(--primary), #A855F7); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; color: #fff; margin-bottom: 32px; }
.advert-box { background: #fff; border-radius: var(--radius); border: 2px dashed var(--gray-200); padding: 40px 24px; text-align: center; margin-bottom: 24px; transition: var(--transition); }
.advert-box:hover { border-color: var(--primary); background: var(--primary-light); }
.advert-box h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary-dark); }
.advert-box p { font-size: .875rem; color: var(--gray-600); margin-bottom: 16px; }
.advert-sponsor { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-100); padding: 20px 24px; display: flex; align-items: center; gap: 16px; margin-bottom: 12px; transition: var(--transition); }
.advert-sponsor:hover { box-shadow: var(--shadow); }
.advert-sponsor-logo { width: 56px; height: 56px; border-radius: 10px; background: var(--gray-100); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.advert-sponsor-info h4 { font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.advert-sponsor-info p { font-size: .82rem; color: var(--gray-600); }

/* ===== NEWS TICKER ===== */
.news-ticker { background: var(--primary-dark); color: #fff; padding: 10px 0; overflow: hidden; position: relative; }
.ticker-label { background: #fff; color: var(--primary-dark); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 5px 20px 5px 24px; border-radius: 0 6px 6px 0; position: absolute; left: 0; top: 0; bottom: 0; z-index: 10; display: flex; align-items: center; box-shadow: 4px 0 16px rgba(0,0,0,.35); white-space: nowrap; }
.ticker-wrap { display: flex; align-items: center; overflow: hidden; }
.ticker-items { display: flex; gap: 60px; animation: tickerScroll 30s linear infinite; white-space: nowrap; }
.ticker-items:hover { animation-play-state: paused; }
.ticker-item { font-size: .875rem; }
.ticker-item::before { content: '●'; color: var(--gold-vivid); margin-right: 10px; font-size: .6rem; }
@keyframes tickerScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); color: rgba(255,255,255,.75); }
.footer-top { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { }
.footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-logo img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: #fff; padding: 2px; }
.footer-brand-logo span { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: #fff; }
.footer-about { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.65); display: flex; align-items: center; justify-content: center; font-size: .875rem; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { font-size: .95rem; color: #fff; font-weight: 700; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--gold-vivid); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; margin-bottom: 12px; }
.footer-contact-item i { color: var(--gold-vivid); margin-top: 3px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: .82rem; }
.footer-bottom a { color: var(--gold-vivid); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: var(--transition);
  opacity: 0; pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 1.75rem; cursor: pointer; opacity: .8; }
.lightbox-close:hover { opacity: 1; }

/* ===== TABS ===== */
.tab-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-200); margin-bottom: 32px; }
.tab-btn { padding: 10px 20px; font-size: .9rem; font-weight: 600; color: var(--gray-600); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); border-radius: 8px 8px 0 0; }
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-light); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== SEARCH BAR ===== */
.search-bar { display: flex; gap: 8px; background: #fff; border: 1.5px solid var(--gray-200); border-radius: 50px; padding: 6px 8px 6px 20px; align-items: center; }
.search-bar input { flex: 1; border: none; outline: none; font-size: .9rem; font-family: inherit; color: var(--gray-800); }
.search-bar button { background: var(--primary); color: #fff; border: none; border-radius: 50px; padding: 8px 20px; font-size: .875rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.search-bar button:hover { background: var(--primary-dark); }

/* ===== NOTIFICATION BADGE ===== */
.notification-dot { width: 8px; height: 8px; background: var(--pink); border-radius: 50%; position: absolute; top: 6px; right: 6px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-item { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 600; border: 1.5px solid var(--gray-200); color: var(--gray-600); transition: var(--transition); cursor: pointer; }
.page-item:hover { border-color: var(--primary); color: var(--primary); }
.page-item.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== DIVIDERS ===== */
.divider { height: 1px; background: var(--gray-200); margin: 32px 0; }
.divider-gold { height: 3px; background: linear-gradient(90deg, transparent, var(--gold-vivid), transparent); margin: 0; }

/* ===== ALERT / NOTICE ===== */
.alert { padding: 14px 18px; border-radius: 10px; display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; margin-bottom: 16px; }
.alert-info { background: #EFF6FF; border-left: 4px solid #3B82F6; color: #1E40AF; }
.alert-success { background: #F0FDF4; border-left: 4px solid #22C55E; color: #166534; }
.alert-warning { background: var(--gold-light); border-left: 4px solid var(--gold-vivid); color: var(--gold-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  /* News 2-col → 1-col */
  .news-layout { grid-template-columns: 1fr !important; }
  .news-sidebar { order: -1; }

  /* Marketplace filter panel */
  .market-layout { grid-template-columns: 1fr !important; }
  .market-filter-panel { display: none; }
  .market-filter-toggle { display: inline-flex !important; }

  /* Forum layout */
  .forum-layout { grid-template-columns: 1fr !important; }
  .forum-sidebar { display: none; }

  /* Community layout */
  .community-layout { grid-template-columns: 1fr !important; }

  /* Journal grid */
  .journal-hero-grid { grid-template-columns: 1fr !important; }

  /* About page grids */
  .about-governance-grid { grid-template-columns: repeat(2,1fr) !important; }
  .about-officers-grid   { grid-template-columns: repeat(3,1fr) !important; }

  /* Events layout */
  .events-layout { grid-template-columns: 1fr !important; }
  .events-sidebar { order: -1; }
}

@media (max-width: 768px) {
  :root { --announce-gap: 10px; }
  .navbar-nav, .navbar-actions { display: none; }
  .hamburger { display: flex; }
  .navbar-inner { overflow: hidden; }
  .navbar-brand { flex: 1; min-width: 0; }
  .brand-text { min-width: 0; overflow: hidden; }
  .brand-text .brand-tagline { display: none; }
  .brand-text .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Event cards */
  .event-card { flex-direction: column; }
  .event-date-box { flex-direction: row; gap: 8px; padding: 12px 20px; min-width: auto; width: 100%; }
  .event-details { flex-direction: column; gap: 6px; }

  /* Tabs scroll on mobile */
  .tab-nav { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -ms-overflow-style: none; }
  .tab-nav::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; }

  /* Gallery filter scroll */
  .gallery-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
  .filter-btn { flex-shrink: 0; }

  /* Stats bar 2-col on tablet/mobile */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.1); border-right: none; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }

  /* Forum topic stats hide on small */
  .topic-stats { display: none; }

  /* Marketplace */
  .market-filter-panel { display: none !important; }
  .market-filter-toggle { display: inline-flex !important; }

  /* Advert leaderboard */
  .advert-leaderboard { flex-direction: column; text-align: center; height: auto; padding: 24px; gap: 12px; }

  /* Journal card meta row */
  .journal-meta { flex-direction: column; gap: 6px; }

  /* About officers/governance */
  .about-governance-grid { grid-template-columns: 1fr !important; }
  .about-officers-grid   { grid-template-columns: repeat(2,1fr) !important; }
  .about-zones-grid      { grid-template-columns: repeat(2,1fr) !important; }

  /* Community profile grid */
  .profiles-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* Page header reduce padding */
  .page-header { padding: 96px 0 48px; }

  /* Product actions full width */
  .product-actions { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.75rem; }
  .btn { padding: 10px 20px; }
  .section { padding: 40px 0; }

  /* Stats bar single col on very small */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-item .num { font-size: 1.8rem; }

  /* Single column for almost everything */
  .about-officers-grid, .about-governance-grid, .about-zones-grid { grid-template-columns: 1fr !important; }
  .profiles-grid { grid-template-columns: 1fr !important; }

  /* Hero stat numbers smaller */
  .hero-stat .num { font-size: 1.5rem; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }

  /* Event card */
  .event-date-box .day { font-size: 1.5rem; }

  /* Tab button smaller */
  .tab-btn { padding: 8px 14px; font-size: .82rem; }

  /* Page header */
  .page-header { padding: 80px 0 36px; }
  .page-header h1 { font-size: 1.6rem; }

  /* Forum */
  .forum-category-header { flex-wrap: wrap; gap: 10px; }
  .forum-category-stats { margin-left: 0; text-align: left; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-top { padding: 40px 0 32px; }
}

/* ══════════════════════════════════════════════════════════════
   WICE AD SLOT ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
@keyframes wiceAdFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wiceAdFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}
@keyframes wiceAdShimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(260%) skewX(-15deg); }
}
@keyframes wiceAdPulseGold {
  0%, 100% { box-shadow: 0 4px 12px rgba(245,158,11,.3); }
  50%       { box-shadow: 0 6px 28px rgba(245,158,11,.7), 0 0 0 5px rgba(245,158,11,.12); }
}
@keyframes wiceAdPulsePurple {
  0%, 100% { box-shadow: 0 4px 12px rgba(124,58,237,.3); }
  50%       { box-shadow: 0 6px 28px rgba(124,58,237,.7), 0 0 0 5px rgba(124,58,237,.12); }
}
@keyframes wiceAdPulseGreen {
  0%, 100% { box-shadow: 0 4px 12px rgba(5,150,105,.3); }
  50%       { box-shadow: 0 6px 28px rgba(5,150,105,.7), 0 0 0 5px rgba(5,150,105,.12); }
}
@keyframes wiceAdPing {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes wiceAdScaleIn {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes wiceAdGradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: no-preference) {
  .wice-ad-slot { animation: wiceAdFadeUp .55s cubic-bezier(.22,1,.36,1) both; }
  .wice-ad-slot img { animation: wiceAdFadeUp .6s ease .1s both; transition: transform .35s ease, box-shadow .35s ease; display: block; }
  .wice-ad-slot a:hover img, .wice-ad-slot img:hover { transform: scale(1.028); box-shadow: 0 10px 32px rgba(0,0,0,.18); }
  .wice-ad-text { animation: wiceAdFadeUp .5s ease .18s both; }
  .wice-ph-banner { position: relative; overflow: hidden; }
  .wice-ph-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%); animation: wiceAdShimmer 3.2s ease-in-out infinite; pointer-events: none; z-index: 1; }
  .wice-ph-icon { animation: wiceAdFloat 2.8s ease-in-out infinite; display: flex; align-items: center; justify-content: center; }
  .wice-ph-stat { animation: wiceAdScaleIn .45s cubic-bezier(.34,1.56,.64,1) both; }
  .wice-ph-stat:nth-child(1) { animation-delay: .05s; }
  .wice-ph-stat:nth-child(2) { animation-delay: .15s; }
  .wice-ph-stat:nth-child(3) { animation-delay: .25s; }
  .wice-ph-cta-gold { animation: wiceAdPulseGold 2.2s ease-in-out infinite; transition: transform .2s ease; }
  .wice-ph-cta-gold:hover { transform: translateY(-2px) scale(1.04); }
  .wice-ph-cta-purple { animation: wiceAdPulsePurple 2.2s ease-in-out infinite; transition: transform .2s ease; }
  .wice-ph-cta-purple:hover { transform: translateY(-2px) scale(1.04); }
  .wice-ph-cta-green { animation: wiceAdPulseGreen 2.2s ease-in-out infinite; transition: transform .2s ease; }
  .wice-ph-cta-green:hover { transform: translateY(-2px) scale(1.04); }
  .wice-ph-ping { position: relative; }
  .wice-ph-ping::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: wiceAdPing 1.5s cubic-bezier(0,0,.2,1) infinite; z-index: 0; }
  .wice-ph-sidebar-bg { background-size: 200% 200% !important; animation: wiceAdGradientFlow 8s ease infinite; }
}
