:root {
  --bg-top: #eef4fb;
  --bg-bottom: #dfe9f7;
  --paper: rgba(255, 255, 255, 0.96);

  --text: #24364a;
  --muted: #72839a;

  --primary: #3d6899;
  --primary-dark: #284b73;
  --primary-soft: #eef4fb;
  --accent-line: #9cbbe2;

  --border: #d9e4f1;
  --border-soft: #e7eef7;
  --shadow: 0 18px 40px rgba(37, 66, 103, 0.08);

  --radius-xl: 26px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  font-size: 20px;
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.page {
  min-height: 100vh;
  padding: 28px 14px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.announcement-card {
  width: 100%;
  max-width: 900px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.top-accent {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-dark),
    var(--accent-line),
    var(--primary-dark)
  );
}

.card-header {
  padding: 24px 28px 10px;
  text-align: center;
  position: relative;
}

.header-icon {
  margin-bottom: 10px;
}

.header-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.94;
  filter: drop-shadow(0 3px 8px rgba(40, 75, 115, 0.12));
}

.parish-name {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.date {
  margin: 10px 0 18px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 24px 8px;
  justify-content: center;
}

.info-pill {
  min-width: 180px;
  background: linear-gradient(180deg, #ffffff, #f6f9fd);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 9px 14px;
  text-align: center;
}

.pill-label {
  display: block;
  margin-bottom: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 700;
}

.info-pill strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  font-weight: 700;
}

.content-box {
  padding: 12px 24px 10px;
}

.announcements {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.announcements > li {
  position: relative;
  counter-increment: item;
  margin: 0 0 10px;
  padding: 14px 16px 14px 52px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  line-height: 1.62;
}

.announcements > li:last-child {
  margin-bottom: 0;
}

.announcements > li::before {
  content: counter(item) ".";
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--primary-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.announcements > li p {
  margin: 0 0 8px;
}

.announcements > li p:last-child {
  margin-bottom: 0;
}

.announcements > li ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.announcements > li ul li {
  position: relative;
  margin: 5px 0 0;
  padding-left: 16px;
  line-height: 1.55;
}

.announcements > li ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

.announcements a {
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 104, 153, 0.25);
}

.announcements a:hover {
  border-bottom-color: var(--primary-dark);
}

.bottom-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 24px 20px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.bottom-bar a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.bottom-bar a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  body {
    font-size: 18px;
  }

  .page {
    padding: 12px 8px;
  }

  .announcement-card {
    border-radius: 20px;
  }

  .card-header {
    padding: 20px 16px 8px;
  }

  .header-icon img {
    width: 48px;
    height: 48px;
  }

  h1 {
    font-size: 2rem;
  }

  .date {
    font-size: 0.94rem;
    margin-bottom: 14px;
  }

  .info-strip {
    padding: 4px 14px 8px;
    gap: 8px;
  }

  .info-pill {
    width: 100%;
    min-width: 0;
    border-radius: 14px;
  }

  .content-box {
    padding: 10px 10px 8px;
  }

  .announcements > li {
    padding: 13px 12px 13px 42px;
    margin-bottom: 9px;
  }

  .announcements > li::before {
    left: 12px;
    top: 13px;
    font-size: 0.88rem;
  }

  .bottom-bar {
    padding: 14px 16px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 17px;
  }

  .header-icon img {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .parish-name {
    font-size: 0.76rem;
  }
}
