/* Global Styles */
body.cp-page {
  --primary-color: var(--cp-text);
  --secondary-color: var(--cp-blue);
  --accent-color: var(--cp-blue);
  --light-color: #ecf0f1;
  --dark-color: var(--cp-text);
  --text-color: #333;
  --text-light: #7f8c8d;
}

#cp-content * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.cp-page {
  font-family: var(--cp-font);
  line-height: 1.6;
  color: var(--text-color);
}

#cp-content .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

#cp-content h1, #cp-content h2, #cp-content h3, #cp-content h4, #cp-content h5, #cp-content h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

#cp-content p {
  margin-bottom: 1rem;
}

#cp-content .btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

#cp-content .btn-primary {
  background-color: var(--secondary-color);
  color: white;
}

#cp-content .btn-primary:hover {
  background-color: var(--cp-blue-hover);
  transform: translateY(-2px);
}

/* Navigation */
#cp-content .navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

#cp-content .navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

#cp-content .logo img {
  height: 40px;
}

#cp-content .nav-links {
  display: flex;
  align-items: center;
}

#cp-content .nav-links a {
  margin-left: 20px;
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 600;
}

#cp-content .nav-links a:hover {
  color: var(--secondary-color);
}

/* Hamburger Menu Button */
#cp-content .menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

#cp-content .menu-toggle span {
  display: block;
  height: 3px;
  background: var(--dark-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section */
#cp-content .hero {
  background: linear-gradient(rgba(15, 45, 92, 0.8), rgba(15, 45, 92, 0.8)), 
              url('images/hero.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  padding: 180px 0 140px; /* extra bottom padding for the boxes */
  text-align: center;
  position: relative;
}

#cp-content .hero-features {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: absolute;
  bottom: -60px; /* pulls boxes into overlap position */
  left: 0;
  right: 0;
  flex-wrap: wrap;
}

#cp-content .feature-box {
  background: white;
  color: var(--cp-text);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  width: 250px;
  text-align: center;
}

#cp-content .feature-box h3 {
  color: var(--cp-blue-hover); /* new accent color */
  margin-bottom: 10px;
}

#cp-content .feature-box p {
  font-size: 0.95rem;
}

/* Mobile Fix */
@media (max-width: 768px) {
  #cp-content .hero {
    padding: 120px 20px 60px; /* reduce padding on mobile */
  }

  #cp-content .hero-features {
    position: relative;   /* no overlap */
    bottom: 0;
    margin-top: 40px;     /* spacing below hero */
    flex-direction: column;
    align-items: center;
  }

  #cp-content .feature-box {
    width: 100%;
    max-width: 300px; /* prevents too wide on large phones */
  }
}




/* Footer */
#cp-content .footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 0;
}

#cp-content .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

#cp-content .footer-about img {
  height: 40px;
  margin-bottom: 20px;
}

#cp-content .footer-links h3,
#cp-content .footer-contact h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

#cp-content .footer-links ul {
  list-style: none;
}

#cp-content .footer-links li {
  margin-bottom: 10px;
}

#cp-content .footer-links a {
  color: var(--light-color);
  text-decoration: none;
}

#cp-content .footer-links a:hover {
  color: white;
}

#cp-content .footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

#cp-content .footer-contact i {
  margin-right: 10px;
  color: var(--accent-color);
}

#cp-content .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#cp-content .social-links a {
  color: white;
  margin-left: 15px;
  font-size: 1.2rem;
}

#cp-content .social-links a:hover {
  color: var(--accent-color);
}

/* Mobile Menu Animation */
#cp-content .menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#cp-content .menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

#cp-content .menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  #cp-content .menu-toggle {
    display: flex;
  }
  #cp-content .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    position: absolute;
    top: 60px;
    right: 0;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
  }
  #cp-content .nav-links.active {
    display: flex;
    max-height: 500px;
    opacity: 1;
  }
  #cp-content .hero {
    padding: 150px 0 80px;
  }
  #cp-content .hero h1 {
    font-size: 2rem;
  }
  #cp-content .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  #cp-content .social-links {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  #cp-content .hero {
    padding: 120px 0 60px;
  }
  #cp-content .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Courses Section */
#cp-content .courses {
  padding: 100px 0;
  background: #f9f9f9;
}

#cp-content .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  color: var(--primary-color);
}

#cp-content .course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

#cp-content .course-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cp-content .course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

#cp-content .course-card h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

#cp-content .course-card .tagline {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

#cp-content .course-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

#cp-content .course-meta {
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
}

#cp-content .course-meta li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-color);
}

#cp-content .course-meta i {
  color: var(--accent-color);
  margin-right: 8px;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  #cp-content .course-grid {
    grid-template-columns: 1fr; /* stack on small screens */
  }
}


    /* Modern, Clean UI with Brand Colors */
    body.cp-page {
      --primary: #1a2b3c;         /* Darker navy blue */
      --primary-light: var(--cp-text);   /* Original primary */
      --secondary: var(--cp-blue-hover);        /* Darker red */
      --secondary-light: var(--cp-blue);  /* Original secondary */
      --accent: var(--cp-blue-hover);           /* Slightly darker blue */
      --accent-light: var(--cp-blue);     /* Original accent */
      --light: #f8f9fa;            /* Very light gray */
      --light-gray: #ecf0f1;       /* Original light */
      --dark: #121a22;             /* Darker than primary */
      --text: #2d3436;            /* Dark gray for text */
      --text-light: #636e72;       /* Lighter gray */
      --border: #dfe6e9;          /* Very light border */
      --divider: #e0e0e0;         /* New divider color */
      --icon-color: var(--cp-blue-hover);      /* Specific icon color matching brand blue */
    }

    /* Base Styles */
    #cp-content * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body.cp-page {
      font-family: var(--cp-font);
      line-height: 1.6;
      color: var(--text);
      background-color: white;
      -webkit-font-smoothing: antialiased;
    }

    @media (max-width: 768px) {
      body.cp-page {
        font-size: 15px;
      }
    }

    #cp-content .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    #cp-content h1, #cp-content h2, #cp-content h3, #cp-content h4, #cp-content h5, #cp-content h6 {
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 1rem;
      color: var(--primary);
    }

    #cp-content h1 { font-size: 2.5rem; }
    #cp-content h2 { font-size: 2rem; }
    #cp-content h3 { font-size: 1.5rem; }

    #cp-content p {
      margin-bottom: 1rem;
      color: var(--text);
    }

    #cp-content a {
      text-decoration: none;
      color: var(--accent);
      transition: all 0.2s ease;
    }

    #cp-content a:hover {
      color: var(--secondary);
    }

    #cp-content img {
      max-width: 100%;
      height: auto;
    }

    /* Buttons */
    #cp-content .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 20px;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      border: none;
      font-size: 0.95rem;
    }

    #cp-content .btn-primary {
      background-color: var(--secondary);
      color: white;
    }

    #cp-content .btn-primary:hover {
      background-color: var(--secondary-light);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    }

    /* Navigation */
    #cp-content .navbar {
      background-color: white;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
      position: fixed;
      width: 100%;
      top: 0;
      z-index: 1000;
      padding: 16px 0;
      border-bottom: 1px solid var(--border);
    }

    #cp-content .navbar .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    #cp-content .logo img {
      height: 40px;
    }

    #cp-content .nav-links {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    #cp-content .nav-links a {
      color: var(--primary);
      font-weight: 500;
      padding: 8px 0;
      position: relative;
    }

    #cp-content .nav-links a:not(.btn-primary):hover {
      color: var(--secondary);
    }

    #cp-content .nav-links a:not(.btn-primary)::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background-color: var(--secondary);
      transition: width 0.3s ease;
    }

    #cp-content .nav-links a:not(.btn-primary):hover::after {
      width: 100%;
    }

    /* Mobile Menu */
    #cp-content .menu-toggle {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 28px;
      height: 20px;
      cursor: pointer;
      z-index: 1001;
    }

    #cp-content .menu-toggle span {
      display: block;
      height: 3px;
      width: 100%;
      background: var(--primary);
      border-radius: 2px;
      transition: all 0.3s ease;
    }

    #cp-content .menu-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }

    #cp-content .menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }

    #cp-content .menu-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero Section */
#cp-content .hero {
  background: url('./images') no-repeat center center fixed, 
              linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  background-size: cover;
  color: white;
  padding: 160px 0 120px;
  text-align: center;
  margin-top: 72px; /* navbar height */
}

#cp-content .hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

#cp-content .hero .subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

    /* Courses Section */
    #cp-content .courses {
      padding: 80px 0;
      background-color: var(--light);
    }

    #cp-content .section-title {
      text-align: center;
      margin-bottom: 1rem;
      position: relative;
    }

    #cp-content .section-title::after {
      content: '';
      display: block;
      width: 60px;
      height: 4px;
      background: var(--secondary);
      margin: 15px auto 0;
      border-radius: 2px;
    }

    #cp-content .section-subtitle {
      text-align: center;
      color: var(--text-light);
      margin-bottom: 40px;
      font-size: 1rem;
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
    }

    #cp-content .course-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 25px;
    }

    #cp-content .course-card {
      background: white;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      border: 1px solid var(--border);
    }

    #cp-content .course-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
      border-color: rgba(37, 99, 235, 0.2);
    }

    #cp-content .course-content {
      padding: 20px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    #cp-content .course-card h3 {
      color: var(--secondary);
      margin-bottom: 10px;
      font-size: 1.3rem;
      position: relative;
      padding-bottom: 10px;
    }

    #cp-content .course-card h3::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 35px;
      height: 3px;
      background-color: var(--accent);
      border-radius: 2px;
    }

    #cp-content .course-card .tagline {
      font-style: italic;
      font-size: 0.9rem;
      color: var(--text-light);
      margin-bottom: 12px;
      line-height: 1.4;
    }

    #cp-content .course-card p {
      font-size: 0.9rem;
      margin-bottom: 15px;
      line-height: 1.5;
      flex: 1;
      color: var(--text);
      padding-bottom: 15px;
      border-bottom: 1px solid var(--divider);
    }

    #cp-content .course-meta {
      list-style: none;
      margin-bottom: 15px;
      padding: 0;
    }

    #cp-content .course-meta li {
      margin-bottom: 8px;
      display: flex;
      align-items: flex-start;
      font-size: 0.85rem;
      color: var(--text);
      line-height: 1.4;
      padding: 6px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    #cp-content .course-meta li:last-child {
      border-bottom: none;
    }

    #cp-content .course-meta i {
      color: var(--icon-color);
      margin-right: 8px;
      margin-top: 2px;
      flex-shrink: 0;
      width: 16px;
      text-align: center;
      font-size: 0.9rem;
    }

    #cp-content .course-card .btn {
      align-self: flex-start;
      margin-top: 10px;
    }

    #cp-content .certification-badge {
      background: var(--primary);
      color: white;
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 0.7rem;
      font-weight: 600;
      display: inline-block;
      margin-bottom: 12px;
      letter-spacing: 0.5px;
    }

    /* Footer */
    #cp-content .footer {
      background-color: var(--primary);
      color: white;
      padding: 60px 0 0;
    }

    #cp-content .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 30px;
      margin-bottom: 40px;
    }

    #cp-content .footer-about img {
      height: 36px;
      margin-bottom: 16px;
    }

    #cp-content .footer-about p {
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.9rem;
      line-height: 1.5;
    }

    #cp-content .footer-links h3,
    #cp-content .footer-contact h3 {
      margin-bottom: 16px;
      font-size: 1.1rem;
      color: white;
      position: relative;
      padding-bottom: 8px;
    }

    #cp-content .footer-links h3::after,
    #cp-content .footer-contact h3::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 35px;
      height: 2px;
      background-color: var(--accent);
    }

    #cp-content .footer-links ul {
      list-style: none;
    }

    #cp-content .footer-links li {
      margin-bottom: 10px;
    }

    #cp-content .footer-links a {
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.9rem;
      transition: all 0.2s ease;
    }

    #cp-content .footer-links a:hover {
      color: white;
      padding-left: 5px;
    }

    #cp-content .footer-contact p {
      margin-bottom: 12px;
      display: flex;
      align-items: flex-start;
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.9rem;
      line-height: 1.5;
    }

    #cp-content .footer-contact i {
      margin-right: 10px;
      color: var(--accent-light);
      min-width: 16px;
      text-align: center;
      font-size: 0.9rem;
    }

    #cp-content .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding: 20px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    #cp-content .footer-bottom p {
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.85rem;
    }

    #cp-content .social-links {
      display: flex;
      gap: 14px;
    }

    #cp-content .social-links a {
      color: white;
      font-size: 1rem;
      transition: all 0.2s ease;
    }

    #cp-content .social-links a:hover {
      color: var(--accent-light);
      transform: translateY(-2px);
    }

    /* Responsive Styles */
    @media (max-width: 1024px) {
      #cp-content .container {
        padding: 0 20px;
      }
      
      #cp-content .hero {
        padding: 140px 0 100px;
      }
      
      #cp-content h1 {
        font-size: 2.25rem;
      }
    }

    @media (max-width: 768px) {
      #cp-content .menu-toggle {
        display: flex;
      }
      
      #cp-content .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 16px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
      }
      
      #cp-content .nav-links.active {
        transform: translateY(0);
      }
      
      #cp-content .nav-links a {
        padding: 10px 0;
      }
      
      #cp-content .hero {
        padding: 120px 0 80px;
      }
      
      #cp-content .hero h1 {
        font-size: 2rem;
      }
      
      #cp-content .hero .subtitle {
        font-size: 1rem;
      }
      
      #cp-content .section-title {
        font-size: 1.75rem;
      }
      
      #cp-content .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
      }
    }

    @media (max-width: 480px) {
      #cp-content .container {
        padding: 0 16px;
      }
      
      #cp-content .hero {
        padding: 100px 0 60px;
      }
      
      #cp-content .hero h1 {
        font-size: 1.75rem;
      }
      
      #cp-content .btn {
        padding: 8px 16px;
      }
      
      #cp-content .course-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
    }
  