/* ===== БАЗОВІ НАЛАШТУВАННЯ ===== */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(135deg, #f9f9f9 0%, #eef3fb 100%);
  color: #222;
  line-height: 1.6;
}

h1 {
  font-size: 35px;
  text-align: center;
  margin: 0px 5px 0px 5px;
  color: #062f56;
  text-shadow: 1px 1px 1px rgb(109, 32, 32);
}
h2 {
  font-size: 30px;
  text-align: center;
  margin: 0px 5px 0px 5px;
  color: rgba(0, 159, 31, 0.94);
}
h3 {
  font-size: 20px;
  text-align: center;
  margin: 0px 5px 0px 5px;
  color: rgba(93, 16, 226, 0.94);
}

/* ===== ШАПКА ===== */
.site-header {
  background-color: #5e606c;
  color: #fff;
  padding: 0.8rem 0;
  position: relative;
  z-index: 10;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: bold;
  font-size: 1.3rem;
}

.nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: #ffcc00;
}

/* ===== БУРГЕР ===== */
.burger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
}

/* ===== ФУТЕР ===== */
.site-footer {
  background-color: #5e606c;
  color: #fff;
  padding: 1rem;
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* ===== ОСНОВНИЙ КОНТЕЙНЕР ===== */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ===== ВСТУП ===== */
.intro {
  text-align: center;
  padding: 0rem;
}

.intro h1 {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.intro-text {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== КАРТКИ НА ГОЛОВНІЙ СТОРІНЦІ ===== */
.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto;
}

.card {
  text-decoration: none;
  color: #222;
  border-radius: 15px;
  flex: 1 1 280px;
  min-height: 220px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  background: #fff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.15);
}

.card h2 {
  color: #2a5fdc;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

/* 🔸 Індивідуальні градієнти */
.card-events {
  background: linear-gradient(145deg, #e0ecff 0%, #f5f8ff 100%);
}

.card-holidays {
  background: linear-gradient(145deg, #e9f8ef 0%, #f7fff9 100%);
}

.card-about {
  background: linear-gradient(145deg, #fff4e8 0%, #fffaf4 100%);
}

/* ===== СПИСКИ ПОДІЙ І СВЯТ ===== */
.events-list,
.holidays-list {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

/* ===== ЕЛЕМЕНТИ ПОДІЙ І СВЯТ ===== */
.event-item,
.holiday-item {
  background: #fff;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-item:hover,
.holiday-item:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.event-year {
  font-weight: bold;
  font-size: 1.1rem;
  color: #ffcc00;
  margin-bottom: 0.4rem;
}

.event-title,
.holiday-name {
  font-size: 1.15rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 0.3rem;
}

.event-desc,
.holiday-desc {
  color: #444;
  margin: 0;
}

/* === ОПИС === */
.entry-description {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  text-align: justify;
}

/* === ЗОБРАЖЕННЯ === */
.entry-image,
.event-image,
.holiday-image,
.entry-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 1em 0;
}

.entry-image img,
.event-image img,
.holiday-image img,
.entry-gallery img {
  width: 100%;
  max-width: 260px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.entry-image img:hover {
  transform: scale(1.05);
}

/* === ПОСИЛАННЯ === */
.entry-link {
  margin-top: 8px;
  text-align: right;
}

.entry-link a {
  color: #0056b3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.entry-link a:hover {
  color: #ff6600;
}

/* ===== БЕЙДЖ ТИПУ СВЯТА ===== */
.holiday-type {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  margin-bottom: 6px;
}

.holiday-type.церковне { background-color: #8b5e3c; }
.holiday-type.державне { background-color: #3a7bd5; }
.holiday-type.професійне { background-color: #2e8b57; }
.holiday-type.народне { background-color: #c47f1e; }
.holiday-type.міжнародне { background-color: #9b59b6; }
.holiday-type.національне {  background-color: #e2df0c; /* стриманий сірo-синій */}

/* ===== ПРО САЙТ ===== */
.about-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-page h1, 
.about-page h2 {
  text-align: center;
  color: #333;
}

.about-page a {
  color: #0056b3;
  text-decoration: none;
}

.about-page a:hover {
  color: #ff6600;
}

/* ===== ВИБІР ДАТИ ТА НАВІГАЦІЯ ===== */
.date-picker,
.date-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 1rem auto;
}

.date-picker input[type="date"],
.date-picker button,
.date-nav button {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.date-picker button,
.date-nav button {
  background-color: #3a7bd5;
  color: white;
  border: none;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.date-picker button:hover,
.date-nav button:hover {
  background-color: #295a9c;
}

.date-picker button:active,
.date-nav button:active {
  transform: scale(0.97);
}

/* ===== МЕДІА (АДАПТИВНІСТЬ) ===== */
@media (max-width: 768px) {
  .nav ul {
    display: none;
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 0 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  .nav ul.active {
    display: flex;
  }

  .burger {
    display: block;
  }

  .intro h1 {
    font-size: 1.7rem;
  }

  h1 {
    font-size: 25px; /* наприклад, 25px замість 35px */
  }

  h2 {
    font-size: 20px; /* наприклад, 25px замість 35px */
  }

  h3 {
    font-size: 15px; /* наприклад, 25px замість 35px */
  }

  .card {
    flex: 1 1 100%;
    min-height: 180px;
  }

  .card-icon {
    font-size: 2rem;
  }

  .entry-gallery {
    flex-direction: column;
    align-items: center;
  }

  .entry-gallery img {
    max-width: 80%;
  }

  .entry-image img {
    max-width: 100%;
    max-height: 220px;
  }
}
