.banner {
    position: relative;
    text-align: center;
    color: white;
    padding: 10px 20px;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 5px;
    width: 100%;
}

.banner-text h1 {
    margin: 0;
    font-size: 2rem;
}




/* Console Container */
.console {
    background-color: #1e1e1e;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
  }
  
  /* Console Header */
  .console-header {
    background-color: #2d2d2d;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    border-bottom: 1px solid #444;
  }
  
  .console-title {
    font-family: Arial, sans-serif;
  }
  
  /* Console Body */
  .console-body {
    padding: 15px;
    font-size: 14px;
    white-space: pre-wrap;
    color: #d4d4d4;
    overflow-x: auto;
  }
  
  /* Syntax Highlighting */
  .keyword {
    color: #569cd6; /* Keywords like CREATE, USE */
    font-weight: bold;
  }
  
  .identifier {
    color: #b5cea8; /* Identifiers like database or table names */
  }
  
  .field {
    color: #9cdcfe; /* Field names */
  }
  
  .datatype {
    color: #c586c0; /* Data types like INT, VARCHAR */
  }
  
 
  
/* Main Layout */

main {
    /* display: flex; */
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

/* Programs Section */
.programs {
    flex: 2;
    margin-top: 10px;
}

.programs h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333;
}

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

.programs ul li {
    margin-bottom: 5px;
}

/* Courses Section */
.courses {
    flex: 1;
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
}

.courses h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333;
}

.course-category {
    margin-bottom: 20px;
}

.course-category h3, 
.course-category p {
    margin: 5px 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tags span {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.tags span:hover {
    background-color: var(--bar-color);
}

.tags a {
    text-decoration: none;
    color: #fff;
}

#active {
    background-color: var(--secondary-color);
}

/* Learning Module Styles */
.learning-module {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.learning-module:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.learning-section-header {
    margin-bottom: 20px;
    /* border-bottom: 2px solid #4a90e2; */
    padding-bottom: 10px;
}

.learning-title {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
}

.learning-module-title{
    color: #2980b9;
    font-size: 2rem;
    margin-bottom: 10px;
}

.learning-subtitle {
    color: #34495e;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.learning-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.learning-media-column {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.learning-image {
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.learning-exercise {
    background-color: #f0f4f8;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}

.learning-exercise .learning-description {
    color: #2c3e50;
    font-weight: 500;
}

.learning-output-leftSpace {
    color: #2980b9;
    font-weight: bold;
    margin-left: 15px;
    
}

.learning-showMeResult {
    text-align: center;
    margin-top: 20px;
}

.learning-showMeResult a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.learning-showMeResult a:hover {
    color: #2980b9;
}

.learning-console-input {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
   
}


.responsive-iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Mermaid Diagram Responsiveness */
pre.mermaid {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.list-style4 a {
    text-decoration: none;
    color: #2c3e50;
    cursor: pointer !important;
   }

/* Responsive Design */
@media (max-width: 992px) {
    main {
        flex-direction: column;
        padding: 10px;
    }

    .programs,
    .courses {
        flex: 1;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .banner-text h1 {
        font-size: 1.8rem;
    }

    .programs h2, 
    .courses h2 {
        font-size: 1.3rem;
    }

    .tags span {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    iframe {
        width: 100%;
        height: auto;
    }
    .learning-section-title {
        font-size: 1rem;
      }
      .learning-subtitle {
        font-size: 1.2rem;
      }
      .learning-console-code-input {
        padding: 10px;
      }
    
}

@media (max-width: 480px) {
    .banner-text {
        padding: 10px;
    }

    .banner-text h1 {
        font-size: 1.5rem;
    }

    .programs h2, 
    .courses h2 {
        font-size: 1.1rem;
    }

    .tags {
        gap: 3px;
    }

    .tags span {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .learning-section-title {
        font-size: 0.9rem;
      }
      .learning-subtitle {
        font-size: 1.2rem;
      }
      .learning-console-code-input {
        font-size: 0.8rem;
      }
}
