/* ============================================================================
   Akashi Japanese Language Institute — Modern Flat Japanese Cultural Theme v2
   STRICTLY ZERO GRADIENTS | Logo Colors + Japanese Cultural Aesthetic
   ============================================================================ */
:root {
  --akashi-teal: #00A896;
  --akashi-teal-dark: #008274;
  --akashi-teal-soft: #E6F6F4;
  --sumi-ink: #121417;
  --sumi-charcoal: #1E242B;
  --sumi-muted: #525B66;
  --washi-bg: #F8F7F4;
  --washi-warm: #EFECE6;
  --shoji-white: #FFFFFF;
  --shoji-border: #DFE4EA;
  --torii-red: #C83E3B;
  --sakura-pink: #F2B5B5;
  --sakura-soft: #FCEEEE;
  --kintsugi-gold: #C59B27;
  --gold-soft: #FCF6E3;
  --radius: 12px;
  --radius-sm: 7px;
  --shadow-sm: 0 3px 10px rgba(18, 20, 23, 0.05);
  --shadow-md: 0 12px 30px rgba(18, 20, 23, 0.09);
  --shadow-lg: 0 18px 42px rgba(18, 20, 23, 0.14);
  --transition: 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Noto Sans Sinhala', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--washi-bg);
  color: var(--sumi-ink);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--akashi-teal-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sumi-ink); }
img { max-width: 100%; height: auto; display: block; }

/* Subtle Animated Japanese Seigaiha & Asanoha Patterns (Pure Solid SVG, ZERO Gradients) */
@keyframes akWaveDrift {
  0% { background-position: 0 0; }
  100% { background-position: 120px 60px; }
}
@keyframes akFloatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
@keyframes akPulseRing {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.06); opacity: 0.45; }
}

.jp-pattern-seigaiha {
  background-color: var(--washi-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32'%3E%3Cpath d='M0 32a32 32 0 0 1 64 0M10 32a22 22 0 0 1 44 0M20 32a12 12 0 0 1 24 0' fill='none' stroke='%2300A896' stroke-opacity='0.11' stroke-width='1.3'/%3E%3C/svg%3E");
  animation: akWaveDrift 36s linear infinite;
}
.jp-pattern-dark {
  background-color: var(--sumi-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'%3E%3Cpath d='M26 0L52 26L26 52L0 26Z' fill='none' stroke='%2300A896' stroke-opacity='0.16' stroke-width='1.2'/%3E%3Ccircle cx='26' cy='26' r='3' fill='%23C83E3B' fill-opacity='0.18'/%3E%3C/svg%3E");
}

/* Visible Ambient Sakura Blossom Canvas */
#sakura-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 880;
}

.ak-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Contact Bar */
.ak-topbar {
  background: var(--sumi-ink);
  color: #D9DFE6;
  font-size: 13px;
  border-bottom: 3px solid var(--akashi-teal);
}
.ak-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
}
.ak-topbar-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ak-topbar a { color: #E8EDF2; }
.ak-topbar a:hover { color: var(--akashi-teal); }

/* Main Public Header */
.ak-header {
  background: var(--shoji-white);
  border-bottom: 1px solid var(--shoji-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.ak-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
  padding: 8px 0;
}
.ak-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ak-brand img { height: 56px; width: auto; object-fit: contain; }
.ak-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ak-nav a {
  color: var(--sumi-ink);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
}
.ak-nav a:hover, .ak-nav a.active {
  background: var(--akashi-teal-soft);
  color: var(--akashi-teal-dark);
}
.ak-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ak-mobile-toggle {
  display: none;
  background: var(--sumi-ink);
  color: var(--shoji-white);
  border: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  font-size: 20px;
  cursor: pointer;
}

/* Flat Architectural Buttons (ZERO Gradients) */
.ak-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}
.ak-btn:hover { transform: translateY(-1px); }
.ak-btn-primary { background: var(--akashi-teal); color: #fff; border-color: var(--akashi-teal); }
.ak-btn-primary:hover { background: var(--akashi-teal-dark); border-color: var(--akashi-teal-dark); color: #fff; }
.ak-btn-dark { background: var(--sumi-ink); color: #fff; border-color: var(--sumi-ink); }
.ak-btn-dark:hover { background: var(--sumi-charcoal); color: #fff; }
.ak-btn-red { background: var(--torii-red); color: #fff; border-color: var(--torii-red); }
.ak-btn-red:hover { background: #A8302D; color: #fff; }
.ak-btn-outline { background: transparent; color: var(--sumi-ink); border-color: var(--shoji-border); }
.ak-btn-outline:hover { border-color: var(--akashi-teal); color: var(--akashi-teal-dark); background: var(--akashi-teal-soft); }
.ak-btn-sm { padding: 6px 12px; font-size: 13px; }

/* Japanese Hanko Seal Accent */
.ak-hanko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 2px solid var(--torii-red);
  color: var(--torii-red);
  font-weight: 800;
  font-size: 14px;
  border-radius: 5px;
  background: var(--shoji-white);
  flex-shrink: 0;
}

/* Badges */
.ak-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}
.ak-badge-teal { background: var(--akashi-teal-soft); color: var(--akashi-teal-dark); }
.ak-badge-dark { background: var(--sumi-ink); color: #fff; }
.ak-badge-red { background: var(--sakura-soft); color: var(--torii-red); }
.ak-badge-gold { background: var(--gold-soft); color: #8A6914; }
.ak-badge-gray { background: #EAEEF2; color: #3B434C; }

/* Interactive Hero Banner Carousel Slider */
.ak-hero {
  background-color: var(--sumi-ink);
  color: #fff;
  padding: 58px 0 48px;
  border-bottom: 5px solid var(--akashi-teal);
  position: relative;
  overflow: hidden;
}
.ak-hero-kanji-bg {
  position: absolute;
  right: 3%;
  top: 10%;
  font-family: 'Noto Sans JP', serif;
  font-size: 220px;
  font-weight: 900;
  color: rgba(0, 168, 150, 0.07);
  pointer-events: none;
  user-select: none;
  animation: akFloatSlow 9s ease-in-out infinite;
}
.ak-hero-slide { display: none; animation: akSlideFade 0.55s ease; }
.ak-hero-slide.active { display: block; }
@keyframes akSlideFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.ak-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.ak-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
  margin: 14px 0 16px;
  font-weight: 800;
  color: #fff;
}
.ak-hero p { color: #CBD5E1; font-size: 16px; max-width: 580px; margin: 0 0 24px; }
.ak-hero-media {
  position: relative;
  border: 3px solid var(--akashi-teal);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sumi-charcoal);
  box-shadow: var(--shadow-lg);
}
.ak-hero-media img { width: 100%; height: 380px; object-fit: cover; transition: transform 0.6s ease; }
.ak-hero-media:hover img { transform: scale(1.04); }
.ak-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  position: relative;
  z-index: 2;
}
.ak-slider-dots { display: flex; gap: 8px; }
.ak-slider-dot {
  width: 28px; height: 6px;
  border-radius: 99px;
  background: #333C47;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.ak-slider-dot.active { width: 48px; background: var(--akashi-teal); }

/* Horizontal Photo / Destinations Slider & Lightbox */
.ak-photo-strip-wrap { position: relative; }
.ak-photo-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
}
.ak-photo-strip::-webkit-scrollbar { height: 7px; }
.ak-photo-strip::-webkit-scrollbar-thumb { background: var(--akashi-teal); border-radius: 99px; }
.ak-photo-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
  background: var(--shoji-white);
  border: 1.5px solid var(--shoji-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.ak-photo-card:hover { transform: translateY(-5px); border-color: var(--akashi-teal); box-shadow: var(--shadow-md); }
.ak-photo-card img { width: 100%; height: 195px; object-fit: cover; transition: transform 0.45s ease; }
.ak-photo-card:hover img { transform: scale(1.06); }

.ak-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 23, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ak-lightbox.open { display: flex; }
.ak-lightbox-inner { max-width: 860px; width: 100%; background: var(--shoji-white); border-radius: var(--radius); overflow: hidden; border: 3px solid var(--akashi-teal); }
.ak-lightbox-inner img { width: 100%; max-height: 74vh; object-fit: contain; background: #000; }

/* Sections & Grids */
.ak-section { padding: 64px 0; position: relative; }
.ak-section-alt { background: var(--shoji-white); border-top: 1px solid var(--shoji-border); border-bottom: 1px solid var(--shoji-border); }
.ak-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.ak-section-title { font-size: clamp(22px, 2.8vw, 32px); margin: 4px 0 0; font-weight: 800; color: var(--sumi-ink); }
.ak-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--akashi-teal-dark); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; }

.ak-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ak-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ak-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.ak-card {
  background: var(--shoji-white);
  border: 1.5px solid var(--shoji-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.ak-card:hover { transform: translateY(-4px); border-color: var(--akashi-teal); box-shadow: var(--shadow-md); }
.ak-card-img { width: 100%; height: 205px; object-fit: cover; background: var(--washi-warm); transition: transform 0.45s ease; }
.ak-card:hover .ak-card-img { transform: scale(1.04); }
.ak-card-body { padding: 20px; }
.ak-card-title { font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--sumi-ink); }
.ak-card-meta { font-size: 13px; color: var(--sumi-muted); display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }

/* Staggered Scroll Reveal Animation */
.ak-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.ak-reveal.visible { opacity: 1; transform: translateY(0); }

/* Dedicated Modern Split-Screen Auth Pages (/login, /admin/login, /teacher/login) */
.ak-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}
.ak-auth-shell {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: var(--shoji-white);
  border: 2px solid var(--sumi-ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}
.ak-auth-visual {
  background-color: var(--sumi-ink);
  color: #fff;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 5px solid var(--akashi-teal);
  position: relative;
  overflow: hidden;
}
.ak-auth-visual.sensei { border-right-color: var(--torii-red); }
.ak-auth-card { padding: 40px 36px; background: var(--shoji-white); }

/* Forms & Alerts */
.ak-form-group { margin-bottom: 15px; }
.ak-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--sumi-ink); }
.ak-input, .ak-select, .ak-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--shoji-border);
  border-radius: var(--radius-sm);
  background: var(--shoji-white);
  color: var(--sumi-ink);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ak-input:focus, .ak-select:focus, .ak-textarea:focus {
  outline: none;
  border-color: var(--akashi-teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.14);
}
.ak-alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; font-weight: 600; border-left: 4px solid; }
.ak-alert-success { background: var(--akashi-teal-soft); color: #005B51; border-color: var(--akashi-teal); }
.ak-alert-error { background: var(--sakura-soft); color: #8B1E1C; border-color: var(--torii-red); }
.ak-alert-warning { background: var(--gold-soft); color: #7C5C0A; border-color: var(--kintsugi-gold); }
.ak-alert-info { background: #EDF2F7; color: var(--sumi-ink); border-color: var(--sumi-ink); }

/* Footer */
.ak-footer { background-color: var(--sumi-ink); color: #CBD5E1; padding: 56px 0 24px; border-top: 5px solid var(--akashi-teal); }
.ak-footer h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.ak-footer ul { list-style: none; padding: 0; margin: 0; }
.ak-footer li { margin-bottom: 8px; font-size: 14px; }
.ak-footer a { color: #CBD5E1; }
.ak-footer a:hover { color: var(--akashi-teal); }
.ak-footer-bottom { border-top: 1px solid #2A313A; margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }

/* Crisp Social Media Icon Buttons */
.ak-social-row { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ak-social-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #1E242B;
  color: #E2E8F0;
  border: 1px solid #2F3844;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ak-social-btn svg { width: 16px; height: 16px; fill: currentColor; }
.ak-social-btn:hover { transform: translateY(-2px); color: #fff; border-color: var(--akashi-teal); background: var(--akashi-teal); }
.ak-social-btn.fb:hover { background: #1877F2; border-color: #1877F2; }
.ak-social-btn.ig:hover { background: #C83E3B; border-color: #C83E3B; }
.ak-social-btn.yt:hover { background: #FF0000; border-color: #FF0000; }
.ak-social-btn.tt:hover { background: #00A896; border-color: #00A896; }
.ak-social-btn.wa:hover { background: #25D366; border-color: #25D366; }

/* Floating WhatsApp (LEFT) & Live Chat (RIGHT) */
.ak-fab-left { position: fixed; left: 20px; bottom: 20px; z-index: 1200; }
.ak-fab-right { position: fixed; right: 20px; bottom: 20px; z-index: 1200; }
.ak-fab-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 13.5px; font-weight: 700;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.ak-fab-pill svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.ak-fab-pill:hover { transform: translateY(-3px); color: #fff; }
.ak-fab-wa { background: #1E9E52; border: 2px solid #fff; }
.ak-fab-chat { background: var(--sumi-ink); border: 2px solid var(--akashi-teal); }

.ak-chat-box { position: fixed; right: 20px; bottom: 84px; width: 340px; max-width: calc(100vw - 32px); background: var(--shoji-white); border: 2px solid var(--sumi-ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; z-index: 1250; }
.ak-chat-box.open { display: flex; }
.ak-chat-head { background: var(--sumi-ink); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--akashi-teal); }
.ak-chat-msgs { height: 260px; overflow-y: auto; padding: 12px; background: var(--washi-bg); display: flex; flex-direction: column; gap: 8px; }
.ak-chat-bubble { padding: 8px 12px; border-radius: 8px; font-size: 13px; max-width: 85%; }
.ak-chat-bubble.me { align-self: flex-end; background: var(--akashi-teal); color: #fff; }
.ak-chat-bubble.them { align-self: flex-start; background: var(--shoji-white); border: 1px solid var(--shoji-border); color: var(--sumi-ink); }
.ak-chat-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--shoji-border); background: #fff; }

@media (max-width: 1100px) {
  .ak-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--shoji-white); flex-direction: column; align-items: stretch; padding: 14px 20px; border-bottom: 3px solid var(--akashi-teal); box-shadow: var(--shadow-md); }
  .ak-nav.open { display: flex; }
  .ak-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .ak-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ak-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .ak-hero-grid, .ak-grid-3, .ak-grid-2, .ak-grid-4, .ak-auth-shell { grid-template-columns: 1fr; }
  .ak-auth-visual { border-right: none; border-bottom: 5px solid var(--akashi-teal); padding: 28px 24px; }
  .ak-auth-card { padding: 28px 22px; }
  .ak-hero { padding: 36px 0; }
  .ak-hero-media img { height: 240px; }
}


/* ============================================================================
   Modern Dark Japanese Cultural Theme (Logo Colors, ZERO Gradients)
   ============================================================================ */
[data-theme="dark"] {
  --washi-bg: #0E1116;
  --washi-warm: #161B22;
  --shoji-white: #161B22;
  --shoji-border: #262E3A;
  --sumi-ink: #F1F5F9;
  --sumi-muted: #94A3B8;
  --akashi-teal-soft: #102D2A;
  --sakura-soft: #2E1618;
  --gold-soft: #2D2512;
}
[data-theme="dark"] .ak-header { background: #12161C; border-bottom-color: #262E3A; }
[data-theme="dark"] .ak-brand img { background: #FFFFFF; padding: 5px 10px; border-radius: 8px; }
[data-theme="dark"] .ak-hero, [data-theme="dark"] .ak-footer, [data-theme="dark"] .ak-topbar { background-color: #090B0E; color: #E2E8F0; }
[data-theme="dark"] .ak-btn-dark { background: #00A896; border-color: #00A896; color: #fff; }
[data-theme="dark"] .ak-btn-outline { color: #E2E8F0; border-color: #334155; }
[data-theme="dark"] .ak-input, [data-theme="dark"] .ak-select, [data-theme="dark"] .ak-textarea { background: #0E1116; color: #F1F5F9; border-color: #2E3746; }
[data-theme="dark"] .ak-table th { background: #090B0E; color: #00A896; border-bottom: 2px solid #00A896; }

/* Animated Toast Popup Notifications */
.ak-toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 2500; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.ak-toast {
  background: #121417; color: #fff; padding: 14px 18px; border-radius: 10px;
  border-left: 5px solid var(--akashi-teal); box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 600; animation: akToastIn 0.35s ease;
}
.ak-toast.error { border-left-color: var(--torii-red); }
.ak-toast.warning { border-left-color: var(--kintsugi-gold); }
@keyframes akToastIn { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
