@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato/Lato-Regular.ttf") format("truetype"),
    url("../fonts/Lato/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Apply it to the body */
body {
  font-family: "Lato", Arial, sans-serif;
  font-size: 20px;
  color: #333;
}

/* about_us.php */

/* default vertical for mobile */
.founder {
  display: flex;
  flex-direction: column; /* default: vertical (mobile) */
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.founder_img {
  width: 500px;
  height: 420px;
  object-fit: contain;
  border-radius: 10px;
}

.founder_content,
.mission-stmt {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px;
}

.row {
  display: flex;
  flex-direction: column;
  margin: 5px 10px;
}

.col,
.col-img {
  margin: 20px;
  border-radius: 10px;
}

.col img {
  width: 40%;
  height: auto;
}

.col {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 35px;
  padding: 30px;
}

.col h3 {
  color: #038c25;
  font-size: 18px;
  font-weight: 700;
  font-family: "Lato";
}

.col p {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0px;
  text-transform: none;
  color: #606060;
}

.btn {
  background-color: #28a745;
  color: #ffffff;
}

.btn:hover {
  background-color: #02681b;
  color: #ffffff;
}

/* desktop and larger screens */
@media (min-width: 768px) {
  .founder,
  .mission-stmt {
    display: flex;
    flex-direction: row;
  }

  .founder_content {
    align-items: start;
  }

  .row {
    flex-direction: row;
    margin: 20px;
  }

  .col,
  .col-img {
    width: 50%;
  }

  .col h3 {
    font-size: 28px;
  }
}

/* user profile */
.profile-header {
  background: linear-gradient(135deg, #198754, #28a745);
  color: #fff;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 30px;
}

.profile-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
}

.tab-content {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

table th {
  background-color: #198754;
  color: #fff;
}

table td,
table th {
  vertical-align: middle;
}

.badge-status {
  font-size: 0.9rem;
}

/* webinars.php */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #038c25;
  --radius: 14px;
  --gap: 22px;
  --max-width: 1200px;
  --shadow: 0 8px 24px rgba(13, 20, 33, 0.06);
  font-family: "Lato", "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

.container {
  max-width: var(--max-width);
  margin: 100px auto;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-title h1 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.2px;
}

.parent {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 100px;
}

/* Card */
.conf-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: start;
  justify-content: start;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.conf-card .card-media {
  width: 100%;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  flex-shrink: 0;
}

.conf-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.3s ease;
}

.conf-card:hover .card-media img {
  transform: scale(1.03);
}

.conf-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 0 6px;
}

.conf-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-bottom: 12px;
}

.meta .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.meta .date-pill {
  background: rgba(15, 98, 254, 0.06);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}

.conf-card p {
  color: var(--muted);
  margin: 6px 0 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.conf-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  background: var(--accent);
  color: white;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(15, 98, 254, 0.12);
  transition: all 0.3s ease;
}

/* --- GRAYED OUT / PAST EVENT STYLES (NEW) --- */
.event-ended {
  background-color: #f7f7f7;
  box-shadow: 0 4px 15px rgba(13, 20, 33, 0.03);
}

.event-ended .card-media img {
  filter: grayscale(80%) opacity(0.7);
}

.event-ended h3,
.event-ended .meta-item,
.event-ended .meta-item strong,
.event-ended p {
  color: #8c8c8c !important;
}

.event-ended .date-pill {
  background: #e0e0e0 !important;
  color: #666 !important;
}

.event-ended .btn {
  background: #757575 !important;
  box-shadow: none !important;
}

/* ------------------------------------------- */

/* Alternate layout for small screens */
@media (max-width: 880px) {
  .conf-card {
    grid-template-columns: 1fr;
  }

  .conf-card .card-media {
    height: 170px;
  }
}

/* Small tweaks for very narrow screens */
@media (max-width: 420px) {
  body {
    padding: 16px 10px;
  }

  .conf-card .card-media {
    height: 140px;
  }

  .page-title h1 {
    font-size: 16px;
  }
}

/* subtle divider */
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(11, 18, 32, 0),
    rgba(11, 18, 32, 0.04),
    rgba(11, 18, 32, 0)
  );
  margin: 8px 0 0 0;
}
