/* ======================================
   EXPANDED MENU STYLES
   ====================================== */

/* Main container */
.expanded__menu {
  width: 100%;
  height: 100vh;
  background-color: #F9F4F1;
  position: fixed;
  top: 0;
  left: 0;
  border-top: 1px solid #c99f92;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  /* Add background image positioning */
  background-image: url('../img/bg-innow.png') !important; /* Path to your image */
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto; /* Make the image span the full width */	
}

/* Add more padding to container */
.expanded__menu .container {
  position: relative;
  padding-top: 80px !important; /* Add padding at the top */
  padding-bottom: 100px !important; /* Add padding at the bottom */
}

/* Close button */
.expanded__menu-close {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border: 1px solid #244441;
  background-color: rgba(249, 244, 241, 0.9); /* Added background for better visibility */
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  color: #244441;
  transition: all 0.3s;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional: added shadow for better visibility */
}

.expanded__menu-close:hover {
  background-color: #244441;
  color: #F9F4F1;
}

/* Adjust grid layout to give left column more space */
.expanded__menu-grid {
  display: grid;
  grid-template-columns: 60% 40%; /* Adjusted to give left column more space */
  grid-gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Content column styling */
.expanded__menu-column--content {
  padding-right: 40px;
  border-right: 1px solid #C99F92;
}

/* Section titles */
.expanded__section-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.4em;
  color: #174541;
  margin-bottom: 35px !important;
  text-transform: uppercase;
  border-bottom: 1px solid #C99F92;
  padding-bottom: 15px;
}

/* Style for section title links */
.expanded__section-link {
    color: #174541;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.expanded__section-link:hover {
    color: #C56B31;
}

/* Make sure the title link inherits the parent styles */
.expanded__links-title a {
    font-weight: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

/* Content sections */
.expanded__content-section {
  margin-bottom: 60px !important;
}

/* Content cards */
.expanded__content-card {
  display: flex;
  margin-bottom: 35px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: rgba(201, 159, 146, 0.05);
  border-radius: 4px;
}

.expanded__content-card:hover {
  transform: translateY(-5px);
  background-color: rgba(201, 159, 146, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Content card image */
.expanded__content-image {
  width: 150px;
  height: 150px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F2E7E2;
  border: 1px solid #C99F92;
}

/* Thumbnail image styling */
.expanded__content-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder for when no image is available */
.expanded__content-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #C56B31;
  color: #F9F4F1;
  font-size: 14px;
  text-align: center;
  padding: 10px;
}

/* Content card details */
.expanded__content-details {
  padding-left: 25px !important;
  width: calc(100% - 150px);
}

.expanded__content-title {
  color: #C56B31;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.expanded__content-excerpt {
  color: #484848;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.expanded__content-meta {
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}

/* No content placeholder */
.expanded__no-content {
  padding: 20px;
  background-color: rgba(201, 159, 146, 0.05);
  color: #484848;
  font-style: italic;
  border-radius: 4px;
}

/* View all link */
.expanded__view-all {
  display: inline-block;
  margin-top: 30px !important;
  color: #C56B31;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding-right: 22px;
  transition: all 0.3s;
}

.expanded__view-all:hover {
  color: #174541;
}

.expanded__view-all:after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s;
}

.expanded__view-all:hover:after {
  right: -5px;
}

/* Links column styling */
.expanded__links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 40px;
}
	
.expanded__links-title {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 25px !important;
  color: #174541;
}

.expanded__links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expanded__links-list li {
  margin-bottom: 13px;
}

.expanded__links-list li a {
  color: #484848;
  text-decoration: none;
  font-size: 17px;
  transition: color 0.3s;
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.expanded__links-list li a:hover {
  color: #C56B31;
  padding-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .expanded__menu-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  .expanded__menu .container {
    padding-top: 60px;
  }
  
  .expanded__menu-column--content {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #C99F92;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
  
  .expanded__content-image {
    width: 120px;
    height: 120px;
  }
  
  .expanded__content-details {
    width: calc(100% - 120px);
    padding-left: 15px;
  }
  
  .expanded__links-grid {
    grid-template-columns: 1fr;
  }
  
  .expanded__menu-close {
    display: none;
  }
  
  .btn__close--mobile {
    display: block;
  }
  
  .expanded__content-card {
    padding: 15px;
  }
}

/* For smaller mobile devices */
@media (max-width: 576px) {
  .expanded__content-card {
    flex-direction: column;
  }
  
  .expanded__content-image {
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
  }
  
  .expanded__content-details {
    width: 100%;
    padding-left: 0;
  }
  
  .expanded__menu .container {
    padding-top: 40px;
  }
}

/* Tablet-specific styling for close button */
@media (min-width: 768px) and (max-width: 991px) {
  .expanded__menu-close {
    /* Adjust positioning and size for tablets */
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 22px;
	display: flex !important;
  }
}

/* Mobile-specific styling (smartphones only) */
@media (max-width: 767px) {
  .expanded__menu-close {
    /* Further adjust for phones */
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 20px;
	display: flex !important;	  
  }
}

/* Hide the extra close button in the top left */
.expanded__menu .container > a:not(.expanded__menu-close),
.expanded__menu a.btn__close--mobile,
.menu-close, 
.close-button,
.menu-toggle-close,
a[href="javascript:void(0);"].btn__close--mobile {
  display: none !important;
}