/* Importing Poppins font for a premium, modern feel */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #4f83fd;
  /* Beautiful Soft Blue */
  --primary-hover: #3b71e8;
  --secondary-color: #8b5cf6;
  /* Beautiful Soft Purple/Violet */
  --secondary-hover: #7c3aed;
  --dark-color: #0c1024;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-gradient-start: #f3f7fd;
  --bg-gradient-end: #ffffff;
  --white: #ffffff;
  --border-color: #e2e8f0;

  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(79, 131, 253, 0.04);
  --shadow-md: 0 10px 30px rgba(12, 16, 36, 0.05);
  --shadow-lg: 0 20px 40px rgba(79, 131, 253, 0.08);
}

body {
  font-family: var(--font-family);
  color: var(--dark-color);
  background-color: var(--white);
  overflow-x: hidden;
}

#page-site-index .container {
  max-width: 1140px;

}

/* Header & Navbar Styling */
.gai-navbar {
  padding: 1.25rem 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.gai-navbar-brand {
  display: flex;
  align-items: center;
  height: auto;
}

.gai-navbar-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.gai-brand-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-right: 10px;
  box-shadow: 0 4px 10px rgba(0, 98, 255, 0.25);
  font-size: 1.1rem;
}

.gai-brand-text {
  line-height: 1.1;
}

.gai-brand-subtext {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  letter-spacing: 2px;
}

.gai-nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark-color) !important;
  margin: 0 0.75rem;
  transition: var(--transition);
  position: relative;
}

.gai-nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.gai-nav-link.active:after,
.gai-nav-link:hover:after {
  width: 100%;
}

.gai-btn-login {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
  background-size: 200% auto;
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.6rem 2rem;
  border-radius: 30px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 14px rgba(79, 131, 253, 0.2);
  border: none;
}

.gai-btn-login:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 131, 253, 0.3);
}

/* Hero Section */
.gai-hero-section {
  position: relative;
  padding: 8rem 0 10rem 0;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  overflow: hidden;
}

/* Mural-like grid dots overlay */
.gai-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(0, 98, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.gai-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.gai-text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gai-hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.gai-btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
  background-size: 200% auto;
  color: var(--white);
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  border: none;
  transition: all 0.4s ease;
  box-shadow: 0 4px 14px rgba(79, 131, 253, 0.2);
}

.gai-btn-primary-custom:hover {
  background-position: right center;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 131, 253, 0.3);
}

.gai-btn-outline-custom {
  background-color: transparent;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  border: 2px solid rgba(79, 131, 253, 0.25);
  transition: var(--transition);
}

.gai-btn-outline-custom:hover {
  background-color: rgba(79, 131, 253, 0.04);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Hero Image Styling */
.gai-hero-image-wrapper {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

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

.gai-hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

/* Floating element decorations */
.gai-blob-decor {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  z-index: 1;
}

.gai-blob-1 {
  top: -50px;
  right: -50px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0) 70%);
}

.gai-blob-2 {
  bottom: -100px;
  left: -50px;
  background: radial-gradient(circle, rgba(79, 131, 253, 0.08) 0%, rgba(79, 131, 253, 0) 70%);
}

/* Statistics Bar */
.gai-stats-bar-wrapper {
  margin-top: -7.5rem;
  position: relative;
  z-index: 10;
}

.gai-stats-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.gai-stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(12, 16, 36, 0.08);
}

.gai-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 0 0.5rem;

  .gai-stat-content {
    text-align: center;
    gap: 5px;
    display: flex;
    flex-direction: column;
  }
}

.gai-stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(79, 131, 253, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  /* margin-right: 1rem; */
  flex-shrink: 0;
  transition: var(--transition);
}

.gai-stat-item:hover .gai-stat-icon-wrapper {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  transform: scale(1.05);
}

.gai-stat-number {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
  color: var(--dark-color);
  line-height: 1.2;
}

.gai-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-color);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.gai-stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Why Learn With Us Section */
.gai-why-learn-section {
  padding: 4rem 0;
  position: relative;
  background-color: var(--white);
}

.gai-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gai-section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.gai-accent-line-center {
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0.5rem auto 1.5rem auto;
  border-radius: 2px;
}

.gai-accent-line-left {
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0.5rem 0 1.5rem 0;
  border-radius: 2px;
}

.gai-section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Nav Pills Custom */
.gai-nav-pills-custom {
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.gai-nav-pills-custom .gai-nav-link {
  background-color: #f1f5f9;
  color: var(--dark-color) !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  transition: var(--transition);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  box-shadow: none;
}

.gai-nav-pills-custom .gai-nav-link i {
  margin-right: 8px;
  font-size: 1rem;
}

.gai-nav-pills-custom .gai-nav-link:hover {
  background-color: #e2e8f0;
  transform: translateY(-1px);
}

.gai-nav-pills-custom .gai-nav-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 14px rgba(79, 131, 253, 0.25);
}

.gai-nav-pills-custom .gai-nav-link:after {
  display: none;
  /* remove underline from default link style */
}

/* Content Area */
.gai-tab-content-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark-color);
}

.gai-tab-content-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.gai-why-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.gai-why-list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--dark-color);
  line-height: 1.5;
}

.gai-why-list-item:last-child {
  margin-bottom: 0;
}

.gai-why-list-icon {
  color: var(--primary-color);
  font-size: 1.15rem;
  margin-right: 0.75rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.gai-why-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.gai-why-image-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.gai-why-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* AI Certifications Section */
.gai-certs-section {
  padding: 6rem 0;
  background-color: #f8fafc;
  position: relative;
}

.gai-certs-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.gai-certs-subtitle::before,
.gai-certs-subtitle::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background-color: var(--primary-color);
}

.gai-cert-card-col {
  margin-bottom: 2rem;
}

.gai-cert-card {
  position: relative;
  background-color: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gai-cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 98, 255, 0.15);
}

.gai-cert-card-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.gai-cert-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gai-cert-card-body {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  justify-content: space-between;
}

.gai-cert-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gai-cert-card-courses {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  background-color: rgba(79, 131, 253, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.gai-btn-cert-action {
  width: 100%;
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid rgba(79, 131, 253, 0.2);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.25rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gai-btn-cert-action:hover {
  border-color: var(--primary-color);
  background-color: rgba(79, 131, 253, 0.02);
  color: var(--primary-color);
}

/* Hover Overlay State */
.gai-cert-card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-color);
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 5;
}

.gai-cert-card:hover .gai-cert-card-hover-overlay {
  opacity: 1;
  visibility: visible;
}

.gai-cert-hover-title {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.gai-cert-hover-courses {
  color: #a78bfa;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.gai-cert-hover-desc {
  color: #94a3b8;
  font-size: 0.825rem;
  line-height: 1.6;
  margin-bottom: 0.25rem;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 9.25rem;
}

.gai-cert-hover-desc-wrapper {
  margin-bottom: 1rem;
  text-align: center;
}

.gai-cert-see-more {
  display: none;
  color: #60a5fa;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: color 0.2s ease;
}

.gai-cert-see-more:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Custom Popover Box (matching Glossary tooltip styling) */
.gai-cert-popover {
  position: absolute;
  z-index: 2000;
  display: none;
  max-width: 320px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-family: inherit;
  text-align: left;
}

.gai-cert-popover-header {
  background-color: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gai-cert-popover-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.85rem;
}

.gai-cert-popover-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
}

.gai-cert-popover-close:hover {
  color: #ef4444;
}

.gai-cert-popover-body {
  padding: 12px 16px;
  color: #475569;
  font-size: 0.825rem;
  line-height: 1.5;
  max-height: 250px;
  overflow-y: auto;
}

.gai-cert-popover-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
}

/* Arrow styling depending on position */
.gai-cert-popover.bs-popover-top .gai-cert-popover-arrow {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-top-color: #cbd5e1;
}

.gai-cert-popover.bs-popover-top::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 7px 0;
  border-style: solid;
  border-color: transparent;
  border-top-color: #ffffff;
}

.gai-cert-popover.bs-popover-bottom .gai-cert-popover-arrow {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 8px;
  border-bottom-color: #cbd5e1;
}

.gai-cert-popover.bs-popover-bottom::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 7px 7px;
  border-style: solid;
  border-color: transparent;
  border-bottom-color: #f1f5f9;
}


.gai-btn-cert-hover-action {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
  background-size: 200% auto;
  color: var(--white) !important;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(79, 131, 253, 0.25);
}

.gai-btn-cert-hover-action:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 131, 253, 0.35);
}

/* How It Works Section */
.gai-how-it-works-section {
  padding: 6rem 0;
  background-color: #ffffff;
  background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  position: relative;
}

.gai-how-it-works-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, #ffffff 80%);
  pointer-events: none;
}

.gai-how-it-works-section .container {
  position: relative;
  z-index: 1;
}

.gai-how-it-works-eyebrow {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.gai-how-it-works-eyebrow .line {
  height: 1px;
  background-color: var(--primary-color);
  width: 30px;
  display: inline-block;
  margin: 0 15px;
}

.gai-how-it-works-eyebrow .line:first-child {
  margin-left: 0;
}

.gai-how-it-works-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.gai-how-it-works-desc {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

/* Learner Outcome Card */
.gai-learner-outcome-card {
  background-color: #f0f7ff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 95%;
}

.gai-learner-outcome-icon {
  background-color: #ffffff;
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.gai-learner-outcome-text {
  text-align: left;
}

.gai-learner-outcome-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.gai-learner-outcome-desc {
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Steps Cards */
.gai-steps-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 2rem;
}

.gai-step-card {
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gai-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #e2e8f0;
}

.gai-step-number {
  background-color: rgba(79, 131, 253, 0.08);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.15rem;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gai-step-content {
  display: flex;
  flex-direction: column;
}

.gai-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.gai-step-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.4;
}

@media (max-width: 991.98px) {
  .gai-steps-container {
    padding-left: 0;
  }

  .gai-how-it-works-title {
    font-size: 2.25rem;
  }

  .gai-how-it-works-desc,
  .gai-learner-outcome-card {
    max-width: 100%;
  }
}

/* Course Catalog Section */
.gai-catalog-section {
  padding: 6rem 0;
  background-color: var(--white);
  position: relative;
}

.gai-catalog-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.gai-catalog-subtitle::before,
.gai-catalog-subtitle::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background-color: var(--primary-color);
}

.gai-catalog-slider-wrapper {
  position: relative;
  padding: 0 3.5rem;
  margin-top: 3.5rem;
}

/* Clipping container — hides overflowing slides */
.gai-course-slider-viewport {
  overflow: hidden;
  width: 100%;
}

/* Flexbox track that slides horizontally */
.gai-course-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: stretch;
  gap: 0;
}

/* Each slide sits inside the track at a JS-set width */
.gai-course-slide {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 0 12px 40px 12px;
  /* bottom padding gives space for badge overlap */
  box-sizing: border-box;
}

/* Dot indicators */
.gai-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.75rem;
}

.gai-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.gai-slider-dot.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  width: 28px;
  border-radius: 5px;
}

.gai-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 98, 255, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--primary-color);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.gai-slider-arrow:hover {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 98, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
  border-color: var(--primary-color);
}

.gai-slider-arrow-left {
  left: 0;
}

.gai-slider-arrow-right {
  right: 0;
}

.gai-course-card {
  position: relative;
  background-color: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  /* No overflow:hidden — allows badge icon to visibly overlap */
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gai-course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 98, 255, 0.15);
}

.gai-course-card-image-wrapper {
  position: relative;
  height: 210px;
}

.gai-course-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: var(--transition);
}

.gai-course-card:hover .gai-course-card-image-wrapper img {
  transform: scale(1.03);
}

.gai-course-badge-icon {
  position: absolute;
  bottom: -23px;
  left: 24px;
  width: 46px;
  height: 46px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(12, 16, 36, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 2;
  transition: var(--transition);
}

.gai-course-card:hover .gai-course-badge-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  transform: scale(1.05);
}

.gai-course-badge-icon i {
  font-size: 1.1rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.gai-course-card:hover .gai-course-badge-icon i {
  color: var(--white);
}

.gai-course-card-body {
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.gai-course-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.gai-course-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.gai-course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  padding-top: 1.15rem;
}

.gai-course-duration {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gai-course-duration i {
  color: var(--primary-color);
  font-size: 0.95rem;
}

.gai-btn-course-readmore {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
  background-size: 200% auto;
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.55rem 1.25rem;
  border-radius: 30px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(79, 131, 253, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
}

.gai-btn-course-readmore:hover {
  background-position: right center;
  box-shadow: 0 6px 14px rgba(79, 131, 253, 0.25);
}

.gai-btn-catalog-explore {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
  background-size: 200% auto;
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2.5rem;
  border-radius: 30px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 14px rgba(79, 131, 253, 0.2);
  border: none;
  margin-top: 3.5rem;
  display: inline-block;
}

.gai-btn-catalog-explore:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 131, 253, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .gai-hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .gai-hero-section {
    padding: 7rem 0 8rem 0;
    text-align: center;
  }

  .gai-hero-title {
    font-size: 2.75rem;
  }

  /* Mobile Navbar Rules */
  .gai-navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .gai-navbar-brand,
  .gai-navbar .navbar-toggler {
    align-self: center !important;
  }

  .gai-navbar .navbar-collapse {
    background-color: var(--white) !important;
    width: 100%;
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.4s ease, margin 0.4s ease;
    border-radius: 12px;
    border: none !important;
    box-shadow: none !important;
    padding: 0 1rem !important;
    margin-top: 0 !important;
  }

  .gai-navbar .navbar-collapse.show {
    max-height: 360px;
    opacity: 1;
    padding: 1rem !important;
    margin-top: 0.5rem !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 10px 30px rgba(12, 16, 36, 0.1) !important;
  }

  .gai-navbar .navbar-nav {
    gap: 0.75rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .gai-navbar .gai-btn-login {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    text-align: center;
  }

  .gai-hero-desc {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .gai-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  .gai-hero-image-wrapper {
    margin-top: 3.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
  }

  .gai-stats-bar-wrapper {
    margin-top: -4rem;
  }

  .gai-stat-item {
    margin-bottom: 1.5rem;
  }

  .col-lg-3:last-child .gai-stat-item {
    margin-bottom: 0;
  }

  .why-learn-content {
    margin-bottom: 2.5rem;
  }

  .gai-accent-line-left {
    margin: 0.5rem auto 1.5rem auto;
  }

  .gai-tab-content-title {
    text-align: center;
  }

  .gai-tab-content-desc {
    text-align: center;
  }

  .gai-why-list {
    display: inline-block;
    text-align: left;
  }

  .gai-nav-pills-custom {
    flex-wrap: wrap;
  }

  .gai-catalog-slider-wrapper {
    padding: 0 1rem;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .gai-hero-title {
    font-size: 2.25rem;
  }

  .gai-hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .gai-hero-buttons .btn {
    margin-bottom: 0.75rem;
    width: 100%;
    max-width: 320px;
  }

  .gai-hero-buttons .btn:last-child {
    margin-bottom: 0;
  }

  .gai-nav-pills-custom {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
  }

  .gai-nav-pills-custom .nav-item {
    width: 100%;
    max-width: 320px;
  }

  .gai-nav-pills-custom .gai-nav-link {
    justify-content: center;
  }

  .gai-navbar {
    padding: 1rem 1.5rem;
  }

  .gai-stats-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .gai-stat-item {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-md);
    padding: 1.75rem 1.5rem !important;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Remove the margin-bottom on the last item to prevent extra space */
  .col-sm-6:last-child .gai-stat-item,
  .col-lg-3:last-child .gai-stat-item {
    margin-bottom: 0;
  }

  .gai-stat-icon-wrapper {
    margin-right: 0 !important;
    margin-bottom: 0.75rem;
  }

  .gai-slider-arrow {
    display: none;
  }

  .gai-catalog-slider-wrapper {
    padding: 0;
  }

  .catalog-card-col {
    margin-bottom: 2rem;
  }

  .gai-course-card,
  .gai-cert-card {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  .gai-stat-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gai-stat-icon-wrapper {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
}

/* =========================================================
   Site Footer
   ========================================================= */
.gai-site-footer {
  background: #f8fafc;
  color: #64748b;
  padding: 5rem 0 0;
  font-family: var(--font-family);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

/* Top row: brand left, nav-columns right */
.gai-footer-top {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

/* ---- Brand block ---- */
.gai-footer-brand {
  flex: 0 0 260px;
}

.gai-footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.gai-footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.gai-footer-tagline {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 240px;
}

/* Social icons */
.gai-footer-socials {
  display: flex;
  gap: 0.6rem;
}

.gai-footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.gai-footer-social-link:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(79, 131, 253, 0.2);
}

/* ---- Nav columns ---- */
.gai-footer-nav-group {
  display: flex;
  gap: 3.5rem;
  flex: 1;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.gai-footer-nav-col {
  min-width: 130px;
}

.gai-footer-nav-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dark-color);
  margin-bottom: 1.25rem;
}

.gai-footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gai-footer-nav-list a {
  font-size: 0.92rem;
  color: #64748b;
  text-decoration: none;
  letter-spacing: 0px;
  transition: color 0.3s ease, letter-spacing 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.gai-footer-nav-list a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: width 0.25s ease;
}

.gai-footer-nav-list a:hover {
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 0.6px;
}

.gai-footer-nav-list a:hover::after {
  width: 100%;
}

/* ---- Divider ---- */
.gai-footer-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 3rem 0 1.5rem;
}

/* ---- Bottom row ---- */
.gai-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.gai-footer-copyright {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.gai-footer-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--primary-color);
  background: rgba(79, 131, 253, 0.08);
  border: 1px solid rgba(79, 131, 253, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.gai-footer-badge i {
  color: var(--primary-color);
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
  .gai-site-footer {
    padding: 4rem 0 0;
  }

  .gai-footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }

  .gai-footer-brand {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gai-footer-logo {
    justify-content: center;
  }

  .gai-footer-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .gai-footer-socials {
    justify-content: center;
  }

  .gai-footer-nav-group {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
  }

  .gai-footer-nav-col {
    text-align: center;
  }

  .gai-footer-divider {
    margin: 2.5rem 0 1.5rem;
  }

  .gai-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding-bottom: 2.5rem;
  }
}