/* 
 * Main Frontend Styles
 * Medical CMS Theme
 */

:root {
  --primary-color: #8c0000;
  --secondary-color: #0d6efd;
  --danger-color: #dc3545;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
}

/* Sections */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-color);
}

/* Cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Links */
a {
  transition: all 0.3s ease;
}

/* Block Titles */
.block-title-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
  padding: 0 1rem;
  animation: fadeInDown 0.6s ease-out;
}

.block-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.25rem;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.block-title::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(to right, transparent, #667eea);
}

.block-title::after {
  content: "";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(to left, transparent, #764ba2);
}

.block-title-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  background-size: 200% 100%;
  margin: 0 auto;
  border-radius: 3px;
  animation: shimmer 2s infinite;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@media (max-width: 768px) {
  .block-title {
    font-size: 1.75rem;
    letter-spacing: 0.5px;
  }
  .block-title::before,
  .block-title::after {
    display: none;
  }
  .block-title-wrapper {
    margin-bottom: 2rem;
  }
  .block-title-divider {
    width: 60px;
  }
}

/* Utilities */
.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.text-primary {
  color: var(--primary-color) !important;
}
