body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
  color: #222;
  overflow-x: hidden;
}

header {
  text-align: center;
  background: linear-gradient(90deg, #d90429 0%, #ffffff 50%, #d90429 100%);
  padding: 2.5rem 1rem;
}

.title-container {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

h1 {
  font-size: 3rem;
  margin: 0;
  color: #d90429;
  text-shadow: 1px 1px 2px #fff;
}

.flag {
  width: 60px;
  height: auto;
  border-radius: 4px;
  border: 1px solid #ccc;
}

main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  text-decoration: none;
  color: inherit;
  border: 2px solid #d90429;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 320px; 
}

.card img {
  width: 100%;
  height: 180px; 
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1rem;
  flex: 1; 
}

.card-content h2 {
  font-size: 1.1rem;
  color: #d90429;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

footer {
  position: fixed;
  bottom: 10px; 
  left: 50%;    
  transform: translateX(-50%); 
  background: #ffffff; 
  color: #777;;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  text-align: center;
  z-index: 100;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  gap: 1.2rem;
}

.overlay-message {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0,0,0,0.6);
  letter-spacing: 0.6px;
  pointer-events: none;
}

.modal {
  background: rgba(255,255,255,0.98);
  padding: 1.8rem;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  text-align: center;
}

.modal h3 {
  margin: 0 0 0.6rem;
  color: #d90429;
  font-size: 1.4rem;
}

.modal p {
  margin: 0 0 1rem;
  color: #333;
}

.modal input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  margin-bottom: 0.8rem;
}

.modal button {
  background: #d90429;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.modal .err {
  color: #900;
  margin-top: 0.6rem;
  min-height: 1.2rem;
}

.blurred {
  filter: blur(16px) brightness(0.8);
  pointer-events: none;
  user-select: none;
  transition: filter 0
}

.blog-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

.blog-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 3px solid #d90429;
}

.back-btn {
  display: inline-block;
  margin-top: 2rem;
  background: #d90429;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.back-btn:hover {
  background: #a1031f;
}