/* ARAMFO theme.
   Part 1 styles the site header and footer (src/components).
   Part 2 refines the page content imported from Zoho, whose own styles
   still load first (css/zsite-core.css and the template stylesheets). */

:root {
  --ar-navy: #1b2a6b;
  --ar-navy-2: #26348b;
  --ar-navy-dark: #0f1a45;
  --ar-red: #c8102e;
  --ar-red-dark: #a00d25;
  --ar-ink: #1f2937;
  --ar-muted: #5b6474;
  --ar-line: #e5e7ef;
  --ar-bg-soft: #f5f7fb;
  --ar-radius: 12px;
  --ar-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  --ar-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ar-wrap: 1200px;
}

html, body { overflow-x: hidden; }
body {
  font-family: var(--ar-font) !important;
  color: var(--ar-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
.ar-wrap { max-width: var(--ar-wrap); margin: 0 auto; padding: 0 24px; }

.ar-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 8px 14px; }
.ar-skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.ar-header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 1px 0 var(--ar-line), 0 6px 20px rgba(16, 24, 40, .05); }
.ar-topbar { background: var(--ar-navy-dark); color: #cdd3ea; font-size: 13px; }
.ar-topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.ar-topbar a { color: #fff; text-decoration: none; margin-left: 20px; }
.ar-topbar a:hover { text-decoration: underline; }
.ar-topbar-note { font-style: italic; opacity: .85; }
.ar-bar-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.ar-logo { min-width: 0; flex: 0 1 auto; }
.ar-logo img { display: block; height: 46px; width: auto; max-width: 100%; object-fit: contain; }
.ar-nav { display: flex; align-items: center; gap: 12px; }
.ar-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ar-item { position: relative; }
.ar-link {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--ar-ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.ar-item.has-sub > .ar-link::after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6;
}
.ar-link:hover, .ar-item:focus-within > .ar-link { color: var(--ar-navy-2); background: var(--ar-bg-soft); }
.ar-item.is-active > .ar-link { color: var(--ar-navy-2); box-shadow: inset 0 -2px 0 var(--ar-red); border-radius: 8px 8px 0 0; }
.ar-sub-toggle { display: none; }
.ar-sub {
  position: absolute; top: 100%; left: 0; padding-top: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.ar-item:hover > .ar-sub, .ar-item:focus-within > .ar-sub { opacity: 1; visibility: visible; transform: none; }
.ar-drop, .ar-mega {
  background: #fff; border: 1px solid var(--ar-line); border-radius: var(--ar-radius); box-shadow: var(--ar-shadow);
  list-style: none; margin: 0;
}
.ar-drop { min-width: 240px; padding: 8px; }
.ar-drop a, .ar-mega a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--ar-ink); text-decoration: none; font-size: 14.5px;
}
.ar-drop a:hover, .ar-mega a:hover { background: var(--ar-bg-soft); color: var(--ar-navy-2); }
.ar-item.is-mega > .ar-sub { left: 50%; transform: translate(-50%, 6px); }
.ar-item.is-mega:hover > .ar-sub, .ar-item.is-mega:focus-within > .ar-sub { transform: translate(-50%, 0); }
.ar-mega { display: flex; gap: 8px; padding: 18px; width: max-content; max-width: min(1000px, 94vw); }
.ar-col { min-width: 190px; }
.ar-col ul { list-style: none; margin: 0; padding: 0; }
.ar-col-title {
  margin: 0 0 6px; padding: 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ar-red);
}

.ar-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, transform .15s; white-space: nowrap;
}
.ar-btn-cta { background: var(--ar-red); color: #fff !important; }
.ar-btn-cta:hover { background: var(--ar-red-dark); transform: translateY(-1px); }

.ar-burger { display: none; }

@media (max-width: 1080px) {
  .ar-topbar-note { display: none; }
  .ar-bar-in { min-height: 64px; gap: 12px; }
  .ar-burger { flex: 0 0 auto; }
  .ar-topbar-in { justify-content: flex-end; }
  .ar-logo img { height: 38px; }
  .ar-burger {
    display: block; position: relative; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--ar-line); border-radius: 10px; background: #fff; cursor: pointer;
  }
  .ar-burger span {
    position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ar-navy); border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  .ar-burger span:nth-child(1) { top: 14px; }
  .ar-burger span:nth-child(2) { top: 20px; }
  .ar-burger span:nth-child(3) { top: 26px; }
  .ar-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .ar-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .ar-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .ar-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: #fff; border-top: 1px solid var(--ar-line); box-shadow: var(--ar-shadow);
    max-height: calc(100vh - 110px); overflow-y: auto;
  }
  .ar-nav.is-open { display: flex; }
  .ar-menu { flex-direction: column; align-items: stretch; }
  .ar-item { border-bottom: 1px solid var(--ar-line); display: flex; flex-wrap: wrap; align-items: center; }
  .ar-link { flex: 1; padding: 14px 4px; font-size: 16px; }
  .ar-item.has-sub > .ar-link::after { display: none; }
  .ar-item.is-active > .ar-link { box-shadow: none; }
  .ar-sub-toggle {
    display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative;
  }
  .ar-sub-toggle::before {
    content: ''; position: absolute; left: 17px; top: 15px; width: 8px; height: 8px;
    border-right: 2px solid var(--ar-navy); border-bottom: 2px solid var(--ar-navy); transform: rotate(45deg); transition: transform .2s;
  }
  .ar-sub-toggle[aria-expanded="true"]::before { transform: rotate(225deg); top: 19px; }
  .ar-sub, .ar-item.is-mega > .ar-sub {
    position: static; display: none; width: 100%; padding: 0 0 10px; opacity: 1; visibility: visible; transform: none;
  }
  .ar-item:hover > .ar-sub, .ar-item:focus-within > .ar-sub,
  .ar-item.is-mega:hover > .ar-sub, .ar-item.is-mega:focus-within > .ar-sub { transform: none; left: auto; }
  .ar-link:hover, .ar-item:focus-within > .ar-link { background: none; }
  .ar-item.is-open > .ar-sub { display: block; }
  .ar-drop, .ar-mega { border: 0; box-shadow: none; padding: 0; background: var(--ar-bg-soft); border-radius: 10px; }
  .ar-mega { flex-direction: column; width: auto; max-width: none; padding: 8px 0; }
  .ar-col { min-width: 0; }
  .ar-col-title { padding: 8px 12px 0; }
  .ar-btn-cta { margin-top: 16px; }
}

/* ---------- Footer ---------- */
.ar-footer { background: var(--ar-navy-dark); color: #b9c1dd; font-size: 14.5px; line-height: 1.6; margin-top: 48px; }
.ar-footer a { color: #e6e9f5; text-decoration: none; }
.ar-footer a:hover { color: #fff; text-decoration: underline; }
.ar-footer-top { display: grid; grid-template-columns: 1.2fr 2fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.ar-footer-name { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.ar-footer-tag { margin: 0 0 16px; font-style: italic; }
.ar-footer-contact { margin: 0 0 18px; }
.ar-footer-h { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.ar-footer ul { list-style: none; margin: 0; padding: 0; }
.ar-footer li { margin-bottom: 8px; }
.ar-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.ar-office span { display: block; }
.ar-office-name { color: #fff; font-weight: 600; margin: 0 0 2px; }
.ar-social { display: flex; gap: 10px; }
.ar-social a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); align-items: center; justify-content: center; }
.ar-social a:hover { background: var(--ar-red); }
.ar-social svg { width: 16px; height: 16px; fill: #fff; }
.ar-regions { border-top: 1px solid rgba(255, 255, 255, .1); padding: 32px 0; }
.ar-regions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 40px; }
.ar-region p { margin: 4px 0 0; font-size: 13.5px; }
.ar-region-name { font-weight: 600; color: #fff !important; }
.ar-region p a { color: #b9c1dd; }
.ar-footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 28px; font-size: 13px;
}
.ar-footer-bottom a { margin-left: 20px; }
@media (max-width: 960px) {
  .ar-footer-top { grid-template-columns: 1fr 1fr; }
  .ar-footer-offices { grid-column: 1 / -1; order: 3; }
  .ar-regions-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ar-footer-top, .ar-offices, .ar-regions-grid { grid-template-columns: 1fr; }
  .ar-footer-bottom a { margin: 0 16px 0 0; }
}

/* ---------- Page content imported from Zoho ---------- */
.theme-content-area, [data-theme-content-container] { font-family: var(--ar-font); }
.zptext, .zptext p, .zptext li, .zptext div { font-family: var(--ar-font) !important; line-height: 1.7; }
.zptext { font-size: 16px; color: var(--ar-ink); }
.zptext a, .theme-content-area a:not(.zpbutton):not(.zpimage-anchor) { color: var(--ar-navy-2); text-underline-offset: 3px; }
.zpheading, .theme-blog-heading, .theme-blog-h1, h1, h2, h3, h4 { font-family: var(--ar-font) !important; letter-spacing: -.01em; }
h1.zpheading, h2.zpheading { color: var(--ar-navy) !important; font-weight: 800 !important; }
h3.zpheading, h4.zpheading { color: var(--ar-navy) !important; font-weight: 700 !important; }

/* Images: rounded corners; linked images lift on hover */
.zpimage { border-radius: 10px; }
.zpimage-anchor { display: block; border-radius: 10px; overflow: hidden; }
.zpimage-anchor img { transition: transform .35s ease; }
.zpimage-anchor:hover img { transform: scale(1.03); }
/* Program grids (four across): even cards */
.zpcol-md-3 .zpimage-anchor img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; height: auto !important; }
.zpcol-md-3 .zpelem-image { margin-bottom: 4px; }
.zpcol-md-3 .zptext { text-align: center; }
.zpcol-md-3 .zptext a { font-weight: 700; text-decoration: none; color: var(--ar-navy); }

/* Hero slider: a sensible height, no neighbouring slide peeking in */
.theme-banner.zphero-boxed { margin-top: 24px; }
.zphero { overflow: hidden; border-radius: var(--ar-radius); }
.zphero, .zphero .zphero-slides, .zphero .zphero-slide { height: clamp(300px, 56vh, 560px) !important; min-height: 0 !important; }
@media (max-width: 600px) {
  .ar-topbar { display: none; }
  .ar-logo img { height: auto; max-height: 40px; }
}
@media (max-width: 767px) {
  .zpcol-md-3 .zpimage-anchor img { aspect-ratio: 16 / 10; }
  .zphero, .zphero .zphero-slides, .zphero .zphero-slide { height: 300px !important; }
  .theme-banner.zphero-boxed { padding: 0 16px; }
}

/* Buttons */
.zpbutton {
  border-radius: 999px !important; font-family: var(--ar-font) !important; font-weight: 600 !important;
  padding: 12px 24px !important; transition: transform .15s, box-shadow .15s;
}
.zpbutton:hover { transform: translateY(-1px); box-shadow: var(--ar-shadow); }
.zpbutton-type-primary { background: var(--ar-red) !important; border-color: var(--ar-red) !important; color: #fff !important; }

/* Tabs and accordions */
.zptabs-container .zptab { font-family: var(--ar-font); font-weight: 600; }
.zptabs-container .zptab-active { color: var(--ar-red) !important; }

/* Boxes become cards */
.zpelem-box { border-radius: var(--ar-radius); }

/* Embedded PDFs: a clear way to open them (added by js/aramfo.js) */
.ar-pdf-open { display: inline-flex; clear: both; margin: 12px 0 28px; }
.ar-btn-outline { border: 1.5px solid var(--ar-navy-2); color: var(--ar-navy-2) !important; background: #fff; }
.ar-btn-outline:hover { background: var(--ar-navy-2); color: #fff !important; }
@media (max-width: 767px) { iframe[src$=".pdf"] { height: 70vh !important; } }

/* Blog */
.theme-blog-container:not(.theme-blog-prev-next) {
  background: #fff; border: 1px solid var(--ar-line); border-radius: var(--ar-radius); padding: 24px; margin-bottom: 20px;
}
.theme-single-post .theme-blog-container { border: 0; padding: 0; }
.theme-blog-heading a { color: var(--ar-navy) !important; text-decoration: none; }
.theme-blog-post-cover-image-container img { border-radius: var(--ar-radius); }
.theme-blog-category-container { background: var(--ar-bg-soft); border-radius: var(--ar-radius); padding: 20px; margin-bottom: 20px; }

/* The old Zoho floating share bar */
.zpsocial-share-fixed, .theme-social-share-fixed, [data-zs-app="social_share_fixed"] { display: none !important; }
