/* COMPANY COLOR VARIABLES */
:root {
  /* Primary Colors */
  --primary-dark: #002e3d;    /* Primary Dark Blue */
  --primary-medium: #3c7094;  /* Secondary Blue */
  --primary-teal: #00485c;    /* Tertiary Teal */
  --primary-light: #78b3cf;   /* Light Blue */
  --accent-orange: #f9b233;   /* Accent Orange */

  /* RGB Variants for transparency */
  --primary-dark-rgb: 0, 46, 61;
  --primary-medium-rgb: 60, 112, 148;
  --primary-teal-rgb: 0, 72, 92;
  --primary-light-rgb: 120, 179, 207;
  --accent-orange-rgb: 249, 178, 51;
}

/* Album/Course listing styles with company branding */

/* Jumbotron styles */
.jumbotron {
  padding-top: 3rem;
  padding-bottom: 3rem;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.jumbotron::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--accent-orange);
  border-radius: 50%;
  opacity: 0.1;
  transform: translate(50px, -50px);
}

@media (min-width: 768px) {
  .jumbotron {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.jumbotron p:last-child {
  margin-bottom: 0;
}

.jumbotron-heading {
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(var(--primary-dark-rgb), 0.3);
}

/* Card styles */
.card-img-top {
  width: 100%;
  height: 225px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card {
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(var(--primary-dark-rgb), 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--primary-light);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-medium), var(--accent-orange), var(--primary-teal));
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(var(--primary-dark-rgb), 0.2);
  border-color: var(--primary-medium);
}

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

.card-body {
  padding: 1.5rem;
}

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

.card-text {
  color: var(--primary-medium);
  line-height: 1.6;
}

/* Footer styles */
footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-teal) 100%);
  color: white;
}

footer p {
  margin-bottom: .25rem;
}

footer a {
  color: var(--accent-orange);
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
  text-decoration: none;
}

/* Navigation adjustments */
.navbar-brand img {
  height: 30px;
  width: auto;
}

.navbar-dark {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-teal) 100%) !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-orange) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 15px rgba(var(--primary-dark-rgb), 0.15);
  border-radius: 8px;
}

.dropdown-item {
  color: var(--primary-dark);
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: white;
}

/* Course grid */
.course-grid {
  margin-top: 2rem;
}

/* Search form styling */
.navbar .form-inline .form-control {
  border-radius: 20px;
  border: 1px solid var(--primary-light);
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.navbar .form-inline .form-control:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 0.2rem rgba(var(--accent-orange-rgb), 0.25);
  background: white;
}

/* Button improvements */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-teal) 100%);
  border: none;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-medium-rgb), 0.3);
}

.btn-secondary {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--primary-dark);
  font-weight: 600;
}

.btn-secondary:hover {
  background: #ffb347;
  border-color: #ffb347;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border-color: var(--primary-light);
  color: var(--primary-medium);
}

.btn-outline-secondary:hover {
  background-color: var(--primary-medium);
  border-color: var(--primary-medium);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .jumbotron {
    text-align: center;
    padding: 2rem 1rem;
  }

  .card-img-top {
    height: 200px;
  }

  .card-body {
    padding: 1rem;
  }
}

/* Background light section */
.bg-light {
  background-color: #f8f9fa !important;
}

/* Text muted improvements */
.text-muted {
  color: var(--primary-medium) !important;
}

.text-muted a {
  color: var(--primary-teal);
  transition: color 0.3s ease;
}

.text-muted a:hover {
  color: var(--accent-orange);
  text-decoration: none;
}

/* LOGIN PAGE OVERRIDES */
body:not(.login-page) .album.py-5.bg-light {
  background-color: #f8f9fa !important;
  padding: 3rem 0 !important;
}

/* Form signin specific styles for login page compatibility */
.form-signin {
  width: 100%;
  max-width: 420px;
  padding: 15px;
  margin: auto;
}

.form-signin .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
  border: 1px solid var(--primary-light);
  transition: all 0.3s ease;
}

.form-signin .form-control:focus {
  z-index: 2;
  border-color: var(--primary-medium);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-medium-rgb), 0.25);
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.form-signin .btn {
  font-weight: 500;
  border-radius: 8px;
}

.form-signin .btn-block {
  display: block;
  width: 100%;
}

/* Social login buttons */
.form-signin .btn img {
  margin-right: 8px;
  vertical-align: middle;
}

/* Form spacing */
.form-signin h1 {
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.form-signin hr {
  margin: 20px 0;
  border-color: var(--primary-light);
}

/* Links styling */
.form-signin a {
  text-decoration: none;
  color: var(--primary-medium);
  transition: color 0.3s ease;
}

.form-signin a:hover {
  text-decoration: underline;
  color: var(--accent-orange);
}

/* Make social buttons look better */
.form-signin .btn-outline-dark {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.form-signin .btn-outline-dark:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.form-signin .btn-dark {
  background-color: var(--primary-teal);
  border-color: var(--primary-teal);
}

.form-signin .btn-dark:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Responsive adjustments for login */
@media (max-width: 576px) {
  .form-signin {
    padding: 10px;
  }

  .album .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Course category badges */
.badge {
  background: var(--accent-orange);
  color: var(--primary-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.badge-primary {
  background: var(--primary-medium);
  color: white;
}

.badge-secondary {
  background: var(--primary-light);
  color: white;
}

/* Pagination styling */
.pagination .page-link {
  color: var(--primary-medium);
  border-color: var(--primary-light);
}

.pagination .page-link:hover {
  color: white;
  background-color: var(--primary-medium);
  border-color: var(--primary-medium);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-teal);
  border-color: var(--primary-teal);
}

/* Breadcrumb styling */
.breadcrumb {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
  border-radius: 8px;
}

.breadcrumb-item a {
  color: white;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--accent-orange);
}

/* Alert styling */
.alert-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
  border: none;
  color: white;
}

.alert-info {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
}

.alert-warning {
  background: var(--accent-orange);
  border: none;
  color: var(--primary-dark);
}

/* Course price styling */
.price {
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 1.2rem;
}

.price-old {
  color: var(--primary-medium);
  text-decoration: line-through;
}

/* Featured course highlighting */
.featured-course {
  border: 2px solid var(--accent-orange);
  position: relative;
}

.featured-course::after {
  content: 'FEATURED';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-orange);
  color: var(--primary-dark);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
/* Add this to your album.css file after the existing card styles */

/* UNIFORM CARD HEIGHTS FOR COURSE GRID */
.album .row {
  display: flex;
  flex-wrap: wrap;
}

.album .col-md-4 {
  display: flex;
  margin-bottom: 2rem;
}

/* Override existing card styles to ensure uniform height */
.album .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  margin-bottom: 0; /* Remove individual margin since col-md-4 handles it */
}

/* Make card body flex and push footer content to bottom */
.album .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}

/* Push the button/date section to the bottom */
.album .card-body .d-flex {
  margin-top: auto;
}

/* Ensure consistent image heights */
.album .card-img-top,
.album .course-thumb,
.album .bd-placeholder-img {
  height: 225px;
  object-fit: cover;
  width: 100%;
}

/* Limit title text to prevent height variations */
.album .card-text {
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  line-height: 1.4;
  min-height: 2.8em; /* Reserve space for 2 lines */
  margin-bottom: 1rem;
}

/* Ensure button section stays at bottom */
.album .btn-group {
  margin-top: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .album .col-md-4 {
    margin-bottom: 1.5rem;
  }

  .album .card-img-top,
  .album .course-thumb,
  .album .bd-placeholder-img {
    height: 200px;
  }

}
.course-image-container {
  text-align: center;
  margin: 2rem 0;

}

.course-image-large {
  max-width: 100%;
  height: auto;
  width: 50%; /* More reasonable size */
  min-height: 250px; /* Proper height */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(var(--primary-dark-rgb), 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--primary-light);
}

.course-image-large:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(var(--primary-dark-rgb), 0.15);
  border-color: var(--primary-medium);
}

/* Responsive sizing */
@media (min-width: 768px) {
  .course-image-large {
    width: 55%;
    min-height: 300px;
  }
}

@media (min-width: 1200px) {
  .course-image-large {
    width: 60%;
    min-height: 350px;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .course-image-container {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .course-image-large {
    width: 100%;
    min-height: 200px;
  }
}

