/**
  * Theme Name:     RacingKing
  * Author:         RacingKing
  * Template:       visual-composer-starter
  * Text Domain:	   racingking
  * Description:    RacingKing
  */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
/* 2. Apply it globally */
body,
button,
input,
select,
textarea {
  font-family: "Manrope", sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}
/* 3. Ensure headings also use the font (some themes override this) */
h1,
h2,
h3,
h4,
h5,
h6,
a {
  font-family: "Manrope", sans-serif !important;
  font-weight: 700 !important;
}
a:focus {
  outline: none !important;
}
a:active,
a:focus {
  border: none !important;
}
.post-grid {
  display: grid;
  /* This creates 3 columns of equal width */
  grid-template-columns: repeat(4, 1fr);
  /* The gap between posts */
  gap: 20px;
}
/* Responsive adjustment: Switch to 1 column on mobile devices */
@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Responsive adjustment: Switch to 1 column on mobile devices */
@media (max-width: 480px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}
/* Optional: Ensure images within columns don't overflow */
.post-column img {
  max-width: 100%;
  height: auto;
}
.entry-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  /* Adjust the size */
  font-weight: 700;
  /* 700 is Bold, 400 is Normal */
  line-height: 1.2;
  /* Spacing between lines */
  color: #000000;
  /* Change the text color */
  text-transform: uppercase;
  /* Use 'uppercase' for ALL CAPS */
  margin-bottom: 15px;
  /* Space between title and excerpt */
}
/* To change the color when hovering over the link */
.entry-title a {
  text-decoration: none;
  color: inherit;
}
.entry-title a:hover {
  color: #1b1b1b;
  /* Color changes on hover */
}
.nav-links.archive-navigation {
  display: flex;
  justify-content: center;
}
.nav-links.archive-navigation .page-numbers {
  background-color: #fff !important;
  color: #000000 !important;
  font-weight: bold !important;
  font-style: normal !important;
}
/* Fixed/Sticky Header */
#header {
  width: 100% !important;
}
.navbar-brand h1 a {
  color: #000000 !important;
  font-weight: bolder !important;
  padding-left: 10px;
}
@media (min-width: 768px) {
  .navbar-brand h1 a {
    padding-left: 0;
  }
}

.navbar-brand {
  width: 60px;
}

.navbar-container {
  backdrop-filter: blur(10px);
}

.navbar-text {
  display: none;
}

@media (min-width: 768px) {
  .navbar-brand {
    width: 950px;
    justify-content: space-between;
    display: flex;
    align-items: center;
  }
  .navbar-logo {
    width: 60px;
  }
  .navbar-text {
    margin: 0;
    display: flex;
  }
}

.navbar-wrapper {
  position: fixed !important;
  width: 100% !important;
  z-index: 9999;
  /* background-color: #fff !important; */
  background-color: rgba(255, 255, 255, 0.6) !important;

  top: 0;
  left: 0;
  margin: 0 0 !important;
  display: flex;
  flex-direction: column;
  padding: 0 0;
}
.navbar-wrapper .navbar-header div {
  margin-bottom: 0px;
}
.navbar-header {
  max-width: 100% !important;
  display: block;
  padding: 20px;
}
@media (min-width: 768px) {
  .navbar-header {
    display: flex;
    justify-content: center;
  }
}

.navbar-logo {
  display: flex;
  justify-content: center;
  align-items: self-end;
  gap: 15px;
}
/* Ensure the body takes up at least the full screen height */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}
/* Target the main content area to grow */
#main,
.container {
  flex: 1 0 auto;
  margin-top: 40px;
}
#footer {
  margin-top: 30px;
  background-color: #ffffff;
  color: #000000;
  font-size: 14px;
  line-height: 1.7;
}
.fade-in-img-inner-wrap {
  display: none;
}
.entry-full-content .entry-title {
  font-size: 46px;
  text-align: center;
}
.entry-meta {
  font-size: 36px;
  text-align: center;
}
.vct-post-featured-image {
  width: 100%;
  justify-content: center;
  display: flex;
  margin-bottom: 30px;
  margin-top: 30px;
}
article > p {
  color: #000000;
  font-size: large;
}
.single-post-carousel {
  margin: 0 0;
  position: relative;
}
.carousel-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}
.carousel-container {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  border-radius: 8px;
}
.carousel-item {
  min-width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
}
.carousel-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top;
}
.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
  padding: 40px 30px 25px;
}
.carousel-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  max-width: 90%;
}
.carousel-content h3 a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px #000000;
}
.post-date {
  color: #ddd;
  font-size: 0.95rem;
}
/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 90%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0);
  color: white;
  border: none;
  font-size: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  font-family: "Roboto";
}
.prev {
  right: 35px;
}
.next {
  right: 5px;
}
/* Category Section */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.post-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.post-thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}
.fade-in-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}
.post-info {
  padding: 16px;
}
.post-title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 8px;
}
.post-title a {
  color: #222;
  text-decoration: none;
}
.post-title a:hover {
  color: #c00;
}
.post-meta {
  font-size: 0.9rem;
  color: #777;
}
/* Mobile Adjustments */
@media (max-width: 576px) {
  .posts-grid {
    grid-template-columns: 1fr;
    /* 1 column on mobile */
    gap: 20px;
  }
  .post-thumbnail img {
    height: 180px;
  }
}
/* Header */
.border-line {
  height: 3px;
  background: #111;
  margin-bottom: 12px;
}
.cat-title {
  font-size: 2.5rem;
  margin: 0 0;
  display: inline-block;
  border: 2px solid #000;
  border-radius: 10px;
  corner-shape: bevel;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
  color: #1e3c82;
}
.cat-header {
  margin-bottom: 10px;
}
.read-more-btn {
  display: inline-block;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}
@media (min-width: 1200px) {
  .container {
    width: 950px;
  }
}
#main-menu > ul > li > a {
  color: #000000 !important;
}
.main-content {
  padding-top: 0;
}
.nav {
  padding-left: unset !important;
  list-style: unset !important;
}
@media (min-width: 768px) {
  .main-content {
    padding-top: 50px;
  }
}
#main-menu {
  /* background-color: #ffffff !important; */
  margin-left: 0 !important;
}
#main-menu .open > ul > li > a {
  color: #1e3c82 !important;
}
@media (min-width: 1200px) {
  #main-menu {
    display: flex;
    justify-content: center;
    /* background-color: #ffffff !important; */
    margin-left: 0 !important;
    /* text-align: center !important; */
  }
}

@media (min-width: 768px) {
  #main-menu {
    display: flex;
    justify-content: center;
    /* background-color: #ffffff !important; */
    margin-left: 0 !important;
    text-align: center !important;
  }

  #main-menu > ul {
    border: 2px solid #000;
    border-radius: 8px;
    corner-shape: bevel;
    display: flex !important;
    align-items: center;
  }

  #main-menu > ul > li > a {
    color: #1e3c82 !important;
  }

  #main-menu > ul > li:not(:last-child) {
    border-right: 2px solid gray;
  }
}

#main-menu .dropdown-toggle {
  color: #000000 !important;
}
#main-menu .button-close {
  color: #000000 !important;
}
#main-menu .sub-menu > li > a {
  color: #000000 !important;
}
#main-menu ul li ul li a {
  padding: 5px 20px !important;
}
#main-menu {
  margin-left: 0;
  width: 100% !important;
  transition: margin 0.3s ease !important;
}
#main-menu.open {
  margin-left: -100% !important;
}
@media (max-width: 768px) {
  /* Adjust breakpoint if your mobile menu kicks in at different width */
  #main-menu .sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }
  /* Hide the dropdown toggle buttons (the + / arrow icons) */
  #main-menu .dropdown-toggle {
    display: none !important;
  }
  /* Optional: Remove extra padding/margin if it looks too spaced out */
  #main-menu .menu-item-has-children {
    padding-bottom: 0 !important;
  }
  /* Make sure the main menu container is fully expanded */
  #main-menu.open ul.nav {
    max-height: none !important;
  }
  #main-menu .sub-menu > li > a {
    color: #ffffff !important;
    background-color: #000000 !important;
  }
  #main-menu {
    background-color: #000000 !important;
  }
  #main-menu > ul > li > a {
    color: #ffffff !important;
  }
  .vct-icon-close {
    color: #ffffff !important;
  }
}
.nav.navbar-nav .sub-menu,
.navbar-nav .dropdown-menu {
  background: #ffffff !important;
  border: none;
  padding: 0 0 !important;
  margin-top: 3px !important;
  min-width: 220px;
}
.entry-content {
  text-align: left;
}
.post-column .entry-content p {
  font-size: 12px;
}
.line-breaker {
  border: 1px solid #d8d8d8;
  margin: 20px 0;
}
.carousel-content > h3 :hover {
  color: #ffffff !important;
}
.footer-socials {
  font-size: xx-large;
}
.wp-block-image {
  margin: 20px 0 !important;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.vct-post-featured-image {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.vct-post-featured-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 500px;
  /* Optional: limit max height on large screens */
  object-fit: cover;
  border-radius: 8px;
  object-position: top !important;
}
/* Article Content - Better mobile experience */
.entry-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.entry-content p,
.entry-content img,
.entry-content figure {
  max-width: 100%;
  height: auto;
}
/* Improve spacing on mobile */
@media (max-width: 768px) {
  .vct-post-featured-image {
    margin-bottom: 1rem;
  }
  .entry-title {
    font-size: 1.8rem;
  }
  .main-content .row {
    margin-left: 0;
    margin-right: 0;
  }
}

/* name-card */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 30px 0;
}

.post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
  display: block;
}

.card-image {
  width: 100%;
  height: 200px; /* adjust as needed */
  object-fit: cover;
}

.post-content {
  padding: 16px;
}

.post-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  color: #e30613; /* your brand color */
}
/* name-card */

.pagination-wrapper {
  margin: 40px 0 20px;
  text-align: center;
}

.pagination-wrapper ul {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.pagination-wrapper li a,
.pagination-wrapper li span {
  display: block;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  min-width: 40px;
  text-align: center;
}

.pagination-wrapper li .current {
  background: #e30613;
  color: white;
  border-color: #e30613;
  font-weight: bold;
}

.pagination-wrapper li a:hover {
  background: #f5f5f5;
}

/*SEARCH*/
.archive-search-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Search Header */

/* ===== 3 Columns Grid ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 items per row */
  gap: 30px;
  margin-top: 30px;
}

/* Card style */
.article-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Thumbnail */
.card-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Content inside card */
.card-content {
  padding: 18px 20px 22px;
}

.article-author {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.article-title a {
  color: #111;
  text-decoration: none;
}

.article-title a:hover {
  color: #555;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
}

@media (max-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
}

.search-page-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.search-form-wrapper {
  text-align: center;
  margin-bottom: 50px;
}

.search-form {
  display: flex;
  max-width: 600px;
  margin: 10px auto 0;
  gap: 10px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 5px 18px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
}

.search-form button {
  padding: 14px 28px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.search-form button:hover {
  background: #005a87;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.search-result-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.search-result-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.result-thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.result-content {
  padding: 20px;
}

.result-title {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
}

.result-title a {
  text-decoration: none;
  color: #222;
}

.result-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 12px;
}

.result-excerpt {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.read-more {
  font-weight: 600;
  text-decoration: none;
  color: #0073aa;
}

.no-results,
.search-instruction {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}
/*SEARCH*/
