/* =============================================
   All in U — style.css
   인천대학교 총학생회 보궐선거 기호 2번
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --red: #C0392B;
  --red-dark: #96281B;
  --red-light: #E74C3C;
  --navy: #1A2A4A;
  --navy-dark: #0F1C35;
  --gold: #C9A84C;
  --gold-light: #F0C94A;
  --cream: #FAF9F6;
  --cream-dark: #F2EFE9;
  --charcoal: #2C2C2C;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --white: #FFFFFF;

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --trans: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Container ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Common ---------- */
.section {
  padding: 100px 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy-dark);
}

.section-ornament {
  font-size: 20px;
  color: var(--gold);
}

.section-sub {
  text-align: center;
  color: var(--gray);
  margin-top: -36px;
  margin-bottom: 48px;
  font-size: 1rem;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--trans), transform 0.7s var(--trans);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; transition-delay: 0.2s; }
.delay-4 { animation-delay: 0.5s; transition-delay: 0.3s; }
.delay-5 { animation-delay: 0.65s; transition-delay: 0.4s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--trans), box-shadow var(--trans), backdrop-filter var(--trans);
}

.navbar.scrolled {
  background: rgba(15, 28, 53, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-badge {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--trans);
}

.nav-links a:hover {
  color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, #1e1040 40%, var(--red-dark) 100%);
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}

.shape-1 {
  width: 600px; height: 600px;
  background: var(--red);
  top: -200px; right: -100px;
}

.shape-2 {
  width: 400px; height: 400px;
  background: var(--gold);
  bottom: -100px; left: -100px;
  opacity: 0.12;
}

.shape-3 {
  width: 300px; height: 300px;
  background: #5B2D8E;
  top: 50%; left: 30%;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 100px;
  padding-bottom: 80px;
  width: 100%;
}

.hero-text-side {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-right: 0;
}

/* 후보자 사진 */
.hero-photo-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%; /* 기존 55% -> 60% 주입 사이즈 확대 */
  max-width: 820px; /* 기존 680px -> 820px 상한 확대 */
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom;
  max-height: 90vh;
  filter: drop-shadow(-20px 0 60px rgba(0,0,0,0.5));
}


.hero-meta {
  margin-bottom: 24px;
}

.election-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 20px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.hero-number {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  justify-content: center;
}


.num-label {
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  font-weight: 500;
}

.num-value {
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 0 80px rgba(192, 57, 43, 0.8), 0 4px 20px rgba(0,0,0,0.5);
  letter-spacing: -4px;
}

.hero-brand {
  font-size: clamp(40px, 8vw, 90px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 28px;
  letter-spacing: -2px;
}

.brand-all { color: var(--white); }
.brand-in  { color: rgba(255,255,255,0.6); margin: 0 12px; font-weight: 400; font-style: italic; font-size: 0.75em; }
.brand-u   { color: var(--gold); }

.hero-slogan {
  color: rgba(255,255,255,0.75);
  font-size: clamp(14px, 2.5vw, 18px);
  margin-bottom: 8px;
}

.hero-sub {
  color: var(--gold-light);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 56px;
  letter-spacing: -0.3px;
}

.hero-candidates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}


.hero-cand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-cand .cand-role {
  background: rgba(201,168,76,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.hero-cand .cand-name {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.hero-cand .cand-dept {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

.hero-divider {
  font-size: 24px;
  color: var(--gold);
  opacity: 0.6;
}

.hero-scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: var(--white);
  transition: var(--trans);
  animation: bounce 2s infinite;
}

.hero-scroll-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* =============================================
   CANDIDATES
   ============================================= */
.candidates-section {
  background: var(--cream);
}

.candidates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.candidate-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 40px;
  transition: transform var(--trans), box-shadow var(--trans);
}

.candidate-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Corner Decorations */
.card-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
}

.card-corner-tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.card-corner-tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.card-corner-bl { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.card-corner-br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }

.card-badge {
  position: absolute;
  top: -14px;
  left: 40px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.main-badge {
  background: var(--red);
  color: var(--white);
}

.sub-badge {
  background: var(--navy);
  color: var(--white);
}

.card-inner {
  padding-top: 8px;
}

.cand-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
}

.cand-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--gray-light);
  line-height: 1;
  letter-spacing: -2px;
  flex-shrink: 0;
}

.cand-name-large {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -1px;
}

.cand-dept-line {
  color: var(--gray);
  font-size: 14px;
  margin-top: 4px;
}

.cand-dept-line strong {
  color: var(--red);
  font-weight: 700;
}

.cand-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cand-history li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.5;
}

.year {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =============================================
   SLOGAN
   ============================================= */
.slogan-section {
  position: relative;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, #c0392b 100%);
  padding: 100px 0;
  overflow: hidden;
}

.slogan-bg-decoration {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/all_in_u.logo.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
  mix-blend-mode: multiply;
  opacity: 0.15;
}

.slogan-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.slogan-sub-text {
  color: rgba(255,255,255,0.7);
  font-size: clamp(14px, 2vw, 17px);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.slogan-main {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  margin-bottom: 36px;
}

.slogan-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.divider-line {
  display: block;
  width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

.divider-diamond {
  color: var(--gold-light);
  font-size: 14px;
}

.slogan-desc {
  color: rgba(255,255,255,0.8);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
}

/* =============================================
   PLEDGES
   ============================================= */
.pledges-section {
  background: var(--cream-dark);
}

.pledge-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.pledge-tab {
  padding: 10px 22px;
  border: 2px solid var(--gray-light);
  border-radius: 50px;
  background: var(--white);
  color: var(--gray);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
}

.pledge-tab:hover {
  border-color: var(--red);
  color: var(--red);
}

.pledge-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(192,57,43,0.3);
}

.pledge-panels {
  position: relative;
}

.pledge-panel {
  display: none;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  animation: panelIn 0.4s var(--trans);
  position: relative;
  overflow: hidden;
}

.pledge-panel.active {
  display: flex !important;
  gap: 40px; /* 텍스트와 포스터 사이 간격 보장 */
  align-items: flex-start;
}

.pledge-content-col {
  flex: 1.1; /* 공약 카드 영역 */
  min-width: 0;
}

.pledge-poster-col {
  flex: 0.9; /* 우측 포스터 영역 */
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  cursor: zoom-in;
}

.pledge-side-img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.pledge-side-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

@media (max-width: 1024px) {
  .pledge-panel.active {
    flex-direction: column;
    gap: 32px;
  }
  
  .pledge-poster-col {
    width: 100%;
    margin-top: 16px;
  }
  
  .pledge-side-img {
    max-height: none;
  }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pledge-panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--cream-dark);
}

.pledge-icon {
  font-size: 36px;
  line-height: 1;
}

.pledge-panel-header h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.5px;
}

.pledge-panel-desc {
  color: var(--gray);
  font-size: 14px;
  margin-top: 2px;
}

.pledge-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: pledge-counter;
}

.pledge-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pledge-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.pledge-card-item:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.pledge-card-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
}

.pledge-card-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
}

.pledge-card-arrow {
  font-size: 18px;
  color: var(--gray);
  margin-left: 10px;
  transition: color 0.3s ease;
}

.pledge-card-item:hover .pledge-card-arrow {
  color: var(--navy);
}

/* =============================================
   PLEDGE MODAL
   ============================================= */
.pledge-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.pledge-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.pledge-modal {
  background: var(--white);
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-md);
  max-height: 90vh;
  overflow-y: auto;
}

.pledge-modal-overlay.open .pledge-modal {
  transform: translateY(0);
}

.pledge-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.3s ease;
}

.pledge-modal-close:hover {
  color: var(--dark);
}

.pledge-modal-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  background: var(--navy);
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.pledge-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.4;
  margin-bottom: 16px;
}

.pledge-modal-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-light);
  margin-bottom: 20px;
}

.pledge-modal-summary {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.7;
  white-space: pre-wrap;
}


/* =============================================
   DETAIL PLEDGES (Accordion)
   ============================================= */
.detail-section {
  background: var(--cream);
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: box-shadow var(--trans);
}

.accordion-item.open {
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: background var(--trans);
}

.accordion-btn:hover {
  background: var(--cream);
}

.accordion-item.open .accordion-btn {
  background: var(--cream);
}

.acc-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--red);
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acc-title {
  flex: 1;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.4;
}

.acc-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 2px 10px;
  border-radius: 50px;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 640px) {
  .acc-badge { display: inline-block; }
}

.acc-icon {
  flex-shrink: 0;
  color: var(--gray);
  transition: transform var(--trans);
}

.accordion-item.open .acc-icon {
  transform: rotate(180deg);
  color: var(--red);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body-inner {
  padding: 0 28px 28px;
  border-top: 1px solid var(--gray-light);
}

.acc-summary {
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
  margin-top: 20px;
  font-size: 15px;
}

.accordion-body-inner p {
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.8;
}

/* =============================================
   SNS
   ============================================= */
.sns-section {
  position: relative;
  background: var(--navy-dark);
  padding: 100px 0;
}

.sns-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 30%, rgba(192,57,43,0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(201,168,76,0.1) 0%, transparent 50%);
}

.sns-content {
  position: relative;
  z-index: 1;
}

/* =============================================
   SNS — 새 3카드 스타일
   ============================================= */

/* 타이틀 배너 (레퍼런스 스타일) */
.sns-title-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 24px 48px;
  margin-bottom: 56px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.sns-title-banner::before {
  content: 'ALL IN U';
  position: absolute;
  font-size: 80px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  letter-spacing: -2px;
  white-space: nowrap;
}

.sns-banner-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.sns-banner-deco {
  font-size: 28px;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

/* 3열 그리드 */
.sns-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

/* 카드 전체 */
.sns-card-3 {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--trans);
}

.sns-card-3:hover {
  transform: translateY(-6px);
}

/* 레퍼런스 스타일 — 금색 테두리 장식 + 다크 배경 카드 */
.sns-card-border {
  border: 2px solid rgba(201,168,76,0.4);
  border-radius: var(--radius-md);
  padding: 3px;
  height: 100%;
  position: relative;
}

/* 모서리 장식 */
.sns-card-border::before,
.sns-card-border::after {
  content: '';
  position: absolute;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.8;
  width: 14px;
  height: 14px;
}

.sns-card-border::before {
  top: -2px; left: -2px;
  border-width: 3px 0 0 3px;
  border-radius: 3px 0 0 0;
}

.sns-card-border::after {
  bottom: -2px; right: -2px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 3px 0;
}

.sns-card-inner {
  background: linear-gradient(160deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border-radius: calc(var(--radius-md) - 3px);
  padding: 36px 28px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(6px);
  transition: background var(--trans);
}

.sns-card-3:hover .sns-card-inner {
  background: linear-gradient(160deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
}

.sns-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: white;
  flex-shrink: 0;
}


.qr-img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: contain; /* 이미지 비율 유지 */
  background: white; /* QR 배경이 투명할 시 흰색 테두리 효과 */
  padding: 4px;
}

.qr-box {
  margin-bottom: 8px;
}

.qr-code-mock {
  width: 80px;
  height: 80px;
  color: rgba(255,255,255,0.8);
}

.sns-card-label {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}

.sns-card-handle {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  flex: 1;
}

.sns-card-cta {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 8px;
  transition: color var(--trans);
}

.sns-card-3:hover .sns-card-cta {
  color: var(--gold-light);
}

/* 기존 sns-grid 제거 (이전 스타일 override) */
.sns-grid {
  display: none;
}


.sns-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  transition: var(--trans);
  backdrop-filter: blur(8px);
  display: block;
}

.sns-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.sns-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
}

.sns-label {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.sns-handle {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-bottom: 20px;
}

.sns-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 50px;
  transition: var(--trans);
}

.sns-card:hover .sns-cta {
  background: var(--gold-light);
}

/* QR Card */
.qr-card {
  cursor: default;
}

.qr-card:hover {
  border-color: var(--gold);
}

.qr-label-top {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.qr-desc {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
}

.qr-placeholder {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.qr-mock {
  width: 120px;
  height: 120px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
}

.qr-inner {
  font-size: 28px;
  font-weight: 900;
  color: rgba(255,255,255,0.4);
  letter-spacing: -1px;
}

.qr-sub {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #080E1A;
  padding: 60px 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-badge {
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.footer-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
}

.footer-divider-diamond {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-sub {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 28px;
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .candidates-grid {
    grid-template-columns: 1fr;
  }
  .sns-grid-3 {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .pledge-panel {
    padding: 32px 24px;
  }
  /* 모바일에서 Hero 레이아웃 */
  .hero-content {
    flex-direction: column;
  }
  .hero-text-side {
    padding-right: 0;
    text-align: center;
  }
  .hero-number {
    justify-content: center;
  }
  .hero-candidates {
    justify-content: center;
  }
  .hero-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 24px auto 0;
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  .sns-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }
}


@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(15,28,53,0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    backdrop-filter: blur(12px);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-candidates {
    flex-direction: column;
    gap: 20px;
  }
  .hero-divider { display: none; }

  /* Pledges */
  .pledge-tabs {
    gap: 6px;
  }
  .pledge-tab {
    font-size: 12px;
    padding: 8px 14px;
  }

  /* Accordion */
  .accordion-btn {
    padding: 18px 20px;
  }
  .accordion-body-inner {
    padding: 0 20px 20px;
  }
}

@media (max-width: 480px) {
  .candidate-card {
    padding: 28px 24px;
  }
  .cand-header {
    flex-direction: column;
    gap: 8px;
  }
  .cand-number { font-size: 36px; }
}

/* 포스터 확대 모달 */
.poster-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
}

.poster-zoom-overlay.open {
  display: flex!important;
  opacity: 1;
}

.poster-zoom-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poster-zoom-overlay.open .poster-zoom-img {
  transform: scale(1);
}

@media (min-width: 1025px) {
  .pledge-panel {
    cursor: zoom-in; /* 포스터 영역 클릭 안내 */
  }
}

/* 플로팅 공약안내서 버튼 (FAB) - 화이트 테마 및 사이즈 확대 */
.fab-pledge-guide {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1001; /* 다른 모달 오버랩 방지 */
  background: var(--white);
  border-radius: 16px;
  padding: 16px 24px; /* 크기 확대 */
  box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none !important;
  color: #2c3e50 !important; /* 어두운 텍스트 */
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex !important;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.04);
  animation: fabPulse 2.4s infinite ease-in-out;
}

.fab-pledge-guide:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  background: #f9fbfd;
}

.fab-pledge-inner {
  display: flex;
  align-items: center;
  gap: 14px; /* 간격 확대 */
}

.fab-icon-area {
  background: rgba(192, 57, 43, 0.08); /* 로고 색상(레드) 틴트 */
  padding: 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red); /* 아이콘을 레드로 포인트 분할 */
}

.fab-text-area {
  display: flex;
  flex-direction: column;
}

.fab-sub {
  font-size: 11px;
  color: #7f8c8d; /* 서브 텍스트는 그레이 계열 */
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.fab-main {
  font-size: 15px; /* 크기 확대 */
  color: #2c3e50;
  font-weight: 800;
  letter-spacing: 0.3px;
}

@keyframes fabPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .fab-pledge-guide {
    bottom: 24px;
    right: 20px;
    padding: 13px 18px;
  }
  .fab-sub { font-size: 10px; }
  .fab-main { font-size: 14px; }
}

.logo-img {
  height: 38px; /* 로고 높이 */
  width: auto;
  object-fit: contain;
  margin-left: 8px;
  display: block;
  transform: translateY(-2px);
}

/* =============================================
   MOBILE OVERRIDES (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
  /* 1. Navbar */
  .nav-inner {
    padding: 12px 16px;
  }
  .logo-img {
    height: 30px; /* 로고 소폭 소형화 */
  }
  .logo-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  .nav-links {
    /* 모바일 햄버거 메뉴 대응 레이아웃 보장 (기존 style.css 햄버거 오버라이딩 유효 검토) */
  }

  /* 2. Hero Section (Stack 레이아웃 전환) */
  .hero {
    flex-direction: column; /* 세로 정렬 */
    height: auto;
    min-height: 100vh;
    justify-content: flex-start;
  }
  
  .hero-content {
    order: 1; /* 텍스트가 위로 위치 */
    padding-top: 110px;
    padding-bottom: 20px;
    gap: 32px;
  }
  
  .hero-text-side {
    flex: 0 0 100%;
    width: 100%;
    padding-right: 0; /* PC 우측 여백 해제 */
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-photo-wrap {
    order: 2; /* 사진이 아래로 위치 */
    position: relative; /* absolute 해제하고 아래로 안착 */
    width: 85%;
    max-width: 420px;
    margin: 30px auto 0 auto;
    right: auto;
    bottom: auto;
    z-index: 2;
  }
  
  .hero-photo {
    max-height: 48vh; /* 스크린 세로 비율 감안 최대 높이 조절 */
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
  }

  /* 히어로 텍스트 노드 반응형 */
  .num-value {
    font-size: clamp(60px, 12vw, 90px); /* 폰트 너비 비례 압축 */
  }
  .hero-brand {
    font-size: clamp(36px, 10vw, 56px);
  }
  .hero-candidates {
    gap: 16px;
    flex-direction: column; /* 후보자 명단 세로 정렬 */
  }
  .hero-divider {
    transform: rotate(90deg); /* ✦ 구분자 회전 */
    margin: -8px 0;
    opacity: 0.3;
  }

  /* 3. Pledges Section (공약 탭 가로 스크롤 및 2단 분리 해제) */
  .pledge-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 16px 12px 16px; /* 좌우 패딩으로 여유 */
    margin: 0 -16px; /* 컨테이너 밖으로 확장 스크롤 */
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .pledge-tab {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px;
  }
  
  .pledge-panel.active {
    flex-direction: column !important; /* 가로 그리드 해제 -> 세로 스택 */
    gap: 20px;
  }
  .pledge-content-col {
    flex: 0 0 100%;
    width: 100%;
  }
  .pledge-poster-col {
    flex: 0 0 100%;
    width: 100%;
    padding-top: 12px;
    border-top: 1px dashed rgba(255,255,255,0.1);
  }
  .pledge-side-img {
    max-height: none;
    width: 100%;
  }

  /* 4. Slogans & Modals & FAB */
  .slogan-main {
    font-size: clamp(22px, 5vw, 28px);
  }
  
  .pledge-modal {
    width: 92% !important;
    padding: 32px 20px !important;
    margin: 20px auto;
  }
  .pledge-modal-title {
    font-size: 20px;
  }
  
  .fab-pledge-guide {
    bottom: 16px;
    right: 16px;
    padding: 8px 12px;
    gap: 8px;
    border-radius: 12px;
  }
  .fab-icon-area {
    padding: 6px;
  }
  .fab-sub {
    font-size: 10px;
  }
  .fab-main {
    font-size: 12px;
    letter-spacing: -0.2px;
  }
}

/* QR 아이콘 크기 및 배경을 인스타그램 원형과 동일하게 세팅 */
.qr-box-wrap {
  background: #ffffff !important; /* QR 스캔을 위한 흰색 배경 */
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15); /* 은은한 흰색 가드 글로우 */
  transition: transform 0.3s ease;
}

.qr-img {
  width: 42px !important; /* sns-icon-wrap(60px) 내부에 딱 맞는 크기 */
  height: 42px !important;
  object-fit: contain;
}
