/* Contact Page Custom Styles */

/* Background image for the entire contact page */
.contact-section {
  position: relative;
  z-index: 1;
  padding-left: 30px; /* Add padding to move content slightly to the right */
}

/* Contact Introduction Wrapper */
.contact-intro-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px 60px;
  position: relative;
  z-index: 2;
}

/* Contact Title Styling */
.contact-title-left {
  margin-bottom: 30px;
  text-align: center;
}

.contact-title-left h1 {
  font-size: 3rem;
  line-height: 1.2;
  color: #c6aa65;
  font-weight: 700;
  margin: 0;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 0.6),
    0 0 40px rgba(0, 212, 255, 0.4),
    0 0 60px rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, #ffd900ba 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  filter: brightness(1.3) contrast(1.2);
}

/* Contact Description Styling - Modern Grid Layout */
.contact-description {
  background: transparent;
  padding: 40px 20px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Info Grid Layout */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Desktop optimization for info grid */
@media (min-width: 769px) {
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 20px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .info-item {
    padding: 35px 25px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 16px;
    position: relative;
  }
  
  .info-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #0fa9d9, #c6aa65);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .info-item:hover::after {
    opacity: 1;
  }
  
  .info-item:hover {
    transform: translateY(-8px);
    background: rgba(13, 13, 13, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  
  .info-icon {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
    margin-bottom: 15px;
    align-self: center;
  }
  
  .info-content {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .info-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.3;
  }
  
  .info-content p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    margin: 0;
  }
  
  .location-highlight {
    padding: 25px 35px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
  }
  
  .location-icon {
    width: 65px;
    height: 65px;
    font-size: 1.9rem;
  }
  
  .location-text h4 {
    font-size: 1.5rem;
  }
  
  .location-text p {
    font-size: 1.05rem;
  }
  
  .contact-description {
    padding: 40px 40px 20px;
  }
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: rgba(13, 13, 13, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #0fa9d9, #c6aa65);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-item:hover::before {
  opacity: 1;
}

.info-item:hover {
  background: rgba(13, 13, 13, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Info Icons */
.info-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0fa9d9, #c6aa65);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* Info Content */
.info-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #c6aa65;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.info-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.info-content p strong {
  color: #0fa9d9;
  font-weight: 600;
}

/* Location Highlight Section */
.location-highlight {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 30px;
  background: linear-gradient(135deg, rgba(15, 169, 217, 0.1), rgba(198, 170, 101, 0.1));
  border: 1px solid rgba(198, 170, 101, 0.3);
  border-radius: 15px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.location-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #0fa9d9, #c6aa65);
}

.location-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: rgba(198, 170, 101, 0.2);
  border: 2px solid #c6aa65;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c6aa65;
  font-size: 1.8rem;
}

.location-text h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #c6aa65;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.location-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
}

/* Phone Link Styling */
.contact-phone-link {
  color: #0fa9d9 !important;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(15, 169, 217, 0.3);
}

.contact-phone-link:hover {
  color: #c6aa65 !important;
  text-shadow: 0 0 15px rgba(198, 170, 101, 0.5);
  transform: scale(1.05);
}

.contact-phone-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #0fa9d9, #c6aa65);
  transition: width 0.3s ease;
}

.contact-phone-link:hover::after {
  width: 100%;
}

/* Animation for contact intro wrapper */
.contact-intro-wrapper {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideInUp 1s ease forwards;
  animation-delay: 0.3s;
}

/* Animation for contact description */
.contact-description {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

/* Info items staggered animation */
.info-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideInUp 0.6s ease forwards;
}

.info-item:nth-child(1) { animation-delay: 0.7s; }
.info-item:nth-child(2) { animation-delay: 0.9s; }
.info-item:nth-child(3) { animation-delay: 1.1s; }

.location-highlight {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideInUp 0.6s ease forwards;
  animation-delay: 1.3s;
}

/* Keyframe animations */
@keyframes fadeSlideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop-only enhanced effects */
@media (min-width: 769px) {
  .contact-intro-wrapper {
    padding: 60px 40px 80px;
  }
  
  .contact-title-left {
    margin-bottom: 40px;
  }
  
  .contact-title-left h1 {
    font-size: 3.5rem;
    animation: titleGlow 2s ease-in-out infinite alternate;
  }
  
  @keyframes titleGlow {
    0% {
      text-shadow: 0 0 20px rgba(198, 170, 101, 0.3);
    }
    100% {
      text-shadow: 0 0 30px rgba(198, 170, 101, 0.5), 0 0 40px rgba(15, 169, 217, 0.3);
    }
  }
}

.contact-section::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../images/cybersecurity-animation55.gif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

/* Remove any background from body */
body {
  background-color: #0d0d0d;
}

/* Complete footer background fix */

/* Target all possible footer background selectors */
footer,
.footer,
.footer-container,
.footer-section,
.footer-bottom,
.footer-background,
.footer-background-image,
.footer-background-overlay {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Target pseudo-elements that might be creating backgrounds */
footer::before, footer::after,
.footer::before, .footer::after,
.footer-container::before, .footer-container::after,
.footer-background::before, .footer-background::after,
.footer-section::before, .footer-section::after,
.footer-bottom::before, .footer-bottom::after {
  display: none !important;
  background: none !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  opacity: 0 !important;
}

/* Ensure any background-related styling is removed */
.footer .footer-background {
  display: none !important;
}

/* Footer with enhanced top border */

.footer {
  position: relative;
  z-index: 1;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-top: 3px solid rgba(198, 170, 101, 0.8) !important; /* Increased thickness from 1px to 3px and opacity */
  margin-top: 40px !important;
  padding-top: 20px !important;
}

/* Create a matching overlay background for the footer */
.footer::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(2, 9, 23, 0.5) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9) !important;
  z-index: -1 !important;
  display: block !important;
  border-radius: 50px !important;
}

/* Remove any other background elements */
.footer-background,
.footer-background-image,
.footer-background-overlay {
  display: none !important;
}

/* Keep footer container transparent to let the footer::before show */
.footer-container {
  background-color: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 2;
}

/* Style footer bottom with its own separator */
.footer-bottom {
  background-color: transparent !important;
  backdrop-filter: none !important;
  border-top: 1px solid rgba(198, 170, 101, 0.3) !important; /* Maintain the bottom separator */
  margin-top: 20px;
  padding-top: 15px;
  position: relative;
  z-index: 2;
}

/* Match the footer sections to the contact block styling */
.footer-section {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 15px;
  margin: 10px;
  position: relative;
  z-index: 2;
}

/* Additional styling to match section headings */
.footer-section h3 {
  color: #c6aa65 !important;
  border-bottom: 1px solid #0fa9d94d !important;
  padding-bottom: 8px;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Ensure text is properly visible against the darkened background */
.footer-section a, 
.footer-section p,
.footer-bottom p {
  color: #ffffff !important;
}

/* Ensure text is visible */
.footer-section h3,
.footer-section ul li a,
.footer-section.contact-info p,
.footer-section.contact-info a,
.footer-bottom p {
  color: rgb(255, 255, 255) ;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7) !important;
}

/* Maintain the separator line in footer-bottom */
.footer-bottom {
  border-top: 1px solid rgba(198, 170, 101, 0.3) !important;
}

/* Contact Methods Section - Modern Transparent Design */
.contact-methods-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 0 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-method-card {
  background: rgba(13, 13, 13, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideInUp 0.6s ease forwards;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.contact-method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #0fa9d9, #c6aa65);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-method-card:hover::before {
  opacity: 1;
}

.contact-method-card:hover {
  background: rgba(13, 13, 13, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Method Header Styling */
.method-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  position: relative;
}

.phone-icon {
  background: linear-gradient(135deg, #0fa9d9, #4fc3f7);
}

.email-icon {
  background: linear-gradient(135deg, #c6aa65, #ffd54f);
}

.location-icon {
  background: linear-gradient(135deg, #e8356d, #ff6b9d);
}

.hours-icon {
  background: linear-gradient(135deg, #9932cc, #ba68c8);
}

.method-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #c6aa65;
  margin: 0;
  line-height: 1.3;
}

/* Method Content Styling */
.method-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  justify-content: center;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.contact-item.primary {
  border-color: rgba(198, 170, 101, 0.3);
}

.contact-item.primary:hover {
  border-color: rgba(198, 170, 101, 0.6);
  background: rgba(198, 170, 101, 0.1);
}

.contact-item i {
  color: #0fa9d9;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.contact-item span {
  font-size: 1rem;
  font-weight: 500;
}

/* Email Info Styling */
.email-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.email-type {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-address {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  word-break: break-all;
  overflow-wrap: break-word;
  line-height: 1.3;
}

/* Location and Hours Info */
.location-info, .hours-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.address, .hours-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.address:hover, .hours-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.address i, .hours-item i {
  color: #0fa9d9;
  font-size: 1.1rem;
  margin-top: 2px;
  width: 20px;
  text-align: center;
}

.address span {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-size: 1rem;
}

.hours-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.days {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.time {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Staggered Animation for Contact Method Cards */
.contact-method-card:nth-child(1) { animation-delay: 0.8s; }
.contact-method-card:nth-child(2) { animation-delay: 1.0s; }
.contact-method-card:nth-child(3) { animation-delay: 1.2s; }
.contact-method-card:nth-child(4) { animation-delay: 1.4s; }

/* Desktop-specific optimizations */
@media (min-width: 769px) {
  .contact-methods-section {
    padding: 25px 0 80px;
  }

  .contact-methods-grid {
    gap: 40px;
    padding: 0 30px;
  }

  .contact-method-card {
    padding: 35px;
    min-height: 220px;
  }

  .contact-method-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  }

  .method-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .method-header h3 {
    font-size: 1.5rem;
  }

  .method-icon {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }

  .contact-item {
    padding: 15px 20px;
    font-size: 1.05rem;
    max-width: 100%;
  }

  .contact-item:hover {
    transform: translateX(8px);
  }

  .email-info {
    gap: 6px;
  }

  .email-type {
    font-size: 0.9rem;
  }

  .email-address {
    font-size: 1rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .address span, .days {
    font-size: 1.05rem;
  }

  .time {
    font-size: 0.95rem;
  }
}

.contact-block:nth-child(even) {
  border-right: 3px solid #0fa9d9;
  border-left: 3px solid #c6aa65;
}

.contact-block .contact-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 20px;
  justify-content: space-between;
}

.contact-block .contact-row h2 {
  min-width: 180px;
  white-space: nowrap;
  color: #0fa9d9;
  text-shadow: 0 0 10px rgba(15, 169, 217, 0.3);
  background: #020917cc;
  border: 1px solid rgba(15, 169, 217, 0.7);
  border-radius: 8px;
  padding: 10px 20px;
  text-align: center;
  box-shadow: 0 0 15px rgba(15, 169, 217, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0; /* Prevent title from shrinking */
}

.contact-block .contact-row .arrow {
  margin: 0 10px;
  color: #0fa9d9;
  font-size: 2em;
  animation: pulse 1.5s infinite;
  flex-shrink: 0; /* Prevent arrow from shrinking */
}

/* Phone numbers container */
.phone-numbers {
  display: flex;
  flex-direction: row;
  gap: 15px;
  flex-grow: 1;
  justify-content: flex-end;
  min-width: 0; /* Allow container to shrink if needed */
}

.contact-block .contact-row a,
.phone-numbers a,
.contact-block .contact-row p,
.contact-block .contact-row .content-box {
  min-width: 0; /* Allow content to shrink if needed */
  white-space: nowrap;
  text-align: center;
  padding: 10px 20px;
  color: #ffffff;
  background: rgba(2, 9, 23, 0.8);
  border: 1px solid rgba(198, 170, 101, 0.7);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(198, 170, 101, 0.2);
  transition: all 0.3s ease;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Email addresses container */
.email-addresses {
  display: flex;
  flex-direction: row;
  gap: 20px; /* Increased gap between email boxes */
  flex-grow: 1;
  justify-content: flex-start; /* Changed to flex-start for better alignment */
  width: 100%; /* Ensure full width */
}

/* Special styling for email block */
.email-addresses a {
  min-width: 340px; /* Further increased width for email boxes */
  max-width: 450px; /* Increased maximum width */
  font-size: 15px; /* Slightly smaller font to fit better */
  flex: 1; /* Make both email boxes take equal space */
}

/* Adjust the email block specifically */
.contact-block:nth-child(2) {
  padding-left: 40px!important;
  padding-right: 40px!important;
  width: 100%; /* Make email block full width */
}

.contact-block:nth-child(2) .contact-row {
  gap: 25px; /* Increased gap for better spacing */
  justify-content: flex-start; /* Align items from the start */
}

/* Make all other blocks match the width of the email block for symmetry */
.contact-block:nth-child(1),
.contact-block:nth-child(3),
.contact-block:nth-child(4) {
  width: 100%; /* Match the width of the email block */
  padding-left: 10px!important;
  padding-right: 10px!important;
}

/* Content box for office hours */
.content-box {
  display: flex;
  flex-direction: column;
  min-width: 340px; /* Match the width of other content boxes */
  max-width: 450px; /* Match max-width of other boxes */
  width: 100%;
  flex: 1;
  justify-content: center;
}

.content-box p {
  margin: 5px 0;
  text-align: center;
}

/* Make sure the last block (Office Hours) matches the others */
.contact-block:nth-child(4) .contact-row .content-box {
  min-width: 340px;
  width: 100%;
  padding: 10px 20px;
  background: rgba(2, 9, 23, 0.8);
  border: 1px solid rgba(198, 170, 101, 0.7);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(198, 170, 101, 0.2);
}

/* Hover effects */
.contact-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 35px rgba(15, 169, 217, 0.3);
}

.contact-block:nth-child(odd):hover {
  border-left-color: rgba(15, 169, 217, 1);
  border-right-color: rgba(198, 170, 101, 1);
}

.contact-block:nth-child(even):hover {
  border-right-color: rgba(15, 169, 217, 1);
  border-left-color: rgba(198, 170, 101, 1);
}

.contact-block .contact-row h2:hover {
  transform: scale(1.05);
  border-color: rgba(15, 169, 217, 1);
  box-shadow: 0 0 20px rgba(15, 169, 217, 0.4);
}

.contact-block .contact-row a:hover,
.phone-numbers a:hover,
.email-addresses a:hover,
.contact-block .contact-row p:hover {
  color: #c6aa65;
  transform: scale(1.05);
  border-color: rgba(198, 170, 101, 1);
  box-shadow: 0 0 20px rgba(198, 170, 101, 0.4);
  text-shadow: 0 0 10px rgba(198, 170, 101, 0.3);
}

/* Content box hover effect */
.contact-block:nth-child(4) .contact-row .content-box:hover {
  transform: scale(1.05);
  border-color: rgba(198, 170, 101, 1);
  box-shadow: 0 0 20px rgba(198, 170, 101, 0.4);
}

.contact-block:nth-child(4) .contact-row .content-box:hover p {
  color: #c6aa65;
  text-shadow: 0 0 10px rgba(198, 170, 101, 0.3);
}

/* Mobile Responsive Adjustments for Contact Introduction */
@media (max-width: 768px) {
  /* Contact section mobile adjustments */
  .contact-section {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 80px; /* Add moderate spacing below header for mobile only */
  }

  /* Contact intro wrapper mobile */
  .contact-intro-wrapper {
    padding: 20px 15px 40px;
    max-width: 100%;
  }

  /* Mobile title styling */
  .contact-title-left {
    margin-bottom: 25px;
  }

  .contact-title-left h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    padding: 0 10px;
    text-align: center;
    /* Use the same bright gradient as desktop for consistency */
    background: linear-gradient(135deg, #ffd700 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: brightness(1.2) contrast(1.1);
  }

  /* Mobile description styling */
  .contact-description {
    padding: 30px 15px;
  }

  /* Mobile grid layout */
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .info-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }

  .info-icon {
    align-self: center;
    margin-bottom: 5px;
  }

  .info-content h3 {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 12px;
  }

  .info-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
  }

  /* Mobile location highlight */
  .location-highlight {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }

  .location-icon {
    align-self: center;
  }

  .location-text h4 {
    font-size: 1.2rem;
    text-align: center;
  }

  .location-text p {
    font-size: 0.9rem;
    text-align: center;
  }

  /* Mobile phone link */
  .contact-phone-link {
    display: inline-block;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(15, 169, 217, 0.1);
  }

  /* Mobile contact items - only center the text */
  .contact-item span {
    text-align: center;
  }

  .contact-phone-link:hover {
    background: rgba(198, 170, 101, 0.1);
    transform: none; /* Remove scale transform on mobile */
  }

  /* Reduce animations for mobile performance */
  .contact-title-left h1 {
    animation: none;
  }

  /* Simplified mobile animations */
  .info-item, .location-highlight {
    animation: mobileSlideIn 0.5s ease forwards;
  }

  .info-item:nth-child(1) { animation-delay: 0.1s; }
  .info-item:nth-child(2) { animation-delay: 0.2s; }
  .info-item:nth-child(3) { animation-delay: 0.3s; }
  .location-highlight { animation-delay: 0.4s; }

  /* Mobile Contact Methods Section */
  .contact-methods-section {
    padding: 40px 0;
  }

  .contact-methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .contact-method-card {
    padding: 25px 20px;
    animation: mobileSlideIn 0.5s ease forwards;
  }

  .contact-method-card:nth-child(1) { animation-delay: 0.1s; }
  .contact-method-card:nth-child(2) { animation-delay: 0.2s; }
  .contact-method-card:nth-child(3) { animation-delay: 0.3s; }
  .contact-method-card:nth-child(4) { animation-delay: 0.4s; }

  /* Mobile Method Header */
  .method-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .method-icon {
    align-self: center;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .method-header h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  /* Mobile Contact Items */
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 15px;
    align-items: center;
  }

  .contact-item:hover {
    transform: none;
  }

  .contact-item i {
    font-size: 1.2rem;
    align-self: center;
  }

  .contact-item span {
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
  }

  /* Mobile Email Info */
  .email-info {
    text-align: center;
    gap: 4px;
  }

  .email-type {
    font-size: 0.8rem;
  }

  .email-address {
    font-size: 0.9rem;
    word-break: break-word;
  }

  /* Mobile Address and Hours */
  .address, .hours-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 15px;
    align-items: center;
  }

  .address span {
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
    display: block;
    width: 100%;
  }

  .hours-details {
    text-align: center;
    gap: 4px;
  }

  .days {
    font-size: 0.95rem;
  }

  .time {
    font-size: 0.85rem;
  }
  
  /* Interactive card hover/tap effect */
  .contact-block {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .contact-block:active {
    transform: scale(0.98) translateY(0);
    box-shadow: 0 0 40px rgba(15, 169, 217, 0.4);
  }
  
  /* Add tap-to-copy functionality styling */
  .copyable {
    position: relative;
    cursor: pointer;
  }
  
  .copyable:after {
    content: "Tap to copy";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 169, 217, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }
  
  .copyable:active:after {
    content: "Copied!";
    background: rgba(39, 174, 96, 0.8);
  }
  
  .copyable.show-tooltip:after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  /* Liquid border animation effect */
  .contact-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 3px;
    background: linear-gradient(45deg, transparent 0%, #0fa9d9 25%, #c6aa65 75%, transparent 100%);
    background-size: 400% 400%;
    z-index: -1;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderFlow 4s ease infinite;
  }
  
  /* Pulsing glow effect on tap */
  .contact-block:active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(15, 169, 217, 0.4) 0%, transparent 70%);
    opacity: 0;
    z-index: -1;
    animation: pulseGlow 0.6s forwards;
  }
  
  /* Add scroll indicator for address that can be expanded */
  .contact-block:nth-child(3) p {
    position: relative;
  }
  
  /* Floating card effect for active card */
  .contact-block:active {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(15, 169, 217, 0.3);
  }
  
  /* Footer responsive adjustments */
  .footer-section {
    margin: 10px 0;
  }
  
  /* Reset widths for all blocks on mobile */
  .contact-block:nth-child(1),
  .contact-block:nth-child(2),
  .contact-block:nth-child(3),
  .contact-block:nth-child(4) {
    width: 95%;
    padding: 20px;
  }
  
  .content-box {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  
  .contact-block:nth-child(4) .contact-row .content-box {
    min-width: unset;
    width: 100%;
  }
  
  .contact-title-left {
    margin-top: 15px; /* Small additional margin for the title container */
  }
  
  .contact-title-left h1 {
    margin-top: 10px; /* Just enough margin for the heading text */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* Subtle text shadow enhancement */
  }
}

/* For smaller mobile devices */
@media (max-width: 480px) {
  .contact-section {
    padding-top: 70px; /* Slightly less padding on very small screens */
  }
  
  /* Extra small mobile intro wrapper */
  .contact-intro-wrapper {
    padding: 15px 10px 30px;
  }

  /* Extra small mobile title */
  .contact-title-left h1 {
    font-size: 1.8rem; /* Smaller font for very small screens */
    line-height: 1.3;
    padding: 0 5px;
  }

  /* Extra small mobile description */
  .contact-description {
    padding: 25px 10px;
  }

  .info-item {
    padding: 18px 15px;
    gap: 12px;
  }

  .info-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .info-content h3 {
    font-size: 1.1rem;
  }

  .info-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .location-highlight {
    padding: 18px 15px;
    gap: 12px;
  }

  .location-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .location-text h4 {
    font-size: 1.1rem;
  }

  .location-text p {
    font-size: 0.85rem;
  }

  /* Extra small Contact Methods */
  .contact-methods-section {
    padding: 30px 0;
  }

  .contact-methods-grid {
    padding: 0 10px;
    gap: 18px;
  }

  .contact-method-card {
    padding: 20px 15px;
  }

  .method-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .method-header h3 {
    font-size: 1.1rem;
  }

  .contact-item {
    padding: 12px;
  }

  .contact-item span {
    font-size: 0.9rem;
  }

  .email-type {
    font-size: 0.75rem;
  }

  .email-address {
    font-size: 0.85rem;
  }

  .address span {
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
    display: block;
    width: 100%;
  }

  .days {
    font-size: 0.9rem;
  }

  .time {
    font-size: 0.8rem;
  }

  /* Adjust phone link for small screens */
  .contact-phone-link {
    padding: 1px 3px;
    font-size: 0.95rem;
  }
}

/* Pulse animation for arrow */
@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

/* Define animations */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseArrow {
  0% {
    transform: translateX(0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateX(5px) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 0.7;
  }
}

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.8;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

/* Interactive background particles */
.contact-section::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(15, 169, 217, 0.05) 0%, transparent 8%),
    radial-gradient(circle at 75% 60%, rgba(198, 170, 101, 0.05) 0%, transparent 8%),
    radial-gradient(circle at 40% 80%, rgba(15, 169, 217, 0.05) 0%, transparent 6%);
  z-index: -1;
  opacity: 0;
  animation: fadeIn 1s 0.5s forwards;
}

/* Add visual scroll indicator */
.scroll-indicator {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s 1s forwards, fadeOut 1s 5s forwards;
  pointer-events: none;
  z-index: 10;
}

.scroll-circle {
  width: 8px;
  height: 8px;
  background-color: #0fa9d9;
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(15px);
    opacity: 1;
  }
  100% {
    transform: translateY(30px);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes mobileSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
} 

/* ---- E-mail chip overflow fix (desktop & down) ---- */
.email-addresses{
  /* keep flex layout but let lines wrap */
  display:flex !important;
  flex-wrap:wrap !important;
  gap:15px !important;        /* even spacing between chips */
  max-width:100% !important;
}

.email-addresses a{
  /* let each chip shrink or wrap instead of forcing 340-450 px */
  min-width:280px !important;             /* enough for label + address */
  max-width:calc(50% - 15px) !important;  /* two chips in one row */
  white-space:normal !important;          /* allow wrapping */
  overflow-wrap:break-word !important;    /* wrap long domains safely */
  padding:10px 20px !important;           /* matches other contact blocks */
  box-sizing:border-box !important;       /* padding counted in width */
}

/* Phones: stack chips full-width */
@media (max-width:480px){
  .email-addresses a{
    max-width:100% !important;
    min-width:auto !important;
    padding:10px 15px !important;
  }
} 

/* ─── Contact Bottom: Compact Value Props ─────────────────────────── */
/* Place at the end of contact-custom.css to ensure strongest specificity */

.contact-benefits {
  margin-top: 32px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(13, 13, 13, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.10);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideInUp 0.8s ease forwards; /* reuse existing keyframes */
  animation-delay: 0.2s;
}

/* Top gradient accent line (consistent with contact + courses cards) */
.contact-benefits::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, #0fa9d9, #c6aa65);
  opacity: 0.9;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  background: rgba(13, 13, 13, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideInUp 0.6s ease forwards;
}

/* Stagger entrance like other contact cards */
.benefit-item:nth-child(1) { animation-delay: 0.35s; }
.benefit-item:nth-child(2) { animation-delay: 0.45s; }
.benefit-item:nth-child(3) { animation-delay: 0.55s; }

/* Left accent on hover (matches .info-item::before pattern) */
.benefit-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, #0fa9d9, #c6aa65);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefit-item:hover::before { opacity: 1; }

.benefit-item:hover {
  transform: translateY(-3px);
  background: rgba(13, 13, 13, 0.60);
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 0 20px 40px rgba(0,0,0,0.30);
}

/* Icon chip (matches your gradient chip treatment) */
.benefit-item i {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #0fa9d9, #c6aa65);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Text styles aligned to contact cards */
.benefit-text h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
  color: #c6aa65;
}

.benefit-text p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.90);
}

/* CTA aligned to your button look; relies on existing .btn styles where available */
.benefits-cta {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.benefits-cta .btn,
.benefits-cta .btn-primary,
.benefits-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 30px;
  background: rgba(13, 13, 13, 0.40);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  color: #c6aa65;
  border: 1px solid rgba(198, 170, 101, 0.40);
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

/* Gradient overlay on hover */
.benefits-cta .btn::before,
.benefits-cta .btn-primary::before,
.benefits-cta a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c6aa65 0%, #0fa9d9 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.benefits-cta .btn:hover::before,
.benefits-cta .btn-primary:hover::before,
.benefits-cta a:hover::before {
  left: 0;
}

.benefits-cta .btn:hover,
.benefits-cta .btn-primary:hover,
.benefits-cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.30);
  border-color: rgba(198, 170, 101, 0.70);
  color: #c6aa65;
  background: rgba(13, 13, 13, 0.60);
}

/* Active state */
.benefits-cta .btn:active,
.benefits-cta .btn-primary:active,
.benefits-cta a:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(15, 169, 217, 0.3);
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .contact-benefits {
    margin-top: 24px;
    padding: 16px;
    border-radius: 14px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .benefit-item {
    padding: 16px 14px;
  }
  .benefit-item i {
    width: 44px; height: 44px; font-size: 1.15rem;
  }
  .benefit-text h3 { font-size: 1rem; }
  .benefit-text p { font-size: 0.95rem; }
  
  /* Mobile button optimization */
  .benefits-cta {
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
  }
  
  .benefits-cta .btn,
  .benefits-cta .btn-primary,
  .benefits-cta a {
    padding: 12px 24px;
    min-width: 120px;
    font-size: 0.9rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .benefits-cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .benefits-cta .btn,
  .benefits-cta .btn-primary,
  .benefits-cta a {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 14px 20px;
  }
}
