 body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }
        header {
            background-color: #2c3e50;
            color: white;
            padding: 0;
            text-align: left; /* Align text to the left */
        }
    
/* Base styles */
.navbar {
  background-color: #222;
  padding: 0;
  z-index: 1000;
  
}

.navbar .nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-left: 5px;
}

.navbar .brand {
  color: white;
  text-decoration: none;
  font-size: 1.5em;
}

.navbar .nav-toggle {
  font-size: 1.5em;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  
}

.navbar ul.nav-menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.navbar ul.nav-menu li {
  position: relative;
}

.navbar ul.nav-menu li a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}

.navbar ul.nav-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #333;
  min-width: 160px;
  z-index: 1000;
}

.navbar ul.nav-menu li ul {
  list-style-type: none;
}

.navbar ul.nav-menu li.has-dropdown:hover > ul {
  display: block;
}

/* Show arrow on dropdowns */
.has-dropdown > a::after {
  content: " ▼";
  font-size: 0.75em;
  margin-left: 5px;
  color: #ccc;
}

/* Active page styling */
.navbar li.active > a {
  background-color: #555;
  font-weight: bold;
}

        .column {
            padding: 10px;
        }
        .left, .right {
            flex: 1; /* Narrower columns for headlines */
            background-color: #ecf0f1;
        }
        .center {
            flex: 3; /* Wider center column */
            background-color: #f7f9f9;
        }
        .headline-section {
            background-color: #dff9fb;
            padding: 10px;
	     margin-bottom: 20px;
            border-radius: 5px;
            border: 1px solid #ccc;
        }
        .headline-section h3 {
            margin-top: 0;
        }
        .post {
            margin-bottom: 20px;
            padding: 15px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: white;
        }

        .headline-section ul {
    list-style-type: none; /* Removes the circle/bullet */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

.headline-section ul li {
    margin-bottom: 8px; /* Adds spacing between headlines */
}

.headline-section ul li a {
    text-decoration: none; /* Removes underline from links */
    color: #007bff; /* Makes the link a nice blue */
    font-weight: bold; /* Emphasizes the link text */
}

.headline-section ul li a:hover {
    text-decoration: underline; /* Underlines the link on hover */
}

        .headline-link {
            display: block;
            margin-bottom: 10px;
            text-decoration: none;
            color: #34495e;
        }
        .headline-link:hover {
            color: #2c3e50;
            text-decoration: underline;
        }
        footer {
            background-color: #2c3e50;
            color: white;
            text-align: center;
            padding: 1rem 0;
            margin-top: 20px;
        }
        footer nav a {
           color: white;
           margin: 0 10px;
           text-decoration: none;
        }
        footer nav a:hover {
           text-decoration: underline;
        }

.carousel img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        object-position: center;
    }


.carousel-text-bg {
    background-color: rgba(0, 0, 0, 0.6); /* Black with 60% opacity */
    padding: 10px; /* Add some padding around the text */
    border-radius: 5px; /* Optional: Rounded corners */
    display: inline-block; /* Keep the background only around the text */
}

.feed-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
    }
    .post-card {
      background: white;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: transform 0.2s ease;
    }
    .post-card:hover {
      transform: scale(1.02);
    }
    .post-card img, .post-card video {
      width: 100%;
      display: block;
    }
    .post-info {
      padding: 10px;
    }
    .post-info p {
      margin: 5px 0;
    }
    .username {
      font-weight: bold;
    }
    .error {
      color: red;
      text-align: center;
    }

.truth-feed {
  max-width: 700px;
  margin: auto;
  padding: 20px;
  background-color: #f1f3f7;
  font-family: 'Helvetica Neue', sans-serif;
}

.truth-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.truth-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-right: 15px;
  border: 2px solid #ccc;
}

.truth-user-info h2 {
  margin: 0;
  font-size: 1.4em;
}

.truth-handle {
  color: #888;
  font-size: 0.95em;
}

.truth-post {
  background-color: white;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.truth-date {
  font-size: 1.05em;
  color: #999;
  margin-bottom: 10px;
}

.truth-content {
  font-size: 1.1em;
  margin-bottom: 10px;
}

.truth-media {
  margin-top: 10px;
}

.truth-image {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.truth-post a {
  text-decoration: none;
  color: #0056b3;
  font-weight: bold;
}

.truth-video {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  z-index: 5;
  position: relative;
}

.truth-link-preview {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  margin: 15px 0;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.preview-wrapper {
  display: flex;
  color: inherit;
  text-decoration: none;
}

.preview-thumbnail {
  width: 150px;
  height: auto;
  object-fit: cover;
}

.preview-meta {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preview-title {
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 6px;
}

.preview-desc {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 6px;
}

.preview-domain {
  font-size: 0.8em;
  color: #999;
}

.truth-meta {
  font-size: 0.9em;
  color: #444;
  margin-top: 8px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.truth-count {
  display: flex;
  align-items: center;
  gap: 6px;
}

.truth-count i {
  color: #888;
  font-size: 1em;
}



#scrollToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 999;
  background-color: #444;
  color: white;
  font-size: 1.5em;
  padding: 10px 15px;
  border-radius: 0;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s, visibility 0.3s;
}

#scrollToTop:hover {
  background-color: #666;
}


@media (max-width: 768px) {
    .carousel img {
        height: 300px; /* Smaller height for tablets and mobile */
    }

    .carousel-caption {
    font-size: 0.9em;
    right: 10%;
    bottom: 10px;
    left: 10%;
    text-align: center;
}    

.h5, h5 {
    font-size: 1.00rem;
}

    .carousel-text-bg {
    background-color: rgba(0, 0, 0, 0.6); /* Black with 60% opacity */
    padding: 10px; /* Add some padding around the text */
    border-radius: 5px; /* Optional: Rounded corners */
    display: inline-block; /* Keep the background only around the text */
}  

    .navbar .nav-toggle {
    display: inline;
    margin-left: auto;
    padding-right: 5px;
  }

  .navbar ul.nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    list-style-type: none;
  }

  .navbar ul.nav-menu.show {
    display: flex;
  }

  .navbar ul.nav-menu li ul {
    position: static;
    background-color: #444;
  }

  .navbar ul.nav-menu li.has-dropdown:hover > ul {
    display: none;
  }

  .navbar ul.nav-menu li.has-dropdown > ul {
    display: none;
  }

  .navbar ul.nav-menu li.has-dropdown.open > ul {
    display: block;
  }
}


}

@media (max-width: 480px) {
    .carousel img {
        height: 175px; /* Smaller height for mobile devices */
    }
     
    .navbar .nav-toggle {
    display: inline;
    margin-left: auto;
    padding-right: 5px;
  }

  .navbar ul.nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    list-style-type: none;
  }

  .navbar ul.nav-menu.show {
    display: flex;
  }

  .navbar ul.nav-menu li ul {
    position: static;
    background-color: #444;
  }

  .navbar ul.nav-menu li.has-dropdown:hover > ul {
    display: none;
  }

  .navbar ul.nav-menu li.has-dropdown > ul {
    display: none;
  }

  .navbar ul.nav-menu li.has-dropdown.open > ul {
    display: block;
  }

}    
