/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-image: url('img/back/background.png');
  background-repeat: repeat;
  background-attachment: fixed;
}

/* Container with max-width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Content container - 2/3 width centered with 1/6 margins on each side */
.content-container {
  width: 66.666%; /* 2/3 of container */
  margin: 0 auto; /* This creates 1/6 margins on each side */
}

/* Grid layout */
.content-row {
  margin-bottom: 20px;
}

/* Top row - 3 columns */
.content-row.top-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-left: 5%;
}

.content-row.top-row .grid-item {
  margin-bottom: -55px;
  z-index: 100;
}

.video-container video {
  width: 100%;
  height: auto;
  max-height: 400px; /* Limit video height to make it fit better */
}

.sidebar-item {
  background: #e9ecef;
  padding: 20px;
  border-radius: 8px;
  min-height: 300px;
}

/* Content styling */
h2 {
  margin-bottom: 15px;
  color: #212529;
}

h3 {
  margin-bottom: 10px;
  color: #495057;
}

p {
  margin-bottom: 10px;
  color: #6c757d;
}

/* Footer styling */
.footer {
  margin-top: 40px;
  margin-bottom: 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

.footer-text {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.footer-image {
  justify-self: end;
}

.footer-image img {
  max-height: 60px;
  width: auto;
}

/* Mobile-first adjustments */
@media (max-width: 767px) {
  .content-container {
    width: 100%;
  }
  
  .content-row.top-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .content-row.top-row .grid-item {
    padding: 15px;
    margin-bottom: -69px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
  }
  
  .footer-image {
    justify-self: center;
  }
}