/* 
  SOLARA - Solar Energy Specialist Design System
  Custom Stylesheet
*/

:root {
  --primary-color: #0E4EA8; /* Solar Blue */
  --primary-hover: #0a3a7d;
  --accent-color: #F6A623;  /* Solar Orange */
  --accent-hover: #d98d16;
  --bg-light: #F8FAFC;       /* Slate 50 */
  --bg-card: #FFFFFF;
  --text-dark: #0F172A;     /* Slate 900 */
  --text-muted: #64748B;    /* Slate 500 */
  --border-color: #E2E8F0;  /* Slate 200 */
  --success-color: #10B981; /* Emerald 500 */
  --danger-color: #EF4444;  /* Red 500 */
  --font-family: 'Be Vietnam Pro', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

/* Typography Scale */
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.15rem, 2.5vw, 1.25rem); }

/* Sections Common Padding */
section {
  padding: 60px 0;
  position: relative;
}

.section-bg-white {
  background-color: #ffffff;
}

.section-bg-gray {
  background-color: var(--bg-light);
}

.section-bg-dark {
  background-color: #0c1a30;
  color: #ffffff;
}

.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4 {
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-header .sub-title {
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.section-bg-dark .section-header p {
  color: #94a3b8;
}

/* Custom Buttons & Badges */
.btn-solara {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-solara-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-solara-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 78, 168, 0.2);
}

.btn-solara-accent {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-solara-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(246, 166, 35, 0.2);
}

.btn-solara-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

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

.btn-solara-white-outline {
  border-color: #ffffff;
  color: #ffffff;
  background-color: transparent;
}

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

.btn-solara-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.badge-solara {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-hot {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-upcoming {
  background-color: rgba(246, 166, 35, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(246, 166, 35, 0.2);
}

.badge-available {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Custom Cards */
.card-solara {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.card-solara:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(14, 78, 168, 0.15);
}

/* Header & Navigation */
header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

header.sticky-header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.top-bar {
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar a {
  color: #e2e8f0;
}

.top-bar a:hover {
  color: #ffffff;
}

.navbar {
  padding: 15px 0;
  transition: var(--transition-smooth);
}

.navbar-brand img {
  height: 48px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  font-size: 0.92rem;
  padding: 8px 12px !important;
  position: relative;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
  transform: scaleX(1);
}

.nav-item.active .nav-link {
  color: var(--primary-color) !important;
}

.header-ctas {
  display: flex;
  gap: 8px;
}

.header-ctas .btn-solara {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  padding: 60px 0 70px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 78, 168, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  top: -100px;
  right: -100px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--primary-color);
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 15px;
  margin-bottom: 3rem;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.hero-benefit-item i {
  color: var(--success-color);
  font-size: 1.1rem;
}

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

.hero-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-floating-card {
  position: absolute;
  background-color: #ffffff;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.hero-floating-card-1 {
  bottom: 30px;
  left: -40px;
}

.hero-floating-card-2 {
  top: 40px;
  right: -20px;
  animation-delay: 2s;
}

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

/* Social Proof Section */
.social-proof-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: #ffffff;
}

.social-proof-title {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.logo-slider {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-item img {
  max-height: 100%;
  width: auto;
}

/* Stats Section / Counter */
.stats-section {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 60px 0;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: #e2e8f0;
}

/* Ecosystem Section */
.ecosystem-card {
  padding: 30px 20px;
}

.ecosystem-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background-color: rgba(14, 78, 168, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  transition: var(--transition-smooth);
}

.ecosystem-card:hover .ecosystem-icon {
  background-color: var(--accent-color);
  color: #ffffff;
  transform: rotateY(180deg);
}

.ecosystem-card h3 {
  margin-bottom: 15px;
}

.ecosystem-card p {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.ecosystem-card .link-arrow {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ecosystem-card .link-arrow i {
  transition: var(--transition-smooth);
}

.ecosystem-card:hover .link-arrow i {
  transform: translateX(5px);
}

/* Why Choose Us Section */
.why-card {
  padding: 30px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  height: 100%;
  transition: var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(246, 166, 35, 0.3);
}

.why-icon {
  font-size: 1.75rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.why-card h4 {
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Courses Section */
.course-card .course-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.course-card .course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.course-card .course-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.course-card .course-badge.badge-available {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border: none !important;
}

.course-card .course-badge.badge-upcoming {
  background-color: #f59e0b !important;
  color: #ffffff !important;
  border: none !important;
}

.course-card .course-badge.badge-hot {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
}

.course-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-meta i {
  color: var(--primary-color);
}

.course-title {
  margin-bottom: 15px;
  font-size: 1.15rem;
  line-height: 1.4;
}

.course-title a {
  color: var(--text-dark);
}

.course-title a:hover {
  color: var(--primary-color);
}

.course-info-list {
  list-style: none;
  margin-bottom: 25px;
  padding: 0;
}

.course-info-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-info-list li i {
  color: var(--accent-color);
}

.course-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Schedule Widget */
.schedule-widget {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.schedule-header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 20px 25px;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-row {
  display: grid;
  grid-template-columns: 80px 1fr 150px 135px;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.schedule-row .btn-solara {
  padding: 8px 10px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row:hover {
  background-color: #f8fafc;
}

.schedule-date-box {
  text-align: center;
  background-color: rgba(14, 78, 168, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 5px;
  width: 60px;
}

.schedule-date-box .day {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  display: block;
}

.schedule-date-box .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.schedule-course-info h5 {
  margin-bottom: 5px;
}

.schedule-course-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.schedule-location {
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* Products Section */
.product-card {
  text-align: center;
  padding: 30px 20px;
}

.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.product-img img {
  max-height: 100%;
  width: auto;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 42px;
}

.product-links {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Projects Showcase */
.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 300px;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 26, 48, 0.9) 0%, rgba(12, 26, 48, 0.2) 60%, rgba(12, 26, 48, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4 {
  color: #ffffff;
  margin-bottom: 5px;
}

.project-overlay p {
  color: var(--accent-color);
  font-size: 0.85rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.project-overlay .btn-view-proj {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Calculator Widget */
.calc-container {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
}

.calc-form {
  border-right: 1px solid var(--border-color);
  padding-right: 40px;
}

.calc-results {
  padding-left: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
}

.form-control-custom {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  background-color: var(--bg-light);
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(14, 78, 168, 0.1);
}

.result-card {
  background-color: rgba(14, 78, 168, 0.04);
  border: 1px dashed rgba(14, 78, 168, 0.2);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 25px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.result-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.result-val {
  font-weight: 700;
  color: var(--text-dark);
}

.result-val.highlight {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Distribution / Map Layout */
.distribution-search-panel {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.agent-list-wrapper {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 10px;
}

.agent-item {
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.agent-item:hover, .agent-item.active {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  background-color: rgba(14, 78, 168, 0.02);
}

.agent-item h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.agent-item.active h4 {
  color: var(--primary-color);
}

.agent-meta-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.agent-meta-info div {
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.agent-meta-info i {
  color: var(--primary-color);
  margin-top: 4px;
}

.agent-actions {
  display: flex;
  gap: 10px;
}

/* Interactive SVG Map Mock */
.map-canvas-container {
  height: 600px;
  background-color: #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.map-svg-mock {
  width: 100%;
  height: 100%;
  background-color: #eef2f6;
  position: relative;
}

.map-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.map-marker-pin {
  width: 24px;
  height: 24px;
  background-color: var(--primary-color);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: block;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.map-marker-pin::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 7px;
  left: 7px;
}

.map-marker:hover .map-marker-pin,
.map-marker.active .map-marker-pin {
  background-color: var(--accent-color);
  transform: rotate(-45deg) scale(1.2);
}

/* Marker locations around Vietnam map */
.marker-hn { top: 22%; left: 38%; }
.marker-hp { top: 24%; left: 42%; }
.marker-th { top: 30%; left: 36%; }
.marker-dn { top: 52%; left: 58%; }
.marker-nt { top: 72%; left: 74%; }
.marker-hcm { top: 82%; left: 62%; }
.marker-ct { top: 87%; left: 54%; }

.map-popup {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  width: 280px;
  z-index: 100;
  display: none;
  border: 1px solid var(--border-color);
}

.map-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.map-popup h5 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.map-popup p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Reviews / Testimonials */
.review-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  margin: 15px;
}

.review-stars {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.review-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 25px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.review-author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.review-author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-author-info h5 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.review-author-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* News Section & Filter */
.filter-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-tabs {
  display: inline-flex;
  background-color: #f1f5f9;
  padding: 6px;
  border-radius: 50px;
  list-style: none;
}

.filter-tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tab-btn:hover {
  color: var(--primary-color);
}

.filter-tab-btn.active {
  background-color: #ffffff;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.news-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-img {
  height: 200px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.news-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 15px;
}

.news-meta a.category-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.news-meta a.category-link:hover {
  color: var(--primary-color);
}

.news-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-title a {
  color: var(--text-dark);
}

.news-title a:hover {
  color: var(--primary-color);
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.news-more {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Call to Action end */
.cta-end-section {
  background-color: var(--primary-color);
  padding: 80px 0;
  color: #ffffff;
  text-align: center;
}

.cta-end-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.cta-end-section p {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.cta-end-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Footer Styles */
footer {
  background-color: #0b1329;
  color: #94a3b8;
  padding: 80px 0 30px 0;
  font-size: 0.9rem;
  border-top: 5px solid var(--accent-color);
}

footer h4 {
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 10px;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

footer a {
  color: #94a3b8;
}

footer a:hover {
  color: #ffffff;
}

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

.footer-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-info i {
  color: var(--accent-color);
  margin-top: 4px;
}

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

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

.footer-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a i {
  font-size: 0.75rem;
  transition: var(--transition-smooth);
}

.footer-links li a:hover i {
  transform: translateX(3px);
  color: var(--accent-color);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  transition: var(--transition-smooth);
}

.footer-social-icon:hover {
  background-color: var(--accent-color);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
}

/* Floating Actions Widgets (Zalo, Messenger, Call) */
.floating-actions-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease-in-out;
}

.floating-actions-container.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.float-action-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  box-shadow: var(--shadow-md);
  font-size: 1.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.float-action-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.float-btn-phone { background-color: var(--success-color); }
.float-btn-zalo { background-color: #0068ff; }
.float-btn-messenger { background-color: #0084ff; }

.float-btn-phone::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--success-color);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Breadcrumbs section */
.page-header {
  background: linear-gradient(135deg, #0c1a30 0%, #1e293b 100%);
  color: #ffffff;
  padding: 60px 0;
  position: relative;
}

.page-header h1 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 10px;
}

.breadcrumb-custom {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb-custom li a {
  color: #94a3b8;
}

.breadcrumb-custom li a:hover {
  color: #ffffff;
}

.breadcrumb-custom li::after {
  content: '/';
  color: #64748B;
  margin-left: 8px;
}

.breadcrumb-custom li:last-child::after {
  display: none;
}

.breadcrumb-custom li.active {
  color: var(--accent-color);
  font-weight: 500;
}

.breadcrumb-custom li.active a {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.breadcrumb-custom li.active a:hover {
  color: #ffffff;
}

/* Course Details layout */
.course-details-sidebar {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.course-details-info-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.course-details-info-item:last-child {
  border-bottom: none;
}

.course-details-info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.course-details-info-val {
  font-weight: 600;
  color: var(--text-dark);
}

/* Admin Styles */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f1f5f9;
}

.admin-sidebar {
  width: 260px;
  background-color: #0f172a;
  color: #94a3b8;
  padding: 20px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.admin-logo {
  padding: 0 25px 25px 25px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 20px;
}

.admin-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 25px;
  color: #94a3b8;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition-smooth);
}

.admin-menu-item a:hover,
.admin-menu-item.active a {
  background-color: #1e293b;
  color: #ffffff;
}

.admin-menu-item.active a {
  border-left-color: var(--accent-color);
}

.admin-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.admin-topbar {
  background-color: #ffffff;
  padding: 15px 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-content {
  padding: 30px;
}

.admin-card-stat {
  background-color: #ffffff;
  padding: 25px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: rgba(14, 78, 168, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Custom Table for Admin */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.admin-table th, .admin-table td {
  padding: 15px 20px;
  text-align: left;
}

.admin-table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover {
  background-color: #f8fafc;
}

/* Form Styles for Dialog/Modals */
.solara-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.solara-modal-content {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.solara-modal-header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.solara-modal-header h4 {
  color: #ffffff;
  margin-bottom: 0;
}

.solara-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.solara-modal-close:hover {
  opacity: 1;
}

.solara-modal-body {
  padding: 25px;
}

.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.partner-logo-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px 15px;
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partner-logo-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.partner-logo-card img {
  max-height: 50px;
  margin-bottom: 15px;
}

.partner-logo-card h5 {
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.partner-logo-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Navigation to prevent line wrapping */
@media (min-width: 992px) and (max-width: 1249px) {
  .nav-link {
    font-size: 0.82rem !important;
    padding: 6px 6px !important;
  }
  .nav-link::after {
    left: 6px !important;
    right: 6px !important;
  }
  .header-ctas {
    gap: 6px !important;
  }
  .header-ctas .btn-solara {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
  }
  .navbar-brand img {
    height: 38px !important;
  }
}

@media (min-width: 1250px) and (max-width: 1399px) {
  .nav-link {
    font-size: 0.88rem !important;
    padding: 6px 10px !important;
  }
  .nav-link::after {
    left: 10px !important;
    right: 10px !important;
  }
  .header-ctas {
    gap: 8px !important;
  }
  .header-ctas .btn-solara {
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
  }
  .navbar-brand img {
    height: 42px !important;
  }
}

/* Single Post Detail Sizing & Line-wrap fixes */
.page-header h1.page-title-detail {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem) !important;
  line-height: 1.3 !important;
  font-weight: 700;
  text-wrap: wrap !important;
}

.blog-detail-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
  line-height: 1.35 !important;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 15px;
  margin-bottom: 20px;
  text-wrap: wrap !important;
}

.blog-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

/* Premium Pagination Styles */
.pagination-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 4px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.pagination-wrapper .page-numbers:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.pagination-wrapper .page-numbers.current {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.pagination-wrapper .page-numbers.prev,
.pagination-wrapper .page-numbers.next {
  width: auto;
  padding: 0 16px;
}

/* ==========================================================================
   Solara Mobile Responsiveness Audits & Optimizations (390px Viewport)
   ========================================================================== */

/* 1. Header & Navigation Menu Scroll/Height and spacing fixes */
@media (max-width: 991px) {
  /* Prevent sticky-header height from causing menu cutoff & allow internal scrolling */
  .navbar-collapse {
    max-height: calc(100vh - 100px) !important;
    overflow-y: auto !important;
    padding-bottom: 40px !important;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Mobile Menu spacing & Touch Target sizing */
  .navbar-nav {
    padding: 5px 0 !important;
  }
  
  .nav-item {
    margin-bottom: 4px !important;
  }
  
  .nav-link {
    padding: 10px 16px !important; /* Touch target height optimized to 44px */
    font-size: 1rem !important;
    border-radius: var(--radius-sm);
  }
  
  .nav-link::after {
    display: none !important; /* Hide desktop hover underline effect on mobile */
  }
  
  /* Mobile header CTA buttons stack layout */
  .header-ctas {
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 15px !important;
    padding: 15px 10px 0 10px !important;
    border-top: 1px solid var(--border-color);
  }
  
  .header-ctas .btn-solara {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px !important;
    font-size: 0.95rem !important;
    text-align: center !important;
  }
}

/* Hide top-bar on mobile to save vertical viewport space */
@media (max-width: 767px) {
  .top-bar {
    display: none !important;
  }
}

/* 2. Floating Action Widgets Footprint Reduction */
@media (max-width: 767px) {
  .floating-actions-container {
    bottom: 15px !important;
    right: 15px !important;
    gap: 8px !important;
  }
  
  .float-action-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.25rem !important;
  }
}

/* 3. Hero Section CTA Buttons vertical stacking & clipping prevention */
@media (max-width: 575px) {
  .hero-cta {
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 2rem !important;
  }
  
  .hero-cta .btn-solara {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    text-align: center !important;
  }
  
  /* Adjust floating badges in hero so they aren't clipped */
  .hero-floating-card-1 {
    left: 10px !important;
  }
  
  .hero-floating-card-2 {
    right: 10px !important;
  }
}

/* 4. About Section / Stats Cards clipping & padding optimizations */
@media (max-width: 575px) {
  #about-intro .col-6 {
    /* Retain 2-column layout but scale down paddings and font size to fit neatly */
    padding: 0 6px !important;
  }
  
  #about-intro .col-6 > div {
    padding: 16px 8px !important;
  }
  
  #about-intro .stat-number {
    font-size: 1.75rem !important;
  }
  
  #about-intro .col-6 .small {
    font-size: 0.78rem !important;
    line-height: 1.25;
  }
  
  /* Scale down the large stat numbers in the Counter section as well */
  .stat-number {
    font-size: 2.25rem !important;
  }
  
  .stat-label {
    font-size: 0.9rem !important;
  }
}

/* 5. Schedule List Mobile Layout conversion (Single column stack) */
@media (max-width: 767px) {
  .schedule-row {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 20px !important;
    text-align: center !important;
  }
  
  .schedule-date-box {
    margin: 0 auto !important;
  }
  
  .schedule-location {
    margin: 5px 0 !important;
  }
  
  .schedule-row .btn-solara {
    width: 100% !important;
    max-width: 220px !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }
}

/* 6. Page Header Title banner horizontal overflow clipping fix */
@media (max-width: 767px) {
  .page-header h1 {
    font-size: 1.65rem !important;
    line-height: 1.35 !important;
    word-wrap: break-word !important;
    text-wrap: balance !important;
  }
  
  .page-header {
    padding: 40px 0 !important;
  }
}

/* 7. News filter tabs horizontal overflow styling (YouTube-like horizontal scroll) */
@media (max-width: 767px) {
  .filter-tabs-wrapper {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px !important;
    margin-bottom: 25px !important;
    width: 100% !important;
    scrollbar-width: none; /* Firefox */
  }
  
  .filter-tabs-wrapper::-webkit-scrollbar {
    display: none !important; /* Safari, Chrome, Opera */
  }
  
  .filter-tabs {
    display: flex !important;
    white-space: nowrap !important;
    width: max-content !important;
    margin: 0 auto !important;
    border-radius: 25px !important;
    padding: 4px !important;
  }
  
  .filter-tab-btn {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
  }
}

/* 8. Spacing/Padding optimization for Bootstrap utility-paddings in columns */
@media (max-width: 767px) {
  /* Reduce extreme card padding (like page-giaiphap.php p-5) on mobile */
  .card.p-5 {
    padding: 1.5rem !important;
  }
  
  .card.p-4 {
    padding: 1.25rem !important;
  }
  
  /* Ensure distribution map canvas fits viewport neatly */
  .map-canvas-container {
    height: 350px !important;
  }
}

@media (max-width: 991px) {
  /* Remove inner scrollbar from agent list on mobile to prevent nested scroll trapping */
  .agent-list-wrapper {
    max-height: none !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
    padding-bottom: 80px !important;
  }
}



