/* Additional styles for the enhanced timing page */

/* Base styling enhancements */
body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Header enhancements */
header {
  background: linear-gradient(to right, #ffffff, #f9f9f9);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 4px solid #ff6347;
  animation: slideDown 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-logo {
  animation: pulse-subtle 3s infinite ease-in-out;
  border: 2px solid #ff6347;
  box-shadow: 0 0 15px rgba(255, 99, 71, 0.2);
}

@keyframes pulse-subtle {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 99, 71, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 99, 71, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 99, 71, 0);
  }
}

/* Header actions */
.header-actions {
  display: flex;
  margin-left: auto;
  gap: 15px;
}

.header-nav-link {
  display: flex;
  align-items: center;
  color: #333;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.header-nav-link:hover {
  background-color: rgba(255, 99, 71, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(255, 99, 71, 0.2);
  color: #e73c3c;
}

.header-nav-link i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.header-nav-link:hover i {
  transform: scale(1.2);
}

/* Main Action Buttons */
.action-buttons-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 25px 20px;
  background: linear-gradient(135deg, #ff6347, #e73c3c);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease, transform 0.8s cubic-bezier(0.5, 0, 0, 1);
  transform: translateY(-10px);
}

.action-buttons-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(255, 255, 255, 0.05)
  );
  background-size: 20px 20px;
  z-index: 1;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  padding: 18px;
  background-color: white;
  border-radius: 15px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.action-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 99, 71, 0.1),
    rgba(231, 60, 60, 0.1)
  );
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.action-button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #ff6347, #e73c3c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.action-button:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(231, 60, 60, 0.2);
  color: #e73c3c;
}

.action-button:hover::before {
  transform: translateY(0);
}

.action-button:hover::after {
  transform: scaleX(1);
}

.action-button i {
  font-size: 28px;
  margin-bottom: 10px;
  color: #e73c3c;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 2px 3px rgba(231, 60, 60, 0.3));
}

.action-button:hover i {
  transform: scale(1.2) rotate(5deg);
}

.action-button span {
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

.action-button small {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  transition: color 0.3s ease;
}

.action-button:hover span,
.action-button:hover small {
  color: #e73c3c;
}

.fare-button {
  background-color: #fcfaf9;
}

.fare-button i {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(231, 60, 60, 0.5));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(231, 60, 60, 0.7));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(231, 60, 60, 0.5));
  }
}

.time-button i {
  animation: tick-tock 2s infinite;
}

@keyframes tick-tock {
  0%,
  100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

/* Timing Header */
.timing-header h1 {
  left:25%;
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
  position: relative;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding-bottom: 15px;
  display: inline-block;

  transform: translateX(-50%);
}

.timing-header h1::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #ff6347, #e73c3c);
  border-radius: 4px;
  transform-origin: center;
  transform: scaleX(0.7);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timing-header h1:hover::before {
  transform: scaleX(1);
}

.timing-subheader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.current-time-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f9f9f9;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.time-label {
  font-weight: 600;
  color: #333;
}

.time-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e73c3c;
}

.metro-status {
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 5px;
}

.metro-status.running {
  background-color: #d4edda;
  color: #155724;
}

.metro-status.closed {
  background-color: #f8d7da;
  color: #721c24;
}

.timing-note {
  color: #666;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.timing-note i {
  color: #e73c3c;
}

/* Line Filter */
.filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0 30px;
  gap: 20px;
  position: relative;
  transition: all 0.3s ease;
  padding: 10px;
  position: relative;
}

.filter-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  z-index: 0;
}

.filter-container label {
  font-weight: 700;
  color: #333;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  white-space: nowrap;
  background: #fff;
  padding: 0 10px;
}

/* Removing the before pseudo-element since we're using an i tag in the HTML */
.filter-container label i {
  color: #e32727;
  margin-right: 8px;
}

.line-filter {
  padding: 12px 20px;
  border-radius: 50px;
  border: 2px solid #e32727;
  background-color: white;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  font-weight: 600;
  min-width: 200px;
  text-align: center;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e32727' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Drop shadow effect for the filter dropdown */
.line-filter {
  box-shadow: 0 2px 8px rgba(227, 39, 39, 0.15);
}

.line-filter:hover {
  background-color: #fff;
  border-color: #e32727;
  box-shadow: 0 4px 12px rgba(227, 39, 39, 0.25);
}

.line-filter:focus {
  outline: none;
  border-color: #e32727;
  box-shadow: 0 0 0 3px rgba(227, 39, 39, 0.15);
}

/* Line filter options styling */
.line-filter option {
  padding: 10px;
  font-weight: 500;
}

/* Custom dropdown indicator animation */
.line-filter:hover {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e73c3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Timing Table Styling */
.timing-table-container {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin: 20px 0 40px;
  position: relative;
  border: 1px solid #eee;
}

.timing-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  overflow: hidden;
}

.timing-table thead {
  background: #e32727;
  position: sticky;
  top: 0;
  z-index: 10;
}

.timing-table th {
  padding: 18px 15px;
  text-align: left;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  position: relative;
}

.timing-table th:nth-child(2) {
  background-color: #ffd8d8; /* Lighter red for second column as in screenshot */
  color: #333;
}

.timing-table th:first-child {
  border-top-left-radius: 15px;
}

.timing-table th:last-child {
  border-top-right-radius: 15px;
}

.timing-table tbody tr {
  background-color: #fff;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.timing-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.timing-table tbody tr:hover {
  background-color: #fff9f9;
}

.timing-table td {
  padding: 15px;
  color: #333;
  vertical-align: middle;
}

/* Ensure consistent borders and spacing */
.timing-table {
  border-collapse: collapse;
}

/* Station column styling (second column) */
.timing-table td:nth-child(2) {
  background-color: #fff2f2;
}

/* Highlight animation for rows */
@keyframes pulse-row {
  0% {
    background-color: rgba(255, 99, 71, 0.05);
  }
  50% {
    background-color: rgba(255, 99, 71, 0.1);
  }
  100% {
    background-color: rgba(255, 99, 71, 0.05);
  }
}

.timing-table tr.highlight {
  animation: pulse-row 1.5s infinite;
}

.line-indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.line-indicator::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  opacity: 0.5;
  z-index: -1;
  transition: opacity 0.3s ease;
}

tr:hover .line-indicator {
  transform: scale(1.3);
}

tr:hover .line-indicator::after {
  opacity: 0.8;
}

.line-indicator.red {
  background-color: #e44d26;
}
.line-indicator.red::after {
  box-shadow: 0 0 10px #e44d26;
}

.line-indicator.yellow {
  background-color: #ffc107;
}
.line-indicator.yellow::after {
  box-shadow: 0 0 10px #ffc107;
}

.line-indicator.blue {
  background-color: #2196f3;
}
.line-indicator.blue::after {
  box-shadow: 0 0 10px #2196f3;
}

.line-indicator.green {
  background-color: #4caf50;
}
.line-indicator.green::after {
  box-shadow: 0 0 10px #4caf50;
}

.line-indicator.violet {
  background-color: #9c27b0;
}
.line-indicator.violet::after {
  box-shadow: 0 0 10px #9c27b0;
}

.line-indicator.pink {
  background-color: #e91e63;
}
.line-indicator.pink::after {
  box-shadow: 0 0 10px #e91e63;
}

.line-indicator.magenta {
  background-color: #ff4081;
}
.line-indicator.magenta::after {
  box-shadow: 0 0 10px #ff4081;
}

.line-indicator.grey {
  background-color: #757575;
}
.line-indicator.grey::after {
  box-shadow: 0 0 10px #757575;
}

.line-indicator.orange {
  background-color: #ff9800;
}
.line-indicator.orange::after {
  box-shadow: 0 0 10px #ff9800;
}

/* Metro Facts Section */
.metro-facts-container {
  margin-top: 60px;
  padding: 40px 25px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(231, 60, 60, 0.1);
}

.metro-facts-container::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 99, 71, 0.05) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.metro-facts-container::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(231, 60, 60, 0.05) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.metro-facts-container h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.metro-facts-container h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #ff6347, #e73c3c);
  border-radius: 3px;
}

.metro-facts-container h3 i {
  color: #e73c3c;
  margin-right: 10px;
  animation: pulse-subtle 2s infinite;
  display: inline-block;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 1;
}

.fact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(231, 60, 60, 0.05);
}

.fact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 99, 71, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fact-card:hover::before {
  opacity: 1;
}

.fact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(231, 60, 60, 0.1);
}

.fact-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6347, #e73c3c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(231, 60, 60, 0.2);
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fact-card:hover .fact-icon {
  transform: scale(1.1) rotate(10deg);
}

.fact-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, #ff6347, #e73c3c);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: pulse-glow 2s infinite;
}

.fact-icon i {
  color: white;
  font-size: 26px;
  transition: transform 0.3s ease;
}

.fact-card:hover .fact-icon i {
  transform: scale(1.2);
}

.fact-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(to right, #ff6347, #e73c3c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.fact-number::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #ff6347, #e73c3c);
  transition: width 0.3s ease;
}

.fact-card:hover .fact-number::after {
  width: 80%;
}

.fact-label {
  color: #555;
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
  transition: color 0.3s ease;
}

.fact-card:hover .fact-label {
  color: #e73c3c;
}

/* Social Sharing Section */
.social-sharing {
  margin-top: 40px;
  padding: 30px 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 99, 71, 0.05) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.social-sharing::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 99, 71, 0.05) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: rotate 30s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.sharing-container {
  text-align: center;
  padding: 20px;
  border-radius: 15px;
}

.sharing-container h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
}

.sharing-container h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, #ff6347, #e73c3c);
  border-radius: 10px;
}

.sharing-container p {
  color: #666;
  margin-bottom: 20px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 140px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.social-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s;
  z-index: -1;
}

.social-button:hover::before {
  transform: translateX(100%) rotate(45deg);
}

.social-button i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.social-button:hover i {
  transform: rotate(360deg) scale(1.2);
}

.social-button span {
  position: relative;
}

.social-button.facebook {
  background: linear-gradient(45deg, #3b5998, #4c70ba);
}

.social-button.twitter {
  background: linear-gradient(45deg, #1da1f2, #0d8bd9);
}

.social-button.whatsapp {
  background: linear-gradient(45deg, #25d366, #1da851);
}

.social-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Related Links */
.related-links {
  margin-top: 60px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.related-links::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 99, 71, 0.03) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.related-links h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 1.6rem;
  position: relative;
  font-weight: 700;
}

.related-links h3::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: linear-gradient(to right, #ff6347, #e73c3c);
  border-radius: 4px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 20px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: #333;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  gap: 15px;
  border: 1px solid rgba(231, 60, 60, 0.05);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #ff6347, #e73c3c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.link-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 40px 40px;
  border-color: transparent transparent rgba(255, 99, 71, 0.05) transparent;
  transition: all 0.4s ease;
  z-index: -1;
}

.link-card:hover::before {
  transform: scaleX(1);
}

.link-card:hover::after {
  border-width: 0 0 80px 80px;
}

.link-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(231, 60, 60, 0.1);
  background-color: #fff9f8;
  color: #e73c3c;
}

.link-card i {
  font-size: 32px;
  color: #e73c3c;
  transition: all 0.3s ease;
  background-color: rgba(255, 99, 71, 0.1);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.link-card:hover i {
  transform: scale(1.2) rotate(10deg);
  background-color: rgba(255, 99, 71, 0.2);
  box-shadow: 0 5px 15px rgba(231, 60, 60, 0.15);
}

.link-card span {
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.link-card span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #e73c3c;
  transition: width 0.3s ease;
}

.link-card:hover span::after {
  width: 70%;
}

/* Floating Fare Button */
.floating-fare-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  animation: bounce-in 0.8s cubic-bezier(0.18, 1.3, 0.3, 1) forwards;
}

@keyframes bounce-in {
  0% {
    transform: scale(0) translateY(40px);
    opacity: 0;
  }
  60% {
    transform: scale(1.1) translateY(-10px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.floating-fare-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 25px;
  background-color: #ff4d4d; /* Matching the red color in attachment */
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  min-width: 200px;
  text-align: center;
}

.floating-fare-button a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 77, 77, 0.5);
  background-color: #f73b3b;
}

.floating-fare-button i {
  font-size: 20px;
  position: relative;
  z-index: 1;
  color: white;
}

.floating-fare-button span {
  font-size: 1.1rem;
}

/* Footer Styling */
footer {
  background-color: #e32727; /* Bright red background as shown in the image */
  background: linear-gradient(
    to right,
    #e32727,
    #d41c1c
  ); /* Subtle gradient to match the image */
  color: #ffffff;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.footer-section p {
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
  display: inline-block;
}

.footer-section a:hover {
  color: #ffffff;
  padding-left: 5px;
  text-decoration: underline;
}

.footer-section i {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  text-align: center;
  padding: 20px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Timing Info Section */
.timing-info {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(231, 60, 60, 0.1);
}

.timing-info::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(255, 99, 71, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.timing-info h3 {
  color: #e73c3c;
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  padding-left: 30px;
  display: inline-block;
}

.timing-info h3::before {
  content: "\f05a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #e73c3c;
}

.timing-info ul {
  list-style-type: none;
  padding-left: 10px;
  margin-bottom: 0;
}

.timing-info li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  line-height: 1.5;
  color: #444;
  transition: transform 0.3s ease;
}

.timing-info li:hover {
  transform: translateX(5px);
}

.timing-info li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: #e73c3c;
  font-size: 0.9rem;
}

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, #ff6347, #e73c3c);
  z-index: 1001;
  width: 0;
  transition: width 0.3s ease;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff6347, #e73c3c);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(231, 60, 60, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(231, 60, 60, 0.4);
}

.back-to-top i {
  font-size: 20px;
}

/* Back to top button in footer */
.back-to-top-footer {
  display: flex;
  justify-content: center;
  padding: 15px 0;
  background-color: rgba(0, 0, 0, 0.1);
}

.back-to-top-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.back-to-top-btn i {
  font-size: 20px;
  color: #ffffff;
}

/* Enhanced Responsive Adjustments */
@media (max-width: 992px) {
  .fact-card,
  .link-card {
    padding: 25px 15px;
  }

  .fact-number {
    font-size: 2rem;
  }

  .timing-table th,
  .timing-table td {
    padding: 15px 10px;
  }
}

@media (max-width: 768px) {
  .action-buttons-container {
    flex-direction: column;
    gap: 15px;
    padding: 20px 15px;
  }

  .action-button {
    width: 100%;
  }

  .social-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .social-button {
    width: 100%;
  }

  .facts-grid,
  .links-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .fact-icon {
    width: 60px;
    height: 60px;
  }

  .fact-icon i {
    font-size: 22px;
  }

  .fact-number {
    font-size: 1.8rem;
  }

  .timing-header h1 {
    font-size: 1.6rem;
  }

  .current-time-display {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .floating-fare-button {
    bottom: 20px;
    right: 20px;
  }

  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .back-to-top i {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    display: none;
  }

  .timing-table th,
  .timing-table td {
    padding: 10px 5px;
    font-size: 0.85rem;
  }

  .line-indicator {
    width: 8px;
    height: 8px;
    margin-right: 5px;
  }

  .timing-info li {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .filter-container {
    flex-direction: column;
    gap: 10px;
  }

  .filter-container label {
    padding: 0;
  }

  .line-filter {
    width: 100%;
  }

  .timing-note {
    text-align: center;
  }

  .floating-fare-button a {
    padding: 10px 16px;
  }
}
