/*
Theme Name: Daily Theo
Theme URI: 
Author: Theo Gobbelvert
Author URI: https://ri-lighthouse.com
Version: 1.3.10
Requires at least: 4.7
Tested up to: 6
Requires PHP: 5.6
License: GNU General Public License, v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: newspaperss
Text Domain: daily-theo

*/

/* Import global styles */
@import url("./css/global.css?v=THEME_VERSION");

/* Import content single styles */
@import url("./css/content-single.css?v=THEME_VERSION");

/* Import footer styles */
@import url("./css/footer.css?v=THEME_VERSION");




/* Context Header Styling */
.widget-title {
  margin-bottom: 0;
}
.widget-title h3.context-header {
  font-variant: small-caps;
  color: var(--color-brand-gray) !important;
  border-bottom-color: rgba(28, 28, 28, .07);
  font-weight: 400 !important;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}


/* Daily Theo Tag Cloud Styling */
.daily-theo-tagcloud {
  margin: .1em 0;
}

.daily-theo-tag-cloud-link {
  display: inline-block;
  margin: 0.1rem;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0);
  color: var(--color-brand-text);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  opacity: 0.7;
}

.daily-theo-tag-cloud-link:hover {
  background: var(--color-brand-orange);
  color: white;
  text-decoration: none;
  opacity: 1;
}

.daily-theo-tag-link-count {
  opacity: 0.7;
  font-size: 0.9em;
}



/* === Mobile Branding Cleanup === */
@media screen and (max-width: 65em) {
  .title-bar {
    padding: .1rem;
  }


  .title-bar .mobile-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .mobile-branding .branding-logo img.custom-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
  }

  .mobile-branding .site-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    margin: 0.25rem 0 0;
    color: var(--color-brand-navy);
  }

  .mobile-branding .site-description {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: var(--color-brand-text);
    margin: 0.1rem 0;
  }

  .mobile-branding .rotating-message {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--color-brand-deep-orange);
    margin: 0;
  }

  .top-bar-right {
    justify-content: flex-end;
  }

  .top-bar-right .hamburger .line {
    background-color: var(--color-brand-navy);
  }

  .top-bar-right .social-btns {
    display: none;
  }
}



/* === Branding Header === */

/* === Custom Header Styling for RI Daily === */
.custom-header-branding {
  display: flex;
  align-items: stretch;
  padding: 0;
}

.branding-left {
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.branding-left img.custom-logo {
  height: 100%;
  width: auto;
  max-height: 120px;
  object-fit: contain;
}

.branding-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 1rem;
}

.branding-right .site-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900;
  letter-spacing: -1px;
  font-size: 4rem;
  color: var(--color-brand-navy);
  margin: 0;
}

.branding-right .site-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-brand-deep-orange);
  margin-top: -1rem;
}

.branding-right .site-description {
  margin: 4px 0;
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--color-brand-gray);
}

.branding-right .rotating-message {
  margin: 0;
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--color-brand-deep-orange);
  font-size: 0.95rem;
}



/* === Header / Banner Area === */
.site-header,
#masthead {
  background-color: var(--color-brand-sand);
  border-bottom: 1px solid var(--color-brand-orange);
}

.site-description {
  color: var(--color-brand-gray);
}

.sidebar-inner{
  margin-top:1.9rem;
}

.sidebar-inner .widget_archive ul li a, 
.sidebar-inner .widget_categories ul li a, 
.sidebar-inner .widget_pages ul li a, 
.sidebar-inner .widget_nav_menu ul li a, 
.sidebar-inner .widget_portfolio_category ul li a {
  line-height: 20px;
  padding: 5px 0;
  font-size: 15px;
  color: var(--color-brand-dark-gray);
  text-decoration: none;
}

.head-bottom-area, .head-bottom-area .dropdown.menu .is-dropdown-submenu > li {
  background-color: #ffffff;
}

.head-bottom-area .dropdown.menu a, .search-wrap .search-field, .head-bottom-area .dropdown.menu .is-dropdown-submenu > li a, .home .head-bottom-area .dropdown.menu .current-menu-item a {
  color: #000000;
}

#topmenu .top-bar .top-bar-left .menu a {
  color: #ffffff;
}

#topmenu, .off-canvas-content .title-bar {
  background-color: var(--color-brand-sand) !important;
  color: var(--color-brand-navy) !important;
}

#topmenu {
  border: none;
}

.head-top-area {
  padding: 20px;
}

.post-wrap-big .post-title a, .post-list .post-title a {
  text-decoration: none;
}


/* === Homepage Context Styles === */
.daily-theo-categories-section,
.daily-theo-tags-section {
  margin-bottom: 1.5rem;
}

.daily-theo-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-brand-deep-orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.3rem;
}

.daily-theo-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.daily-theo-category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  background: #f8f9fa;
  border-radius: 4px;
  text-decoration: none;
  color: var(--color-brand-blackish);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-left: 3px solid var(--color-brand-orange);
}

.daily-theo-category-link:hover {
  background: var(--color-brand-orange);
  color: white;
  transform: translateX(2px);
}

.daily-theo-category-count,
.daily-theo-tag-link-count {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

.daily-theo-category-link:hover .daily-theo-category-count {
  color: rgba(255, 255, 255, 0.8);
}

.daily-theo-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.daily-theo-tag-cloud-link {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: #f0f0f0;
  border-radius: 15px;
  text-decoration: none;
  color: var(--color-brand-blackish);
  font-size: 0.8rem;
  transition: all 0.2s ease;
  border: 1px solid #e0e0e0;
}

.daily-theo-tag-cloud-link:hover {
  background: var(--color-brand-deep-orange);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === RI-Lighthouse Feed Widget Styles === */

/* Theo Quote Styling */
.theo-quote {
  position: relative;
  font-weight: bold;
  color: white;
  font-size: 1.5rem; 
  padding: 30px 10px 0 0; 
  text-align: center;
}

.theo-quote::before,
.theo-quote::after {
  content: '"';
  color: rgba(255, 255, 255, 0.5);
  font-family: Georgia, serif;
  line-height: 0.8;
}

.theo-quote .typing-text {
  display: inline;
  min-height: 1.5em;
  transition: all 0.3s ease;
}

.theo-quote .typing-cursor {
  display: inline;
  color: rgba(255, 255, 255, 0.8);
  font-weight: normal;
  margin-left: 0;
  animation: blink .8s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Content Link Styling */
.ri-lighthouse-content .content-link {
  text-decoration: none;
  transition: all 0.2s ease;
}

.ri-lighthouse-content .content-link:hover {
  text-decoration: none;
}

.ri-lighthouse-content .content-placeholder {
  transition: background-color 0.3s ease;
  background-color: #007cba;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  position: relative;
  margin-bottom: 20px;
}

.ri-lighthouse-content .content-link:hover .content-placeholder {
  background-color: #1a8cd8 !important;
}

.ri-lighthouse-content .ri-lighthouse-logo {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0;
}

.ri-lighthouse-content .ri-lighthouse-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

.ri-lighthouse-content .ad-call-to-action {
  background: #1a8cd8;
  color: white;
  padding: 12px 20px;
  display: inline-block;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-top: 20px;
}

/* Donation Section Styling */
.donation-content {
  padding: 20px;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 6px;
  margin-bottom: 20px;
}

.donation-container {
  text-align: center;
}

.donation-container label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-brand-blackish);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.wpedon_paypalbuttonimage {
  margin: 0 auto;
  display: block;
}

/* David's Profile Styling */
.david-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.david-avatar {
  flex-shrink: 0;
}

.david-portrait {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--color-brand-orange);
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.david-info {
  flex: 1;
}

.david-name {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-brand-blackish);
  line-height: 1.2;
}

.david-title {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-brand-gray);
  font-weight: 400;
  line-height: 1.3;
}

.donation-message {
  margin-bottom: 1.5rem;
}

/* David's Book Link Styling */
.david-book-link {
  margin-bottom: 1.5rem;
  text-align: center;
}



/* Article Content Styling */
.article-content {
  padding: 20px;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 6px;
  margin-bottom: 20px;
}

.david-latest-article {
  text-align: center;
}

.latest-article-content {
  margin-top: 1rem;
}

.latest-article-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.latest-article-title a {
  color: var(--color-brand-blackish);
  text-decoration: none;
  transition: color 0.2s ease;
}

.latest-article-title a:hover {
  color: var(--color-brand-orange);
}

.article-date {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  color: var(--color-brand-gray);
  font-style: italic;
}

.article-excerpt {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-brand-text);
}

.read-more-link {
  margin-top: 1rem;
}

.read-david-post {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-brand-orange);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(216, 147, 45, 0.3);
}

.read-david-post:hover {
  background: var(--color-brand-deep-orange);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(216, 147, 45, 0.4);
}

.book-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-brand-gary);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(216, 147, 45, 0.3);
}

.book-link:hover {
  background: var(--color-brand-orange);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(216, 147, 45, 0.4);
}

.book-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.book-text {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ri-lighthouse-feed-shortcode,
.ri_lighthouse_feed_widget,
.ri-lighthouse-feed-auto-insert {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-left: 4px solid #007cba;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Special styling for auto-inserted version within posts */
.ri-lighthouse-feed-auto-insert {
  margin: 3rem 0;
  border: 1px solid #e9ecef;
  background: #ffffff;
  border-left: 4px solid #007cba;
}

.ri-lighthouse-article {
  font-family: inherit;
  position: relative;
}

/* Widget Title Badge */
.widget-title-badge {
  text-align: center;
  margin-bottom: 1.5rem;
}

.widget-title-badge .badge-text {
  display: inline-block;
  background: var(--color-brand-orange);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.ri-lighthouse-article .article-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 700;
}

.ri-lighthouse-article .article-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ri-lighthouse-article .article-title a:hover {
  color: #007cba;
}

.ri-lighthouse-article .article-description {
  margin: 0 0 0.25rem 0;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #6c757d;
  font-weight: 400;
}

.ri-lighthouse-article .article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.ri-lighthouse-article .article-content-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.ri-lighthouse-article .article-image {
  flex-shrink: 0;
  width: 300px;
  height: 355px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ri-lighthouse-article .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ri-lighthouse-article .article-image:hover img {
  transform: scale(1.05);
}

.ri-lighthouse-article .article-content {
  flex: 1;
  min-width: 0;
}

.ri-lighthouse-article .article-author {
  font-weight: 500;
  color: #495057;
}

.ri-lighthouse-article .article-date {
  margin-left: 1rem;
}

.ri-lighthouse-article .article-excerpt {
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
  color: #495057;
  font-size: 1rem;
}

.ri-lighthouse-article .article-excerpt p {
  margin: 0;
  max-width: 600px;
}

.ri-lighthouse-article .article-footer {
  margin-top: 0;
  text-align: right;
}

.ri-lighthouse-article .read-more-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #2c3e50;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
}

.ri-lighthouse-article .read-more-link:hover {
  background: #007cba;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.ri-lighthouse-error {
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ri-lighthouse-feed-shortcode,
  .ri_lighthouse_feed_widget,
  .ri-lighthouse-feed-auto-insert {
    padding: 1rem;
    margin: 1.5rem 0;
  }
  
  .ri-lighthouse-article .article-content-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .ri-lighthouse-article .article-image {
    width: 100%;
    height: 180px;
    align-self: center;
  }
  
  .ri-lighthouse-article .article-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }
  
  .ri-lighthouse-article .article-description {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .ri-lighthouse-article .article-meta {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .ri-lighthouse-article .article-date {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
  }
  
  .ri-lighthouse-article .article-excerpt {
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
  }
  
  .ri-lighthouse-article .read-more-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* === Featured Section Styles === */
#featured-content {
  width: 100%;
  max-width: none;
}

/* === Homepage Featured Layout Styles === */
/* Featured Article Large Display */
.featured-article-large {
  margin-bottom: 2rem;
  margin-left: -1rem;
  margin-right: -1rem;
}

/* Apply same full-width bar treatment as post content */
.featured-post .post-cat-info {
  background: var(--color-brand-lightblue);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0;
}

.featured-post .cat-info-left {
  display: flex;
  align-items: center;
}

.featured-post .cat-info-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.featured-post .post-cat-info a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  padding-right: 0.5rem;
}

.featured-post .post-cat-info a:hover {
  color: var(--color-brand-blackish);
  text-decoration: none;
}

.featured-post .post-cat-info .cat-info-el {
  background: transparent;
  color: white;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.featured-post .post-cat-info .cat-info-el:hover {
  background: var(--color-brand-navy);
  color: white;
}

.featured-post .cat-info-right .meta-info-el {
  color: white;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.featured-post .cat-info-right .meta-info-el a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.featured-post .cat-info-right .meta-info-el a:hover {
  color: var(--color-brand-blackish);
  text-decoration: underline;
}

.featured-box-post .post-cat-info {
  background: var(--color-brand-lightblue);
  padding: 0.5rem 1rem;
  margin-bottom: 0;
}

.featured-box-post .post-cat-info a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
}

.featured-box-post .post-cat-info a:hover {
  color: white;
  text-decoration: none;
}

.featured-box-post .post-cat-info .cat-info-el {
  background: transparent;
  color: white;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
  padding: 0;
  border-radius: 0;
  transition: none;
}

.featured-box-post .post-cat-info .cat-info-el:hover {
  background: transparent;
  color: white;
  text-decoration: none;
}

.featured-post {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.featured-post:hover {
  box-shadow: none;
}

.featured-thumbnail {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.featured-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

.featured-thumbnail img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-post:hover .featured-thumbnail img {
  transform: scale(1.02);
}

.featured-title {
  font-size: 2.5rem !important;
  line-height: 1.2;
  margin: 0.5rem 1.5rem 1rem 1.5rem !important;
  font-weight: 700;
}

.featured-title a {
  color: #333;
  text-decoration: none;
}

.featured-title a:hover {
  color: var(--color-primary, #007cba);
}

.featured-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  margin: 0 1rem 1.5rem 1rem;
}

/* Standardized Category Pills - Used across all articles */
.standardized-category-pills .cat-info-el,
.post-cat-info .cat-info-el {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--color-brand-blackish) !important;
  padding: 0.3rem 0.6rem !important;
  border-radius: 20px !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.standardized-category-pills .cat-info-el a,
.post-cat-info .cat-info-el a {
  color: var(--color-brand-blackish) !important;
  text-decoration: none !important;
}

.standardized-category-pills .cat-info-el:hover,
.post-cat-info .cat-info-el:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* Featured Post Floating Category Pills */
.featured-post .featured-categories-top {
  margin: 1rem 1.5rem 0.5rem 1.5rem;
}

.featured-post .featured-categories-top .post-cat-info {
  background: transparent;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.featured-post .featured-categories-top .cat-info-el {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--color-brand-blackish) !important;
  padding: 0.3rem 0.6rem !important;
  border-radius: 20px !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.featured-post .featured-categories-top .cat-info-el a {
  color: var(--color-brand-blackish) !important;
  text-decoration: none !important;
}

.featured-post .featured-categories-top .cat-info-el:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* Featured Post Meta Line */
.featured-post .featured-meta {
  margin: 0.5rem 1.5rem 1rem 1.5rem;
}

.featured-post .featured-meta .meta-info-el {
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.85rem;
  font-weight: 400;
}

.featured-post .featured-meta .meta-info-el a {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
}

.featured-post .featured-meta .meta-info-el a:hover {
  color: var(--color-primary, #007cba);
}

.post-title {
  clear:both;
}

/* Featured Articles Boxed Layout */
.featured-articles-boxed {
  margin-top: -1rem;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.featured-articles-boxed .featured-articles-grid {
  display: grid !important;
  grid-template-columns: 3fr 2fr !important;
  grid-template-rows: 1fr 0.6fr 0.6fr !important;
  height: 400px !important;
  gap: 0 !important;
}

/* Large Card (60% width, spans 3 rows) */
.featured-box-large {
  grid-column: 1;
  grid-row: 1 / 4;
}

/* Small Cards (40% width, one per row) */
.featured-box-small:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  overflow: hidden;
}

.featured-box-small:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  height: 100%;
  overflow: hidden;
}

.featured-box-small:nth-child(4) {
  grid-column: 2;
  grid-row: 3;
  height: 100%;
  overflow: hidden;
}

.featured-box-post {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.featured-box-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.featured-box-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Blur effect for small cards */
.featured-box-small .featured-box-image {
  filter: blur(2px);
  transition: all 0.3s ease;
}

.featured-box-small:hover .featured-box-image {
  filter: blur(0px);
}

.featured-box-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:  linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0.8rem 1.5rem;
  transition: all 0.3s ease;
}



.featured-box-post:hover .featured-box-image {
  transform: scale(1.05);
}

/* Category Pills on Top (Large Card Only) */
.featured-box-categories-top {
  align-self: flex-start;
  margin-bottom: 1rem;
}

.featured-box-categories-top .post-cat-info {
  background: transparent;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.featured-box-categories-top .cat-info-el {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-brand-blackish);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.featured-box-post:hover .featured-box-categories-top .cat-info-el {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

/* Content Area */
.featured-box-content {
  align-self: flex-end;
  width: 100%;
}

/* Small cards - position titles closer to bottom */
.featured-box-small .featured-box-content {
  align-self: flex-end;
  margin-bottom: 0.2rem;
  padding-bottom: 0.5rem;
}

.featured-box-title {
  margin-bottom: 0.5rem;
}

/* Large Card Title */
.featured-box-large .featured-box-title .post-title {
  font-size: 2.6rem !important;
  line-height: 1.2;
  margin: 0 !important;
  font-weight: 700;
}

/* Small Card Title */
.featured-box-small .featured-box-title .post-title {
  font-size: 2rem !important;
  line-height: 1.2;
  margin: 0 !important;
  font-weight: 600;
}

.featured-box-title .post-title a {
  color: white !important;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.featured-box-title .post-title a:hover {
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Excerpt for Large Card */
.featured-box-excerpt {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* No image fallback */
.featured-box-no-image {
  background: var(--color-brand-lightblue);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  position: relative;
}

.featured-box-no-image .featured-box-categories-top .cat-info-el {
  background: var(--color-brand-navy);
  color: white;
}

.featured-box-no-image .featured-box-title .post-title a {
  color: white;
  text-decoration: none;
  text-shadow: none;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .featured-title {
    font-size: 2rem !important;
    margin: 1.5rem 1rem 1rem 1rem !important;
  }
  
  .featured-thumbnail img {
    height: 400px;
  }
  
  .featured-excerpt {
    margin: 0 1rem 1.5rem 1rem;
  }
}

@media screen and (max-width: 768px) {
  .featured-title {
    font-size: 1.75rem !important;
    margin: 1.5rem 1rem 1rem 1rem !important;
  }
  
  .featured-thumbnail img {
    height: 350px;
  }
  
  .featured-excerpt {
    font-size: 1rem;
    margin: 0 1rem 1.5rem 1rem;
  }
  
  .featured-articles-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 0.8fr 0.8fr 0.8fr;
    height: 500px;
  }
  
  .featured-box-large {
    grid-column: 1;
    grid-row: 1;
  }
  
  .featured-box-small:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  
  .featured-box-small:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }
  
  .featured-box-small:nth-child(4) {
    grid-column: 1;
    grid-row: 4;
  }
  
  .featured-box-large .featured-box-title .post-title {
    font-size: 1.8rem !important;
  }
  
  .featured-box-small .featured-box-title .post-title {
    font-size: 1.2rem !important;
  }
  
  .featured-box-excerpt {
    font-size: 0.8rem;
  }
  
  .featured-box-categories-top .cat-info-el {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
  
  .featured-post .featured-categories-top .cat-info-el,
  .standardized-category-pills .cat-info-el,
  .post-cat-info .cat-info-el {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
  
  .featured-post .featured-meta .meta-info-el {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 640px) {
  .featured-title {
    font-size: 1.5rem !important;
    margin: 1.5rem 1rem 1rem 1rem !important;
  }
  
  .featured-thumbnail img {
    height: 300px;
  }
  
  .featured-excerpt {
    margin: 0 1rem 1.5rem 1rem;
  }
  
  .featured-articles-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 0.8fr 0.8fr 0.8fr;
    height: 600px;
  }
  
  .featured-box-large {
    grid-column: 1;
    grid-row: 1;
  }
  
  .featured-box-small:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  
  .featured-box-small:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }
  
  .featured-box-small:nth-child(4) {
    grid-column: 1;
    grid-row: 4;
  }
  
  .featured-box-large .featured-box-title .post-title {
    font-size: 1.5rem !important;
  }
  
  .featured-box-small .featured-box-title .post-title {
    font-size: 1.1rem !important;
  }
  
  .featured-box-excerpt {
    font-size: 0.75rem;
  }
  
  .featured-box-categories-top .cat-info-el {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }
  
  .featured-post .featured-categories-top .cat-info-el,
  .standardized-category-pills .cat-info-el,
  .post-cat-info .cat-info-el {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }
  
  .featured-post .featured-meta .meta-info-el {
    font-size: 0.75rem;
  }
  
  /* Mobile responsiveness for category bar */
  .featured-post .post-cat-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
  
  .featured-post .cat-info-right {
    align-self: flex-end;
    gap: 0.75rem;
  }
  
  .featured-post .cat-info-right .meta-info-el {
    font-size: 0.75rem;
  }
}