.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: white;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links{
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav-links:hover {
    text-decoration: underline;
    color: orange;
}

.card-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.card {
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card h3{
    margin: 15px 0 10px;
    font-size: 20px;
}

.card p{
    flex: 1;
    padding: 0 15px;
    font-size: 13px;
    color: #555;
}

.card button{
    margin: 15px 0;
    padding: 10px 20px;
    border: none;
    background-color: #333;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

.card button:hover {
    background-color: orange;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.grid-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: 80px 1fr 60px;
    gap: 20px;
    grid-template-areas: 
        "header header"
        "sidebar main"
        "footer footer";
    min-height: 100vh;
}

.header {
    grid-area: header;
    background-color: gray;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.sidebar {
  grid-area: sidebar;
  background: grey;
  padding: 15px;
}

.main-content {
  grid-area: main;
  background: #ffffff;
  padding: 15px;
}

.footer {
  grid-area: footer;
  background: #333;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;           
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .caption {
  opacity: 1;
}