body {
  margin: 0;
  font-family: 'Source Sans 3', 'Source Sans Pro', Tahoma, Geneva, Verdana, sans-serif;
  background: #f3faff;
  color: #003f63;
  animation: fadeIn 1s ease-in-out;
}

.cambridge-header {
  font-family: Arial, Helvetica, sans-serif;
}

.cb-row {
  padding: 9px 40px;
}

.cb-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

.cb-row-1 {
  background: #ffffff;
  color: #1a1a1a;
  border-bottom: 1px solid #e5e5e5;
}

.cb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cb-crest {
  height: 26px;
  width: auto;
  display: block;
}

.cb-wordmark {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #1a1a1a;
}

.cb-row1-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cb-row1-links .cb-link {
  font-size: 0.82rem;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.cb-chevron {
  font-size: 0.7em;
  line-height: 1;
  transform: translateY(1px);
}

.cb-row1-icons {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #1a1a1a;
  margin-left: 2px;
}

.cb-icon {
  display: block;
}

.cb-row-2 {
  background: #00bdb6;
  padding: 12px 40px;
  color: #1a1a1a;
}

.cb-row-2 .cb-row-inner {
  flex-wrap: wrap;
  gap: 20px;
}

.cb-heading-main {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}

.cb-heading-sub {
  font-size: 0.85rem;
  font-weight: 400;
  margin: 3px 0 0 0;
  color: rgba(26,26,26,0.75);
}

.cb-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  padding: 0 14px;
  height: 34px;
  width: min(340px, 100%);
  flex: 0 0 auto;
}

.cb-search input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  color: #1a1a1a;
  font-family: inherit;
  padding-right: 8px;
}

.cb-search input::placeholder {
  color: #6b6b6b;
}

.cb-search-icon {
  flex: none;
  color: #6b6b6b;
}

.cb-row-3 {
  background: #009b95;
  padding: 6px 40px;
}

.cb-row-3 .cb-row-inner {
  justify-content: flex-start;
  gap: 20px;
}

.cb-tab {
  font-size: 0.82rem;
  color: #1a1a1a;
  white-space: nowrap;
}

.cb-tab-boxed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  padding: 4px 9px;
}

.main-content {
  padding: 40px 5%;
}

.highlight-frame {
  background: white;
  border: 2px solid #0093D0;
  border-radius: 16px;
  padding: 1px 20px 30px 20px; /* top | right | bottom | left */
  margin-bottom: 10px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  animation: fadeInDown 1.2s ease-in-out;
}

.teacher-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.teacher-img {
  width: 180px !important;
  transition: transform 0.6s ease;
}

.teacher-img:hover {
  transform: scale(1.05);
}

.title-block h1 {
  font-size: 2.8rem;
  color: #1f2121;
  margin-bottom: 0.1em;
  animation: slideInRight 1.2s ease;
}

.title-block p {
  font-size: 1.3rem;
  color: #1f2121;
  animation: slideInRight 1.5s ease;
}

.platform-note {
  font-size: 1.1rem;
  margin-top: 0.1em;
  color: #006095;
  font-style: italic;
  animation: slideInRight 1.8s ease;
}

/* Subtle features strip (added) */
.features-strip {
	margin-top: 2em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  opacity: 0.95;
}

.feature-chip {
  position: relative;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  background: #edf6fb;
  border: 1px solid #d8ebf6;
  color: #235b76;
  line-height: 1.2;
  outline: none;
  cursor: default;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.feature-chip:focus,
.feature-chip:hover {
  background: #e9f4fa;
  border-color: #cde6f4;
}

.feature-chip:active {
  transform: scale(0.98);
}

/* Accessible tooltip for full statements */
.feature-chip[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #003f63;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.25;
  width: min(60ch, 320px);
  max-width: 90vw;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.feature-chip[data-tooltip]::before {
  content: "";
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #003f63;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.feature-chip:hover::after,
.feature-chip:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.feature-chip:hover::before,
.feature-chip:focus::before {
  opacity: 1;
}

.second-row {
  display: flex;
  gap: 40px;
}

.left-column {
  flex: 2;
}

.right-column {
  flex: 1;
}

.path-frame, .training-frame {
  border: 2px solid #cceeff;
  border-radius: 12px;

  padding: 1px 1px 1px 1px; /* top | right | bottom | left */
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.section-title {
  font-size: 1.6rem;
  color: #1f2121;
  margin-bottom: 20px;
  font-weight: bold;
  border-bottom: 1px solid #cceeff;
  padding-bottom: 8px;
}

.path-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn.big-btn {
  background: linear-gradient(to right, #00aaff, #0077cc);
  color: white;
  padding: 22px 40px;
  font-size: 1.4rem;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn.big-btn:hover {
  background: #005DAA;
  transform: scale(1.1);
}

.training-img {
  width: 70% !important;
  margin: 10px auto;
  display: block;
}

.training-img:hover {
  transform: scale(1.03);
}

footer {
  background: #005DAA;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

.path-buttons {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.path-buttons a {
  flex: 1;
  margin: 0 0.1%;
}
.path-img {
  width: 100% !important;
}

/* Enhanced ripple button without white frame */
.ripple-button {
  position: relative;
  overflow: hidden;
  flex: 1;
  border-radius: 20px;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  background: transparent !important;
  border: none;
  outline: none;
}

.ripple-button:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  background: transparent !important;
}

.ripple-button:focus {
  outline: none;
  background: transparent !important;
}

.ripple-button:active {
  background: transparent !important;
}

/* Subtle shimmer effect without white frame */
.ripple-button::before {
  content: "";
  position: absolute;
  top: 0; 
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.ripple-button:hover::before {
  left: 125%;
}

.ripple-button img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  border-radius: 20px;
  display: block;
  position: relative;
  z-index: 0;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background-color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 2;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-button:active {
  transform: scale(0.95);
  animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
  0%   { transform: scale(0.95) translateY(0); }
  30%  { transform: scale(1.05) translateY(-5px); }
  60%  { transform: scale(1.02) translateY(2px); }
  100% { transform: scale(1.0) translateY(0); }
}

.training-frame {
  margin-top: 40px;
}

.training-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.training-box {
  width: 70%;
  max-width: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.training-box:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.training-box img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.training-coming-soon {
  position: fixed;
  z-index: 10001;
  padding: 8px 12px;
  border: 1px solid #b9e4f3;
  border-radius: 9px;
  background: #f7fcff;
  color: #005DAA;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 93, 170, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.training-coming-soon.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

h1 {
  color: #007BFF;
}

.double-column {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 0 40px;
  margin-top: 0;
}

.left-column {
  flex: 0 0 65%;
}

.right-column {
  flex: 0 0 35%;
}

.left-column .path-buttons,
.right-column .training-buttons {
  margin-top: 20px;
}

.path-frame, .training-frame {
  margin-top: 0;
}

.highlight-frame {
  margin-bottom: 10px !important;
}

.double-column {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 0 40px;
  margin-top: 0;
}

.path-frame, .training-frame {
  margin: 0;
  padding: 0;
}

footer {
  background-color: #00bdb6;
  color: white;
  text-align: center;
  padding: 20px;
}

.path-frame {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Clean path buttons layout */
.path-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1%;
  margin-top: 20px;
}

.path-frame, .training-frame {
  padding: 20px;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  .cb-row {
    padding: 8px 20px;
  }

  .cb-row-1 .cb-row-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .cb-crest {
    height: 22px;
  }

  .cb-wordmark {
    font-size: 0.9rem;
  }

  .cb-row1-links {
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cb-row1-links .cb-link {
    font-size: 0.75rem;
  }

  .cb-row1-icons {
    gap: 10px;
  }

  .cb-row-2 {
    padding: 10px 20px;
  }

  .cb-row-2 .cb-row-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cb-heading-main {
    font-size: 1.05rem;
  }

  .cb-search {
    width: 100%;
  }

  .cb-row-3 {
    padding: 6px 20px;
  }

  .cb-row-3 .cb-row-inner {
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cb-tab {
    font-size: 0.75rem;
  }

  .main-content {
    padding: 20px 3%;
  }

  .highlight-frame {
    padding: 20px;
    margin-bottom: 20px;
  }

  .teacher-box {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .teacher-img {
    width: 150px !important;
  }

  .title-block h1 {
	  margin-top: 0;
    font-size: 2rem;
  }

  .title-block p {
    font-size: 1.1rem;
  }

  .platform-note {
    font-size: 1rem;
  }

  .features-strip {
    gap: 6px;
  }

  .feature-chip {
    font-size: 0.9rem;
  }

  .double-column {
    flex-direction: column;
    padding: 0 10px;
    gap: 30px;
  }

  .left-column, .right-column {
    flex: none;
    width: 100%;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .path-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .ripple-button {
    width: 100%;
  }

  .training-box {
    width: 90%;
    max-width: none;
  }

  footer {
    padding: 15px;
    font-size: 0.9rem;
  }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
  .cb-row {
    padding: 6px 15px;
  }

  .cb-crest {
    height: 20px;
  }

  .cb-wordmark {
    font-size: 0.8rem;
  }

  .cb-row1-links {
    gap: 10px;
  }

  .cb-row1-links .cb-link {
    font-size: 0.7rem;
  }

  .cb-row1-icons {
    gap: 8px;
  }

  .cb-heading-main {
    font-size: 0.95rem;
  }

  .cb-heading-sub {
    font-size: 0.75rem;
  }

  .cb-row-3 .cb-row-inner {
    gap: 10px;
  }

  .cb-tab {
    font-size: 0.7rem;
  }

  .main-content {
    padding: 15px 2%;
  }

  .highlight-frame {
    padding: 15px;
  }

  .teacher-img {
    width: 120px !important;
  }

  .title-block h1 {
    font-size: 1.6rem;
  }

  .title-block p {
    font-size: 1rem;
  }

  .platform-note {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .path-frame, .training-frame {
    padding: 15px;
  }
}

/* Syllabus Update Badge - Front Layer */
.syllabus-update-badge {
  position: fixed;
  top: 150px;
  right: 0px;
  z-index: 1000;
  width: 225px;
  height: 225px;
}

.syllabus-update-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.syllabus-update-badge:hover img {
  transform: scale(1.1);
}

/* Adjusts size for mobile devices */
@media screen and (max-width: 768px) {
  .syllabus-update-badge {
    top: 208px;
    width: 54px;
    height: 54px;
  }
}

@media screen and (max-width: 480px) {
  .syllabus-update-badge {
    top: 188px;
    width: 45px;
    height: 45px;
  }
}





/* Image-capable popover: single-column, text then image (large) */
.chip-popover {
  position: absolute;
  max-width: 300px;
  background: #ffffff;
  border: 1px solid #d8ebf6;
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.18);
  padding: 14px 16px 16px 16px;
  z-index: 10000;
  transform: translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.chip-popover.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chip-popover::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #d8ebf6;
}
.chip-popover::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #ffffff;
}

.chip-popover-content {
  display: block;
}

.chip-popover-text p {
  margin: 0 0 10px 0;
  font-size: 1rem;
  color: #234b6b;
  line-height: 1.45;
}

.chip-popover-media {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f3faff;
  border: 1px solid #e8f2f9;
}

.chip-popover-media img {
  width: 95%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  display: block;
}

.modern-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #cddbe8, transparent);
  margin: 20px auto;
  width: 100%;
   margin-top: 1.5em;
   margin-bottom: 1.5em;
  max-width: 800px;
}

/* Force tighter spacing above the path and training sections */
.main-content .double-column {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.main-content .path-frame,
.main-content .training-frame {
  margin-top: 5px !important;     /* tiny gap */
  padding-top: 10px !important;   /* small breathing space */
}
.section-title {
  margin-top: 5px !important;
}
