* {
  box-sizing: border-box;
}
:root {
  --bg:          #1a1a1a;
  --bg-sidebar:  #242424;
  --bg-card:     #2a2a2a;
  --bg-card-hov: #2f2f2f;
  --border:      #333;
  --border-hov:  #f5a623;
  --text:        #e8e8e8;
  --text-muted:  #888;
  --accent:      #f5a623;
  --accent-dim:  rgba(245,166,35,.15);
  --radius:      14px;
  --transition:  0.3s ease;
  --font:        'Poppins', sans-serif;
  --sidebar-w:   280px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #0d0d0d;
  color: #ffffff;
}

.page {
  display: flex;
  gap: 24px;
  padding: 24px;
  align-items: flex-start;
}

/* SIDEBAR */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #1c1c1f, #151517);
  border: 1px solid #2c2c2f;
  border-radius: 28px;
  padding: 28px 24px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  height: fit-content;
  
}

.top {
  position: relative;
}

.avatar-box {
  width: 120px;
  height: 120px;
  background: #2a2a2d;
  border-radius: 28px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-box img {
  width: 78px;
  border-radius: 50%;
}

.name {
  text-align: center;
  font-size: 22px;
  margin: 22px 0 10px;
  font-weight: 600;
}

.role {
  width: fit-content;
  margin: 0 auto;
  background: #2a2a2d;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #ededed;
}

.line {
  height: 1px;
  background: #2f2f34;
  margin: 28px 0;
}

.info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #1d1d20;
  color: #f2c94c;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.label {
  margin: 0 0 4px;
  font-size: 12px;
  color: #8d8d94;
}

.value {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}
#mapContainer {
  transition: 0.3s;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
  cursor: pointer;
}

.socials i {
  color: #f2c94c;
  font-size: 18px;
}

/* MAIN CARD */
.main-card {
  flex: 1;
  background: linear-gradient(180deg, #1c1c1f, #151517);
  border: 1px solid #2c2c2f;
  border-radius: 28px;
  padding: 34px 28px 28px;
  position: relative;
}
.tabs-wrapper {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;   /* keeps it right side */
  z-index: 100;
}
.tabs {
  position: sticky;
  top: 0;
 /* right: 0;*/
  margin-left: auto;
  background: #202023;
  border-bottom-left-radius: 24px;
  border-top-right-radius: 28px;
  padding: 18px 28px;
  display: flex;
  gap: 28px;
  z-index: 10;
}

.tabs a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;

}
/* underline */
.tabs a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #facc15;
  transition: 0.3s;
}

.tabs a.active {
  color: #f2c94c;
}
.tabs a.active::after {
  width: 100%;
}
.tabs a:hover {
  color: #facc15;
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.7);


}

.tabs a:hover::after {
  width: 100%;
}

.toggle-btn {
  display: none;
  border: none;
  background: #202023;
  color: #f2c94c;
  width: 42px;
  height: 42px;
  border-radius: 0 18px 0 18px;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
}

.toggle-btn.active i {
  transform: rotate(180deg);
}

.toggle-btn i {
  transition: 0.3s;
}

.main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.main { padding: clamp(1.5rem, 4vw, 3rem) 0; flex: 1; }

.container {
  padding: 0 2rem;
}

.page-header { margin-bottom: 2rem; }

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: .4rem;
}

.title-accent {
  display: block;
  width: 40px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: .4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  border-color: var(--border-hov);
  background: var(--bg-card-hov);
}

.card-image-wrap {
  overflow: hidden;
  height: 190px;
}

.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.blog-card:hover .card-img { transform: scale(1.05); }

.card-body {
  padding: 1.2rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .76rem;
  margin-bottom: .6rem;
}

.card-category {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.card-dot,
.card-date { color: var(--text-muted); }

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .65rem;
  color: var(--text);
}

.card-excerpt {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: .9rem;
}

.card-extra { display: none; }
.card-extra.visible { display: inline; }

.read-more-btn {
  align-self: flex-start;
  padding: .38rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  margin-top: auto;
}

.read-more-btn:hover {
  background: var(--accent);
  color: #000;
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  grid-column: 1 / -1;
}

.blog-card.hidden { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.blog-card.fade-in { animation: fadeUp .5s ease both; }


/* MOBILE + TABLET */
@media (max-width: 1024px) {
  .page {
    flex-direction: column;
    padding: 14px 14px 90px;
  }

  
  .main-card {
    width: 100%;
    z-index: 1;
  }

  .sidebar {
    width:100%;
    padding: 18px 18px 16px;
    border-radius: 24px;
    z-index: 2;
    box-sizing: border-box;
    position: relative !important;
    top:unset;
  }

  .top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 52px;
    position: relative;
  }

  .avatar-box {
    width: 88px;
    height: 88px;
    margin: 0;
    border-radius: 22px;
  }

  .avatar-box img {
    width: 60px;
  }

  .top-text {
    flex: 1;
  }

  .name {
    text-align: left;
    margin: 0 0 10px;
    font-size: 18px;
  }

  .role {
    margin: 0;
    font-size: 13px;
  }

  .toggle-btn {
    display: block;
  }

  .sidebar-content {
    display: none;
  }

  .sidebar-content.active {
    display: block;
  }

  .main-card {
    padding: 28px 16px 24px;
    border-radius: 24px;
    overflow:hidden;
    box-sizing: border-box;
  }
  .tabs-wrapper {
    position: static;
    display: block;
  }

  .tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 6px;
    padding: 14px 8px;
    background: rgba(32, 32, 35, 0.97);
    border-top: 1px solid #2f2f34;
    border-radius: 18px 18px 0 0;
    backdrop-filter: blur(10px);
    z-index: 999;
  }

  .tabs a {
    font-size: 12px;
  }

  .blog-grid { grid-template-columns: 1fr; }
  .page-wrapper { flex-direction: column; }

}
