/* Course Template - Modern Paper Style */

/* Hero Header Section */
.course-hero {
  position: relative;
  margin-top: var(--navbar-height, 70px);
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  background: var(--paper-gray-900);
}

.course-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.course-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.course-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.course-hero-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin: var(--space-xl);
  max-width: 900px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.course-badge-hero {
  width: 120px;
  height: 120px;
  background: var(--paper-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
}

.course-badge-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.course-title-info h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.course-title-info .course-code {
  display: inline-block;
  background: var(--education-primary);
  color: var(--paper-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
}

.course-title-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e5e7eb;
  font-family: var(--font-body);
  font-weight: 400;
}

/* Course Info Cards */
.course-details {
  padding: var(--space-xl) 0;
  background: var(--paper-gray-50);
}

.course-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.info-card {
  background: var(--paper-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--paper-gray-200);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.info-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(30, 64, 175, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--education-primary);
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper-gray-900);
  margin: 0;
  letter-spacing: -0.01em;
}

.info-card p {
  color: var(--paper-gray-700);
  margin: 0;
  line-height: 1.5;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* Sidebar */
.course-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-card {
  background: var(--paper-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--paper-gray-200);
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--paper-gray-900);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.sidebar-card p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--paper-gray-700);
}

.highlight-card {
  background: linear-gradient(135deg, var(--education-primary), var(--education-secondary));
  color: var(--paper-white);
  text-align: center;
}

.highlight-card h3 {
  color: var(--paper-white);
  font-weight: 600;
}

.highlight-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.info-card p {
  color: var(--paper-gray-700);
  margin: 0;
  line-height: 1.5;
}

/* Course Content Section */
.course-content {
  padding: var(--space-xl) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

.main-content {
  background: var(--paper-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--paper-gray-200);
}

.content-section {
  margin-bottom: var(--space-xl);
}

.content-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--paper-gray-900);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--education-primary);
  display: inline-block;
  letter-spacing: -0.025em;
}

.content-section {
  margin-bottom: var(--space-xl);
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section p {
  color: var(--paper-gray-700);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
}

.content-section ul {
  list-style: none;
  padding: 0;
}

.content-section li {
  color: var(--paper-gray-700);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
}

.content-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--education-secondary);
  font-weight: bold;
}

.module-content {
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--paper-gray-50);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--education-primary);
}

.module-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--paper-gray-900);
  margin-bottom: var(--space-md);
  letter-spacing: -0.015em;
}

.content-section p {
  color: var(--paper-gray-700);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.content-section ul {
  list-style: none;
  padding: 0;
}

.content-section li {
  color: var(--paper-gray-700);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: var(--space-lg);
}

.content-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--education-secondary);
  font-weight: bold;
}

/* Sidebar */
.course-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-card {
  background: var(--paper-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--paper-gray-200);
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--paper-gray-900);
  margin-bottom: var(--space-md);
}

.highlight-card {
  background: linear-gradient(135deg, var(--education-primary), var(--education-secondary));
  color: var(--paper-white);
  text-align: center;
}

.highlight-card h3 {
  color: var(--paper-white);
}

.btn-enroll {
  background: var(--paper-white);
  color: var(--education-primary);
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-enroll:hover {
  background: var(--paper-gray-100);
  transform: translateY(-1px);
}

/* Registration Form */
.registration-section {
  background: var(--paper-gray-900);
  color: var(--paper-white);
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
}

.registration-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.registration-info h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: #ffffff;
  letter-spacing: -0.025em;
}

.registration-info p {
  font-size: 1rem;
  color: #e5e7eb;
  line-height: 1.6;
  font-family: var(--font-body);
}

.registration-form {
  background: var(--paper-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  color: var(--paper-gray-700);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--paper-gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: var(--font-body);
}

.form-group input:focus {
  outline: none;
  border-color: var(--education-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.btn-submit {
  background: var(--education-primary);
  color: var(--paper-white);
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-family: var(--font-body);
}

.btn-submit:hover {
  background: var(--education-secondary);
  transform: translateY(-1px);
}

.btn-enroll {
  background: var(--paper-white);
  color: var(--education-primary);
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
}

.btn-enroll:hover {
  background: var(--paper-gray-100);
  transform: translateY(-1px);
}

.registration-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.registration-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.registration-info p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}

.registration-form {
  background: var(--paper-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  color: var(--paper-gray-700);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.form-group input {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--paper-gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--education-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.btn-submit {
  background: var(--education-primary);
  color: var(--paper-white);
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  background: var(--education-secondary);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .course-hero-info {
    grid-template-columns: 1fr;
    text-align: center;
    margin: var(--space-md);
    padding: var(--space-lg);
  }
  
  .course-badge-hero {
    justify-self: center;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .course-sidebar {
    order: -1;
  }
  
  .registration-container {
    grid-template-columns: 1fr;
  }
  
  .course-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .course-hero {
    height: 50vh;
    min-height: 350px;
  }
  
  .course-hero-info {
    margin: var(--space-sm);
    padding: var(--space-md);
  }
  
  .course-title-info h1 {
    font-size: 1.5rem;
  }
  
  .main-content,
  .registration-form {
    padding: var(--space-lg);
  }
}