/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  /* Color Palette */
  --primary: hsl(142, 60%, 28%);        /* Nature Green */
  --primary-light: hsl(142, 45%, 94%);  /* Soft green tint */
  --primary-dark: hsl(142, 70%, 18%);   /* Deep Forest */
  --secondary: hsl(165, 45%, 38%);      /* Sea Green/Teal */
  --accent: hsl(38, 95%, 55%);          /* Warm Gold/Orange for Growth */
  --text-main: hsl(210, 20%, 15%);      /* Dark Slate for text */
  --text-muted: hsl(210, 10%, 45%);     /* Muted grey */
  --bg-main: hsl(40, 20%, 98%);         /* Warm sand white */
  --bg-card: rgba(255, 255, 255, 0.85); /* Glassmorphic card */
  --border-color: rgba(46, 125, 50, 0.15);
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px -15px rgba(46, 125, 50, 0.15);
  --radius: 16px;
}

/* Reset & Core Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.7;
}

body {
  overflow-x: hidden;
  padding-top: var(--header-height);
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.section {
  padding: 6rem 0;
}

.bg-light {
  background-color: hsl(40, 15%, 95%);
}

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

/* Premium Micro-animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseLight {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.nav-desktop {
  display: flex;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: white !important;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Hero Section */
.hero {
  height: calc(85vh - var(--header-height));
  min-height: 500px;
  background-image: linear-gradient(135deg, hsl(142, 60%, 20%), hsl(165, 45%, 25%));
  position: relative;
  display: flex;
  align-items: center;
  color: white;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(255, 235, 59, 0.15) 0%, transparent 60%);
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.25;
  color: white;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Section Header */
.section-header {
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
}

.title-underline {
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* About Values */
.lead {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.about-text-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.value-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.value-icon {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Greetings Representative avatar */
.greeting-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.greeting-img-frame {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 8px solid white;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.greetings-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
  color: white;
  font-size: 3.5rem;
  font-weight: 700;
}

.greeting-badge {
  margin-top: 1.5rem;
  background: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border-color);
}

.greeting-badge h4 {
  font-size: 1rem;
  color: var(--primary-dark);
}

.greeting-badge p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.greeting-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 3px solid var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: calc(-2rem - 9px);
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary-light);
  transition: var(--transition);
}

.timeline-item:hover::after {
  background-color: var(--accent);
  transform: scale(1.3);
}

.timeline-year {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.timeline-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Org Chart */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.org-node {
  background: white;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.org-node:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.root-node {
  background: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
}

.root-node h4 {
  color: white;
}

.board-node {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.board-node h4 {
  color: white;
}

.office-node {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.office-node h4 {
  color: white;
}

.org-connector {
  width: 2px;
  height: 30px;
  background-color: var(--primary-light);
  border-left: 2px dashed var(--primary);
}

.org-grid-teams {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
  margin-top: 1rem;
}

.team-node h5 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.team-node p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Tabs container */
.tabs-container {
  max-width: 900px;
  margin: 0 auto;
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 0.75rem 1.5rem;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50px;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.tab-btn.active {
  color: white;
  background-color: var(--primary);
}

.tabs-content {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.tab-pane {
  display: none;
  animation: fadeInUp 0.5s ease forwards;
}

.tab-pane.active {
  display: block;
}

.tab-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.detail-card {
  background: var(--bg-main);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.detail-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.detail-card h5 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.detail-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Support cards */
.support-card {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.support-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.support-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.support-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.support-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.support-detail {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 2rem;
}

.account-box {
  background: var(--primary-light);
  width: 100%;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.account-bank {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.account-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
}

.account-holder {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.copy-feedback-toast {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
}

.copy-feedback-toast.show {
  opacity: 1;
}

.support-notice-card {
  background: #eef7ee;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.support-notice-card h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.support-notice-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Contact location */
.contact-info-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-info-card h4 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.contact-meta-item {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-meta-item strong {
  font-size: 0.9rem;
  color: var(--primary);
}

.way-guide h5 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.way-guide p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  height: 450px;
}

/* Footer styling */
.footer {
  background: hsl(210, 25%, 12%);
  color: hsl(210, 15%, 85%);
  padding: 4rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand h4 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: hsl(210, 15%, 70%);
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-divider {
  color: hsl(210, 15%, 35%);
}

.footer-meta {
  border-top: 1px solid hsl(210, 15%, 22%);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: hsl(210, 15%, 55%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Menu Toggle Button styling */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--primary-dark);
  transition: var(--transition);
}

/* Mobile Nav Overlay styling */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  z-index: 1050;
  transition: var(--transition);
  padding: 6rem 2rem 2rem;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* News board layout */
.news-filter {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--border-color);
  background: white;
  padding: 0.5rem 1.25rem;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 30px;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

.filter-btn.active {
  color: white;
  background-color: var(--primary);
  border-color: var(--primary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.news-card {
  position: relative;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.news-img-box {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), hsl(165, 45%, 90%));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-img-placeholder {
  font-size: 4rem;
  opacity: 0.8;
  transition: var(--transition);
}

.news-card:hover .news-img-placeholder {
  transform: scale(1.1);
}

.news-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.notice-tag {
  background-color: var(--primary);
}

.activity-tag {
  background-color: var(--accent);
}

.press-tag {
  background-color: var(--secondary);
}

.news-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.36em;
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.8em;
}

.news-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  margin-top: auto;
}

.news-card:hover .news-more {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Modal details */
.news-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.news-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.news-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.news-modal-content {
  position: relative;
  background: white;
  width: 90%;
  max-width: 680px;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  overflow-y: auto;
  z-index: 2;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2.5rem;
}

.news-modal.active .news-modal-content {
  transform: translateY(0);
}

.news-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.news-modal-close:hover {
  color: var(--primary-dark);
  transform: rotate(90deg);
}

.news-modal-body h2 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.news-modal-body .modal-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.news-modal-body .modal-date {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.news-modal-body .modal-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.news-modal-body .modal-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.8;
}

.news-modal-body .modal-text p {
  margin-bottom: 1.5rem;
}

/* Admin news style overrides */
.admin-toggle-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--text-muted);
  transition: transform 0.5s ease, color 0.3s ease;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.admin-toggle-btn:hover {
  transform: rotate(90deg);
  color: var(--primary);
}

.admin-toggle-btn.active {
  color: var(--primary);
  transform: rotate(180deg);
  background-color: var(--primary-light);
}

.admin-panel {
  display: inline-flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1.5rem;
  background-color: var(--primary-light);
  border: 2px dashed rgba(46, 125, 50, 0.3);
  border-radius: var(--radius);
  animation: fadeIn 0.3s ease;
}

.news-card-delete-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(211, 47, 47, 0.9);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.news-card-delete-btn:hover {
  background: rgb(211, 47, 47);
  transform: scale(1.1);
}

.news-card-edit-btn {
  position: absolute;
  top: 1rem;
  right: 3rem;
  background: rgba(25, 118, 210, 0.9);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.news-card-edit-btn:hover {
  background: rgb(25, 118, 210);
  transform: scale(1.1);
}

.admin-card-badge {
  position: absolute;
  top: 1rem;
  right: 5.5rem;
  background-color: #333;
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 3px;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsiveness Media Queries */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .org-grid-teams {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }

  /* Animate hamburger */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section {
    padding: 4rem 0;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .org-grid-teams {
    grid-template-columns: 1fr;
  }
}

/* Drag and drop upload zone styles */
.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  transition: var(--transition);
  position: relative;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.upload-prompt span:first-child {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.25rem;
}

.upload-prompt .upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.upload-preview-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-preview-img {
  max-height: 150px;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 0.5rem;
}

.remove-upload-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: var(--transition);
  z-index: 10;
}

.remove-upload-btn:hover {
  background: #c0392b;
  transform: scale(1.1);
}

.file-preview-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.file-name-display {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size-display {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.remove-file-btn {
  margin-top: 0.5rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  color: #e74c3c;
  background: none;
  border: 1px solid #e74c3c;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.remove-file-btn:hover {
  background: #e74c3c;
  color: white;
}

/* Details Modal Styles */
.modal-article-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.modal-attachment-box {
  margin-top: 2.5rem;
  padding: 1.2rem;
  background: #f8f9fa;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.modal-attachment-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.modal-attachment-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.modal-attachment-texts {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-attachment-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-attachment-size {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-download-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: white;
  background: var(--primary);
  font-weight: 600;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-download-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: var(--transition);
  z-index: 1;
}

.news-card:hover .news-card-img {
  transform: scale(1.05);
}

