/* International Investor hub pages - extends assets/community/body.css (same hero, listing, FAQ styles). */
.investor-hub .header-hero picture { display: contents; }
.investor-hero-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, #0c1a2e, #1e1b4b); border-radius: 0 0 24px 24px; }
.investor-hero-title { font-size: 20px; font-weight: 600; margin: 8px 0 4px; }
.investor-hero-desc { font-size: 16px; line-height: 1.6; max-width: 760px; margin: 8px auto 0; opacity: .95; }
.investor-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

.investor-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 100px; background: #4336ff; color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none; border: 1.5px solid #4336ff; transition: background .2s, color .2s; }
.investor-btn:hover { background: #000; border-color: #000; }
.investor-btn.outline { background: transparent; border-color: #fff; }
.investor-btn.outline:hover { background: #fff; color: #000 !important; }

.investor-hub .entry-content ul { padding-left: 20px; }
.investor-hub .entry-content li { margin-bottom: 8px; line-height: 1.6; }
.investor-hub .grid-content h2, .investor-intro h2 { margin-bottom: 16px; }

.investor-why-box { background: #f7f6fb; border-radius: 12px; padding: 40px 50px; }
.investor-why-box h2 { margin-bottom: 20px; }

/* Featured projects (home-page _RecommendedProjects partial): equal columns regardless of image size */
.investor-hub #featured-projects .top-listing-container:not(.slick-initialized) { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.investor-hub #featured-projects .top-listing-container:not(.slick-initialized) .top-listing-item { min-width: 0; margin-right: 0; }
.investor-hub #featured-projects .top-listing-item img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
@media (max-width: 1024px) and (min-width: 769px) {
    .investor-hub #featured-projects .top-listing-container:not(.slick-initialized) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.investor-emirate-desc { font-size: 13px; line-height: 1.4; margin: 4px 0 0; opacity: .9; white-space: normal; }
.investor-indicative { font-size: 13px; color: #555; margin: -2px 0 6px; }
.investor-indicative span { font-size: 11px; color: #888; }
.investor-note { font-size: 12px; color: #777; margin-top: 16px; }

.investor-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: step; }
.investor-step { border: 1px solid #12121219; border-radius: 12px; padding: 24px; background: #fff; }
.investor-step-no { display: inline-block; font-size: 28px; font-weight: 700; color: #4336ff; margin-bottom: 10px; }
.investor-step h3 { font-size: 16px; margin-bottom: 8px; }
.investor-step p { font-size: 14px; line-height: 1.6; margin: 0; color: #444; }
.investor-process-intro { max-width: 900px; }

.investor-resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.investor-resource-card { display: flex; flex-direction: column; border: 1px solid #12121219; border-radius: 12px; overflow: hidden; text-decoration: none; color: #262626; transition: box-shadow .2s, transform .2s; background: #fff; }
.investor-resource-card:hover { box-shadow: 0 10px 24px #0000001a; transform: translateY(-2px); }
.investor-resource-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.investor-resource-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.investor-resource-body h3 { font-size: 16px; line-height: 1.35; margin: 0; }
.investor-resource-body p { font-size: 14px; line-height: 1.5; color: #555; margin: 0; }
.investor-read { margin-top: auto; font-size: 13px; font-weight: 600; color: #4336ff; }

.investor-link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.investor-link-list a { display: inline-block; padding: 8px 16px; border: 1px solid #12121226; border-radius: 100px; font-size: 14px; color: #262626; text-decoration: none; }
.investor-link-list a:hover { border-color: #4336ff; color: #4336ff; }

.investor-lead-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #f7f6fb; border-radius: 12px; padding: 40px 50px; }
.investor-lead-copy p { line-height: 1.6; color: #444; }
.investor-lead-form { display: grid; gap: 12px; }
.investor-lead-form input:not([type=hidden]):not(.form-btn), .investor-lead-form select { width: 100%; padding: 12px 14px; border: 1px solid #d6d6e0; border-radius: 8px; font-size: 14px; background: #fff; }
.investor-lead-form .iti { width: 100%; }
.investor-lead-form .form-btn { padding: 13px; border-radius: 100px; border: none; background: #4336ff; color: #fff; font-weight: 600; cursor: pointer; }
.investor-lead-form .form-btn:hover { background: #000; }
.investor-lead-form .loadingMessage { padding: 8px 10px; border-radius: 6px; font-size: 13px; }
.investor-lead-form .loadr { display: none; text-align: center; }
.investor-lead-form .loadr img { width: 32px; display: inline-block; }

.investor-cta { background: #000; color: #fff; border-radius: 12px; padding: 50px; text-align: center; }
.investor-cta h2 { color: #fff; margin-bottom: 12px; }
.investor-cta .entry-content { max-width: 720px; margin: 0 auto 24px; opacity: .9; }
.investor-subtitle { color: #666; margin-top: -10px; }

.investor-article { max-width: min(900px, calc(100% - 40px)) !important; }
.investor-article .page-title { font-size: 34px; line-height: 1.25; margin-bottom: 14px; }
.investor-lead-text { font-size: 18px; line-height: 1.6; color: #444; }
.investor-meta { font-size: 13px; color: #888; }
.investor-article-img { width: 100%; height: auto; border-radius: 12px; margin: 20px 0; aspect-ratio: 1200/630; object-fit: cover; }
.investor-country-placeholder { aspect-ratio: 16/10; border-radius: 8px; background: linear-gradient(135deg, #0c1a2e, #4336ff); display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 700; color: #fff; }

@media (max-width: 768px) {
    .investor-why-box, .investor-lead-box { padding: 24px 20px; }
    .investor-lead-box { grid-template-columns: 1fr; gap: 20px; }
    .investor-cta { padding: 30px 20px; }
    .investor-article .page-title { font-size: 26px; }
    .investor-hero-desc { font-size: 14px; }
}

/* ---- Overview page blocks (/international-investors/) ---- */
.investor-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.investor-hub-card { display: flex; flex-direction: column; border: 1px solid #12121219; border-radius: 12px; overflow: hidden; text-decoration: none; color: #262626; background: #fff; transition: box-shadow .2s, transform .2s; }
.investor-hub-card:hover { box-shadow: 0 10px 24px #0000001a; transform: translateY(-2px); }
.investor-hub-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.investor-hub-code { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9; background: linear-gradient(135deg, #0c1a2e, #4336ff); color: #fff; font-size: 48px; font-weight: 700; }
.investor-hub-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.investor-hub-body h3 { font-size: 18px; margin: 0; }
.investor-hub-body p { font-size: 14px; line-height: 1.5; color: #555; margin: 0; }

.investor-enquiry-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, #4336ff, #2a1fd6); color: #fff; border-radius: 12px; padding: 36px 50px; }
.investor-enquiry-cta h2 { color: #fff; margin: 0 0 6px !important; }
.investor-enquiry-cta p { margin: 0; opacity: .92; }
.investor-enquiry-cta .investor-btn { background: #fff; color: #4336ff !important; border-color: #fff; white-space: nowrap; }
.investor-enquiry-cta .investor-btn:hover { background: #000; color: #fff !important; border-color: #000; }

.investor-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.investor-card { border: 1px solid #12121219; border-radius: 12px; padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.investor-card img { width: calc(100% + 48px); margin: -24px -24px 6px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px 12px 0 0; }
.investor-card-icon { font-size: 32px; color: #4336ff; width: 56px; height: 56px; border-radius: 14px; background: #4336ff14; display: inline-flex; align-items: center; justify-content: center; }
.investor-card h3 { font-size: 17px; margin: 0; }
.investor-card p { font-size: 14px; line-height: 1.55; color: #555; margin: 0; }
.investor-card .investor-read { margin-top: auto; text-decoration: none; }

.investor-checklist-box { background: #f7f6fb; border-radius: 12px; padding: 40px 50px; }
.investor-checklist-list { list-style: none; padding: 0; margin: 20px 0 0; columns: 2; column-gap: 40px; }
.investor-checklist-list li { break-inside: avoid; position: relative; padding: 0 0 14px 34px; line-height: 1.5; font-size: 15px; }
.investor-checklist-list li:before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 6px; background: #4336ff; }
.investor-checklist-list li:after { content: ""; position: absolute; left: 8px; top: 5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.investor-downloads { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.investor-downloads a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px dashed #4336ff66; border-radius: 12px; text-decoration: none; color: #262626; background: #4336ff08; }
.investor-downloads a:hover { border-style: solid; }
.investor-download-title { font-weight: 600; font-size: 15px; }
.investor-download-desc { font-size: 13px; color: #555; }

@media (max-width: 1024px) {
    .investor-hub-grid, .investor-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .investor-hub-grid, .investor-card-grid { grid-template-columns: 1fr; }
    .investor-enquiry-cta { flex-direction: column; align-items: flex-start; padding: 26px 20px; }
    .investor-checklist-box { padding: 24px 20px; }
    .investor-checklist-list { columns: 1; }
}

/* ---- Mobile / tablet hardening ---- */
/* Project cards: 3 equal columns only on desktop; below that the home-page slick carousel takes over
   (and before it initialises, cards stack instead of squeezing into 3 narrow columns). */
@media (max-width: 1024px) {
    .investor-hub #featured-projects .top-listing-container:not(.slick-initialized) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    /* Hero grows with its text instead of clipping it (long H1 + description + 2 buttons). */
    .investor-hub .header-hero { height: auto; min-height: 60vh; padding: 96px 0 40px; }
    .investor-hub .header-hero picture img,
    .investor-hub .header-hero > img,
    .investor-hub .header-hero .investor-hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .investor-hub .header-hero .header-content { position: relative; z-index: 1; max-width: calc(100% - 40px); }
    .investor-hub .header-hero h1.page-title { font-size: 26px; line-height: 1.25; margin: 6px 0 4px; }
    .investor-hero-title { font-size: 16px; }
    .investor-hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
    .investor-hero-ctas .investor-btn, .investor-enquiry-cta .investor-btn, .investor-cta .investor-btn { width: 100%; }
    .investor-hub .section-container > h2 { font-size: 22px; line-height: 1.3; }
    .investor-steps { grid-template-columns: 1fr; gap: 12px; }
    .investor-step { padding: 18px; }
    .investor-card { padding: 20px; }
    .investor-read { display: inline-block; padding: 8px 0; }
    .investor-hub .related-area-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    /* Compact blocks so the page is not an endless scroll on phones */
    .investor-hub .investor-areas .related-area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 0; }
    .investor-hub .investor-areas .related-area-item .related-item-footer { bottom: 10px; padding-inline: 10px; }
    .investor-hub .investor-areas .related-area-item .related-item-footer h3 { font-size: 14px; line-height: 1.3; }
    .investor-hub .investor-areas .investor-emirate-desc { font-size: 12px; }
    .investor-card-grid { gap: 12px; }
    .investor-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 16px; }
    .investor-card > * { grid-column: 2; }
    .investor-card > .investor-card-icon { grid-column: 1; grid-row: 1 / span 3; width: 48px; height: 48px; font-size: 26px; border-radius: 12px; }
    .investor-card > img { grid-column: 1 / -1; width: calc(100% + 32px); margin: -16px -16px 8px; }
    .investor-card .investor-read { padding: 4px 0 0; }
    .investor-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 14px 16px; }
    .investor-step-no { grid-row: 1 / span 2; font-size: 22px; margin: 0; }
    .investor-step h3 { margin-bottom: 4px; font-size: 15px; }
}
/* Steps: predictable rows (6 steps = 2 x 3 on desktop, 3 x 2 on tablet, 1 column on phones) */
.investor-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) {
    .investor-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .investor-hub .investor-areas .related-area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .investor-steps { grid-template-columns: 1fr; }
}
