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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  background: url(https://learningexperience.korunet.co.nz/academyoflearning/Portal/images/header+images/idea1.png) center/cover fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 40px 60px 40px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.container.page-leadership {
  padding-top: 20px;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-top: 40px;
}

.module-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.modules-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.module-tile.full-width {
  grid-column: 1 / -1;
  max-width: none;
  width: 100%;
}

.card-content {
  background-color: rgba(255, 255, 255, 0.197);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.button-wrapper {
  display: flex;
  justify-content: left;
  margin-top: 20px;
  padding-top: 20px;equipment exam for fleet refresher 
  padding-bottom: 5px;
}

.read-more-btn {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  color: rgb(0, 0, 0);
  border: none;
  padding: 12px 30px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(145, 140, 207, 0.4);
}

.read-more-btn::after {
  content: '→';
  font-size: 18px;
  font-weight: bold;
}

.module-tile {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 0px solid #000000;
  width: 100%;
  max-width: none;
  height: 240px;
  display: flex;
  flex-direction: column;
  padding: 14px 30px 30px 30px;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  will-change: transform, box-shadow;
}

.module-tile > * {
  position: relative;
  z-index: 1;
}



.module-tile:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25) !important;
}

.module-tile:active {
  transform: translateY(-5px) scale(0.98) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
}

.module-header {
  display: flex;
  flex-direction: column;   /* <-- title goes under the number */
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 15px;
}


.module-number {
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, #1e293b, #1e293b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  align-items: center;
  line-height: 1;
  margin-bottom: 0;
}

.module-title {
  font-size: 20px;
  font-weight: 650;
  color: #1e293b;
  align-items: center;
  margin-bottom: 0;
  line-height: 1.3;
}

.module-description {
  font-size: 14px;
  color: #303743;
  line-height: 1.5;
  margin-bottom: 20px;
}

.module-welcome {
  font-size: 20px;
  font-weight: 650;
  color: #ffffff;
  align-items: center;
  margin-bottom: 0;
  line-height: 1.3;
}

.module-subtitle {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 20px;
}

.module-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-top: auto;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.side-panel {
  position: fixed;
  right: -750px;
  top: 0;
  width: 750px;
  height: 100vh;
  background: white;
  box-shadow: -10px 0 50px rgba(0,0,0,0.3);
  z-index: 102;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.side-panel.active {
  right: 0;
}

.panel-header {
 background: linear-gradient(135deg, #7874b4, #918ccf); 
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow: hidden;
  color: white;
  padding: 40px;
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  min-height: 100px;
}


.panel-header.module-1 {
 background: linear-gradient(135deg, #7874b4, #918ccf);  background-size: cover;
  background-position: top center;
  background-attachment: scroll;
  background-repeat: no-repeat;
}

.panel-header.module-2 {
 background: linear-gradient(135deg, #7874b4, #918ccf);  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  background-repeat: no-repeat;
}

.panel-header.module-3 {
 background: linear-gradient(135deg, #7874b4, #918ccf);  background-size: cover;
  background-position: top center;
  background-attachment: scroll;
  background-repeat: no-repeat;
}

.panel-header.module-4 {
 background: linear-gradient(135deg, #7874b4, #918ccf);  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  background-repeat: no-repeat;
}

.panel-module-number {
  display: none;
}

.panel-title {
  font-size: 28px;
  font-weight: 700;
  margin-top: 10px;
}

.panel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.panel-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.panel-content {
  padding: 40px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: opacity 0.25s ease;
  opacity: 1;
  transform: scale(1);
}

.day-header {
  background: white;
  color: #4a5568;
  padding: 16px 20px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  user-select: none;
  margin: 0;
  border-radius: 0;
}

.day-header:hover {
  background: #f8f9fa;
}

.day-title {
  flex: 1;
  text-align: left;
}

.toggle-btn {
  width: 28px;
  height: 28px;
  background: #7874b4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.toggle-btn::before {
  content: "";
  width: 20px;
  height: 20px;
  display: inline-block;
  background: url(http://learningexperience.korunet.co.nz/academyoflearning/Portal/extimages/chevron_forward.svg) no-repeat center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.accordion-item.active .toggle-btn::before {
  transform: rotate(90deg);
}

.day-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  background: #fafbfc;
}

.day-content.active {
  max-height: 2000px;
}

.day-content-inner {
  padding: 20px;
}

.day-content .activity-item {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  animation: none;
  opacity: 1;
}

.day-content .activity-item:last-child {
  margin-bottom: 0;
}

.day-content .activity-item:hover {
  border-color: #7874b4;
  background: #f8f9fa;
  transform: translateX(3px);
}

.activity-list > .activity-item {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.activity-list > .activity-item:hover {
  border-color: #7874b4;
  background: #f3f2ff;
  transform: translateX(5px);
}

.activity-info {
  flex: 1;
}

.activity-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 15px;
  margin-bottom: 5px;
}

.activity-meta {
  font-size: 13px;
  color: #718096;
}

.activity-btn {
  background: linear-gradient(135deg, #7874b4, #918ccf);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.activity-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(120, 116, 180, 0.4);
}

.message-tab {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.message-text {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
}

.day-section-header {
  background: linear-gradient(90deg, #7874b4, #918ccf);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 20px;
  margin-bottom: 12px;
}

.day-section-header:first-child {
  margin-top: 0;
}

.footer {
  background: #1a1a1a;
  color: #999;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  border-top: 1px;
}

.footer-text {
  margin: 0;
  letter-spacing: 0.3px;
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from { 
    opacity: 0; 
    transform: translateY(10px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

.module-tile.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.module-tile.animate-in:nth-child(1) { animation-delay: 0.1s; }
.module-tile.animate-in:nth-child(2) { animation-delay: 0.2s; }
.module-tile.animate-in:nth-child(3) { animation-delay: 0.3s; }
.module-tile.animate-in:nth-child(4) { animation-delay: 0.4s; }
.module-tile.animate-in:nth-child(5) { animation-delay: 0.5s; }

.activity-list > .activity-item {
  animation: slideIn 0.4s ease forwards;
  opacity: 0;
}

.activity-list > .activity-item:nth-child(1) { animation-delay: 0.05s; }
.activity-list > .activity-item:nth-child(2) { animation-delay: 0.1s; }
.activity-list > .activity-item:nth-child(3) { animation-delay: 0.15s; }
.activity-list > .activity-item:nth-child(4) { animation-delay: 0.20s; }
.activity-list > .activity-item:nth-child(5) { animation-delay: 0.25s; }

/* ===== SFA image tile text layout ===== */

.contentItemText {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;

  display: flex;
  flex-direction: column; /* puts title under number */
}

.contentItemNumber {
  line-height: 1;
}

.contentItemTitle {
  font-size: 16px;
}


@media (max-width: 1400px) {
  .main-grid { 
    grid-template-columns: 1fr 2fr;
  }
  .modules-right {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .main-grid { 
    grid-template-columns: 1fr;
  }
  .modules-right {
    grid-template-columns: repeat(2, 1fr);
  }
  .container { 
    height: auto; 
    min-height: 100vh;
  }
  .container.page-leadership { 
    padding-top: 40px;
  }
}

@media (max-width: 640px) {
  .main-grid { 
    grid-template-columns: 1fr;
  }
  .modules-right {
    grid-template-columns: 1fr;
  }
  .module-tile { 
    min-height: 220px;
  }
  .side-panel { 
    width: 100%; 
    right: -100%;
  }
  .card-content { 
    padding: 30px 25px;
  }
}

/* Instruction Modal Styles */
.instruction-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.instruction-modal.active {
  display: flex;
  opacity: 1;
}

.instruction-content {
  position: relative;
  background: white;
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.instruction-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 40px 20px 40px;
  border-bottom: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.instruction-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  flex: 1;
  line-height: 1.3;
}

.instruction-close {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 16px;
}

.instruction-close:hover {
  background: #e2e8f0;
  color: #475569;
  transform: rotate(90deg);
}

.instruction-body {
  color: #475569;
  line-height: 1.7;
  font-size: 15px;
  padding: 20px 40px 40px 40px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

/* Custom scrollbar styling for better visibility */
.instruction-body::-webkit-scrollbar {
  width: 16px;
}

.instruction-body::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

.instruction-body::-webkit-scrollbar-thumb {
  background: #64748b;
  border-radius: 10px;
  border: 3px solid #e2e8f0;
}

.instruction-body::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Firefox scrollbar */
.instruction-body {
  scrollbar-width: auto;
  scrollbar-color: #64748b #e2e8f0;
}

.side-panel {
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: #64748b #e2e8f0;
}

.side-panel::-webkit-scrollbar {
  width: 16px;
}

.side-panel::-webkit-scrollbar-track {
  background: #e2e8f0;
}

.side-panel::-webkit-scrollbar-thumb {
  background: #64748b;
  border-radius: 10px;
  border: 3px solid #e2e8f0;
}

.side-panel::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.instruction-body h3 {
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.instruction-body h3:first-child {
  margin-top: 0;
}

.instruction-body p {
  margin-bottom: 16px;
}

.instruction-body ol,
.instruction-body ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.instruction-body li {
  margin-bottom: 2px;
  padding-left: 8px;
}

.instruction-body ol li {
  list-style-type: decimal;
}

.instruction-body ul li {
  list-style-type: disc;
}

.instruction-body strong {
  color: #1e293b;
  font-weight: 600;
}

.instruction-highlight {
  background: linear-gradient(135deg, #f3f2ff, #faf9ff);
  border-left: 4px solid #7874b4;
  padding: 15px 20px;
  margin: 0 0;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .instruction-content {
    max-width: 95%;
  }
  
  .instruction-header {
    padding: 30px 24px 16px 24px;
  }
  
  .instruction-title {
    font-size: 20px;
  }
  
  .instruction-body {
    padding: 16px 24px 30px 24px;
    font-size: 14px;
  }
}