/* Main Content Container */
.content-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
}
.program-container{
  max-width: 900px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /*background-color: #ffffff;*/
  background-color: aqua;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  /*
  border: 2px solid #59d151;
  border-left: 10px solid #af954c;
  */
 margin:0;
 padding:0;
}
.program-description {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #2c3e50; 
  background: linear-gradient(90deg, #e0f7fa, #f1f8e9); 
  padding: 12px 20px;
  border-left: 4px solid #2785ae; 
  
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
  text-align: center;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-description:hover {
  transform: scale(1.05); 
  box-shadow: 0 6px 12px rgba(0,0,0,0.2); 
  color: #16a085; 
}
.program-output{
  display: block;
  margin: 15px 0 10px;
  padding-left: 10px;
  border-left: 4px solid #c709e9;
  
  font-size: 1rem;
  transition: all 0.3s ease;
}
.program-explanation{
  display: block;
  margin: 15px 0 10px;
  
  border-left: 4px solid #a32f67;
  
  font-size: 1rem;
  transition: all 0.3s ease;

}

/* Headings */
.heading1 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
  padding: 12px;
  background: linear-gradient(90deg, #4CAF50, #2ecc71);
  border-radius: 6px;
  text-align: center;
  color: #fff;
}

.heading2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #34495e;
  margin: 20px 0 10px;
  padding-left: 10px;
  background-color: #eafaf1;
  border-left: 4px solid #4CAF50;
}

.heading3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #34495e;
  margin: 15px 0 10px;
  padding: 6px;
  background-color: #f9eaf9; 
  border-left: 4px solid #ef19d2;
}

/* Paragraph */
.paragraph {
  text-indent: 100px;
  font-size: 1rem;
  color: #555;
  margin: 15px 0;
  line-height: 1.6;
  text-align: justify;
}

/* Tables */
.tablebox table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.tablebox th {
  background-color: #4CAF50;
  color: #fff;
  padding: 12px;
  text-align: center;
}

.tablebox td {
  border: 1px solid #ddd;
  padding: 10px;
}

.tablebox tr:nth-child(even) {
  background-color: #f9f9f9;
}

.tablebox tr:hover {
  background-color: #f1f1f1;
}

/* Lists */
.orderedlist, .unorderedlist {
  margin: 15px 0;
  padding-left: 25px;
  font-size:1rem;
  line-height: 1.6;
}

.orderedlist li, .unorderedlist li {
  margin-bottom: 6px;
}

/* Image Box */
.imagebox {
  text-align: center;
  margin: 20px 0;
}

.imagebox img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Text Box */
.textbox {
  display: block;
  margin: 15px 0 10px;
  border-left: 10px solid #a32f67;
padding-left: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.textbox:focus {
  border-color: #4CAF50;
  outline: none;
  background: #f0fff0;
}

/* Code Block */
.code-block {
  position: relative;
  margin: 10px auto 20px; /* reduced top margin */
  width: 100%;
}

.code-block pre {
  background: white;
  color: black;
  padding: 8px; /* reduced padding */
  border: 5px solid #370cd1;
  border-top:40px solid #370cd1;
  
  overflow-x: auto;
  font-size: 0.95rem;
  margin: 5px 0; /* reduced margin around pre */
}

.code-block code {
  font-family: "Consolas", "Fira Code", monospace;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 12px;
  font-size: 12px;
  background: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.copy-btn:hover {
  background: #45a049;
}
.videobox {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.videobox iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .content-container {
    padding: 15px;
  }
  .heading1, .heading2, .heading3 {
    width: 100%;
    text-align: center;
  }
  .tablebox table {
    font-size: 14px;
  }
}