/* Contact Page Styles */

/* Contact Card */
.contact-card {
  border: none;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Contact Item Containers */
.contact-item-container {
  transition: all 0.3s ease;
}

.contact-item-container:hover {
  transform: translateY(-5px);
}

/* Icon Box for Contact */
.icon-box-contact {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-item-container:hover .icon-box-contact {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Contact Links */
.contact-link {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 0;
  white-space: nowrap; /* Prevent wrapping by default */
  display: inline-flex; /* Ensure flex items stay inline */
  align-items: center;
}

.contact-link:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

/* Ensure contact text doesn't break on medium-sized screens and smaller desktops */
@media (min-width: 768px) and (max-width: 1500px) {
  /* Guarantee text stays on one line */
  .contact-link {
    white-space: nowrap !important;
    overflow: visible;
    width: auto;
    font-size: 0.95em;
  }

  .contact-link span {
    white-space: nowrap !important;
    display: inline-block;
  }

  /* Increase icon size slightly for better visibility */
  .icon-box-contact {
    min-width: 50px;
  }
}

/* Medium size screens adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  /* Reduce font size on medium screens to fit content better */
  .contact-link span {
    font-size: 0.9em;
  }

  /* Optimize padding for medium screens */
  .ps-md-5 {
    padding-left: 2rem !important;
  }

  /* Reduce icon spacing slightly */
  .contact-link i {
    margin-right: 0.4rem !important;
  }
}

/* Social Links */
.social-link {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-color-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  font-size: 1.5rem; /* Increased font size for the icons */
}

.social-link:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
  color: white;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Added shadow for more emphasis */
}

/* Hours Table */
.hours-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

/* Stacked layout for medium screens and smaller desktop views */
@media (min-width: 768px) and (max-width: 1500px) {
  .hours-row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 5px 10px;
  }

  .hours-icon {
    grid-row: 1;
    grid-column: 1;
  }

  .hours-name {
    grid-row: 1;
    grid-column: 2;
    font-weight: 500;
  }

  .hours-time {
    grid-row: 2;
    grid-column: 1 / span 2;
    padding-left: 40px;
    font-size: 0.9em;
  }

  .hours-days {
    grid-row: 3;
    grid-column: 1 / span 2;
    padding-left: 40px;
    font-size: 0.9em;
    color: #666;
  }
}

.hours-row:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transform: translateX(5px);
}

.hours-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--accent-color-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hours-name {
  font-weight: 600;
  color: var(--accent-color);
}

.hours-time {
  font-weight: 500;
}

.hours-days {
  color: var(--text-color-light);
  font-size: 0.9rem;
}

/* Map Container */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.maps {
  width: 100%;
  height: 450px;
  border: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  /* Improved contact card layout for mobile */
  .contact-card {
    padding: 1.5rem !important;
    margin-bottom: 2rem;
  }

  /* Better spacing for contact sections on mobile */
  .contact-item-container {
    margin-bottom: 1.5rem;
  }

  /* Icon box size adjustment for mobile */
  .icon-box-contact {
    min-width: 40px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Adjust social links size for mobile */
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  /* Improved hours table layout */
  .hours-table {
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .hours-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
    padding: 10px 8px;
    margin-bottom: 10px;
    width: 100%;
  }

  .hours-icon {
    grid-row: 1;
    grid-column: 1;
    margin-right: 8px;
    min-width: 30px;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  .hours-name {
    grid-row: 1;
    grid-column: 2;
    font-size: 0.95rem;
    font-weight: 600;
    padding-right: 5px;
    word-break: break-word;
  }

  .hours-time {
    grid-row: 2;
    grid-column: 2;
    font-size: 0.9rem;
  }

  .hours-days {
    grid-row: 3;
    grid-column: 2;
    font-size: 0.85rem;
    text-align: left;
    color: var(--text-color);
    opacity: 0.8;
  }

  /* Fix contact link alignment and prevent overflow */
  .contact-link {
    align-items: flex-start;
    word-break: break-word;
    max-width: 100%;
    white-space: normal; /* Allow wrapping on mobile */
    display: flex; /* Use regular flex on mobile */
  }

  .contact-link i {
    margin-top: 3px;
    min-width: 16px;
  }

  /* Prevent email overflow */
  .contact-link span {
    word-break: break-all;
    overflow-wrap: break-word;
    font-size: 0.9rem;
  }

  /* Adjust padding in contact card sections */
  .ps-md-5 {
    padding-left: 0.5rem !important;
  }

  /* Better spacing between contact items */
  .contact-item-container .d-flex.align-items-center {
    margin-bottom: 1rem;
  }
}

/* Animation Classes */
.fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
