/* Homepage Styles - Via Italia Tours */
.body-home {
  margin: 0 4.3rem;
}
/* Hero Section */
.header-home-div {
  position: relative;
  height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fixed-background-home {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.home-header-container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: fit-content;
  width: auto;
  padding: 0 2rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.title {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 4rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.highlights-btns-container {
  margin-top: 2rem;
}

.accent-btn {
  background-color: #131332;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.accent-btn:hover {
  background-color: #2a2a4a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.large-btn {
  padding: 1.2rem 2.5rem;
  font-size: 1.2rem;
}

/* Welcome Section */
.agency-div {
    text-align: center;
    margin: 2rem 0;
    text-align: center;
}
.hr-line {
  border: none;
  height: 2px;
  background-color: #ccc;
  margin: 40px 0; /* space around the line */
}
.welcome-text {
    font-size: 1.8rem;
    color: #131332;
    max-width: 960px;
    margin: 100px auto;
    line-height: 1.6;
    font-weight: normal; /* changed to normal */
}

/* Make text responsive */
@media (max-width: 768px) {
    .welcome-text {
        font-size: 1.4rem;
        padding: 0 1rem; /* add horizontal padding for small screens */
    }
}

@media (max-width: 480px) {
    .welcome-text {
        font-size: 1.2rem;
        padding: 0 0.5rem;
    }
}

/* Gallery Sections */

/* All Offers Button Section */
#all-offers {
    position: relative;
    margin: 2rem 0;
    padding: 1rem 0;
}


/* Blog Section */
#articles-in-home {
    /* No line after blog section */
    position: relative;
}
.gallery-div {
    padding: 4rem 0;
    position: relative;
}

.gallery-div::after {
    content: '';
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9e9e9;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Remove line from last tour category (before All offers button) */
#offers-in-home .gallery-div:last-of-type::after {
    display: none;
}

/* Remove line from blog section (last gallery-div) */
#articles-in-home .gallery-div::after {

    display: none;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.gallery-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #131332;
  margin: 0;
}

.gallery-subtitle {
  font-size: 1.1rem;
  color: #7f7f7f;
  margin: 0;
}

.arrows-div {
  display: flex;
  gap: 0.5rem;
}

.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 2px solid #e9e9e9;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.circle-btn:hover {
  border-color: #131332;
  background-color: #131332;
  color: white;
  transform: none;
}

.arrow-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tour Gallery Items */
.items-gallery-div {
  display: flex;
  gap: 0.5rem; /* reduced from 1.5rem to minimize gap */
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: #e9e9e9 transparent;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  align-items: stretch;
}

.items-gallery-div:active {
  cursor: grabbing;
}

.items-gallery-div.active {
  cursor: grabbing;
}

.items-gallery-div::-webkit-scrollbar {
  height: 8px;
}

.items-gallery-div::-webkit-scrollbar-track {
  background: transparent;
}

.items-gallery-div::-webkit-scrollbar-thumb {
  background-color: #e9e9e9;
  border-radius: 4px;
}

.offer-cell {
  flex-shrink: 0;
  width: 25%; /* 4 cards per row on large screens */
  min-width: 250px; /* minimum width to maintain card readability */
  /* margin-right removed - using gap in parent container instead */
}

.offers-gallery-item-div {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.offers-gallery-item-div a {
  text-decoration: none !important;
  color: inherit;
}

.offers-gallery-item-div a:hover {
  text-decoration: none !important;
  color: inherit;
}

.offers-gallery-item-div a:visited {
  text-decoration: none !important;
  color: inherit;
}

.offers-gallery-item-div a:focus {
  text-decoration: none !important;
  color: inherit;
}

.offers-gallery-item-div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slider-gallery-item {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.swiper-lazy {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.offers-gallery-item-div-body {
  padding: 1.5rem;
  position: relative;
}

.offer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #131332;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  text-decoration: none !important;
}

.offer-subtitle {
  font-size: 0.9rem;
  color: #7f7f7f;
  margin: 0;
  text-decoration: none !important;
}

.offers-item-indicator {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: #131332;
  color: white;
  width: 40px; /* increased from 30px */
  height: 40px; /* increased from 30px */
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem; /* increased from 0.8rem */
  z-index: 10;
}

/* Blog Gallery Items */

.blog-cell {
    flex-shrink: 0;
    width: 280px;
    min-width: 280px;
    height: 320px;
    display: flex;
    flex-direction: column;
}

.blog-gallery-item-div {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 320px;
  display: flex;
  flex-direction: column;
}

.blog-gallery-item-div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-gallery-item-div a {
  text-decoration: none !important;
  color: inherit;
}

.blog-gallery-item-div a:hover {
  text-decoration: none !important;
  color: inherit;
}

.blog-gallery-item-div a:visited {
  text-decoration: none !important;
  color: inherit;
}

.blog-gallery-item-div a:focus {
  text-decoration: none !important;
  color: inherit;
}

.blog-gallery-item-header-img {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blog-gallery-item-body {
  padding: 1.5rem;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-gallery-item-data-container {
  margin-bottom: 1rem;
  flex: 1;
}

.blog-description-preview {
  font-size: 0.9rem;
  color: #7f7f7f;
  margin: 0.5rem 0 0 0;
}

.blog-item-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #131332;
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
  flex-shrink: 0;
}

.blog-item-indicator span {
  font-size: 0.9rem;
  text-decoration: none;
}

.blog-item-indicator:hover {
  text-decoration: none;
  color: #131332;
}

/* Buttons */
.primary-btn {
  background-color: #131332;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.primary-btn:hover {
  background-color: #2a2a4a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Search Bar */
.searchbar {
  padding: 2rem 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .home-header-container {
    max-width: 90%;
    padding: 0 1.5rem;
  }
  
  .title {
    white-space: normal; /* Allow wrapping on smaller screens */
  }
}

@media (max-width: 768px) {
  .header-home-div {
    height: 50vh;
    margin-top: 0;
  }
  
  .home-header-container {
    max-width: 95%;
    padding: 0 1.5rem;
  }
  
  .title {
    font-size: 2rem;
    margin-bottom: 2rem;
    white-space: normal; /* Allow wrapping on smaller screens */
  }
  
  .subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .accent-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .large-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .arrows-div {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .header-home-div {
    margin-top: 0;
  }
  
  .home-header-container {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .title {
    font-size: 1.8rem;
    white-space: normal; /* Allow wrapping on smaller screens */
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  .accent-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .offer-cell,
  .blog-cell {
    width: 48%; /* 2 cards per row */
    min-width: 200px;
  }
}

@media (max-width: 360px) {
  .home-header-container {
    max-width: 100%;
    padding: 0 0.75rem;
  }
  
  .title {
    font-size: 1.6rem;
    white-space: normal; /* Allow wrapping on smaller screens */
  }
  
  .subtitle {
    font-size: 0.85rem;
  }
}

/* Additional responsive breakpoints for offer-cell */
@media (max-width: 1400px) {
  .offer-cell {
    width: 30%; /* 3 cards per row */
    min-width: 220px;
  }
}

@media (max-width: 1200px) {
  .offer-cell {
    width: 31%; /* 3 cards per row */
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .offer-cell {
    width: 100%; /* 1 card per row */
    min-width: 100%;
    margin-right: 0;
  }
}

