/* Main footer container */
.site-footer {
  background-color: #1f1f1f;
  color: #e0e0e0;
  font-size: 15px;
  padding: 40px 20px 0;
}

/* Top part layout */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 30px;
}

/* Each column */
.footer-column {
  flex: 1 1 220px;
  margin: 10px 20px;
}

/* Column headings */
.footer-column h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Make sure links appear vertically */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.footer-column ul li a {
  color: #cccccc;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

/* Text paragraphs in About section */
.footer-column p {
  line-height: 1.6;
  margin: 0;
}

/* Bottom copyright section */
.footer-bottom {
  border-top: 1px solid #333;
  padding: 15px 0;
  text-align: center;
  font-size: 13px;
  color: #aaa;
  background-color: #1f1f1f;
}

/* Footer heading refinement */
.footer-column h2 {
  color: #ffffff;
  font-size: 15px;     /* reduced from 16px or higher */
  font-weight: 600;
  margin-bottom: 10px;
}

/* Footer links */
.footer-column ul li a {
  color: #dddddd;              /* slightly brighter */
  font-size: 14px;             /* a bit larger for clarity */
  text-decoration: none;
  display: block;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ffffff;
  text-decoration: underline;  /* optional: visual cue */
}


.navbar {
  background-color: #1f1f1f; /* Black background */
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.navbar a {
  color: #fff; /* White text for links */
  text-decoration: none;
  padding: 10px 15px;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 500;
  font-size: 16px;
}

.navbar a:hover,
.navbar a:focus {
  background-color: #1a1a1a; /* Darker hover background */
  color: #f0f0f0; /* Slightly lighter text */
  border-radius: 4px;
}

.navbar .active {
  background-color: #333; /* Highlight active page */
  color: #fff;
  border-radius: 4px;
}

/* Base nav style */
.navbar .nav {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Top-level nav links */
.navbar .nav > li > .nav-link {
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  position: relative;
}

/* Dropdown container */
.navbar .nav > li.dropdown {
  position: relative;
}

/* Hide submenus by default */
.navbar .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

/* Show submenu on hover (desktop) */
.navbar .dropdown:hover > .dropdown-menu {
  display: block;
}

/* Submenu links */
.navbar .dropdown-menu li {
  border-bottom: 1px solid #eee;
}

.navbar .dropdown-menu li:last-child {
  border-bottom: none;
}

.navbar .dropdown-menu .nav-link {
  color: #333;
  padding: 10px 15px;
  display: block;
  background: #fff;
  text-decoration: none;
}

.navbar .dropdown-menu .nav-link:hover {
  background-color: #f0f0f0;
  color: #000;
}

.block-views-exposed-filter-blocksearch-page-1 .js-form-submit {
  display: none;
}

.block-views-exposed-filter-blocksearch-page-1 .form-item {
  margin-bottom: 0;
}

.block-views-exposed-filter-blocksearch-page-1 form {
  display: flex;
  align-items: center;
}

.search-wrapper input[type="text"] {
  padding-right: 35px;
  height: 40px;
  width: 100%;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.search-click-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: blue;
  cursor: pointer;
  user-select: none;
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.breadcrumb__item::after {
  content: ">";
  padding: 0 0.5rem;
  color: #999;
}

.breadcrumb__item:last-child::after {
  content: "";
}

p {
  font-size: 14;
}

.block-layout-builder .title{
  font-size: x-large;
  font-weight: 500; 
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar a {
    width: 100%;
    padding: 10px;
  }
}

/* Hide main menu on small screens */
@media (max-width: 991.98px) {
  .navbar {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .navbar .nav {
    flex-direction: column;
  }

  .navbar .dropdown:hover > .dropdown-menu {
    display: none; /* Prevent hover dropdown on touch devices */
  }
}

/* ===== Core Engagement Styles ===== */
:root {
  --primary: #4361ee;       /* Vibrant blue */
  --secondary: #f72585;     /* Energetic pink */
  --dark: #1a1a2e;          /* Deep navy */
  --light: #f8f9fa;         /* Light background */
  --text: #2b2d42;          /* Main text */
  --text-light: #f8f9fa;    /* Light text */
  --accent: #4cc9f0;        /* Bright accent */
  --radius: 12px;           /* Modern rounded corners */
  --shadow: 0 8px 24px rgba(0,0,0,0.1);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  color: var(--text);
  background: var(--light);
  overflow-x: hidden;
}

/* ===== Sticky Engagement Elements ===== */
/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 100;
  cursor: pointer;
  transition: var(--transition);
  transform: scale(0);
}

.fab.visible {
  transform: scale(1);
}

.fab:hover {
  background: var(--secondary);
  transform: scale(1.1) rotate(10deg);
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1000;
  transition: width 0.2s ease;
}

/* Sticky Table of Contents */
.toc-container {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  max-width: 250px;
  max-height: 70vh;
  overflow-y: auto;
  opacity: 0;
  transition: var(--transition);
  z-index: 99;
}

.toc-container.visible {
  opacity: 1;
  left: 40px;
}

.toc-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 8px;
}

.toc-link {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 5px 0;
  border-left: 3px solid transparent;
  padding-left: 10px;
}

.toc-link:hover, .toc-link.active {
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: 15px;
}

/* ===== Article Engagement ===== */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

/* Content Highlights */
.content-highlight {
  background: rgba(67, 97, 238, 0.05);
  border-left: 4px solid var(--primary);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Pull Quotes */
.pull-quote {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--primary);
  text-align: center;
  margin: 40px auto;
  max-width: 600px;
  font-weight: 600;
  position: relative;
  padding: 20px 0;
}

.pull-quote::before,
.pull-quote::after {
  content: '"';
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
}

.pull-quote::before {
  top: -10px;
  left: -30px;
}

.pull-quote::after {
  bottom: -40px;
  right: -30px;
}

/* ===== Engagement Widgets ===== */
/* Newsletter CTA */
.newsletter-cta {
  position: sticky;
  bottom: 0;
  background: var(--dark);
  color: white;
  padding: 20px;
  text-align: center;
  z-index: 90;
  transform: translateY(100%);
  transition: var(--transition);
}

.newsletter-cta.visible {
  transform: translateY(0);
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
}

.newsletter-button {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-button:hover {
  background: var(--primary);
}

/* Content Recommendations */
.content-recs {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  max-width: 250px;
  opacity: 0;
  transition: var(--transition);
}

.content-recs.visible {
  opacity: 1;
  right: 40px;
}

.rec-item {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
}

.rec-number {
  background: var(--primary);
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 0.8rem;
}

.rec-link {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

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

/* ===== Interactive Elements ===== */
/* Reaction Buttons */
.reactions {
  position: fixed;
  bottom: 100px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 98;
}

.reaction-btn {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  transform: scale(0);
}

.reaction-btn.visible {
  transform: scale(1);
}

.reaction-btn:hover {
  transform: scale(1.2) rotate(10deg);
}

/* Tooltip for reactions */
.reaction-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: white;
  padding: 8px 15px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  white-space: nowrap;
}

.reaction-btn:hover .reaction-tooltip {
  opacity: 1;
  right: 80px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1200px) {
  .toc-container {
    left: 10px;
    max-width: 200px;
  }
  
  .content-recs {
    right: 10px;
    max-width: 200px;
  }
}

@media (max-width: 992px) {
  .toc-container,
  .content-recs {
    display: none;
  }
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-input,
  .newsletter-button {
    border-radius: var(--radius);
    width: 100%;
  }
  
  .newsletter-button {
    padding: 15px;
    margin-top: 10px;
  }
  
  .reactions {
    bottom: 80px;
    right: 20px;
  }
  
  .reaction-btn {
    width: 45px;
    height: 45px;
  }
}

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fab {
  animation: float 4s ease-in-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(67, 97, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

.highlight-box {
  animation: pulse 2s infinite;
}