.connect-page {
  color: #111827;
  background: #fff;
}

.connect-hero {
  position: relative;
  height: 610px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #1ea69e 0%, #0d5a57 100%);
}

.connect-hero-copy {
  position: relative;
  z-index: 2;
  width: 750px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding-top: 151px;
  text-align: center;
}

.connect-hero h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.45px;
}

.connect-hero-copy > p {
  margin: 21px 0 27px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 26px;
}

.connect-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.connect-hero-actions a {
  display: inline-flex;
  height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
}

.connect-primary-button {
  color: #fff;
  background: #fbbf24;
  box-shadow: 0 8px 18px rgba(14, 71, 67, 0.16);
}

.connect-primary-button:hover {
  color: #fff;
  background: #f59e0b;
}

.connect-secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.connect-secondary-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.connect-hero-mark {
  position: absolute;
  z-index: 1;
  right: 72px;
  bottom: 11px;
  width: 462px;
  height: 462px;
  object-fit: contain;
}

.connect-tabs {
  height: 56px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.connect-tabs .container {
  display: flex;
  height: 100%;
  align-items: stretch;
  gap: 36px;
}

.connect-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.connect-tabs a i {
  margin-right: 8px;
  font-size: 15px;
}

.connect-tabs a.active {
  color: #2563eb;
  font-weight: 700;
}

.connect-tabs a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #2563eb;
}

.forum-section {
  padding-top: 67px;
  padding-bottom: 67px;
  background: #f9fafb;
}

.forum-layout {
  display: grid;
  grid-template-columns: 790px 394px;
  gap: 32px;
}

.forum-heading {
  display: flex;
  height: 48px;
  align-items: flex-start;
  justify-content: space-between;
}

.forum-heading h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 38px;
  letter-spacing: -0.5px;
}

.new-post-button {
  display: inline-flex;
  height: 37px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.new-post-button i {
  margin-right: 6px;
}

.forum-post {
  position: relative;
  display: grid;
  min-height: 192px;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  margin-bottom: 16px;
  padding: 23px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  background: #fff;
}

.forum-post.featured-post {
  border-color: #bfdbfe;
}

.post-avatar,
.post-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.initial-avatar {
  display: grid;
  place-items: center;
  color: #f97316;
  background: #ffedd5;
  font-weight: 700;
}

.post-content {
  min-width: 0;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 19px;
  margin-bottom: 4px;
}

.post-author strong {
  font-size: 12px;
  font-weight: 700;
}

.post-author span {
  color: #9ca3af;
  font-size: 10px;
}

.post-label {
  position: absolute;
  top: 23px;
  right: 20px;
  height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 14px;
}

.label-blue {
  color: #2563eb;
  background: #eff6ff;
}

.label-green {
  color: #059669;
  background: #ecfdf5;
}

.label-orange {
  color: #f97316;
  background: #fff7ed;
}

.forum-post h3 {
  margin: 0 0 7px;
  padding-right: 58px;
  font-size: 17px;
  font-weight: 700;
  line-height: 25px;
}

.forum-post p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 19px;
}

.post-tags {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.post-tags span {
  padding: 2px 7px;
  border-radius: 4px;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 9px;
}

.post-stats {
  display: flex;
  gap: 17px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #f3f4f6;
  color: #6b7280;
  font-size: 11px;
}

.post-stats i {
  margin-right: 6px;
}

.pin-icon {
  position: absolute;
  top: -10px;
  right: -9px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #2563eb;
  background: #dbeafe;
  font-size: 13px;
}

.load-posts-button {
  display: inline-flex;
  width: 100%;
  height: 49px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #4b5563;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.load-posts-button:hover {
  color: #111827;
  background: #f9fafb;
}

.featured-member .initial-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forum-sidebar {
  padding-top: 0;
}

.sidebar-card {
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  background: #fff;
}

.sidebar-card h2 {
  margin: 0 0 15px;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

.sidebar-card h2 i {
  margin-right: 9px;
  color: #2563eb;
}

.topic-card {
  min-height: 338px;
}

.topic-card button,
.topic-card > a {
  display: flex;
  width: 100%;
  height: 41px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: #6b7280;
  background: transparent;
  font-size: 12px;
  text-decoration: none;
  text-align: left;
}

.topic-card button.active,
.topic-card > a.active {
  color: #2563eb;
  background: #eff6ff;
}

.topic-card button span i,
.topic-card > a span i {
  margin-right: 9px;
}

.topic-card button strong,
.topic-card > a strong {
  min-width: 33px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 10px;
  font-weight: 600;
}

.topic-card button.active strong,
.topic-card > a.active strong {
  color: #2563eb;
  background: #dbeafe;
}

.member-card {
  min-height: 176px;
  margin-top: 30px;
}

.member-card h2 i {
  color: #f97316;
}

.featured-member {
  display: flex;
  height: 48px;
  align-items: center;
}

.featured-member img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  object-fit: cover;
}

.featured-member > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin-left: 11px;
}

.featured-member > span strong {
  font-size: 11px;
  line-height: 17px;
}

.featured-member > span small {
  color: #9ca3af;
  font-size: 9px;
}

.featured-member em {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 4px;
  color: #d97706;
  background: #fef3c7;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.featured-member em.rank-two {
  color: #475569;
  background: #f1f5f9;
}

.mentor-section {
  padding-top: 83px;
  padding-bottom: 34px;
  background: #fff;
}

.mentor-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 38px;
}

.mentor-heading h2,
.community-heading h2 {
  margin: 0 0 9px;
  font-size: 30px;
  font-weight: 800;
  line-height: 38px;
  letter-spacing: -0.4px;
}

.mentor-heading p,
.community-heading p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 21px;
}

.mentor-filter select {
  width: 166px;
  height: 40px;
  line-height: 40px;
  padding: 0 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: 0;
  color: #4b5563;
  background: #fff;
  font-size: 12px;
}

.mentor-filter .portal-select-wrap {
  width: 166px;
}

.mentor-filter .portal-select-trigger {
  height: 40px;
  border-radius: 8px;
  font-size: 12px;
}

.mentor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.mentor-card {
  display: flex;
  height: 319px;
  flex-direction: column;
  padding: 22px 24px 23px;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 7px rgba(15, 23, 42, 0.08);
}

.mentor-profile {
  position: relative;
  display: flex;
  min-height: 84px;
  align-items: flex-start;
}

.mentor-profile > img {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.mentor-profile > div {
  min-width: 0;
  margin-left: 13px;
  padding-top: 5px;
}

.mentor-profile h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  line-height: 20px;
  white-space: nowrap;
}

.mentor-profile h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mentor-profile h3 a:hover {
  color: #0284c7;
  text-decoration: underline;
}

.mentor-profile strong {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  color: #4b5563;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.mentor-profile span {
  color: #9ca3af;
  font-size: 10px;
}

.mentor-profile em {
  position: absolute;
  bottom: 0;
  left: 55px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  background: #22c55e;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.mentor-profile em i {
  margin-right: 2px;
  font-size: 8px;
}

.mentor-card > p {
  display: -webkit-box;
  min-height: 57px;
  overflow: hidden;
  margin: 15px 0 10px;
  color: #6b7280;
  font-size: 11px;
  line-height: 19px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mentor-tags {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.mentor-tags span {
  padding: 4px 9px;
  border-radius: 5px;
  color: #059669;
  background: #ecfdf5;
  font-size: 9px;
  font-weight: 600;
}

.mentor-tags span:last-child {
  color: #4b5563;
  background: #f3f4f6;
}

.mentor-tags.purple-tags span {
  color: #7c3aed;
  background: #f5f3ff;
}

.mentor-tags.orange-tags span {
  color: #ea580c;
  background: #fff7ed;
}

.mentor-card > button,
.mentor-book-button {
  display: inline-flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 0;
  border-radius: 9px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

.view-mentors {
  display: block;
  width: max-content;
  margin: 32px auto 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.community-section {
  padding-top: 82px;
  padding-bottom: 82px;
  color: #fff;
  background: #0f172a;
}

.community-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 41px;
}

.community-heading p {
  color: #94a3b8;
}

.community-heading button,
.community-create-button {
  display: inline-flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid #475569;
  border-radius: 9px;
  color: #fff;
  background: #1e293b;
  font-size: 12px;
  font-weight: 700;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.community-card,
.discover-community {
  height: 318px;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 13px;
  background: #1e293b;
}

.community-cover {
  position: relative;
  height: 128px;
}

.community-ai .community-cover {
  background: linear-gradient(135deg, #3b82f6, #9333ea);
}

.community-agri .community-cover {
  background: linear-gradient(135deg, #10b981, #0f9a84);
}

.community-startup .community-cover {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.community-privacy {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  background: rgba(30, 41, 59, 0.72);
  font-size: 8px;
  font-weight: 700;
}

.community-privacy.private {
  background: rgba(127, 29, 29, 0.78);
}

.community-body {
  position: relative;
  height: 190px;
  padding: 32px 18px 17px;
}

.community-logo {
  position: absolute;
  top: -31px;
  left: 17px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 9px;
  color: #2563eb;
  background: #fff;
  font-size: 18px;
  font-weight: 900;
}

.community-agri .community-logo {
  color: #059669;
}

.community-startup .community-logo {
  color: #ea580c;
}

.community-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.community-body p {
  min-height: 54px;
  margin: 0 0 15px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 18px;
}

.community-body > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 10px;
}

.community-body > div i {
  margin-right: 5px;
}

.community-body > div a {
  color: #60a5fa;
  font-weight: 700;
}

.community-agri .community-body > div a {
  color: #34d399;
}

.community-startup .community-body > div a {
  color: #fff;
}

.discover-community {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #94a3b8;
}

.discover-community > i {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 19px;
  border: 1px solid #64748b;
  border-radius: 50%;
  font-size: 23px;
}

.discover-community strong {
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 16px;
}

.discover-community span {
  font-size: 11px;
}

/* ==================== FEATURED EVENTS SECTION ==================== */
.event-section {
  padding-top: 80px;
  padding-bottom: 72px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.event-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.event-heading h2 {
  margin: 0 0 9px;
  font-size: 30px;
  font-weight: 800;
  line-height: 38px;
  letter-spacing: -0.4px;
  color: #0f172a;
}

.event-heading p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 21px;
}

.event-explore-button {
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #0f172a;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.event-explore-button:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.featured-event-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.featured-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.fec-banner {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: #f1f5f9;
}

.fec-banner a {
  display: block;
  width: 100%;
  height: 100%;
}

.fec-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured-event-card:hover .fec-banner img {
  transform: scale(1.05);
}

.fec-banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #3b82f6;
  font-size: 40px;
  text-decoration: none;
}

.fec-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  line-height: 1;
}

.fec-date-day {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.fec-date-month {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2563eb;
  margin-top: 3px;
}

.fec-format-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.fec-format-badge.online {
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
}

.fec-format-badge.in-person {
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
}

.fec-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.fec-category {
  margin-bottom: 8px;
}

.fec-type-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
}

.fec-type-pill.blue {
  color: #2563eb;
  background: #eff6ff;
}

.fec-type-pill.purple {
  color: #7c3aed;
  background: #f5f3ff;
}

.fec-type-pill.orange {
  color: #ea580c;
  background: #fff7ed;
}

.fec-type-pill.green {
  color: #059669;
  background: #ecfdf5;
}

.fec-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 44px;
}

.fec-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.fec-title a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.fec-desc {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 11px;
  line-height: 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 36px;
}

.fec-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.fec-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 11px;
  line-height: 16px;
}

.fec-meta-item i {
  color: #3b82f6;
  font-size: 12px;
  flex-shrink: 0;
}

.fec-action-button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  border-radius: 8px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.fec-action-button:hover {
  background: #2563eb;
  color: #fff;
}

.fec-action-button i {
  transition: transform 0.2s ease;
}

.fec-action-button:hover i {
  transform: translateX(3px);
}

.view-events {
  display: block;
  width: max-content;
  margin: 36px auto 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.view-events:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.connect-pre-footer {
  height: 84px;
  background: #fff;
}

@media (max-width: 1199.98px) {
  .connect-hero {
    height: 570px;
  }

  .connect-hero-copy {
    padding-top: 125px;
  }

  .connect-hero-mark {
    right: -45px;
    width: 380px;
    height: 380px;
    opacity: 0.85;
  }

  .forum-section,
  .mentor-section,
  .community-section,
  .event-section {
    height: auto;
    padding: 64px 0;
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forum-layout {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  }

  .mentor-card {
    height: auto;
    min-height: 319px;
  }
}

@media (max-width: 991.98px) {
  .connect-hero h1 {
    font-size: 48px;
  }

  .forum-layout {
    grid-template-columns: 1fr;
  }

  .forum-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .member-card {
    margin-top: 0;
  }

  .mentor-grid {
    grid-template-columns: 1fr;
  }

  .mentor-card {
    min-height: 280px;
  }

  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .connect-hero {
    height: 530px;
  }

  .connect-hero-copy {
    padding-top: 80px;
  }

  .connect-hero h1 {
    font-size: 38px;
  }

  .connect-hero-copy > p {
    font-size: 14px;
    line-height: 23px;
  }

  .connect-hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .connect-hero-actions a {
    width: min(310px, 100%);
  }

  .connect-hero-mark {
    right: -70px;
    width: 275px;
    height: 275px;
    opacity: 0.45;
  }

  .connect-tabs {
    height: auto;
  }

  .connect-tabs .container {
    gap: 16px;
    overflow-x: auto;
  }

  .connect-tabs a {
    min-height: 56px;
    flex: 0 0 auto;
    font-size: 11px;
  }

  .forum-section,
  .mentor-section,
  .community-section,
  .event-section {
    padding: 48px 0;
  }

  .forum-heading h2,
  .mentor-heading h2,
  .community-heading h2,
  .event-heading h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .event-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .forum-post {
    grid-template-columns: 34px 1fr;
    padding: 18px 15px;
  }

  .post-avatar,
  .post-avatar img {
    width: 34px;
    height: 34px;
  }

  .post-label {
    position: static;
    display: inline-block;
    margin-bottom: 5px;
  }

  .forum-post h3 {
    padding-right: 0;
    font-size: 15px;
    line-height: 22px;
  }

  .pin-icon {
    right: 5px;
  }

  .forum-sidebar {
    grid-template-columns: 1fr;
  }

  .mentor-heading,
  .community-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .mentor-grid,
  .community-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .mentor-profile h3 {
    white-space: normal;
  }

  .community-card,
  .discover-community {
    height: 300px;
  }

  .connect-pre-footer {
    height: 48px;
  }
}

@media (max-width: 399.98px) {
  .post-author {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    height: auto;
  }

  .mentor-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .mentor-profile > img {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .mentor-profile em {
    left: 42px;
  }
}
