@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* COURSE PAGE SPECIFIC STYLES */

.course-hero {
   height: 60vh;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--white);
   text-align: center;
   background-size: cover;
   background-position: center;
   background-attachment: fixed;
   position: relative;
   padding: 0 20px;
}

.course-hero::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(59, 130, 246, 0.75) 100%);
   z-index: 1;
}

.course-hero>* {
   position: relative;
   z-index: 2;
   animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
   from {
      opacity: 0;
      transform: translateY(-20px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.course-hero h1 {
   font-size: 3.5rem;
   font-weight: 800;
   letter-spacing: -0.02em;
   text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* COURSE INFO LAYOUT */
.course-info {
   display: flex;
   justify-content: center;
   gap: 50px;
   padding: 80px 5%;
   max-width: 1400px;
   margin: 0 auto;
   flex-wrap: wrap;
   align-items: flex-start;
}

/* LEFT CONTENT (Details) */
.course-details {
   flex: 1;
   min-width: 320px;
   max-width: 800px;
   background: var(--white);
   padding: 40px;
   border-radius: 16px;
   box-shadow: var(--shadow-md);
   border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-details h2 {
   font-size: 2rem;
   color: var(--primary);
   margin-bottom: 25px;
   font-weight: 700;
   position: relative;
   padding-bottom: 10px;
}

.course-details h2::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 60px;
   height: 4px;
   background: var(--secondary);
   border-radius: 2px;
}

.course-details p {
   color: var(--text-dark);
   line-height: 1.8;
   font-size: 1.05rem;
}

/* TOOLS COVERED TAGS */
#course-tools span {
   display: inline-block;
   background: #eff6ff;
   color: var(--accent);
   padding: 8px 16px;
   border-radius: 30px;
   font-size: 0.95rem;
   font-weight: 600;
   margin-right: 10px;
   margin-bottom: 10px;
   border: 1px solid #bfdbfe;
   transition: all 0.2s ease;
}

#course-tools span:hover {
   background: var(--secondary);
   color: var(--white);
   border-color: var(--secondary);
}

/* COURSE CONTENT BLOCK */
#course-content-box {
   margin-top: 25px;
   padding: 30px;
   background: #f8fafc;
   border-left: 5px solid var(--secondary);
   border-radius: 0 12px 12px 0;
   box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

#course-content-text {
   font-family: inherit;
   /* Switch away from monospace for premium feel */
   color: var(--text-dark);
   font-size: 1.05rem;
   line-height: 1.8;
}

/* RIGHT CARD (Enrollment) */
.course-enroll-card {
   background: var(--white);
   padding: 40px;
   width: 350px;
   border-radius: 16px;
   box-shadow: var(--shadow-lg);
   text-align: center;
   position: sticky;
   top: 100px;
   border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-enroll-card h3 {
   font-size: 1.5rem;
   color: var(--primary);
   margin-bottom: 20px;
   font-weight: 700;
}

.course-enroll-card .price {
   font-size: 2.5rem;
   font-weight: 800;
   color: var(--secondary);
   margin: 25px 0;
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 10px;
}

.course-enroll-card .meta-item {
   display: flex;
   justify-content: space-between;
   padding: 15px 0;
   border-bottom: 1px solid #e2e8f0;
   color: var(--text-light);
   font-weight: 500;
}

.course-enroll-card .meta-item strong {
   color: var(--primary);
}

.enroll-btn {
   display: block;
   background: linear-gradient(135deg, var(--secondary), var(--accent));
   color: var(--white);
   padding: 16px;
   text-decoration: none;
   border-radius: 50px;
   margin-top: 30px;
   font-weight: 700;
   font-size: 1.1rem;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   box-shadow: 0 10px 20px -10px var(--accent);
}

.enroll-btn:hover {
   transform: translateY(-3px);
   box-shadow: 0 15px 25px -10px var(--accent);
}

/* RESPONSIVE */
@media (max-width: 900px) {
   .course-info {
      flex-direction: column;
      align-items: center;
   }

   .course-enroll-card {
      position: static;
      width: 100%;
      max-width: 500px;
   }

   .course-hero h1 {
      font-size: 2.5rem;
   }
}