/*
Theme Name: Wuxi Kendo - 无锡剑道爱好会馆
Theme URI: https://github.com/ousin/wuxi-kendo-club
Author: Wuxi Kendo Club
Author URI: https://github.com/ousin
Description: 无锡剑道爱好会馆官方网站自定义主题，参考澳门剑道连盟设计风格。蓝白配色系统、模块化全宽布局、日式禅意美学。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wuxi-kendo
Tags: kendo, martial-arts, custom-header, custom-menu, featured-images, translation-ready
*/

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
  /* Colors - Inspired by macaukendo.org */
  --color-primary: #004098;
  --color-primary-dark: #002d6b;
  --color-primary-light: #E1F1FF;
  --color-accent-gold: #C9A96E;
  --color-accent-red: #8B2635;
  --color-white: #FFFFFF;
  --color-bg-light: #F8FAFC;
  --color-text: #1A1A2E;
  --color-text-light: #6B7280;
  --color-border: #E5E7EB;

  /* Typography */
  --font-heading: 'Noto Serif SC', 'Noto Serif JP', 'Source Han Serif SC', 'Source Han Serif', 'SimSun', serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

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

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition-base);
  padding: 0;
}

.site-header.scrolled {
  background: rgba(0, 64, 152, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.header-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 24px;
  font-size: 0.85rem;
  gap: 16px;
}

.header-top a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.header-top a:hover {
  color: var(--color-white);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.site-logo .logo-symbol {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.site-logo .logo-symbol svg {
  width: 100%;
  height: 100%;
  fill: currentColor !important;
}

.site-logo .logo-symbol svg * {
  fill: currentColor !important;
  stroke: none !important;
}

.site-header.scrolled .site-logo .logo-text,
.site-header.scrolled .site-logo .logo-symbol {
  color: var(--color-white);
}

.site-logo .logo-text {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.site-logo .logo-text .logo-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Navigation Menu */
.main-navigation {
  display: flex;
  align-items: center;
}

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

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 20px 18px;
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  white-space: nowrap;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--color-accent-gold);
  transition: var(--transition-base);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
  transform: translateX(-50%) scaleX(1);
}

.main-navigation a:hover {
  color: var(--color-accent-gold);
}

/* Dropdown */
.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 64, 152, 0.95);
  backdrop-filter: blur(10px);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-base);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
}

.main-navigation li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation .sub-menu a {
  padding: 12px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: var(--transition-base);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 45, 107, 0.75) 0%,
    rgba(0, 64, 152, 0.55) 50%,
    rgba(26, 26, 46, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 24px;
}

.hero-content .hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(201, 169, 110, 0.6);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--color-accent-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content h1 .accent {
  color: var(--color-accent-gold);
}

.hero-content .hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-base);
  border: 2px solid transparent;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--color-accent-gold);
  color: var(--color-text);
  border-color: var(--color-accent-gold);
}

.btn-primary:hover {
  background: #b8943e;
  border-color: #b8943e;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}

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

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  letter-spacing: 2px;
  animation: bounce 2s ease-in-out infinite;
}

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

/* ========================================
   Section Common Styles
   ======================================== */
.section {
  padding: var(--section-padding);
}

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

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-header .section-subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 4px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 16px auto 0;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent-gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ========================================
   About / Introduction Section
   ======================================== */
.about-section {
  background-color: var(--color-primary-light);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '剣';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20rem;
  font-family: var(--font-heading);
  color: rgba(0, 64, 152, 0.04);
  font-weight: 900;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--color-accent-gold);
  border-radius: 12px;
  transform: translate(12px, 12px);
  z-index: -1;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-text-light);
  line-height: 1.9;
}

.about-text .btn {
  margin-top: 8px;
}

/* ========================================
   Announcements Section
   ======================================== */
.announcements-section {
  background: var(--color-primary);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Seigaiha wave pattern at bottom */
.announcements-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40'%3E%3Cpath d='M0 40 C20 40 20 20 40 20 C60 20 60 40 80 40' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3C/svg%3E") repeat-x;
  background-size: 80px 40px;
  opacity: 0.6;
}

.announcements-section .section-header h2 {
  color: var(--color-white);
}

.announcements-section .section-header p {
  color: rgba(255,255,255,0.7);
}

.announcements-section .section-divider {
  background: var(--color-accent-gold);
}

.announcement-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.announcement-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  transition: var(--transition-base);
  backdrop-filter: blur(4px);
}

.announcement-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateX(6px);
  border-color: var(--color-accent-gold);
}

.announcement-date {
  flex-shrink: 0;
  text-align: center;
  min-width: 70px;
}

.announcement-date .date-month {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-white);
  opacity: 0.7;
}

.announcement-date .date-day {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent-gold);
}

.announcement-info h3 {
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 4px;
}

.announcement-info p {
  font-size: 0.85rem;
  color: var(--color-white);
  opacity: 0.6;
}

.announcement-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  opacity: 0.4;
  transition: var(--transition-base);
}

.announcement-card:hover .announcement-arrow {
  opacity: 1;
  color: var(--color-accent-gold);
}

/* ========================================
   Courses Section
   ======================================== */
.courses-section {
  background: var(--color-white);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.course-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
}

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

.course-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.course-card:hover .course-card-image img {
  transform: scale(1.08);
}

.course-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  background: var(--color-accent-gold);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
}

.course-card-body {
  padding: 24px;
}

.course-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.course-card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.course-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.course-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery-section {
  background: var(--color-bg-light);
}

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

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-base);
}

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

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-base);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-list {
  list-style: none;
  padding: 0;
}

.contact-info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-detail h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-detail p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

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

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: var(--transition-base);
  background: var(--color-bg-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 64, 152, 0.1);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: #0a1628;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-brand .footer-logo img {
  height: 40px;
  filter: grayscale(1) brightness(2);
  opacity: 0.8;
}

.footer-brand .footer-logo-text {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-accent-gold);
  color: var(--color-text);
}

.social-svg-wrap {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-svg-wrap svg {
  width: 100%;
  height: 100%;
  fill: currentColor !important;
}

.social-svg-wrap svg * {
  fill: currentColor !important;
}

.footer-column h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-column ul a:hover {
  color: var(--color-accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* ========================================
   Blog & Post Styles
   ======================================== */
.page-hero {
  background: var(--color-primary);
  padding: 140px 0 60px;
  text-align: center;
  color: var(--color-white);
}

.page-hero h1 {
  color: var(--color-white);
  font-size: 2.5rem;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 60px 0;
}

.post-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
}

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

.post-card-image {
  height: 200px;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 24px;
}

.post-card-body h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.post-card-body h2 a {
  color: var(--color-text);
}

.post-card-body h2 a:hover {
  color: var(--color-primary);
}

.post-card-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.post-content h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2em;
  margin-bottom: 0.8em;
}

.post-content p {
  text-indent: 2em;
  margin-bottom: 1.2em;
  line-height: 1.9;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.2em;
  padding-left: 2em;
}

.post-content li {
  margin-bottom: 0.4em;
  line-height: 1.8;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .header-main {
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--color-primary-dark);
    flex-direction: column;
    padding: 80px 24px 24px;
    transition: var(--transition-base);
    z-index: 999;
  }

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

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .main-navigation a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .post-list {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */
.lang-switcher {
    position: relative;
    display: inline-block;
    margin-left: 16px;
    z-index: 100;
}

.lang-switcher-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 120px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent var(--color-white) transparent;
}

.lang-dropdown li {
    margin: 0;
}

.lang-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-dropdown a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.lang-dropdown li.active a {
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(184, 134, 11, 0.05); /* very light gold */
}

/* ==========================================================================
   Live Chat System
   ========================================================================== */
.kendo-livechat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.kendo-livechat-button {
    width: 60px;
    height: 60px;
    background: var(--color-accent-gold);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-base);
    position: relative;
}

.chat-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background-color: #ff3b30;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.kendo-livechat-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.kendo-livechat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: rgba(10, 25, 47, 0.85); /* Deep translucent blue */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.kendo-livechat-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.kendo-livechat-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kendo-livechat-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-white);
}

#livechat-close {
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#livechat-close:hover {
    opacity: 1;
}

.kendo-livechat-messages {
    height: 350px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 20px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Scrollbar customization for messages */
.kendo-livechat-messages::-webkit-scrollbar {
    width: 6px;
}
.kendo-livechat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.kendo-livechat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.chat-message-wrap {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-message-wrap.visitor {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-message-wrap.admin {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-message {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-message p {
    margin: 0;
}

.chat-message-wrap.visitor .chat-message {
    background: var(--color-accent-gold);
    color: var(--color-white);
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.chat-message-wrap.admin .chat-message {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.chat-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.chat-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 50px;
}

.kendo-livechat-input {
    padding: 16px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kendo-livechat-input textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    resize: none;
    height: 80px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-base), background var(--transition-base);
}

.kendo-livechat-input textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.kendo-livechat-input textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-gold);
}

.kendo-livechat-input button {
    background: var(--color-accent-gold);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.kendo-livechat-input button:hover {
    background: #cba83b;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .kendo-livechat-panel {
        width: calc(100vw - 40px);
        right: -10px; /* Adjust for mobile margins */
    }
}
