/* ===================== RESET & BASIC STYLES ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Arial, sans-serif;
  background: #f9f9fb;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ===================== GLOBAL CONTAINER ===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== HEADER ===================== */
/* Normal header (always blue) */
header {
  background: #3c3c6d;
  width: 100%;
  z-index: 1000;
}

header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* smaller than before so sidebars and popups can appear above */
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  background: #3c3c6d;
}

/* Placeholder keeps layout from jumping */
.header-placeholder {
  display: none;
  width: 100%;
  height: 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  background: #3c3c6d; /* top part stays blue */
}

header .logo img { width: 90px; display: block; }
header .header-info h1 { font-size: 1.8em; color: white; }
header .header-info p { font-size: 0.9em; margin-top: 5px; color: white; }

/* Language buttons */
header .lang-selector button {
  background: transparent;
  border: 1px solid white;
  color: white;
  margin-left: 5px;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
}
header .lang-selector button:hover {
  background: white;
  color: #3c3c6d;
}

/* Navigation always same blue */
header nav {
  background: #3c3c6d;
}

header nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

header nav ul li a {
  display: block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  transition: 0.2s;
  font-weight: bold;
}

header nav ul li a:hover {
  background: #5c5cad;
  border-radius: 4px;
}

/* ===================== MAIN LAYOUT ===================== */
.main-container {
  display: grid;
  grid-template-columns: 280px 1fr 360px;
  gap: 20px;
  margin: 20px auto;
  align-items: start;
  width: 100%;
  max-width: 1200px;
}

/* ===================== LEFT SIDEBAR ===================== */
.sidebar-left {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.06);
  min-width: 240px;
  position: sticky;
  top: 120px;
  z-index: 10;
}

/* ===================== MINI CALENDAR ===================== */
.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: #f0f0ff;
  border-radius: 6px;
  padding: 8px;
}
.mini-calendar div {
  padding: 6px 4px;
  text-align: center;
  cursor: pointer;
  font-size: 0.78em;
  border-radius: 4px;
  transition: background 0.15s, transform 0.12s;
}
.mini-calendar div.header {
  background: #d0d0ff;
  font-weight: bold;
}
.mini-calendar .today {
  background: #3c3c6d;
  color: white;
  font-weight: bold;
}

/* ===================== MAIN CALENDAR ===================== */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.calendar > div {
  padding: 12px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #e8e8f8;
  background: #fbfbff;
}
.calendar .today {
  background: #3c3c6d;
  color: white;
  font-weight: bold;
}
/* Calendar control buttons */
.calendar-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.calendar-controls button {
  padding: 10px 18px;
  background: #3c3c6d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}
.calendar-controls button:hover {
  background: #5c5cad;
}

/* ===================== RIGHT SIDEBAR ===================== */
.sidebar-right {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.06);
  min-width: 300px;
  position: sticky;
  top: 120px;
  z-index: 10;
}

/* ===================== MENologion ===================== */
.menologion-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.menologion-grid div {
  padding: 7px;
  text-align: center;
  font-size: 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #ddd;
}
.menologion-grid div.menologion-feast { background: #ffeeba; border-color: #e4c46a; }
.menologion-grid div.menologion-fast { background: #ffd6d6; border-color: #e49b9b; }
.menologion-grid div.menologion-normal { background: #ffffff; }
.menologion-grid div.fish::after { content: " 🐟"; margin-left: 2px; }
.menologion-grid div.bread::after { content: " 🍞"; margin-left: 2px; }
.menologion-grid div.fullfast::after { content: " ✖️"; color:#a00; font-weight:bold; margin-left: 2px; }

/* ===================== NEWSLETTER ===================== */
.newsletter-section {
  background: #3c3c6d;
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  margin: 40px 0;
}
#newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
#newsletter-form input[type="email"] {
  padding: 10px;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  flex: 1;
  min-width: 200px;
}
#newsletter-form button {
  padding: 10px 20px;
  background: #ffd700;
  color: #3c3c6d;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
#newsletter-form button:hover { background: #e0b500; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) { .main-container { grid-template-columns: 220px 1fr 300px; } }
@media (max-width: 900px) { .main-container { display: block; } .sidebar-left, .sidebar-right { position: relative; margin-bottom: 20px; } }
@media (max-width: 480px) { .mini-calendar, .menologion-grid { grid-template-columns: repeat(2, 1fr); } .calendar { grid-template-columns: repeat(2, 1fr); } }

/* ===================== CUSTOM CURSOR ===================== */
#custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  background: url('images/cursor.png') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
}
@keyframes spin-fast {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(1800deg); }
}
.spin { animation: spin-fast 0.5s linear; }

/* ===================== HERO SECTION ===================== */
.hero-cover {
  width: 100%;
  height: 80vh;
  background-image: url('images/church-big.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.7);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 25px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* BOTH HERO BUTTONS TRANSPARENT BY DEFAULT */
.hero-btn,
.hero-btn-alt {
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background-color: transparent;
  border: 2px solid #fff;
  transition: all 0.2s ease-in-out;
}

.hero-btn:hover,
.hero-btn-alt:hover {
  background-color: #fff;
  color: #000;
}

/* ===================== HERO RESPONSIVE ===================== */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }
  .hero-btn, .hero-btn-alt { padding: 12px 24px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.9rem; }
  .hero-buttons { flex-direction: column; gap: 10px; }
}
#news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.news-card {
  cursor: pointer;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}
.news-card h3 {
  margin: 10px 0 5px;
}
.news-card span {
  font-size: 0.9em;
  color: gray;
}
/* Main calendar day hover */
#calendar > div:not(.today):hover {
  background-color: rgba(173, 216, 230, 0.3); /* light blue */
  cursor: pointer;
}

/* Mini calendar day hover (skip headers and today) */
.mini-calendar div:not(.header):not(.today):hover {
  background-color: rgba(173, 216, 230, 0.3); /* light blue */
  cursor: pointer;
}
#site-footer {
  background-color: #1e3a8a;
  color: #fff;
  font-family: sans-serif;
  padding: 50px 20px 20px; /* lidt mindre padding i bunden for footer-bottom */
  display: flex;
  flex-direction: column;   /* sørger for at footer sections stablet vertikalt */
  align-items: center;      /* centrerer footer sections horisontalt */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;   /* centrerer sektionerne */
  width: 100%;
  max-width: 1200px;
}

.footer-section {
  flex: 1 1 200px;
  text-align: center;       /* centrer tekst i sektionerne */
}

.footer-section h4 {
  border-bottom: 2px solid #fff;
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  text-transform: uppercase;
}

.footer-section p {
  line-height: 1.5;
  font-size: 14px;
}

.footer-section a {
  color: #fff;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.social-btn {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 5px;
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
}

.social-btn.facebook {
  background-color: #4267B2;
}

.social-btn.telegram {
  background-color: #0088cc;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 15px;
  margin-top: 30px;
  width: 100%;
  max-width: 1200px;
}
/* Dropdown wrapper */
nav ul li.dropdown {
  position: relative;
}

/* Dropdown menu (hidden som default) */
nav ul li.dropdown .dropdown-content {
  display: none;
  position: absolute;
  background-color: #3c3c6d;
  min-width: 160px;
  top: 100%;
  left: 0;
  z-index: 1000;
  border-radius: 4px;
  overflow: hidden;
}

/* Dropdown links */
nav ul li.dropdown .dropdown-content li a {
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

nav ul li.dropdown .dropdown-content li a:hover {
  background-color: #5c5cad;
}

/* Show dropdown on hover */
nav ul li.dropdown:hover .dropdown-content {
  display: block;
}
[id]::before {
  content: "";
  display: block;
  height: 120px; /* height of your fixed header */
  margin-top: -120px; /* negative margin pulls section up */
  visibility: hidden;
}
.sidebar-donate {
  margin-top: 20px;
  padding: 15px;
  background: #eef4ff;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.sidebar-donate h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: bold;
}

.sidebar-donate p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.donate-btn {
  display: inline-block;
  background-color: #007aff; /* MobilePay blue */
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.donate-btn:hover {
  background-color: #005fcc;
}
