/* 
Theme Name: Allied Marine
Theme URI: https://www.webnixon.com/
Description: Allied Marine Child Theme
Author: Rutul Shah
Author URI: https://www.rutulshah.com
Template: hello-elementor
Version: 2.0.0
Text Domain: navinue-allied
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Container */
.navinue-posts-grid {
  width: 100%;
}

/* Flex wrapper */
.navinue-posts-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
}

/* Individual Post Item */
.navinue-post-item {
  position: relative;
  /* flex: 0 0 calc(25% - 22.5px); 4 columns with 30px gap */
  height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.navinue-post-item.post-column-4 {
  flex: 0 0 calc(25% - 22.5px);
}
.navinue-post-item.post-column-3 {
  flex: 0 0 calc(33.33% - 22.5px);
}

/* Featured Image */
.navinue-post-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: overlay;
}

/* Post Content */
.navinue-post-content {
  position: relative;
  z-index: 2;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  padding: 20px;
  transition: all 0.4s ease;
}

.navinue-post-content h3.navinue-post-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  transition: all 0.4s ease;
  line-height: 23px;
  transform: translateY(45px);
}

.navinue-read-more {
  display: inline-block;
  color: #ffffff !important;
  /*border: 1px solid #ffffff;*/
  padding: 10px 20px;
  font-weight: 800;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.4s ease;
}

.navinue-read-more:hover {
  color: #ffffff !important;
  background: var(--e-global-color-secondary);
  /*border: 1px solid var( --e-global-color-secondary );*/
}

/* Hover Effect */
.navinue-post-item:hover .navinue-post-title {
  transform: translateY(-10px);
}

.navinue-post-item:hover .navinue-read-more {
  opacity: 1;
  transform: translateY(0);
}

.navinue-post-item:hover .navinue-post-content {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

/* Layout and structure */
.navinue-latest-posts-landing .row {
  display: flex;
  width: 100%;
  gap: 30px;
}

.navinue-latest-posts-landing .col-md-6 {
  flex: 1;
  width: 50%;
}

.navinue-latest-posts-landing .mb-3 {
  margin-bottom: 30px;
}

.smaller-posts {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Post blocks */
.navinue-latest-posts-landing .post-1 {
  height: 500px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 15px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: overlay;
}

.post-2 {
  height: 350px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 15px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: overlay;
}

.post-3,
.post-4 {
  height: 120px;
  padding: 0;
}

/* Text sections */
.smaller-posts .text-section {
  background: var(--e-global-color-primary);
  padding: 10px;
  height: 120px;
  max-width: 60%;
}

/* Typography and color */
.navinue-latest-posts-landing .row * {
  color: #ffffff;
}

.navinue-latest-posts-landing .post-title {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  font-family: var(--e-global-typography-2413c30-font-family), Sans-serif;
}

.navinue-latest-posts-landing .post-1 .post-title {
  font-size: var(--e-global-typography-72d943a-font-size);
  line-height: var(--e-global-typography-72d943a-line-height);
}

.navinue-latest-posts-landing .post-2 .post-title {
  font-size: var(--e-global-typography-e67f47f-font-size);
  font-weight: var(--e-global-typography-e67f47f-font-weight);
  line-height: var(--e-global-typography-e67f47f-line-height);
}
.navinue-latest-posts-landing .post-3 .post-title,
.navinue-latest-posts-landing .post-4 .post-title {
  font-size: 13px;
  line-height: 17px;
  font-weight: 700;
}

.navinue-latest-posts-landing .post-3 .post-title span,
.navinue-latest-posts-landing .post-4 .post-title span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4em;
}

.navinue-latest-posts-landing .date-field {
  color: #ffffff;
  font-size: 12px;
  line-height: 22px;
  font-weight: 300;
  font-family: var(--e-global-typography-dfec7eb-font-family), Sans-serif;
}

/* Read more link */
.navinue-latest-posts-landing .read-morelink a {
  font-size: 16px;
  line-height: 20px;
  font-weight: 800;
  color: var(--e-global-color-37a73eb);
  font-family: var(--e-global-typography-dfec7eb-font-family), Sans-serif;
}

.navinue-latest-posts-landing .read-morelink i {
  font-size: 16px;
  color: var(--e-global-color-37a73eb);
}

.navinue-latest-posts-landing .read-morelink a:hover,
.navinue-latest-posts-landing .read-morelink a:hover i {
  color: #ffffff;
}

.navinue-latest-posts-landing .post-3 .image-section,
.navinue-latest-posts-landing .post-4 .image-section {
  flex: 0 0 40%;
}

.navinue-latest-posts-landing .post-3 .image-section img,
.navinue-latest-posts-landing .post-4 .image-section img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}
@media screen and (max-width: 1023px) {
  .navinue-latest-posts-landing .row {
    flex-direction: column;
  }
  .navinue-latest-posts-landing .col-md-6 {
    width: 100%;
  }
  .navinue-latest-posts-landing .post-1,
  .navinue-latest-posts-landing .post-2 {
    width: 100%;
    height: 250px;
    min-height: 250px;
    gap: 20px;
  }
  .post-3,
  .post-4 {
    height: auto;
  }
  .navinue-latest-posts-landing .post-3 .image-section img,
  .navinue-latest-posts-landing .post-4 .image-section img,
  .smaller-posts .text-section {
    width: 100%;
    height: 170px;
  }
  .navinue-latest-posts-landing .post-1 .post-title,
  .navinue-latest-posts-landing .post-2 .post-title,
  .navinue-latest-posts-landing .post-3 .post-title,
  .navinue-latest-posts-landing .post-4 .post-title {
    font-size: 18px;
    line-height: 22px;
  }
  .text-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .navinue-latest-posts-landing .col-md-6 .row {
    margin-bottom: 50px;
  }
  .navinue-post-item.post-column-4,
  .navinue-post-item.post-column-3 {
    flex: 0 0 calc(50% - 15.5px);
  }
}

@media screen and (max-width: 767px) {
  .navinue-posts-flex {
    flex-direction: column;
  }

  .navinue-post-item {
    min-height: 300px;
  }
  .navinue-post-item.post-column-4,
  .navinue-post-item.post-column-3 {
    flex: 0 0 100%;
  }
  /* .navinue-latest-posts-landing .post-3 .post-title span,
  .navinue-latest-posts-landing .post-4 .post-title span {
    -webkit-line-clamp: 3;
  } */
}
