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

body,
html {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #e9f3ef;
  color: #000000;
  margin: 0;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #e9f3ef;
}

.slide-header-global {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  background: transparent;
}

.erasmus-globe {
  font-size: 32px;
  filter: drop-shadow(0 2px 6px rgba(31, 122, 85, 0.4));
}

.eu-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eu-flag {
  width: 40px;
  height: 26px;
  background: #003399;
  border-radius: 3px;
}

.eu-text {
  font-size: 11px;
  font-weight: 600;
  color: #003399;
  line-height: 1.2;
}

.presentation-frame {
  flex: 1;
  width: 100%;
  max-width: 1320px;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

main {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 12px;
}

.slide {
  display: none;
  width: 100%;
  min-height: 680px;
  max-width: 1260px;
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  margin: 0 auto;
}

.slide.active {
  display: flex;
}

.slide-left-bar {
  width: 12%;
  min-width: 60px;
  background: linear-gradient(180deg, #A5E2B7 0%, #6EC590 100%);
}

.slide-content {
  flex: 1;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
}

.slide-title-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide-title-block h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
}

.slide-title-block h2 {
  font-size: 28px;
  font-weight: 400;
  color: #333;
  line-height: 1.3;
}

.hexagon {
  width: 60px;
  height: 60px;
  background: #6EC590;
  clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.slide-body {
  font-size: 18px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.tool-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.tool-link {
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid #c8dfe1;
  background: #f7fbf8;
  color: #1f7a55;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-link span {
  display: block;
  font-size: 0.85rem;
  margin-top: 4px;
  color: #3b6d5c;
  font-weight: 400;
}

.tool-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(31, 122, 85, 0.2);
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: #ffffff;
  border: 2px solid #A5E2B7;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 26px 26px 0;
  border-color: transparent #6EC590 transparent transparent;
}

.step-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.step-number {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1F7A55;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-description {
  font-size: 17px;
  color: #333;
  line-height: 1.6;
}

.tool-card {
  background: #F8F9FA;
  border-left: 4px solid #6EC590;
  padding: 24px 28px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  margin-bottom: 0;
}

.tool-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #1F7A55;
  font-weight: 700;
}

.tool-card p,
.tool-card ul,
.tool-card ol {
  font-size: 17px;
  line-height: 1.8;
}

.tool-card a {
  color: #003399;
  text-decoration: none;
  border-bottom: 1px solid #003399;
}

.tool-card a:hover {
  color: #1F7A55;
  border-bottom-color: #1F7A55;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.three-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.highlight {
  background: #A5E2B7;
  border-color: #1F7A55;
}

.final-card {
  background: #1F7A55;
  border-left-color: #1F7A55;
  color: #ffffff;
}

.final-card h3 {
  color: #ffffff;
}

.nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #e5e5e5;
  background: #ffffff;
  max-width: 1320px;
  width: 100%;
  margin: 8px auto 0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-button {
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: #1F7A55;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.nav-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.slide-indicator {
  font-size: 16px;
  font-weight: 600;
  color: #1F7A55;
}

.tool-image-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

.laptop-mockup {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 14px;
  background: linear-gradient(135deg, #A5E2B7 0%, #6EC590 100%);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(31, 122, 85, 0.4);
  flex: 1;
  min-height: 450px;
}

.laptop-screen {
  position: relative;
  width: 100%;
  padding-top: 62.5%; /* 16:10 aspect ratio */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.laptop-screen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.carousel-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  text-align: center;
  z-index: 2;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(110, 197, 144, 0.8);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(31, 122, 85, 0.9);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #6EC590;
}

.laptop-base {
  width: 100%;
  height: 8px;
  background: linear-gradient(135deg, #6EC590 0%, #1F7A55 100%);
  border-radius: 0 0 8px 8px;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tool-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-image {
  width: 200px;
  height: 200px;
  max-width: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 16px auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tool-card-with-image {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 0;
}

.tool-card-header {
  flex-shrink: 0;
  margin-bottom: 16px;
}

.tool-card-header h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.tool-card-header p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.advanced-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(238, 90, 111, 0.3);
  margin-left: 12px;
  position: relative;
  top: -2px;
}

.advanced-badge::before {
  content: "⚡";
  font-size: 14px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.resource-links-panel {
  padding: 24px;
  border-radius: 18px;
  background: #f0f7f0;
  border: 1px solid #c8dfd3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.resource-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.resource-link {
  border: 1px solid #c8dfd3;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: #0f4f32;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-link strong {
  font-weight: 700;
  font-size: 1rem;
}

.resource-link span {
  font-size: 0.85rem;
  color: #4c7a63;
}

.resource-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17, 97, 66, 0.2);
}

.cofunded-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0 20px;
  width: 100%;
  gap: 8px;
}

.cofunded-logo img {
  max-height: 40px;
  object-fit: contain;
}

.project-info {
  text-align: center;
  font-size: 13px;
  color: #1F7A55;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.project-info-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.project-info-subtitle {
  font-weight: 600;
  margin-bottom: 2px;
}

.project-info-number {
  font-size: 12px;
  color: #0f4f32;
}

@media (max-width: 900px) {
  .slide-left-bar {
    display: none;
  }

  .slide-content {
    padding: 24px 18px 32px;
  }

  .slide-title-block h1 {
    font-size: 32px;
  }

  .slide-title-block h2 {
    font-size: 22px;
  }

  .tool-card h3 {
    font-size: 20px;
  }

  .tool-card p,
  .tool-card ul,
  .tool-card ol {
    font-size: 16px;
  }

  .cards-row,
  .two-columns,
  .three-columns {
    grid-template-columns: 1fr;
  }

  .nav-footer {
    position: sticky;
    bottom: 0;
  }

  .laptop-mockup {
    max-width: 100%;
    padding: 12px;
    min-height: 400px;
  }

  .laptop-screen {
    padding-top: 56.25%; /* 16:9 for mobile */
  }

  .tool-card-header h3 {
    font-size: 24px;
  }

  .tool-card-header p {
    font-size: 16px;
  }
}

.nav-footer a.nav-button {
  text-decoration: none;
  display: inline-block;
}
