:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f172a;
  background: #eff6ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.12), transparent 30%),
    linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  color: #0f172a;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92%);
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: white;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}

.site-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: black;
}

.site-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: black;
  text-decoration: none;
  width: auto;
  max-width: 220px;
  min-height: 4.5rem;
}

.site-brand img {
  width: 100%;
  height: 100%;
  max-height: 5rem;
  object-fit: contain;
  display: block;
}

.site-brand span {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: black;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: black;
  text-decoration: none;
  font-weight: 600;
}

.site-nav a.active,
.site-nav a:hover {
  color: #333333;
}

.site-nav .nav-item {
  position: relative;
}

.site-nav .nav-item .dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  z-index: 20;
}

.site-nav .nav-item:hover .dropdown-menu,
.site-nav .nav-item:focus-within .dropdown-menu {
  display: block;
}

.site-nav .dropdown-menu button {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

.site-nav .dropdown-menu button:not(.btn-admin-login):not(.btn-admin-logout):hover {
  background: rgba(37, 99, 235, 0.08);
}

.hero {
  margin-top: 2rem;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 45%, #7c3aed 100%);
  border-radius: 32px;
  padding: 3.5rem;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.18);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #93c5fd;
}

.hero h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.02;
}

.hero p {
  margin: 1.5rem 0 2.5rem;
  max-width: 680px;
  line-height: 1.85;
  color: #dbeafe;
  font-size: 1.05rem;
}

.hero-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.hero-figure img {
  width: 100%;
  max-width: 500px;
  height: auto;
  min-height: 300px;
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.35);
  animation: float 10s ease-in-out infinite alternate;
}

button,
.primary-button {
  background: #60a5fa;
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  background: #3b82f6;
  box-shadow: 0 18px 28px rgba(59, 130, 246, 0.25);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.info-section,
.contact-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.info-card,
.image-section,
.contact-section {
  background: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  margin-bottom: 4rem;
}

.info-card h3,
.image-section h3,
.contact-copy h3 {
  margin-top: 0;
}

.image-section p {
  max-width: 720px;
  line-height: 1.8;
}

.image-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.carousel-track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.carousel-dot.is-active {
  background: #2563eb;
  transform: scale(1.2);
}

@media (max-width: 760px) {
  .carousel-slide img {
    height: 280px;
  }
}

.contact-copy p {
  line-height: 1.9;
  color: #334155;
}

form {
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: grid;
  gap: 0.55rem;
}

label {
  font-weight: 700;
  color: #0f172a;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  outline: none;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  margin: 0;
  color: #dc2626;
  font-size: 0.95rem;
  min-height: 1.25rem;
}

.form-success {
  margin: 0;
  color: #16a34a;
  font-size: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  background: #e2e8f0;
  text-align: center;
  padding: 1.2rem 0;
}

@keyframes float {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-18px);
  }
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .info-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    background: white;
    padding: 0 1.5rem;
    gap: 1rem;
    transition: max-height 0.28s ease;
  }

  .site-nav.is-open {
    max-height: 340px;
    padding: 1rem 1.5rem 1.5rem;
  }

  .site-nav a {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .about-section {
  padding: 40px 0;
  line-height: 1.8;
}

.about-section h2 {
  margin-bottom: 20px;
}

.about-section p {
  margin-bottom: 18px;
}

.company-contact {
  margin-top: 35px;
  padding: 24px;
  background: #f5f7fa;
  border-radius: 12px;
  border-left: 4px solid #2563eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.company-contact h3 {
  margin-bottom: 15px;
  color: #111827;
}

.company-contact p {
  margin-bottom: 12px;
  color: #374151;
}
}
.trainings-hero .hero-copy {
  color: white;
}

/* ===== Trainings Page Styles ===== */

/* Admin Login Section */
.admin-login-section {
  text-align: center;
  margin-bottom: 2rem;
}

.btn-admin-login {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-admin-login:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.btn-admin-logout {
  background: #ef4444;
  color: white;
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-admin-logout:hover {
  background: #dc2626;
}

.admin-panel-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.btn-logout {
  background: #ef4444;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.login-modal-content {
  max-width: 400px;
}

.login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.login-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  background: #f8fafc;
}

.login-form input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
  outline: none;
}

.login-error {
  color: #dc2626;
  font-size: 0.9rem;
  margin: 0;
  padding: 0.75rem;
  background: #fee2e2;
  border-radius: 8px;
}

.trainings-hero h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.trainings-hero p {
  margin: 1rem 0 0;
  color: #dbeafe;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Admin Panel */
.admin-panel {
  margin-bottom: 3rem;
  background: #f8fafc;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
}

.admin-toggle-btn {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: left;
}

.admin-toggle-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.admin-panel-content {
  padding: 2rem;
  background: white;
}

.admin-panel-content h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #0f172a;
}

.admin-form {
  display: grid;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.admin-form .form-group {
  display: grid;
  gap: 0.6rem;
}

.admin-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.95rem;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: #60a5fa;
  background: white;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.admin-form select {
  cursor: pointer;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

.admin-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.form-message {
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  display: none;
}

/* Trainings List Section */
.trainings-list-section {
  margin-bottom: 4rem;
}

.trainings-list-section h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #0f172a;
}

.training-details-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  margin-top: 2rem;
}

.training-details-content {
  display: grid;
  gap: 1.5rem;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-delete {
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-delete:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.details-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  color: #0f172a;
}

.details-close:hover {
  color: #dc2626;
}

.details-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.details-controls {
  display: flex;
  gap: 0.5rem;
}

.btn-minimize,
.btn-close {
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 1rem;
}

.btn-minimize:hover,
.btn-close:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.training-details-section.minimized .training-details-content {
  display: none;
}

.training-details-section.minimized {
  max-height: 70px;
  overflow: hidden;
}

.trainings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

.no-trainings {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 16px;
  font-size: 1.05rem;
}

/* Training Card */
.training-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.training-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.training-poster {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f1f5f9;
}

.training-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.training-card:hover .training-poster img {
  transform: scale(1.05);
}

.training-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.training-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.training-meta {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.meta-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.meta-label {
  font-weight: 600;
  color: #475569;
  min-width: 90px;
}

.meta-value {
  color: #0f172a;
}

.training-type {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.training-details-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.detail-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #475569;
}

.detail-icon {
  font-size: 1.1rem;
}

.btn-details {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
}

.btn-details:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 2rem;
  overflow-y: auto;
}

/* Utility class to show modals when needed via JS: `modal.classList.add('show')` */
.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #f1f5f9;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

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

.modal-body {
  padding: 2rem;
}

.modal-header {
  margin-bottom: 2rem;
}

.modal-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  color: #0f172a;
}

.modal-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
}

.modal-poster {
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
}

.modal-poster img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 16px;
}

.info-box {
  display: grid;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: #0f172a;
}

.requirements-list,
.benefits-list {
  margin: 0;
  padding-left: 1.5rem;
  list-style-type: none;
}

.requirements-list li,
.benefits-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
  color: #334155;
  line-height: 1.7;
  position: relative;
}

.requirements-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

.benefits-list li:before {
  content: "★";
  position: absolute;
  left: 0;
  color: #f59e0b;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.btn-apply {
  flex: 1;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-apply:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Responsive Design */
@media (max-width: 920px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
  }

  .training-details-row {
    grid-template-columns: 1fr;
  }

  .trainings-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 760px) {
  .trainings-hero {
    padding: 2rem 1.5rem;
  }

  .trainings-hero h2 {
    font-size: 1.8rem;
  }

  .admin-panel-content {
    padding: 1.5rem;
  }

  .admin-form {
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .trainings-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .training-poster {
    height: 200px;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: 16px;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-poster img {
    height: 200px;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 2.2rem;
    height: 2.2rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 1rem 0.75rem;
  }

  .site-nav a {
    font-size: 0.96rem;
  }

  /* Hero alignment and sizing for small screens */
  .hero {
    padding: 1.75rem 0.75rem;
  }

  .hero-copy {
    text-align: left;
    padding: 0;
    margin: 0;
  }

  .hero h2,
  .trainings-hero h2 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    line-height: 1.08;
    margin-bottom: 0.5rem;
    text-align: left;
  }

  .hero p,
  .image-section p,
  .contact-copy p {
    font-size: 0.98rem;
  }

  .hero-figure,
  .training-poster,
  .modal-poster {
    min-height: 0;
  }

  /* Contact form heading alignment */
  .contact-copy h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: left;
  }

  .contact-section {
    gap: 1rem;
    padding: 0;
  }

  /* Trainings / Careers hero alignment */
  .trainings-hero {
    padding: 1.75rem 0.75rem;
  }

  .trainings-hero .hero-copy {
    text-align: left;
  }
}
