.bg {
    position: relative;
  background: url("../img/descrip.jpg") center center / cover no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
}

/* Overlay to control opacity */
.bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45); /* Adjust opacity here (0.1 – 0.6) */
    z-index: 1;
}

/* Text inside remains above the overlay */
.bg * {
    position: relative;
    z-index: 2;
    
}
.bg h1{
color:#1E90FF;
}

/*CSS for detailed desc*/
.domain-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.domain-box {
   background: linear-gradient(180deg, #000000 0%, #0b132b 100%);
  width: 70%;
  max-width: 1200px;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
}

.domain-box h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #FF6F00;
}

.domain-box .subtitle {
  font-size: 18px;
  margin-bottom: 20px;
  color: white;
  font-weight:bold;
}

.domain-list {
  list-style-type: none;
  padding: 0;
  text-align: left;
  margin: 0 auto;
  max-width: 1000px;
}

.domain-list li {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.5;
  color:white;
}

.domain-list strong {
  color: #FF6F00;
}

/* ===============================
   DOMAIN ROADMAP – VERY SMALL SCREENS (≤360px)
   =============================== */
@media (max-width: 560px) {

  /* Background section */
  .bg {
    padding: 30px 10px;
  }

  .bg h1 {
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
    padding: 0 6px;
    margin-bottom: 20px;
  }

  /* Domain section wrapper */
  .domain-section {
    padding: 20px 8px;
  }

  /* Main content box */
  .domain-box {
    width: 100%;
    padding: 20px 14px;
    border-radius: 12px;
  }

  /* Heading */
  .domain-box h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  /* Subtitle */
  .domain-box .subtitle {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
    text-align:justify;
  }

  /* List container */
  .domain-list {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }

  /* List items */
  .domain-list li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align:justify;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .domain-list strong {
    font-size: 14px;
  }

  /* Curriculum section spacing */
  .curriculum-section {
    padding: 20px 10px;
  }

  .curriculum-section h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 16px;
  }

  /* Curriculum cards stack */
  .curriculum-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .curriculum-card {
    width: 100%;
    min-height: auto;
    border-radius: 12px;
  }

  .curriculum-card-content {
    padding: 18px 14px;
  }

  .curriculum-card-content h3 {
    font-size: 18px;
  }

  .curriculum-card-content ul li {
    font-size: 13px;
    line-height: 1.4;
  }

  /* Download button */
  .download-btn {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 18px;
    display: inline-block;
  }
}
/* ===============================
   DOMAIN HEADING – 560px to 900px
   =============================== */
@media (min-width: 561px) and (max-width: 900px) {

  .bg h1 {
    font-size: 32px;          /* 👈 better visual weight */
    line-height: 1.25;
    text-align: center;

    max-width: 90%;
    margin: 0 auto 28px;

    padding: 0 12px;
    letter-spacing: 0.5px;
  }
  
  .domain-list li {

    line-height: 1.5;
    margin-bottom: 12px;
    text-align:justify;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

