#newsPopupBox .cds--modal-container {
    width: 50vw !important;
    height: 70vh !important;
}

#newsPopupBox .cds--modal-content{
  overflow-x: hidden;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  
}
/* Remove focus behavior completely */
#newsPopupBox .cds--modal-scroll-content{
 outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

#newsPopupBox .cds--modal-content:focus,
#newsPopupBox .cds--modal-scroll-content:focus {
  outline: none !important;
  box-shadow: none !important;
}

#newsPopupBox .cds--modal-scroll-content {
    mask-image: unset;
}

.news-popup-accordion-item-content a {
  color: var(--link-primary) !important;
  text-decoration: none !important;
}

.news-popup-accordion-item-content a:hover {
  color: var(--link-primary-hover) !important;
  text-decoration: underline !important;
}
/* Figma-style modal footer for news popup */
.news-popup-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 24px 40px 40px 40px;
  background: transparent;
  border-radius: 0 0 20px 20px;
  gap: 16px;
  box-sizing: border-box;
}
/* News Popup Styles */
.news-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-in-out;
}

/*.news-popup-content {
  background: white;
  .news-popup-link:hover {
    background-color: #0072ce;
    color: white;
  }
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  max-height: 80vh;
  width: 90%;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease-out;
}

.news-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e5e5;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.news-popup-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.news-popup-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.news-popup-close:hover {
  background-color: #e9ecef;
  color: #333;
}

.news-popup-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
} 

.loading-indicator {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: #666;
}

.no-news {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: var(--text-secondary);
}

.news-list {
  max-height: 60vh;
  overflow-y: auto;
}

.news-item {
  padding: 24px;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.2s ease;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: #f8f9fa;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 16px;
}

.news-headline {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  flex: 1;
}

.news-category {
  background-color: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-transform: uppercase;
}

.news-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.news-summary {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.news-summary p {
  margin: 0 0 12px 0;
}

.news-summary p:last-child {
  margin-bottom: 0;
}

.news-summary a {
  color: #007bff;
  text-decoration: none;
}

.news-summary a:hover {
  text-decoration: underline;
}

.news-summary b,
.news-summary strong {
  font-weight: 600;
  color: #2c3e50;
} */

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design 
@media (max-width: 768px) {
  .news-popup-content {
    width: 95%;
    max-height: 90vh;
    margin: 20px;
  }

  .news-popup-header {
    padding: 16px 20px;
  }

  .news-popup-header h2 {
    font-size: 20px;
  }

  .news-item {
    padding: 20px;
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .news-headline {
    font-size: 16px;
  }

  .news-category {
    align-self: flex-start;
  }
} */

/* Carbon Accordion Styles */
.news-popup-accordion-item-content {
  padding: 16px 0;
  font-family: var(--allianceno1-regular);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: var(--text-primary);
}
.news-popup-accordion-item-content p{
  font-family: var(--allianceno1-regular);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: var(--text-primary);
}
.news-popup-accordion-item-content p b{
  font-weight: 600;
}

.news-popup-summary {
  margin-bottom: 1rem;
}

.news-popup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-popup-date {
  font-style: italic;
  font-family: var(--allianceno1-regular);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
}

.news-popup-link {
 /* padding: 8px 16px;
  border: 1px solid #0072ce;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s;
  background-color: transparent; */
  color: var(--link-primary) !important;
  text-decoration: none !important;
  font-style: normal;
  font-family: var(--allianceno1-regular);
  font-size: 14px;
  font-weight: 400;
}

.news-popup-link:hover {
  /*background-color: #0072ce;*/
  color: var(--link-primary-hover) !important;
  text-decoration: underline !important;
}


.news-popup-main-content {
  background: #fff;
  /*min-width: 613px;
  max-width: 750px;
  width: 50%;
  max-height: 90vh;*/
  min-width: 40vw;
  max-width: 60vw;
  min-height: 50vh;
  max-height: 70vh;
  overflow: auto;
  overflow-x: hidden;
  box-shadow: 0 8px 32px rgba(30, 32, 36, 0.18);
  padding: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.news-popup-main-header {
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.news-popup-main-header h2 {
  font-family: var(--allianceno1-light);
  font-weight: var(--h1-font-weight);
  font-size: var(--h1-font-size);
  font-style: var(--h1-font-style);
  line-height: var(--h1-line-height);
  letter-spacing: var(--h1-letter-spacing);
  color: var(--text-primary);
}

.news-popup-main-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  width: 2rem;
  /*color: #8a8d93;
  padding: 4px 0px;
  border-radius: 4px;  
  text-align: right;*/
}
.news-popup-main-close:hover {
  color: #1e2024;
}

.news-popup-content-area {
  font-family: var(--allianceno1-regular);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375rem;
  letter-spacing: 0rem;
  color: var(--text-primary);
  /*max-height: 60vh;
  max-width: 760px;
  max-height: 300px;*/
  word-break: break-word;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px;
  /*gap: 24px;*/
}
.news-popup-content-area::-webkit-scrollbar {
  width: 8px;
}
.news-popup-content-area::-webkit-scrollbar-thumb {
  border-radius: 10px;
  height: 70px;
  background: #C2C2C2;
}
.news-popup-content-area::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}
.news-popup-content-area::-webkit-scrollbar-track {
  border: 1px solid #E7E7E7;
  background: #FAFAFA;
}
@-moz-document url-prefix() {
  .news-popup-content-area {
    scrollbar-width: thin;
    scrollbar-color: #C2C2C2 #FAFAFA;
  }
}

.news-popup-button {
  width: 50%;
  height: 3rem;
  padding: 0.5rem 1rem 1rem 1rem;
  background: var(--button-primary-background);
  color: var(--button-color);  
  font-family: var(--allianceno1-regular);
  font-weight: var(--regular-font-weight);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.news-popup-button:hover {
  background: var(--button-primary-hover);
}
.news-popup-button:active{
  background-color: var(--button-primary-active);
}
.news-popup-button:focus, .news-popup-button:focus-visible{
  background-color: var(--button-primary-focus);
  outline: 2px solid var(--button-primary-focus-border);
  border: 1px solid var(--button-color);
}

.news-popup-no-data {
  text-align: center;
  padding: 48px 0;
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 500;
}

/* Scrollbar styling for webkit browsers */
#newsPopupBox .cds--modal-content::-webkit-scrollbar {
  width: 8px;
}

#newsPopupBox .cds--modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#newsPopupBox .cds--modal-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

#newsPopupBox .cds--modal-content::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}


#newsPopupBox .cds--accordion__title {
  font-weight: var(--semibold-font-weight) !important;
  font-family: var(--allianceno1-semibold) !important;
  margin: 0px;
}

@media (min-width: 640px) {
    #newsPopupBox .cds--accordion__content {
        padding-inline-end: unset !important;
    }
}

#newsPopupBox .cds--accordion__wrapper{
	padding:0!important;
}