* {
  box-sizing: border-box;
  padding: 0;
  margin: 10px 0; /* 10px top and bottom margin */

}


@font-face {
  font-family: 'MyFont';
  src: url('fonts/IBMPlexSansCondensed-Regular.otf') format('opentype');
  font-weight: normal;
}


body {


    max-width: 900px;    /* Limits the width of the body text */
        text-align: justify; /* Justifies the text */
  /*font-family: Arial, sans-serif;*/
  color: #fff;
  background: #222;
  
  font-family: 'MyFont', sans-serif;
  
 /*   background-image: url('images/back.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* stays put while scrolling */ */
}

img {
  max-width: 100%;
  height: auto;
   border-radius: 15px;
}


video {
  width: 100%;          /* Responsive width */
  height: auto;         /* Maintain aspect ratio */
  /* border: 2px solid #333;
  border-radius: 1px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
  object-fit: cover;    /* Ensures video covers the container */
}

.layout {
    display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 200px;
  background: #222;
  /*  background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/side.png'); */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 2rem 1rem;
  flex-shrink: 0;
}

.logo {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar a {
  display: block;
  color: #777;
  text-decoration: none;
  padding: 0.6rem 0.5rem;
  border-radius: 4px;
}

.sidebar a:hover {
  background: #555;
  color: #fff;
}

.sidebar a.active {
  background: #777;
  color: #fff;
}

/* Content */
.content {
  flex: 1;
  padding: 2rem 3rem;
  
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page h2 {
    
  margin-bottom: 1.5rem;
}

/* Cards used for portfolio and news items */
.list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: #222;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 1rem;
  cursor: pointer;
}

.card:hover {
  border-color: #999;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #555;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

#detail-body p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

.card h3 {
    
  margin-bottom: 0.4rem;
}

.card .date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.4rem;
}

/* Mobile */
@media (max-width: 700px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar ul {
    display: flex;
    gap: 0.5rem;
  }
  .logo {
    margin-bottom: 0;
  }
  .content {
    padding: 1.5rem;
  }
}
