/* Import Ubuntu fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* Site-wide base styles */
:root{
  --primary:#0d6efd; /* bootstrap primary */
  --muted:rgba(0,0,0,0.65);
  --navbar-height: 56px; /* height of the fixed-top navbar */
  --font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html,body{height:100%;}
body{
  font-family: var(--font-family);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  color:var(--muted);
  background: #fff;
}

/* Ensure content sits directly beneath the fixed navbar without unexpected gaps */
body{padding-top:var(--navbar-height);} 

/* Apple-like centered card for forms */
.form-card{
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 30px rgba(15,23,42,0.08);
  padding: 28px;
  border: 1px solid rgba(15,23,42,0.04);
}

.form-heading{
  font-size:1.375rem;
  font-weight:500;
  color:#0b1220;
  margin-bottom:0.75rem;
}
.form-sub{
  color:rgba(11,18,32,0.6);
  margin-bottom:1.25rem;
}

.form-control{
  border-radius: 10px;
  border: 1px solid rgba(11,18,32,0.09);
  padding: 12px 14px;
  height: auto;
  box-shadow: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .06s ease;
}
.form-control:focus{
  outline: none;
  border-color: rgba(13,110,253,0.9);
  box-shadow: 0 4px 18px rgba(13,110,253,0.08);
  transform: translateY(-1px);
}
.form-label{
  font-weight:500;
  font-size:0.9rem;
  color:rgba(11,18,32,0.85);
}
.form-text.small{color:rgba(11,18,32,0.55)}

.btn-primary{
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight:500;
  box-shadow: 0 6px 20px rgba(13,110,253,0.12);
}
.btn-primary:hover{box-shadow: 0 8px 26px rgba(13,110,253,0.14)}

/* Smaller helper for password strength */
.pw-strength{height:6px;border-radius:6px;background:rgba(0,0,0,0.06);overflow:hidden}
.pw-strength > i{display:block;height:100%;background:#dee2e6;width:0;transition:width .25s ease}
.pw-weak{background:#ffc107}
.pw-medium{background:#fd7e14}
.pw-strong{background:#198754}

/* Responsive tweaks */
@media (max-width:575px){
  .form-card{padding:18px;border-radius:12px}
}

/* Hero section consistency */
header[role="banner"] {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

header[role="banner"] .container {
  width: 100%;
}

/* Enhanced Course Cards */
.course-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(13, 110, 253, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  background: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(13, 110, 253, 0.15);
}

.course-card-header {
  background: linear-gradient(135deg, var(--primary), #0056b3);
  color: white;
  padding: 1.5rem;
  margin: 0;
  position: relative;
}

.course-title {
  color: white !important;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.course-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.course-duration {
  background: rgba(13, 110, 253, 0.05);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

.course-features {
  background: #f8f9ff;
  border-left: 4px solid var(--primary);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

.course-features strong {
  color: var(--primary);
}

.course-outcomes {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.03), rgba(13, 110, 253, 0.08));
  padding: 1rem;
  border-radius: 12px;
  margin: 1rem 0;
}

.course-outcomes strong {
  color: var(--primary);
}

.course-btn {
  background: var(--primary);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.2);
  transition: all 0.3s ease;
}

.course-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13, 110, 253, 0.3);
}

/* Ensure equal height cards */
.course-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-card .card-body > *:last-child {
  margin-top: auto;
}

/* Equal height row for course cards */
.row.g-4 {
  display: flex;
  flex-wrap: wrap;
}

.row.g-4 > [class*="col-"] {
  display: flex;
}

/* Ensure headings are aligned at the same level */
.welcome-section h2,
.about-courses-section h2 {
  margin-top: 0;
  padding-top: 0;
}

/* Scroll reveal */
[data-reveal]{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed{
  opacity:1;
  transform: none;
}

/* Mobile fallback - ensure content is visible on mobile devices */
@media (max-width: 767.98px) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile-optimized course modals */
@media (max-width: 767.98px) {
  .modal-body .mb-4 {
    margin-bottom: 1rem !important;
  }
  
  .modal-body ul {
    font-size: 0.85rem;
  }
  
  .modal-body .bg-light {
    padding: 0.75rem !important;
  }
  
  .modal-body .row.g-3 {
    gap: 0.5rem !important;
  }
  
  .modal-body .d-flex {
    margin-bottom: 0.5rem;
  }
  
  .modal-body .small {
    font-size: 0.75rem !important;
  }
  
  .modal-body h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem !important;
  }
  
  .modal-body p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem !important;
  }
}

/* Modal height optimization for mobile */
@media (max-width: 767.98px) {
  .modal-dialog {
    max-height: 90vh;
    margin: 1rem auto;
  }
  
  .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }
  
  .modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
  }
  
  .modal-body .mb-4 {
    margin-bottom: 0.75rem !important;
  }
  
  .modal-body ul {
    font-size: 0.8rem;
    margin-bottom: 0.75rem !important;
  }
  
  .modal-body .bg-light {
    padding: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .modal-body h6 {
    font-size: 0.85rem;
    margin-bottom: 0.4rem !important;
  }
  
  .modal-body p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem !important;
    line-height: 1.3;
  }
  
  .modal-body li {
    margin-bottom: 0.25rem;
  }
}

