/* ===========================================
   LAYOUT & GRID STYLES
   =========================================== */

.rowCustum {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0 10px;
}

.colWidth {
  margin-top: 15px;
  margin-right: 10px;
  max-width: 300px;
  flex: 0 0 auto;
}

/* ===========================================
   POST BOX STYLES
   =========================================== */

.post-box {
  display: flex;
  flex-direction: column;
  /*justify-content: space-between;*/
  height: 100%;
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-box img {
  object-fit: fill;
  width: 100%;
  max-height: 500px;
  /*display: block;*/
}

/* ===========================================
   TEXT CONTENT STYLES
   =========================================== */

.text-box {
  flex-grow: 1;
  /*padding: 15px;*/
  overflow: hidden;
}

.text-box h3 {
  font-size: 24px !important;
  /*margin-bottom: 10px;*/
  text-wrap: wrap;
  line-height: 1.3;
  height: 62px;
  color: #333;
  text-align: center!important;
}

.text-box p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
}

.read-post {
  font-size: 14px;
  line-height: 1.5;
}

/* ===========================================
   BUTTON STYLES
   =========================================== */

.post-box a.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding: 10px;
  border-radius: 0 0 8px 8px;
  transition: background-color 0.3s ease;
}

/* ===========================================
   BOOKS SPECIFIC STYLES
   =========================================== */

.bookscols {
  height: 600px;
}

.bookscols2 {
  height: 750px;
}

.booksimg {
  margin-top: 10px;
  height: 175px;
  width: 145px !important;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
  rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  object-fit: cover;
}

.frame {
  overflow: hidden;
  border-radius: 8px;
}

/* Books specific text styling */
.bookscols .text-box h3,
.bookscols2 .text-box h3 {
  white-space: nowrap;
  font-size: 16px !important;
  text-align: center;
  margin: 10px auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================================
   COMMENTS STYLES
   =========================================== */

.cp-comments li .children li {
  display: block;
  padding: 15px;
  border: 1px solid #155b2c;
  border-radius: 40px;
  margin-bottom: 15px;
  background: #f9f9f9;
  transition: background-color 0.3s ease;
}

.cp-comments li .children li:hover {
  background: #f0f8f2;
}

/* ===========================================
   UTILITY STYLES
   =========================================== */

.no-data-message {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: #666;
  background: #f9f9f9;
  border-radius: 8px;
  margin: 20px 0;
}

/* ===========================================
   RESPONSIVE DESIGN - MOBILE STYLES
   =========================================== */

@media (max-width: 768px) {
  .colWidth {
    width: 100%;
    margin-top: 10px;
    margin-right: 0;
    max-width: none;
  }

  .rowCustum {
    gap: 10px;
    padding: 0 5px;
  }

  .post-box {
    margin-bottom: 20px;
  }

  .text-box {
    padding: 12px;
  }

  .text-box h3 {
    font-size: 20px !important;
  }

  .post-box img {
    max-height: 300px;
  }

  .bookscols,
  .bookscols2 {
    height: auto;
  }

  .booksimg {
    width: 120px !important;
    height: 150px;
  }

  .bookscols .text-box h3,
  .bookscols2 .text-box h3 {
    font-size: 14px !important;
    white-space: normal;
    text-align: center;
  }

  .cp-comments li .children li {
    padding: 12px;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .text-box h3 {
    font-size: 18px !important;
  }

  .text-box p {
    font-size: 13px;
  }

  .booksimg {
    width: 100px !important;
    height: 130px;
  }

  .no-data-message {
    padding: 30px 15px;
    font-size: 14px;
  }
}

/* ===========================================
   FONT STYLES (COMMENTED OUT)
   =========================================== */

/*
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: url('css/fonts/Jameel\ Noori\ Nastaleeq\ 2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Jameel Noori Nastaleeq', Arial, sans-serif;
}
*/
.download-btn a,
.download-btn button {
  border-radius: 5px;
  color: #fff;
  width:100%
}

#nav li a:active {
  background: #f0f8f2;
}


@media (max-width: 480px) {
  .download-btn a,
  .download-btn button {

    display: block;

    min-height: 38px;
    padding: 12px 20px;
    margin: 5px auto;
    text-align: center;

  }


  .post-box a.read-post {
    float: none;
  }

  .btn-row {
    gap: 30px !important;
  }
}

.mazeed h3 {
  text-align: center;
  margin-top: 20px;
}

.mazeed h3 a {
  border: 1px solid #3ea659 !important;
  border-radius: 5px !important;
  padding: 8px 16px;
  display: inline-block;
  text-decoration: none;
  color: #3ea659;
}

