.rgc-content-hub,
.rgc-content-hub * {
  box-sizing: border-box;
}

body.post-type-archive-rgc_speaker,
body.single-rgc_speaker,
body.post-type-archive-rgc_news,
body.single-rgc_news {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
}

body.post-type-archive-rgc_speaker .site-header,
body.single-rgc_speaker .site-header,
body.post-type-archive-rgc_news .site-header,
body.single-rgc_news .site-header,
body.post-type-archive-rgc_speaker .site-footer,
body.single-rgc_speaker .site-footer,
body.post-type-archive-rgc_news .site-footer,
body.single-rgc_news .site-footer {
  display: none !important;
}

body.post-type-archive-rgc_speaker #site-header,
body.single-rgc_speaker #site-header,
body.post-type-archive-rgc_news #site-header,
body.single-rgc_news #site-header,
body.post-type-archive-rgc_speaker #site-footer,
body.single-rgc_speaker #site-footer,
body.post-type-archive-rgc_news #site-footer,
body.single-rgc_news #site-footer,
body.post-type-archive-rgc_speaker .site-navigation-dropdown,
body.single-rgc_speaker .site-navigation-dropdown,
body.post-type-archive-rgc_news .site-navigation-dropdown,
body.single-rgc_news .site-navigation-dropdown {
  display: none !important;
}

body.post-type-archive-rgc_speaker .site-main,
body.single-rgc_speaker .site-main,
body.post-type-archive-rgc_news .site-main,
body.single-rgc_news .site-main {
  margin: 0 !important;
  padding: 0 !important;
}

.rgc-content-hub h1,
.rgc-content-hub h2,
.rgc-content-hub h3,
.rgc-content-hub h4,
.rgc-content-hub h5,
.rgc-content-hub h6 {
  margin: 0;
  font-family: var(--font-display);
}

.rgc-content-hub p {
  margin: 0;
}

.rgc-content-hub [data-rgc-header] img[alt="RGC Logo"] {
  height: 5rem !important;
  width: auto !important;
  max-width: none !important;
}

.rgc-content-hub a,
.rgc-content-hub a:hover,
.rgc-content-hub a:focus {
  text-decoration: none;
}

.rgc-content-hub [data-rgc-header] .hidden.lg\:flex > a:not(.text-accent) {
  color: rgba(255, 255, 255, 0.82);
}

.rgc-content-hub [data-rgc-header] .hidden.lg\:flex > a:hover {
  color: hsl(var(--accent));
}

.rgc-content-hub [data-rgc-mobile-toggle] {
  color: #ffffff !important;
  background: #26b9f2 !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0.75rem;
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none !important;
}

.rgc-content-hub [data-rgc-mobile-toggle] svg {
  color: #ffffff !important;
  width: 36px !important;
  height: 36px !important;
  stroke-width: 2.9 !important;
}

.rgc-content-hub [data-rgc-mobile-toggle][aria-expanded="true"],
.rgc-content-hub [data-rgc-mobile-toggle]:hover,
.rgc-content-hub [data-rgc-mobile-toggle]:active {
  background: #0f4ea8 !important;
  background-image: none !important;
}

.rgc-content-hub [data-rgc-mobile-toggle][aria-expanded="false"] {
  background: #26b9f2 !important;
  background-image: none !important;
}

.rgc-content-hub [data-rgc-mobile-toggle]:focus,
.rgc-content-hub [data-rgc-mobile-toggle]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35) !important;
}

.rgc-content-hub footer .py-14 .flex.flex-wrap.items-center.justify-center.gap-10.md\:gap-16 > div:nth-child(3) img {
  width: 13.5rem;
  height: auto !important;
}

@media (min-width: 768px) {
  .rgc-content-hub footer .py-14 .flex.flex-wrap.items-center.justify-center.gap-10.md\:gap-16 > div:nth-child(3) img {
    width: 16rem;
  }
}

.rgc-content-hub .rgc-mobile-panel.hidden {
  display: none;
}

.rgc-content-hub .rgc-mobile-panel.is-open {
  display: block;
}

.rgc-content-hub .rgc-icon-close.hidden,
.rgc-content-hub .rgc-icon-menu.hidden {
  display: none;
}

.rgc-content-hub [data-speaker-card].is-hidden,
.rgc-content-hub [data-rgc-speaker-card].is-hidden {
  display: none !important;
}

.rgc-content-hub .rgc-letter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 0;
}

.rgc-content-hub .rgc-letter-btn[disabled] {
  pointer-events: none;
}

.rgc-content-hub .rgc-speaker-search-wrap {
  position: relative;
  width: min(480px, 100%);
  margin: 0.2rem auto;
}

.rgc-content-hub .rgc-speaker-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
  opacity: 0.8;
  pointer-events: none;
}

.rgc-content-hub .rgc-speaker-search-input {
  width: 100%;
  height: 2.95rem;
  border-radius: 0.9rem;
  border: 1px solid hsl(var(--border) / 0.65);
  background: linear-gradient(180deg, hsl(var(--background) / 0.96), hsl(var(--secondary) / 0.45));
  padding: 0 1rem 0 2.9rem;
  color: hsl(var(--foreground));
  font-size: 0.95rem;
  box-shadow: 0 10px 22px hsl(var(--foreground) / 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.rgc-content-hub [data-rgc-speaker-search] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.9rem 50%;
  background-size: 1rem 1rem;
  padding-left: 2.8rem !important;
}

.rgc-content-hub .rgc-speaker-search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.rgc-content-hub .rgc-speaker-search-input:focus {
  outline: none;
  border-color: hsl(var(--accent) / 0.65);
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.2), 0 14px 28px hsl(var(--foreground) / 0.12);
}

.rgc-content-hub .rgc-news-hero {
  min-height: 720px !important;
  padding-top: 7.5rem !important;
}

@media (min-width: 1024px) {
  .rgc-content-hub .rgc-news-hero {
    min-height: 860px !important;
    padding-top: 9.5rem !important;
  }
}

.rgc-content-hub .rgc-letter-btn.is-active,
.rgc-content-hub .rgc-page-letter.is-active {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.rgc-content-hub .rgc-letter-btn.is-active {
  box-shadow: 0 8px 24px hsl(var(--accent) / 0.25);
  transform: scale(1.1);
}

body.rgc-modal-open {
  overflow: hidden;
}

.rgc-content-hub .rgc-speaker-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rgc-content-hub .rgc-speaker-modal.hidden {
  display: none;
}

.rgc-content-hub .rgc-speaker-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: hsl(var(--foreground) / 0.72);
  backdrop-filter: blur(4px);
}

.rgc-content-hub .rgc-speaker-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
   border-radius: 1.5rem;
  box-shadow: 0 28px 80px hsl(var(--foreground) / 0.35);
  padding: 1.5rem;
}

.rgc-content-hub .rgc-speaker-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  margin-left: 0;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: #26b9f2 !important;
  background-image: none !important;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  z-index: 5;
}

.rgc-content-hub .rgc-speaker-modal__close:hover,
.rgc-content-hub .rgc-speaker-modal__close:focus {
  background: #0f4ea8 !important;
}

.rgc-content-hub .rgc-speaker-modal__close svg {
  width: 28px;
  height: 28px;
  stroke-width: 3.2;
}

.rgc-content-hub .rgc-speaker-modal__body {
  margin-top: 1.25rem;
}

.rgc-content-hub .rgc-modal-avatar {
  width: 200px;
  height: 200px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .rgc-content-hub .rgc-speaker-modal__dialog {
    padding: 2rem;
  }
}

.rgc-speaker-bio p {
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
}

.rgc-news-content p {
  margin-bottom: 1.1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.85;
}

.rgc-news-content h2,
.rgc-news-content h3,
.rgc-news-content h4 {
  margin: 1.8rem 0 0.75rem;
  font-family: var(--font-display);
  color: hsl(var(--foreground));
}

.rgc-news-content ul,
.rgc-news-content ol {
  margin: 0 0 1rem 1.25rem;
  color: hsl(var(--muted-foreground));
}

.rgc-news-content a {
  color: hsl(var(--accent));
}

@media (max-width: 1024px) {
  .rgc-content-hub .lg\:hidden[data-rgc-mobile-toggle] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .rgc-content-hub [data-rgc-mobile-toggle],
  .rgc-content-hub [data-rgc-mobile-nav] {
    display: none !important;
  }
}
