*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}
.web-development{
    display:flex;
    flex-direction: column;
    padding:4em;
    /* width:100vw; */
    gap:2em;
    /* align-items: center; */
}

.web-development img{
    width: 100%;
    max-width: 50em;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

.article{
    display:flex;
    flex-direction: column;
}
.article:nth-child(2) b{
    font-size: large;
}
.course{
    display:flex;
    flex-direction: column;
    overflow-x: hidden;
    padding:2em;
    border-radius: 2%;
    border:1px solid rgb(55, 217, 37);
    background-color: rgb(223, 255, 217);
    
}
.chapter{
    display:flex;
    flex-direction: column;
}
.chapter b{
    font-size: larger;
}

.outline-card{
   width: 100% !important;
   max-width: 50em;
   font-size: smaller;
   padding:10px;
   border-radius:10px;
    border:1px solid rgb(90, 178, 251);
    background-color: rgba(150, 199, 239, 0.386);
    overflow-x: auto;
    word-wrap: break-word;
}
.outline-card-child{
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.outline-card-child img {
    width: 100%;
    max-width: 40em;
    height: auto;
}
.box-model-container {
      background-color: #ffc2c2; /* Light mint background */
    /* Dark green accent left border */
      border-radius: 4px;
      padding: 24px 32px;
      max-width: 800px;
      width: 100%;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    /* Heading Styling */
    .box-model-title {
      color: #731313; /* Dark green text */
      font-size: 1.25rem;
      font-weight: 700;
      margin-top: 0;
      margin-bottom: 12px;
    }

    /* Description Paragraph */
    .box-model-desc {
      color: #2c3e50; /* Deep gray/blue text color */
      font-size: 1.05rem;
      line-height: 1.5;
      margin-bottom: 16px;
    }

    /* List Styling */
    .box-model-list {
      list-style-type: none; /* Remove default bullets to use custom ones if needed, or keep standard spacing */
      padding-left: 20px;
      margin: 0;
    }

    .box-model-list li {
      color: #2c3e50;
      font-size: 1.05rem;
      line-height: 1.6;
      margin-bottom: 12px;
      position: relative;
    }

    /* Custom bullet point to match standard list alignment but with crisp rendering */
    .box-model-list li::before {
      content: "•";
      color: #2c3e50;
      font-weight: bold;
      display: inline-block;
      width: 1em;
      margin-left: -1em;
    }

    /* Strong tags for bolding the terms */
    .box-model-list strong {
      font-weight: 700;
      color: #1a252f; /* Slightly darker for distinct contrast */
    }
    .pdf{
        background-color: rgb(223, 255, 217);
        border:1px solid rgb(55, 217, 37);
        padding:1em;
        border-radius: 10px;
        width: 100%;
        max-width: 25em;
    }
    .span-text{
        background-color: rgba(255, 115, 115, 0.45);
        padding:3px;
        border-radius: 5px;
        font-weight: bold;
        color: darkred;
    }

    /* ===== Responsive Iframe Wrapper ===== */
    .video,
    .sub-chapter iframe,
    .chapter iframe {
        max-width: 100%;
    }
    iframe {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    /* ===== Inline-styled images: override fixed widths ===== */
    .sub-chapter img,
    .chapter > img {
        max-width: 100% !important;
        height: auto !important;
        width: auto;
    }

    /* ===== Side-by-side code/result flex containers ===== */
    .sub-chapter > div[style*="display: flex"] {
        flex-wrap: wrap;
    }

    /* ===== TABLET BREAKPOINT (≤992px) ===== */
    @media (max-width: 992px) {
        .web-development {
            padding: 2.5em;
        }
        .course {
            padding: 1.5em;
        }
    }

    /* ===== MOBILE BREAKPOINT (≤768px) ===== */
    @media (max-width: 768px) {
        .web-development {
            padding: 1.5em;
            gap: 1.5em;
        }
        .web-development img {
            border-radius: 12px;
        }
        .course {
            padding: 1em;
            border-radius: 8px;
        }
        .chapter b {
            font-size: medium;
        }
        .outline-card {
            padding: 8px;
            font-size: 0.85rem;
        }
        .box-model-container {
            padding: 16px 20px;
        }
        .box-model-title {
            font-size: 1.1rem;
        }
        .box-model-desc,
        .box-model-list li {
            font-size: 0.95rem;
        }
        .chapter-navigation {
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .chapter-navigation button {
            min-width: 100px;
            font-size: 0.9rem;
        }
        /* Stack side-by-side layouts vertically */
        .sub-chapter > div[style*="display: flex"] {
            flex-direction: column !important;
        }
        .outline-card-child img {
            max-width: 100%;
        }
        pre.outline-card {
            font-size: 0.8rem;
            white-space: pre-wrap;
            word-break: break-word;
        }
    }

    /* ===== SMALL MOBILE BREAKPOINT (≤480px) ===== */
    @media (max-width: 480px) {
        .web-development {
            padding: 1em;
            gap: 1em;
        }
        .web-development img {
            border-radius: 8px;
        }
        .course {
            padding: 0.75em;
        }
        .article h2 {
            font-size: 1.3rem;
        }
        .chapter b {
            font-size: 1rem;
        }
        .outline-card {
            padding: 6px;
            font-size: 0.8rem;
        }
        .box-model-container {
            padding: 12px 14px;
        }
        .box-model-title {
            font-size: 1rem;
        }
        .pdf {
            max-width: 100%;
        }
    }