:root {
  --primary-color: #950002;
  --secondary-color: #000;
  --btn-purple:linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --dark-blue: #582cb4;
  --ultramarine-blue: #950002; 
  --dark-purple: #231f41;
  --old-lavender: #6f6b80; 
  --white-2: #f5f5f5; 
  --white: #fff;
  --fw-700: 700;
  --radius-4: 4px;
  --radius-6: 6px;
  --transition-1: 0.25s ease;
  --course-text-dark: #1F1F1F;
  --course-text-medium: #6E6E6E;
  --course-bg-lighter: #F5F7FA;
}


.text-purple {
  color: var(--secondary-color)!important;
}

.stats-card {
  background-color:var(--ultramarine-blue);
  color: white;
  padding: 1rem;
  border-radius: 15px;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 1rem;
}

.btn-outline-primary {
  background: var(--btn-purple);
  padding: 0.8rem 2.5rem;
  border-radius: none !important;
  font-weight: 600;
  color: var(--white);
}

.bg-purple
{
background-color:  var(--primary-color);
}

.hero-section .container {
  transition: all 1s ease;
}

.features {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 4rem 0;
}

.feature-content {
  padding: 2rem;
}


.border-start {
  border-color: rgba(255 255 255 / 30%) !important;
}

.steps-section {
  background-color: var(--white-2);
}

.kubiki-section {
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.chat-bubble::after {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: transparent white transparent transparent;
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3s steps(40, end);
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


.step-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu {
  border: 1px solid var(--secondary-color);
  border-radius: 15px;
  padding: 1rem;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  color: var(--secondary-color);
}

@keyframes float {
0% { transform: translateY(0); }
0% { transform: translateY(0); }
100% { transform: translateY(0); }
}

@media (width <= 768px) {
.hero-title {
    font-size: 2.5rem;
}

.hero-section {
    text-align: center;
}

.buttons-wrapper {
    justify-content: center;
}
}

footer
{
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}


@media screen and (width<= 699px){
.hero-title
{
font-size: 2.5rem;
}

.hero-section
{
background:#f8fcff;
}

}

@media screen and (width >= 702px) and (width <= 1180px)
{
.hero-section
{
  top:40px;
}
}

@media screen and (700px <= width <= 720px) {
.hero-section
{
  top:84px;
}
}

@media screen and (width <= 700px) {
.navbar{
padding: inherit;
}

.navbar-toggler { 
font-size: 10px;
}

.hero-subtitle{
display: none;
}

.hero-section .btn, .navbar .btn{
line-height: 0.5;
margin-top: 2px;
}

.dropdown-menu {
padding: inherit
} 

}

@media (width <= 400px) {
  .hero-title{
  font-size: 1.5rem;
  }

}

li { list-style: none; }

a {
  text-decoration: none;
  color: inherit;
} 

button { cursor: pointer; }
 
html { 
  scroll-behavior: smooth;
}

body {
  background-color: var(--white) !important;
  color: var(--old-lavender);  
  line-height: 1.6;
  overflow-x: hidden;
}

.btn {
  font-weight: var(--fw-700); 
  align-items: center;
  gap: 10px;
  padding: 10px 30px;
  border-radius: var(--radius-6);
  transition: var(--transition-1); 
  text-align: center;
}

.grid-list {
  display: grid;
  gap: 30px;
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding-block: 20px;
  z-index: 4;
}

.header.active {
  background-color: var(--white);
  box-shadow: var(--shadow-2);
}

.hero .container {
  display: grid;
}

.programme-card {
  --title-color: var(--dark-purple);
  --meta-color: var(--old-lavender);
  --icon-color: var(--ultramarine-blue);
  --icon-bg: var(--white);

  background-color: var(--white-2);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius-6);
  transition: var(--transition-1);
  cursor: pointer;
}

.programme-card .card-icon {
  background-color: var(--primary-color);
  color: var(--white-2);
  font-size: 30px;
  height: 70px;
  min-width: 70px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-4);
  transition: var(--transition-1);
}

.modal-header .programme-card .card-icon{
  height: 80px;
  min-width: 80px;
}

.programme-card .card-title {
    color: var(--title-color); }

.card-title a{
  font-size: initial;
} 

.programme-card .card-meta {
  color: var(--meta-color);
  font-size: var(--fs-7);
  margin-block-start: 5px;
}

 
@media screen and  (width >= 575px) {
  .container {
    max-width: 540px;
    margin-inline: auto;
  }

  .header .container { max-width: unset; }

  .about-banner { position: relative; }
}

@media screen and  (width >= 768px) {
  .container { max-width: 740px; }

  .grid-list { grid-template-columns: 1fr 1fr; }

  .header .container { padding-inline: 30px; }

  .header-actions { gap: 15px; }

  .header-action-btn:not(.login-btn) { padding: 17px; }
 
}

@media screen and  (width >= 992px) {
  .container {
    width: 960px;
}
  .hero { overflow: hidden; }

  .hero .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero .abs-img {
    display: block;
    position: absolute;
  }

  .hero-banner {
    position: relative;
    padding-inline-end: 50px;
    margin-block-start: 180px;
  }

  .hero .abs-img-1 {
    width: 250px;
    right: -100px;
    top: -60px;
  }

  .hero .abs-img-2 {
    top: -180px;
    right: 80px;
  }   
}

@media screen and  (width >= 1200px) {
  .container { max-width: 1180px; }

  .header { padding-block: 20px;
    background-color: #fff; }

  .header.active { padding-block: 20px; }

  .header.header-anim { animation: slide-in 1s ease forwards; }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #00000080; /* Semi-transparent black */
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: #FFF;
  margin: 8% auto;
  padding: 20px;
  border-radius: 10px;
  z-index: 1000;
}

.header-card-secondary {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: url('../solveforx/solveforx-landing-image.png');
  background-clip: border-box; 
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: center;
}

@media (width <= 682px){
  .header-card-secondary
  {
    background-size: cover;
    height: 45vh;
  }
}

.modal-backdrop 
{
z-index: 1040 !important;
}

/* Fix for Bootstrap modal z-index issues */
.modal {
  z-index: 1050 !important;
}

.modal-dialog {
  z-index: 1055 !important;
}

.modal-content {
  z-index: 1055 !important;
}

.btn-primary {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
border-color: transparent;
color: white;
}

 /* Navbar styles */
 .navbar {
  box-shadow: 0 1px 3px rgba(0 0 0 / 5%);
  padding: 10px 0;
}

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

.nav-link {
  font-weight: 500;
  color: var(--secondary-color) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
  font-size: 15px;
}

.dropdown-toggle::after {
  vertical-align: middle;
}

.navbar .btn {
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: 500;
  font-size: 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
}

.btn-sm {
  color: #000;
  border: 1px solid #ccc;
  margin-left: 10px;
}

.btn-signup-hero i {
  margin-left: 8px;
}

.no-credit-text {
  font-size: 0.9rem;
  color: #999;
  margin-top: 15px;
}

/* Responsive adjustments */
@media (width <= 991.98px) {
  .hero h1 {
      font-size: 2.2rem;
  }
  
  .navbar .btn {
      margin: 5px;
  }
}

@media (width <= 767.98px) {
  .hero h1 {
      font-size: 2rem;
  }
  
  .hero .color-text {
      font-size: 2rem;
  }
}

.courses-section {
  background-color: var(--course-bg-lighter);
}

.explore-section {
  padding: 4rem 0;
}

.explore-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--course-text-dark);
}

/* Mobile responsive adjustments */
@media (width <= 991.98px) {
  .hero-section {
      text-align: center;
      padding: 3rem 0;
  }
  
  .hero-content {
      margin: 0 auto 2rem;
  }
  
  .hero-title {
      font-size: 2rem;
  }
}


.footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #000;
  color: white;
  transition: opacity 0.2s;
}

.footer .social-icon svg {
  width: 16px;
  height: 16px;
}

.footer .social-icon:hover {
  opacity: 0.8;
}

.copyright {
  color: var(--course-text-medium);
  font-size: 0.875rem;
}

.rounded-20{
  border-radius: 20px;
}

.rounded-25{
  border-radius: 25px;
}

.get-involved-btn {
  background:var(--btn-purple);
  color: #fff;
  font-weight: 500;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s;
}

.get-involved-btn:hover {
  background-color:var(--secondary-color);
  transform: translateY(-2px);
}


.course-image-container {
  height: 200px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

 .course-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
    display: block;
}

  .card-bg {
    position: relative;
    background-color: #fff;
    min-height: 400px;
    overflow: hidden;
  }
  
  .diagonal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
  }
  
  .diagonal-primary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 88%;
    height: 80%;
    background-color:var(--primary-color);
    clip-path: polygon(100% 30%, 50% 100%, 100% 100%);
  }
  
  .diagonal-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 100%;
    background-color:var(--secondary-color);
    clip-path: polygon(100% 0, 30% 100%, 100% 100%);
  }
  
  .btn-add-cart{
    background-color:var(--secondary-color);
    border: none;
      padding: 10px 24px;
      border-radius: 30px;
      font-weight: 500;
      transition: all 0.3s;
  
  }
  
  .btn-add-cart:hover {
    background-color:var(--primary-color);
    transform: translateY(-2px);
  }
