/* Margin between cards fix */
.article--compact, .article--teaser, .course--compact, .course--teaser, .range--compact, .tour--compact, .tour--teaser {
    margin: 1.5rem;
}

/* Store changes */
/* Bold font fix */
.shop--teaser .field__item, .range.range--full .field__item {
    font-weight: normal;
}

article.range--teaser img {
    width: 100%;
    /* aspect-ratio: 336 / 210; */
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
}

/* Paragraph spacing fix */
.range--teaser, .field--name-field-content>.field__item>.paragraph {
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.field-group-tabs-wrapper {
    margin-bottom: 1.5rem;
}

.field--label-above {
    margin-bottom: 0.5rem;
    padding-bottom: 0;
  	font-weight: bold;
  	font-size: 17.6px;
}

#edit-container {
  	padding: 20px;
  	margin: 0;
  	background-color: rgba(102, 181, 0, 0.1);
  	border-color: #87ceeb;
  	border-radius: 5px;
}

/* Global changes */
p {
    /* margin-top: 20px; */
  	font-size: 1.1rem;
} 

.most-course-list .view-content .jname, .most-course-list .view-content .jname {
    color: #66b500;
    font-size: 15px;
  	font-weight: 600;
}

.field__label {
  font-weight: bold !important;
  font-size: 17.6px;
}

/* Top Page changes */
.container-small {
    max-width: 100%;
}

select[disabled] {
  background-color: #f5f5f5 !important;
  color: #999 !important;
  pointer-events: none;
  border: 1px solid #ccc;
}

.more-link {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
/* Grid container for cards */
.views-view-responsive-grid {
    display: grid; /* Enable grid layout */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid layout */
    gap: 20px; /* Add space between cards */
    margin: 0 auto; /* Center the grid */
    padding: 10px;
}
/* Individual card styling */
/* Full-width image styling */
.views-view-responsive-grid__item img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensures no inline space around the image */
    margin: 0; /* Remove margins */
    padding: 0; /* Eliminate padding */
}
/* Container styling */
.views-view-responsive-grid__item-inner {
    position: relative; /* Necessary for absolutely positioned button */
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: 1.5rem;
    background-color: #fff;
    height: 90% !important;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); */
    overflow: hidden;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; Smooth hover animation */
}
/* Full-width image */
.shop-header-image img {
    width: 100%; /* Full width for consistency */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px 10px 0 0; /* Rounded top corners */
    margin: 0; /* Remove all margins */
    padding: 0; /* Remove any padding */
    margin-bottom: 2em; /* Only margin below the image */
}
.shop-card-body {
  	padding: 3.50rem 1.75rem 8rem !important;
  	position: relative;
}
/* Title styling */
.shop-title {
  	font-size: 1.7rem;
    font-weight: bold; /* Make the title stand out */
}
.shop-title a {
    color: #333; /* Dark text for readability */
    text-decoration: none !important;
}
/* Styling for hover effect */
.shop-title a:hover {
    text-decoration: underline;
    color: #66b500 !important; /* Slightly darker shade on hover */
}
/* Region styling */
.shop-region a, .shop-region {
    font-size: 0.875rem; /* Slightly larger size */
  	font-weight: 700;
    color: #66b500;
    /* text-align: center; */
    text-decoration: none !important;
  	text-transform: uppercase;
  	margin-bottom: 0;
}

/* Japanese name styling */
.shop-japanese-name {
    font-size: 1em;
    font-style: normal;
  	font-weight: normal;
    color: #66b500;
    /* margin-bottom: 2em !important; */
}

/* Summary styling */
.shop-summary {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
  	margin-top: 10px;
}

.shop-header {
	border-bottom: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
  	margin-top: 3.75rem;
    margin-bottom: 3.75rem;
    padding: 2.5rem 0;
}

/* Read more link styling */
/* Styling for "read more" button */
.views-more-link {
  display: inline-block;
  padding: 10px 15px;
  background-color: #66b500;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  position: absolute; /* Position relative to the container */
  bottom: 20px; /* Space from bottom */
  left: 20px; /* Space from left */
}

.views-more-link:hover {
  background-color: #222;
}

/* Summary spacing */
.field-content.shop-summary {
  margin-bottom: 40px; /* Add space below the summary */
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 768px) {
    .views-view-responsive-grid__item-inner {
        height: auto; /* Allow card height to adjust dynamically */
    }
}
/* Structured SVG Placement */
.custom-svg-field {
    background: #fff;
    border-radius: 50%;
    height: 80px;
    width: 80px;
    position: absolute;
    right: 16px;
    text-align: center;
    top: -45px;
}
@media (max-width: 768px) { /* Adjust for screens narrower than 768px */
  .custom-svg-field {
    width: 75px; /* Slightly smaller SVG for better responsiveness */
    margin-right: 10px; /* Reduce spacing for tighter layouts */
  }
} */
@media (min-width: 768px) { /* Adjust for screens narrower than 768px */
  .shop-title a {
    font-size: 1.4em; /*  Emphasize title size */
    font-weight: bold; /* Make the title stand out */
    color: #333 !important; /* Dark text for readability */
    text-decoration: none !important;
  	padding-left: 1.75rem;
  }
}
@media (min-width: 768px) and (max-width: 1024px) { /* Tablet range */
  .views-view-responsive-grid__item-inner {
    height: auto; /* Adjust to fit the content dynamically */
    min-height: 620px; /* Retain a base height to ensure layout consistency */
  }
}

.course-pref-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; /* Ensures columns match height */
}

.course-pref-col {
  flex: 1 1 30%;
  box-sizing: border-box;
  padding: 1rem;
}

@media (max-width: 1024px) {
  .course-pref-col {
    flex: 1 1 45%;
  }
}

@media (max-width: 768px) {
  .course-pref-col {
    flex: 1 1 100%;
  }
}

