/* 기본 스타일 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 헤더 스타일 */
.main-header {
  background: #004080;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .logo {
  width: 60px;
  height: auto;
  border-radius: 8px;
}

.main-header .site-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}

.navbar-toggler {
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler i {
  font-size: 1.5rem;
  color: white;
}

/* 네비게이션 스타일 */
.main-nav {
  background: #003366;
  padding: 0;
}

.main-nav .navbar-nav {
  width: 100%;
  flex-direction: row !important; /* 데스크톱에서 항상 가로 배치 */
}

.main-nav .nav-link {
  color: white !important;
  font-weight: 500;
  padding: 15px 20px;
  transition: all 0.3s ease;
}

.main-nav .nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: #FFD700 !important;
}

/* 데스크톱에서 네비게이션 항상 표시 */
.main-nav .navbar-collapse {
  display: flex !important;
}

/* 네비게이션 아이템들 가로 배치 강제 */
.main-nav .navbar-nav .nav-item {
  display: inline-block;
  float: none;
}

/* 캐러셀 반응형 */
.carousel-item img {
  height: 500px;
  object-fit: cover;
  width: 100%;
}

.carousel-caption {
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  padding: 20px;
}

/* 알림게시판 스타일 */
.notice-board {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  border-left: 5px solid #004080;
}

.notice-title {
  color: #004080;
  font-weight: bold;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 15px;
}

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-list li {
  margin-bottom: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.notice-list li:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.notice-list a {
  text-decoration: none;
  color: #333;
  display: block;
  font-weight: 500;
}

.notice-list a:hover {
  color: #004080;
}

.recruit-link .badge {
  background-color: #007bff !important;
}

.donation-link .badge {
  background-color: #28a745 !important;
}

header h1 {
  margin: 0;
}

main .banner {
  background: #e0ecf8;
  padding: 40px 20px;
  text-align: center;
}

.notice ul {
  list-style: disc;
  padding-left: 20px;
}

footer {
  background-color: #f4f4f4;
  padding: 30px 20px;
  font-size: 14px;
  color: #333;
  border-top: 1px solid #ddd;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left; /* ���� ���� */
}

.footer-contact p {
  margin: 4px 0;
  line-height: 1.6;
}

footer p {
  margin: 4px 0;
}

footer strong {
  font-size: 16px;
  color: #222;
}

footer .copyright {
  margin-top: 20px;
  font-size: 13px;
  color: #666;
}
/* Bootstrap 드롭다운 스타일 개선 */
.main-nav .dropdown-menu {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 200px;
  padding: 5px 0;
  margin-top: 2px;
  z-index: 1000;
}

.main-nav .dropdown-item {
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.main-nav .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #004080;
}

/* 드롭다운 메뉴 고유 식별 및 위치 보장 */
.main-nav .nav-item.dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
}

/* Bootstrap 기본 드롭다운 동작 사용 (클릭으로 열기) */
/* hover 규칙 제거하여 드롭다운 겹침 방지 */

.banner {
  background: url('img/banner-bg.jpg') no-repeat center center;
  background-size: cover;
  padding: 100px 20px;
  text-align: center;
  color: white;
}

.banner h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.banner p {
  font-size: 1.2rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .banner h2 {
    font-size: 2rem;
  }

  .banner p {
    font-size: 1rem;
  }
}

.banner {
  background: linear-gradient(to right, #0066cc, #00cc99);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.banner h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.banner p {
  font-size: 1.2rem;
}

.blog-img {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ���� (���� ����) */
  overflow: hidden;
  border-radius: 5px;
}

.blog-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 타임라인 스타일 */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #004080;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding: 0 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: #004080;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #004080;
}

.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

.timeline-date {
  font-size: 1.1rem;
  font-weight: bold;
  color: #004080;
  margin-bottom: 10px;
}

.timeline-content {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-left: 4px solid #004080;
}

.timeline-content h4 {
  color: #004080;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.timeline-content p {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
  /* 헤더 모바일 최적화 */
  .main-header .site-title {
    font-size: 1.3rem;
  }
  
  .main-header .logo {
    width: 45px;
  }
  
  /* 네비게이션 모바일 최적화 */
  .main-nav .navbar-nav {
    flex-direction: column !important; /* 모바일에서만 세로 배치 */
  }
  
  .main-nav .nav-link {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .main-nav .navbar-nav .nav-item {
    display: block; /* 모바일에서 블록 레이아웃 */
    width: 100%;
  }
  
  /* 타임라인 모바일 최적화 */
  .timeline {
    padding: 0 15px;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left;
    padding: 0 0 0 60px;
  }
  
  .timeline-item::before {
    left: 20px !important;
    right: auto !important;
  }
  
  .timeline-content {
    padding: 20px;
  }
  
  .timeline-content h4 {
    font-size: 1.2rem;
  }
  
  .timeline-date {
    font-size: 1rem;
  }
  
  /* 메인 컨테이너 모바일 최적화 */
  main.container {
    padding: 20px 15px;
  }
  
  main h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* 초소형 화면 최적화 */
  .main-header .site-title {
    font-size: 1.1rem;
  }
  
  .timeline-content {
    padding: 15px;
  }
  
  .timeline-content h4 {
    font-size: 1.1rem;
  }
  
  .timeline-content p {
    font-size: 0.9rem;
  }
  
  main h2 {
    font-size: 1.6rem;
  }
}

.blog-img img {
  width: 100%;              /* �θ� �����̳ʿ� �°� ���� ä�� */
  height: 200px;            /* ���� ���� (���ϴ� ���̷� ���� ����) */
  object-fit: cover;        /* �߸��� �κ� ������� ���� �����ϸ� �� ä�� */
  border-radius: 5px;
}

@media (max-width: 576px) {
  .logo {
    width: 40px;
  }

  .site-title {
    font-size: 1.4rem;
  }
}

.logo {
  width: 50px;       /* �ΰ� ũ��: �ʿ�� ���� ���� */
  height: auto;      /* ���� ���� */
}

.site-title {
  font-size: 1.8rem;  /* �Ǵ� ���ϴ� ũ��� ���� */
  font-weight: bold;
}

nav {
  background-color: #003366; /* £�� �Ķ� �迭 */
  padding: 10px 0;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #FFD700; 
}

.carousel-item img {
  height: 400px;
  object-fit: contain;
  background-color: #000;
}

.carousel-img {
  height: 500px; 
  object-fit: contain;
  background-color: #000;
}

/* 조직도 스타일 */
.organization-chart {
  margin: 40px 0;
  text-align: center;
}

.org-level-1 {
  margin-bottom: 30px;
}

.org-level-1 .org-item {
  display: inline-block;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  padding: 20px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  margin-bottom: 20px;
}

.org-level-1 .org-item::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-level-1 h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: bold;
}

.org-level-1 p {
  margin: 0;
  font-size: 16px;
}

.org-level-2 {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.org-level-2 .org-item {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  position: relative;
  min-width: 120px;
}

.org-level-2 .org-item::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-level-2 .org-item::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-level-2 h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: bold;
}

.org-level-2 p {
  margin: 0;
  font-size: 14px;
}

.org-level-3 {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.org-level-3 .org-item {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  min-width: 100px;
}

.org-level-3 .org-item::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-level-3 .org-item::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-level-3 h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: bold;
}

.org-level-3 p {
  margin: 0;
  font-size: 12px;
}

.org-level-4 {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.org-level-4 .org-item {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  min-width: 120px;
}

.org-level-4 .org-item::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-level-4 h4 {
  margin: 0 0 5px 0;
  font-size: 13px;
  font-weight: bold;
}

.org-level-4 p {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
}

/* 연결선 스타일 */
.org-level-2::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: #333;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .org-level-2 {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .org-level-3 {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .org-level-4 {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .org-level-1 .org-item {
    padding: 15px 25px;
  }
  
  .org-level-2 .org-item {
    padding: 12px 20px;
    min-width: 150px;
  }
  
  .org-level-3 .org-item {
    padding: 10px 15px;
    min-width: 120px;
  }
  
  .org-level-4 .org-item {
    padding: 8px 12px;
    min-width: 140px;
  }
}

/* 타임라인 스타일 */
.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #333;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 10px;
  width: 16px;
  height: 16px;
  background: #004080;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #004080;
}

.timeline-date {
  font-weight: bold;
  color: #004080;
  font-size: 16px;
  margin-bottom: 8px;
}

.timeline-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-content h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.timeline-content p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* 비전 및 미션 스타일 */
.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.vision-section, .mission-section {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.vision-content h4, .mission-content h4 {
  color: #004080;
  margin-bottom: 15px;
  font-size: 18px;
}

.core-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.value-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-left: 4px solid #004080;
}

.value-item h4 {
  color: #004080;
  margin-bottom: 10px;
}

.goals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.goal-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.goal-item h4 {
  color: #004080;
  margin-bottom: 15px;
}

.goal-item ul {
  margin: 0;
  padding-left: 20px;
}

.goal-item li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.375rem 0.375rem 0 0;
}

.blog-item .blog-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px 8px 0 0;
}

.card-overlay {
  transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
  opacity: 1 !important;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

@media (max-width: 768px) {
  .card-img-top,
  .blog-item .blog-img img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .card-img-top,
  .blog-item .blog-img img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .main-header .site-title {
    font-size: 1.4rem;
  }
  
  .main-nav .navbar-nav .nav-link {
    padding: 10px 15px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .vision-mission {
    grid-template-columns: 1fr;
  }
  
  .core-values {
    grid-template-columns: 1fr;
  }
  
  .goals {
    grid-template-columns: 1fr;
  }
}

/* 최고 경영진 */
.org-level-top {
  margin-bottom: 40px;
  position: relative;
}

.org-level-top::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-item.president {
  display: inline-block;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  padding: 25px 50px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  position: relative;
  margin-bottom: 20px;
  border: 3px solid #fff;
}

.org-item.president h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: bold;
}

.org-item.president p {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 500;
}

.org-item.president .org-desc {
  font-size: 12px;
  opacity: 0.9;
}

/* 경영진 */
.org-level-executive {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
}

.org-level-executive::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: #333;
}

.org-level-executive::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: #333;
}

.org-item.vice-president {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  min-width: 140px;
  border: 2px solid #fff;
}

.org-item.vice-president::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-item.vice-president::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-item.vice-president h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: bold;
}

.org-item.vice-president p {
  margin: 0 0 5px 0;
  font-size: 14px;
  font-weight: 500;
}

.org-item.vice-president .org-desc {
  font-size: 11px;
  opacity: 0.9;
}

/* 사무국 */
.org-level-management {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
}

.org-level-management::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: #333;
}

.org-level-management::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: #333;
}

.org-item.director {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
  padding: 18px 25px;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  position: relative;
  min-width: 120px;
  border: 2px solid #fff;
}

.org-item.manager {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  color: #333;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  position: relative;
  min-width: 100px;
  border: 2px solid #fff;
}

.org-item.director::before,
.org-item.manager::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-item.director::after,
.org-item.manager::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-item.director h4,
.org-item.manager h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: bold;
}

.org-item.director p,
.org-item.manager p {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 500;
}

.org-item.director .org-desc,
.org-item.manager .org-desc {
  font-size: 10px;
  opacity: 0.8;
}

/* 사업부서 */
.org-level-departments {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
}

.org-level-departments::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: #333;
}

.org-level-departments::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: #333;
}

.org-item.department {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  position: relative;
  min-width: 150px;
  border: 2px solid #fff;
}

.org-item.department::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-item.department::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-item.department h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: bold;
}

.org-item.department p {
  margin: 0 0 10px 0;
  font-size: 12px;
  line-height: 1.3;
}

.sub-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.sub-team {
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
}

/* 소속 단체 */
.org-level-affiliates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  position: relative;
}

.org-level-affiliates::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: #333;
}

.org-item.affiliate {
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  color: #333;
  padding: 12px 15px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  border: 1px solid #fff;
}

.org-item.affiliate::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #333;
}

.org-item.affiliate h4 {
  margin: 0 0 5px 0;
  font-size: 12px;
  font-weight: bold;
}

.org-item.affiliate p {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
}

/* 정보 섹션 */
.org-info-section {
  margin: 40px 0;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.board-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.board-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #004080;
}

.board-item strong {
  color: #004080;
}

/* 통계 섹션 */
.org-stats {
  margin: 40px 0;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-item h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: bold;
}

.stat-item p {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .org-chart-container {
    padding: 20px;
  }
  
  .org-level-executive {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .org-level-management {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .org-level-departments {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .org-level-affiliates {
    grid-template-columns: 1fr;
  }
  
  .org-item.president {
    padding: 20px 30px;
  }
  
  .org-item.vice-president {
    padding: 15px 20px;
    min-width: 180px;
  }
  
  .org-item.director,
  .org-item.manager {
    padding: 12px 15px;
    min-width: 150px;
  }
  
  .org-item.department {
    padding: 12px 15px;
    min-width: 180px;
  }
  
  .board-info {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* 공지사항 스타일 */
.notice {
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.notice h3 {
  color: #004080;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
}

.notice ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: left;
}

.notice ul li {
  margin-bottom: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.notice ul li:last-child {
  border-bottom: none;
}

.notice ul li a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.notice ul li a:hover {
  color: #004080;
  text-decoration: underline;
}

/* 모집 링크 스타일 */
.recruit-link {
  color: #27ae60 !important;
  font-weight: bold;
}

.recruit-link:hover {
  color: #229954 !important;
}

/* 후원문의 링크 스타일 */
.donation-link {
  color: #27ae60 !important;
  font-weight: bold;
}

.donation-link:hover {
  color: #229954 !important;
}

/* About 섹션 이미지 스타일 */
.about-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Service 섹션 이미지 스타일 */
.service-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

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

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 64, 128, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.service-img:hover .service-overlay {
  opacity: 1;
}

.service-overlay p {
  color: white;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  padding: 20px;
  margin: 0;
}

.service-item {
  margin-bottom: 30px;
  position: relative;
}

.service-text {
  text-align: center;
  padding: 15px 0;
}

.service-text h3 {
  color: #004080;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
}

.service-text .btn {
  background: #004080;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 12px;
  transition: background 0.3s ease;
}

.service-text .btn:hover {
  background: #002855;
  color: white;
}

/* About 섹션 텍스트 스타일 */
.about-text p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #555;
  font-size: 15px;
}

.section-header h1 {
  color: #004080;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.section-header h2 {
  color: #004080;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.section-header p {
  color: #666;
  font-size: 16px;
  margin-bottom: 10px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .about-img img {
    height: 300px;
  }
  
  .service-img img {
    height: 200px;
  }
  
  .section-header h1 {
    font-size: 24px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
}

/* About 페이지 스타일 */
.about-section {
  margin: 50px 0;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.about-section:last-child {
  border-bottom: none;
}

.about-image {
  text-align: center;
  margin-bottom: 20px;
}

.about-image img {
  width: 100%;
  max-width: 350px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-content {
  padding: 20px;
}

.about-content h2 {
  color: #004080;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.about-content h3 {
  color: #004080;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.about-content p {
  color: #555;
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 15px;
}

.business-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.business-list li {
  position: relative;
  padding: 10px 0 10px 25px;
  color: #555;
  line-height: 1.6;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.business-list li:last-child {
  border-bottom: none;
}

.business-list li::before {
  content: "▣";
  position: absolute;
  left: 0;
  top: 10px;
  color: #004080;
  font-size: 12px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .about-section {
    margin: 30px 0;
    padding: 20px 0;
  }
  
  .about-image img {
    max-width: 100%;
    height: 200px;
  }
  
  .about-content {
    padding: 15px;
  }
  
  .about-content h2 {
    font-size: 24px;
  }
  
  .about-content h3 {
    font-size: 20px;
  }
  
  .about-content p {
    font-size: 14px;
  }
  
  .business-list li {
    font-size: 14px;
  }
}

/* 게시판 스타일 */
.board-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  margin: 30px 0;
  overflow: hidden;
}

.board-header {
  background: linear-gradient(135deg, #004080, #2a5298);
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.board-actions .btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  transition: all 0.3s ease;
}

.board-actions .btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.admin-controls .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.board-table {
  padding: 0;
}

.board-table .table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.board-table .table thead th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
  padding: 15px 20px;
  text-align: center;
  border-top: none;
}

.board-table .table tbody td {
  padding: 15px 20px;
  vertical-align: middle;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
}

.board-table .table tbody tr:hover {
  background-color: #f8f9fa;
}

.post-title {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
}

.post-title:hover {
  color: #004080;
  text-decoration: underline;
}

.badge {
  font-size: 0.8rem;
  padding: 5px 10px;
}

/* 관리자 컨트롤 버튼 스타일 */
.admin-control .btn {
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.admin-control .btn-outline-primary:hover {
  background-color: #007bff;
  border-color: #007bff;
}

.admin-control .btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
}

.board-actions .btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  transition: all 0.3s ease;
}

.board-actions .btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
  color: white;
}

.board-search {
  padding: 20px 30px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.board-search .form-select,
.board-search .form-control {
  border: 1px solid #ced4da;
  border-radius: 5px;
}

.board-search .btn {
  border-radius: 5px;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
  font-size: 11px;
  padding: 4px 8px;
}

.board-pagination {
  padding: 20px 30px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

.pagination .page-link {
  color: #004080;
  border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
  background-color: #004080;
  border-color: #004080;
}

.pagination .page-link:hover {
  color: #002855;
  background-color: #e9ecef;
}

/* 게시판 카테고리 색상 */
.board-table .table tbody td:nth-child(2) {
  color: #004080; /* 청색으로 통일 */
  font-weight: 500;
}

/* 공지사항은 빨간색 유지 */
.board-table .table tbody tr:first-child td:nth-child(2) {
  color: #dc3545; /* 공지사항은 빨간색 */
  font-weight: bold;
}



/* 반응형 디자인 */
@media (max-width: 768px) {
  .board-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .board-header h2 {
    font-size: 20px;
  }
  
  .board-search .row {
    gap: 15px;
  }
  
  .board-table .table {
    font-size: 14px;
  }
  
  .board-table .table thead th,
  .board-table .table tbody td {
    padding: 8px 5px;
  }
  
  .board-table .table th:nth-child(5),
  .board-table .table td:nth-child(5),
  .board-table .table th:nth-child(6),
  .board-table .table td:nth-child(6) {
    display: none;
  }
}

/* 모달 스타일 */
.modal-content {
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.modal-header {
  background: linear-gradient(135deg, #004080, #2a5298);
  color: white;
  border-bottom: none;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 30px;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 20px 30px;
}

/* 글쓰기 폼 스타일 */
.form-label {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.form-control, .form-select {
  border: 1px solid #ced4da;
  border-radius: 5px;
  padding: 10px 12px;
  transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #004080;
  box-shadow: 0 0 0 0.2rem rgba(0, 64, 128, 0.25);
}

#imagePreview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#imagePreview img {
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 글보기 스타일 */
.post-header {
  border-bottom: 2px solid #004080;
  padding-bottom: 15px;
}

.post-header h4 {
  color: #004080;
  font-weight: bold;
  margin-bottom: 10px;
}

.post-meta {
  font-size: 14px;
  line-height: 1.6;
}

.post-content {
  padding-top: 20px;
}

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

.post-images img {
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  margin-bottom: 15px;
}

.post-text {
  line-height: 1.8;
  color: #333;
  font-size: 16px;
}

/* 반응형 모달 */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 10px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 15px 20px;
  }
  
  .post-header h4 {
    font-size: 18px;
  }
  
  .post-text {
    font-size: 14px;
  }
}

/* 게시글 상세 페이지 스타일 */
.post-detail-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  margin: 30px 0;
  overflow: hidden;
}

.post-detail-container .post-header {
  background: linear-gradient(135deg, #004080, #2a5298);
  color: white;
  padding: 30px;
}

.post-detail-container .post-meta {
  margin-bottom: 15px;
}

.post-detail-container .post-meta .badge {
  margin-right: 10px;
}

.post-detail-container .post-meta .category,
.post-detail-container .post-meta .date {
  margin-right: 20px;
  font-size: 14px;
  opacity: 0.9;
}

.post-detail-container .post-title {
  color: white;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

.post-detail-container .post-info {
  font-size: 14px;
  opacity: 0.9;
}

.post-detail-container .post-content {
  padding: 40px 30px;
}

.post-detail-container .post-text {
  line-height: 1.8;
  color: #333;
  font-size: 16px;
}

.post-detail-container .post-text h3 {
  color: #004080;
  font-size: 20px;
  font-weight: bold;
  margin: 30px 0 15px 0;
  border-left: 4px solid #004080;
  padding-left: 15px;
}

.post-detail-container .post-text h4 {
  color: #004080;
  font-size: 18px;
  font-weight: bold;
  margin: 25px 0 10px 0;
}

.post-detail-container .post-text p {
  margin-bottom: 15px;
}

.post-detail-container .post-text ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.post-detail-container .post-text li {
  margin-bottom: 8px;
}

.post-detail-container .post-actions {
  padding: 20px 30px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  text-align: center;
}

.post-detail-container .post-actions .btn {
  background: #004080;
  border-color: #004080;
  padding: 10px 25px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.post-detail-container .post-actions .btn:hover {
  background: #002855;
  border-color: #002855;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .post-detail-container .post-header {
    padding: 20px;
  }
  
  .post-detail-container .post-title {
    font-size: 22px;
  }
  
  .post-detail-container .post-content {
    padding: 25px 20px;
  }
  
  .post-detail-container .post-text {
    font-size: 14px;
  }
  
  .post-detail-container .post-text h3 {
    font-size: 18px;
  }
  
  .post-detail-container .post-text h4 {
    font-size: 16px;
  }
  
  .post-detail-container .post-actions {
    padding: 15px 20px;
  }
}

/* ==============================================
   모바일 반응형 스타일 - 전체 사이트 최적화
   ============================================== */

/* 태블릿 스타일 (768px ~ 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  
  .main-header .site-title {
    font-size: 1.6rem;
  }
  
  .carousel-item img {
    height: 400px;
  }
  
  .service .row .col-lg-4 {
    margin-bottom: 30px;
  }
}

/* 모바일 스타일 (768px 이하) */
@media (max-width: 768px) {
  /* 헤더 모바일 스타일 */
  .main-header .logo {
    width: 45px;
  }
  
  .main-header .site-title {
    font-size: 1.3rem;
    line-height: 1.2;
  }
  
  /* 네비게이션 모바일 */
  .main-nav .navbar-collapse {
    background: #003366;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  
  .main-nav .nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  /* 캐러셀 모바일 */
  .carousel-item img {
    height: 250px;
  }
  
  .carousel-caption {
    padding: 10px;
    bottom: 10px;
  }
  
  .carousel-caption h5 {
    font-size: 1rem;
  }
  
  .carousel-caption p {
    font-size: 0.8rem;
    display: none; /* 모바일에서 설명 숨김 */
  }
  
  /* 알림게시판 모바일 */
  .notice-board {
    margin: 0 -15px;
    border-radius: 0;
    border-left: none;
    border-top: 5px solid #004080;
  }
  
  .notice-title {
    font-size: 1.3rem;
  }
  
  .notice-title small {
    font-size: 0.8rem;
    margin-top: 5px;
  }
  
  .notice-list li {
    padding: 12px;
    margin-bottom: 10px;
  }
  
  .notice-list a {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* About 섹션 모바일 */
  .about .row {
    text-align: center;
  }
  
  .about .col-lg-5,
  .about .col-lg-7 {
    margin-bottom: 30px;
  }
  
  .about .section-header h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .about-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  /* 서비스 섹션 모바일 */
  .service .section-header h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .service-item {
    margin-bottom: 30px;
  }
  
  .service-img {
    height: 200px;
    overflow: hidden;
  }
  
  .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .service-text h3 {
    font-size: 1.2rem;
  }
  
  /* 조직도 모바일 */
  .org-level-2,
  .org-level-3,
  .org-level-4 {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .org-item {
    min-width: auto;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .org-item h4 {
    font-size: 1rem;
  }
  
  .org-item p {
    font-size: 0.8rem;
  }
  
  /* 타임라인 모바일 */
  .timeline-item {
    padding-left: 0;
    text-align: center;
  }
  
  .timeline-item::before {
    display: none;
  }
  
  .timeline-content {
    margin-bottom: 30px;
  }
  
  /* 비전 및 미션 모바일 */
  .vision-mission,
  .core-values,
  .goals {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* 푸터 모바일 */
  .footer-container {
    text-align: center;
  }
  
  footer .footer-contact p {
    font-size: 0.9rem;
  }
}

/* 소형 모바일 (576px 이하) */
@media (max-width: 576px) {
  /* 헤더 초소형 */
  .main-header .logo {
    width: 40px;
  }
  
  .main-header .site-title {
    font-size: 1.1rem;
  }
  
  /* 캐러셀 초소형 */
  .carousel-item img {
    height: 200px;
  }
  
  /* 컨테이너 패딩 조정 */
  .container {
    padding: 0 10px;
  }
  
  /* 알림게시판 초소형 */
  .notice-board {
    padding: 15px;
  }
  
  .notice-title {
    font-size: 1.1rem;
  }
  
  .notice-list li {
    padding: 10px;
  }
  
  .notice-list a {
    font-size: 0.85rem;
  }
  
  .badge {
    font-size: 0.7rem;
  }
  
  /* About 섹션 초소형 */
  .about .section-header h1 {
    font-size: 1.3rem;
  }
  
  .about-text p {
    font-size: 0.85rem;
  }
  
  /* 서비스 섹션 초소형 */
  .service .section-header h2 {
    font-size: 1.3rem;
  }
  
  .service-text h3 {
    font-size: 1.1rem;
  }
  
  /* 조직도 초소형 */
  .org-item {
    padding: 10px 15px;
  }
  
  .org-item h4 {
    font-size: 0.9rem;
  }
  
  .org-item p {
    font-size: 0.75rem;
  }
}

/* 정보마당 페이지 전용 현대적 스타일 */

/* 그라데이션 배경 클래스 */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.bg-gradient-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%) !important;
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

/* 호버 효과가 있는 카드 */
.hover-card {
  transition: all 0.3s ease;
  border-radius: 15px !important;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* 정보 아이템 스타일 */
.info-item {
  transition: all 0.3s ease;
  border-radius: 12px !important;
}

.info-item:hover {
  transform: translateX(5px);
  background-color: #f8f9fa !important;
}

/* 호버 링크 효과 */
.hover-link {
  transition: color 0.3s ease;
}

.hover-link:hover {
  color: #007bff !important;
}

/* 아이콘 래퍼 */
.icon-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
}

/* 서비스 아이템 호버 효과 */
.hover-service {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hover-service:hover {
  transform: translateY(-8px);
  border-color: #007bff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* 아이콘 원형 배경 */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

/* 공지사항 배너 스타일 */
.notice-banner {
  position: relative;
  overflow: hidden;
}

.notice-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* 헤더 장식 */
.header-decoration {
  position: relative;
}

.header-decoration::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #6f42c1);
  border-radius: 2px;
}

/* 반응형 개선 */
@media (max-width: 768px) {
  .info-header h1 {
    font-size: 2rem !important;
  }
  
  .notice-banner {
    padding: 1.5rem !important;
  }
  
  .notice-banner h5 {
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .service-item {
    padding: 2rem !important;
  }
  
  .icon-circle {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .info-header h1 {
    font-size: 1.75rem !important;
  }
  
  .notice-banner {
    padding: 1rem !important;
  }
  
  .card-body {
    padding: 1rem !important;
  }
  
  .service-item {
    padding: 1.5rem !important;
  }
}

/* 가로 모드 최적화 */
@media (max-height: 500px) and (orientation: landscape) {
  .carousel-item img {
    height: 300px;
  }
  
  .main-header {
    padding: 10px 0;
  }
  
  .main-nav .nav-link {
    padding: 10px 15px;
  }
}

/* 고해상도 디스플레이 지원 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo,
  .service-img img,
  .about-img img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .notice-banner::before {
    animation: none;
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  /* 다크 모드는 선택사항으로 구현 */
  /* 필요시 추가 개발 */
}

.map-container {
  flex: 1 1 60%;           /* 가로 공간 60% 차지 */
  height: 400px;
  border: 1px solid #ccc;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.text-container {
  flex: 1 1 40%;           /* 가로 공간 40% 차지 */
  padding: 10px;
  box-sizing: border-box;
}

/* 반응형: 화면 작아지면 세로로 쌓기 */
@media (max-width: 700px) {
  .container {
    flex-direction: column;
  }
  .map-container, .text-container {
    flex-basis: auto;
    height: 300px;  /* 높이 조절 가능 */
  }
}