/*
Theme Name: Flatsome Child
Theme URI: https://uxthemes.com/
Description: Custom styles for Học Viện Xacademy
Author: UX-Themes
Template: flatsome
Version: 3.15.7
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --primary-color: #0b57d0;
  --primary-hover: #0842a0;
  --secondary-color: #ff7a00;
  --dark-color: #1a2238;
  --light-bg: #f5f8fc;
  --card-border: rgba(11, 87, 208, 0.08);
  --card-shadow: 0 10px 30px rgba(0, 45, 114, 0.08);
  --card-shadow-hover: 0 18px 40px rgba(0, 45, 114, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #334155;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark-color);
  letter-spacing: -0.02em;
}

.nav-anchor {
  display: block;
  position: relative;
  top: -85px;
  visibility: hidden;
}

/* Badge tags & Section Titles Center Alignment across all sections */
.badge-tag {
  display: inline-block;
  background: rgba(11, 87, 208, 0.1);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-badge {
  display: inline-block !important;
  background: rgba(11, 87, 208, 0.08);
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  margin: 0 auto 12px auto !important;
  letter-spacing: 1px;
  text-align: center !important;
}

.section-title {
  font-size: 32px !important;
  line-height: 1.35 !important;
  margin-bottom: 14px !important;
  color: #0f172a !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
}

.section-subtitle {
  font-size: 16px !important;
  color: #64748b !important;
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.65 !important;
  text-align: center !important;
  display: block !important;
}

/* Enforce center alignment explicitly on all main section header rows */
.partners-section .section-title,
.partners-section .section-subtitle,
.pain-points-section .section-title,
.pain-points-section .section-subtitle,
.solutions-section .section-title,
.solutions-section .section-subtitle,
.process-section .section-title,
.process-section .section-subtitle,
.services-section .section-title,
.services-section .section-subtitle,
.news-section .section-title,
.news-section .section-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.partners-section .text-center,
.pain-points-section .text-center,
.solutions-section .text-center,
.process-section .text-center,
.services-section .text-center,
.news-section .text-center {
  text-align: center !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
  border-bottom: 1px solid rgba(11, 87, 208, 0.06);
}

.hero-title {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #0f172a;
}

.gradient-text {
  background: linear-gradient(135deg, #0b57d0 0%, #0091ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-desc {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
}

.hero-image-wrapper img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.hero-image-wrapper:hover img {
  transform: translateY(-5px);
}

/* Custom Buttons */
.primary-btn {
  background: linear-gradient(135deg, #0b57d0 0%, #1a73e8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  box-shadow: 0 4px 15px rgba(11, 87, 208, 0.3) !important;
  transition: all 0.3s ease !important;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #0842a0 0%, #0b57d0 100%) !important;
  box-shadow: 0 8px 20px rgba(11, 87, 208, 0.45) !important;
  transform: translateY(-2px);
}

.outline-btn {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 1.5px solid var(--primary-color) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
}

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

/* Partner Trust Stats Bar */
.trust-stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background: #ffffff;
  border: 1px solid rgba(11, 87, 208, 0.1);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 10px 30px rgba(11, 87, 208, 0.06);
  margin-bottom: 25px;
}

.stat-item {
  text-align: center;
  padding: 8px 16px;
  flex: 1;
  min-width: 170px;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Partner Carousel / Slider Container */
.partner-slider-container {
  margin: 10px auto 25px;
  position: relative;
  width: 100%;
  text-align: center;
}

.partner-slider-container .slider-wrapper {
  overflow: visible !important;
  position: relative !important;
}

.partner-slider-container .flickity-viewport {
  min-height: 480px !important;
  height: auto !important;
  overflow: hidden !important;
  padding: 8px 0 10px !important;
  width: 100% !important;
}

.partner-slider-container .flickity-slider {
  min-height: 480px !important;
  width: 100% !important;
  display: flex !important;
}

.partner-slider-container .flickity-slider > div {
  width: 33.333% !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  display: flex !important;
  min-height: 460px !important;
  height: auto !important;
  text-align: left !important;
}

@media (max-width: 849px) {
  .partner-slider-container .flickity-slider > div {
    width: 50% !important;
  }
}

@media (max-width: 549px) {
  .partner-slider-container .flickity-slider > div {
    width: 100% !important;
  }
}

/* Slider Arrow Positioning */
.partner-slider-container .flickity-prev-next-button {
  width: 44px !important;
  height: 44px !important;
  background: #ffffff !important;
  border: 1px solid rgba(11, 87, 208, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  transition: all 0.2s ease !important;
}

.partner-slider-container .flickity-prev-next-button:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

.partner-slider-container .flickity-prev-next-button.previous {
  left: -20px !important;
}

.partner-slider-container .flickity-prev-next-button.next {
  right: -20px !important;
}

/* Center bullets perfectly */
.partner-slider-container .flickity-page-dots {
  position: relative !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 24px auto 10px !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  list-style: none !important;
  gap: 8px !important;
}

.partner-slider-container .flickity-page-dots .dot {
  display: inline-block !important;
  width: 10px !important;
  height: 10px !important;
  background: #cbd5e1 !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
  border-radius: 50% !important;
  cursor: pointer !important;
}

.partner-slider-container .flickity-page-dots .dot.is-selected {
  background: var(--primary-color) !important;
  width: 26px !important;
  border-radius: 10px !important;
}

/* Partner University Cards - Compact & Crisp */
.partner-uni-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(11, 87, 208, 0.12);
  box-shadow: 0 6px 20px rgba(0, 35, 90, 0.04);
  padding: 22px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.partner-uni-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0b57d0, #00d2ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.partner-uni-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(11, 87, 208, 0.12);
  border-color: rgba(11, 87, 208, 0.25);
}

.partner-uni-card:hover::before {
  opacity: 1;
}

.uni-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.uni-logo-box {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #f8faff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.uni-logo-box img {
  max-height: 42px !important;
  max-width: 42px !important;
  object-fit: contain !important;
}

.uni-meta {
  flex-grow: 1;
}

.uni-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #0b57d0;
  background: rgba(11, 87, 208, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.uni-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
}

.uni-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.uni-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  flex-grow: 1;
}

.uni-features-list li {
  font-size: 12.5px;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.45;
}

.uni-features-list li i {
  color: #10b981;
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

.uni-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.uni-pill {
  font-size: 11px;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 600;
}

.uni-pill.highlight {
  background: rgba(11, 87, 208, 0.08);
  color: #0b57d0;
}

.uni-card-btn {
  margin-top: auto;
}

.uni-card-btn .button {
  margin-bottom: 0;
  font-size: 13px !important;
  padding: 8px 14px !important;
}

/* Other Partner Logos Strip */
.partner-strip-wrapper {
  background: #f8faff;
  border: 1px solid rgba(11, 87, 208, 0.06);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 15px;
  text-align: center;
}

.partner-strip-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 14px;
}

.partner-strip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
}

.partner-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.partner-strip-item:hover {
  border-color: rgba(11, 87, 208, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 87, 208, 0.1);
}

.partner-strip-item img {
  max-height: 36px !important;
  max-width: 36px !important;
  object-fit: contain;
}

.partner-strip-item span {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

/* Custom Cards (Pain Points) */
.custom-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 20px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  text-align: center;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(11, 87, 208, 0.25);
}

.custom-card .card-icon {
  margin-bottom: 18px;
}

.custom-card .card-icon img {
  max-height: 56px !important;
  width: auto !important;
  margin: 0 auto;
}

.custom-card .card-title {
  font-size: 17.5px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #0f172a;
}

.custom-card .card-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Feature Box V2 (Solutions) */
.feature-box-v2 {
  background: #f8faff;
  border-radius: 14px;
  padding: 28px 20px;
  border: 1px solid rgba(11, 87, 208, 0.08);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.feature-box-v2:hover {
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.feature-box-v2 .feature-icon {
  margin-bottom: 16px;
}

.feature-box-v2 .feature-icon img {
  max-height: 60px !important;
  width: auto !important;
  margin: 0 auto;
}

.feature-box-v2 h4 {
  font-size: 17.5px;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.feature-box-v2 p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Step Box (Process) */
.step-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  position: relative;
  height: 100%;
  transition: all 0.3s ease;
}

.step-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.step-number {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--primary-color);
  background: rgba(11, 87, 208, 0.1);
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-box h4 {
  font-size: 16.5px;
  margin-bottom: 8px;
  color: #0f172a;
}

.step-box p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Service Card */
.service-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

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

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-body {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-body h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #0f172a;
}

.service-body p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  flex-grow: 1;
}

.service-link {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  transition: color 0.2s ease;
}

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

/* CTA Contact Section */
.cta-contact-section {
  background: linear-gradient(135deg, #0b57d0 0%, #003699 100%);
  color: #ffffff;
}

.cta-title {
  font-size: 34px;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 15px;
}

.cta-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 25px;
}

.contact-info-list p {
  font-size: 15px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.contact-info-list strong {
  color: #ffffff;
}

/* Consultation Form Card - Explicit Dark Text */
.consultation-form-card {
  background: #ffffff !important;
  color: #1e293b !important;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.consultation-form-card .form-title,
.consultation-form-card h3 {
  font-size: 22px !important;
  color: #0f172a !important;
  margin-bottom: 6px !important;
  text-align: center !important;
  font-weight: 700 !important;
}

.consultation-form-card .form-subtitle,
.consultation-form-card p {
  font-size: 13.5px !important;
  color: #64748b !important;
  text-align: center !important;
  margin-bottom: 20px !important;
}

.consult-form .form-group {
  margin-bottom: 14px;
}

.consult-form input,
.consult-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b !important;
  background-color: #ffffff !important;
  transition: border-color 0.2s;
}

.consult-form input:focus,
.consult-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.15);
}

/* Footer Customization */
.footer-widgets,
#footer,
.footer-1,
.footer-2 {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
}

#footer h3,
#footer .widget-title,
#footer strong {
  color: #ffffff !important;
}

#footer p {
  color: #cbd5e1 !important;
}

#footer a {
  color: #93c5fd !important;
}

#footer a:hover {
  color: #ffffff !important;
}

.absolute-footer {
  background-color: #090d16 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8 !important;
}
