/* ---- Light tokens (page-scoped) ---- */
.student-accommodation-page {
  --sa-bg: #ffffff;
  --sa-surface: #ffffff;
  --sa-surface-2: #f6f8fb;
  --sa-text: #1f2937;
  --sa-muted: #6b7280;
  --sa-border: #e5e7eb;
  --sa-accent: #a51c36;
  /* brand red */
  --sa-shadow: 0 10px 30px rgba(16, 24, 40, .06);
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

/* ---- Dark tokens (inherit from your global .theme-dark) ---- */
.theme-dark .student-accommodation-page {
  --sa-bg: #0b1220;
  --sa-surface: #0f172a;
  --sa-surface-2: #111a2f;
  --sa-text: #e5e7eb;
  --sa-muted: #94a3b8;
  --sa-border: #1f2a44;
  --sa-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

/* Container rhythm */
.student-accommodation-page .sa-container {
  max-width: 1200px;
}

/* Surfaces */
.student-accommodation-page .sa-surface {
  background: var(--sa-surface);
  color: var(--sa-text);
  border: 1px solid var(--sa-border);
  border-radius: 14px;
  box-shadow: var(--sa-shadow);
}

/* Article */
.student-accommodation-page .sa-article {
  padding: 1.25rem 1.25rem 1rem;
}

@media (min-width: 768px) {
  .student-accommodation-page .sa-article {
    padding: 1.75rem;
  }
}

.student-accommodation-page .sa-article-header {
  margin-bottom: .75rem;
}

.student-accommodation-page .sa-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: .75rem;
  color: var(--sa-muted);
  margin-bottom: .25rem;
}

.student-accommodation-page .sa-title {
  color: var(--sa-accent) !important;
  /* keep red in both modes */
  font-weight: 800;
  line-height: 1.15;
}

.student-accommodation-page .sa-intro {
  color: var(--sa-muted);
  margin: .25rem 0 1rem;
}

/* Body text */
.student-accommodation-page .sa-body p {
  margin-bottom: 1rem;
}

/* Headings inside article */
.student-accommodation-page .sa-h2 {
  margin: 1.2rem 0 .5rem;
  font-weight: 700;
  color: var(--sa-text);
}

.student-accommodation-page .sa-h3 {
  font-weight: 700;
}

/* Media */
.student-accommodation-page .sa-figure {
  margin: 0;
}

.student-accommodation-page .sa-media {
  display: block;
  width: 100%;
}

.student-accommodation-page .sa-figcap {
  font-size: .85rem;
  color: var(--sa-muted);
  margin-top: .35rem;
}

/* List */
.student-accommodation-page .sa-list {
  padding-left: 1.1rem;
  margin: .5rem 0 1.25rem;
}

.student-accommodation-page .sa-list li {
  margin-bottom: .4rem;
}

/* Callout */
.student-accommodation-page .sa-callout {
  background: var(--sa-surface-2);
  border: 1px dashed var(--sa-border);
  border-radius: 10px;
  padding: .75rem .9rem;
  margin: 1rem 0;
}

/* Banner wrapper */
.student-accommodation-page .sa-banner img {
  width: 100%;
}

/* Sidebar */
.student-accommodation-page .sa-sticky {
  position: sticky;
  top: 1rem;
}

.student-accommodation-page .sa-card {
  background: var(--sa-surface);
  border: 1px solid var(--sa-border);
  border-radius: 12px;
  box-shadow: var(--sa-shadow);
}

/* Ads */
.student-accommodation-page .ad-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.student-accommodation-page .ad-card:hover {
  transform: translateY(-3px);
}

.student-accommodation-page .ad-content {
  position: relative;
}

.student-accommodation-page .ad-image {
  display: block;
  width: 100%;
  height: auto;
}

.student-accommodation-page .ad-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
  padding: 12px 10px;
  opacity: 0;
  transition: opacity .25s ease;
}

.student-accommodation-page .ad-card:hover .ad-overlay {
  opacity: 1;
}

.student-accommodation-page .ad-cta {
  background: var(--sa-accent);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* Social widget */
.student-accommodation-page .social-media-widget {
  border: none;
}

.student-accommodation-page .social-icons-container {
  background: var(--sa-surface-2);
  border-top: 1px solid var(--sa-border);
}

.student-accommodation-page .social-icon-link {
  transition: transform .15s ease;
}

.student-accommodation-page .social-icon-link:hover {
  transform: scale(1.06);
}

/* Mobile layout niceties */
@media (max-width: 991px) {
  .student-accommodation-page .sidebar-container {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
  }

  .student-accommodation-page .ad-card {
    flex: 1 1 calc(50% - .75rem);
  }

  .student-accommodation-page .social-media-widget {
    flex: 1 1 100%;
  }
}

@media (max-width: 576px) {
  .student-accommodation-page .sa-title {
    font-size: 1.3rem;
  }

  .student-accommodation-page .ad-card {
    flex: 1 1 100%;
  }
}

.ad-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.ad-card:hover {
  transform: translateY(-5px);
}

.sell-property-overlay,
.ad-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0));
  padding: 20px;
}

.social-media-widget {
  position: relative;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-media-header {
  position: relative;
  overflow: hidden;
}

.social-media-bg {
  width: 100%;
  height: auto;
}

.social-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  flex-direction: column;
}

.social-icons-container {
  background-color: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

.social-icon-link {
  transition: transform 0.2s ease;
}

.social-icon-link:hover {
  transform: scale(1.1);
}

.advert-example {
  background-color: #f8f9fa;
  height: 100%;
}


.social-icons-container {
  background-color: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #a51c36;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: transform .15s;
}


.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px) !important;
}

/* Social media brand colors on hover */
.social-icon.facebook {
  background-color: #3b5998 !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(59, 89, 152, 0.4) !important;
}

.social-icon.twitter {
  background-color: rgb(34, 34, 34) !important;
  color: #fff !important;
  box-shadow: 0 1px 1px rgba(241, 239, 239, 0.7) !important;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80) !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(225, 48, 108, 0.4) !important;
}

.social-icon.linkedin {
  background-color: #0077B5 !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(0, 119, 181, 0.4) !important;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px) !important;
}

.social-icon.facebook:hover {
  background-color: #3b5998 !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(59, 89, 152, 0.4) !important;
}

.social-icon.twitter:hover {
  background-color: rgb(34, 34, 34) !important;
  color: #fff !important;
  box-shadow: 0 3px 3px rgba(241, 239, 239, 0.7) !important;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80) !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(225, 48, 108, 0.4) !important;
}

.social-icon.linkedin:hover {
  background-color: #0077B5 !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(0, 119, 181, 0.4) !important;
}