/* === GLOBAL STYLES === */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

/* === HEADER === */
header {
  background-color: #ffffff;
  padding: 20px;
  text-align: center;
  color: rgb(0, 0, 0);
}
header img {
  padding-top: 50px;
  max-width: 120px;
}

/* === NAVIGATION === */
nav {
  background-color: #2a2a2a;
  text-align: right;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
nav a {
  color: white;
  padding: 15px 20px;
  text-decoration: none;
  display: inline-block;
}
nav a:hover {
  background-color: #898989;
  color: black;
  border-radius: 5px;
}
nav i {
  color: white;
}

/* === SECTIONS === */
section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}
ul {
  padding-left: 20px;
}

.sherbime,
.contact {
  background-color: #898989;
  width: 100%;
  border-radius: 8px;
  padding: 20px;
  color: white;
}

/* === CALENDAR === */
.calendar {
  max-width: 700px;
  margin: 100px auto 40px; /* adjusted for fixed nav */
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 10px;
}
.day-header {
  text-align: center;
  font-weight: bold;
  background: #f0f0f0;
  padding: 5px 0;
  border: 1px solid #ddd;
}
.day {
  border: 1px solid #ddd;
  height: 100px;
  padding: 5px;
  box-sizing: border-box;
  position: relative;
  background-color: #fff;
}
.day-number {
  font-weight: bold;
}
.appointment {
  margin-top: 5px;
  font-size: 12px;
  color: #444;
  background: #ffe6e6;
  padding: 3px;
  border-radius: 4px;
}

/* === GALLERY === */
#galeria div {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
#galeria img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  height: auto;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 20px;
  background-color: #000000;
  color: white;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .calendar-header {
    flex-direction: column;
    gap: 10px;
  }
  nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .day {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .days {
    grid-template-columns: repeat(2, 1fr);
  }
  .day {
    height: auto;
    min-height: 80px;
  }
  nav a {
    font-size: 14px;
  }
  header h1 {
    font-size: 22px;
  }
}
