/* Events Archive & Event Detail pages - custom styles (Micronet International College) */

.mic-archive-section {
  padding: 60px 20px 70px;
  background: #f4f7fa;
}

.mic-archive-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.mic-archive-heading {
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: #1c355e;
  margin: 0 0 8px;
}

.mic-archive-subheading {
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  color: #5b6b7f;
  font-size: 1.05rem;
  margin: 0 0 40px;
}

.mic-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 991px) {
  .mic-archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .mic-archive-grid { grid-template-columns: 1fr; }
}

.mic-event-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(20, 40, 70, 0.10);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mic-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(20, 40, 70, 0.18);
}

.mic-event-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #dce4ec;
}

.mic-event-card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mic-event-date {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  background: #478ac9;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.mic-event-card.is-archived .mic-event-date {
  background: #8a97a8;
}

.mic-event-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1c355e;
  margin: 0 0 10px;
  line-height: 1.3;
}

.mic-event-excerpt {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  color: #5b6b7f;
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.mic-event-readmore {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #478ac9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mic-event-readmore::after {
  content: "\2192";
  transition: transform 0.18s ease;
}

.mic-event-card:hover .mic-event-readmore::after {
  transform: translateX(4px);
}

/* ---------- Event Detail Page ---------- */

.mic-event-detail-section {
  padding: 50px 20px 70px;
  background: #f4f7fa;
}

.mic-event-detail-inner {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(20, 40, 70, 0.10);
}

.mic-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #478ac9;
  text-decoration: none;
  margin: 0 0 20px;
}

.mic-back-link::before {
  content: "\2190";
}

.mic-event-detail-hero {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
  background: #dce4ec;
}

.mic-event-detail-body {
  padding: 34px 40px 44px;
}

@media (max-width: 600px) {
  .mic-event-detail-body { padding: 26px 20px 34px; }
}

.mic-event-detail-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #1c355e;
  margin: 0 0 12px;
  line-height: 1.25;
}

.mic-event-detail-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #3c4a5c;
  line-height: 1.75;
  white-space: pre-line;
}

.mic-event-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .mic-event-gallery { grid-template-columns: repeat(2, 1fr); }
}

.mic-event-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #dce4ec;
}

/* ---------- View More on Instagram card ---------- */

.mic-view-more-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #1c355e 0%, #478ac9 100%);
}

.mic-view-more-card .mic-event-card-body {
  align-items: center;
  text-align: center;
}

.mic-view-more-icon {
  font-size: 2.4rem;
  color: #ffffff;
  padding-top: 26px;
}

.mic-view-more-card .mic-event-date {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  align-self: center;
}

.mic-view-more-card .mic-event-title {
  color: #ffffff;
}

.mic-view-more-card .mic-event-excerpt {
  color: #dce7f2;
}

.mic-view-more-card .mic-event-readmore {
  color: #ffffff;
}
