/* CUSTOM FONTS:
 * Oswald
 * Manrope
 * Playfair Display SC
 * Libre Baskerville
 * Playwrite Magyarország
 *
 * COLORS:
 * Red: #EB3136
 */

/* Theme Color Palette */
:root {
    --dark-gray: #1f1e23;
    --medium-gray: #23232b;
    --gray: #364248;
    --red: #EB3136;
    --white: #f7f7f7;
}

@font-face {
  font-family: 'Oswald';
  src: url('../fonts/Oswald-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

h1, h2, h3, h4, h5 {
  font-family: 'Oswald', serif;
}

body {
  background-color: #f7f7f7;
}

.footer {
  color: black;
  background-color: white;
  background-image: none;
}

/* LINKS */
a {
  color: #333;
  transition: color 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

a:hover {
  color: #EB3136;
  text-decoration: none;
}

/* Menu styling */
.container-nav {
  background: white;
}

.container-header .navbar-toggler {
  color: black;
  border: black;
}

.container-header .mod-menu {
  color: black;
}

.metismenu-item .level-2 {
  color: #EB3136;
}

/* tag styling */
.hsr-tag {
    background-color: white;
    padding: 5px 10px;
    border-radius: 5px;
    border-color: #d7d7d7;
    color: #333;     
    font-size: 0.8em;
    transition: color 0.25s ease, color 0.25s ease;
}

.hsr-tag:hover {
  color: #EB3136;
}

/* Image Radius */
.hsr-article-img img {
  border-radius: 15px;
}

/* Custom Search Results */
.com-finder .card,
.com-finder .js-finder-advanced {
    display: none !important;
}

/* Body Styling */
.custom-section {
  max-width: 960px; 
  justify-self: center; 
  padding: -10px; 
  margin: -10px; 
  padding-bottom: 50px;
}

.custom-container {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--red);
}

/* center Search module */
.container-search {
  display: flex;
  align-items: center; 
}

/* center Footer */
.mod-footer {
  text-align: center;
  width: 100%;
}

.mod-footer .footer1,
.mod-footer .footer2 {
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

/* Grid Styling */
.grid-section {
  max-width: 960px; 
  margin: -10px;
  padding: -10px;
  justify-self: center;
}

.grid-cols-responsive {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 1024px) {
  .grid-cols-responsive {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Base container styling */
.blog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.blog-row {
  display: flex;
  flex-direction: column;
  /* gap: 2rem; */
}

/* Featured article styling */
.featured-article {
  display: flex;
  flex-direction: column;
  /* gap: 0.5rem; */
}

.featured-article .article-image-wrapper img {
  width: 100%;
  border-radius: 0.375rem;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.featured-article .article-title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  /* margin: 0.5rem 0; */
}

.featured-article .article-content {
  font-size: 1.125rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 900px;
  margin-left: -10px;
}

/* Article cards styling */
.article-list {
  display: flex;
  flex-direction: column;
}

.article-card {
  margin-bottom: 0.5rem;
}

.article-content-wrapper {
  display: flex;
  flex-direction: column;
}

.article-text-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.article-image {
  width: 100%;
}

.article-image img {
  width: 100%;
  border-radius: 0.375rem;
  aspect-ratio: 3/2;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

/* Article titles */
.article-card .article-title {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 500;
}

/* Article excerpt */
.article-excerpt {
  font-size: 0.875rem;
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient text for categories */
.gradient-text {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 800;
  background: linear-gradient(90deg, #EB3136 0%, #EB3136 100%);
  /* background: linear-gradient(90deg, #912B3B 0%, #8D4651 100%); */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Links styling */
.article-category a {
  text-decoration: none;
  display: inline-block;
}

.article-title a {
  text-decoration: none;
  color: inherit;
}

.article-title a:hover,
.article-image a:hover {
  text-decoration: underline;
  text-underline-offset: 1px;
}

/* Subscribe button */
.subscribe-button {
  background: transparent;
  border: none;
  color: white;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  margin-top: 0.5rem;
  text-align: left;
}

.subscribe-button.small {
  font-size: 0.75rem;
}

.com-users-login {
  max-width: 600px;
  justify-self: center;
}

/* Responsive design */
@media (min-width: 1024px) {
  .blog-row {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .featured-col {
    width: 50%;
    padding-right: 2rem;
  }
  
  .secondary-col {
    width: 50%;
  }
  
  /* Position image to the right of text on large screens */
  .article-content-wrapper {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .article-text-content {
    width: 60%;
    order: 1;
  }
  
  .article-image {
    width: 40%;
    order: 2;
  }
}

/* Tablet adjustments */
@media (max-width: 1023px) {
  .blog-container {
    padding: 0 0.75rem;
  }
  
  .featured-article .article-title {
    font-size: 1.5rem;
  }

  .featured-article .article-content {
    margin-left: -10px;
    margin-bottom: 3rem;
  }


  .article-image {
    order: 1; /* Image on top */
  }
  
  .article-text-content {
    order: 2; /* Text below */
  }

  .article-card .article-title {
    font-size: 1.5rem;
  }

  .article-excerpt {
  font-size: 1.125rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 900px;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .blog-container {
    padding: 0; 
    max-width: 100%;
    width: 100%;
  }
  
  .blog-row {
    gap: 1rem; /* gap between sections */
  }
  
  .article-list {
    gap: 1rem; /* gap between articles */
  }
  
  .featured-article .article-content {
    -webkit-line-clamp: 3;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 400;
  }

  .featured-article .article-title {
    font-size: 1rem;
    margin-top: 0;
  }

  .featured-article .article-content .container-fluid {
    margin-left: -9px;
    margin-right: -10px;
    width: calc(100% + 20px);
  }
  
  .featured-article .article-category,
  .featured-article .article-title {
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
  }

  .article-card .article-title {
    font-size: 1rem;
  }
  
  /* Position image above text on mobile */
  .article-content-wrapper {
    flex-direction: column;
  }
  
  .article-text-content,
  .article-image {
    width: 100%;
  }
  
  .article-image {
    order: 1; /* Image on top */
  }
  
  .article-text-content {
    order: 2; /* Text below */
  }

  .article-excerpt {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 400;
    margin: 0.25rem 0;
  }
  
  .article-image-wrapper,
  .article-image {
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
  }
  
  /* Reset image container order across all articles */
  .article-image {
    order: 1;
  }
  
  .article-text-content {
    order: 2; /* Text below */
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
  }

  .top-a-width {
    max-width: 800px;
  }

  .radius {
    border-radius: 15px;
  }

  .center-pricing-table {
    justify-content: center;
  }
}