@font-face {
    font-family: "Alexandria Regular";
    src: url("../fonts/Alexandria-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Alexandria Bold";
    src: url("../fonts/Alexandria-ExtraBold.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Cairo Regular";
    src: url("../fonts/Cairo-Regular.ttf") format("truetype");
}
@font-face {
    font-family: "Cairo Bold";
    src: url("../fonts/Cairo-Bold.ttf") format("truetype");
}
body {
    font-family: "Cairo Bold";
}
.real-estate-page { background:#fff; color:#07175a; }
.re-hero { position:relative; overflow:hidden; min-height:590px; background:linear-gradient(205deg, #e9f6ff 0%, #fff 46%, #e9f6ff 100%); }
.re-hero-shape { position:absolute; right:-8%; left:auto; top:-25%; width:57%; height:125%; background:linear-gradient(215deg,#0879e8,#013f91); border-radius:0 0 55% 45%; transform:rotate(5deg); }
.re-hero-grid { position:relative; z-index:1; min-height:590px; display:grid; grid-template-columns:1fr 1.15fr; align-items:center; gap:32px; direction:ltr; }
.re-copy { padding:55px 0; direction:rtl; }
.re-copy h1 { font-size:45px; line-height:1.8; margin:0;}
.re-line { display:block; width:75px; height:4px; border-radius:4px; background:#1089f3; margin:21px 0 19px auto; }
.re-copy>p { font-size:23px; line-height:1.75; max-width:570px; }
.re-benefits { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; margin-top:28px; }
.re-benefits span { text-align:center; font-size:12px; }
.re-benefits i { width:58px; height:58px; display:grid; place-items:center; margin:0 auto 8px; border-radius:50%; background:#cae3fa; font-size:25px; color:#07175a; }
.re-benefits b { display:block; }
.re-visual { direction:ltr; position:relative; min-height:450px; display:flex; align-items:center; }
.re-visual>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:30px; opacity:.45; }
.re-dashboard { position:relative; width:86%; margin-left:auto;  border:9px solid #fff; border-radius:14px; background:#fff; box-shadow:0 24px 40px rgba(0,0,0,.27); overflow:hidden;}
.re-side { background:#073a82; color:#fff; display:flex; flex-direction:column; gap:18px; padding:22px 14px; font-size:11px; }
.re-side b { font-size:20px; margin-bottom:8px; }
.re-content { padding:24px 16px; background:#f6faff; }
.re-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.re-stats b { background:#fff; border-radius:8px; padding:13px 7px; color:#0879e8; font-size:18px; box-shadow:0 3px 9px rgba(7,44,85,.08); }
.re-stats small { display:block; color:#64758c; font-size:8px; margin-top:5px; }
.unit-row { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:20px; }
.unit-row span { height:145px; border-radius:8px; background:url('../img/hero-villa.jpg') center/cover; }
.re-program { padding:45px 12px 70px; }
.re-heading { text-align:center; margin-bottom:40px; }
.re-heading>span { color:#0983ec; display:flex; align-items:center; justify-content:center; gap:15px; }
.re-heading>span:before,.re-heading>span:after { content:""; width:55px; height:1px; background:#0983ec; }
.re-heading h2 { font-size:35px; font-weight:800; margin:12px 0 12px; }
.re-heading p { color:#596784; font-size:17px;margin-top: 15px; }
.re-steps { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; direction:rtl; }
.re-step { --accent:#0879e8; direction:rtl; position:relative; display:flex; flex-direction:column; padding:27px 13px 0; border:1px solid color-mix(in srgb,var(--accent) 25%,white); border-radius:8px; background:color-mix(in srgb,var(--accent) 3%,white); }
.re-step.green { --accent:#12bca3; }.re-step.violet { --accent:#7032eb; }.re-step.orange { --accent:#ff7833; }.re-step.pink { --accent:#f12f5e; }
.step-number { position:absolute; top:-25px; left:50%; transform:translateX(-50%); width:52px; height:52px; display:grid; place-items:center; border:5px solid #fff; border-radius:50%; background:var(--accent); color:#fff; font-size:25px; }
.step-preview { height:100px; margin:4px 0 15px; border:1px solid color-mix(in srgb,var(--accent) 30%,#ddd); background:#fff; border-radius:6px; overflow:hidden; }
.inventory-preview { padding:15px; display:grid; gap:9px; }.inventory-preview i { color:var(--accent); }.inventory-preview span { height:9px; border-radius:5px; background:linear-gradient(90deg,#edf2f7 75%,var(--accent) 75%); }
.units-preview { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:10px; }.units-preview span { background:url('../img/hero-villa.jpg') center/cover; border-radius:5px; }
.form-preview { padding:16px; display:flex; flex-direction:column; gap:16px; }.form-preview span { height:25px; border:1px solid #dce4ed; border-radius:4px; }.form-preview button { border:0; border-radius:4px; background:var(--accent); color:#fff; padding:7px; font-size:10px; }
.contract-preview { display:flex; align-items:center; justify-content:center; gap:22px; font-size:47px; color:var(--accent); }
.re-step h3 { min-height:54px; font-size:19px; line-height:1.35; font-weight:800; text-align:center; margin:0; }
.re-step>small { direction:ltr; display:block; min-height:38px; text-align:center; color:#0759bf; font-size:11px; font-weight:600; }
.re-step ul { padding:0 20px 0 0; margin:8px 0 18px; list-style: none; }
.re-step li { font-size:13px; line-height:1.65; margin-bottom:7px; }
.re-step li::before {
    content: "✓";
    position: absolute;
    right: 8px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 800;
    margin-top: 5px;
}
.re-step:hover{
    transform: translateY(-5px);
    border-color: #1685ef;
    transition: 0.25s;
}
.step-result { margin:auto -13px 0; min-height:140px; padding:5px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:8px; text-align:center; background:color-mix(in srgb,var(--accent) 9%,white); color:#07175a; }
.step-result i { font-size:31px; color:var(--accent); }.step-result b { font-size:14px; line-height:1.5; }
.re-cta { min-height:265px; position:relative; overflow:hidden; color:#fff; background:linear-gradient(90deg,rgba(1,55,118,.92),rgba(0,89,166,.85)),url('../img/hero-villa.jpg') center 58%/cover; }
.re-cta .container-xl { min-height:265px; display:grid; grid-template-columns:1.5fr 1fr; align-items:center; }
.re-cta h2 { font-size:35px; font-weight:800; }.re-cta p { font-size:18px; color:#dbeeff; }
.re-cta-btn { display:inline-flex; align-items:center; gap:35px; margin-top:12px; padding:12px 27px; border-radius:28px; background:#fff; color:#07175a; text-decoration:none; font-weight:800; }
.re-cta-building { align-self:stretch; display:flex; justify-content:flex-start; align-items:center; background:url('../img/hero-villa.jpg') center/cover; clip-path:polygon(20% 0,100% 0,100% 100%,0 100%); }
.re-cta-building span { font-size:25px; margin-right:35px; transform:rotate(-7deg); }

@media(max-width:1100px){.re-copy h1{font-size:38px}.re-copy>p{font-size:19px}.re-steps{grid-template-columns:repeat(3,1fr);gap:35px 13px}.re-step{min-height:640px}.re-step:nth-child(4),.re-step:nth-child(5){transform:translateX(50%)} }
@media(max-width:991px){.re-hero,.re-hero-grid{min-height:auto}.re-hero-shape{width:100%;height:48%;top:auto;bottom:0;right:0;border-radius:40% 40% 0 0;transform:none}.re-hero-grid{grid-template-columns:1fr;padding-top:20px;padding-bottom:45px}.re-copy{text-align:center;padding:35px 0 5px}.re-line{margin-inline:auto}.re-copy>p{margin-inline:auto}.re-benefits{max-width:600px;margin-inline:auto}.re-visual{min-height:410px}.re-dashboard{margin:auto}.re-heading h2{font-size:30px}.re-cta h2{font-size:29px}}
@media(max-width:767px){.re-copy h1{font-size:32px}.re-copy>p{font-size:17px}.re-benefits{grid-template-columns:repeat(2,1fr)}.re-visual{min-height:330px}.re-dashboard{width:96%;min-height:260px}.re-side{gap:11px;padding:15px 8px}.re-content{padding:15px 9px}.unit-row span{height:100px}.re-heading h2{font-size:26px}.re-heading p{font-size:14px}.re-steps{grid-template-columns:repeat(2,1fr);gap:38px 12px}.re-step{min-height:620px}.re-step:nth-child(4),.re-step:nth-child(5){transform:none}.re-step:last-child{grid-column:1/-1;width:calc(50% - 6px);justify-self:center}.re-cta .container-xl{grid-template-columns:1fr;text-align:center;padding-top:35px;padding-bottom:35px}.re-cta-building{display:none}}
@media(max-width:480px){.re-copy h1{font-size:27px}.re-copy>p{font-size:15px}.re-benefits i{width:50px;height:50px}.re-visual{min-height:260px}.re-dashboard{min-height:215px;border-width:5px}.re-side{font-size:8px}.re-side b{font-size:13px}.re-stats b{font-size:11px}.unit-row{margin-top:10px}.unit-row span{height:70px}.re-steps{grid-template-columns:1fr;gap:40px}.re-step,.re-step:last-child{width:100%;min-height:590px;grid-column:auto}.re-step h3{font-size:20px}.re-step li{font-size:13px}.re-cta h2{font-size:26px}.re-cta p{font-size:15px}}

/* Improved responsive layout */
@media (min-width: 768px) and (max-width: 1100px) {
    .re-hero, .re-hero-grid { min-height: 520px; }
    .re-hero-shape { width: 55%; height: 118%; top: -12%; bottom: auto; right: -8%; border-radius: 0 0 55% 45%; transform: rotate(4deg); }
    .re-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; padding-inline: 22px; }
    .re-copy { text-align: right; padding: 38px 0; }
    .re-line { margin: 18px 0 18px auto; }
    .re-copy > p { margin-inline: 0; }
    .re-copy h1 { font-size: clamp(31px, 3.4vw, 38px); }
    .re-copy > p { font-size: clamp(16px, 1.8vw, 19px); }
    .re-benefits { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .re-visual { min-width: 0; }
    .re-dashboard { width: 96%; margin-inline: auto; }
    .re-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 18px; }
    .re-step, .re-step:nth-child(4), .re-step:nth-child(5) { min-height: 0; transform: none; }
    .re-step:last-child { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
}

@media (max-width: 767px) {
    .re-hero { min-height: auto; background: linear-gradient(180deg, #fff 0%, #f4faff 47%, #e9f6ff 100%); }
    .re-hero-grid { display: flex; flex-direction: column; gap: 22px; padding: 0 16px 34px; }
    .re-copy { width: 100%; padding: 34px 0 0; }
    .re-copy h1 {line-height: 1.8; font-size: 32px; }
    .re-copy > p { max-width: 540px; font-size: 15px; line-height: 1.85; }
    .re-line { width: 56px; height: 3px; margin-block: 15px; }
    .re-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; margin-top: 22px; }
    .re-benefits span { font-size: 11px; }
    .re-benefits i { width: 46px; height: 46px; margin-bottom: 6px; font-size: 20px; }
    .re-visual { width: 100%; min-height: 0; padding: 16px 0 5px; }
    .re-visual > img { border-radius: 18px; }
    .re-dashboard { width: 100%; min-height: 0; margin: 0 auto; border-width: 5px; border-radius: 10px; box-shadow: 0 14px 28px rgba(0,0,0,.2); }
    .re-dashboard img { display: block; width: 100%; height: auto; }
    .re-hero-shape { height: 34%; border-radius: 32% 32% 0 0; }
    .re-program { padding: 35px 15px 55px; overflow: hidden; }
    .re-heading { margin-bottom: 42px; }
    .re-heading > span { font-size: 13px; gap: 9px; }
    .re-heading > span::before, .re-heading > span::after { width: 30px; }
    .re-heading h2 { font-size: clamp(22px, 6.3vw, 27px); line-height: 1.5; margin-top: 10px; }
    .re-heading p { max-width: 520px; margin-inline: auto; font-size: 14px; line-height: 1.75; }
    .re-steps { grid-template-columns: minmax(0, 1fr); gap: 44px; max-width: 520px; margin-inline: auto; }
    .re-step, .re-step:last-child, .re-step:nth-child(4), .re-step:nth-child(5) { width: 100%; min-height: 0; grid-column: auto; transform: none; padding: 25px 16px 0; }
    .step-number { width: 48px; height: 48px; top: -24px; font-size: 21px; }
    .step-preview { height: auto; min-height: 120px; max-height: 210px; margin-bottom: 14px; }
    .step-preview img { display: block; width: 100%; height: auto; max-height: 210px; object-fit: contain; }
    .re-step h3 { min-height: 0; font-size: 19px; line-height: 1.45; margin-bottom: 4px; }
    .re-step > small { min-height: 0; font-size: 11px; margin-bottom: 10px; }
    .re-step ul { margin: 4px 0 18px; padding-right: 20px; }
    .re-step li { font-size: 13px; line-height: 1.65; margin-bottom: 8px; padding-right: 2px; }
    .re-step li::before { right: 10px; }
    .step-result { min-height: 90px; margin-inline: -16px; padding: 12px 18px; }
    .step-result i { font-size: 26px; }
    .step-result b { font-size: 13px; }
    .re-cta { min-height: auto; }
    .re-cta .container-xl { min-height: auto; padding: 35px 18px; }
    .re-cta h2 { font-size: clamp(23px, 6.5vw, 28px); line-height: 1.5; }
    .re-cta p { font-size: 14px; line-height: 1.75; }
    .re-cta-btn { gap: 22px; padding: 11px 22px; font-size: 14px; }
}

@media (max-width: 380px) {
    .re-copy h1 { font-size: 29px; }
    .re-copy > p { font-size: 14px; }
    .re-heading h2 { font-size: 21px; }
    .re-heading p { font-size: 13px; }
    .re-step h3 { font-size: 18px; }
    .re-step li { font-size: 12px; }
}
