:root {
  --red: rgb(170, 5, 5);
  --dark: #222;
  --muted: #666;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--dark);
  background: #f7f7f7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

/* Header */
header {
  background: var(--red);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 18px;
}

nav a {
  color: #fff;
  margin-left: 16px;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #ffdede;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Banner */
.hero img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* Sections */
h2 {
  text-align: center;
  color: #333;
  margin: 18px 0;
}

.calendar {
  display: flex;
  gap: 5px;
  align-items: stretch; /* makes both sides equal height */
}

/* Left side */
.cal-left {
  width: 220px;
  background: rgb(170, 5, 5);
  color: white;
  padding: 12px;
  border-radius: 6px;
}

/* Right side */
.cal-right {
  flex: 1;
  background-color: rgb(189, 188, 188);
  color: rgb(170, 5, 5);
  padding: 12px;
  border-radius: 6px;

  display: flex;
  flex-direction: column;
}

/* ✅ Make the event list fill remaining space */
.cal-right .event {
  flex: 1; /* stretches the event blocks to fill the height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* evenly spaced events */
}


.event {
  border-bottom: 1px solid #eee;
  padding: 12px;
 font-size: 13px;

}

.event:last-child {
  border-bottom: 0;
}

.date {
  background: var(--red);
  color: #fff;
  padding: 6px;
  border-radius: 4px;
  display: inline-block;
  font-size: 13px;
}

.desc {
  color: var(--muted);
  font-size: 13px;
}

/* News */
.news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.card {
  background: #fff;
  padding: 12px;
  border-radius: 6px;
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
footer {
  background: #fff;
  border-top: 6px solid var(--red);
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

.footer-top h4 {
  margin-bottom: 8px;
  color: var(--dark);
}

.footer-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-top a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-top a:hover {
  color: var(--red);
}

.footer-top img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom .socials a {
  margin-left: 12px;
  color: var(--red);
  text-decoration: none;
}

.footer-bottom .socials a:hover {
  text-decoration: underline;
}


/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 8px;
  }

  .cal-left {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .footer-top{
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .news{
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 1200px) {
  
  .footer-top{
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  
}
