:root {
    --color-principal: #7241ad;
}

body {
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    font-family: 'Inter', sans-serif;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

.hero-section {
    background: linear-gradient(rgba(149, 149, 251, 0.8), rgba(149, 149, 251, 0.8)), url('../images/back-couses.jpg');
    background-size: cover;
    padding: 100px 0;
    color: #fff;
}

.hero-section h1 {
    font-weight: 700;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.cc-navbar ul li a {
  color: #fff;
}

footer {
    margin-top: auto;
}

.btn-primary {
    background-color: var(--color-principal);
    border-color: var(--color-principal);
}

.btn-primary:hover {
    background-color: #5a348a;
    border-color: #5a348a;
}

.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.rounded-circle {
  overflow: hidden;
}

/* Estilos para la página de curso */
.course-header h1 {
    font-size: 2rem;
}

.video-player {
    position: relative;
}

.course-info .nav-tabs .nav-link {
    color: var(--color-principal);
}

.course-info .nav-tabs .nav-link.active {
    font-weight: bold;
}

.course-info .tab-content {
    background-color: #f9f9f9;
}

.related-courses .card {
    background-color: #fff;
}

.instructor-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

#filters .btn-outline-secondary:hover {
    background-color: var(--color-principal);
    color: #fff;
    border-color: var(--color-principal);
}

.btn-outline-primary {
    color: var(--color-principal);
    border-color: var(--color-principal);
}

.btn-outline-primary:hover {
    background-color: var(--color-principal);
    color: #fff;
    border-color: var(--color-principal);
}

.cc-sigle-course-tech {
  background: #fffae1;
  padding: 15px;
  margin: 15px 0px 15px 20px;
  border-radius: 8px;
}

 .cc-card-title {
    font-size: 16px;
    font-weight: 600;
 }

 #lessons-list .list-group-item {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    max-height: 100px; /* Set a default max-height */
}

.lesson-hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
}
 .lesson-fade-out {
    position: relative;
    overflow: hidden;
}

.lesson-fade-out::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0.7));
}
/* Estilos para la página de autor */
#featured-videos .card {
    height: 300px;
    overflow: hidden;
}

#featured-videos .card-img-top {
    height: 100%;
    object-fit: cover;
}

.search-container {
    position: relative;
}

.search-modal {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    z-index: 1000;
    color: #626262;
}
.search-modal h2 {
    text-align: left;
    padding: 15px 15px;
    font-size: 18px;
    font-weight: 600;
    color: #a6a6a6;
}


.cc-list-search li {
    list-style: none;
    text-align: left;
}

.cc-list-search li a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

.cc-list-search li a:hover {
    text-decoration: underline;
}

/* Spinner */
.cc-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.loader {
  border: 5px solid #f3f3f3; /* Color gris claro */
  border-top: 5px solid #007bff; /* Color del spinner */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Fin Spinner */

/* Blog */

.cc-blog-content {
  font-family: 'Inter', 'Source Sans 3', system-ui, -apple-system, sans-serif;
  margin: 0 auto; /* centra el bloque */
  font-size: 1.1rem;
  line-height: 1.75;
  color: #222;
  padding: 1.5rem;
}


.cc-blog-content h1,
.cc-blog-content h2,
.cc-blog-content h3,
.cc-blog-content h4 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.cc-blog-content h1 { font-size: 2rem; }
.cc-blog-content h2 { font-size: 1.6rem; }
.cc-blog-content h3 { font-size: 1.3rem; }


.cc-blog-content p {
  margin-bottom: 1.2rem;
}


.cc-blog-content ul,
.cc-blog-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
}


.cc-blog-content a {
  color: #0066cc;
  text-decoration: none;
}

.cc-blog-content a:hover {
  text-decoration: underline;
}


.cc-blog-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}


.cc-blog-content blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  color: #555;
  font-style: italic;
  margin: 1.5rem 0;
}


.cc-blog-content code {
  background-color: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* Fin BLog */

/* Book */
.cc-book-title {
  font-size: 14px;
  font-weight: 600;
}

.cc-book-author {
    font-size: 14px;
}

.cc-book-description {
  font-size: 12px;
}

.cc-book-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.cc-book-link {
  font-size: 14px;
  display: block;
}

/* BLOG */
.cc-blog-image {
    width: 100%;
    height: 30em;
    object-fit: cover;
    object-position: center;
}