/* ==========================================================================
   HOMEPAGE LIGHT THEME (REDESIGN)
   ========================================================================== */

/* Variables specifically for this layout if overriding global */
body.hp-light-page {
  --color-bg-light: #f8f9fa !important;
  --color-surface: #ffffff !important;
  --color-text-main: #111111 !important;
  --color-text-muted: #6b7280 !important;
  --color-red-primary: #e62314 !important;
  --color-red-dark: #cc1b0d !important;
  --color-border-light: #e5e7eb !important;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  --shadow-red: 0 10px 25px -5px rgba(230, 35, 20, 0.4) !important;

  background-color: var(--color-surface) !important;
  color: var(--color-text-main) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.hp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hp-section {
  padding: 80px 0;
  background: var(--color-surface);
}
.hp-section.bg-alt {
  background: var(--color-bg-light);
}
.hp-section.bg-dark {
  background: #0f172a;
  color: #ffffff;
}

.hp-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-red-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-red-primary);
  border-radius: 50%;
}

.hp-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--color-text-main);
}
.hp-title span.text-red {
  color: var(--color-red-primary);
}
.hp-desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Buttons */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.hp-btn-primary {
  background: var(--color-red-primary);
  color: #ffffff;
  box-shadow: var(--shadow-red);
}
.hp-btn-primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  color: #ffffff;
}
.hp-btn-outline {
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-border-light);
}
.hp-btn-outline:hover {
  background: var(--color-bg-light);
  border-color: var(--color-text-main);
  color: var(--color-text-main);
}

/* Hero Section */
.hp-hero {
  padding: 60px 0 80px;
  background: radial-gradient(circle at center 20%, #ffffff 0%, #f9fafb 100%);
  text-align: center;
}
.hp-hero .hp-label {
  justify-content: center;
}
.hp-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}
.hp-hero-title span.text-red {
  color: var(--color-red-primary);
}
.hp-hero-desc {
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
.hp-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hp-hero-graphic {
  margin-top: 60px;
  position: relative;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.hp-hero-graphic img {
  width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

/* Trusted By */
.hp-trusted {
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  padding: 40px 0;
  text-align: center;
  background: #ffffff;
}
.hp-trusted-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hp-trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hp-trusted-logos img, .hp-trusted-logos i {
  height: 30px;
  font-size: 30px;
  color: #9ca3af;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.hp-trusted-logos img:hover, .hp-trusted-logos i:hover {
  opacity: 1;
}

/* Stats Grid */
.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .hp-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hp-stat-card {
  text-align: center;
  padding: 30px;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hp-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.hp-stat-icon {
  font-size: 24px;
  color: var(--color-red-primary);
  margin-bottom: 16px;
}
.hp-stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 8px;
}
.hp-stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Domains List */
.hp-domains-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .hp-domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hp-domain-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--color-text-main);
}
.hp-domain-item:hover {
  border-color: var(--color-red-primary);
  box-shadow: var(--shadow-md);
}
.hp-domain-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff0f0;
  color: var(--color-red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.hp-domain-content {
  flex: 1;
}
.hp-domain-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.hp-domain-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.hp-domain-arrow {
  color: var(--color-text-muted);
  transition: transform 0.2s, color 0.2s;
}
.hp-domain-item:hover .hp-domain-arrow {
  transform: translateX(5px);
  color: var(--color-red-primary);
}

/* Feature Checks */
.hp-feature-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.hp-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--color-text-main);
}
.hp-feature-list li i {
  color: var(--color-red-primary);
  font-size: 18px;
  background: #fff0f0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* 2-Column Split Section */
.hp-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 992px) {
  .hp-split {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}
.hp-split-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* Course Cards */
.hp-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.hp-course-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: var(--color-text-main);
}
.hp-course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-red-primary);
}
.hp-course-thumb {
  height: 180px;
  position: relative;
}
.hp-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-red-primary);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}
.hp-course-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hp-course-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.hp-course-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.hp-course-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.hp-course-meta i {
  color: var(--color-red-primary);
}
.hp-course-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}
.hp-course-price {
  font-size: 1.25rem;
  font-weight: 800;
}
.hp-course-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-red-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.hp-course-card:hover .hp-course-arrow {
  transform: translateX(5px);
}

/* Certifications */
.hp-certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .hp-certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hp-cert-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}
.hp-cert-card:hover {
  border-color: var(--color-red-primary);
  box-shadow: var(--shadow-md);
}
.hp-cert-abbr {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--color-text-main);
}
.hp-cert-name {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.hp-cert-icon {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.hp-cert-icon::after {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  background: rgba(230, 35, 20, 0.05);
  border-radius: 50%;
  z-index: 0;
}
.hp-cert-icon i {
  position: relative;
  z-index: 1;
  font-size: 32px;
  color: var(--color-red-primary);
}

/* Testimonial */
.hp-testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.hp-quote-icon {
  font-size: 40px;
  color: rgba(230, 35, 20, 0.1);
  position: absolute;
  top: 30px;
  left: 30px;
}
.hp-test-text {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.8;
  margin: 20px 0 30px;
  position: relative;
  z-index: 1;
  color: var(--color-text-main);
}
.hp-test-user {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hp-test-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.hp-test-name {
  font-weight: 700;
}
.hp-test-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Blog List */
.hp-blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}
.hp-blog-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  color: var(--color-text-main);
  transition: all 0.2s;
}
.hp-blog-item:hover {
  border-color: var(--color-red-primary);
  box-shadow: var(--shadow-md);
}
.hp-blog-thumb {
  width: 100px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}
.hp-blog-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-text-main);
}
.hp-blog-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Newsletter Section */
.hp-newsletter {
  background: #0f172a;
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.hp-newsletter::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(230, 35, 20, 0.2) 0%, transparent 60%);
  pointer-events: none;
}
.hp-newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 30px auto 0;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.hp-newsletter-input {
  flex: 1;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  outline: none;
}
.hp-newsletter-input:focus {
  border-color: var(--color-red-primary);
}
@media (max-width: 576px) {
  .hp-newsletter-form {
    flex-direction: column;
  }
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Header Override for Light Theme */
body.hp-light-page .navbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
}
body.hp-light-page .navbar .nav-link,
body.hp-light-page .navbar .navbar-brand {
  color: #111111 !important;
}
body.hp-light-page .navbar .nav-link:hover,
body.hp-light-page .navbar .nav-link.active {
  color: #e62314 !important;
}
body.hp-light-page .search-wrap input {
  background: #f8f9fa !important;
  border-color: #e5e7eb !important;
  color: #111111 !important;
}
body.hp-light-page .search-wrap input::placeholder {
  color: #6b7280 !important;
}
body.hp-light-page .search-wrap i {
  color: #6b7280 !important;
}
body.hp-light-page .hamburger span {
  background: #111111 !important;
}
