/* Styles for features added by the backend. Kept separate so the original style.css is untouched. */

/* Announcement banner */
.dn-announce { font-size: 15px; padding: 8px 40px 8px 12px; text-align: center; position: relative; z-index: 1050; line-height: 1.4; }
.dn-announce-warning { background: #ffc107; color: #222; }
.dn-announce-info { background: #0cc0df; color: #fff; }
.dn-announce-success { background: #198754; color: #fff; }
.dn-announce-danger { background: #c60808; color: #fff; }
.dn-announce-dark { background: #111; color: #fff; }
.dn-announce-link { color: inherit; font-weight: 700; text-decoration: underline; }
.dn-announce-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 22px; color: inherit; line-height: 1; cursor: pointer; }

/* Contact form additions */
.dn-form-result { display: none; margin-top: 12px; font-size: 15px; }
.dn-form-alert { font-size: 15px; }
.dn-consent { font-size: 14px; line-height: 1.4; margin: 8px 0; display: flex; gap: 8px; align-items: flex-start; }
.dn-consent input { margin-top: 3px; flex: 0 0 auto; }
.dn-consent a { text-decoration: underline; }
.contact-form select.form-control { height: calc(3.5rem + 2px); }
.dn-book-link { display: block; text-align: center; margin-top: 8px; font-size: 14px; color: #0a8aa1; text-decoration: underline; }

/* Quiz call-back */
.dn-quiz-callback { margin-top: 16px; text-align: left; border-top: 1px dashed #ccc; padding-top: 14px; }
.dn-quiz-callback input[type=text], .dn-quiz-callback input[type=tel] { width: 100%; padding: 8px; border-radius: 6px; border: 1px solid #ccc; margin-bottom: 8px; }
.dn-quiz-callback button { width: 100%; padding: 10px; background: #c60808; color: #fff; border: 0; border-radius: 6px; }

/* Pass wall */
.dn-pass-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.dn-pass-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.dn-pass-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.dn-pass-card .dn-pass-body { padding: 12px 14px; }
.dn-pass-card h5 { margin: 0 0 2px; font-size: 18px; }
.dn-pass-badge { display: inline-block; background: #c60808; color: #fff; border-radius: 30px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.dn-pass-card p { font-size: 14px; margin: 6px 0 0; color: #555; }

/* News */
.dn-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.dn-news-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.08); display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.dn-news-card:hover { transform: translateY(-2px); transition: transform .15s; color: inherit; }
.dn-news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dn-news-card .dn-news-body { padding: 16px; }
.dn-news-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #c60808; font-weight: 700; }
.dn-news-card h3 { font-size: 20px; margin: 6px 0; }
.dn-news-card p { font-size: 15px; color: #666; margin: 0; }
.dn-article { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 14px; padding: 28px; }
.dn-article img { max-width: 100%; height: auto; border-radius: 10px; }
.dn-article h1 { font-size: 34px; }
.dn-article .dn-article-body { font-size: 18px; line-height: 1.7; }

/* Booking page */
.dn-book-wrap { max-width: 760px; margin: 0 auto; }
.dn-book-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.dn-book-card label { font-weight: 500; font-size: 15px; }
.dn-book-card .form-control, .dn-book-card .form-select { font-size: 16px; }
.dn-summary { background: #f7f7f7; border-radius: 12px; padding: 14px 16px; }
.dn-bank { background: #fff8e1; border: 1px solid #ffe08a; border-radius: 12px; padding: 14px 16px; }
.dn-ref { font-size: 26px; font-weight: 700; letter-spacing: .05em; color: #c60808; }

/* Install toast */
.dn-install-toast { position: fixed; left: 12px; right: 12px; bottom: 90px; max-width: 420px; margin: 0 auto; background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.2); padding: 12px; display: flex; gap: 10px; align-items: center; z-index: 2000; font-size: 14px; }
.dn-install-toast img { border-radius: 10px; }
.dn-install-text { flex: 1; line-height: 1.35; }
.dn-install-btn { background: #c60808; color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 700; }
.dn-install-close { background: none; border: 0; font-size: 22px; color: #888; }

/* ---- Home hero (photo removed): centred text, less empty space on phones ---- */
#section_1 .hero-text { position: relative; z-index: 3; }
@media screen and (max-width: 991px) { #section_1.hero { padding-top: 160px; padding-bottom: 80px; } #section_1 .hero-text { margin-bottom: 0; } }
@media screen and (max-width: 575px) {
  #section_1.hero { padding-top: 140px; padding-bottom: 60px; }
  #section_1 .hero-title-wrap { flex-direction: column; gap: 12px; }
  #section_1 .hero-title { margin-left: 0 !important; }
}

/* Background video: dark until the video (or its poster) is ready */
.bg-video { background: #1b2a2f; }

/* Headings that became <h1> for Google keep their original look */
h1.dn-h1 { font-size: var(--h2-font-size); letter-spacing: -3px; }
h1.dn-h1-plain { font-size: var(--h5-font-size); line-height: normal; letter-spacing: -1px; color: var(--dark-color); }

/* Local WhatsApp icon (no external image request) */
.dn-wa-icon { font-size: 34px; line-height: 40px; width: 40px; height: 40px; text-align: center; color: #fff; display: inline-block; }

/* Small-screen comfort: no sideways scrolling, tappable targets, readable forms */
html, body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
@media (max-width: 575px) {
  .custom-form .form-control, .dn-book-card .form-control, .dn-book-card .form-select { font-size: 16px; } /* stops iPhone zoom-in */
  .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
  .footer-links a { padding: 6px 2px; }
  #whatsappContainer { right: 12px; bottom: 12px; }
  .whatsapp-label { display: none; }
}

/* Home page: readable menu over the light-blue wave (before scrolling) */
.dn-home .navbar-nav .nav-link { color: #1f3b57; }
.dn-home .navbar-nav .nav-link.active, .dn-home .navbar-nav .nav-link:hover { color: #0a7f95; }
.dn-home .navbar .custom-btn { border-color: #0a7f95; color: #0a7f95; }
.dn-home .navbar .navbar-icon { background: #0a7f95; color: #fff; }
.dn-home .navbar-toggler-icon { filter: invert(1) brightness(.3); }
.dn-home .is-sticky .navbar-nav .nav-link { color: var(--p-color); }
.dn-home .is-sticky .navbar-nav .nav-link.active, .dn-home .is-sticky .navbar-nav .nav-link:hover { color: var(--secondary-color); }

/* Title pill on booking / pass wall / article pages (same look as the theme's hero titles) */
.dn-hero-compact .dn-hero-h1 {
  background: var(--white-color); color: var(--secondary-color); display: inline-block;
  padding: 8px 24px; border-radius: var(--border-radius-large); box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  font-size: var(--h2-font-size); letter-spacing: -2px; font-weight: var(--font-weight-bold);
}
@media (max-width: 575px) { .dn-hero-compact .dn-hero-h1 { font-size: 28px; letter-spacing: -1px; } }

/* Documents checklist & terms pages */
.dn-doc-wrap { max-width: 820px; margin: 0 auto; }
.dn-doc-card { background: #fff; border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.06); scroll-margin-top: 120px; }
.dn-doc-card h2 { font-size: 22px; letter-spacing: -.5px; color: var(--dark-color); margin-bottom: 12px; }
.dn-doc-card h2 .bi { color: var(--primary-color); margin-right: 6px; }
.dn-checklist { list-style: none; padding: 0; margin: 0; }
.dn-checklist li { border-top: 1px solid #eef0f2; }
.dn-checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 2px; cursor: pointer; font-size: 16px; line-height: 1.45; }
.dn-checklist input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; accent-color: #198754; }
.dn-checklist input:checked + span { color: #6b7280; text-decoration: line-through; }
.dn-terms h2 { font-size: 21px; letter-spacing: -.5px; color: var(--dark-color); margin-top: 26px; }
.dn-terms p, .dn-terms li { font-size: 16px; line-height: 1.65; color: #333; }
.dn-terms ul { padding-left: 20px; }
@media print {
  .navbar, .site-footer, #whatsappContainer, #backToTop, .dn-announce, .dn-no-print, .hero, .dn-install-toast { display: none !important; }
  .section-padding { padding: 0 !important; }
  .dn-doc-card, .dn-article { box-shadow: none !important; padding: 0 !important; }
  body { background: #fff !important; }
}

/* Star rating picker (leave-a-review) */
.dn-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.dn-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dn-stars label { font-size: 40px; line-height: 1; color: #d6d9de; cursor: pointer; padding: 2px; transition: color .1s; }
.dn-stars input:checked ~ label, .dn-stars label:hover, .dn-stars label:hover ~ label { color: #f5b301; }
.dn-stars input:focus-visible + label { outline: 2px solid #0cc0df; border-radius: 4px; }

/* Footer: student login button */
.dn-footer-login { text-align: center; margin: 14px 0 6px; }
.dn-portal-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-color); color: #fff !important; border-radius: 30px; padding: 9px 20px; font-weight: 700; font-size: 15px; text-decoration: none; }
.dn-portal-btn:hover { background: #a00606; color: #fff; }

/* Careers */
.dn-job-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: #fff; border-radius: 16px; padding: 20px 22px; margin-bottom: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.06); color: inherit; text-decoration: none; }
.dn-job-card:hover { color: inherit; box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.dn-job-card h3 { font-size: 21px; margin-bottom: 4px; letter-spacing: -.5px; }
.dn-job-card p { font-size: 15px; color: #555; margin-bottom: 8px; }
.dn-job-tag { display: inline-block; background: #f1f3f5; border-radius: 20px; padding: 3px 11px; font-size: 13px; color: #333; }
.dn-job-go { color: var(--primary-color); font-weight: 700; white-space: nowrap; }
@media (max-width: 575px) { .dn-job-card { flex-direction: column; align-items: flex-start; } }

/* ---------- Dinango Assistant (chat) ---------- */
.dn-chat { position: fixed; left: 16px; bottom: 16px; z-index: 9990; font-family: inherit; }
.dn-chat-launch { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: #c60808; color: #fff; font-weight: 700; font-size: 15px; padding: 12px 18px 12px 14px; box-shadow: 0 8px 24px rgba(198,8,8,.35); cursor: pointer; transition: transform .15s; }
.dn-chat-launch i { font-size: 20px; line-height: 1; }
.dn-chat-launch:hover { transform: translateY(-2px); }
.dn-chat-launch:focus-visible { outline: 3px solid #0cc0df; outline-offset: 3px; }
.dn-chat.is-open .dn-chat-launch { display: none; }
.dn-chat-panel { position: absolute; left: 0; bottom: 0; width: 370px; height: min(600px, calc(100vh - 40px)); background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.dn-chat-panel[hidden] { display: none; }
.dn-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #c60808; color: #fff; }
.dn-chat-head strong { display: block; font-size: 16px; line-height: 1.2; }
.dn-chat-head small { font-size: 12px; opacity: .9; }
.dn-chat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; margin-right: 3px; }
.dn-chat-av { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.dn-chat-av img { width: 34px; height: auto; }
.dn-chat-x { margin-left: auto; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; }
.dn-chat-log { flex: 1; overflow-y: auto; padding: 14px; background: #f4f5f7; overscroll-behavior: contain; }
.dn-msg { display: flex; margin-bottom: 10px; }
.dn-msg-me { justify-content: flex-end; }
.dn-bubble { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; color: #1f2328; background: #fff; border: 1px solid #e6e8eb; overflow-wrap: anywhere; }
.dn-msg-bot .dn-bubble { border-bottom-left-radius: 4px; }
.dn-msg-me .dn-bubble { background: #c60808; border-color: #c60808; color: #fff; border-bottom-right-radius: 4px; }
.dn-bubble ul, .dn-bubble ol { padding-left: 18px; margin: 6px 0; }
.dn-bubble a { color: #a10606; }
.dn-msg-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dn-chip-link { background: #fdecec; color: #a10606 !important; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; text-decoration: none; }
.dn-chat-wa { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; background: #25d366; color: #fff !important; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; text-decoration: none; }
.dn-chat-quick { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; background: #fff; scrollbar-width: none; }
.dn-chat-quick:empty { display: none; }
.dn-chip { flex: none; border: 1px solid #c60808; color: #c60808; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dn-chip:hover { background: #c60808; color: #fff; }
.dn-chat-form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; }
.dn-chat-form input { flex: 1; min-width: 0; border: 1px solid #d5d8dc; border-radius: 999px; padding: 10px 14px; font-size: 16px; }
.dn-chat-form input:focus { outline: none; border-color: #c60808; box-shadow: 0 0 0 3px rgba(198,8,8,.15); }
.dn-chat-form button { border: 0; background: #c60808; color: #fff; width: 44px; height: 44px; border-radius: 50%; flex: none; }
.dn-chat-foot { font-size: 11.5px; color: #6b7280; text-align: center; padding: 0 12px 10px; background: #fff; }
.dn-chat-foot a { color: #128c4b; }
.dn-chat-cb { display: grid; gap: 6px; margin-top: 8px; position: relative; }
.dn-chat-cb input[name=name], .dn-chat-cb input[name=phone] { border: 1px solid #d5d8dc; border-radius: 10px; padding: 8px 10px; font-size: 16px; }
.dn-chat-cb label { font-size: 12px; display: flex; gap: 6px; align-items: flex-start; }
.dn-chat-cb button { border: 0; background: #c60808; color: #fff; border-radius: 10px; padding: 9px; font-weight: 700; }
.dn-cb-msg { font-size: 12.5px; color: #a10606; }
.dn-typing { display: flex; gap: 4px; padding: 12px 14px; }
.dn-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa0a6; animation: dnDot 1s infinite; }
.dn-typing span:nth-child(2) { animation-delay: .15s; } .dn-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dnDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 575px) {
  .dn-chat { left: 12px; bottom: 12px; }
  .dn-chat-launch { padding: 0; width: 56px; height: 56px; justify-content: center; }
  .dn-chat-launch span { display: none; }
  .dn-chat-launch i { font-size: 24px; }
  .dn-chat.is-open { inset: 0; left: 0; bottom: 0; }
  .dn-chat-panel { position: fixed; inset: 0; width: auto; height: 100%; height: 100dvh; border-radius: 0; }
  html.dn-chat-lock, html.dn-chat-lock body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .dn-typing span { animation: none; } .dn-chat-launch { transition: none; } }

/* ---------- Cookie banner ---------- */
.dn-cookie { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; width: calc(100% - 24px); max-width: 640px; background: #fff; color: #1f2328; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 16px 18px; z-index: 10000; font-size: 14px; line-height: 1.5; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.dn-cookie p { margin: 0; flex: 1 1 280px; }
.dn-cookie a { color: #a10606; font-weight: 600; }
.dn-cookie-btns { display: flex; gap: 8px; flex: 1 1 auto; justify-content: flex-end; }
.dn-cookie button { border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; border: 1px solid #c60808; }
.dn-cookie .dn-ck-ok { background: #c60808; color: #fff; }
.dn-cookie .dn-ck-min { background: #fff; color: #c60808; }
@media (max-width: 575px) { .dn-cookie { bottom: 8px; padding: 14px; } .dn-cookie-btns { width: 100%; } .dn-cookie button { flex: 1; } }
.dn-stay-box { background: #f0f9fc; border: 1px solid #cdeef6; border-radius: 12px; padding: 14px; }

/* Branch (local SEO) pages */
.dn-area-kicker { color: #c60808; font-weight: 700; margin-bottom: .4rem; }
.dn-area-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1rem; }
.dn-area-stats div { background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); min-width: 120px; }
.dn-area-stats b { display: block; font-size: 1.6rem; color: #c60808; line-height: 1.1; }
.dn-area-stats span { font-size: .85rem; color: #555; }
.dn-area-card, .dn-area-course, .dn-area-quote { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.dn-area-course > i { font-size: 1.8rem; color: #c60808; }
.dn-area-quote { margin: 0; font-style: italic; }
.dn-area-quote footer { font-style: normal; font-weight: 700; font-size: .9rem; margin-top: .5rem; }
.dn-area-cta { background: linear-gradient(135deg, #c60808, #8f0606); color: #fff; border-radius: 20px; padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.dn-area-cta a:not(.btn) { color: #fff; text-decoration: underline; }
.dn-btn-red { background: #c60808; border-color: #c60808; }
.dn-bubble p, .dn-bubble li, .dn-bubble span, .dn-bubble label { font-size: inherit; color: inherit; line-height: inherit; }
.dn-bubble p { margin: 0 0 6px; }
.dn-bubble li { margin: 2px 0; }
.dn-chat-cb label span { flex: 1; }
.dn-cookie p { color: #1f2328; font-size: 14px; line-height: 1.5; }
html.dn-chat-lock #whatsappContainer, html.dn-chat-lock #backToTop, html.dn-chat-lock .dn-install-toast { display: none !important; }
.dn-area h2, .dn-area h3 { letter-spacing: normal; color: #1f2328; }
.dn-area-cta h2, .dn-area-cta p { color: #fff !important; }
