:root {
  --primary-color: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;
  --secondary-color: #d97706;
  --secondary-light: #f59e0b;
  --success-color: #059669;
  --warning-color: #dc2626;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
}

/* Header Navigation */
.header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.1);
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.8)),
              url('https://images.pexels.com/photos/1624895/pexels-photo-1624895.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 138, 0.1);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, var(--white), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards */
.card {
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  overflow: hidden;
  background: var(--white);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(217, 119, 6, 0.3);
  color: var(--white);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
}

/* Schedule Section */
.schedule-card {
  background: linear-gradient(135deg, var(--white), var(--gray-50));
  border-left: 5px solid var(--primary-color);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.schedule-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.schedule-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.schedule-time {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Daily Verse Section */
.daily-verse {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.daily-verse::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.verse-content {
  position: relative;
  z-index: 2;
}

.verse-text {
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: 1.4;
}

.verse-reference {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-light);
}

/* Ministry Cards */
.ministry-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  position: relative;
}

.ministry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--secondary-color));
}

.ministry-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.ministry-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ministry-card:hover .ministry-img {
  transform: scale(1.1);
}

/* Call to Action */
.cta {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--gray-800), var(--gray-700));
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--secondary-light);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-lighter);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

/* Form Styles */
.form-control {
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  border-radius: 20px 20px 0 0;
}

.modal-title {
  font-weight: 700;
}

.btn-close {
  filter: invert(1);
}

/* Like and Share Buttons */
.interaction-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.like-btn, .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 15px;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.like-btn {
  background: var(--gray-100);
  color: var(--gray-600);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.like-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.like-btn.liked {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.like-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.like-btn .fas.fa-heart {
  color: #e11d48;
}

.like-btn .far.fa-heart {
  color: #6b7280;
}

.like-btn.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

/* Animation de like */
@keyframes likeAnimation {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.like-btn.animate {
  animation: likeAnimation 0.3s ease;
}

.share-btn {
  background: linear-gradient(135deg, var(--success-color), #10b981);
  color: var(--white);
}

.share-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

/* Alerts */
.alert {
  border: none;
  border-radius: 15px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: var(--success-color);
  border-left: 5px solid var(--success-color);
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: var(--warning-color);
  border-left: 5px solid var(--warning-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .schedule-card {
    padding: 1.5rem;
  }
  
  .verse-text {
    font-size: 1.4rem;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .social-icons {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .verse-text {
    font-size: 1.2rem;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
}

.shadow-custom {
  box-shadow: var(--shadow);
}

.shadow-lg-custom {
  box-shadow: var(--shadow-lg);
}

.rounded-custom {
  border-radius: 20px;
}

.transition-all {
  transition: all 0.3s ease;
}

/* Pastor Cards */
.pastor-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  text-align: center;
}

.pastor-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pastor-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 2rem auto 1rem;
  border: 5px solid var(--primary-light);
}

.pastor-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pastor-title {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}