/* ===== New Pages CSS - Call Center & Library ===== */

/* Import Google Fonts for consistency */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Reset and Base Styles */
.new-pages-container {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Common Section Styles */
.new-section {
  padding: 80px 0;
}

.new-section-title {
  text-align: center;
  margin-bottom: 50px;
}

.new-section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.new-section-title p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Sections */
.new-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.library-hero {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.new-hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.new-hero-content .highlight {
  color: #38ef7d;
}

.new-hero-content .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 25px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.hero-tag i {
  margin-right: 8px;
}

.hero-cta .btn {
  margin-right: 15px;
  margin-bottom: 10px;
}

.hero-image img {
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  height: auto;
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.library-services .service-card::before {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  margin-bottom: 25px;
}

.service-icon i {
  font-size: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.library-services .service-icon i {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2c3e50;
}

.service-card p {
  color: #6c757d;
  line-height: 1.6;
}

/* Features Section */
.features-section {
  background: #f8f9fa;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #667eea;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(5px);
}

.feature-icon {
  margin-right: 20px;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.8rem;
  color: #667eea;
}

.feature-content h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}

.feature-content p {
  color: #6c757d;
  margin: 0;
}

/* Pricing Section */
.pricing-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  border-color: #667eea;
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.08);
}

.pricing-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 30px 20px;
  text-align: center;
}

.pricing-card.featured .pricing-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.pricing-header h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.pricing-card.featured .price {
  color: white;
}

.price span {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 400;
}

.pricing-card.featured .price span {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-body {
  padding: 30px 20px;
}

.pricing-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.pricing-body ul li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.pricing-body ul li:last-child {
  border-bottom: none;
}

.pricing-body ul li i {
  margin-right: 10px;
  font-size: 0.9rem;
}

.pricing-body ul li .bi-check {
  color: #28a745;
}

.pricing-body ul li .bi-x {
  color: #dc3545;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* About Library Section */
.about-library .feature-item {
  border-left-color: #11998e;
}

.about-library .feature-icon i {
  color: #11998e;
}

/* Donation Section */
.donation-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.donation-card .card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.donation-options h5 {
  color: #38ef7d;
  margin-bottom: 20px;
}

.donation-options ul {
  list-style: none;
  padding: 0;
}

.donation-options ul li {
  padding: 10px 0;
  position: relative;
  padding-left: 30px;
  font-size: 1.1rem;
}

.donation-options ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #38ef7d;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Volunteer Form */
.volunteer-form .form-control,
.volunteer-form .form-select {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.volunteer-form .form-control:focus,
.volunteer-form .form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  background: white;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #667eea, #38ef7d);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 50%;
  padding: 0 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.timeline-item:nth-child(even) .timeline-content::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-right: 10px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.timeline-content::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #38ef7d 100%);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid white;
  box-shadow: 0 0 0 3px #667eea;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -52px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -52px;
}

.timeline-content h5 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2c3e50;
}

.timeline-date {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

.timeline-content p {
  color: #6c757d;
  margin: 0;
}

/* Button Styles */
.btn {
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.btn-primary2 {
  background: linear-gradient(135deg, #0b32e4 0%, #0805d6 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-outline-primary {
  border: 2px solid #667eea;
  color: #667eea;
  background: transparent;
}

.btn-outline-primary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.btn-light {
  background: white;
  color: #667eea;
  border: none;
}

.btn-light:hover {
  background: #f8f9fa;
  color: #667eea;
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Utility Classes */
.text-primary {
  color: #667eea !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.rounded {
  border-radius: 15px !important;
}

.shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-hero-content h1 {
    font-size: 2.2rem;
  }

  .new-section-title h2 {
    font-size: 2rem;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding: 0 0 0 80px;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
    right: auto;
    border-right: 10px solid white;
    border-left: none;
  }

  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -50px;
    right: auto;
  }

  .pricing-card.featured {
    transform: none;
    margin: 20px 0;
  }

  .hero-cta .btn {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }

  .service-card,
  .pricing-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .new-section {
    padding: 60px 0;
  }

  .new-hero {
    padding: 100px 0 60px;
  }

  .new-hero-content h1 {
    font-size: 1.8rem;
  }

  .service-card {
    padding: 30px 20px;
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for Bootstrap compatibility */
.container {
  position: relative;
}

.row {
  margin: 0 -15px;
}

.col-lg-6,
.col-lg-4,
.col-lg-8,
.col-md-6,
.col-md-4,
.col-md-8 {
  padding: 0 15px;
}
