/* Start Page CSS - Styles specific to index.php */

/* ============================================
   Welcome and News Sections
   ============================================ */
/* Welcome and news sections in index.php should not have extra padding */
.welcome-section,
.news-section {
  padding: 0; /* Let the card padding handle spacing */
}

.news-section {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ============================================
   Modern Dashboard Styling (Logged In)
   ============================================ */
/* Main content card for logged-in users */
.main-content > .card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(30, 30, 30, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
              0 0 0 1px rgba(6, 182, 212, 0.1) inset;
  animation: fadeInUp 0.6s ease-out;
}

.main-content > .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.03) 0%, 
    transparent 30%,
    transparent 70%,
    rgba(157, 78, 221, 0.03) 100%);
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
}

.main-content > .card > * {
  position: relative;
  z-index: 1;
}

/* Welcome Section Modern Styling */
.welcome-section {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.welcome-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(6, 182, 212, 0.3) 50%,
    transparent 100%);
}

.title-highlight {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}

/* News Section Modern Styling */
.news-header {
  position: relative;
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.news-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(157, 78, 221, 0.3) 50%,
    transparent 100%);
}

.news-header .h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern News Items */
.news-list a.news-item,
.news-list .news-item {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: var(--spacing-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.news-list .news-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, 
    rgba(157, 78, 221, 0.6) 0%,
    rgba(6, 182, 212, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-list .news-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(157, 78, 221, 0.2);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.news-list a.news-item:hover,
.news-list a.news-item:focus-visible,
.news-list a.news-item:active {
  text-decoration: none;
  color: inherit;
}

.news-list .news-item:hover::before {
  opacity: 1;
}

.news-item-title a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: var(--spacing-xs);
}

.news-item-title a:hover {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-item-excerpt {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-xs);
}

.news-item-meta {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Sidebar Cards Modern Styling */
.sidebar-left > .card,
.sidebar-right > .card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(30, 30, 30, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
              0 0 0 1px rgba(157, 78, 221, 0.1) inset;
}

.sidebar-left > .card::before,
.sidebar-right > .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(157, 78, 221, 0.02) 0%, 
    transparent 50%,
    rgba(6, 182, 212, 0.02) 100%);
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
}

.sidebar-left > .card > *,
.sidebar-right > .card > * {
  position: relative;
  z-index: 1;
}

.sidebar-left .card-header,
.sidebar-right .card-header {
  position: relative;
  padding-bottom: 0;
  margin-bottom: var(--spacing-md);
}

.sidebar-left .card-header::after,
.sidebar-right .card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(157, 78, 221, 0.3) 50%,
    transparent 100%);
}

.sidebar-left .card-header .h3,
.sidebar-right .card-header .h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern List Items */
.list-item {
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: var(--spacing-xs);
}

.list-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(2px);
}

.list-item-link {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.list-item-link:hover {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.list-item-meta,
.list-item-date {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Section Headings in Sidebar */
.sidebar-left .h4,
.sidebar-right .h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-family: var(--font-brand);
  font-size: 4rem;
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
}

.hero-intro {
  text-align: center;
}

.hero-intro-large {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.hero-intro-medium {
  font-size: 1.1rem;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.hero-section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.hero-how-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: calc(var(--spacing-lg) * 0.7);
}

.hero-how-collapsible .hero-how-title-desktop {
  margin-bottom: calc(var(--spacing-xl) * 0.7);
}

.hero-how-text {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

.hero-how-text-bold {
  font-weight: 600;
  color: var(--color-text);
}

.hero-how-steps-wrap {
  width: 100%;
  margin-bottom: var(--spacing-lg);
}

.hero-how-steps {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-left: 1.25em;
  text-align: left;
  list-style: decimal;
  list-style-position: outside;
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.hero-how-steps li {
  text-align: left;
}

.hero-how-steps li + li {
  margin-top: var(--spacing-sm);
}

.hero-intro-muted {
  color: var(--color-text-muted);
  font-style: italic;
}

.hero-membership-header {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.hero-membership-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.hero-membership-list li {
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.hero-membership-list li:last-child {
  margin-bottom: var(--spacing-lg);
}

.hero-slogan {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-style: italic;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.hero-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 1rem;
  font-weight: 500;
}

/* ============================================
   Title Highlight
   ============================================ */
.title-highlight {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text) !important;
  -webkit-text-fill-color: var(--color-text) !important;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(157, 78, 221, 0.3) 100%);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  position: relative;
  text-align: center;
}

/* ============================================
   Welcome Text
   ============================================ */
.welcome-text {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-1px);
}

.stat-label {
  font-weight: 600;
  color: var(--color-text);
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.stat-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.stats-list.stats-coming-soon .stat-item {
  flex-direction: column;
  gap: var(--spacing-xs);
  text-align: center;
}

.stats-list.stats-coming-soon .stat-note {
  color: var(--color-text-light);
}

/* ============================================
   List Items
   ============================================ */
.list {
  margin-bottom: var(--spacing-sm);
}

.list-item {
  margin-bottom: var(--spacing-xs);
}

.sidebar-right .list-item.list-item-diary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-right .list-item.list-item-personal {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-right .list-item-diary .list-item-header,
.sidebar-right .list-item-personal .list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.sidebar-right .list-item-diary .list-item-username {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-right .list-item-diary .list-item-username:hover {
  color: var(--color-primary);
}

.sidebar-right .list-item-diary .list-item-date,
.sidebar-right .list-item-personal .list-item-date {
  color: var(--color-text-muted);
  font-size: 0.65rem;
  white-space: nowrap;
}

.sidebar-right .list-item-personal .list-item-header .list-item-meta {
  color: var(--color-text-muted);
  font-size: 0.65rem;
  flex: 1;
}

.list-item-title {
  margin-bottom: var(--spacing-xs);
}

.list-item-link {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.list-item-link:hover {
  color: var(--color-primary);
}

.list-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

/* Ensure diary-list-tag in sidebar-right for personals has correct styling */
.sidebar-right .list-item-personal .diary-list-tag {
  font-size: 0.65rem !important;
  padding: 0.15rem 0.4rem !important;
  border-radius: 12px !important;
  cursor: default !important;
  pointer-events: none !important;
  border: 1px solid transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

.sidebar-right .list-item-personal .diary-list-tag::after {
  display: none !important;
  content: '' !important;
}

.sidebar-right .list-item-personal .diary-list-tag:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Personals tag colors for diary-list-tag in sidebar */
.sidebar-right .list-item-personal .diary-list-tag[data-category="vibe"] {
  background: rgba(147, 51, 234, 0.15) !important;
  color: #c4b5fd !important;
  border-color: rgba(147, 51, 234, 0.35) !important;
}

.sidebar-right .list-item-personal .diary-list-tag[data-category="contact"] {
  background: rgba(14, 165, 233, 0.15) !important;
  color: #7dd3fc !important;
  border-color: rgba(14, 165, 233, 0.35) !important;
}

.sidebar-right .list-item-personal .diary-list-tag[data-category="safety"] {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #fde047 !important;
  border-color: rgba(234, 179, 8, 0.35) !important;
}

.sidebar-right .list-item-personal .diary-list-tag[data-category="location"] {
  background: rgba(20, 184, 166, 0.15) !important;
  color: #5eead4 !important;
  border-color: rgba(20, 184, 166, 0.35) !important;
}

.sidebar-right .list-item-personal .diary-list-tag[data-category="casual_expectations"] {
  background: rgba(251, 146, 60, 0.15) !important;
  color: #fdba74 !important;
  border-color: rgba(251, 146, 60, 0.35) !important;
}

.sidebar-right .list-item-personal .diary-list-tag[data-category="kink_safety"] {
  background: rgba(185, 28, 28, 0.15) !important;
  color: #fca5a5 !important;
  border-color: rgba(185, 28, 28, 0.35) !important;
}

.sidebar-right .list-item-personal .diary-list-tag[data-category="poly_dynamics"] {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #86efac !important;
  border-color: rgba(34, 197, 94, 0.35) !important;
}

.sidebar-right .list-item-personal .diary-list-tag[data-category="relation_focus"] {
  background: rgba(190, 24, 93, 0.15) !important;
  color: #f9a8d4 !important;
  border-color: rgba(190, 24, 93, 0.35) !important;
}

.sidebar-right .list-item-personal .diary-list-tag[data-category="collab_style"] {
  background: rgba(234, 88, 12, 0.15) !important;
  color: #fdba74 !important;
  border-color: rgba(234, 88, 12, 0.35) !important;
}

.sidebar-right .list-item-personal .diary-list-tag[data-category="social_activities"] {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #67e8f9 !important;
  border-color: rgba(6, 182, 212, 0.35) !important;
}

.sidebar-right .list-item-personal .diary-list-tag[data-category="castcrew_style"] {
  background: rgba(71, 85, 105, 0.15) !important;
  color: #cbd5e1 !important;
  border-color: rgba(71, 85, 105, 0.35) !important;
}

/* ============================================
   Thumbnail Grid
   ============================================ */
/* Thumbnail grid for sidebar gallery */
.thumbs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0; /* Prevent grid blowout */
}

/* Two-column grid for sidebar gallery */
.thumbs-grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
  display: grid !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

/* Ensure two-column grid works in sidebar */
.sidebar-right .thumbs-grid-2,
.sidebar-left .thumbs-grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  gap: 0.5rem !important;
}

/* Force grid layout even if parent has flex or other layout */
.sidebar-right .card-body .thumbs-grid-2,
.sidebar-left .card-body .thumbs-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.5rem !important;
}

/* Ensure thumb items in two-column grid are properly sized and don't expand */
.thumbs-grid-2 .thumb {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  flex: none !important;
  grid-column: span 1 !important;
  display: block !important;
}

/* Override any flex or inline styles that might break the grid */
.thumbs-grid-2 .thumb-link {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Ensure images inside two-column grid don't expand beyond container */
.thumbs-grid-2 .thumb-img {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
}

/* Override sidebar img rules for thumbnail grid images */
.sidebar-right .thumbs-grid-2 img,
.sidebar-left .thumbs-grid-2 img {
  max-width: 100% !important;
  height: 100% !important;
  width: 100% !important;
  object-fit: cover;
  display: block !important;
}

/* CRITICAL: Force grid to actually work by removing any conflicting styles */
.sidebar-right .thumbs-grid-2,
.sidebar-left .thumbs-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
}

.sidebar-right .thumbs-grid-2 > *,
.sidebar-left .thumbs-grid-2 > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

.thumb {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
  min-width: 0; /* Prevent grid blowout */
}

/* Limit image size directly - make them much smaller for sidebar */
.thumbs-grid-2 .thumb-img {
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Make thumb containers smaller - force them to respect grid */
.thumbs-grid-2 .thumb {
  aspect-ratio: 1 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.thumb-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.thumb-link {
  text-decoration: none;
  transition: transform 0.2s ease;
}

.thumb-link:hover {
  transform: scale(1.05);
}

/* ============================================
   Maintenance Banner
   ============================================ */
/* Maintenance Banner Styles */
.alert .maintenance-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  flex-direction: row;
}

.alert .maintenance-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.alert .maintenance-banner-text {
  text-align: center;
}

.alert .maintenance-banner-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  text-align: center;
}

.alert .maintenance-banner-text p {
  margin: 0;
  font-size: 1rem;
  text-align: center;
}

/* Reduce spacing for maintenance banners */
.maintenance-banner {
  margin-bottom: 0.5rem;
}

/* Launch prep mode banner — samma vertikala rytm som övriga sidor */
.alert-info.maintenance-banner {
  margin-top: var(--header-content-gap);
}

/* Reduce spacing in maintenance content */
.auth-card .vstack.gap-12 {
  gap: 0.5rem;
}

/* ============================================
   Hero Accordion (Mobile)
   ============================================ */
/* Toggle button styling */
.hero-toggle-btn {
  display: none; /* Hidden on desktop */
  width: 100%;
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  flex-direction: row;
  font-family: var(--font-family);
  height: auto;
  min-height: 38px;
}

.hero-toggle-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--color-primary-dark);
}

.hero-toggle-btn:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.hero-toggle-text {
  display: inline-block;
}

.hero-toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  margin-left: var(--spacing-xs);
}

.hero-toggle-btn[aria-expanded="true"] .hero-toggle-icon {
  transform: rotate(180deg);
}

/* Section header with toggle button */
.hero-section-header {
  display: none; /* Hidden on desktop */
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--spacing-md) 0;
  margin-bottom: 0;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  text-align: left;
  flex-direction: row;
}

.hero-section-header .hero-section-title,
.hero-section-header .hero-how-title,
.hero-section-header .hero-section-title-mobile,
.hero-section-header .hero-how-title-mobile {
  margin: 0;
  flex: 1;
}

.hero-section-header .hero-toggle-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

/* Collapsible content */
.hero-intro-extra,
.hero-section-content,
.hero-how-content {
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  overflow: hidden;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  /* Show toggle buttons on mobile */
  .hero-toggle-btn {
    display: flex;
  }
  
  /* Make the top "Läs mer" button less button-like and less prominent */
  .hero-intro .hero-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-text-light);
    padding: var(--spacing-xs) 0;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    font-weight: 400;
    min-height: auto;
    justify-content: center;
  }
  
  .hero-intro .hero-toggle-btn:hover {
    background: transparent;
    border: none;
    color: var(--color-text);
  }
  
  .hero-intro .hero-toggle-icon {
    font-size: 0.7rem;
    margin-left: var(--spacing-xs);
  }
  
  /* Add gradient line and spacing between intro and first section */
  .hero-intro {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
  }
  
  .hero-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(90deg, 
      transparent 0%,
      rgba(6, 182, 212, 0.3) 20%,
      rgba(157, 78, 221, 0.3) 50%,
      rgba(6, 182, 212, 0.3) 80%,
      transparent 100%);
  }
  
  /* Add extra space after intro section before first foldout card */
  .hero-section-collapsible {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-section-header {
    display: flex;
  }
  
  /* Make the lower foldout cards more clearly identifiable */
  .hero-section-header .hero-toggle-icon {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-left: var(--spacing-sm);
    transition: transform 0.3s ease, color 0.2s ease;
  }
  
  .hero-section-header:hover .hero-toggle-icon {
    color: var(--color-primary-dark);
  }
  
  .hero-section-header {
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
  }
  
  .hero-section-header:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(6, 182, 212, 0.2);
  }
  
  /* Reduce spacing for slogan wrapper to bring foldout cards closer */
  .hero-slogan-wrapper {
    margin: var(--spacing-sm) 0;
  }
  
  .hero-how-collapsible {
    margin-top: var(--spacing-sm);
  }
  
  /* Hide collapsible content by default on mobile */
  .hero-intro-extra[data-collapsible],
  .hero-section-content[data-collapsible],
  .hero-how-content[data-collapsible] {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  
  /* Show when expanded */
  .hero-intro-extra[data-collapsible].expanded,
  .hero-section-content[data-collapsible].expanded,
  .hero-how-content[data-collapsible].expanded {
    max-height: 5000px; /* Large enough for content */
    opacity: 1;
    margin-top: calc(var(--spacing-md) * 0.7);
    padding: 0;
  }
  
  /* Adjust section title spacing when header is used */
  .hero-section-collapsible .hero-section-title,
  .hero-how-collapsible .hero-how-title {
    margin-bottom: 0;
  }
  
  /* Adjust content spacing when expanded */
  .hero-section-content.expanded {
    margin-top: var(--spacing-lg);
  }
  
  .hero-how-content.expanded {
    margin-top: calc(var(--spacing-lg) * 0.7);
  }
  
  /* Hide desktop titles, show mobile titles on mobile */
  .hero-section-title-desktop,
  .hero-how-title-desktop {
    display: none !important;
  }
  
  .hero-section-title-mobile,
  .hero-how-title-mobile {
    display: block !important;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    flex: 1;
  }
  
  /* Hide collapsible content by default on mobile */
  .hero-intro-extra[data-collapsible]:not(.expanded),
  .hero-section-content[data-collapsible]:not(.expanded),
  .hero-how-content[data-collapsible]:not(.expanded) {
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: block !important;
  }
  
  /* Show when expanded */
  .hero-intro-extra[data-collapsible].expanded,
  .hero-section-content[data-collapsible].expanded,
  .hero-how-content[data-collapsible].expanded {
    max-height: 5000px !important;
    opacity: 1 !important;
    margin-top: calc(var(--spacing-md) * 0.7) !important;
    padding: 0 !important;
    overflow: visible !important;
    display: block !important;
  }
  
  /* Smooth transitions */
  .hero-intro-extra[data-collapsible],
  .hero-section-content[data-collapsible],
  .hero-how-content[data-collapsible] {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease, 
                margin 0.4s ease, 
                padding 0.4s ease !important;
  }
  
  .hero-slogan-text {
    font-size: 0.95rem;
  }
  
  .hero-slogan::before,
  .hero-slogan::after {
    max-width: 25%;
  }

  /* Stack hero CTA buttons vertically — avoids cramped multi-line labels */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Desktop - always show content */
@media (min-width: 769px) {
  .hero-intro-extra[data-collapsible],
  .hero-section-content[data-collapsible],
  .hero-how-content[data-collapsible] {
    max-height: none !important;
    opacity: 1 !important;
    display: block !important;
  }
}

/* Desktop titles - visible on desktop, hidden on mobile (default) */
.hero-section-title-desktop,
.hero-how-title-desktop {
  display: block;
}

.hero-section-title-mobile,
.hero-how-title-mobile {
  display: none;
}

/* Match site button styling */
.hero-toggle-btn {
  margin-bottom: var(--spacing-md);
  flex-direction: row;
  font-family: var(--font-family);
  height: auto;
  min-height: 38px;
}

.hero-toggle-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--color-primary-dark);
}

.hero-section-header {
  margin-bottom: 0;
  flex-direction: row;
}

.hero-section-header .hero-section-title-mobile,
.hero-section-header .hero-how-title-mobile {
  margin: 0;
  flex: 1;
}

.hero-toggle-btn[aria-expanded="true"] .hero-toggle-icon,
.hero-section-header[aria-expanded="true"] .hero-toggle-icon {
  transform: rotate(180deg);
}

/* Collapsible content - ensure it's visible by default on desktop */
.hero-intro-extra[data-collapsible],
.hero-section-content[data-collapsible],
.hero-how-content[data-collapsible] {
  display: block;
}

/* ============================================
   Modern Hero Section Styling
   ============================================ */
/* Hero Card with gradient overlay and depth */
.hero-card-modern {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(30, 30, 30, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
              0 0 0 1px rgba(6, 182, 212, 0.1) inset;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.03) 0%, 
    transparent 30%,
    transparent 70%,
    rgba(157, 78, 221, 0.03) 100%);
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
}

.hero-card-modern > * {
  position: relative;
  z-index: 1;
}

/* Hero Brand Animation */
.hero-brand {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Improved Typography */
.hero-intro-large {
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero-section-title,
.hero-how-title {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-subsection,
.hero-subsection-large {
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hero-subsection-text,
.hero-subsection-text-large {
  line-height: 1.7;
  color: var(--color-text-light);
}

.hero-how-text {
  line-height: 1.7;
}

.hero-intro-medium {
  line-height: 1.6;
}

/* ============================================
   Modern Feature Cards (Subcards)
   ============================================ */
.hero-feature-card {
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.hero-feature-card:last-child {
  margin-bottom: 0;
}

.hero-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(6, 182, 212, 0.4) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.2);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(6, 182, 212, 0.1);
}

.hero-feature-card:hover::before {
  opacity: 1;
}

/* ============================================
   Modern Stats Cards
   ============================================ */
.stats-card-modern {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(30, 30, 30, 0.5) 100%);
}

.stat-item-modern {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item-modern::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, 
    rgba(6, 182, 212, 0.6) 0%,
    rgba(157, 78, 221, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item-modern:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateX(2px);
}

.stat-item-modern:hover::before {
  opacity: 1;
}

.stat-value {
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Modern Membership Card
   ============================================ */
.hero-membership-modern {
  margin: var(--spacing-lg) 0;
}

.hero-membership-card {
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.08) 0%, 
    rgba(157, 78, 221, 0.08) 100%);
  border: 1px solid rgba(6, 182, 212, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-membership-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-membership-card > * {
  position: relative;
  z-index: 1;
}

.hero-membership-header {
  font-size: 1.15rem;
  margin-bottom: var(--spacing-md);
}

.hero-membership-text {
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin: 0;
}

.hero-membership-icon {
  display: inline-block;
  margin-right: var(--spacing-xs);
  font-size: 1.2em;
}

.hero-membership-price {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-membership-vat {
  font-size: 0.85em;
  color: var(--color-text-muted);
  font-weight: 400;
}

.hero-membership-list {
  text-align: left;
  padding-left: 0;
}

.hero-membership-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-xs) 0;
}

.hero-membership-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Modern Membership Tiers Display */
.hero-membership-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.hero-membership-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

.hero-membership-tier:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateX(2px);
}

.hero-tier-name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1rem;
}

.hero-tier-details {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.hero-membership-note {
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: var(--spacing-md);
}

/* ============================================
   Modern Action Buttons
   ============================================ */
.hero-actions-modern {
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.hero-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
  transition: left 0.5s ease;
}

.hero-btn:hover::before {
  left: 100%;
}

.btn.hero-btn:not(.btn-ghost) {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn.hero-btn:not(.btn-ghost):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-ghost.hero-btn {
  border: 1px solid var(--color-primary);
  background: rgba(6, 182, 212, 0.05);
}

.btn-ghost.hero-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

/* ============================================
   Modern Slogan Styling
   ============================================ */
.hero-slogan-wrapper {
  margin: var(--spacing-md) 0;
  padding: var(--spacing-sm) 0;
  position: relative;
}

.hero-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) 0;
  margin-bottom: 0;
}

.hero-slogan::before,
.hero-slogan::after {
  content: '';
  flex: 1;
  max-width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
}

.hero-slogan-text {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-style: normal;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================
   Modern Sidebar Cards (Stats & News)
   ============================================ */
/* Stats Card Modern Styling */
.stats-card-modern {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(30, 30, 30, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    rgba(6, 182, 212, 0.4) 0%,
    rgba(157, 78, 221, 0.4) 100%);
  opacity: 0.6;
}

.stats-card-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.02) 0%, 
    transparent 50%,
    rgba(157, 78, 221, 0.02) 100%);
  pointer-events: none;
  z-index: 0;
}

.stats-card-modern > * {
  position: relative;
  z-index: 1;
}

.stats-title {
  position: relative;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.stats-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(6, 182, 212, 0.5) 50%,
    transparent 100%);
}

/* Stats coming soon items */
.stats-list.stats-coming-soon .stat-item {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-list.stats-coming-soon .stat-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-1px);
}

/* News Card Modern Styling */
.news-card-modern {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(30, 30, 30, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.news-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    rgba(157, 78, 221, 0.4) 0%,
    rgba(6, 182, 212, 0.4) 100%);
  opacity: 0.6;
  z-index: 1;
}

.news-card-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(157, 78, 221, 0.02) 0%, 
    transparent 50%,
    rgba(6, 182, 212, 0.02) 100%);
  pointer-events: none;
  z-index: 0;
}

.news-card-modern > * {
  position: relative;
  z-index: 1;
}

.news-card-header-modern {
  position: relative;
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.news-card-header-modern::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
}

.news-card-header-modern .h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern News Items */
.news-item-modern {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: var(--spacing-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.news-item-modern::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, 
    rgba(157, 78, 221, 0.6) 0%,
    rgba(6, 182, 212, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-item-modern:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(157, 78, 221, 0.2);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.news-item-modern:hover::before {
  opacity: 1;
}

.news-item-modern.news-item--pinned {
  border-color: rgba(234, 179, 8, 0.3);
  background: rgba(234, 179, 8, 0.05);
}

.news-item-modern.news-item--pinned::before {
  background: linear-gradient(180deg, 
    rgba(234, 179, 8, 0.8) 0%,
    rgba(234, 179, 8, 0.4) 100%);
}

.news-item-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 600;
  line-height: 1.4;
}

.news-item-title a:hover {
  color: var(--color-primary);
}

.news-item-excerpt {
  color: var(--color-text-light);
  line-height: 1.6;
  margin: var(--spacing-xs) 0 var(--spacing-sm) 0;
  font-size: 0.95rem;
}

.news-item-meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
}

.news-item-pin {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  font-size: 1rem;
  opacity: 0.7;
}

/* Hela nyhetskortet som länk (startsida + The Current-lista) */
a.news-item.news-item-modern.news-item-clickable,
.news-list a.news-item.news-item-clickable {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.news-item.news-item-modern.news-item-clickable:hover,
a.news-item.news-item-modern.news-item-clickable:focus-visible,
a.news-item.news-item-modern.news-item-clickable:active,
.news-list a.news-item.news-item-clickable:hover,
.news-list a.news-item.news-item-clickable:focus-visible,
.news-list a.news-item.news-item-clickable:active {
  text-decoration: none;
  color: inherit;
}

a.news-item.news-item-modern.news-item-clickable *,
a.news-item.news-item-modern.news-item-clickable:hover *,
a.news-item.news-item-modern.news-item-clickable:focus-visible *,
.news-list a.news-item.news-item-clickable *,
.news-list a.news-item.news-item-clickable:hover *,
.news-list a.news-item.news-item-clickable:focus-visible * {
  text-decoration: none;
  text-decoration-color: transparent;
  text-underline-offset: 0;
}

.news-item-modern.news-item-clickable .news-item-title,
.news-list a.news-item .news-item-title {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0 0 var(--spacing-xs);
  transition: color 0.2s ease;
}

a.news-item.news-item-modern.news-item-clickable:hover .news-item-title,
a.news-item.news-item-modern.news-item-clickable:focus-visible .news-item-title,
.news-list a.news-item.news-item-clickable:hover .news-item-title {
  color: var(--color-primary);
}

.news-item-modern.news-item-clickable .news-item-excerpt,
.news-list a.news-item .news-item-excerpt {
  margin: 0 0 var(--spacing-sm);
}

.news-card-modern .card-footer {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-card-modern .card-footer .btn {
  transition: all 0.3s ease;
}

.news-card-modern .card-footer .btn:hover {
  transform: translateY(-1px);
}

/* Inloggad hemflöde / upptäck: smal kolumn + flikrad — se layout.css (.app-feed-narrow, .home-feed-*) */

/* Utloggad startsida: samma kolumnbredd som hemflöde, nyheter under hero */
.guest-landing {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.guest-landing__inner {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  width: 100%;
}

.guest-landing__news {
  width: 100%;
  min-width: 0;
}

.guest-landing__news .news-card-modern {
  margin-bottom: 0;
}

.guest-landing__news .news-card-header-modern {
  padding: var(--spacing-md) var(--spacing-md) 0;
  margin-bottom: var(--spacing-md);
}

.guest-landing__news .news-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: 0 var(--spacing-md);
}

.guest-landing__news .news-card-modern .card-footer {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
}

/* Klickbara nyhetskort: full bredd, ingen länk-understrykning */
.guest-landing__news .news-card-modern {
  width: 100%;
  box-sizing: border-box;
}

.guest-landing__news .news-list a.news-item {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-bottom: 0;
  text-decoration: none;
  color: inherit;
}

.guest-landing__news .news-list a.news-item:hover,
.guest-landing__news .news-list a.news-item:focus-visible,
.guest-landing__news .news-list a.news-item:active {
  text-decoration: none;
  color: inherit;
}

.guest-landing__news .news-list a.news-item *,
.guest-landing__news .news-list a.news-item:hover *,
.guest-landing__news .news-list a.news-item:focus-visible * {
  text-decoration: none;
  text-decoration-color: transparent;
  text-underline-offset: 0;
}

.guest-landing__news .news-item-content {
  width: 100%;
  min-width: 0;
  position: relative;
}

.guest-landing__news .news-list a.news-item .news-item-title {
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0 0 var(--spacing-xs);
}

.guest-landing__news .news-list a.news-item:hover .news-item-title,
.guest-landing__news .news-list a.news-item:focus-visible .news-item-title {
  color: var(--color-primary);
  text-decoration: none;
}

.guest-landing__news .news-list a.news-item .news-item-excerpt,
.guest-landing__news .news-list a.news-item .news-item-meta {
  color: var(--color-text-light);
  text-decoration: none;
}

.guest-landing__news .news-list a.news-item .news-item-meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
