/* 
 * Main Stylesheet for BS Learning Website
 * Compatible with PHP 5.3
 */

/* Global Styles */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Header Styles */
header .navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

/* Main Content Styles */
main {
  min-height: 70vh;
}

.jumbotron {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
}

/* Card Styles */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 300px;
  object-fit: cover;
  width:auto;
}

.card-title {
  font-weight: 600;
  color: var(--dark-color);
}


.card-footer {
  background-color: transparent;
}

/* Course Page Styles */
.list-group-item-action:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

.badge {
  font-weight: 500;
}

/* Form Styles */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Footer Styles */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 2rem 0;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Admin Panel Styles */
.admin-sidebar {
  background-color: #f8f9fa;
  min-height: 100vh;
}

.table-responsive {
  overflow-x: auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .card-img-top {
    height: auto; /* Let the image take its natural height */
    max-width: 100%; /* Ensure it doesn't overflow its container */
    width: 100%; /* Optional: Makes it fill the card width */
  }
}
  
  .jumbotron {
    padding: 2rem 1rem;
  }
}

/* Video Modal Styles */
.modal-dialog {
  max-width: 800px;
}

/* Payment Page Styles */
#payment_instructions {
  border-left: 4px solid var(--info-color);
  padding-left: 1rem;
}

/* Login/Register Form Styles */
.auth-card {
  max-width: 500px;
  margin: 0 auto;
}

/* Course Content Styles */
.course-video-container {
  border-radius: 0.5rem;
  overflow: hidden;
}

/* Utility Classes */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.rounded {
  border-radius: 0.5rem !important;
}

/* Animation for alerts */
.alert {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.responsive-banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* Optional: centers the image */
}
