/*
Theme Name: Korea Sports Association in Vietnam
Theme URI: https://koreasports.vn
Description: Custom WordPress Theme for the Korean Sports Association in Vietnam (재베트남 대한체육회). Bilingual Korean/Vietnamese, CMS-editable via ACF.
Version: 1.1.2
Author: KTech
Text Domain: koreasports
License:
*/

/* ==========================================================================
   1. Design Tokens & Global Variables
   ========================================================================== */
:root {
  --primary-color: #162953;
  --primary-rgb: 22, 41, 83;
  --secondary-color: #0061af;
  --secondary-rgb: 0, 97, 175;
  --accent-color: #c8a84b;
  /* Korean Gold */
  --accent-rgb: 200, 168, 75;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --text-dark: #1a2332;
  --text-light: #5a6478;
  --text-white: #ffffff;
  --border-color: #dde3ed;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
  --max-width: 1200px;
  --header-topbar-h: 38px;
}

/* ==========================================================================
   2. Base Elements Reset & Typography
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* 
a:hover {
  color: var(--accent-color);
} */

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* ==========================================================================
   3. Theme Utilities
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 15px;
}

.section-padding {
  padding: 60px 0;
}

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

.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.btn-primary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-white) !important;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 19, 43, 0.4);
}

/* ==========================================================================
   4. Header Styles
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  z-index: 99999 !important;
  /* Persistent high z-index to stay above all page content */
}

.site-header::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0;
  background: #ffffff;
  border-bottom: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.site-header.down::after {
  height: 280px;
  border-bottom: none;
  opacity: 1;
  pointer-events: auto;
}

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  /* Fix WordPress Admin Bar on Mobile to be fixed, preventing floating header gap */
  .admin-bar #wpadminbar {
    position: fixed !important;
  }
}


/* Scrolled Sticky State */
.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}



/* Top bar */
.header-topbar {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  height: 34px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.topbar-contact a {
  color: #fff;
}

.topbar-contact {
  display: flex;
  gap: 30px;
}

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

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-org {
  font-weight: 500;
  letter-spacing: -0.3px;
}

.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-menu {
  display: flex;
  list-style: none;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.topbar-menu li {
  position: relative;
}

.topbar-menu li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
}

.topbar-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.78rem;
  transition: var(--transition);
}

.topbar-menu a:hover {
  color: var(--accent-color);
}

/* Main header */
.header-main {
  background: #ffffff;
  height: 80px;
  position: relative;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  /* Preserve user custom 80px height */
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  height: 80px;
  /* Preserve user custom 80px height */
  width: auto !important;
  max-width: 100%;
  transition: var(--transition);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-kr {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.logo-en {
  font-size: 0.7rem;
  color: var(--text-light);
  line-height: 1.2;
  font-weight: 500;
}

/* Nav */
.main-navigation {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-navigation .menu-close {
  display: none;
}


.main-navigation>ul {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  height: 100%;
}

.main-navigation>ul>li {
  position: relative;
  height: 100%;
}

.main-navigation>ul>li>a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #404040;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 24px;
  height: 80px;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.main-navigation>ul>li>a::before {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation>ul>li:hover>a::before {
  width: 50px;
}

.main-navigation>ul>li:hover>a,
.main-navigation>ul>li.current-menu-item>a,
.main-navigation>ul>li.current-menu-ancestor>a {
  color: var(--primary-color);
}

.main-navigation .sub-menu {
  position: absolute;
  top: 65px;
  /* Align closer to the active underline bar */
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  background: transparent;
  box-shadow: none;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 10px 0 0 0;
}

.site-header.down .main-navigation .sub-menu {
  opacity: 1;
  visibility: visible;
}

.main-navigation .sub-menu a {
  display: block;
  padding: 8px 10px;
  color: #666666;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  border: none !important;
}

.main-navigation .sub-menu a:hover {
  background: transparent;
  color: var(--primary-color);
  font-weight: 700;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   5. Hero Banner Styles (Ken Burns Effect)
   ========================================================================== */
.hero-banner {
  position: relative;
  height: 450px;
  background-color: var(--primary-color);
  overflow: hidden;
  color: var(--text-white);
  display: flex;
  align-items: center;
  cursor: grab;
  user-select: none;
}

.hero-banner:active {
  cursor: grabbing;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-size: 100% 100%;
  background-position: center;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

@keyframes kenburns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 3.2rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  padding: 10px;
}

.hero-prev {
  left: 25px;
}

.hero-next {
  right: 25px;
}

.hero-prev:hover,
.hero-next:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.15);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

.hero-dot {
  width: 32px;
  height: 3px;
  border-radius: 1px;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.hero-dot.active {
  background: #4098ca;
}

/* ==========================================================================
   6. News Grid, Activity Reports & Blog Styles
   ========================================================================== */
.home-activity-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.activity-section-layout {
  display: grid;
  grid-template-columns: 3.5fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.activity-left-col {
  display: flex;
  flex-direction: column;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.activity-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.gallery-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.activity-more-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.activity-more-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.activity-cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.activity-card-link {
  text-decoration: none;
  display: block;
}

.activity-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.activity-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.activity-card-img-placeholder {
  background: #f3f4f6;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.activity-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.5;
  margin: 0;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-card-link:hover .activity-card-title {
  color: var(--primary-color);
}

/* Social Media Right Column */
.activity-right-col {
  display: flex;
  flex-direction: column;
  padding-top: 65px;
}

.social-connect-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-btn {
  display: block;
  width: 100%;
  height: 72px;
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-btn-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 20px;
}

.social-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.social-btn:hover .social-icon-wrapper {
  transform: scale(1.1);
}

.social-btn-text {
  display: flex;
  flex-direction: column;
}

.social-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* TikTok Specific Stylings */
.social-btn-tiktok {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn-tiktok::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(254, 44, 85, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(37, 244, 238, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

/* YouTube Specific Stylings */
.social-btn-youtube {
  background: #c30000;
}

.social-btn-youtube::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}


/* KakaoTalk Specific Stylings */
.social-btn-kakao {
  background: #FFE812;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-btn-kakao:hover {
  background: #FEE500;
}

.social-btn-kakao .social-label {
  color: #3C1E1E;
}

.social-btn-kakao .social-icon-wrapper {
  background: rgba(60, 30, 30, 0.08);
  color: #3C1E1E;
}

.kakao-svg-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* Responsive adjustment */
@media screen and (max-width: 991px) {
  .activity-section-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .activity-right-col {
    padding-top: 0;
  }

  .social-connect-buttons {
    flex-direction: row;
  }

  .social-btn {
    flex: 1;
  }
}

@media screen and (max-width: 600px) {
  .activity-cards-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .activity-card-title {
    font-size: 0.85rem;
  }

  .social-connect-buttons {
    flex-direction: row;
    gap: 12px;
  }

  .social-btn {
    height: 52px;
    border-radius: 12px;
  }

  .social-btn-inner {
    padding: 0 12px;
  }

  .social-icon-wrapper {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    margin-right: 8px;
  }

  .social-label {
    font-size: 0.85rem;
  }

  .activity-header {
    margin-bottom: 12px;
  }

  .activity-section-layout {
    gap: 30px;
  }
}

/* ==========================================================================
   7. Sponsor Marquee Carousel
   ========================================================================== */
.sponsors-section {
  background-color: #fcfcfc;
  padding: 30px 0;
  overflow: hidden;
}

.sponsors-header {
  margin-bottom: 24px;
}

.sponsors-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 60px;
  position: relative;
  padding: 30px 0;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 110px;
  animation: scrollMarquee 25s linear infinite;
}

.marquee-content img {
  max-height: 65px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: var(--transition);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ==========================================================================
   8. Page Template Styles
   ========================================================================== */
/* Page Greeting Template */
.greeting-hero-banner {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 50px;
}

.greeting-hero-left {
  width: 40%;
  background-color: #f4f6f9;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.president-hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.greeting-hero-right {
  width: 60%;
  background: linear-gradient(135deg, #0c2340 0%, #001c3d 100%);
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  position: relative;
}

.greeting-hero-title {
  font-size: 1.7rem;
  line-height: 1.5;
  font-weight: 300;
  margin: 0 0 20px 0;
  color: #ffffff !important;
}

.greeting-hero-title strong {
  font-weight: 700;
  color: #ffffff;
  border-bottom: 3px solid #00d2ff;
  padding-bottom: 4px;
  display: inline-block;
  margin-top: 6px;
}

.greeting-hero-sub {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.greeting-hero-sub span {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.president-hero-sig {
  height: 55px;
  width: auto;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.greeting-body-text {
  font-size: 1.05rem;
  color: #333333;
  line-height: 1.85;
  margin: 0 auto;
}

.greeting-lead {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0c2340;
  margin-bottom: 30px;
}

.greeting-body-text p {
  margin-bottom: 20px;
  text-align: justify;
}

.greeting-closing {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333333;
  margin-top: 20px;
}

.greeting-bottom-signature {
  display: flex;
  /* flex-direction: column; */
  align-items: flex-end;
  justify-content: end;
  gap: 15px;
}

.sig-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.sig-name {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0c2340;
  position: relative;
  padding-bottom: 5px;
}

.president-bottom-sig {
  width: auto;
  height: 48px;
}

@media (max-width: 992px) {
  .greeting-hero-banner {
    flex-direction: column;
  }

  .greeting-hero-left {
    width: 100%;
    height: 350px;
  }

  .greeting-hero-right {
    width: 100%;
    padding: 40px 30px;
  }

  .greeting-hero-title {
    font-size: 1.4rem;
  }
}



/* Page Purpose & Functions Template */
.purpose-intro-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
  border-left: 6px solid var(--secondary-color);
}

.purpose-intro-card h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.purpose-intro-card p {
  font-size: 1.1rem;
  color: var(--text-dark);
}

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

.function-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border-bottom: 3px solid transparent;
}

.function-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent-color);
}

.function-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 86, 179, 0.1);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  transition: var(--transition);
}

.function-card:hover .function-icon {
  background-color: var(--secondary-color);
  color: var(--text-white);
}

.function-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.function-title {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.function-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Page Business (Dự án kinh doanh) Template */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.business-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.business-icon-header {
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 2.5rem;
}

.business-card:hover .business-icon-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.business-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.business-num {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.business-title {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.business-desc {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Page Organizations Template */
.orgs-section-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 40px 0 25px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.regional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.regional-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--secondary-color);
}

.regional-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.regional-name {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.regional-info-list {
  list-style: none;
}

.regional-info-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
}

.regional-info-list strong {
  min-width: 100px;
  color: var(--text-dark);
}

.regional-info-list span {
  color: var(--text-light);
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.sports-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--border-color);
}

.sports-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--secondary-color);
}

.sports-name {
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sports-name i {
  color: var(--secondary-color);
}

/* Page Contact Template */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info-panel {
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.contact-info-panel h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--accent-color);
}

.contact-detail-items {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-detail-text p {
  font-size: 0.95rem;
  opacity: 0.8;
}

.contact-form-panel {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.contact-form-panel h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.contact-form-group {
  margin-bottom: 20px;
}

.contact-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact-form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.contact-map-wrapper {
  margin-top: 60px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

/* ==========================================================================
   9. Footer Styles (Rich Footer)
   ========================================================================== */
.site-footer {
  background-color: #0c2340;
  color: rgba(255, 255, 255, 0.75);
  padding: 24px 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-simple-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-info-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-info-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  row-gap: 4px;
}

.footer-meta-item {
  color: #fff;
}

.footer-meta-item .meta-value {
  display: inline;
}

.phone-kr,
.phone-vn,
.phone-separator {
  display: inline;
}

.footer-meta-item strong {
  color: #ffffff;
  font-weight: 500;
  margin-right: 6px;
}

.footer-meta-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-meta-item a:hover {
  color: #ffffff;
}

.footer-actions-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
}

.footer-social-icons a {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #0c2340;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 999;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top-btn:hover {
  background-color: #00274c;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .site-footer {
    padding: 30px 0;
  }

  .footer-simple-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .footer-info-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-info-line {
    display: contents;
  }

  .footer-meta-item {
    display: flex;
    align-items: flex-start;
    width: 100%;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
  }

  .footer-meta-item strong {
    color: #ffffff;
    display: inline-block;
    width: 65px;
    flex-shrink: 0;
    font-weight: 600;
  }

  .footer-meta-item .meta-value {
    flex: 1;
  }

  .phone-kr,
  .phone-vn {
    display: block;
    width: 100%;
  }

  .phone-separator {
    display: none;
  }

  .footer-actions-right {
    width: 100%;
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 5px;
  }
}

/* ==========================================================================
   10. Blog Archive & Details Styles
   ========================================================================== */
.archive-layout,
.single-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 40px;
}

@media (max-width: 992px) {

  .archive-layout,
  .single-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar-widget {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.widget-categories ul,
.widget-recent-posts ul {
  list-style: none;
}

.widget-categories li,
.widget-recent-posts li {
  margin-bottom: 12px;
}

.widget-categories a {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
}

.widget-categories a:hover {
  color: var(--secondary-color);
}

@media (max-width: 576px) {
  .article-content {
    padding: 20px;
  }
}

.article-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.article-header h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
}

.article-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body img {
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   11. WP Admin and Page Nav Styles
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.pagination .page-numbers {
  padding: 8px 16px;
  border-radius: 6px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

.pagination .page-numbers.current {
  background-color: var(--secondary-color);
  color: var(--text-white);
  border-color: var(--secondary-color);
}

.pagination a.page-numbers:hover {
  background-color: var(--secondary-color);
  color: var(--text-white);
  border-color: var(--secondary-color);
}

/* ==========================================================================
   12. Mobile Navigation
   ========================================================================== */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1200;
  }

  .menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header-main,
  .header-container {
    height: 70px;
  }

  .site-logo img {
    height: 54px;
  }

  .header-topbar {
    display: none !important;
  }



  .main-navigation {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding-top: 50px;
  }

  .main-navigation.active {
    right: 0;
  }

  .main-navigation .menu-close {
    display: block;
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    line-height: 1;
    transition: var(--transition);
  }

  .main-navigation .menu-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
  }

  .nav-overlay {
    z-index: 99998 !important;
  }

  body.menu-open .site-header {
    box-shadow: none !important;
  }

  body.menu-open .header-main {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
  }

  body.menu-open .site-logo {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }



  .main-navigation>ul {
    display: block;
    height: auto;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .main-navigation>ul>li {
    height: auto;
    width: 100%;
    display: block;
  }

  .main-navigation>ul>li>a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .main-navigation>ul>li>a:hover,
  .main-navigation>ul>li>a:active {
    background-color: rgba(0, 0, 0, 0.02);
  }

  .main-navigation>ul>li>a::before {
    display: none !important;
  }

  /* Chevron indicator for mobile submenus */
  .menu-item-has-children>a {
    position: relative;
    padding-right: 40px;
  }

  .menu-item-has-children>a::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin-left: auto;
    transition: transform 0.3s ease;
  }

  .menu-item-has-children.submenu-open>a::after {
    transform: rotate(-135deg);
  }

  .main-navigation .vn-label {
    display: inline;
  }

  .main-navigation .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    background: var(--bg-color);
  }

  .menu-item-has-children.submenu-open>.sub-menu {
    /* max-height set via JS */
  }

  .main-navigation .sub-menu a {
    display: block;
    text-align: left;
    padding: 12px 20px 12px 32px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light, #666);
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .main-navigation .sub-menu a:hover,
  .main-navigation .sub-menu a:active {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.04);
  }

  .hero-banner {
    height: 200px;
  }

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

  .activity-section-title,
  .sponsors-section-title,
  .gallery-section-title {
    font-size: 1.4rem;
  }
}


/* ==========================================================================
   13. Inner Page Banner
   ========================================================================== */
.page-banner {
  background: url('assets/images/page_banner_bg.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 80px 0;
  position: relative;
  text-align: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 64, 0.45);
  z-index: 1;
}

.page-banner-inner {
  position: relative;
  z-index: 2;
}

.page-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-banner-subtitle {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-banner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-banner .vn-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

.breadcrumb a {
  color: #fff;
}

.breadcrumb span {
  opacity: 0.6;
}

/* ==========================================================================
   14. Event Calendar / List
   ========================================================================== */
.events-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.event-filter-btn {
  padding: 7px 18px;
  border: 2px solid var(--border-color);
  background: #fff;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.event-filter-btn.active,
.event-filter-btn:hover {
  border-color: var(--secondary-color);
  background: var(--secondary-color);
  color: #fff;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  overflow: hidden;
  transition: var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.event-date-box {
  min-width: 80px;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  text-align: center;
}

.event-date-box .month {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.event-date-box .day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.event-date-box .year {
  font-size: 0.75rem;
  opacity: 0.7;
}

.event-info {
  padding: 18px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.event-badge {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.badge-tournament {
  background: rgba(200, 168, 75, 0.15);
  color: #956c00;
}

.badge-event {
  background: rgba(0, 97, 175, 0.12);
  color: var(--secondary-color);
}

.badge-training {
  background: rgba(0, 120, 80, 0.12);
  color: #007850;
}

.badge-meeting {
  background: rgba(120, 0, 0, 0.10);
  color: #800000;
}

.badge-other {
  background: var(--bg-color);
  color: var(--text-light);
}

.event-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.event-title a {
  color: inherit;
}

.event-title a:hover {
  color: var(--secondary-color);
}

.event-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.event-meta i {
  color: var(--accent-color);
  margin-right: 3px;
}

/* ==========================================================================
   15. Sports Org Cards (Regional, Groups, Clubs)
   ========================================================================== */
.org-section-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 14px;
  margin: 48px 0 24px;
}

.org-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.org-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--secondary-color);
}

.org-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.org-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 0;
}

.org-card-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-color);
  flex-shrink: 0;
}

.org-card-photo-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--text-light);
  flex-shrink: 0;
}

.org-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.org-card-sport {
  font-size: 0.82rem;
  color: var(--secondary-color);
  font-weight: 600;
}

.org-card-body {
  padding: 16px 20px 20px;
}

.org-info-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.org-info-row i {
  color: var(--accent-color);
  width: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.org-info-row strong {
  min-width: 72px;
  color: var(--text-light);
}

/* ==========================================================================
   16. Membership Page
   ========================================================================== */
.membership-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.membership-step {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  border-bottom: 4px solid var(--secondary-color);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--secondary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.membership-fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.membership-fee-table th {
  background: var(--primary-color);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
}

.membership-fee-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.membership-fee-table tr:nth-child(even) td {
  background: var(--bg-color);
}

/* ==========================================================================
   17. Q&A Accordion
   ========================================================================== */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.qa-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border-left: 4px solid var(--secondary-color);
}

.qa-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.qa-question:hover {
  background: var(--bg-color);
}

.qa-question i {
  transition: var(--transition);
  color: var(--secondary-color);
  flex-shrink: 0;
}

.qa-item.open .qa-question i {
  transform: rotate(180deg);
}

.qa-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.qa-item.open .qa-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}

/* ==========================================================================
   18. Footer Updates
   ========================================================================== */
.footer-logo {
  margin-bottom: 16px;
}

.footer-logo img {
  height: 56px;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.footer-logo-text strong {
  font-size: 1.1rem;
}

.footer-logo-text span {
  font-size: 0.78rem;
  opacity: 0.7;
}

/* footer socials moved to footer-about col */
.footer-about .footer-socials {
  margin-top: 20px;
}

/* ==========================================================================
   19. Responsive: General
   ========================================================================== */
@media (max-width: 768px) {
  .topbar-org {
    display: none;
  }

  .page-banner h1 {
    font-size: 1.6rem;
  }

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

  .events-list .event-card {
    flex-direction: column;
  }

  .event-date-box {
    flex-direction: row;
    min-width: auto;
    padding: 12px 20px;
    gap: 8px;
  }

  .marquee-content {
    gap: 30px;
  }

  .marquee-content img {
    max-width: 150px;
  }

  .marquee-container {
    padding: 10px 0;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: 20px 0px !important;
  }

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

  .activity-section-title,
  .sponsors-section-title,
  .gallery-section-title {
    font-size: 1.25rem;
  }

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

  .membership-steps {
    grid-template-columns: 1fr;
  }

  .gallery-section,
  .sponsors-section {
    padding: 10px 0 !important;
    margin-bottom: 20px;
  }

}

/* ==========================================================================
   20. Org Chart Page
   ========================================================================== */
.org-chart-wrapper {
  text-align: center;
  margin: 40px 0;
}

.org-chart-wrapper img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.org-chart-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 24px;
  border: 2px solid var(--secondary-color);
  border-radius: 6px;
  color: var(--secondary-color);
  font-weight: 600;
  transition: var(--transition);
}

.org-chart-download:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* ==========================================================================
   21. Photos & Videos Gallery Section (Section 3)
   ========================================================================== */
.gallery-section {
  background-color: #ffffff;
  padding: 30px 0;
}

.gallery-header {
  margin-bottom: 24px;
}

.gallery-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.gallery-card {
  display: flex;
  flex-direction: column;
}

.gallery-card a {
  text-decoration: none;
  display: block;
}

.gallery-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-media-wrapper {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-card:hover .gallery-media {
  transform: scale(1.05);
}

.gallery-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-top: 10px;
  line-height: 1.4;
  text-align: left;
  transition: color 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.8em;
}

.gallery-card:hover .gallery-card-title {
  color: var(--primary-color);
}

/* Video Card Play Overlay */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: background 0.3s ease;
}

.play-btn-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, color 0.3s ease;
}

.play-btn-circle i {
  margin-left: 4px;
}

.gallery-card:hover .play-btn-circle {
  transform: scale(1.12);
  background: #ffffff;
  color: var(--primary-color);
}

/* Lightbox Modal CSS */
.gallery-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.lightbox-content-wrapper {
  max-width: 85%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media-container img,
.lightbox-media-container iframe {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.lightbox-media-container iframe {
  width: 800px;
  height: 450px;
  border: none;
}

/* Responsive Galleries */
@media screen and (max-width: 1200px) {
  .gallery-grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-card:nth-child(5) {
    display: none;
  }
}

@media screen and (max-width: 991px) {
  .gallery-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-card:nth-child(4) {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .gallery-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card:nth-child(3) {
    display: none;
  }
}

/* ==========================================================================
   22. News Boards Section (Section 4 - 체육소식 & 한인소식)
   ========================================================================== */
.news-boards-section {
  background-color: #fcfcfc;
  padding: 30px 0;
}

.news-boards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.news-board-col {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  /* border-radius: 8px; */
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-board-col:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.news-board-header {
  background-color: #f0f0f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-board-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.news-board-more {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.news-board-more:hover {
  color: var(--primary-color);
}

.news-board-list {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

.news-board-item {
  transition: background-color 0.2s ease;
}

.news-board-item-link {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  text-decoration: none;
  color: #334155;
  transition: color 0.2s ease;
}

.news-item-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;

}

.news-board-item:hover .news-board-item-link {
  color: var(--primary-color);
}

@media screen and (max-width: 768px) {
  .news-boards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.sub-nav-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.sub-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}


.sub-nav-item a {
  display: block;
  padding: 16px 28px;
  color: #4a5568;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-align: center;
}

.sub-nav-item a:hover {
  background-color: var(--primary-color);
}

.sub-nav-item.active {
  background-color: var(--primary-color);
}

.sub-nav-item.active a,
.sub-nav-item:hover a {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 768px) {
  .sub-nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5px;
  }

  .sub-nav-item {
    flex: 0 0 auto;
  }

  .sub-nav-item a {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .sponsors-header {
    margin-bottom: 10px;
  }

  .greeting-hero-banner {
    margin-bottom: 25px;
  }

  .greeting-hero-left {
    height: 240px;
  }

  .greeting-hero-right {
    padding: 30px 20px;
  }

  .greeting-hero-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .greeting-hero-title strong {
    font-size: 1.25rem;
    padding-bottom: 2px;
    border-bottom-width: 2px;
  }

  .greeting-hero-sub span {
    font-size: 0.85rem;
  }

  .president-hero-sig {
    height: 38px;
  }

  .greeting-lead {
    font-size: 1.05rem;
    margin-bottom: 20px;
  }

  .greeting-body-text {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .greeting-closing {
    font-size: 1rem;
    margin-top: 15px;
  }

    .marquee-content {
      animation: scrollMarquee 5s linear infinite;
    }
}

.timeline-container {
  position: relative;
  padding: 0;
}

.timeline-line {
  position: absolute;
  top: 32px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: #e2e8f0;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 50px;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 32px;
  width: 40px;
  height: 1px;
  background-color: #e2e8f0;
  z-index: 5;
  transition: background-color 0.3s ease;
}

.timeline-item:hover::after {
  background-color: var(--primary-color);
}

.timeline-item.left::after {
  right: 0;
}

.timeline-item.right::after {
  left: 0;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 4px solid var(--primary-color);
  z-index: 10;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.timeline-item.left .timeline-badge {
  right: -8px;
}

.timeline-item.right .timeline-badge {
  left: -8px;
}

.timeline-year {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 20px 0;
  line-height: 24px;
  transition: color 0.3s ease;
}

.timeline-item:hover .timeline-year {
  color: var(--accent-color);
}

.timeline-events-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.timeline-event-row {
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
}

.timeline-item.left .timeline-event-row {
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 15px;
}

.timeline-item.right .timeline-event-row {
  flex-direction: row;
  justify-content: flex-start;
  gap: 15px;
}

.event-month {
  font-weight: 700;
  color: #1e293b;
  min-width: 45px;
  flex-shrink: 0;
}

.timeline-item.left .event-month {
  text-align: left;
}

.timeline-item.right .event-month {
  text-align: right;
}

.event-text {
  flex: 1;
}

@media (max-width: 768px) {
  .page-banner {
    padding: 50px 0;
  }

  .timeline-line {
    left: 25px;
    top: 24px;
  }

  .timeline-item {
    width: 100%;
    padding: 12px 10px 12px 45px;
  }

  .timeline-item::after {
    left: 25px !important;
    right: auto !important;
    width: 20px !important;
    top: 22px;
  }

  .timeline-item.left {
    left: 0;
    text-align: left;
  }

  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item.left .timeline-badge,
  .timeline-item.right .timeline-badge {
    left: 17px;
    right: auto;
    top: 14px;
  }

  .timeline-item.left .timeline-event-row {
    flex-direction: row;
    justify-content: flex-start;
  }

  .timeline-item.left .event-month {
    text-align: left;
    /* Changed to left align on mobile like right items */
  }

  .timeline-year {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    line-height: 20px;
  }

  .timeline-events-list {
    gap: 8px;
  }

  .timeline-event-row {
    font-size: 0.88rem;
    gap: 10px;
  }

  .timeline-item.left .timeline-event-row,
  .timeline-item.right .timeline-event-row {
    gap: 10px;
  }

  .event-month {
    min-width: 35px;
  }
}

.org-tabs-container {
  margin: 10px auto;
}

.org-tabs-header {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
}

.org-tab-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  color: #718096;
  padding: 10px 30px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.org-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

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

.org-tab-btn.active::after {
  transform: scaleX(1);
}

@media (max-width: 576px) {
  .org-tabs-header {
    gap: 10px;
  }

  .org-tab-btn {
    font-size: 0.95rem;
    padding: 8px 15px;
  }
}

.org-tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.org-tab-panel.active {
  display: block;
}

.org-chart-img-wrap {
  text-align: center;
  margin: 20px 0;
}

.org-chart-img-wrap img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.org-chart-download-wrap {
  text-align: center;
  margin-top: 30px;
}

.org-chart-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(12, 35, 64, 0.2);
  transition: all 0.2s ease;
}

.org-chart-download:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(12, 35, 64, 0.3);
  color: #ffffff;
}

.org-chart-placeholder {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 80px 40px;
  text-align: center;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto;
}

.org-chart-placeholder i {
  font-size: 4rem;
  color: #94a3b8;
  margin-bottom: 20px;
  display: block;
}

.org-chart-placeholder p {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
}

.org-chart-placeholder a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* ==========================================================================
   14. Purpose & Functions Page
   ========================================================================== */
.purpose-blue-title {
  color: #1e6ccf;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  text-align: left;
}

.purpose-plain-box {
  background-color: #fafafa;
  border: 1px solid #e5e7eb;
  padding: 24px 30px;
  margin-bottom: 45px;
}

.purpose-plain-box p {
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  word-break: keep-all;
}

.purpose-lead-text {
  font-size: 1.05rem;
  color: #4b5563;
  margin: 5px 0 25px 0;
  text-align: left;
  font-weight: 500;
}

.fn-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.fn-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 40px 15px;
  width: calc(25% - 12px);
  min-width: 180px;
  box-shadow: none;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.fn-card:hover {
  border-color: #1e6ccf;
  background-color: #f8fafc;
}

.fn-icon-wrap {
  font-size: 3rem;
  color: #1e6ccf;
  margin-bottom: 25px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.fn-card:hover .fn-icon-wrap {
  transform: scale(1.05);
}

.fn-text {
  font-size: 0.88rem;
  color: #333333;
  line-height: 1.6;
  font-weight: 500;
  word-break: keep-all;
  margin: 0;
}

@media (max-width: 1200px) {
  .fn-card {
    width: calc(25% - 12px);
  }
}

@media (max-width: 992px) {
  .fn-card {
    width: calc(33.333% - 10px);
  }
}

@media (max-width: 768px) {
  .fn-card {
    width: calc(50% - 8px);
    padding: 20px 10px;
    min-width: 0;
  }

  .fn-icon-wrap {
    font-size: 2rem;
    height: 40px;
    margin-bottom: 15px;
  }

  .fn-text {
    font-size: 0.8rem;
  }

  .purpose-blue-title {
    font-size: 1.15rem;
  }

  .purpose-lead-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .purpose-plain-box p {
    font-size: 0.88rem;
  }

  .purpose-plain-box {
    margin-bottom: 25px;
  }

  .purpose-title-block {
    margin-top: 20px !important;
  }
}

/* ==========================================================================
   15. Business Introduction Page
   ========================================================================== */
.biz-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 25px;
}

.biz-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 35px 25px;
  width: calc(25% - 12px);
  min-width: 220px;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: pointer;
}

.biz-card:hover {
  border-color: #1e6ccf;
  background-color: #f8fafc;
}

.biz-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.biz-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e6ccf;
}

.biz-icon {
  font-size: 1.8rem;
  color: #1e6ccf;
  transition: transform 0.2s ease;
}

.biz-card:hover .biz-icon {
  transform: scale(1.1);
}

.biz-title {
  font-size: 1.05rem;
  color: #1a365d;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.4;
  min-height: 48px;
  text-align: left;
}

.biz-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
}

.biz-item {
  position: relative;
  padding-left: 12px;
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 8px;
}

.biz-item::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #1e6ccf;
  font-weight: bold;
}

.biz-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .biz-card {
    width: calc(33.333% - 10px);
  }
}

@media (max-width: 992px) {
  .biz-card {
    width: calc(50% - 8px);
  }
}

@media (max-width: 576px) {
  .biz-card {
    width: calc(50% - 8px);
    min-width: 0;
    padding: 25px 14px;
  }

  .biz-title {
    min-height: auto;
  }
}

/* ==========================================================================
   16. Contact / Directions Page (오시는길)
   ========================================================================== */
.contact-top-header {
  text-align: center;
  margin-bottom: 25px;
}

.contact-sec-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.contact-map-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
  line-height: 0;
}

.contact-map-wrap iframe {
  display: block;
}

.contact-details-wrap {
  padding: 15px 0 5px 0;
}

.contact-addr-row {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: keep-all;
}

.contact-addr-row i {
  color: #1e6ccf;
  font-size: 1.3rem;
}

.contact-meta-row {
  font-size: 0.95rem;
  color: #555555;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  line-height: 1.6;
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-label {
  font-weight: 800;
  color: #1e6ccf;
  font-size: 0.95rem;
}

.meta-val {
  color: #333333;
}

.meta-val a {
  color: #333333;
  text-decoration: none;
  transition: color 0.15s ease;
}

.meta-val a:hover {
  color: #1e6ccf;
}

.info-sep {
  color: #d1d5db;
  font-size: 0.88rem;
  font-weight: 300;
}

.tel-line,
.tel-sep {
  display: inline;
}

@media (max-width: 768px) {
  .contact-sec-title {
    font-size: 1.45rem;
  }

  .contact-map-wrap iframe {
    height: 250px;
  }

  .contact-addr-row {
    font-size: 0.98rem;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
  }

  .contact-addr-row i {
    font-size: 1.15rem;
    margin-top: 3px;
  }

  .contact-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
  }

  .contact-meta-item {
    align-items: flex-start;
  }

  .tel-item {
    align-items: flex-start;
  }

  .tel-item .meta-val {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .tel-sep {
    display: none;
  }

  .tel-line {
    display: block;
  }

  .info-sep {
    display: none;
  }
}

/* ==========================================================================
   17. Regional Sports Orgs Page (지역체육회)
   ========================================================================== */
.reg-accordion-container {
  margin-top: 30px;
  border-top: 1px solid #4b5563;
}

.reg-accordion-item {
  border-bottom: 1px solid #e5e7eb;
}

.reg-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #ffffff;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-align: left;
}

.reg-accordion-trigger:hover {
  background-color: #fafafa;
}

.reg-accordion-item.active .reg-accordion-trigger {
  border-bottom: 1px solid #eeeeee;
}

.reg-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111111;
}

.reg-trigger-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.reg-phone-badge {
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reg-phone-badge i {
  background-color: #cccccc;
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.reg-chevron {
  font-size: 0.85rem;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

.reg-accordion-item.active .reg-chevron {
  transform: rotate(180deg);
}

.reg-accordion-content {
  display: none;
  background-color: #ffffff;
  padding: 0;
}

.reg-accordion-item.active .reg-accordion-content {
  display: block;
}

.reg-table-wrap {
  border: none;
  border-radius: 0;
  overflow: visible;
}

.reg-info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fbfbfb;
}

.reg-info-table tr {
  border-bottom: 1px solid #eeeeee;
}

.reg-info-table tr:last-child {
  border-bottom: 1px solid #eeeeee;
}

.reg-info-table th {
  width: 180px;
  background-color: transparent;
  font-weight: 400;
  text-align: left;
  padding: 15px 20px;
  font-size: 0.9rem;
  border-right: none;
}

.reg-info-table td {
  color: #111111;
  padding: 15px 20px;
  font-size: 0.9rem;
  font-weight: 400;
}

.reg-info-table td a {
  color: #111111;
  text-decoration: none;
  transition: color 0.15s ease;
}

.reg-info-table td a:hover {
  color: #1e6ccf;
}

@media (max-width: 576px) {
  .reg-accordion-trigger {
    padding: 14px 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .reg-trigger-right {
    width: 100%;
    justify-content: space-between;
  }

  .reg-info-table th {
    width: 100px;
    padding: 10px 12px;
  }

  .reg-info-table td {
    padding: 10px 12px;
  }
}

/* ==========================================================================
   KS TOURNAMENT CALENDAR (대회일정)
   ========================================================================== */
.ks-calendar-wrapper {
  margin: 30px auto 0;
  max-width: 1200px;
}

.ks-cal-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

.ks-cal-btn {
  background-color: #2b4468;
  color: #ffffff;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.15s ease;
}

.ks-cal-btn:hover {
  background-color: #1e324e;
  color: #ffffff;
}

.ks-cal-month-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111111;
  margin: 0 25px;
  min-width: 140px;
  text-align: center;
}

.ks-cal-grid-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ks-cal-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-top: 2px solid #2b4468;
  table-layout: fixed;
}

.ks-cal-th {
  padding: 8px 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111111;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-bottom: 1px solid #d1d5db;
  background: #f7f8f9;
}

.ks-cal-th.sun {
  color: #ef4444;
}

.ks-cal-th.sat {
  color: #3b82f6;
}

.ks-cal-td {
  width: 14.28%;
  height: 80px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  vertical-align: top;
  background: #ffffff;
  overflow: visible;
  transition: background-color 0.15s ease;
}

.ks-cal-td.empty {
  cursor: default;
}

.ks-cal-td.today {
  background-color: #fffbeb;
}

.ks-cal-day-header {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 6px;
}

.ks-cal-day-num {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333333;
}

.ks-cal-holiday {
  font-size: 0.78rem;
  font-weight: 400;
  white-space: nowrap;
}

.ks-cal-day-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: visible;
}

.ks-cal-event-link {
  font-size: 0.78rem;
  color: #111111;
  text-decoration: none;
  display: flex;
  align-items: start;
  gap: 5px;
  line-height: 1.4;
  font-weight: 500;
  position: relative;
  transition: color 0.15s ease;
}

.ks-cal-event-link:hover {
  color: #3b82f6;
}

.ks-cal-event-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 100%;
  transform: translateY(8px);
  background-color: #ffffff;
  border: 1px solid #777777;
  padding: 10px 14px;
  width: max-content;
  max-width: 280px;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

.ks-cal-event-tooltip .ks-tooltip-author {
  font-size: 0.72rem;
  color: #555555;
  font-weight: 400;
  white-space: nowrap;
}

.ks-cal-event-tooltip .ks-tooltip-title {
  font-size: 0.78rem;
  color: #111111;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

/* Hover trigger */
.ks-cal-event-link:hover .ks-cal-event-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(2px);
}

.ks-cal-event-link i {
  color: #6b7280;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ks-cal-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 25px;
}

.ks-cal-today-btn {
  background-color: #f3f4f6;
  color: #111111;
  padding: 9px 24px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
  border: 1px solid #e5e7eb;
}

.ks-cal-today-btn:hover {
  background-color: #e5e7eb;
  color: #111111;
}

@media (max-width: 768px) {
  .ks-cal-td {
    height: 105px;
    padding: 4px;
    vertical-align: top;
    text-align: left;
  }

  .ks-cal-day-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    width: 100%;
    overflow: hidden;
  }

  .ks-cal-day-num {
    font-size: 0.8rem;
    font-weight: 700;
  }

  .ks-cal-holiday {
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    margin-top: 1px;
  }

  .ks-cal-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 3px;
    width: 100%;
    overflow: hidden;
  }

  .ks-cal-event-link {
    font-size: 0.65rem;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    line-height: 1.3;
    max-height: 2.6em;
  }

  .ks-cal-event-link i {
    display: inline-block;
    margin-right: 3px;
    font-size: 0.62rem;
  }

  .ks-cal-month-title {
    font-size: 1.2rem;
    margin: 0 10px;
  }

  .sub-menu {
    width: 100% !important;
  }
}

/* ==========================================================================
   KS NEWS ARCHIVE GRID (한인소식 & 활동보고)
   ========================================================================== */
.ks-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.ks-news-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.ks-news-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: #000;
}

.ks-news-card-img-link {
  display: block;
  width: 100%;
  aspect-ratio: 290 / 207;
  overflow: hidden;
  background: #f3f4f6;
}

.ks-news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

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

.ks-news-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ks-news-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111111;
  line-height: 1.4;
  margin: 0 0 13px 0;
  height: 1.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.ks-news-card-title a {
  color: #111111;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ks-news-card-title a:hover {
  color: #3b82f6;
}

.ks-news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: #333;
  border-top: 1px solid #e0e0e0;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: -15px;
  margin-right: -15px;
  margin-bottom: -15px;
  margin-top: auto;
  background-color: #fafafa;
}

.ks-meta-author {
  color: #333;
  margin-right: auto;
}

.ks-meta-date i,
.ks-meta-views i {
  color: #333;
  margin-right: 3px;
}

/* Premium Styled Pagination */
.ks-pagination-wrapper {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 5px;
}

.ks-pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555555;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.ks-pagination-wrapper .page-numbers:hover {
  background: #f3f4f6;
  color: #111111;
  border-color: #c7d2fe;
}

.ks-pagination-wrapper .page-numbers.current {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .ks-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ks-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .ks-news-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    height: 2.8em;
  }
}

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

/* ==========================================================================
   CATEGORY ARCHIVE WRAPPER CLASSES
   ========================================================================== */
.ks-category-archive {
  background-color: #f7f9fc;
  padding: 40px 0 80px 0;
}

.ks-category-container {
  max-width: 1200px;
}

.ks-category-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #111111;
  text-align: center;
  margin: 0 auto 15px auto;
}

.ks-category-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.75rem;
  color: #6b7280;
}

.ks-category-header-meta strong {
  color: #6b7280;
  font-weight: 500;
}

.ks-category-empty {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ks-empty-icon {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 20px;
  display: block;
}

.ks-empty-title {
  color: #111111;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ks-empty-desc {
  color: #6b7280;
  font-size: 0.9rem;
}

/* ==========================================================================
   KS SINGLE POST LAYOUT
   ========================================================================== */
.ks-single-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

.ks-single-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f4f1f1;
  padding: 7px 0;
}

.ks-single-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ks-single-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.ks-single-meta-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ks-single-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: #111111;
  line-height: 1.2;
}

.ks-single-stats {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  color: #777777;
  line-height: 1.2;
  align-items: center;
}

.ks-single-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ks-single-stats i {
  color: #555555;
}

.ks-single-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cccccc;
  background: #ffffff;
  color: #555555;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ks-single-list-btn:hover {
  background: #f3f4f6;
  color: #111111;
  border-color: #999999;
}

.ks-single-featured-image-wrapper {
  text-align: center;
  margin-bottom: 35px;
}

.ks-single-featured-image {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 2px;
}

.ks-single-content {
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.8;
  margin-bottom: 50px;
}

.ks-single-content p {
  margin-bottom: 20px;
}

.ks-single-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
  margin-top: 15px;
  font-size: 0.85rem;
}

.ks-nav-item a {
  color: #555555;
  text-decoration: none;
  transition: color 0.15s ease;
  font-weight: 500;
}

.ks-nav-item a:hover {
  color: #3b82f6;
}

.ks-nav-item i {
  margin: 0 5px;
}

/* ==========================================================================
   15. Membership Guide Page Template
   ========================================================================== */
.ks-membership-section {
  background-color: #ffffff;
  padding: 40px 0 50px 0;
}

.ks-membership-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.ks-membership-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111111;
  text-align: center;
  margin-bottom: 30px;
}

.ks-membership-block {
  margin-bottom: 50px;
}

.ks-membership-block-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111111;
  padding-bottom: 10px;
  margin-bottom: 5px;
}

/* Section 1: Qualifications Table */
.ks-qual-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.9rem;
  border-top: 2px solid #1a365d;
  border-bottom: 1px solid #cccccc;
}

.ks-qual-table th {
  padding: 10px;
  font-weight: 700;
  color: #111111;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}


.ks-qual-table td {
  padding: 10px 20px;
  border: 1px solid #e2e8f0;
  color: #555555;
  line-height: 1.6;
}

.ks-text-danger {
  color: #ef4444;
  font-weight: 700;
}

/* Section 2: Privileges Table */
.ks-priv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  border-top: 2px solid #1a365d;
  border-bottom: 1px solid #cccccc;
}

.ks-priv-table th {
  padding: 10px;
  font-weight: 700;
  color: #111111;
  text-align: center;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ks-priv-cat-row {
  background: #eff6ff;
}

.ks-priv-cat-cell {
  padding: 10px 15px;
  font-weight: 700;
  color: #1e3a8a;
  border: 1px solid #e2e8f0;
}

.ks-priv-table td {
  padding: 12px 15px;
  color: #555555;
  border: 1px solid #e2e8f0;
}

.ks-priv-table tr:last-child td {
  border: 1px solid #cccccc;
}

.ks-priv-desc-cell {
  border-right: 1px solid #e2e8f0;
}

.ks-priv-val-cell {
  text-align: center;
  border-right: 1px solid #e2e8f0;
}

.ks-priv-check {
  color: #3b82f6;
}

/* Section 3: Annual Fees Table */
.ks-fee-subtitle {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 20px;
}

.ks-fee-subtitle strong {
  color: #111111;
  font-weight: 700;
}

.ks-fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  border-top: 2px solid #1a365d;
  border-bottom: 1px solid #cccccc;
  text-align: center;
}

.ks-fee-table th {
  padding: 12px;
  font-weight: 700;
  color: #111111;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.ks-fee-table td {
  padding: 12px;
  color: #555555;
  border: 1px solid #e2e8f0;
}

.ks-fee-table tr:last-child td {
  border: 1px solid #cccccc;
}

.ks-fee-type-cell {
  font-weight: 700;
  color: #111111;
  vertical-align: middle;
  background: #fbfbfb;
}

.ks-fee-name-cell {
  text-align: left;
  padding-left: 20px;
}

.ks-fee-val-cell {
  vertical-align: middle;
}

/* Section 4: Bank Details */
.ks-bank-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 25px;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #333333;
}

.ks-bank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ks-bank-label {
  color: #1a365d;
  display: inline-block;
  width: 120px;
  font-weight: 700;
}

/* Section 5: Application Download */
.ks-download-card {
  text-align: center;
  background: #eff6ff;
  border: 1px dashed #3b82f6;
  padding: 40px 30px;
  border-radius: 8px;
}

.ks-download-icon {
  font-size: 3rem;
  color: #3b82f6;
  margin-bottom: 20px;
  display: block;
}

.ks-download-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.ks-download-desc {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.ks-download-btn {
  background: #3b82f6;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}

.ks-download-btn:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
}

.ks-membership-btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-white) !important;
  padding: 5px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 97, 175, 0.3);
  transition: var(--transition);
}

.ks-membership-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 41, 83, 0.4);
}

/* ==========================================================================
   16. Q&A Board Styling
   ========================================================================== */
.ks-qa-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Page Header & Breadcrumbs matching mockup */
.ks-qa-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 10px;

}

.ks-qa-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
  line-height: 1;
}

.ks-qa-breadcrumbs {
  font-size: 0.85rem;
  color: #555555;
  font-weight: 500;
}

.ks-qa-breadcrumbs strong {
  color: #111111;
}

/* Layout Wrapper for Sidebar on the right */
.ks-qa-layout-wrapper {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  align-items: flex-start;
}

.ks-qa-layout-wrapper.no-sidebar {
  display: block;
}

.ks-qa-main-content {
  flex: 1;
  min-width: 0;
}

.ks-qa-layout-wrapper.no-sidebar .ks-qa-main-content {
  width: 100%;
}

.ks-qa-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.ks-sidebar-widget {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ks-sidebar-title {
  background-color: #0087cc;
  /* Matching the beautiful deep blue in mockup */
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 20px;
  margin: 0;
  text-align: center;
}

.ks-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #ffffff;
}

.ks-sidebar-menu li {
  border-bottom: 1px solid #e2e8f0;
}

.ks-sidebar-menu li:last-child {
  border-bottom: none;
}

.ks-sidebar-menu a {
  display: block;
  padding: 14px 20px;
  color: #333333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.ks-sidebar-menu li.active a,
.ks-sidebar-menu a:hover {
  background-color: #f8fafc;
  color: #0087cc;
  font-weight: 700;
}

.ks-qa-notice-box {
  background-color: #f1f5f9;
  padding: 20px 25px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: #1e40af;
  margin-bottom: 10px;
}

.ks-qa-search-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-bottom: 2px solid #666666;
  padding-bottom: 12px;
}

.ks-qa-search-input {
  padding: 8px 12px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  font-size: 0.9rem;
  width: 200px;
  outline: none;
}

.ks-qa-search-btn {
  padding: 8px 20px;
  background-color: #666666;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ks-qa-search-btn:hover {
  background-color: #444444;
}

/* Q&A List */
.ks-qa-list {
  display: flex;
  flex-direction: column;
}

.ks-qa-item-row {
  border-bottom: 1px solid #eeeeee;
  padding: 18px 10px;
  transition: background-color 0.15s ease;
}

.ks-qa-item-row:hover {
  background-color: #f8fafc;
}

.ks-qa-item-indent {
  padding-left: 35px;
  position: relative;
}

.ks-qa-item-indent::before {
  content: "↳";
  position: absolute;
  left: 15px;
  top: 18px;
  color: #999999;
  font-weight: 700;
}

.ks-qa-title-link {
  font-size: 1.05rem;
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.ks-qa-title-link:hover {
  color: #3b82f6;
}

.ks-qa-meta {
  font-size: 0.85rem;
  color: #777777;
}

.ks-qa-meta span {
  color: #999999;
}

.ks-qa-lock-icon {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Bottom Controls */
.ks-qa-controls {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 30px;
  padding-top: 15px;
  min-height: 50px;
}

.ks-qa-left-btns {
  position: absolute;
  left: 0;
}

.ks-qa-center-btns {
  margin: 0 auto;
  display: flex;
  gap: 6px;
}

.ks-qa-btn {
  padding: 5px 22px;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ks-qa-btn-dark {
  background-color: #666666;
  color: #ffffff;
}

.ks-qa-btn-dark:hover {
  background-color: #444444;
  color: #ffffff;
}

.ks-qa-btn-gray {
  background-color: #888888;
  color: #ffffff;
}

.ks-qa-btn-gray:hover {
  background-color: #666666;
  color: #ffffff;
}

.ks-qa-btn-light {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.ks-qa-btn-light:hover {
  background-color: #e2e8f0;
}

/* Detail view table matching mockup (no vertical borders) */
.ks-qa-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  border-top: 2px solid #666666;
}

.ks-qa-detail-table td {
  padding: 10px 20px;
  border-bottom: 1px solid #eeeeee;
  font-size: 0.95rem;
}

.ks-qa-detail-label {
  background-color: transparent !important;
  font-weight: 700;
  color: #111111;
  width: 150px;
  text-align: center;
  border-right: none !important;
}

.ks-qa-detail-value {
  color: #333333;
  text-align: left;
}

.ks-qa-detail-body {
  padding: 30px 20px;
  font-size: 0.98rem;
  line-height: 1.8;
  color: #333333;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 0;
  text-align: left;
  white-space: pre-wrap;
}

/* Prev Next links */
.ks-qa-navigation-box {
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid #666666;
  margin-bottom: 30px;
}

.ks-qa-nav-row {
  display: flex;
  padding: 15px 20px;
  border-bottom: 1px solid #eeeeee;
  font-size: 0.95rem;
}

.ks-qa-nav-row:last-child {
  border-bottom: none;
}

.ks-qa-nav-label {
  width: 150px;
  font-weight: 700;
  color: #111111;
  text-align: center;
}

.ks-qa-nav-val {
  text-align: left;
  flex: 1;
}

.ks-qa-nav-val a {
  color: #333333;
  text-decoration: none;
}

.ks-qa-nav-val a:hover {
  color: #0087cc;
}

/* Password Form and Writing Form */
.ks-qa-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
}

.ks-qa-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.ks-qa-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.ks-qa-form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ks-qa-form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.ks-qa-form-input,
.ks-qa-form-textarea {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.92rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.ks-qa-form-input:focus,
.ks-qa-form-textarea:focus {
  border-color: #3b82f6;
}

.ks-qa-form-textarea {
  resize: vertical;
  min-height: 250px;
}

.ks-qa-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  margin-top: 10px;
}

.ks-qa-checkbox-label input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.ks-qa-alert {
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}

.ks-qa-alert-danger {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
}

.ks-qa-alert-success {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}

.ks-qa-pw-prompt {
  max-width: 450px;
  margin: 60px auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ks-qa-pw-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.ks-qa-pw-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
}

.ks-qa-pw-input-box {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.ks-qa-pw-input-box input {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
  width: 200px;
}

.ks-qa-pw-input-box input:focus {
  border-color: #3b82f6;
}

/* Premium Q&A Modal Popup */
.ks-qa-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ks-qa-modal.active {
  opacity: 1;
  visibility: visible;
}

.ks-qa-modal-content {
  background-color: #ffffff;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  border-radius: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.2s ease;
}

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

.ks-qa-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  font-weight: 300;
  color: #666666;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}

.ks-qa-modal-close:hover {
  color: #111111;
}

.ks-qa-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 25px;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 12px;
}