/* Modern Redesign for PaterKater 30th Anniversary */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@700&family=Grand+Hotel&display=swap');

:root {
  --primary-color: #800605; /* Logo Red */
  --secondary-color: #02047e; /* Blue */
  --accent-color: #047e02; /* Button Green */
  --text-color: #333;
  --bg-color: #ffffff;
  --card-bg: #f9f9f9;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero img {
  max-width: 100%;
  height: auto;
  max-height: 350px;
}

/* Sections */
section {
  padding: 60px 0;
}

section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 60px; /* Added margin for the arrow tip */
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: -40px;
  bottom: 0; /* Ends exactly at the bottom of the container */
  left: 50%;
  margin-left: -2px;
}

/* Upside down triangle at the end of the timeline */
.timeline::before {
  content: '';
  position: absolute;
  bottom: -20px; /* Positioned below the line */
  left: 50%;
  margin-left: -10px; /* Half of the triangle width */
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid var(--primary-color);
  z-index: 2;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  margin-bottom: 20px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px; /* Bigger dots */
  height: 20px;
  right: -10px;
  background-color: var(--primary-color);
  border: none; /* Removed whitespace/border */
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left { left: 0; }
.right { left: 50%; }

.right::after { left: -8px; }

.timeline-content {
  padding: 20px;
  background-color: var(--card-bg);
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.timeline-content h3 {
  font-size: 2rem; /* Increased from 1.5rem */
  margin-bottom: 5px;
  color: var(--primary-color);
}

.location {
  font-family: 'Grand Hotel', cursive;
  font-weight: 400;
  color: var(--secondary-color);
  font-size: 2.2rem; /* Increased from 1.6rem */
  margin-bottom: 10px;
  display: block;
}

.timeline-img {
  width: calc(100% + 40px);
  margin: 15px -20px 15px -20px; /* Adjusted margins for middle position */
  height: 200px; /* Slightly taller for more impact */
  object-fit: cover;
  border-top: 3px solid var(--secondary-color);
  border-bottom: 3px solid var(--secondary-color);
}

.memory-list {
  font-size: 0.85rem;
  border-top: 1px solid #eee;
  margin-top: 10px;
  padding-top: 10px;
}

.memory-item {
  margin-bottom: 8px;
  font-style: italic;
}

/* Forms */
.form-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-top: 20px;
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
}

button {
  background-color: var(--accent-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  transition: opacity 0.3s;
}

button:hover {
  opacity: 0.9;
}

/* Social Wall */
.social-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.message-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
}

.message-card h4 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* Sticky Signup */
.sticky-signup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.sticky-signup a {
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-item::after { left: 23px; }
  .right { left: 0%; }
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-overlay.active {
  display: flex;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}
