/* Home page specific styles (hero) */
.hero-home {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0;
    min-height: 540px;
    display: flex;
    align-items: center
}

.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(3, 22, 50, 0.62), rgba(3, 22, 50, 0.32)), url('../assets/images/bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: contrast(0.98) brightness(0.9);
    z-index: 0
}

.hero-home .container {
    position: relative;
    z-index: 1
}

.hero-home .hero-grid {
    display: grid;
    /* give the right block more room: min 320px, up to 480px on wide screens */
    grid-template-columns: 1fr minmax(320px,480px);
    gap: 2.5rem;
    align-items: center;
}

.hero-home .hero-left {
    color: #fff;
    padding-right: 1rem
}

.hero-home .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: .35rem .7rem;
    border-radius: 24px;
    font-weight: 700
}

.hero-home .hero-title {
    font-size: 2.4rem;
    margin: .6rem 0 0.6rem;
    line-height: 1.06;
    color: #fff;
    font-weight: 800;
    max-width: 44ch; /* keep heading from growing too wide and wrapping into the right block */
}

.hero-home .hero-sub {
    color: rgba(255, 255, 255, 0.92);
    max-width: 56ch;
    margin-bottom: 1rem
}

/* Pill-style service buttons in hero */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem .85rem;
    margin-top: 1rem;
    align-items: center;
}
.hero-pills .hero-pill {
    background: #ffffff;
    color: #000000;
    padding: .55rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 18px rgba(3,22,50,0.08);
    transition: transform .12s ease, box-shadow .12s ease;
    white-space: nowrap;
}
.hero-pills .hero-pill:hover,
.hero-pills .hero-pill:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(3,22,50,0.12);
    color: #000000;
}

@media (max-width: 900px) {
    .hero-pills { justify-content: center; }
    .hero-pills .hero-pill { padding: .5rem .85rem; font-size: .95rem }
}

/* Ensure all buttons inside the hero use black text for consistency */
.hero-home .btn,
.hero-home .btn-primary,
.hero-home .btn-ghost {
    color: #000000 !important;
}

/* Make the primary button inside the hero form light so black text remains legible */
.hero-home .hero-form .btn-primary {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(11,74,120,0.06) !important;
    box-shadow: 0 6px 18px rgba(3,22,50,0.06);
}

/* Keep ghost style subtle but with black text */
.hero-home .btn-ghost {
    background: transparent !important;
    border-color: rgba(0,0,0,0.12) !important;
}

/* Stronger override for any anchor/button text inside hero to ensure black text */
.hero-home .hero-pills a.hero-pill,
.hero-home .hero-pills a.hero-pill:visited,
.hero-home .hero-pills a.hero-pill:hover,
.hero-home .hero-pills a.hero-pill:focus,
.hero-home .hero-ctas a,
.hero-home .hero-ctas a:visited,
.hero-home .hero-ctas a:hover,
.hero-home .hero-ctas a:focus,
.hero-home .hero-form .btn,
.hero-home .hero-form .btn:visited,
.hero-home .hero-form .btn:hover,
.hero-home .hero-form .btn:focus {
    color: #000000 !important;
}

.hero-home .hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
    margin: 1rem 0 0 0
}

.hero-highlight {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04)
}

.hero-ctas {
    display: flex;
    gap: .6rem;
    align-items: center
}

.btn {
    border-radius: 8px;
    padding: .6rem .9rem;
    text-decoration: none
}

.btn-primary {
    background: #0b4a78;
    color: #fff
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18)
}

.hero-micro {
    display: block;
    margin-top: .6rem;
    color: rgba(255, 255, 255, 0.85)
}

.hero-trust {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    list-style: none;
    padding: 0
}

.hero-right .hero-visual {
    background: linear-gradient(180deg, #ffffff, #f3fbff);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(3, 22, 50, 0.08);
    display: flex;
    align-items: center;
    justify-content: center
}

/* Make mosaic responsive on narrower viewports */
@media (max-width:900px) {
    .hero-right .hero-visual { padding: .6rem }
}

/* Hero lead form styles */
.hero-form .form-card {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(11, 35, 64, 0.12);
    border: 1px solid rgba(238, 243, 248, 0.6);
    max-width: 380px
}

/* Features-card to replace hero form (visual grid similar to screenshot) */
.features-card { max-width: 420px; padding: 1rem; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .6rem; }
.features-grid .feature { background: linear-gradient(180deg,#fff,#fbfdfe); border-radius: 12px; padding: .6rem; display:flex; flex-direction:column; align-items:center; gap:.5rem; min-height:120px; justify-content:center; border:1px solid #eef4fb; text-align:center }
.features-grid .feature img { width:72px; height:72px; object-fit:cover; border-radius:12px; display:block }
.feature-label { background: linear-gradient(90deg, rgba(11,74,120,0.12), rgba(11,74,120,0.02)); padding:.35rem .6rem; border-radius:8px; font-weight:600; font-size:.95rem; color:#0b4a78 }
.center-badge .gst-badge { width:72px; height:72px; border-radius:12px; background:linear-gradient(180deg,#ffd66b,#f6b042); display:flex;align-items:center;justify-content:center;font-weight:800;color:#7b4200;font-size:1.05rem;box-shadow:0 8px 20px rgba(246,176,66,0.15) }

@media (max-width:900px) {
    .features-card { max-width:100%; }
    .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width:520px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* Hero mosaic: layered, visually distinct right block */
/* Equal-sized 2x2 mosaic grid for icons */
.hero-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: .6rem;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    box-sizing: border-box;
    align-items: center;
    justify-items: center;
}
.hero-mosaic .mosaic-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* push label slightly below */
    width: 100%;
}
.hero-mosaic .mosaic-item .tile { width: 92%; aspect-ratio: 1/1; }
.hero-mosaic .mosaic-item .mosaic-label { margin-top: .6rem }
/* Tile visuals */
.hero-mosaic .tile {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(3,22,50,0.12);
    position: relative;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display:block }
.tile-arch { border-radius: 28px 28px 18px 18px; }
.tile-large { border-radius: 22px; padding: 0; background: linear-gradient(180deg,#6b4a2f,#e6c35a); }
.tile-gst { background: linear-gradient(180deg,#7b5f35,#b78821); color: #fff; display:flex; align-items:center; justify-content:center }
.gst-text { font-size: 3.2rem; font-weight: 900; color: #fff; text-shadow: 0 6px 18px rgba(11,35,64,0.18) }
.tile-yellow { background: linear-gradient(180deg,#ffefc6,#ffd66b); }
.tile-pink { background: linear-gradient(180deg,#ffdbea,#ffb7d2); }
.tile-teal { background: linear-gradient(180deg,#bfeff4,#66d1d9); }

/* Labels that overlap tiles */
.mosaic-label {
    display: inline-block;
    background: rgba(3,22,50,0.28);
    color: #fff;
    padding: .45rem .8rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    margin-top: .6rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 18px rgba(3,22,50,0.12);
}

/* Rotating single-word inside each label: CSS for rotating words (JS will toggle .active) */
.mosaic-label { opacity: 1; }
.rotating-words { display: inline-block; position: relative; min-width: 5ch; vertical-align: bottom }
.rotating-words span { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(6px); transition: opacity .36s ease, transform .36s ease; display: block; white-space: nowrap }
.rotating-words span { color: #000; }
.rotating-words span.active { opacity: 1; transform: none }

/* Pause animation on hover for accessibility */
.mosaic-item:hover .rotating-words span.active { transition-duration: .01s }

@media (prefers-reduced-motion: reduce) {
    .rotating-words span { transition: none; opacity: 1; transform: none; position: static }
}

/* Tiny floating badge (bottom-left of mosaic) */
.mosaic-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: rgba(3,22,50,0.34);
    color: #fff;
    padding: .45rem .7rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 8px 18px rgba(3,22,50,0.12);
}

/* Reduce visual density on smaller widths */
@media (max-width:1200px) {
    .mosaic-label { font-size: .9rem; padding: .35rem .6rem }
    .gst-text { font-size: 2.6rem }
}

@media (max-width:1000px) {
    .mosaic-label { font-size: .85rem }
    .hero-mosaic .mosaic-third { width: 46% }
}
.hero-mosaic .mosaic-item .icon-3d .inner { padding: 10px; }
.hero-mosaic .mosaic-third .icon-3d .inner { padding: 12px; }
.hero-mosaic .mosaic-third .icon-3d .inner img { width:100%; height:100%; object-fit:cover; border-radius:12px }
.hero-mosaic .mosaic-item .rotating-text, .hero-mosaic .mosaic-item .points-list, .hero-mosaic .mosaic-item .options-rotating { margin-top:8px }

/* decorative ring behind center card for visual depth */
.hero-mosaic::before { content: ''; position: absolute; left: 50%; top: 64px; transform: translateX(-50%); width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 30% 20%, rgba(11,74,120,0.06), rgba(11,74,120,0.02)); z-index: 0 }
.hero-mosaic .mosaic-item { z-index: 2 }

.hero-mosaic::before { display: none }

@media (max-width:900px) {
    /* keep the 2x2 grid but reduce tile size and spacing on small screens */
    .hero-mosaic { gap: .5rem; max-width: 380px }
    .hero-mosaic .mosaic-item .tile { width: 96% }
}

/* Scale mosaic down further at intermediate widths to avoid overlapping long left column content */
@media (max-width:1200px) {
    .hero-home .hero-grid { grid-template-columns: 1fr minmax(220px,320px); }
    .hero-mosaic { max-width: 320px }
    .hero-mosaic .mosaic-first, .hero-mosaic .mosaic-second { width: 30% }
    .hero-mosaic .mosaic-third { width: 48% }
}

@media (max-width:1000px) {
    .hero-home .hero-grid { grid-template-columns: 1fr minmax(220px,300px); }
    .hero-mosaic { max-width: 300px }
    .hero-mosaic .mosaic-first, .hero-mosaic .mosaic-second { width: 28% }
    .hero-mosaic .mosaic-third { width: 46% }
    .hero-mosaic .mosaic-fourth { width: 70% }
}

/* Hero CTA banner styles */
.hero-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    /* subtle banner background using logo palette */
    background: linear-gradient(90deg, rgba(0,151,214,0.08), rgba(43,51,179,0.08));
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-top: 1.25rem;
    box-shadow: 0 12px 36px rgba(11,35,64,0.12);
}

.hero-cta-left { display:flex; align-items:center; gap:.9rem }
.hero-cta-dot { width:14px; height:14px; border-radius:50%; background:#2ecc40; box-shadow:0 4px 10px rgba(46,204,64,0.18) }
.hero-cta-text { margin:0; font-weight:700; font-size:1.05rem }

.btn-connect { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); color:#fff; padding:.7rem 1.2rem; border-radius:8px; font-weight:800; text-decoration:none }
.btn-connect:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11,74,120,0.12) }

@media (max-width:900px) {
    .hero-cta-banner { flex-direction: column; align-items: stretch; text-align:center }
    .hero-cta-left { justify-content: center }
    .btn-connect { width: 100%; margin-top:.6rem }
}

/* 3D icon wrapper styles */
.icon-3d { perspective: 900px; display:flex; align-items:center; justify-content:center; }
.icon-3d .inner {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    padding: 8px;
    background: linear-gradient(180deg,#ffffff, #f7fbff);
    box-shadow: 0 18px 36px rgba(11,35,64,0.12), 0 6px 18px rgba(3,22,50,0.06);
    transform: rotateX(10deg) rotateY(-8deg) translateZ(0);
    transition: transform .28s ease, box-shadow .28s ease;
}

/* Services grid: card layout matching screenshot (blue + grey color scheme) */
.services-inner { padding-top: 1rem; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem 1.2rem;
    align-items: stretch;
}
.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(11,35,64,0.04);
    box-shadow: 0 10px 28px rgba(11,35,64,0.04);
    transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(11,35,64,0.08) }
.service-card .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .6rem;
    color: var(--primary-dark);
    background: linear-gradient(180deg, rgba(11,74,120,0.06), rgba(11,74,120,0.02));
}
.service-card h4 { margin: 0 0 .6rem; font-size: 1.05rem }
.service-card p { margin: 0 0 1rem; color: #4b5b67; line-height: 1.45 }
.service-card .service-link {
    align-self: start;
    padding: .45rem .7rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-dark);
    border: 1px solid rgba(11,74,120,0.08);
}

/* Highlight featured cards (even items) in blue; replace red from screenshot with blue */
.services-grid .service-card:nth-child(even),
.service-card.featured {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    box-shadow: 0 18px 48px rgba(11,35,64,0.16);
    transform: translateY(-8px);
}
.services-grid .service-card:nth-child(even) .service-icon,
.service-card.featured .service-icon { background: rgba(255,255,255,0.12); color: #fff }
.services-grid .service-card:nth-child(even) .service-link,
.service-card.featured .service-link { background: transparent; border: 1px solid rgba(255,255,255,0.18); color: #fff }

/* Make layout responsive: 2 columns on tablet, 1 column on mobile */
@media (max-width: 1000px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: auto }
}

/* Override: remove services background image (keeps section neutral) */
.services-bg {
    background-image: none !important;
    background: transparent !important;
}

/* Ensure featured (blue) card text is white for headings and paragraphs */
.services-grid .service-card.featured h4,
.services-grid .service-card.featured p,
.services-grid .service-card.featured .service-link {
    color: #fff !important;
}

/* Services header: make heading and subheading black for contrast */
#services .services-header h2,
#services .services-header .services-sub {
    color: #000 !important;
}

/* About section CTA: make the "Explore Our Services" ghost button text black on homepage */
.about-cta a.btn.btn-ghost,
.about-cta a.btn.btn-ghost:visited,
.about-cta a.btn.btn-ghost:hover,
.about-cta a.btn.btn-ghost:focus {
    color: #000 !important;
    border-color: rgba(0,0,0,0.08) !important;
    background: transparent !important;
}
.icon-3d .inner img { width:72px; height:72px; display:block; border-radius:12px; object-fit:cover }
.icon-3d:hover .inner { transform: rotateX(0deg) rotateY(0deg) translateY(-6px); box-shadow: 0 28px 48px rgba(11,35,64,0.14); }
.icon-3d .gst-inner { padding:6px; }

/* subtle reflection layer to enhance 3D look */
.icon-3d .inner::after { content: ''; position: absolute; pointer-events: none; inset: auto auto 6px 6px; width: 60%; height: 40%; background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0)); transform: rotate(-18deg); border-radius: 8px; opacity: .6 }

@media (max-width:640px) {
    .icon-3d .inner { transform: none; }
    .icon-3d:hover .inner { transform: none; }
}

/* Rotating sentences on first icon */
.rotating-text { min-height: 46px; display:flex; align-items:center; justify-content:center; text-align:center; padding: .25rem .4rem; }
.rotating-item { display:block; opacity:0; transform: translateY(6px); transition: opacity .36s ease, transform .36s ease; font-weight:700; color:#0b4a78; font-size:.98rem; }
.rotating-item.visible { opacity:1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .rotating-item { transition: none; opacity: 1 !important; transform: none !important; }
}

/* Rotating options style for fourth icon */
.options-rotating { min-height: 46px; display:flex; align-items:center; justify-content:center; text-align:center; padding: .25rem .4rem; }
.options-rotating .rotating-item { font-weight:700; color:#0b4a78; font-size:.95rem; }

/* Points checklist animation for second icon */
.points-list { min-height: 66px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding: .25rem .4rem; }
.points-list .point { display:flex; align-items:center; gap:.5rem; opacity:0; transform: translateX(-6px); transition: opacity .28s ease, transform .28s ease; color:#0b4a78; font-weight:600; }
.points-list .point::before { content: ''; width:8px; height:8px; border-radius:50%; background:#0b4a78; display:inline-block; box-shadow:0 2px 6px rgba(11,74,120,0.12); transform: scale(1); }
.points-list .point.visible { opacity:1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .points-list .point { transition: none; opacity:1 !important; transform:none !important; }
}

.hero-form h2 {
    margin: 0 0 .4rem;
    font-size: 1.15rem;
    color: #000
}

.hero-form .small {
    margin: 0 0 .6rem;
    color: rgba(0, 0, 0, 0.75)
}

/* Stronger specificity to override global .hero color rules */
.hero-home .hero-form h2 {
    color: #000 !important
}

.hero-home .hero-form .small {
    color: rgba(0, 0, 0, 0.75) !important
}

.hero-form form {
    display: flex;
    flex-direction: column;
    gap: .6rem
}

.hero-form input[type="text"],
.hero-form input[type="tel"],
.hero-form input[type="email"],
.hero-form select,
.hero-form textarea {
    border: 1px solid #e6eef6;
    padding: .6rem .7rem;
    border-radius: 8px;
    font-size: 14px
}

.hero-form textarea {
    resize: vertical
}

.hero-form .btn-primary {
    padding: .6rem .9rem;
    border-radius: 8px
}

/* small helper for accessible labels visually-hidden */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px
}

/* Responsive */
@media(max-width:900px) {
    .hero-home .hero-grid {
        grid-template-columns: 1fr
    }

    .hero-home {
        padding: 2.25rem 0
    }

    .hero-home .hero-title {
        font-size: 1.6rem
    }

    .hero-home .hero-right {
        order: -1
    }

    .hero-home .hero-left {
        padding-right: 0
    }

    .hero-form .form-card {
        max-width: 100%;
        width: 100%
    }
}

/* Redesigned Why Choose section (homepage) */
.why-choose .why-inner {
    padding: 1.25rem 0 2rem;
}
.why-choose .why-split {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: stretch;
}
.why-choose .why-header h2 {
    margin: 0 0 .25rem;
    font-size: 1.6rem;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    margin-top: 0.9rem;
}
.why-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0.9rem;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.06);
    color: #ffffff;
}
.why-card .why-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.09);
    color: #ffffff;
    flex: 0 0 48px;
}
.why-card h4 { margin: 0 0 .25rem; font-size: 1rem; color: #ffffff; }
.why-card p { margin: 0; color: rgba(255,255,255,0.9); font-size: .95rem; }
.why-card.featured { background: rgba(255,255,255,0.04); border-left: 4px solid rgba(255,255,255,0.12); }

.why-right .why-form .form-card { max-width: 100%; padding: 1rem; }

/* Make the right column form stretch to match the left column height */
.why-right { display: block; }
.why-right .why-form { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.why-right .why-form .form-card { height: 100%; display: flex; flex-direction: column; justify-content: center; }

/* Styling for the compact lead form inside Why Choose */
.why-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 12px 28px rgba(11, 35, 64, 0.08);
    border: 1px solid rgba(14, 40, 70, 0.04);
}
.why-form form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.why-form input[type="text"],
.why-form input[type="tel"],
.why-form input[type="email"],
.why-form select,
.why-form textarea {
    border: 1px solid #e6eef6;
    padding: .55rem .65rem;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
.why-form input:focus,
.why-form select:focus,
.why-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 74, 120, 0.06);
    border-color: rgba(11, 74, 120, 0.18);
}
.why-form .btn-primary {
    padding: .6rem .8rem;
    border-radius: 8px;
    width: 100%;
    font-weight: 700;
}
.why-form .small { color: #51637a; margin-bottom: .25rem; }

/* Keep form compact on small screens */
@media (max-width: 900px) {
    .why-form { width: 100%; }
}

/* Unsplash illustration handling: ensure inline image fills the right column */
.why-right { background-image: none !important; }
.why-right .why-illustration {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    min-height: 240px; /* decreased from 320px */
}

@media (max-width:1000px) {
    .why-right .why-illustration { min-height: 180px; /* decreased from 260px */ }
}

/* Full-bleed blue background + white text for Why Choose section */
.why-choose {
    background: linear-gradient(180deg,#0b4a78 0%, #083a5e 100%);
    color: #ffffff;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
    /* full-bleed edge-to-edge */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}
.why-choose .container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.why-choose .why-header h2, .why-choose .why-sub { color: #ffffff; }
.why-choose .why-cta .btn-primary { background: #ffffff; color: #0b4a78; }
.why-choose .why-cta .btn-ghost { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.18); }

@media (max-width: 900px) {
    .why-choose .why-split { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .why-right { margin-top: 1rem; }
}

/* About section image */
.about-visual .about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(7, 22, 48, 0.06);
    object-fit: cover;
}

@media (max-width: 900px) {
    .about-visual .about-image { max-height: 320px; }
}

/* Prevent accidental horizontal scrolling caused by full-bleed sections */
html, body { overflow-x: hidden; }

/* Defensive max-width for inline illustrations */
.why-right .why-illustration { max-width: 100%; }
.about-visual .about-image { max-width: 100%; }

/* Ensure full-bleed section doesn't overflow due to padding */
.why-choose { box-sizing: border-box; overflow: hidden; }

/* Testimonials (homepage) - redesigned */
.testimonials {
    padding: 64px 0;
    background: linear-gradient(180deg,#f6f8fb,#f3f6f9);
    color: #122;
}
.testimonials .section-header { margin-bottom: 1rem; }
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch; /* ensure grid items stretch to equal heights */
}
.testimonial-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 1.25rem 1.4rem 1.6rem;
    box-shadow: 0 22px 48px rgba(16,30,60,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
    height: 100%; /* stretch card to fill grid row */
    box-sizing: border-box;
}

/* small circular quote mark at top-left */
.testimonial-card::before{
    content: '\201C';
    position: absolute;
    left: 18px;
    top: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(11,74,120,0.06);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.testimonial-body { margin-top: 8px; }
.testimonial-quote { margin: 1rem 0 0.9rem; color: #253238; line-height: 1.6; font-size: 0.98rem; flex: 1 1 auto; }

/* thin separator before meta */
.testimonial-meta-sep { height: 1px; background: #eef4f8; margin: 0.6rem 0; border-radius: 2px }

.testimonial-meta { display: flex; gap: .9rem; align-items: center; margin-top: .6rem }
.testimonial-meta .avatar { width:44px; height:44px; border-radius:999px; overflow:hidden; background:#000; display:flex; align-items:center; justify-content:center; flex-shrink:0 }
.testimonial-meta .avatar img { width:100%; height:100%; object-fit:cover }
.testimonial-meta .meta-text strong { display:block; color:#0b2b3a; font-weight:800 }
.testimonial-meta .meta-text .meta-role { color:#6b7a83; font-size:.92rem }

.testimonial-footer { margin-top: .4rem }

@media (max-width:1000px) {
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width:640px) {
    .testimonial-grid { grid-template-columns: 1fr; }
}

/* Ensure testimonials are visible even if AOS resources fail to load */
#testimonials [data-aos],
#testimonials [data-aos-delay] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Debug outline removed */

/* News / Blog page styles */
.news-hero { padding: 48px 0; background: linear-gradient(180deg,#ffffff,#fbfdff); }
.news-hero .section-header { text-align: center; max-width: 900px; margin: 0 auto 1rem }
.news-hero h1 { margin: .25rem 0 .25rem; font-size: 2rem; color: var(--primary-dark) }
.news-inner { padding: 1rem 0 2.5rem }
.news-grid { display:grid; grid-template-columns: 1fr 340px; gap: 1.25rem; align-items:start }
.news-list { display:flex; flex-direction:column; gap:1rem }
.news-card { background:#fff; border-radius:12px; padding:1rem; box-shadow:0 10px 30px rgba(7,22,48,0.06); border:1px solid #eef4fb }
.news-card h3 { margin: 0 0 .5rem; font-size:1.05rem }
.news-card p.meta { margin:0 0 .5rem; color: #6b7a83; font-size:.9rem }
.news-card a.title { color: #0b2b3a; text-decoration:none; font-weight:700 }
.news-card a.title:hover { text-decoration:underline }
.news-sidebar { display:flex; flex-direction:column; gap:1rem }
.news-sidebar .widget { background: #fff; padding: .9rem; border-radius: 12px; box-shadow:0 8px 28px rgba(7,22,48,0.04) }

@media (max-width:1000px) {
    .news-grid { grid-template-columns: 1fr; }
}