/* =========================
   GLOBAL
========================= */
.events-page {
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

/* =========================
   HERO
========================= */

.events-hero {
  --grid-size: 40px;           /* Slightly larger grid squares look cleaner across wide layouts */
  --grid-color: 255, 255, 255; 
  --grid-opacity: 0.025;       /* 2.5% opacity keeps it visible but strictly sub-surface */
  --grid-thickness: 1px;
  background-color: #1E5C2E;   
  background-image:
  linear-gradient(90deg, rgba(10, 26, 15, 0.4) 0%, transparent 60%),
  linear-gradient(rgba(var(--grid-color), var(--grid-opacity)) var(--grid-thickness), transparent var(--grid-thickness)),
  linear-gradient(90deg, rgba(var(--grid-color), var(--grid-opacity)) var(--grid-thickness), transparent var(--grid-thickness)),
  linear-gradient(135deg, #0a1a0f 0%, #1E5C2E 100%);
  background-size: auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
  color: #fff;
  padding: 160px 20px 140px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.events-hero .container {
  max-width: 1300px;
  margin: auto;
  padding: 0 5%;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
  font-weight: 600;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--green-light);
  flex-shrink: 0;
}

.events-hero h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 25px;
  font-weight: 800;
  color: #fff;
  max-width: 750px;
}

.hero-text {
  max-width: 650px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

/* =========================
   FILTERS
========================= */

.events-filter-section {
  padding: 0 5%;
}

.event-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.filter-btn {
  border: solid 1px var(--green-dark);
  background: var(--bg);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--green-dark);
  color: #fff;
}

/* =========================
   GRID
========================= */

.events-grid-section {
  padding: 0 5%;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1300px;
  margin: 40px auto 80px auto;
}
/* =========================
   CARD
========================= */

.event-card {
  background: var(--bg);
  border-radius: 18px;
  overflow: hidden;
  transition: 0.35s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.event-card.hide {
  display: none;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* =========================
   IMAGE
========================= */

.event-image {
  height: 220px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

/* =========================
   CONTENT
========================= */

.event-content {
  padding: 22px;
}

.event-content h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 16px 0 12px;
  font-weight: 700;
}

.date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* =========================
   TAGS
========================= */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Training */
.training .tag {
  background: #e8f5e9;
  color: #1b5e20;
}

/* Compliance */
.compliance .tag {
  background: #e8f0fe;
  color: #1e40af;
}

/* Company */
.company .tag {
  background: #fff4e5;
  color: #b45309;
}

/* Milestone */
.milestone .tag {
  background: #f3e8ff;
  color: #7e22ce;
}

/* =========================
   LINK
========================= */

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: 0.3s ease;
}

.event-link:hover {
  opacity: 0.7;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .events-hero h1 {
    font-size: 34px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-image {
    height: 200px;
  }

}