/* দারুস সুন্নাহ একাডেমি — v1.12 সংশোধন (রিভিউ ফিডব্যাক)
 * tailwind.css-এর পরে লোড হয়। এখানে শুধু নির্দিষ্ট সংশোধন; মূল ডিজাইন tailwind.css-এ।
 */

/* ---------- পড়ার উপযোগী রঙ: সহায়ক ধূসর লেখা একটু গাঢ় ---------- */
:root { --color-text-soft: #574334; }
.placeholder\:text-text-soft::placeholder { color: #7a6553; }

/* ---------- হিরো: ১০০০px-এর নিচে এক কলাম (উপরে লেখা, নিচে ছবি) ---------- */
@media (max-width: 1000px) {
  .dsa-hero-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 40px !important; }
  .dsa-hero-grid > :last-child { width: 100%; max-width: 580px; justify-self: center; }
}

/* হিরোর দুটি বাটন সমান চওড়া */
.dsa-hero-actions {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch !important;
  max-width: 540px;
}
.dsa-hero-actions > a,
.dsa-hero-actions > button { width: 100%; min-width: 0 !important; justify-content: center; text-align: center; padding-left: 14px; padding-right: 14px; }
@media (max-width: 520px) {
  .dsa-hero-actions { grid-template-columns: minmax(0, 1fr); max-width: none; }
}

/* ---------- ভর্তির অবস্থার কার্ড (পোর্টালের CMS → home.js) ---------- */
.dsa-adm-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px;
  padding: 22px 28px; border-radius: 18px; border: 1px solid #a6d8b8; background: #f1f8f3;
  box-shadow: 0 14px 32px #2e20170f;
}
.dsa-adm-card.is-upcoming { border-color: #e4dcc1; background: #faf7ec; }
.dsa-adm-card.is-closed { border-color: #f0d9a8; background: #fff8e8; }
.dsa-adm-card__title { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1.6; font-weight: 600; color: #2e2017; }
.dsa-adm-card__text { margin-top: 4px; font-size: 16px; line-height: 1.75; color: #4b3a2c; }
.dsa-adm-card__dot { position: relative; display: inline-flex; width: 11px; height: 11px; flex: none; border-radius: 50%; background: #2f8f5b; }
.dsa-adm-card.is-upcoming .dsa-adm-card__dot { background: #a67537; }
.dsa-adm-card.is-closed .dsa-adm-card__dot { background: #c2620f; }
.dsa-adm-card__btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  padding: 0 22px; border-radius: 12px; background: #984710; color: #fffaf3; font-size: 17px; font-weight: 600;
}
.dsa-adm-card__btn:hover { background: #75360c; }
[data-admission-card] { margin-bottom: 52px !important; }
@media (max-width: 760px) {
  .dsa-adm-card { flex-direction: column; align-items: stretch; padding: 20px 20px; }
  .dsa-adm-card__title { font-size: 18px; }
  .dsa-adm-card__btn { width: 100%; }
  [data-admission-card] { margin-bottom: 36px !important; }
}

/* ---------- হোমপেজ: ভর্তির মূল তথ্য বক্স ---------- */
.dsa-adm-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin-bottom: 26px; padding: 22px; border-radius: 18px;
  border: 1px solid #e3c99c; background: #fff7e8; box-shadow: 0 14px 30px #2e20170d;
}
.dsa-adm-fact { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: #fffdf8; border: 1px solid #efe2c8; }
.dsa-adm-fact span { font-size: 15px; line-height: 1.6; color: #6b5440; }
.dsa-adm-fact strong { font-size: 22px; line-height: 1.5; font-weight: 700; color: #75360c; }
.dsa-adm-note { grid-column: 1 / -1; font-size: 17px; line-height: 1.8; color: #3d2b20; }
@media (max-width: 1000px) { .dsa-adm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .dsa-adm-facts { gap: 10px; padding: 14px; }
  .dsa-adm-fact { padding: 12px; }
  .dsa-adm-fact span { font-size: 14px; }
  .dsa-adm-fact strong { font-size: 18px; }
}

/* ---------- যোগাযোগ ফর্ম ---------- */
.dsa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.dsa-select { appearance: none; -webkit-appearance: none; padding-right: 44px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23984710' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.dsa-select:invalid, .dsa-select option[value=""] { color: #7a6553; }
.dsa-form-result { margin-top: 19px; padding: 16px 18px; border-radius: 12px; border: 1px solid #a6d8b8; background: #f1f8f3; }
.dsa-form-result.is-error { border-color: #f6c8c3; background: #fff5f3; }
.dsa-form-result-title { font-size: 18px; font-weight: 600; color: #1f6b43; }
.dsa-form-result.is-error .dsa-form-result-title { color: #b42318; }
.dsa-form-result-text { margin-top: 4px; font-size: 16px; line-height: 1.8; color: #3d2b20; }
.dsa-form-result-text a { color: #984710; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
[data-send-btn][disabled] { opacity: .65; cursor: wait; }

/* ---------- ম্যাপ ---------- */
.dsa-map { position: relative; width: 100%; max-width: 100%; height: 300px; overflow: hidden; border-radius: 16px; border: 2px solid #ddcfb8; background: #f4ecdd; }
@media (max-width: 520px) { .dsa-map { height: 260px; } }
.dsa-contact-social a { overflow-wrap: anywhere; }
.dsa-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dsa-contact-social { margin-top: 2px; }

/* ---------- ফুটার: ফেসবুক / হোয়াটসঅ্যাপ ---------- */
.dsa-footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #fffaf31a; }
.dsa-footer-social a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px; border-radius: 11px;
  border: 1px solid #fffaf340; color: #fffaf3; font-size: 16px; font-weight: 500;
}
.dsa-footer-social a:hover { background: #fffaf314; border-color: #e7c18f; }
.dsa-footer-social svg { width: 20px; height: 20px; flex: none; color: #e7c18f; }

/* ---------- মোবাইলের নিচের দ্রুত বাটন (কল / হোয়াটসঅ্যাপ) ---------- */
@media (max-width: 760px) {
  .dsa-qa-3 { grid-template-columns: 1fr .85fr 1.2fr !important; gap: 7px !important; }
  .dsa-qa-3 > a { font-size: 15px !important; gap: 6px !important; padding: 0 4px; white-space: nowrap; min-width: 0; }
  .dsa-qa-3 > a svg { width: 19px !important; height: 19px !important; }
  .dsa-qa-wa {
    display: flex; min-height: 53px; align-items: center; justify-content: center; gap: 7px; border-radius: 10px;
    border: 1px solid #1f8f4e; background: #1f8f4e; color: #fff; font-size: 15px; font-weight: 600;
  }
  .dsa-qa-wa svg { width: 21px; height: 21px; flex: none; }
}
@media (min-width: 761px) { .dsa-qa-wa { display: none; } }

/* ---------- মোবাইলে ছোট লেখা পড়ার উপযোগী (কমপক্ষে ১৪px) ---------- */
@media (max-width: 760px) {
  .identity-kicker { font-size: 14px !important; letter-spacing: .2px !important; }
  .text-\[\#8b712d\] { color: #6f561d !important; }
}
.text-\[\#8b712d\] { color: #765c1f; }
@media (min-width: 521px) { .dsa-hero-actions > a, .dsa-hero-actions > button { white-space: nowrap; gap: 12px !important; } }

/* ---------- ফি পাঠানোর নম্বর + বাংলা QR (DS.ui.paymentBox) ---------- */
.dsa-pay { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px 28px; align-items: start;
  padding: 22px 24px; border-radius: 18px; border: 1px solid #e3c99c; background: #fff7e8; color: #2e2017; font-size: 16px; line-height: 1.75; }
.dsa-pay.is-compact { padding: 16px 18px; grid-template-columns: minmax(0, 1fr) 210px; gap: 16px 20px; }
.dsa-pay-amount { margin-bottom: 8px; font-size: 18px; }
.dsa-pay-amount strong { color: #75360c; }
.dsa-pay-h { margin: 10px 0 8px; font-size: 15px; font-weight: 700; letter-spacing: .2px; color: #75360c; }
.dsa-pay-h:first-child { margin-top: 0; }
.dsa-pay-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dsa-pay-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid #efe2c8; background: #fffdf8; }
.dsa-pay-method { font-weight: 700; font-size: 17px; }
.dsa-pay-type { font-size: 14.5px; color: #5c4634; }
.dsa-pay-num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; font-weight: 700; letter-spacing: .4px; color: #2e2017; white-space: nowrap; }
.dsa-pay-copy { font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; padding: 7px 10px; border-radius: 8px; border: 1px solid #d8c8ab; background: #fff; color: #984710; cursor: pointer; }
.dsa-pay-copy:hover { border-color: #984710; }
.dsa-pay-bank { display: grid; gap: 6px; margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid #efe2c8; background: #fffdf8; }
.dsa-pay-bankrow { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 2px 12px; align-items: center; }
.dsa-pay-bankrow dt { font-size: 14.5px; color: #5c4634; }
.dsa-pay-bankrow dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.dsa-pay-note { margin-top: 12px; font-size: 15px; color: #4b3a2c; }
.dsa-pay-qr { margin: 0; text-align: center; }
.dsa-pay-qr img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #e3d5bd; background: #fff; }
.dsa-pay-qr figcaption { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: #4b3a2c; }
.dsa-pay-dl { display: inline-flex; margin-top: 8px; padding: 8px 14px; border-radius: 10px; border: 1px solid #984710; color: #984710; font-size: 15px; font-weight: 600; }
.dsa-pay-dl:hover { background: #984710; color: #fffaf3; }
@media (max-width: 760px) {
  .dsa-pay, .dsa-pay.is-compact { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .dsa-pay-qr { max-width: 280px; margin: 0 auto; }
  .dsa-pay-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dsa-pay-method { grid-column: 1; }
  .dsa-pay-type { grid-column: 1; grid-row: 2; }
  .dsa-pay-num { grid-column: 1; grid-row: 3; }
  .dsa-pay-copy { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .dsa-pay-bankrow { grid-template-columns: minmax(0, 1fr); }
}
