/* Book detail page (book.php), phone design in the style of the home page. All inside @media (max-width: 768px): desktop unchanged. */
@media (max-width: 768px) {

  body .history-section {
    padding: 8px 0 24px;
  }

  /* cover: centred, soft shadow (width rules already in inner-content-ur.css) */
  body .history-section .col-md-6 .text-center {
    margin: 4px 0 20px;
  }

  /* text block becomes a white card like the home page article cards */
  body .history-section .text-box {
    background: #fff;
    border: 1px solid #e3ece6;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(21, 91, 44, 0.08);
    padding: 20px 18px 8px;
    text-align: center;
  }

  body .history-section .text-box h2 {
    font-size: 26px;
    line-height: 1.9;
    margin: 0 0 10px;
    color: #1b1b1b;
  }

  /* author chip, same as article pages */
  body .history-section .text-box strong.title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 5px 16px;
    background: #e3f1e7;
    color: #155b2c !important;
    border-radius: 999px;
    font-size: 17px !important;
    font-weight: 700;
  }
  body .history-section .text-box strong.title i {
    color: #155b2c !important;
  }

  body .history-section .text-box p {
    font-size: 19px;
    line-height: 2.1;
    text-align: right;
    color: #333;
    margin: 0 0 8px;
  }

  /* Read + Download side by side, full width, big tap area */
  body .history-section .btn-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 16px 0 14px !important;
  }
  body .history-section .btn-row .btn-style-1 {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    margin: 0 !important;
    padding: 8px 10px;
    float: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    border-radius: 12px !important;
    white-space: nowrap;
  }
  body .history-section .btn-row .btn-style-1 i {
    margin: 0 !important;
    font-size: 17px;
  }
  /* Read (2nd link): solid green. Download (1st link): white with green outline */
  body .history-section .btn-row .btn-style-1:nth-child(2) {
    background: #2f8f4e;
    border: 1px solid #2f8f4e;
    color: #fff;
  }
  body .history-section .btn-row .btn-style-1:nth-child(1) {
    background: #fff;
    border: 1px solid #b9d6c1;
    color: #2f6b45;
  }
  body .history-section .btn-row .btn-style-1:nth-child(1) i {
    color: #2f6b45 !important;
  }
  body .history-section .btn-row .btn-style-1:active {
    background: #cfe5d5;
    color: #155b2c;
  }
}

/* cover: the markup has an inline height:600px that stretched it; keep the real proportions */
@media (max-width: 768px) {
  body .history-section .col-md-6 .text-center img {
    height: auto !important;
    width: 68% !important;
    max-width: 260px;
    object-fit: contain;
  }
}

/* ---------- Desktop (768.01px and up): same theme as the phone page ---------- */
@media (min-width: 768.01px) {
  body .history-section {
    padding: 20px 0 50px;
  }
  /* cover left, card right, vertically centred */
  body .history-section .col-md-12 > .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  body .history-section .col-md-12 > .row::before,
  body .history-section .col-md-12 > .row::after {
    display: none;
  }
  body .history-section .col-md-6 .text-center {
    text-align: center;
  }
  body .history-section .col-md-6 .text-center img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 560px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    object-fit: contain;
  }
  body .history-section .text-box {
    background: #fff;
    border: 1px solid #e3ece6;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(21, 91, 44, 0.08);
    padding: 34px 32px 14px;
    text-align: center;
  }
  body .history-section .text-box h2 {
    font-size: 34px;
    line-height: 1.9;
    margin: 0 0 12px;
    color: #1b1b1b;
  }
  body .history-section .text-box strong.title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px 20px;
    background: #e3f1e7;
    color: #155b2c !important;
    border-radius: 999px;
    font-size: 20px !important;
    font-weight: 700;
  }
  body .history-section .text-box strong.title i {
    color: #155b2c !important;
  }
  body .history-section .text-box p {
    font-size: 20px;
    line-height: 2.1;
    text-align: right;
    color: #333;
  }
  body .history-section .btn-row {
    display: flex;
    gap: 12px;
    margin: 18px 0 18px !important;
  }
  body .history-section .btn-row .btn-style-1 {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    margin: 0 !important;
    padding: 8px 12px;
    float: none;
    font-size: 20px;
    font-weight: 700;
    border-radius: 12px !important;
    white-space: nowrap;
  }
  body .history-section .btn-row .btn-style-1 i {
    margin: 0 !important;
  }
  body .history-section .btn-row .btn-style-1:nth-child(2) {
    background: #2f8f4e;
    border: 1px solid #2f8f4e;
    color: #fff;
  }
  body .history-section .btn-row .btn-style-1:nth-child(1) {
    background: #fff;
    border: 1px solid #b9d6c1;
    color: #2f6b45;
  }
  body .history-section .btn-row .btn-style-1:nth-child(1) i {
    color: #2f6b45 !important;
  }
  body .history-section .btn-row .btn-style-1:hover {
    background: #e3f1e7;
    color: #155b2c;
  }
  body .history-section .btn-row .btn-style-1:nth-child(2):hover {
    background: #25773f;
    color: #fff;
  }
}
