/* Reset CSS & Biến màu sắc */
:root {
  --primary-color: #0284c7; /* Xanh dương chủ đạo */
  --secondary-color: #0f766e; /* Xanh ngọc lục bảo nhạt */
  --accent-color: #f97316; /* Cam nổi bật nút tải */
  --text-color: #334155;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Header & Menu */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s;
  padding: 5px 10px;
  border-radius: 4px;
}

.nav-menu a:hover, .nav-menu a.active {
  color: #ffffff;
  background-color: var(--primary-color);
}

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/math-pattern.jpg'); 
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 25px;
  opacity: 0.9;
}

main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

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

.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: #e2e8f0;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.doc-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.doc-thumbnail-container {
  position: relative;
  width: 100%;
  padding-top: 130%;
  background-color: #f1f5f9;
}

.doc-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doc-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-grade {
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-cat {
  background-color: #f0fdf4;
  color: #166534;
}

.doc-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px;
}

.doc-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-date {
  font-size: 12px;
  color: #94a3b8;
}

.btn-download {
  display: block;
  text-align: center;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-download:hover {
  background-color: #ea580c;
}

footer {
  background-color: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}

footer p {
  margin-bottom: 10px;
}

footer a {
  color: #38bdf8;
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

:root {
  --primary-color: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #f0f9ff;
  --accent-color: #f97316;
  --accent-hover: #ea580c;
  --danger-color: #ef4444;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-light: #eef2f5;
  --white: #ffffff;
}

.tutor-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(2, 132, 199, 0.2), transparent);
  margin: 20px auto;
  max-width: 80%;
}

.teacher-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .teacher-profile {
    grid-template-columns: 1fr 1fr;
  }
}

.teacher-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.teacher-image-frame {
  position: relative;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.15);
  max-width: 360px;
  width: 100%;
  transition: transform 0.3s ease;
}

.teacher-image-frame:hover {
  transform: translateY(-5px);
}

.teacher-image-frame::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: 6px;
  pointer-events: none;
}

.teacher-image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.teacher-info h2 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.teacher-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.4;
}

.info-card {
  background: #f8fafd;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.info-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-card.primary h3 {
  color: var(--primary-color);
}

.info-card.accent h3 {
  color: var(--accent-color);
}

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

.info-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.info-card ul li::before {
  content: "•";
  position: absolute;
  left: 5px;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.info-card.accent ul li::before {
  color: var(--accent-color);
}

.timeline-section {
  background-color: var(--white);
  padding: 80px 20px;
}

.timeline-container {
  max-width: 1100px;
  margin: 50px auto 0 auto;
  position: relative;
}

@media (min-width: 768px) {
  .timeline-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 5%;
    right: 5%;
    height: 4px;
    background-color: #e0f2fe;
    z-index: 1;
  }

  .timeline-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
  }
}

.timeline-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-node {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-dark);
  border: 4px solid #e0f2fe;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.timeline-item:hover .timeline-node {
  background-color: var(--accent-color);
  border-color: #ffedd5;
  transform: scale(1.3);
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  width: 90%;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.2);
}

.timeline-card .phase {
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.timeline-card h4 {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: bold;
}

@media (max-width: 767px) {
  .timeline-container {
    padding-left: 40px;
  }

  .timeline-container::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 15px;
    width: 4px;
    background-color: #e0f2fe;
    z-index: 1;
  }

  .timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 2;
  }

  .timeline-item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
  }

  .timeline-node {
    margin-bottom: 0;
    margin-top: 8px;
    flex-shrink: 0;
    position: relative;
    left: -35px;
  }

  .timeline-card {
    width: 100%;
  }
}

.registration-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .registration-container {
    grid-template-columns: 45% 55%;
    align-items: center;
  }
}

.lead-magnet-column {
  padding-right: 10px;
}

.lead-badge {
  display: inline-block;
  background-color: var(--danger-color);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.lead-title {
  font-size: 2rem;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 15px;
}

.lead-title span {
  color: var(--accent-color);
}

.lead-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.books-mockup {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.book-item {
  width: 90px;
  height: 125px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 3px 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-item:hover {
  transform: translateY(-8px) rotate(2deg);
}

.book-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-column {
  background: var(--white);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid var(--border-light);
}

.form-column h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  background-color: var(--white);
  transition: all 0.25s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  background: var(--accent-hover);
}

.form-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--primary-color);
}

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

.logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 4px;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #1e293b;
}

.site-header, header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  transition: all 0.3s ease !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #475569 !important;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px !important;
  background: transparent !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-menu li a:hover {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
}

.nav-menu li a.active {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  font-weight: 600 !important;
}

.nav-menu li a.highlight {
  background: transparent !important;
  color: #475569 !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
}

.nav-menu li a.highlight:hover {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
}

.hero-descartes {
  position: relative;
  padding: 100px 20px;
  background-color: #ffffff;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-position: center center;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: #f0f9ff;
  color: #0284c7;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(2, 132, 199, 0.1);
  margin-bottom: 25px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-title .text-accent {
  color: #0284c7;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto 35px auto;
  line-height: 1.6;
}

.search-box-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.search-form:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.search-icon {
  font-size: 1.1rem;
  margin-left: 12px;
  color: #94a3b8;
}

.search-form input {
  flex: 1;
  border: none;
  padding: 12px 10px;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  color: #334155;
  background: transparent;
}

.search-form input::placeholder {
  color: #94a3b8;
}

.search-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-btn:hover {
  background: #0284c7;
}

.search-error-msg {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 10px;
  text-align: left;
  padding-left: 15px;
  display: none;
}

.recent-docs {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

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

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.section-header .divider {
  width: 40px;
  height: 3px;
  background: #0284c7;
  margin: 0 auto;
  border-radius: 10px;
}

.doc-card-premium {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.01);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.doc-card-premium:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-badge {
  background: #f0f9ff;
  color: #0284c7;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.card-id {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.doc-card-premium:hover .card-title {
  color: #0284c7;
}

.card-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-footer {
  border-top: 1px solid #f8fafc;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.card-action-btn {
  color: #0284c7;
  font-weight: 700;
  transition: transform 0.2s;
}

.doc-card-premium:hover .card-action-btn {
  transform: translateX(4px);
}

.site-footer {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes float-delay {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.float-slow {
  animation: float-slow 4s ease-in-out infinite;
}

.float-delay {
  animation: float-delay 4.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.search-layout-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.search-main-box {
  width: 550px;
  flex-shrink: 0;
}

.search-form-premium {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-form-premium:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.search-form-premium input {
  flex: 1;
  border: none;
  padding: 12px 10px;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  color: #334155;
  background: transparent;
}

.search-form-premium input::placeholder {
  color: #94a3b8;
}

.privilege-card {
  width: 220px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.015);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.privilege-card:hover {
  transform: translateY(-4px) scale(1.02) !important;
  border-color: #0284c7;
  box-shadow: 0 12px 25px rgba(2, 132, 199, 0.08);
}

.privilege-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #0284c7;
  background: #f0f9ff;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.privilege-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.privilege-card p {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .search-layout-wrapper {
    flex-direction: column;
    width: 100%;
    padding: 0 15px;
  }
  .search-main-box {
    width: 100%;
  }
  .privilege-card {
    display: none;
  }
}

@keyframes float-book-1 {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes float-book-2 {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}

.float-book-1 {
  animation: float-book-1 5s ease-in-out infinite;
}
.float-book-1-delay {
  animation: float-book-1 6.5s ease-in-out infinite;
  animation-delay: 1s;
}
.float-book-2 {
  animation: float-book-2 6s ease-in-out infinite;
  animation-delay: 0.3s;
}
.float-book-2-delay {
  animation: float-book-2 5.5s ease-in-out infinite;
  animation-delay: 0.8s;
}

.floating-books-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-book {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(15, 23, 42, 0.08));
  transition: all 0.3s ease;
  pointer-events: auto;
}

.floating-book:hover {
  filter: drop-shadow(0 20px 25px rgba(15, 23, 42, 0.15));
}

.book-left-top {
  width: 200px;
  left: 8%;
  top: 15%;
}

.book-left-bottom {
  width: 200px;
  left: 12%;
  bottom: 40%;
}

.book-right-top {
  width: 200px;
  right: 8%;
  top: 18%;
}

.book-right-bottom {
  width: 200px;
  right: 12%;
  bottom: 40%;
}

.hero-typography-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.privilege-card.orange-gradient {
  background: linear-gradient(135deg, #fffbf0 0%, #ffeed6 100%);
  border: 1.5px solid #fed7aa;
}

.privilege-card.orange-gradient:hover {
  border-color: #f97316;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.15);
}

.orange-badge {
  color: #ffffff !important;
  background: #f97316 !important;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(249, 115, 22, 0.2);
}

.privilege-card.orange-gradient h4 {
  color: #ea580c;
}

.privilege-card.blue-gradient {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #bae6fd;
}

.privilege-card.blue-gradient:hover {
  border-color: #0284c7;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.12);
}

.blue-badge {
  color: #0284c7 !important;
  background: #e0f2fe !important;
  font-weight: 800;
}

.privilege-card.blue-gradient h4 {
  color: #0369a1;
}

@media (max-width: 1024px) {
  .floating-books-container {
    display: none !important;
  }
}

.nav-menu li a.highlight, 
.nav-menu li a[href="#register"], 
.nav-menu li a[href="index.html#register"] {
  background: transparent !important;
  background-color: transparent !important;
  color: #475569 !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.nav-menu li a.highlight:hover, 
.nav-menu li a[href="#register"]:hover, 
.nav-menu li a[href="index.html#register"]:hover {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  color: #0284c7 !important;
}

/* CHỈ THÊM ĐOẠN NÀY ĐỂ FIX LỖI HOVER AVATAR MÀ KHÔNG LÀM ẢNH HƯỞNG GIAO DIỆN KHÁC */
.user-profile-dropdown {
  padding-bottom: 12px;
}

.dropdown-menu-box::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}
