/* =========================================================
   Trung Tâm Tin Học - Custom Styling
   Primary Color: #2d2d86
   Background Color: #f2f2f2
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #f2f2f2;
  --text-main: #2d2d86;
  --text-muted: #555599;
  --primary-color: #2d2d86;
  --primary-hover: #1e1e66;
  --primary-light: #e8eaf6;
  --accent-cyan: #0284c7;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --card-bg: #ffffff;
  --card-shadow: 0 10px 30px rgba(45, 45, 134, 0.07);
  --card-shadow-hover: 0 18px 40px rgba(45, 45, 134, 0.15);
  --border-color: rgba(45, 45, 134, 0.12);
  --radius-lg: 16px;
  --radius-md: 12px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styles */
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Custom Text Colors */
.text-custom-primary {
  color: var(--text-main) !important;
}

.text-custom-muted {
  color: var(--text-muted) !important;
}

/* Buttons */
.btn-custom-primary {
  background-color: var(--primary-color);
  color: #ffffff !important;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 10px 26px;
  font-weight: 600;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(45, 45, 134, 0.25);
}

.btn-custom-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 45, 134, 0.35);
  color: #ffffff !important;
}

.btn-custom-outline {
  background-color: transparent;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 10px 26px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-custom-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-accent-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 50px;
  padding: 10px 26px;
  font-weight: 700;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-accent-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  color: #ffffff !important;
}

/* Navbar */
.navbar-custom {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(45, 45, 134, 0.08);
  padding: 14px 0;
  border-bottom: 2px solid var(--primary-light);
  sticky: top;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2d2d86 0%, #4f46e5 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(45, 45, 134, 0.25);
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 600;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
  background-color: var(--primary-light);
}

/* Cards */
.card-custom {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.card-custom:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(45, 45, 134, 0.25);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card-img-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

.card-custom:hover .card-img-wrapper img {
  transform: scale(1.06);
}

/* Feature Icons */
.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

/* Banners & Hero */
.hero-banner {
  background: linear-gradient(135deg, rgba(45, 45, 134, 0.94) 0%, rgba(20, 20, 70, 0.96) 100%),
              url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 90px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-banner-ai {
  background: linear-gradient(135deg, rgba(45, 45, 134, 0.88) 0%, rgba(15, 15, 55, 0.95) 100%),
              url('../images/ai-banner.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 80px 0;
  border-radius: 0 0 24px 24px;
}

.hero-banner-mos {
  background: linear-gradient(135deg, rgba(45, 45, 134, 0.88) 0%, rgba(15, 15, 55, 0.95) 100%),
              url('../images/mos-banner.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 80px 0;
  border-radius: 0 0 24px 24px;
}

/* Details Tuition Box */
.tuition-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(45, 45, 134, 0.08);
}

.price-tag {
  font-size: 2rem;
  font-weight: 800;
  color: #dc2626;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Social Link Buttons */
.social-link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.social-link-btn:hover {
  transform: translateX(5px);
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.social-btn-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
}

.social-btn-youtube {
  background: linear-gradient(135deg, #ff0000 0%, #c40000 100%);
}

.social-btn-tiktok {
  background: linear-gradient(135deg, #000000 0%, #25f4ee 100%);
  color: #ffffff !important;
}

.social-btn-zalo {
  background: linear-gradient(135deg, #0068ff 0%, #004bb3 100%);
}

.social-btn-phone {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Testimonials Carousel Slider */
.testimonial-section {
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
  padding: 70px 0;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: 0 12px 35px rgba(45, 45, 134, 0.09);
  border: 1px solid var(--border-color);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 6px 18px rgba(45, 45, 134, 0.2);
}

.testimonial-stars {
  color: var(--accent-gold);
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 18px;
}

.testimonial-author {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.testimonial-course {
  font-size: 0.88rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 18px;
  background-size: 50%;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--primary-color);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

/* Contact & Map Section */
.contact-map-section {
  padding: 70px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
}

.contact-info-card {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(45, 45, 134, 0.15);
  height: 100%;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(45, 45, 134, 0.12);
  border: 2px solid var(--border-color);
  height: 100%;
  min-height: 380px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* Syllabus Accordion */
.accordion-custom .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  font-weight: 700;
  color: var(--primary-color);
  background-color: #ffffff;
  padding: 16px 20px;
}

.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--primary-light);
  box-shadow: none;
}

/* Footer */
.footer-custom {
  background: linear-gradient(135deg, #1e1e60 0%, #121240 100%);
  color: #d1d5db;
  padding: 60px 0 25px 0;
  border-top: 4px solid var(--primary-color);
}

.footer-brand {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.5rem;
}

.footer-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-cyan);
  margin-top: 8px;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #9ca3af;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}

/* Micro Animations & Badges */
.badge-soft {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.highlight-box {
  background: #ffffff;
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}
