/* =====================================================================
   NDDA — SHARED LAYOUT (header, footer, inner-page content)
   Loaded on every page after Bootstrap. Home-page components live in
   components.css (moved out of index.php so every page can use them).
   ===================================================================== */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--ndda-blue); text-decoration: none; }
a:hover { color: var(--ndda-orange); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100000; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top bar ---------- */
.nd-topbar { background: var(--ndda-orange); color: #fff; font-size: 13px; }
.nd-topbar .container-xl { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.nd-topbar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.nd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.nd-chip--call { background: var(--ndda-green); color: #fff; animation: nd-pulse 1.6s ease-in-out infinite; }
.nd-chip--call:hover { color: #fff; background: #2d6a21; }
.nd-chip--app { background: #fff; color: var(--ndda-orange); }
.nd-chip--app:hover { color: var(--ndda-orange-dark); }
.nd-chip--app img { width: 16px; height: 16px; }
@keyframes nd-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 50% { box-shadow: 0 0 0 5px rgba(255,255,255,0); } }

/* Announcement ticker (replaces <marquee>) */
.nd-ticker { flex: 1; overflow: hidden; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.nd-ticker-track { display: inline-flex; gap: 28px; white-space: nowrap; animation: nd-ticker 40s linear infinite; }
.nd-ticker:hover .nd-ticker-track, .nd-ticker:focus-within .nd-ticker-track { animation-play-state: paused; }
.nd-ticker a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.nd-ticker a:hover { color: #fff; text-decoration: underline; }
.nd-ticker img { height: 14px; width: auto; }
.nd-topbar-util { display: flex; gap: 16px; flex-shrink: 0; }
.nd-topbar-util a { color: #fff; font-weight: 600; white-space: nowrap; }
.nd-topbar-util a:hover { color: var(--ndda-navy); }
@media (max-width: 1199.98px) { .nd-topbar-util { display: none; } }
@media (min-width: 1200px) { .nd-nav-util { display: none; } }
@keyframes nd-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nd-ticker-track, .nd-chip--call { animation: none; } }

/* ---------- Main navigation ---------- */
.nd-header { position: sticky; top: 0; z-index: 1030; background: var(--ndda-navy); box-shadow: 0 2px 16px rgba(0,0,0,.18); }
.nd-header .container-xl { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.nd-brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.nd-brand:hover { color: #fff; }
.nd-brand img { width: 60px; height: 60px; }
.nd-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nd-brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: .3px; }
.nd-brand-text small { font-size: 11.5px; color: var(--ndda-gold); font-weight: 600; letter-spacing: .4px; }

.nd-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nd-nav li { position: relative; }
.nd-nav a, .nd-nav button.nd-sub-toggle { display: flex; align-items: center; gap: 7px; padding: 10px 12px; color: #fff; font-size: 14px; font-weight: 600; background: none; border: 0; border-radius: 8px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.nd-nav > ul > li > a:hover, .nd-nav > ul > li > button:hover, .nd-nav > ul > li.open > button { background: rgba(255,255,255,.1); color: #fff; }
.nd-nav .fa { color: var(--ndda-gold); font-size: 14px; }
.nd-caret { font-size: 10px !important; color: rgba(255,255,255,.6) !important; transition: transform .2s; }
.nd-nav .nd-cta { background: var(--ndda-orange); margin-left: 6px; }
.nd-nav .nd-cta .fa { color: #fff; }
.nd-nav > ul > li > a.nd-cta:hover { background: var(--ndda-orange-dark); }

/* Dropdowns */
.nd-sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(13,43,82,.22); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 10; }
.nd-sub a { color: var(--ndda-text); font-weight: 500; font-size: 14px; padding: 9px 12px; border-radius: 8px; white-space: normal; }
.nd-sub a:hover { background: rgba(218,104,41,.08); color: var(--ndda-orange); }
.nd-sub-label { display: block; padding: 8px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--ndda-text-muted); }
.nd-sub--wide { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.nd-sub--wide .nd-sub-col { list-style: none; margin: 0; padding: 0; }
@media (min-width: 1200px) {
  .nd-nav li:hover > .nd-sub, .nd-nav li:focus-within > .nd-sub, .nd-nav li.open > .nd-sub { opacity: 1; visibility: visible; transform: translateY(0); }
  .nd-nav li:hover > button .nd-caret { transform: rotate(180deg); }
  .nd-nav > ul > li:last-child .nd-sub { left: auto; right: 0; }
}

/* Mobile menu */
.nd-burger { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 20px; }
@media (max-width: 1199.98px) {
  .nd-burger { display: inline-flex; align-items: center; justify-content: center; }
  .nd-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--ndda-navy); padding: 84px 16px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .28s ease; z-index: 1040; }
  .nd-nav.open { transform: translateX(0); box-shadow: -10px 0 40px rgba(0,0,0,.35); }
  .nd-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nd-nav a, .nd-nav button.nd-sub-toggle { width: 100%; justify-content: flex-start; font-size: 15px; padding: 12px 14px; }
  .nd-nav button.nd-sub-toggle .nd-caret { margin-left: auto; }
  .nd-nav li.open > button .nd-caret { transform: rotate(180deg); }
  .nd-sub, .nd-sub--wide { position: static; display: none; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.06); margin: 2px 0 6px; grid-template-columns: 1fr; }
  .nd-nav li.open > .nd-sub { display: block; }
  .nd-sub a { color: rgba(255,255,255,.9); }
  .nd-sub a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nd-sub-label { color: var(--ndda-gold); }
  .nd-sub-spacer { display: none; }
  .nd-nav .nd-cta { margin: 10px 0 0; justify-content: center; }
  .nd-nav-close { position: absolute; top: 18px; right: 16px; }
  .nd-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1035; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .nd-backdrop.show { opacity: 1; visibility: visible; }
}
@media (min-width: 1200px) { .nd-nav-close, .nd-backdrop { display: none; } }
@media (max-width: 575.98px) {
  .nd-topbar .container-xl { flex-wrap: wrap; justify-content: center; padding-top: 6px; padding-bottom: 6px; row-gap: 6px; }
  .nd-ticker { flex-basis: 100%; }
  .nd-brand img { width: 48px; height: 48px; }
  .nd-brand-text strong { font-size: 15px; }
  .nd-header .container-xl { min-height: 64px; }
}

/* ---------- Floating helpers ---------- */
.nd-social { position: fixed; right: 0; top: 40%; z-index: 1020; display: flex; flex-direction: column; gap: 2px; }
.nd-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; border-radius: 8px 0 0 8px; transition: width .2s; }
.nd-social a:hover { width: 48px; color: #fff; }
.nd-social .yt { background: #ff0000; } .nd-social .fb { background: #1877f2; } .nd-social .tw { background: #111; }
.nd-social .ig { background: #e1306c; } .nd-social .li { background: #0a66c2; }
@media (max-width: 767.98px) { .nd-social { display: none; } }
.reg-now-link-btn { position: fixed; left: 16px; bottom: 95px; z-index: 1020; }
.reg-now-link-btn img { width: 125px; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
@media (max-width: 575.98px) { .reg-now-link-btn img { width: 96px; } }
.phone-pulse-icon { position: fixed; right: 18px; bottom: 90px; z-index: 1020; }
.btn-phone-pulse { width: 54px; height: 54px; border-radius: 50%; background: var(--ndda-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 0 0 0 rgba(55,128,40,.6); animation: nd-ring 1.8s infinite; }
.btn-phone-pulse:hover { color: #fff; }
@keyframes nd-ring { 70% { box-shadow: 0 0 0 16px rgba(55,128,40,0); } 100% { box-shadow: 0 0 0 0 rgba(55,128,40,0); } }
.scrollToTop { position: fixed; right: 22px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--ndda-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 1020; }
.scrollToTop.active { opacity: 1; visibility: visible; }
.scrollToTop:hover { color: #fff; background: var(--ndda-orange); }

/* ---------- Inner-page hero ---------- */
.nd-page-hero { background: linear-gradient(135deg, var(--ndda-navy) 0%, #0a1f3d 60%, var(--ndda-navy-light) 100%); color: #fff; padding: 44px 0 40px; position: relative; overflow: hidden; }
.nd-page-hero::after { content: ''; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(218,104,41,.28) 0%, transparent 70%); pointer-events: none; }
.nd-page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 800; margin: 0; position: relative; z-index: 1; }
.nd-page-hero p { color: rgba(255,255,255,.82); margin: 10px 0 0; max-width: 760px; position: relative; z-index: 1; }
.nd-crumbs { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; position: relative; z-index: 1; }
.nd-crumbs li + li::before { content: '/'; margin-right: 6px; color: rgba(255,255,255,.45); }
.nd-crumbs a { color: var(--ndda-gold); }
.nd-crumbs a:hover { color: #fff; }
.nd-crumbs [aria-current] { color: rgba(255,255,255,.75); }

/* ---------- Inner-page content ---------- */
.nd-main { padding-top: 48px; padding-bottom: 64px; }
.nd-card { background: #fff; border: 1px solid var(--ndda-border); border-radius: var(--ndda-radius); box-shadow: var(--ndda-shadow); padding: clamp(20px, 3vw, 36px); }
.nd-card + .nd-card { margin-top: 24px; }
.nd-prose { color: var(--ndda-text); font-size: 16px; }
.nd-prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 800; color: var(--ndda-navy); margin: 2.2rem 0 .9rem; }
.nd-prose h2::after { content: ''; display: block; width: 48px; height: 4px; border-radius: 2px; margin-top: 10px; background: linear-gradient(90deg, var(--ndda-orange), var(--ndda-gold)); }
.nd-prose h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; color: var(--ndda-navy); margin: 1.8rem 0 .7rem; }
.nd-prose h4, .nd-prose h5, .nd-prose h6 { font-size: 1.05rem; font-weight: 700; color: var(--ndda-navy-light); margin: 1.4rem 0 .6rem; }
.nd-prose > :first-child, .nd-card > :first-child { margin-top: 0; }
.nd-prose p { color: #3c4457; line-height: 1.8; margin-bottom: 1rem; }
.nd-prose ul, .nd-prose ol { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.nd-prose li { line-height: 1.7; margin-bottom: .35rem; color: #3c4457; }
.nd-prose ul li::marker { color: var(--ndda-orange); }
.nd-prose strong { color: var(--ndda-text); }
.nd-prose a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(4,93,233,.3); text-underline-offset: 3px; }
.nd-prose img { border-radius: var(--ndda-radius-sm); height: auto; }
.nd-prose blockquote { border-left: 4px solid var(--ndda-orange); background: rgba(218,104,41,.06); padding: 14px 20px; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }
.nd-prose hr { margin: 2rem 0; opacity: .12; }

/* Tables */
.nd-table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; border-radius: 12px; border: 1px solid var(--ndda-border); }
.nd-prose table, table.nd-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; margin: 0; }
.nd-prose table th, table.nd-table th { background: var(--ndda-navy); color: #fff; font-weight: 600; padding: 12px 14px; text-align: left; vertical-align: top; }
.nd-prose table td, table.nd-table td { padding: 11px 14px; border-top: 1px solid var(--ndda-border); color: #3c4457; vertical-align: top; }
.nd-prose table tbody tr:nth-child(even) td { background: #f8f9fc; }
.nd-prose table tbody tr:hover td { background: rgba(218,104,41,.05); }

/* Callouts and buttons */
.nd-callout { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--ndda-orange), var(--ndda-orange-dark)); color: #fff; border-radius: var(--ndda-radius); padding: 22px 26px; margin: 28px 0; }
.nd-callout p, .nd-callout strong { color: #fff; margin: 0; }
.nd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; border: 2px solid transparent; transition: var(--ndda-transition); text-decoration: none !important; }
.nd-btn--primary { background: var(--ndda-orange); color: #fff !important; }
.nd-btn--primary:hover { background: var(--ndda-orange-dark); transform: translateY(-2px); }
.nd-btn--light { background: #fff; color: var(--ndda-orange) !important; }
.nd-btn--light:hover { transform: translateY(-2px); }
.nd-btn--ghost { border-color: var(--ndda-navy); color: var(--ndda-navy) !important; }
.nd-btn--ghost:hover { background: var(--ndda-navy); color: #fff !important; }

/* Image grids used on gallery / achievement / team pages */
.nd-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.nd-img-grid img, .nd-img-grid video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ndda-radius-sm); box-shadow: var(--ndda-shadow); display: block; }
.nd-img-grid figure { margin: 0; }
.nd-img-grid figcaption { font-size: 14px; font-weight: 600; color: var(--ndda-navy); text-align: center; margin-top: 8px; }

/* Sidebar (enquiry form on inner pages) */
.nd-aside { position: sticky; top: 96px; }

/* Forms */
.nd-form .form-control, .nd-form .form-select { border-radius: 10px; border-color: #dfe3ea; padding: 10px 14px; }
.nd-form .form-control:focus, .nd-form .form-select:focus { border-color: var(--ndda-orange); box-shadow: 0 0 0 3px rgba(218,104,41,.15); }
.nd-form label { font-weight: 600; font-size: 14px; color: var(--ndda-navy); margin-bottom: 4px; }

/* ---------- Footer ---------- */
.nd-why { background: #fff; padding: 56px 0 40px; border-top: 1px solid var(--ndda-border); }
.nd-why-item { text-align: center; padding: 10px 8px; }
.nd-why-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--ndda-orange), var(--ndda-orange-dark)); box-shadow: 0 8px 22px rgba(218,104,41,.3); }
.nd-why-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--ndda-navy); margin-bottom: 6px; }
.nd-why-item p { font-size: 14px; margin: 0; }
.nd-footer { background: linear-gradient(rgba(10,31,61,.93), rgba(10,31,61,.96)), url(/img/airforce.jpg) center / cover no-repeat; color: rgba(255,255,255,.8); padding: 56px 0 0; font-size: 14.5px; }
.nd-footer h2 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.nd-footer h2::after { content: ''; display: block; width: 36px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--ndda-orange); }
.nd-footer ul { list-style: none; padding: 0; margin: 0; }
.nd-footer li { margin-bottom: 8px; }
.nd-footer a { color: rgba(255,255,255,.82); }
.nd-footer a:hover { color: var(--ndda-gold); }
.nd-footer address { font-style: normal; line-height: 1.75; }
.nd-footer address strong { color: #fff; }
.nd-live { color: #ff5252 !important; font-weight: 800; font-size: 16px; animation: nd-blink 1.2s ease-in-out infinite; }
@keyframes nd-blink { 50% { opacity: .35; } }
.nd-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding: 18px 0; text-align: center; font-size: 13.5px; }
@media (max-width: 767.98px) { .nd-footer { padding-bottom: 70px; } }

/* Age calculator modal */
#cal .modal-content { border: 0; border-radius: var(--ndda-radius); overflow: hidden; }
#cal .modal-header { background: linear-gradient(135deg, var(--ndda-orange), var(--ndda-orange-dark)); color: #fff; }
#cal .btn-close { filter: invert(1); }
#exact_age { margin-top: 12px; color: var(--ndda-navy); }

/* =====================================================================
   Converted older pages (<main class="nd-legacy">): readable typography
   for their existing markup, and new looks for the classes they still use.
   ===================================================================== */
.nd-legacy { padding-top: 40px; padding-bottom: 56px; color: #3c4457; font-size: 16px; line-height: 1.8; }
.nd-legacy > .container, .nd-legacy > .container-fluid, .nd-legacy > section > .container { margin-bottom: 8px; }
.nd-legacy h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 800; color: var(--ndda-navy); margin: 2rem 0 .9rem; }
.nd-legacy h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; color: var(--ndda-navy); margin: 1.6rem 0 .7rem; }
.nd-legacy h4, .nd-legacy h5, .nd-legacy h6 { font-size: 1.08rem; font-weight: 700; color: var(--ndda-navy-light); margin: 1.5rem 0 .6rem; }
.nd-legacy h5::before { content: ''; display: inline-block; width: 6px; height: 1em; background: var(--ndda-orange); border-radius: 3px; margin-right: 10px; vertical-align: -2px; }
.nd-legacy p, .nd-legacy li, .nd-legacy span { color: inherit; }
.nd-legacy p { margin-bottom: 1rem; }
.nd-legacy ul li::marker { color: var(--ndda-orange); }
.nd-legacy img { max-width: 100%; height: auto; }
.nd-legacy .img-res { width: 100%; border-radius: var(--ndda-radius); box-shadow: var(--ndda-shadow); margin-bottom: 24px; }
.nd-legacy > .text-center:first-child .img-res, .nd-legacy > .text-center:first-child > img { margin-top: -8px; }
.nd-legacy table:not(.ndda-admission-table) { width: 100%; border-collapse: collapse; background: #fff; }
.nd-legacy .table th, .nd-legacy table:not([class]) th { background: var(--ndda-navy); color: #fff; }

/* The long text blocks of course pages sit in a white card */
#coursecontent, #content { background: #fff; border: 1px solid var(--ndda-border); border-radius: var(--ndda-radius); box-shadow: var(--ndda-shadow); padding: clamp(20px, 3vw, 40px); }
#coursecontent h5 { color: var(--ndda-navy); }
.post-content h3 { font-size: 1rem !important; font-weight: 400; color: #3c4457; line-height: 1.8; margin: 0; }

/* Buttons */
.btn-clr-green, .submit-button { display: inline-flex; align-items: center; gap: 8px; background: var(--ndda-orange); color: #fff !important; border: 0; border-radius: 10px; padding: 12px 26px; font-weight: 700; box-shadow: 0 6px 18px rgba(218,104,41,.3); transition: var(--ndda-transition); }
.btn-clr-green:hover, .submit-button:hover { background: var(--ndda-orange-dark); transform: translateY(-2px); }

/* Old "well" info boxes (contact page) */
.well { background: #fff; border: 1px solid var(--ndda-border); border-radius: var(--ndda-radius); box-shadow: var(--ndda-shadow); padding: 24px 26px; margin-bottom: 20px; }
.well h3 { color: var(--ndda-navy); font-size: 1rem; font-weight: 700; margin: 1rem 0 .25rem; }
.well h3:first-child { margin-top: 0; }
.well h3 .fa { color: var(--ndda-orange); width: 22px; }
.well p { font-size: 15px; margin: 0 0 .25rem 30px; }

/* Shared enquiry form (inc/contactus.php) */
.home-enquiry1 { background: linear-gradient(135deg, var(--ndda-navy), var(--ndda-navy-light)); border-radius: var(--ndda-radius); padding: 24px; color: #fff; box-shadow: var(--ndda-shadow-hover); }
.home-enquiry1 .type-line { display: block; font-size: 1.25rem !important; font-weight: 700; margin-bottom: 6px; }
.home-enquiry1 label { display: none; }
.home-enquiry1 .col-md-12 { padding: 0 !important; margin-bottom: 12px; }
.inner-addon { position: relative; }
.inner-addon .fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ndda-orange); font-size: 16px; pointer-events: none; }
.inner-addon textarea + .fa, .inner-addon .fa-question-circle { top: 22px; }
.home-enquiry1 .form-control { border-radius: 10px; border: 0; padding: 12px 14px 12px 42px; font-size: 15px; }
.home-enquiry1 textarea.form-control { min-height: 100px; }
.home-enquiry1 #submit, #submit { background: var(--ndda-orange); color: #fff; border: 0; border-radius: 10px; height: 50px; font-weight: 700; font-size: 15px; padding-left: 14px; cursor: pointer; }
.home-enquiry1 #submit:hover, #submit:hover { background: var(--ndda-orange-dark); }

/* Registration form */
.reg_form { background: #fff; border-radius: var(--ndda-radius); box-shadow: var(--ndda-shadow); padding: clamp(18px, 3vw, 32px); }
.required { color: #d63a3a; font-weight: 600; }
.margintop, .margintop1 { margin-top: 16px; }

/* Icon circles used on older "why choose" rows */
#why-book-i { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, var(--ndda-orange), var(--ndda-orange-dark)); margin-bottom: 10px; }

/* Full-width photo band with dark overlay */
.fixed-bg1 { background: url(/img/army.webp) center / cover no-repeat fixed; }
.fixed-bg1-content { background: linear-gradient(rgba(13,43,82,.9), rgba(10,31,61,.92)); padding: 40px 10px; color: #fff; }
.fixed-bg1-content h5 { color: #fff; font-size: 1.25rem; font-weight: 700; }
@media (max-width: 991.98px) { .fixed-bg1 { background-attachment: scroll; } }

/* Director / team message cards */
.Message .card { border: 0; border-radius: var(--ndda-radius); overflow: hidden; box-shadow: var(--ndda-shadow); transition: var(--ndda-transition); }
.Message .card:hover { box-shadow: var(--ndda-shadow-hover); transform: translateY(-4px); }
.Message .card img { width: 100%; }
.Message .card-body .title { color: var(--ndda-orange); }

/* Wide tables scroll sideways inside themselves on small screens */
@media (max-width: 767.98px) {
  .nd-legacy table, .nd-prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Gallery grid (old gallery CSS forces width:100% on the links; keep Bootstrap 5 column widths) */
.gallery-page a.gallery_product { width: 100%; padding: 6px; }
@media (min-width: 576px) { .gallery-page a.gallery_product { width: 33.3333%; } }
.gallery-page a.gallery_product img { border-radius: var(--ndda-radius-sm); box-shadow: var(--ndda-shadow); transition: transform .3s; }
.gallery-page a.gallery_product:hover img { transform: scale(1.03); }
.filter-button { border-radius: 999px !important; padding: 6px 18px; font-size: 15px !important; font-weight: 600; border-color: var(--ndda-orange) !important; color: var(--ndda-orange) !important; background: #fff; margin: 0 4px 10px; }
.filter-button:hover, .filter-button.active { background: var(--ndda-orange) !important; color: #fff !important; }

/* Policy pages: their text block had no container */
.nd-legacy > #content { width: calc(100% - 24px); max-width: 1296px; margin-left: auto; margin-right: auto; }

/* FAQ list on newer pages (<details>, works without JavaScript) */
.nd-faq details { background: #fff; border: 1px solid var(--ndda-border); border-radius: 12px; margin-bottom: 10px; transition: border-color .2s; }
.nd-faq details[open] { border-color: rgba(218,104,41,.35); }
.nd-faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--ndda-navy); position: relative; }
.nd-faq summary::-webkit-details-marker { display: none; }
.nd-faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--ndda-orange); }
.nd-faq details[open] summary::after { content: '\2212'; }
.nd-faq details > div { padding: 0 20px 16px; color: #3c4457; line-height: 1.75; }
/* Key-facts strip */
.nd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 8px; }
.nd-fact { background: #fff; border: 1px solid var(--ndda-border); border-left: 4px solid var(--ndda-orange); border-radius: 12px; padding: 14px 16px; }
.nd-fact b { display: block; font-size: 1.25rem; color: var(--ndda-navy); line-height: 1.2; }
.nd-fact span { font-size: 13.5px; color: var(--ndda-text-muted); }
.nd-source { font-size: 13.5px; color: var(--ndda-text-muted); }
.nd-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 1rem 0 1.5rem; }
.nd-photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ndda-radius-sm); box-shadow: var(--ndda-shadow); }
