/* ====================================
   🌿 TA-EDU GLOBAL STYLE
   ==================================== */
/* ===== FONT FAMILY ===== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600&display=swap');

html, body {
  font-family: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

body {
  font-family: "Baloo 2", sans-serif;
  font-weight: 500;
  color: #222;
}

/* ====== RESET & CƠ BẢN ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Baloo 2", cursive;
  background: #ffffff;
  color: #1f1f1f;
  min-height: 100vh;
}

/* ====== LINK ====== */
a {
  text-decoration: none;
  color: #2ebfa5;
  transition: color 0.3s;
}

a:hover {
  color: #25a88f;
}

/* ====== BUTTON ====== */
button {
  font-family: "Baloo 2", cursive;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s;
}

.btn-primary {
  background: #2ebfa5;
  color: white;
  padding: 10px 16px;
}

.btn-primary:hover {
  background: #25a88f;
}

/* ====== HEADER ====== */
.ta-header {
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  height: 40px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: #2ebfa5;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu a {
  font-weight: 500;
  color: #1f1f1f;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #2ebfa5;
}

/* ====== FOOTER ====== */
footer {
  text-align: left;
  background: #f7fbfc;
  color: #2b3a38;
  padding: 20px 16px 26px;
  border-top: 1px solid #e2f2ef;
  font-size: 14px;
}

.ta-footer {
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 191, 165, 0.08), transparent 32%),
    linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
}

.ta-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 12px;
}

.ta-footer__label {
  font-weight: 700;
  color: #0f766e;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.ta-footer__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ta-footer__panel--flat {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.ta-footer {
  position: relative;
  margin-top: 0;
  padding: 6px 16px 0;
  border-top: 1px solid rgba(15, 118, 110, 0.08);
  background:
    linear-gradient(180deg, rgba(234, 253, 247, 0.72) 0%, rgba(247, 251, 252, 0.9) 18%, #ffffff 100%);
}

.ta-footer::before {
  content: "";
  display: block;
  height: 18px;
  margin: 0 0 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15,118,110,0.08) 0%, rgba(15,118,110,0.03) 42%, rgba(255,255,255,0) 100%);
}

.ta-footer__hero,
.ta-footer__project-card,
.ta-footer__copyright,
.ta-footer__meta-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(15, 118, 110, 0.09);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.ta-footer__hero {
  padding: 22px 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(15,118,110,0.08), transparent 30%),
    linear-gradient(135deg, #f7fffd 0%, #f4fbff 100%);
}

.ta-footer__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15,118,110,0.1);
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ta-footer__heading {
  margin: 12px 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.25;
  color: #163c37;
}

.ta-footer__lead {
  margin: 0;
  max-width: 860px;
  color: #35514c;
  line-height: 1.6;
}

.ta-footer__project-card {
  padding: 18px 22px;
}

.ta-footer__project {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: none;
}

.ta-footer__project-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ta-footer__project-title {
  color: #2b3a38;
  font-weight: 600;
  line-height: 1.45;
}

.ta-footer__meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 0;
  border-bottom: none;
  width: 100%;
}

.ta-footer__meta div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding: 16px 18px;
}

.ta-footer__meta div:last-child {
  border-bottom: none;
}

.ta-footer__meta dt {
  font-weight: 700;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.76rem;
}

.ta-footer__meta dd {
  margin: 0;
  color: #354744;
  line-height: 1.45;
}

.ta-footer__copyright {
  padding: 18px 22px;
  margin-bottom: 0;
}

.ta-footer__inner > :last-child {
  margin-bottom: 0 !important;
}

.ta-footer__copyright ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #354744;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .ta-footer__meta {
    grid-template-columns: 1fr;
  }
}

body.theme-neon .ta-footer {
  background:
    radial-gradient(circle at 20% 0%, rgba(126, 240, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(9, 24, 37, 0.5) 0%, rgba(7, 18, 28, 0.92) 18%, rgba(6, 16, 24, 0.98) 100%);
  border-top-color: rgba(126, 240, 255, 0.18);
  color: #e6f4ff;
}

body.theme-neon .ta-footer::before {
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.14) 0%, rgba(103, 232, 249, 0.05) 42%, rgba(6,16,24,0) 100%);
}

body.theme-neon .ta-footer__hero,
body.theme-neon .ta-footer__project-card,
body.theme-neon .ta-footer__copyright,
body.theme-neon .ta-footer__meta-card {
  background: linear-gradient(180deg, rgba(9, 24, 37, 0.96), rgba(11, 28, 43, 0.94));
  border-color: rgba(126, 240, 255, 0.12);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

body.theme-neon .ta-footer__eyebrow {
  background: rgba(108, 242, 223, 0.14);
  color: #8df5ea;
}

body.theme-neon .ta-footer__heading {
  color: #ecfeff;
}

body.theme-neon .ta-footer__lead,
body.theme-neon .ta-footer__project-title {
  color: rgba(191, 219, 234, 0.9);
}

body.theme-neon .ta-footer__label,
body.theme-neon .ta-footer__meta dt {
  color: #6cf2df;
}

body.theme-neon .ta-footer__meta dd,
body.theme-neon .ta-footer__copyright ul {
  color: rgba(191, 219, 234, 0.85);
}

body.theme-neon .ta-footer__panel {
  background: transparent;
}

body.theme-neon .ta-footer__project {
  border-bottom-color: rgba(126, 240, 255, 0.16);
}

body.theme-neon .ta-footer__project-label {
  color: #6cf2df;
}

body.theme-neon .ta-footer__project-title {
  color: rgba(191, 219, 234, 0.92);
}

body.theme-neon .ta-footer__meta div {
  border-bottom-color: rgba(126, 240, 255, 0.12);
}

/* ====== LOGIN PAGE ====== */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background: #f7f9fa;
}

.login-box {
  background: #fff;
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.login-box h2 {
  color: #2ebfa5;
  margin-bottom: 10px;
  font-size: 26px;
}

.login-box p {
  color: #444;
  margin-bottom: 25px;
  font-size: 15px;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #ccc;
  color: #444;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 12px;
  transition: all 0.3s;
}

.google-btn:hover {
  background: #f1f1f1;
  border-color: #bbb;
}

.google-btn i {
  color: #fbbc05;
  font-size: 18px;
}

.login-note {
  margin-top: 15px;
  color: #888;
  font-size: 14px;
}


/* ====== SMART TUTOR ====== */
.chat-container {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 70vh;
}

#chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 10px;
}

.user-msg,
.bot-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  margin: 6px 0;
}

.user-msg {
  background: #2ebfa5;
  color: white;
  align-self: flex-end;
}

.bot-msg {
  background: #f1f1f1;
  color: #333;
  align-self: flex-start;
}

.chat-input {
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.chat-input button {
  background: #2ebfa5;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
}

.chat-input button:hover {
  background: #25a88f;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 12px;
  }

  .login-container {
    margin: 60px 20px;
  }

  .chat-container {
    margin: 20px;
    height: 75vh;
  }
}
/* ------------ HOME PAGE (index) ------------ */

.home-main {
  padding: 60px 0 80px;
  background: #f7fbfc;
}

.hero {
  max-width: 960px;
  margin: 0 auto 40px;
  text-align: center;
  padding: 0 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 2.8rem);
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero .highlight {
  color: #00bfa5;
}

.hero p {
  font-size: 1rem;
  color: #444;
  margin-top: 4px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.hero-secondary-link {
  font-size: 0.95rem;
  text-decoration: underline;
  color: #00bfa5;
}
/* Tính năng nổi bật */
.features {
  max-width: 960px;
  margin: 28px auto 0;
  padding: 0 16px;
}

.features h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  text-align: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 14px 18px;
  border: 1px solid #e3f3f1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 150px;

  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out;
  cursor: default;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.project-highlight {
  max-width: 960px;
  margin: 36px auto 0;
  padding: 0 16px;
  display: grid;
  gap: 14px;
}

.project-highlight__card {
  padding: 20px 22px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 191, 165, 0.08), transparent 40%),
    linear-gradient(180deg, #f7fffe 0%, #f4fbff 100%);
  border: 1px solid rgba(0, 191, 165, 0.16);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.project-highlight__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 191, 165, 0.12);
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-highlight h2 {
  margin-top: 10px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
  color: #143a36;
}

.project-highlight__lead {
  margin-top: 8px;
  color: #35514c;
  line-height: 1.6;
}

.project-highlight__meta {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 191, 165, 0.14);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.project-highlight__meta-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f766e;
  margin-bottom: 6px;
}

.project-highlight__meta-body {
  color: #2b3a38;
  line-height: 1.5;
  font-weight: 600;
}

.project-highlight__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-highlight__item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 191, 165, 0.12);
  color: #35514c;
  line-height: 1.5;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

body.theme-neon .project-highlight__card,
body.theme-neon .project-highlight__meta,
body.theme-neon .project-highlight__item {
  background: rgba(9, 24, 38, 0.9);
  border-color: rgba(92, 226, 232, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

body.theme-neon .project-highlight__lead,
body.theme-neon .project-highlight__meta-body,
body.theme-neon .project-highlight__item {
  color: #cde1ef;
}

body.theme-neon .project-highlight__eyebrow,
body.theme-neon .project-highlight__meta-title {
  color: #6cf2df;
  background: rgba(108, 242, 223, 0.16);
}

body.theme-neon .project-highlight h2 {
  color: #ecfeff;
}


/* Mobile nhỏ hơn ~600px: căn giữa text hero cho cute hơn */
@media (max-width: 600px) {
  .hero {
    text-align: center;
  }
}
/* Hiệu ứng hover cho nút & link ở hero */
.hero-buttons .btn-primary,
.hero-buttons .hero-secondary-link {
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background-color 0.18s ease-out,
    color 0.18s ease-out;
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 191, 165, 0.35);
}

.hero-buttons .hero-secondary-link:hover {
  transform: translateY(-1px);
  color: #00937f;
}

/* Hiệu ứng hover cho các thẻ tính năng */
.feature-card {
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background-color 0.18s ease-out;
  cursor: default;
}

.feature-card:hover {
  background: #ffffff; 
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  border-color: #00bfa5;
}

/* Nhẹ nhàng cho tiêu đề hero */
.hero h1,
.hero p {
  transition: transform 0.18s ease-out;
}

.hero:hover h1,
.hero:hover p {
  transform: translateY(-1px);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

/* Style chung cho 2 nút hero */
.hero-btn {
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

/* Nút phụ: Làm bài tập */
.btn-secondary {
  background: #ffffff;
  border: 1px solid #00bfa5;
  color: #00bfa5;
}

/* Hover */
.hero-btn {
  transition: transform 0.18s ease-out,
              box-shadow 0.18s ease-out,
              background-color 0.18s ease-out,
              color 0.18s ease-out,
              border-color 0.18s ease-out;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-buttons .btn-primary:hover {
  box-shadow: 0 10px 20px rgba(0, 191, 165, 0.35);
}

.hero-buttons .btn-secondary:hover {
  background-color: #e6fffb;
  border-color: #00a28a;
}
.hero-buttons .btn-primary,
.hero-buttons .btn-primary:hover {
  color: #fff;
}

/* ====== THEME: NEON (GLOBAL) ====== */
body.theme-neon {
  background: radial-gradient(circle at 20% 10%, rgba(78, 240, 255, 0.12), transparent 28%),
              radial-gradient(circle at 80% 0%, rgba(96, 139, 255, 0.14), transparent 30%),
              linear-gradient(180deg, #06131f 0%, #07121c 100%);
  color: #e6f4ff;
}

body.theme-neon .home-main {
  background: radial-gradient(circle at 30% 15%, rgba(64, 245, 220, 0.08), transparent 28%),
              linear-gradient(180deg, rgba(7, 18, 28, 0.88) 0%, rgba(6, 17, 26, 0.96) 100%);
}

body.theme-neon .hero h1,
body.theme-neon .hero p,
body.theme-neon .features h2 {
  color: #eaf7ff;
}

body.theme-neon .hero .highlight {
  color: #6cf2df;
}

body.theme-neon .feature-card {
  background: rgba(9, 24, 38, 0.78);
  border-color: rgba(92, 226, 232, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

body.theme-neon .feature-card h3 {
  color: #dff8ff;
}

body.theme-neon .feature-card p {
  color: #b9cfe0;
}

body.theme-neon .feature-card:hover {
  background: rgba(12, 30, 46, 0.9);
  border-color: rgba(108, 242, 223, 0.7);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
}

body.theme-neon .btn-secondary {
  background: rgba(8, 24, 36, 0.85);
  border-color: #6cf2df;
  color: #6cf2df;
}

body.theme-neon .hero-buttons .btn-secondary:hover {
  background-color: rgba(15, 44, 62, 0.9);
  border-color: #7ef0ff;
  color: #7ef0ff;
}
