/* Page layout */
body {
  background: #f5f5f7;
  color: #1d1d1f;
}

.events-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Page header */
.events-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.events-page-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0;
  color: #1d1d1f;
}

.events-page-header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-schedule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0058b0;
  color: #fff !important;
  border-radius: 980px;
  padding: 5px 15px;
  font-size: 1.5rem;
  font-weight: 400;
  text-decoration: none !important;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-schedule:hover {
  background: #023d78;
  color: #fff;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #c28b45;
  color: #fff !important;
  border-radius: 980px;
  padding: 5px 15px;
  font-size: 1.5rem;
  font-weight: 400;
  text-decoration: none !important;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-contact:hover {
  background: #ae6402;
  color: #fff;
}

/* Two-column grid */
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 767px) {
  .navbar-header > a {
    margin-left: 20px;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .events-page-header {
    flex-direction: column;
    align-items: stretch;
  }
  .events-page-header h1 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 20px;
  }
  .events-page-header-buttons {
    flex-direction: column;
  }
}
/* Event card */
.event-card {
  display: flex;
  flex-direction: row;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.event-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}

.event-card .card-img {
  flex: 0 0 45%;
  max-width: 45%;
  overflow: hidden;
  background: #e8e8ed;
}

.event-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card .card-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Title then meta stacked vertically */
.event-card .card-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-card .card-title {
  font-size: 2.7rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
  color: #1d1d1f;
}

.event-card .card-meta {
  font-size: 1.3rem;
  color: #0071e3;
  line-height: 1.5;
}

.event-card .card-meta i {
  width: 16px;
  text-align: center;
  margin-right: 4px;
}

/* Bottom row: full title on the left, arrow button on the right */
.event-card .card-bottom {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.event-card .card-desc {
  font-size: 1.5rem;
  color: #3a3a3c;
  line-height: 1.4;
}

/* Round arrow button */
.event-card .card-link {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #0071e3;
  color: #0071e3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
}

.event-card:hover .card-link {
  background: #0058b0;
  color: #fff;
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .event-card {
    flex-direction: column;
  }
  .event-card .card-img {
    flex: 0 0 250px;
    max-width: 100%;
    height: 160px;
  }
}
/* Footer */
.foot {
  background: #3d3d3d;
  padding: 40px 0 30px;
}

.foot .row > [class*=col-] {
  margin-bottom: 20px;
}

.foot .row > [class*=col-]:last-child {
  margin-bottom: 0;
}

.foot .foot-item h5 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.foot .foot-item .address p {
  color: #ccc;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.foot .foot-item .address a {
  color: #ccc;
  text-decoration: none;
}

.foot .foot-item .address a:hover {
  color: #fff;
}

.foot .foot-item .address i {
  margin-right: 6px;
  color: #aaa;
}

footer {
  background: #2e2e2e;
  padding: 20px 0 10px;
  border-top: 1px solid #444;
}

footer p,
footer ul li a {
  color: #bbb;
  font-size: 1.275rem;
}

footer a {
  color: #bbb;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

footer .list-inline > li {
  padding-left: 8px;
  padding-right: 8px;
}

/* Social icons */
footer .brand-bg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

footer .brand-bg a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 5px;
  font-size: 1.8rem;
  color: #fff !important;
  text-decoration: none;
}

footer .brand-bg a.twitter {
  background: #666666;
}

footer .brand-bg a.flickr {
  background: #666666;
}

footer .brand-bg a.youtube {
  background: #666666;
}

footer .brand-bg a.linkedin {
  background: #666666;
}

footer .brand-bg a.instagram {
  background: #666666;
}

/* Foot & footer on mobile */
@media (max-width: 767px) {
  .foot .row {
    text-align: center;
  }
  .foot .foot-item {
    text-align: center;
  }
  .foot .foot-item h5 {
    text-align: center;
  }
  .foot .foot-item .address {
    text-align: center;
  }
  footer .pull-left,
  footer .pull-right {
    float: none !important;
    text-align: center;
  }
  footer .list-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
  }
  footer .brand-bg {
    justify-content: center;
  }
}
