/* ============== VARTA.SPACE CUSTOM STYLES ============== */

/* --- GENERAL FONT FIX FOR NEWS CHANNEL --- */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1, h2, h3 {
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-weight: 400;
}


/* -----------------------------------
   Section Wrapper
----------------------------------- */
.single_left_coloum_wrapper {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 10px;
}

/* -----------------------------------
   SECTION HEADER (Title + More)
----------------------------------- */
.section-header {
  position: relative;
  right: -110px; /* Adjust this value to move left */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #e60000;
  margin-bottom: 14px;
  padding-bottom: 8px;
  margin-left: -0px;
}

.section-header .title {
  font-size: 20px;
  font-weight: 800;
  transform: translateX(-0px); /* Moves title to left */
  text-transform: uppercase;
  margin: 0;
  color: #111;
}

.section-header .more {
  font-size: 14px;
  font-weight: 700;
  color: #e60000;
  text-decoration: none;
}

.section-header .more:hover {
  text-decoration: underline;
}

/* -----------------------------------
   ARTICLE GRID
----------------------------------- */
.articles-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}

.single_left_coloum {
  flex: 1;
  max-width: calc(33.33% - 14px);
}

/* Image fix */
.single_left_coloum img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
}

/* Titles */
.single_left_coloum h3 {
  min-height: 55px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Summary text */
.single_left_coloum p {
  min-height: 45px;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}   /* centers the text */


/* READ MORE */
.single_left_coloum .readmore {
  color: #e60000;
  font-size: 13px;
  font-weight: 700;
}

/* -----------------------------------
   GALLERY
----------------------------------- */
.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.gallery-thumbs a {
  width: calc(33.33% - 7px);
}

.gallery-thumbs img {
  width: 100%;
  height: 120px;
  border-radius: 6px;
  object-fit: cover;
}

/* -----------------------------------
   CARTOONS
----------------------------------- */
.cartoon-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cartoon-thumbs a {
  width: calc(33.33% - 7px);
}

.cartoon-thumbs img {
  width: 100%;
  height: 120px;
  border-radius: 6px;
  object-fit: cover;
}


/* -----------------------------------
   RIGHT COLUMN
----------------------------------- */
.right_coloum {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* VIDEO FIX: No cropped faces */
.from-the-desk video {
  width: 100%;
  object-fit: contain;
  max-height: 220px;
  background: #000;
  display: block;
}

/* EDITORIAL images */
.single_cat_right_content.editorial img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: top;
}

/* POPULAR LIST */
.popular ul {
  padding-left: 0;
  list-style-type: none;
}

.popular li {
  padding: 6px 0;
  border-bottom: 1px dotted #ddd;
}

/*HumHub*/
/* 1. Placement Fix (Aggressive Clearing) */
.sidebar-clear-fix {
    /* Forcing it to behave like a standard block element */
    display: block !important; 
    /* Forcing it onto a new line, below all floats */
    clear: both !important; 
    /* Ensures it spans the full width of the sidebar column */
    width: 100% !important; 
    /* Adds separation from the content above it */
    margin-top: 25px; 
}

/* 2. Styling to match your existing sidebar blocks */
#writers-hub-feed {
    /* Padding to create a visual box */
    padding: 0 0 10px 0; 
    /* Assuming your sidebar blocks have this margin/spacing */
    margin-bottom: 20px; 
}

/* 3. Title Styling (Matching POPULAR/EDITORIAL style) */
#writers-hub-feed .title {
    /* Ensure the red underline is consistent */
    border-bottom: 3px solid #ff0000; 
    padding-bottom: 5px;
    margin-bottom: 15px; /* Space between title and posts */
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
}

/* Individual post container */
.hub-post {
    border-bottom: 1px dotted #e0e0e0;
    padding: 10px 0;
    margin-bottom: 5px;
}

.hub-post:last-child {
    border-bottom: none; /* No border for the last item */
    padding-bottom: 0;
}

/* Header line (Author and View Link) */
.hub-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.hub-post-author {
    font-weight: 700;
    color: #333;
    font-size: 0.95em;
}

.hub-post-link {
    font-size: 0.75em;
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.hub-post-link:hover {
    color: #0056b3;
}

/* Post message text */
.hub-post-message {
    margin: 3px 0;
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

.hub-post-date {
    display: block;
    font-size: 0.7em;
    color: #999;
    margin-top: 5px;
}

.hub-placeholder {
    padding: 10px;
    text-align: center;
    background-color: #fff;
}

/* ensure right column width and stack on small screens */
@media (max-width: 900px) {
  .right_coloum {
    width: 100%;
  }
  .left_coloum {
    width: 100%;
  }
  .newsapi-right { margin-top: 16px; }
}

/* Latest Headlines (Right Column) */
.newsapi-right__title {
    border-bottom: 3px solid #ff0000; 
    padding-bottom: 5px;
    margin-bottom: 15px; /* Space between title and posts */
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
}

/* second underline (thin) */
.newsapi-right__title:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: #000;
  bottom: -6px;
  left: 0;
}

/* 3. Force the Footer's top section to clear all previous content */
.footer_top_area {
    clear: both; /* Forces the footer ad to start below all floating content */
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .articles-row {
    flex-direction: row; /* Change from column (vertical) to row (horizontal) */
    flex-wrap: wrap; 
  }
  .single_left_coloum {
    max-width: 100%;
  }
  .gallery-thumbs a {
    width: calc(50% - 5px);
  }
  .section-header {
    padding-top: -35px;   /* Reduce padding if there's too much space above */
    text-align: center;     
    margin-left: -44px;             /* Move the whole section title left */
  }
}

 