:root {
  --primary-color: #182D64;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --purple-color: #72F5B7;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  color: var(--dark-color);
}

/* General Styles */
.bg-purple {
  background-color: var(--purple-color);
}

.text-purple {
  color: var(--purple-color);
}

.border-purple {
  border-color: var(--purple-color) !important;
}

.z-index-1 {
  z-index: 1;
}

/* Logo Styles */
.logo-img {
  height: 45px !important;
  width: auto;
  transition: all 0.3s ease;
}

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

/* Animation Keyframes */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--dark-color);
}



.hero-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-scroll-indicator {
  animation: bounce 2s infinite;
}

/* Features Section */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Programs Section */
.program-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.program-card .card-img-top {
  transition: all 0.5s ease;
  height: 200px;
  object-fit: cover;
}

.program-card:hover .card-img-top {
  transform: scale(1.1);
}

/* Experience Gallery Section */
.gallery-item {
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.gallery-item img {
  transition: all 0.5s ease;
  height: 240px;
  object-fit: cover;
  width: 100%;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Testimonial Section */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  height: 40px;
  width: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--dark-color);
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--dark-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: 0.5s;
}

.loading-animation {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Bounce Animation */
.bounce {
  animation: bounce 2s infinite;
}

/* Float Animation */
.float {
  animation: float 6s ease-in-out infinite;
}

/* Share Photo Modal */
#photoShareForm .form-label {
  font-weight: 500;
}

#photoUpload {
  cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .gallery-item img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-section {
    height: 80vh !important;
  }
  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-text {
    font-size: 1rem;
  }
  .hero-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .gallery-item img {
    height: 180px;
  }
}

/* Language selector active state */
.dropdown-item.active, 
.dropdown-item:active {
  background-color: var(--primary-color);
  color: white;
}

/* Toast notifications */
.toast-container {
  z-index: 1070;
}

/* Language transition effects */
[data-i18n] {
  transition: all 0.3s ease;
}

/* Right-aligned language dropdown */
.dropdown-menu-end {
  right: 0;
  left: auto;
}

/* Ensure dropdown menus appear above sticky elements */
.dropdown-menu {
  z-index: 1060 !important;
}

/* 게시글 카테고리 라벨 스타일링 */
.badge.me-5 {
  margin-right: 2rem !important;
}

/* 정보공유 라벨 스타일 개선 */
.badge.bg-success {
  background-color: #28a745 !important;
  color: white !important;
  font-weight: 600;
  border: none;
}

/* Q&A 라벨 가독성 개선 */
.badge.bg-info {
  background-color: #17a2b8 !important;
  color: white !important;
  font-weight: 600;
}

/* 카테고리 라벨과 제목/날짜 사이 추가 간격 */
.post-row .badge + h6,
.card-body .badge + small {
  margin-left: 0.8rem;
}

/* 게시글 목록에서 카테고리 라벨과 제목 사이 간격 강화 */
.post-row .badge {
  margin-right: 1.5rem !important;
}

/* 게시글 상세보기에서 라벨과 날짜 사이 간격 */
.card-body > div:first-child .badge {
  margin-right: 2rem !important;
}

/* 게시글 목록의 태그 간격 조정 */
.badge.me-1 {
  margin-right: 0.1rem !important;
}

/* 태그 간격 강제 적용 */
.badge.bg-light.text-secondary {
  margin-right: 0.1rem !important;
}

/* 더 구체적인 태그 간격 조정 */
.mt-1 .badge {
  margin-right: 0.1rem !important;
}

/* Testimonial Modal Styles */
.testimonial-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.testimonial-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.testimonial-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-modal-overlay.show .testimonial-modal-content {
  transform: scale(1);
}

.testimonial-modal-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 25px 0;
}

.testimonial-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.testimonial-modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.testimonial-modal-body {
  padding: 20px 40px 40px;
  text-align: center;
}

.testimonial-modal-name {
  margin: 0 0 8px 0;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
}

.testimonial-modal-role {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 0.95rem;
  font-weight: 500;
}

.testimonial-modal-stars {
  margin: 0 0 20px 0;
  font-size: 1.2rem;
  text-align: center;
}

.testimonial-modal-stars i {
  margin: 0 2px;
}

.testimonial-modal-text {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
  border-left: 4px solid var(--primary-color);
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.testimonial-modal-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  top: -5px;
  left: 20px;
  opacity: 0.2;
  font-family: serif;
}

.testimonial-modal-text::after {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  bottom: -25px;
  right: 20px;
  opacity: 0.2;
  font-family: serif;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .testimonial-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .testimonial-modal-body {
    padding: 15px 25px 30px;
  }
  
  .testimonial-modal-text {
    font-size: 1rem;
    padding: 25px 20px;
    max-width: 100%;
  }
  
  .testimonial-modal-text::before,
  .testimonial-modal-text::after {
    font-size: 2.5rem;
  }
  
  .testimonial-modal-name {
    font-size: 1.2rem;
  }
  
  .testimonial-modal-role {
    font-size: 0.9rem;
  }
  
  .testimonial-modal-stars {
    font-size: 1.1rem;
  }
} 