/* Fonts: @font-face in main.css (DM Sans, Playfair Display, Work Sans, Source Serif 4) */

.listBlogTitle{
  font-size: 20px !important;
  margin: 0 auto !important;
  align-self: center;
  text-align: center;   
  font-family: 'Playfair Display', serif;
  color: rgb(39, 38, 38) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.listBlogDescription{
  font-size: 17px !important;
  margin: 5px auto !important;
  align-self: center;
  text-align: center;
  color: rgb(39, 38, 38) !important;
}

/* Remove or comment out these conflicting rules */
/*
#blogAccordion .blogTitle{
  font-size: 22px !important;
  margin: 0 auto !important;
  align-self: center;
  text-align: center;    
  font-family: 'Work Sans';
  color: rgb(39, 38, 38) !important;
}

#blogAccordion .blogDescription{
  font-size: 17px !important;
  margin: 5px auto !important;
  align-self: center;
  text-align: center;
  color: rgb(39, 38, 38) !important;
  padding-bottom: 10px;
}
*/

.blogHeading{
  font-weight: 700;
  font-size: 25px;
  padding: 10px 150px;
  margin: 10px 50px;
  color: var(--uni-light-colorTheme1);
  font-family: 'Playfair Display', serif !important;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.body-text{
  width: 100% !important;  
  padding: 5px 50px;
  font-size: 1.2rem !important;
  white-space: pre-line;
  font-family: 'Work Sans', sans-serif;
}

.articleDescription {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.categoryData{
  font-size: 17px;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px !important;
  justify-content: center !important;
  align-items: center;
  padding: 5px 0 !important;
}

.custom-rounded-pill{
  border: 2px solid rgb(15, 15, 15);
  border-radius: 7px;
  padding: 4px 10px !important;
  background: var(--uni-light-colorTheme8);
  color: var(--uni-light-colorTheme5) !important;
}

.article-date{
  font-style: italic; 
  font-size: 14px; 
  float: right;
}

.blog-cover-img{
  border-radius: 7px; 
  width: 80vw;
}

/* Featured Articles Blog Container Styles */
.blogJumbotron {
  position: relative !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center !important;
  height: 250px !important;
  min-height: 200px !important;
  padding: 0 !important;
  border-radius: 12px !important;
}


/* Single dark overlay gradient at the bottom */
.blogJumbotron::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 20%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.4) 45%,
    rgba(0, 0, 0, 0.7) 60%,
    rgba(0, 0, 0, 0.9) 80%,
    rgba(0, 0, 0, 0.95) 100%
  ) !important;
  z-index: 1;
  pointer-events: none;
  border-radius: 12px;
}

/* Content overlay container */
.blog-content-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 5 !important;
  background: transparent !important;
}

/* Content wrapper */
.blog-content-wrapper {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  background: transparent !important;
}

/* Title styling - FORCE white text at bottom */
.blog-title-overlay {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 22px !important;
  font-weight: bold !important;
  color: white !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9) !important;
  letter-spacing: 0.3px !important;
  
  /* Ensure proper text wrapping */
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  display: block !important;
  position: relative !important;
  z-index: 3 !important;
}

/* Description Styling - ABSOLUTELY POSITIONED */
.blog-description-overlay {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 17px !important;
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8) !important;
  max-width: 80% !important;
  
  /* Ensure proper text wrapping */
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  display: block !important;
  position: relative !important;
  z-index: 3 !important;
}

.blog-title-overlay,
.blog-description-overlay {
  cursor: pointer;
}
/* Override any existing styles that might prevent wrapping */
#blogAccordion h2,
#blogAccordion .blog-title-overlay {
  margin: 0 1rem 0.6rem 2rem !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

#blogAccordion p,
#blogAccordion .blog-description-overlay {
   margin: 0 1rem 1rem 2rem !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

/* Ensure the blog container is the parent for positioning */
#blogAccordion {
  position: relative;
  left: auto;
}
.blogJumbotron > a {
  position: relative;
  z-index: 2;
  display: block;
  height: 100%;
  width: 100%;
}
.blogJumbotron > a:hover .blog-content-container {
  opacity: 0.95;
  transition: opacity 0.2s ease;
}
/* Prevent text selection on click */
.blog-content-container {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 20px 40px !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
/* Text Content Area */
.blog-text-content {
  flex: 1;
}
.blogJumbotron .readBttn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  margin: 0;
  padding: 10px 10px;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.blogJumbotron .readBttn b a {
  color: #333 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
}

.blogJumbotron .readBttn:hover {
  background-color: white !important;
  box-shadow: 
    -7px -7px 20px 0px rgba(255, 255, 255, .9),
    -4px -4px 5px 0px rgba(255, 255, 255, .9),
    7px 7px 20px 0px rgba(0, 0, 0, .2),
    4px 4px 5px 0px rgba(0, 0, 0, .3);
  transition: all 0.3s ease;
}
#blogTitle,
#blogShort {
  z-index: 10 !important;
  position: relative !important;
}
/* Arrow buttons styling */
/* Arrow Buttons - Circular */
#prevBlog, #nextBlog {
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease;
  top: 30% !important;
  transform: translateY(-50%);
  
  /* Make circular */
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  
  /* Center the arrow icon */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
   pointer-events: auto !important;
}

#prevBlog {
  left: 20px !important;
}

#nextBlog {
  right: 20px !important;
}

#prevBlog:hover, #nextBlog:hover {
  background-color: white !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

#prevBlog {
  left: 20px;
}

#nextBlog {
  right: 20px;
}

#prevBlog:hover, #nextBlog:hover {
  background-color: white !important;
  transform: translateY(-50%) scale(1.1);
}

.start-40 {
  left: 40px !important;
}

.blog-cover-container{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;            
}

.blog-cover-img{
  max-width: 100%;
  height: auto;  
}

.options-row{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px;
  flex-wrap: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.blog-options-ribbon{
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.blog-options-ribbon i {
  font-size: 20px;
  color: inherit;
  vertical-align: middle;
}

.blog-options-ribbon:focus {
  outline: none;
}

/** Blogs listing css **/
/* Title for listing */
.listing-blog-title {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 20px !important; /* Slightly smaller than featured */
  font-weight: bold !important;
  color: white !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9) !important;
  letter-spacing: 0.3px !important;
  
  /* Ensure proper text wrapping */
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  display: block !important;
}

/* Description for listing */
.listing-blog-description {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 15px !important; /* Slightly smaller than featured */
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8) !important;
  max-width: 85% !important;
  
  /* Ensure proper text wrapping */
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  display: block !important;
}

/* Override any existing styles for listing */
.blog-listing-item h3 {
  color: white !important;
 margin: 0 1rem 0.6rem 2rem !important;
  position: relative !important;
  z-index: 3 !important;
  text-align: left !important;
  font-size: 20px !important;
  font-family: 'Work Sans', sans-serif !important;
}

.blog-listing-item p {
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 0 1rem 1rem 2rem !important;
  position: relative !important;
  z-index: 2 !important;
  text-align: left !important;
  font-size: 16px !important;
  font-family: 'Work Sans', sans-serif !important;
}

/* Remove the old title/description styles for listing items */
.blog-listing-item .listBlogTitle,
.blog-listing-item .listBlogDescription {
  display: none !important;
}

#voices {
  margin-left: 10px;
  height: 30px;
  width:fit-content;
}

  /* Transcription Section Styles */
 .transcription-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.transcription-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 1rem 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.transcription-container:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.transcription-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.transcription-text {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.transcription-toggle {
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  border: 2px solid #e0e0e0;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.transcription-toggle:hover:not(:disabled) {
  background: linear-gradient(145deg, #e6e6e6, #f7f7f7);
  border-color: #1a73e8;
  transform: scale(1.05);
}

.transcription-toggle.active {
  background: linear-gradient(145deg, #1a73e8, #0d5bb5);
  border-color: #1a73e8;
}

.transcription-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f0f0f0;
}

.transcription-toggle.processing {
  cursor: wait;
  opacity: 0.7;
}

.transcription-icon {
  font-size: 1.8rem;
  color: #000;
  transition: all 0.3s ease;
}

.transcription-toggle.active .transcription-icon {
  color: white;
}

.transcription-toggle:disabled .transcription-icon {
  color: #666;
}

.transcription-state {
 display: none !important;
}

.transcription-toggle.active .transcription-state {
  color: white;
}

/* Transcription Feedback */
.transcription-feedback {
  display: none;
  font-size: 0.85rem;
  color: #d9534f;
  margin-top: 8px;
  padding: 6px 12px;
  background-color: rgba(217, 83, 79, 0.1);
  border-radius: 20px;
  text-align: center;
  width: 90%;
  transition: all 0.3s ease;
  border: 1px solid rgba(217, 83, 79, 0.2);
}

.transcription-feedback.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

        /* Voice selection dropdown */
      /* Share Section */
.share-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.share-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  padding: 1rem 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.share-container:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.share-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.share-text {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.share-button {
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  border: 2px solid #e0e0e0;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.share-button:hover {
  background: linear-gradient(145deg, #e6e6e6, #f7f7f7);
  border-color: #34a853;
  transform: scale(1.05);
}

.share-icon {
  font-size: 1.8rem;
  color: #000;
  transition: all 0.3s ease;
}

.share-button:hover .share-icon {
  color: #34a853;
}

/* Voice selection dropdown */
.voice-selection {
  display: none;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.5rem;
  width: 100%;
}

.voice-selection.active {
  display: flex;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.voice-dropdown {
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  border: 1px solid #ddd;
  background-color: white;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 300px;
  font-family: 'Work Sans', sans-serif;
}

        /* Fixed row styling to keep buttons on same line */
        .blog-options-row {
             display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem; /* Increased gap for better spacing */
    flex-wrap: wrap;
    margin: 1rem 0; /* Add margin to the row instead */
    padding: 1rem 0;
        }

        /* Responsive media queries */
        @media (max-width: 768px) {
            .blog-options-row {
                gap: 1rem;
            }
            
            .transcription-section,
            .share-section {
                margin: 1.5rem 0;
                padding: 0.8rem 0;
            }
            
            .transcription-container,
            .share-container {
                padding: 0.7rem 1.2rem;
            }
            
            .transcription-text,
            .share-text {
                font-size: 1.1rem;
            }
            
            .transcription-icon,
            .share-icon {
                font-size: 2rem;
            }
        }

        @media (max-width: 576px) {
                    
            .transcription-section,
            .share-section {
                margin: 1rem 0;
                padding: 0.5rem 0;
                width: 100%;
            }
            
            .transcription-container,
            .share-container {
                padding: 0.6rem 1rem;
                width: 90%;
                max-width: 280px;
            }
            
            .transcription-text,
            .share-text {
                font-size: 1rem;
            }
            
            .transcription-icon,
            .share-icon {
                font-size: 1.8rem;
            }
            
            .transcription-content,
            .share-content {
                gap: 0.8rem;
            }
        }

        @media (max-width: 400px) {
            .transcription-container,
            .share-container {
                padding: 0.5rem 0.8rem;
            }
            
            .transcription-text,
            .share-text {
                font-size: 0.9rem;
            }
            
            .transcription-icon,
            .share-icon {
                font-size: 1.6rem;
            }
            
            .transcription-content,
            .share-content {
                gap: 0.6rem;
            }
        }

@media only screen and (min-width: 1201px) {
  .blog-cover-img{
    width: 65vw;

}
}

@media only screen and (min-width: 961px) and (max-width: 1200px) {
.blogHeading{
  font-weight: 700;
  font-size: 25px;
  padding: 10px 20px;
  margin: 10px 20px;

}
   .blog-description-overlay {
    max-width: 85%;
  }
}

@media only screen and (min-width: 768px) and (max-width: 960px) {
.blogHeading{
  font-weight: 700;
  font-size: 25px;
  padding: 10px 20px;
  margin: 10px 20px;

}
   .blog-title-overlay {
    font-size: 20px !important;
  }
  
  .blog-description-overlay {
    font-size: 16px !important;
    max-width: 90%;
  }
}

@media only screen and (min-width: 569px) and (max-width: 767px) {
.blogHeading{
  font-weight: 700;
  font-size: 22px;
  padding: 10px 20px;
  margin: 10px 20px;

}
  .blog-content-overlay {
    padding: 15px 25px;
  }
  
  .blog-title-overlay {
    font-size: 18px !important;
    width: 85%;
  }
  
  .blog-description-overlay {
    font-size: 15px !important;
    max-width: 85%;
  }
  
  .blogJumbotron .readBttn {
    bottom: 15px;
    right: 15px;
    padding: 8px 8px;
  }
   .blog-options-row{                
     margin: 0 !important; /* Add margin to the row instead */
    padding: 0 !important;
    gap: 0.5rem !important;
            }
}

@media only screen and (min-width: 240px) and (max-width: 568px) {
.blogHeading{
  font-weight: 700;
  font-size: 22px;
  padding: 10px 20px;
  margin: 10px 20px;

}
   .blog-content-overlay {
    padding: 10px 15px;
  }
  
  .blog-title-overlay {
    font-size: 16px !important;
    width: 80%;
    margin-bottom: 8px !important;
  }
  
  .blog-description-overlay {
    font-size: 14px !important;
    max-width: 80%;
    margin-bottom: 10px !important;
  }
  
  .blogJumbotron .readBttn {
    bottom: 10px;
    right: 10px;
    padding: 6px 6px;
  }
  
  .blogJumbotron .readBttn b a {
    font-size: 12px !important;
  }
  
  #prevBlog, #nextBlog {
    width: 30px;
    height: 30px;
    font-size: 14px;
    padding: 0;
  }
  
  #prevBlog {
    left: 10px;
  }
  
  #nextBlog {
    right: 10px;
  }
     .blog-options-row{
    flex-direction: column;               
     margin: 0 !important; /* Add margin to the row instead */
    padding: 0 !important;
    gap: 0 !important;
            }
}
