/* Shared spacing and responsive fixes; loaded after the theme styles. */
:root { --site-section-gap: clamp(32px, 5vw, 72px); }
body { overflow-wrap: break-word; }
.container { --bs-gutter-x: 32px; }
.row > * { min-width: 0; }
img { max-width: 100%; }
.section-hero-2 { padding-top: clamp(24px, 4vw, 56px) !important; }
.section-hero-2 .hero-2 > .border { overflow: hidden; }
.section-hero-2 .row.align-items-end { align-items: center !important; padding-block: clamp(24px, 4vw, 48px) !important; }
.section-hero-2 .section-hero-title { font-size: clamp(30px, 3.4vw, 50px) !important; line-height: 1.35; }
.section-hero-2 .section-hero-description { line-height: 1.9; }
.section-hero-2 .col-lg-5 > .position-relative > img { width: 100%; height: auto; max-width: 400px; }
.section-hero-2 .icon-decorate { display: none; }
.section-hero-2 .typewriter h1 { white-space: normal; animation: none; border: 0; }
.section-hero-2 .carouselTicker { max-width: 100%; overflow: hidden; }
.section-service-2, .section-projects-2, .section-skills-2, .section-blog-2, .section-contact-2 {
    padding-top: var(--site-section-gap) !important;
}
.section-contact-2 { padding-bottom: var(--site-section-gap) !important; }
body > .container.pb-150 { padding-top: clamp(32px, 5vw, 64px) !important; padding-bottom: var(--site-section-gap) !important; }
body > .container.pb-150 > .mb-8 { margin-bottom: 32px !important; }
.ds-3 { font-size: clamp(28px, 4vw, 52px) !important; line-height: 1.4; }
html[data-bs-theme="dark"] .section-hero-2 .section-hero-title span:not(.flicker) { background: none; -webkit-text-fill-color: #e4c588; color: #e4c588; }
html[data-bs-theme="dark"] .section-contact-2 .text-primary-2 { color: #e4c588 !important; }
.section-details { padding-top: var(--site-section-gap) !important; padding-bottom: var(--site-section-gap) !important; }
.section-details .blog-post-featured-image { display: block; width: 100%; height: auto; max-height: 480px; object-fit: contain; margin-inline: auto; }
.section-details .ck-content { line-height: 1.95; overflow-wrap: anywhere; }
.section-details .ck-content img { height: auto; max-height: 620px; object-fit: contain; }
.section-details .ck-content pre, .section-details .ck-content .table { max-width: 100%; overflow-x: auto; }
.section-details .ck-content h2, .section-details .ck-content h3 { line-height: 1.5; margin-block: 28px 16px; }
/* Keep the comment spam trap hidden without extending RTL page bounds. */
.section-details [aria-hidden="true"]:has(#comment_website) { left: 0 !important; top: 0 !important; width: 1px !important; height: 1px !important; clip-path: inset(50%); overflow: hidden; }
.service-grid-refined { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card-pro { display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--bs-border-color, #45454d); border-radius: 20px; background: var(--bs-body-bg); }
.service-card-pro__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.service-card-pro__image { width: 80px; height: 80px; object-fit: contain; border-radius: 16px; }
.service-card-pro__number { font-size: 14px; opacity: .55; font-variant-numeric: tabular-nums; }
.service-card-pro h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.55; margin: 0; }
.service-card-pro h3 a { color: inherit; }
.service-card-pro__description { line-height: 1.9; font-size: 16px; }
.service-card-pro__description p { margin: 0; }
.service-card-pro__link { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--bs-border-color, #45454d); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: inherit; }
.service-card-pro a:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 5px; }
.section-contact-2 input, .section-contact-2 textarea { max-width: 100%; }
.section-contact-2 h6 { overflow-wrap: anywhere; }
@media (max-width: 1199px) {
    .service-grid-refined { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .section-hero-2 .col-lg-5 { order: 2; margin-top: 16px; }
    .section-hero-2 .col-lg-6 { order: 1; }
    .section-hero-2 .col-lg-5 > .position-relative { margin-bottom: 0 !important; }
    .section-hero-2 .col-lg-5 > .position-relative > img { max-width: 260px; }
    .section-hero-2 .p-md-8 { padding: 20px 24px !important; }
    .section-hero-2 .mb-6 { margin-bottom: 24px !important; }
    .section-hero-2 .carouselTicker { margin-top: 0 !important; }
    .section-details .mt-8 { margin-top: 32px !important; }
    .section-details .mb-8 { margin-bottom: 32px !important; }
}
@media (max-width: 575px) {
    .container { --bs-gutter-x: 32px; }
    .service-grid-refined { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .service-card-pro { padding: 22px; gap: 14px; }
    .service-card-pro__image { width: 64px; height: 64px; }
    .section-hero-2 .p-md-8 { padding: 8px 20px !important; }
    .section-hero-2 .col-lg-5 > .position-relative > img { max-width: 210px; }
    .section-details p, .section-details .fs-5 { font-size: 16px !important; line-height: 1.9; }
    .section-details .ck-content h2 { font-size: 25px; }
    .section-details .ck-content h3 { font-size: 22px; }
    .section-details .blog-post-featured-image { max-height: 260px; }
    .section-service-2 .card-servies-2 { padding: 24px !important; }
    .section-contact-2 .p-md-4, .section-contact-2 .p-lg-6 { padding: 20px !important; }
    .section-contact-2 .btn { width: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .service-card-pro, .section-hero-2 .typewriter h1 { animation: none !important; transition: none !important; }
}
