
/*  INTRO BANNER*/
.guidelines-intro-card {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1c1c1c 100%);
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.guidelines-intro-card::after {
  content: '\f5d0';
  font-family: 'Bootstrap Icons', sans-serif;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
}

.guidelines-intro-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.guidelines-intro-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
  margin: 0;
  max-width: 620px;
}


/* TABLE OF CONTENTS */
.gl-toc {
  background: var(--white);
  border: 1px solid var(--portal-border);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.gl-toc-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gl-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gl-toc ul li {
  margin-bottom: 0.4rem;
}

.gl-toc ul li a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--neutral-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.gl-toc ul li a::before {
  content: '›';
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.gl-toc ul li a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

/* Active TOC link (set by scroll-spy in guidelines.js) */
.gl-toc ul li a.toc-active {
  color: var(--primary-color);
  font-weight: 600;
}


/* GUIDELINE ITEMS  */
.gl-item {
  display: flex;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid #f0ede8;
}

.gl-item:last-child  { border-bottom: none; padding-bottom: 0; }
.gl-item:first-child { padding-top: 0; }

.gl-item-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.gl-item-content h6 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.28rem;
}

.gl-item-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}


/* ACKNOWLEDGEMENT BLOCK */
.gl-acknowledgement-field {
  background: var(--neutral-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  border: 1px solid #e0ddd8;
}

.gl-acknowledgement-field .field-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neutral-mid);
  margin-bottom: 0.25rem;
}

.gl-acknowledgement-field .field-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}

.gl-acknowledgement-field.status-field {
  background: var(--primary-extra-light);
  border-color: rgba(186, 12, 47, 0.25);
}

.gl-acknowledgement-field.status-field .field-label {
  color: var(--primary-color);
}

.gl-acknowledgement-field.status-field .field-value {
  font-size: 0.88rem;
  color: var(--primary-color);
}

/* Red gradient header for acknowledgement section */
.gl-section-card .gl-section-header.header-red {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8a0921 100%);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.gl-section-card .gl-section-header.header-red .gl-section-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}


/* SIDEBAR SUBMENU
   Content › Projects / Assessments / Audios / Games */
.sidebar-nav-item.has-submenu {
  cursor: pointer;
}

/* Chevron arrow icon */
.submenu-arrow {
  font-size: 0.68rem !important;
  width: auto !important;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  color: var(--neutral-mid);
}

.submenu-arrow.open {
  transform: rotate(180deg);
  color: var(--primary-color);
}

/* Collapsible submenu container */
.sidebar-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
  opacity: 0;
  background: rgba(0, 0, 0, 0.02);
  border-left: 2px solid var(--primary-extra-light);
}

.sidebar-submenu.open {
  max-height: 300px;
  opacity: 1;
}

/* Individual submenu link */
.sidebar-sub-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.35rem 0.6rem 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--neutral-dark);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
}

.sidebar-sub-item i {
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  color: var(--neutral-mid);
}

.sidebar-sub-item:hover {
  color: var(--primary-color);
  background: var(--sidebar-hover-bg);
  border-left-color: var(--primary-extra-light);
}

.sidebar-sub-item:hover i {
  color: var(--primary-color);
}

.sidebar-sub-item.active {
  color: var(--primary-color);
  background: var(--sidebar-active-bg);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

.sidebar-sub-item.active i {
  color: var(--primary-color);
}

/* Parent item highlighted when submenu is open */
.sidebar-nav-item.has-submenu.submenu-open {
  color: var(--primary-color);
  background: var(--sidebar-hover-bg);
  border-left-color: var(--primary-color);
}


/* GUIDELINES RESPONSIVE */
@media (max-width: 767.98px) {
  .guidelines-intro-card { padding: 1.5rem 1.25rem; }
  .gl-toc                { padding: 1rem 1.1rem; }
  .gl-section-body       { padding: 1.1rem; }
}