/* Main content cards container (grid layout) */
.content-cards-container {
  margin: 2rem 0;
}

.content-cards-aside {
  margin: 15rem 0 2rem 0;
}

/* Base card styling */
.content-card {
  background: #ffffff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
  height: auto;
}

.content-card.social-embed-card {
  overflow: visible;
}

.content-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Image + Text Card */
.image-text-card .card-img-top-wrapper {
  overflow: hidden;
  max-height: 200px;
  background: #f8f9fa;
}

.image-text-card .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-text-card:hover .card-img-top {
  transform: scale(1.03);
}

.image-text-card .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  line-height: 1.4;
}

.image-text-card .card-text {
  font-size: 0.9375rem;
  color: #4a4a4a;
  line-height: 1.6;
}

/* Fact/Figure Card */
.fact-card {
  background: #ffffff;
  border-left: 4px solid #21A698;
}

.fact-card .fact-number {
  color: #21A698;
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.fact-card .card-text {
  font-size: 0.9375rem;
  color: #4a4a4a;
  font-weight: 400;
  line-height: 1.6;
}

.fact-card:hover {
  border-left-color: #138496;
}

/* Video Card */
.video-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.video-card .card-text {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

.video-card .video-wrapper {
  border-radius: 4px;
  overflow: hidden;
}

.video-card iframe,
.video-card video {
  width: 100%;
  height: 100%;
}

/* External Link Card */
.link-card .card-img-top-wrapper {
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.link-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.link-card .card-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.link-card .btn i {
  font-size: 0.85rem;
}

/* Card Body & Footer */
.content-card .card-body {
  padding: 1.5rem;
}

.content-card .card-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  background: transparent;
}

.content-card .btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 100%;
}

.content-card .btn-primary {
  background: linear-gradient(135deg, #21A698 0%, #138496 100%);
  border: none;
  color: #fff;
}

.content-card .btn-primary:hover {
  background: linear-gradient(135deg, #21A698 0%, #117a8b 100%);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
  transform: translateY(-1px);
}

.content-card .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

.content-card .btn-outline {
  background-color: #fff;
  border: 2px solid #21A698;
  color: #21A698;
}

.content-card .btn-outline:hover {
  background-color: #21A698;
  color: #fff;
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2);
  transform: translateY(-1px);
}

.content-card .btn-outline:active {
  transform: translateY(0);
}

/* ASIDE/SIDEBAR LAYOUT */
.content-layout-with-aside {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 1100px; 
  margin: 0 auto; 
  width: 100%;
}

.content-layout-with-aside .main-content {
  flex: 0 1 auto;
  min-width: 0; 
  width: 100%;
}

/* Make sure table respects the container width */
.content-layout-with-aside .main-content table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

.content-layout-with-aside .main-content .table-national-liaisons {
  font-size: 0.875rem; 
}

.content-layout-with-aside .sidebar-aside {
  flex: 0 0 280px;
  top: 2rem;
}

.content-cards-aside .content-card {
  margin-bottom: 1.5rem;
}

.content-cards-aside .card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.625rem;
}

.content-cards-aside .fact-number {
  font-size: 2.25rem;
}

.content-cards-aside .card-text {
  font-size: 0.875rem;
  line-height: 1.5;
}

.content-cards-aside .card-body {
  padding: 1rem;
}

/* Responsive Design - Stack sidebar only on smaller screens */
@media (max-width: 1024px) {
  .content-layout-with-aside {
    flex-direction: column;
    gap: 2rem;
  }
  
  .content-layout-with-aside .main-content {
    max-width: 100%;
  }
  
  .content-layout-with-aside .sidebar-aside {
    flex: 0 0 auto;
    width: 280px;
    margin: 2rem auto 0;
    position: static;
  }
}

@media (max-width: 768px) {
  .content-cards-container .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .fact-card .fact-number {
    font-size: 2.25rem;
  }
  
  .content-layout-with-aside .sidebar-aside {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0 0;
  }
  
  .content-card .btn-sm {
    font-size: 0.8125rem;
    padding: 0.625rem 1.25rem;
  }
}

@media (max-width: 576px) {
  .content-card .card-body {
    padding: 1.25rem;
  }
  
  .content-card .card-footer {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }
  
  .fact-card .fact-number {
    font-size: 2rem;
  }
  
  .content-card .btn-sm {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
}

/* Button icon styling */
.content-card .btn-sm i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.content-card .btn-sm:hover i.fa-arrow-right,
.content-card .btn-sm:hover i.fa-chevron-right {
  transform: translateX(3px);
}

.content-card .btn-sm:hover i.fa-external-link {
  transform: translateY(-2px);
}

/* Social embed cards - styling */
.social-embed-card {
  background: #fff;
  display: block;
  width: 100%;
  height: auto;
}

.social-embed-card .card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin: 0 0 0.625rem;
}

.social-embed-card .card-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #666;
  margin: 0 0 0.75rem;
}

.social-embed-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;         
  position: relative;
}

.social-embed-wrapper iframe {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}

.twitter-tweet {
  margin: 0 !important;      
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
}

.social-embed-wrapper[data-platform="linkedin"] iframe {
  width: 100%;
}

.instagram-media,
.fb-post {
  margin: 0 !important;
  max-width: 100% !important;
  display: block !important;
}

.content-cards-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-cards-aside .social-embed-card {
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .social-embed-card { padding: 0.875rem; }
  .social-embed-card .card-title { font-size: 0.75rem; }
}
