.nice-select {
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
  border-radius: 5px;
  border: solid 1px #3f3877;
  box-sizing: border-box;
  clear: both;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 18px;
  font-weight: normal;
  outline: none;
 padding: 14px 35px 14px 15px;
  position: relative;
  text-align: left !important;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  white-space: nowrap;
  width: 100%;
 }
  .nice-select:hover {
    border-color: #3f3877; }
  .nice-select:active, .nice-select.open, .nice-select:focus {
    border-color: #3f3877; }
  .nice-select:after {
    border-bottom: 2px solid #7b7c98;
    border-right: 2px solid #7b7c98;
    content: '';
    display: block;
    height: 12px;
    margin-top: -6px;
    pointer-events: none;
    position: absolute;
    right: 14px;
    top: 50%;
    -webkit-transform-origin: 66% 66%;
        -ms-transform-origin: 66% 66%;
            transform-origin: 66% 66%;
    -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
            transform: rotate(45deg);
    -webkit-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
    width: 12px; }
  .nice-select.open:after {
    -webkit-transform: rotate(-135deg);
        -ms-transform: rotate(-135deg);
            transform: rotate(-135deg); }
  .nice-select.open .list {
    opacity: 1;
    display: block;
    pointer-events: auto;
    -webkit-transform: scale(1) translateY(0);
        -ms-transform: scale(1) translateY(0);
            transform: scale(1) translateY(0); }
  .nice-select.disabled {
    border-color: #3f3877;
    color: #3f3877;
    pointer-events: none; }
    .nice-select.disabled:after {
      border-color: #3f3877; }
  .nice-select.wide {
    width: 100%; }
    .nice-select.wide .list {
      left: 0 !important;
      right: 0 !important; }
  .nice-select.right {
    float: right; }
    .nice-select.right .list {
      left: auto;
      right: 0; }
  .nice-select.small {
    font-size: 12px;
    height: 36px;
    line-height: 34px; }
    .nice-select.small:after {
      height: 4px;
      width: 4px; }
    .nice-select.small .option {
      line-height: 34px;
      min-height: 34px; }
  .nice-select .list {
    background-color: #150145;
    border-radius: 5px;
    box-sizing: border-box;
    margin-top: 4px;
    opacity: 0;
    width: 160px;
    display: none;
    overflow: hidden;
    padding: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    -webkit-transform-origin: 50% 0;
        -ms-transform-origin: 50% 0;
            transform-origin: 50% 0;
    -webkit-transform: scale(0.75) translateY(-21px);
        -ms-transform: scale(0.75) translateY(-21px);
            transform: scale(0.75) translateY(-21px);
    -webkit-transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    z-index: 9;
    margin-bottom: 4px;
    
   }
   .nice-select .list li:not(:last-child){
      margin-right: 0 !important;
   }   
  .nice-select .option {
    cursor: pointer;
    font-weight: 400;
    line-height: 40px;
    list-style: none;
    min-height: 40px;
    outline: none;
    z-index: 9999999;
    padding: 0px 10px;
    border: 1px solid #121254;
    text-align: left;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
   }
    .nice-select .option:hover, .nice-select .option.focus, .nice-select .option.selected.focus {
      background-color: #101046; }
    .nice-select .option.selected {
      font-weight: bold; }
    .nice-select .option.disabled {
      background-color: transparent;
      color: #999;
      cursor: default;
     }

.no-csspointerevents .nice-select .list {
  display: none; }

.no-csspointerevents .nice-select.open .list {
  display: block; }



   /* * COMPONENT STYLES
     * All styles are scoped under #grcp-syllabus-widget to prevent conflicts.
     */
     
    #grcp-syllabus-widget {
      /* --- CSS Variables --- */
      --grcp-font: 'Inter', sans-serif;
      --grcp-bg-body: #f8fafc; /* slate-50 */
      --grcp-bg-white: #ffffff;
      --grcp-text-main: #0f172a; /* slate-900 */
      --grcp-text-muted: #475569; /* slate-600 */
      --grcp-text-light: #94a3b8; /* slate-400 */
      --grcp-border: #f1f5f9; /* slate-100 */
      --grcp-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      
      --grcp-brand-dark: #08002C;
      --grcp-brand-mid: #040218;
      --grcp-brand-accent: #C2BEF7;
      
      --grcp-primary: #10b981; /* emerald-500 */
      --grcp-primary-hover: #059669; /* emerald-600 */
      
      /* Base Reset for Component */
      font-family: var(--grcp-font);
      background-color: var(--grcp-bg-body);
      color: var(--grcp-text-main);
      box-sizing: border-box;
      width: 100%;
      padding: 60px 20px;
    }

    #grcp-syllabus-widget * {
      box-sizing: border-box;
    }

    /* --- Layout --- */
    .grcp-header {
      max-width: 800px;
      margin: 0 auto 50px auto;
      text-align: center;
    }

    .grcp-badge {
      display: inline-block;
      background-color: var(--grcp-bg-white);
      color: #334155; /* slate-700 */
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 4px 12px;
      border-radius: 999px;
      border: 1px solid #e2e8f0; /* slate-200 */
      margin-bottom: 16px;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }

    .grcp-title {
      font-size: 36px; /* md:text-5xl approx */
      font-weight: 700;
      margin: 0 0 16px 0;
      line-height: 1.1;
      letter-spacing: -0.025em;
    }

    .grcp-subtitle {
      font-size: 18px;
      color: var(--grcp-text-muted);
      line-height: 1.6;
      margin: 0;
    }

    /* --- Main Card --- */
    .grcp-card-container {
      max-width: 1150px;
      margin: 0 auto;
    }

    .grcp-card {
      background-color: var(--grcp-bg-white);
      border-radius: 22px;
      box-shadow: var(--grcp-shadow);
      border: 1px solid var(--grcp-border);
      overflow: hidden;
      display: flex;
      flex-direction: column; /* Mobile first */
      height: 80vh; /* Fixed height for scroll */
      min-height: 500px;
      max-height: 800px;
    }

    /* --- Sidebar --- */
    .grcp-sidebar {
      width: 100%;
      background: linear-gradient(to bottom, var(--grcp-brand-dark), var(--grcp-brand-mid));
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
      z-index: 10;
    }

    .grcp-sidebar-header {
      padding: 24px 24px 8px 24px;
      display: none; /* Hidden on mobile by default to save space */
    }

    .grcp-sidebar-title {
      font-size: 12px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin: 0;
    }

    .grcp-nav-container {
      display: flex;
      overflow-x: auto; /* Horizontal scroll on mobile */
      padding: 16px;
      gap: 12px;
      /* scrollbar-width: none; Firefox */
    }
 @media (min-width: 768px) {
  /* Scrollbar track */
  .grcp-nav-container::-webkit-scrollbar {
    width: 8px;                 /* thickness */
  }

  .grcp-nav-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08); /* subtle track */
    border-radius: 15px;
  }

  /* Scrollbar thumb (the yellow part) */
  .grcp-nav-container::-webkit-scrollbar-thumb {
    background: linear-gradient(
      180deg,
      #FFD400,
      #F5B800
    );
    border-radius: 10px;
    border: 3px solid transparent; /* creates spacing */
    background-clip: padding-box;
  }

  /* Hover effect */
  .grcp-nav-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
      180deg,
      #FFE066,
      #F5C400
    );
  }

  /* Firefox support */
  .grcp-nav-container {
    scrollbar-width: thin;
    scrollbar-color: #F5B800 rgba(255, 255, 255, 0.08);
  }
}



    .grcp-nav-btn {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.7);
      padding: 12px 20px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 500;
      white-space: nowrap;
      cursor: pointer;
      transition: all 0.3s ease;
      font-family: var(--grcp-font);
      text-align: left;
    }

    .grcp-nav-btn:hover {
      background: rgba(14, 18, 72, 1);
      color: #fff;
      border-color: rgba(255, 255, 255, 0.2);
      transform: translateY(-2px);
    }

    .grcp-nav-btn.active {
      background: #fff;
      color: var(--grcp-brand-dark);
      border-color: transparent;
      font-weight: 700;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      transform: scale(1.02);
    }

    /* --- Content Area --- */
    .grcp-content-wrapper {
      flex: 1;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      background-color: var(--grcp-bg-white);
    }

    .grcp-scroll-area {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
    }

    /* Custom Scrollbar for Content */
    .grcp-scroll-area::-webkit-scrollbar {
      width: 6px;
    }
    .grcp-scroll-area::-webkit-scrollbar-track {
      background: transparent;
    }
    .grcp-scroll-area::-webkit-scrollbar-thumb {
      background-color: #cbd5e1;
      border-radius: 20px;
    }
    .grcp-scroll-area::-webkit-scrollbar-thumb:hover {
      background-color: #94a3b8;
    }

    /* --- Footer --- */
    .grcp-footer {
      border-top: 1px solid var(--grcp-border);
      background-color: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      padding: 16px 24px;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 20;
    }

    .grcp-btn-primary {
      width: 100%;
      background: linear-gradient(to right, var(--grcp-primary), var(--grcp-primary-hover));
      color: white;
      border: none;
      padding: 12px 32px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
      transition: transform 0.2s, box-shadow 0.2s;
      font-family: var(--grcp-font);
    }

    .grcp-btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
    }
    .grcp-btn-primary:active {
      transform: scale(0.98);
    }

    /* --- Content Typography & Elements --- */
    .grcp-module-tag {
      background-color: var(--grcp-brand-accent);
      color: var(--grcp-brand-dark);
      font-size: 12px;
      font-weight: 700;
      padding: 4px 8px;
      border-radius: 4px;
      display: inline-block;
      margin-bottom: 16px;
    }

    .grcp-content-heading {
      font-size: 24px;
      font-weight: 700;
      color: #1e293b; /* slate-800 */
      margin: 0 0 16px 0;
      line-height: 1.2;
    }

    .grcp-content-desc {
      color: var(--grcp-text-muted);
      font-size: 16px;
      line-height: 1.6;
      margin-bottom: 32px;
    }

    .grcp-learn-box {
      background-color: #f8fafc; /* slate-50 */
      border: 1px solid var(--grcp-border);
      border-radius: 16px;
      padding: 24px;
    }

    .grcp-learn-title {
      font-size: 12px;
      font-weight: 600;
      color: #64748b; /* slate-500 */
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin: 0 0 16px 0;
    }

    .grcp-skills-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .grcp-skill-item {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
      font-weight: 500;
      color: #334155; /* slate-700 */
    }

    .grcp-check-icon {
      width: 20px;
      height: 20px;
      color: var(--grcp-primary);
      flex-shrink: 0;
    }

    /* --- Animations --- */
    @keyframes grcpFadeInUp {
      from { opacity: 0; transform: translateY(15px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes grcpSlideRight {
      from { opacity: 0; transform: translateX(-10px); }
      to { opacity: 1; transform: translateX(0); }
    }

    .grcp-animate-enter {
      animation: grcpFadeInUp 0.5s ease-out forwards;
    }

    .grcp-stagger-item {
      opacity: 0;
      animation: grcpSlideRight 0.4s ease-out forwards;
    }
    /* Simple stagger delays */
    .grcp-stagger-item:nth-child(1) { animation-delay: 0.10s; }
    .grcp-stagger-item:nth-child(2) { animation-delay: 0.15s; }
    .grcp-stagger-item:nth-child(3) { animation-delay: 0.20s; }
    .grcp-stagger-item:nth-child(4) { animation-delay: 0.25s; }
    .grcp-stagger-item:nth-child(5) { animation-delay: 0.30s; }
    .grcp-stagger-item:nth-child(6) { animation-delay: 0.35s; }

    /* --- Desktop Responsive --- */
    @media (min-width: 768px) {
      .grcp-title { font-size: 48px; }
      .grcp-card { flex-direction: row; height: 600px; }
      
      .grcp-sidebar {
        width: 288px; /* w-72 */
        flex-direction: column;
      }
      .grcp-sidebar-header { display: block; }
      
      .grcp-nav-container {
        flex-direction: column;
        overflow-y: auto;
        padding: 24px;
        padding-top: 8px;
        flex: 1;
      }
      
      
      .grcp-nav-btn:hover {
        transform: translateX(4px); /* Horizontal move on desktop */
      }
      
      .grcp-nav-btn.active {
        transform: scale(1.02) translateX(4px);
      }

      .grcp-scroll-area { padding: 40px; }
      .grcp-content-heading { font-size: 30px; }
      .grcp-content-desc { font-size: 18px; }
      
      .grcp-skills-grid { grid-template-columns: 1fr 1fr; }
      
      .grcp-btn-primary { width: auto; }
    }
