/* =========================================================================
 * CordialTec Multipurpose plugin for AmaraTech
 * File:       assets/frontend.css
 * Purpose:    All frontend styles for Services Grid, Services Single,
 *             Service Category Archive, Projects Archive, Projects Single,
 *             and the standalone Search Bar.
 * Version:    1.0.5
 * Author:     CordialTec
 * Author URI: https://cordialtec.com.ng
 * ========================================================================= */


/* =========================================================================
 * 1. SERVICES GRID  —  [services_grid] shortcode
 * ========================================================================= */

/* Grid container — single column (default) */
.amaratech-services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 620px;
    margin: 0 auto;
}

/* Grid container — two columns, desktop + tablet (above 600px) */
@media (min-width: 601px) {
    .amaratech-services-grid--cols-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
        align-items: stretch;
    }
}

/* Tablet-only tightening (601–767px) for 2-column layout */
@media (min-width: 601px) and (max-width: 767px) {
    .amaratech-services-grid--cols-2 {
        gap: 0.75rem;
    }
    .amaratech-services-grid--cols-2 .amaratech-services-grid-card {
        padding: 1.5rem 1.5rem;
    }
    .amaratech-services-grid--cols-2 .amaratech-services-grid-serial {
        font-size: calc(var(--amaratech-services-serial-size, 30px) * 0.75);
        margin-right: 1.25rem;
    }
    .amaratech-services-grid--cols-2 .amaratech-services-grid-title {
        font-size: 1.15rem;
    }
    .amaratech-services-grid--cols-2 .amaratech-services-grid-description {
        font-size: 0.875rem;
    }
    .amaratech-services-grid--cols-2 .amaratech-services-grid-arrow {
        width: 42px;
        height: 42px;
        margin-left: 1rem;
    }
    .amaratech-services-grid--cols-2 .amaratech-service-classic-arrow-svg {
        width: 16px;
        height: 16px;
    }
}

/* Desktop-only tightening (768px+) for 2-column layout */
@media (min-width: 768px) {
    .amaratech-services-grid--cols-2 .amaratech-services-grid-card {
        padding: 1.5rem 1.75rem;
    }
    .amaratech-services-grid--cols-2 .amaratech-services-grid-serial {
        font-size: calc(var(--amaratech-services-serial-size, 30px) * 0.8);
        margin-right: 1.25rem;
    }
    .amaratech-services-grid--cols-2 .amaratech-services-grid-title {
        font-size: 1.25rem;
    }
    .amaratech-services-grid--cols-2 .amaratech-services-grid-description {
        font-size: 0.9rem;
    }
    .amaratech-services-grid--cols-2 .amaratech-services-grid-arrow {
        width: 44px;
        height: 44px;
        margin-left: 1.25rem;
    }
    .amaratech-services-grid--cols-2 .amaratech-service-classic-arrow-svg {
        width: 18px;
        height: 18px;
    }
}


/* -------------------------------------------------------------------------
 * 1a. CLASSIC variant
 * ---------------------------------------------------------------------- */

.amaratech-services-grid-card {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--amaratech-services-bg, #1F1F20);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    width: 100%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    background-clip: padding-box;
    isolation: isolate;
    text-decoration: none;
    color: inherit;
}

.amaratech-services-grid-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: var(--amaratech-services-accent, #c9f31d);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
    z-index: 1;
}

.amaratech-services-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.amaratech-services-grid-card:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0);
}

.amaratech-services-grid-serial {
    font-size: var(--amaratech-services-serial-size, 30px);
    font-weight: 600;
    color: var(--amaratech-services-serial, #ffffff);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-right: 2rem;
    flex-shrink: 0;
    font-feature-settings: "tnum";
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.amaratech-services-grid-card:hover .amaratech-services-grid-serial {
    color: var(--amaratech-services-serial-hover, #c9f31d);
}

.amaratech-services-grid-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.amaratech-services-grid-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--amaratech-services-title, #ffffff);
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.amaratech-services-grid-description {
    font-size: 1rem;
    color: var(--amaratech-services-desc, #ffffff);
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}

.amaratech-service-classic-divider {
    display: none;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

.amaratech-services-grid-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--amaratech-services-arrow-bg, #333333);
    color: var(--amaratech-services-arrow-icon, #ffffff);
    flex-shrink: 0;
    margin-left: 2rem;
    position: relative;
    z-index: 2;
    transition: background 0.35s ease, color 0.35s ease,
                box-shadow 0.35s ease, transform 0.35s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.amaratech-service-classic-arrow-svg {
    width: 22px;
    height: 22px;
    display: block;
    transform: rotate(0deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.amaratech-services-grid-card:hover .amaratech-services-grid-arrow {
    background: var(--amaratech-services-accent, #c9f31d);
    color: #1a202c;
    box-shadow: 0 8px 18px rgba(201, 243, 29, 0.45);
}

.amaratech-services-grid-card:hover .amaratech-service-classic-arrow-svg {
    transform: rotate(-15deg);
}

.amaratech-service-classic-footer {
    display: contents;
}

.amaratech-service-classic-explore {
    display: none;
    font-size: 0.95rem;
    font-weight: var(--amaratech-services-explore-weight, 400);
    color: var(--amaratech-services-explore-color, #ffffff);
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.amaratech-services-grid-card:hover .amaratech-service-classic-explore {
    color: var(--amaratech-services-explore-color-hover, #c9f31d);
}


/* -------------------------------------------------------------------------
 * 1b. ICONED variant
 * ---------------------------------------------------------------------- */

.amaratech-service-card--iconed {
    display: flex;
    align-items: center;
    background: var(--amaratech-services-bg, #1F1F20);
    border: 1px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
    position: relative;
}

.amaratech-service-card--iconed::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--amaratech-services-accent, #c9f31d), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.amaratech-service-card--iconed:hover {
    transform: translateY(-6px);
    border-color: var(--amaratech-services-accent, #c9f31d);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7),
                0 0 25px 0 rgba(201, 243, 29, 0.2);
}

.amaratech-service-card--iconed:hover::before {
    opacity: 1;
}

.amaratech-service-card--iconed .amaratech-service-card-media {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    align-self: stretch;
    background: transparent;
}

.amaratech-service-card--iconed .amaratech-service-card-icon-wrapper {
    width: 100%;
    height: 100%;
    min-height: 100px;
    border-radius: 14px;
    background: rgba(201, 243, 29, 0.1);
    border: 1px solid rgba(201, 243, 29, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amaratech-services-accent, #c9f31d);
    transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
}

.amaratech-service-card-icon-img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    display: block;
}

.amaratech-service-card--iconed:hover .amaratech-service-card-icon-wrapper {
    transform: scale(1.02);
    background: var(--amaratech-services-accent, #c9f31d);
    border-color: var(--amaratech-services-accent, #c9f31d);
}

.amaratech-service-card--iconed .amaratech-service-card-body {
    width: 75%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amaratech-service-card--iconed .amaratech-service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--amaratech-services-title, #ffffff);
    margin: 0 0 0.6rem;
    line-height: 1.3;
}

.amaratech-service-card--iconed .amaratech-service-card-description {
    font-size: 0.95rem;
    color: var(--amaratech-services-desc, #9ca3af);
    line-height: 1.6;
    margin: 0;
}


/* -------------------------------------------------------------------------
 * 1c. IMAGED variant
 * ---------------------------------------------------------------------- */

.amaratech-service-card--imaged {
    display: flex;
    align-items: center;
    background: var(--amaratech-services-bg, #1F1F20);
    border: 1px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
    position: relative;
}

.amaratech-service-card--imaged::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--amaratech-services-accent, #c9f31d), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.amaratech-service-card--imaged:hover {
    transform: translateY(-6px);
    border-color: var(--amaratech-services-accent, #c9f31d);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7),
                0 0 25px 0 rgba(201, 243, 29, 0.2);
}

.amaratech-service-card--imaged:hover::before {
    opacity: 1;
}

.amaratech-service-card--imaged .amaratech-service-card-media {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    align-self: stretch;
    background: transparent;
}

.amaratech-service-card--imaged .amaratech-service-card-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 100px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: transform 0.35s ease;
}

.amaratech-service-card-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.amaratech-service-card--imaged:hover .amaratech-service-card-image-wrapper {
    transform: scale(1.02);
}

.amaratech-service-card--imaged:hover .amaratech-service-card-image-img {
    transform: scale(1.08);
}

.amaratech-service-card--imaged .amaratech-service-card-body {
    width: 75%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amaratech-service-card--imaged .amaratech-service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--amaratech-services-title, #ffffff);
    margin: 0 0 0.6rem;
    line-height: 1.3;
}

.amaratech-service-card--imaged .amaratech-service-card-description {
    font-size: 0.95rem;
    color: var(--amaratech-services-desc, #9ca3af);
    line-height: 1.6;
    margin: 0;
}


/* -------------------------------------------------------------------------
 * 1d. Responsive — Mobile (600px and below)
 * ---------------------------------------------------------------------- */

@media (max-width: 600px) {

    .amaratech-services-grid-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1.75rem 1.5rem 1.25rem;
        gap: 0;
    }
    .amaratech-services-grid-serial {
        font-size: var(--amaratech-services-serial-size-mobile, 22px);
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .amaratech-services-grid-title {
        font-size: 1.3rem;
    }
    .amaratech-services-grid-description {
        font-size: 0.9rem;
    }

    .amaratech-service-classic-divider {
        display: block;
        margin: 5px 0;
    }

    .amaratech-service-classic-footer {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-top: 5px;
        align-self: flex-start;
    }

    .amaratech-service-classic-footer .amaratech-services-grid-arrow {
        margin-left: 0;
        margin-top: 0;
        width: 48px;
        height: 48px;
    }

    .amaratech-service-classic-arrow-svg {
        width: 20px;
        height: 20px;
    }

    .amaratech-service-classic-explore {
        display: block;
    }

    .amaratech-service-card--iconed {
        flex-direction: column;
        align-items: stretch;
    }
    .amaratech-service-card--iconed .amaratech-service-card-media {
        width: 100%;
        height: 130px;
        padding: 10px;
        align-self: auto;
    }
    .amaratech-service-card--iconed .amaratech-service-card-icon-wrapper {
        height: 100%;
        min-height: 0;
        background: var(--amaratech-services-accent, #c9f31d);
        border-color: var(--amaratech-services-accent, #c9f31d);
    }
    .amaratech-service-card-icon-img {
        width: auto;
        height: 56%;
    }
    .amaratech-service-card--iconed .amaratech-service-card-body {
        width: 100%;
        padding: 1.5rem;
    }
    .amaratech-service-card--iconed .amaratech-service-card-title {
        font-size: 1.15rem;
    }
    .amaratech-service-card--iconed .amaratech-service-card-description {
        font-size: 0.9rem;
    }

    .amaratech-service-card--imaged {
        flex-direction: column;
        align-items: stretch;
    }
    .amaratech-service-card--imaged .amaratech-service-card-media {
        width: 100%;
        height: 170px;
        padding: 10px;
        align-self: auto;
    }
    .amaratech-service-card--imaged .amaratech-service-card-image-wrapper {
        height: 100%;
        min-height: 0;
    }
    .amaratech-service-card-image-img {
        object-fit: cover;
    }
    .amaratech-service-card--imaged .amaratech-service-card-body {
        width: 100%;
        padding: 1.5rem;
    }
    .amaratech-service-card--imaged .amaratech-service-card-title {
        font-size: 1.15rem;
    }
    .amaratech-service-card--imaged .amaratech-service-card-description {
        font-size: 0.9rem;
    }
}


/* -------------------------------------------------------------------------
 * 1e. Responsive — Small mobile (400px and below)
 * ---------------------------------------------------------------------- */

@media (max-width: 400px) {
    .amaratech-services-grid-card {
        padding: 1.5rem 1.25rem 1rem;
    }
    .amaratech-services-grid-serial {
        font-size: var(--amaratech-services-serial-size-small, 18px);
    }
    .amaratech-service-classic-footer {
        gap: 0.6rem;
    }
    .amaratech-service-classic-explore {
        font-size: 0.9rem;
    }
    .amaratech-service-classic-footer .amaratech-services-grid-arrow {
        width: 44px;
        height: 44px;
    }

    .amaratech-service-card--iconed .amaratech-service-card-media {
        height: 115px;
    }
    .amaratech-service-card--iconed .amaratech-service-card-body {
        padding: 1.25rem;
    }
    .amaratech-service-card--iconed .amaratech-service-card-title {
        font-size: 1.05rem;
    }

    .amaratech-service-card--imaged .amaratech-service-card-media {
        height: 150px;
    }
    .amaratech-service-card--imaged .amaratech-service-card-body {
        padding: 1.25rem;
    }
    .amaratech-service-card--imaged .amaratech-service-card-title {
        font-size: 1.05rem;
    }
}


/* =========================================================================
 * 2. SEARCH BAR  —  [amaratech_search] shortcode + single-service sidebar
 * ========================================================================= */

/* Outer wrapper — width behaviour is set per placement */
.amaratech-search-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* Fill the parent container */
.amaratech-search-wrapper.amaratech-search--width-fill {
    width: 100%;
    max-width: none;
}

/* Capped width (e.g. width="600" = up to 600px, then stops) */
.amaratech-search-wrapper.amaratech-search--width-capped {
    width: 100%;
}

/* Fixed width (e.g. width="400px" or width="60%") */
.amaratech-search-wrapper.amaratech-search--width-fixed {
    width: auto;
}

/* Alignment inside parent — only meaningful when not filling */
.amaratech-search-wrapper.amaratech-search--align-left {
    margin-left: 0;
    margin-right: auto;
}

.amaratech-search-wrapper.amaratech-search--align-center {
    margin-left: auto;
    margin-right: auto;
}

.amaratech-search-wrapper.amaratech-search--align-right {
    margin-left: auto;
    margin-right: 0;
}

/* The inner search block — positioning context for icon + results */
.amaratech-search {
    position: relative;
    width: 100%;
}

/* Input — carries every Blocksy !important override because Blocksy
 * forces color, -webkit-text-fill-color, caret-color, padding, border,
 * and background on all inputs with !important. Class specificity alone
 * cannot win against that. */
.amaratech-search-input-component {
    width: 100% !important;
    padding: 0.85rem 2.85rem 0.85rem 1rem !important;
    font-size: 0.95rem !important;
    font-family: inherit !important;
    color: var(--amaratech-sb-input-text, #1a202c) !important;
    -webkit-text-fill-color: var(--amaratech-sb-input-text, #1a202c) !important;
    caret-color: var(--amaratech-sb-input-text, #1a202c) !important;
    background: var(--amaratech-sb-input-bg, #ffffff) !important;
    border: 1px solid var(--amaratech-sb-input-border, #e2e8f0) !important;
    border-radius: var(--amaratech-sb-border-radius, 12px) !important;
    outline: none !important;
    transition: border-color 0.25s ease, background 0.25s ease;
    box-sizing: border-box !important;
}

.amaratech-search-input-component::placeholder {
    color: var(--amaratech-sb-input-placeholder, #a0aec0) !important;
    -webkit-text-fill-color: var(--amaratech-sb-input-placeholder, #a0aec0) !important;
}

.amaratech-search-input-component:focus {
    border-color: var(--amaratech-sb-input-focus-border, #c9f31d) !important;
    background: var(--amaratech-sb-input-focus-bg, #ffffff) !important;
}

/* Search icon — pinned to the right inside the input */
.amaratech-search-icon-wrap {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amaratech-sb-search-icon, #a0aec0);
    pointer-events: none;
}

.amaratech-search-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* Results panel */
.amaratech-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--amaratech-sb-panel-bg, #ffffff);
    border: 1px solid var(--amaratech-sb-panel-border, #e2e8f0);
    border-radius: var(--amaratech-sb-panel-border-radius, 12px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    z-index: 50;
    max-height: 360px;
    overflow-y: auto;
    padding: 0.5rem;
}

.amaratech-search-results:empty {
    display: none;
}

/* Result row */
.amaratech-search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.amaratech-search-result-item:hover {
    background: var(--amaratech-sb-result-hover-bg, #f7fafc);
}

.amaratech-search-result-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--amaratech-sb-result-thumb-bg, #e2e8f0);
}

.amaratech-search-result-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--amaratech-sb-body-default, #4a5568);
    transition: color 0.2s ease;
}

.amaratech-search-result-item:hover .amaratech-search-result-title {
    color: var(--amaratech-sb-body-hover, #1a202c);
}

.amaratech-search-no-results {
    font-size: 0.85rem;
    color: var(--amaratech-sb-body-default, #4a5568);
    opacity: 0.7;
    padding: 0.5rem 0.6rem;
}

/* Chip — used by taxonomy tags inside results (reserved) */
.amaratech-search-chip {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--amaratech-sb-chip-text, #4a5568);
    background: var(--amaratech-sb-chip-bg, #f0f1f3);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
}


/* =========================================================================
 * 3. SERVICES SINGLE  —  /service/{slug}/
 * ========================================================================= */

.amaratech-single-service-page-main-tag {
    width: 100%;
}

.amaratech-single-service-page-overall-parent-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 2rem 5rem;
}

.amaratech-single-service-page-heading-parent {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px;
    margin-bottom: 3.5rem;
}

.amaratech-single-service-page-heading h1 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin: 0;
}

.amaratech-single-service-page-breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    font-size: 0.875rem;
    color: var(--amaratech-ss-body, #718096);
}

.amaratech-single-service-page-body-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 4rem;
    align-items: start;
}

.amaratech-single-service-page-left-column {
    min-width: 0;
}

.amaratech-single-service-page-left-column .service-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
}

.amaratech-service-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amaratech-single-service-page-left-column .service-hero-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--amaratech-ss-accent, #c9f31d);
    color: #1a202c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.amaratech-single-service-page-left-column .service-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.amaratech-single-service-page-left-column .service-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--amaratech-ss-body, #718096);
    text-transform: uppercase;
}

.amaratech-single-service-page-left-column .service-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.14;
    margin: 0 0 1.75rem;
}

/* Editor content — cannot carry classes. Parent chain deepened to
 * specificity 0,4,0 so no theme rule can override these safely. */
.amaratech-single-service-page-main-tag .amaratech-single-service-page-overall-parent-wrapper .amaratech-single-service-page-body-content .amaratech-single-service-page-left-column .service-content p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--amaratech-ss-body, #4a5568);
    margin-bottom: 1.5rem;
}

.amaratech-single-service-page-main-tag .amaratech-single-service-page-overall-parent-wrapper .amaratech-single-service-page-body-content .amaratech-single-service-page-left-column .service-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--amaratech-ss-heading, #1a202c);
    margin: 2.75rem 0 1rem;
}

.amaratech-single-service-page-main-tag .amaratech-single-service-page-overall-parent-wrapper .amaratech-single-service-page-body-content .amaratech-single-service-page-left-column .service-content ul {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.amaratech-single-service-page-main-tag .amaratech-single-service-page-overall-parent-wrapper .amaratech-single-service-page-body-content .amaratech-single-service-page-left-column .service-content li {
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--amaratech-ss-body, #4a5568);
    padding-left: 1.6rem;
    margin-bottom: 0.7rem;
}

.amaratech-single-service-page-main-tag .amaratech-single-service-page-overall-parent-wrapper .amaratech-single-service-page-body-content .amaratech-single-service-page-left-column .service-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amaratech-ss-accent, #c9f31d);
}

.amaratech-single-service-page-main-tag .amaratech-single-service-page-overall-parent-wrapper .amaratech-single-service-page-body-content .amaratech-single-service-page-left-column .service-content blockquote {
    border-left: 3px solid var(--amaratech-ss-accent, #c9f31d);
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--amaratech-ss-heading, #1a202c);
    font-style: italic;
}


/* -------------------------------------------------------------------------
 * 3a. SINGLE SERVICE — Sidebar rail
 * ---------------------------------------------------------------------- */

.amaratech-single-service-page-right-column {
    min-width: 0;
}

.amaratech-single-service-page-right-column-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    background: var(--amaratech-ssb-background, #f7fafc);
    border-radius: 20px;
    padding: 1.25rem;
}

/* Generic sidebar card */
.amaratech-single-service-page-right-column-sidebar .sidebar-card {
    background: var(--amaratech-ss-sidebar-bg, #ffffff);
    color: var(--amaratech-ss-sidebar-text, #1a202c);
    border: 1px solid var(--amaratech-ssb-card-border, #e2e8f0);
    border-radius: 18px;
    padding: 1.65rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    transition: border-color 0.25s ease;
}

.amaratech-single-service-page-right-column-sidebar .sidebar-card:hover {
    border-color: var(--amaratech-ssb-card-border-hover, #c9f31d);
}

/* Sidebar label */
.amaratech-single-service-page-right-column-sidebar .sidebar-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amaratech-ssb-heading, #1a202c);
    margin-bottom: 1.1rem;
}

/* Search — input wrapper (the search markup itself comes from the shortcode) */
.amaratech-single-service-page-right-column-sidebar .amaratech-search-wrapper {
    width: 100%;
}

/* Latest news — list */
.amaratech-single-service-page-right-column-sidebar .news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.amaratech-single-service-page-right-column-sidebar .news-item {
    display: flex;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.amaratech-single-service-page-right-column-sidebar .news-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--amaratech-ssb-result-thumb-bg, #e2e8f0);
}

.amaratech-single-service-page-right-column-sidebar .news-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.amaratech-single-service-page-right-column-sidebar .news-cat {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--amaratech-ssb-chip-text, #4a5568);
    background: var(--amaratech-ssb-chip-bg, #f0f1f3);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
}

.amaratech-single-service-page-right-column-sidebar .news-date {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--amaratech-ssb-body-default, #4a5568);
    opacity: 0.55;
}

.amaratech-single-service-page-right-column-sidebar .news-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--amaratech-ssb-body-default, #4a5568);
    transition: color 0.2s ease;
}

.amaratech-single-service-page-right-column-sidebar .news-item:hover .news-title {
    color: var(--amaratech-ssb-body-hover, #1a202c);
}

/* Category pills — class-scoped */
.amaratech-single-service-page-right-column-sidebar .category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.amaratech-ssb-pill {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--amaratech-ssb-chip-text, #4a5568);
    background: var(--amaratech-ssb-chip-bg, #f0f1f3);
    border: 1px solid var(--amaratech-ssb-card-border, #e2e8f0);
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.amaratech-ssb-pill:hover {
    background: var(--amaratech-ssb-link-hover, #c9f31d);
    color: var(--amaratech-ssb-link-default, #1a202c);
    border-color: var(--amaratech-ssb-link-hover, #c9f31d);
}

/* Get A Quote CTA */
.amaratech-single-service-page-sidebar-cta {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    padding: 2.25rem 1.75rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--amaratech-ssb-card-border, #e2e8f0);
    transition: border-color 0.25s ease;
}

.amaratech-single-service-page-sidebar-cta:hover {
    border-color: var(--amaratech-ssb-card-border-hover, #c9f31d);
}

.amaratech-single-service-page-sidebar-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--amaratech-ssb-cta-overlay-top, rgba(26, 32, 44, 0.72)) 0%,
        var(--amaratech-ssb-cta-overlay-bottom, rgba(26, 32, 44, 0.85)) 100%
    );
    z-index: 1;
}

.amaratech-single-service-page-sidebar-cta > * {
    position: relative;
    z-index: 2;
}

.amaratech-single-service-page-sidebar-cta .cta-heading {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--amaratech-ssb-cta-heading, #ffffff);
    margin: 0 0 0.5rem;
}

.amaratech-single-service-page-sidebar-cta .cta-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--amaratech-ssb-cta-body, rgba(255, 255, 255, 0.78));
    margin: 0 0 1.5rem;
}

.amaratech-single-service-page-sidebar-cta .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--amaratech-ssb-cta-btn-text, #1a202c);
    background: var(--amaratech-ssb-cta-btn-bg, #c9f31d);
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease,
                transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 22px rgba(201, 243, 29, 0.35);
}

.amaratech-single-service-page-sidebar-cta .cta-button:hover {
    background: var(--amaratech-ssb-cta-btn-bg-hover, #d6f75a);
    color: var(--amaratech-ssb-cta-btn-text-hover, #1a202c);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(201, 243, 29, 0.5);
}

.amaratech-ssb-cta-btn-svg {
    width: 16px;
    height: 16px;
    display: block;
    transform: rotate(0deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.amaratech-single-service-page-sidebar-cta .cta-button:hover .amaratech-ssb-cta-btn-svg {
    transform: rotate(-15deg);
}

/* Contact card */
.amaratech-single-service-page-contact-parent {
    background: var(--amaratech-ss-sidebar-bg, #ffffff);
    color: var(--amaratech-ss-sidebar-text, #1a202c);
    border: 1px solid var(--amaratech-ssb-card-border, #e2e8f0);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: border-color 0.25s ease;
}

.amaratech-single-service-page-contact-parent:hover {
    border-color: var(--amaratech-ssb-card-border-hover, #c9f31d);
}

.amaratech-single-service-page-contact-parent .contact-heading {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--amaratech-ssb-heading, #1a202c);
    margin: 0 0 1.25rem;
}

.amaratech-single-service-page-contact-icons-parent {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
}

.amaratech-single-service-page-contact-icons-parent .contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--amaratech-ssb-icon-circle-bg, #f7fafc);
    color: var(--amaratech-ssb-icon-glyph, #1a202c);
    border: 1px solid var(--amaratech-ssb-icon-circle-border, #e2e8f0);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease,
                border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.amaratech-ssb-contact-icon-svg {
    width: 20px;
    height: 20px;
    display: block;
}

.amaratech-single-service-page-contact-icons-parent .contact-icon:hover {
    background: var(--amaratech-ssb-icon-circle-bg-hover, #c9f31d);
    color: var(--amaratech-ssb-icon-glyph-hover, #1a202c);
    border-color: var(--amaratech-ssb-icon-circle-border-hover, #c9f31d);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201, 243, 29, 0.4);
}


/* Responsive — tablet + mobile */
@media (max-width: 960px) {
    .amaratech-single-service-page-overall-parent-wrapper { padding: 10px 1.5rem 4rem; }
    .amaratech-single-service-page-heading h1 { font-size: 2.25rem; }
    .amaratech-single-service-page-body-content { grid-template-columns: 1fr; gap: 2.75rem; }
    .amaratech-single-service-page-right-column-sidebar { position: static; }
    .amaratech-single-service-page-left-column .service-title { font-size: 2rem; }
}

@media (max-width: 640px) {
    .amaratech-single-service-page-overall-parent-wrapper { padding: 10px 1.25rem 3.5rem; }
    .amaratech-single-service-page-heading h1 { font-size: 1.9rem; }
    .amaratech-single-service-page-heading-parent { margin-bottom: 2.5rem; }
    .amaratech-single-service-page-left-column .service-title { font-size: 1.65rem; }
    .amaratech-single-service-page-left-column .service-hero { aspect-ratio: 3 / 2; border-radius: 18px; }
    .amaratech-single-service-page-main-tag .amaratech-single-service-page-overall-parent-wrapper .amaratech-single-service-page-body-content .amaratech-single-service-page-left-column .service-content p,
    .amaratech-single-service-page-main-tag .amaratech-single-service-page-overall-parent-wrapper .amaratech-single-service-page-body-content .amaratech-single-service-page-left-column .service-content li { font-size: 1rem; }
}


/* =========================================================================
 * 4. SERVICE CATEGORY ARCHIVE  —  /service-category/{slug}/
 * ========================================================================= */

/* Reuses the Services Grid card styles from Section 1. */


/* =========================================================================
 * 5. PROJECTS ARCHIVE  —  /projects/ and /project-category/{slug}/
 * ========================================================================= */

.amaratech-projects-archive-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
    color: inherit;
}

.amaratech-projects-archive-wrapper *,
.amaratech-projects-archive-wrapper *::before,
.amaratech-projects-archive-wrapper *::after {
    box-sizing: border-box;
}

.amaratech-projects-archive-header {
    width: 100%;
    padding: 1rem 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amaratech-projects-archive-switcher {
    background: var(--amaratech-switcher-wrapper-bg, #333333);
    padding: 6px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.amaratech-projects-archive-btn {
    background: var(--amaratech-switcher-bg-default, #3a3a3a);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--amaratech-switcher-text-default, #cccccc);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.amaratech-projects-archive-btn:hover {
    background: var(--amaratech-switcher-bg-hover, #4a4a4a);
    color: var(--amaratech-switcher-text-hover, #ffffff);
}

.amaratech-projects-archive-btn--active {
    background: var(--amaratech-switcher-bg-active, #c9f31d);
    color: var(--amaratech-switcher-text-active, #1a202c);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.amaratech-projects-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-grid {
    grid-template-columns: 1fr;
    gap: 0;
}

.amaratech-projects-archive-card {
    display: flex;
    flex-direction: column;
    background: var(--amaratech-card-bg-default, #ffffff);
    border: 1px solid var(--amaratech-card-border-default, #e2e8f0);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.amaratech-projects-archive-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.05);
}

.amaratech-projects-archive-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.amaratech-projects-archive-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ffffff;
    color: #1a202c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.amaratech-projects-archive-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.amaratech-projects-archive-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amaratech-card-content-default, #718096);
    opacity: 0.85;
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}

.amaratech-projects-archive-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.amaratech-projects-archive-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--amaratech-card-title-default, #1a202c);
    margin: 0;
    transition: color 0.3s ease;
}

.amaratech-projects-archive-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--amaratech-card-content-default, #4a5568);
    margin: 0.65rem 0 0;
    flex: 1;
    transition: color 0.3s ease;
}

.amaratech-projects-archive-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--amaratech-card-btn-bg-default, #1a202c);
    color: var(--amaratech-card-btn-icon-default, #ffffff);
    flex-shrink: 0;
    transition: background 0.35s ease, color 0.35s ease,
                box-shadow 0.35s ease, transform 0.35s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.amaratech-projects-archive-arrow-svg {
    width: 18px;
    height: 18px;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.amaratech-projects-archive-card:hover {
    transform: translateY(-4px);
    background: var(--amaratech-card-bg-hover, #ffffff);
    border-color: var(--amaratech-card-border-hover, #c9f31d);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.08);
}

.amaratech-projects-archive-card:hover .amaratech-projects-archive-image-img {
    transform: scale(1.04);
}

.amaratech-projects-archive-card:hover .amaratech-projects-archive-title {
    color: var(--amaratech-card-title-hover, #a8d012);
}

.amaratech-projects-archive-card:hover .amaratech-projects-archive-description {
    color: var(--amaratech-card-content-hover, #4a5568);
}

.amaratech-projects-archive-card:hover .amaratech-projects-archive-arrow {
    background: var(--amaratech-card-btn-bg-hover, #c9f31d);
    color: var(--amaratech-card-btn-icon-hover, #1a202c);
    box-shadow: 0 8px 18px rgba(201, 243, 29, 0.45);
}

.amaratech-projects-archive-card:hover .amaratech-projects-archive-arrow-svg {
    transform: rotate(-15deg);
}

.amaratech-projects-archive-wrapper--layout-compact .amaratech-projects-archive-description {
    display: none;
}

.amaratech-projects-archive-wrapper--layout-grid .amaratech-projects-archive-description {
    display: block;
}

.amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3.5rem 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-grid {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
    background: transparent;
}

.amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-card:hover .amaratech-projects-archive-image {
    transform: translateY(-4px);
    box-shadow: 0 28px 52px rgba(0, 0, 0, 0.12);
}

.amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-content {
    padding: 0;
    max-width: 520px;
}

.amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-title {
    font-size: 1.9rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-description {
    font-size: 1.05rem;
    margin: 0 0 1.75rem;
    display: block;
}

.amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-arrow {
    width: 48px;
    height: 48px;
}

.amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-card.amaratech-projects-archive-row--reverse .amaratech-projects-archive-image {
    order: 2;
}

.amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-card.amaratech-projects-archive-row--reverse .amaratech-projects-archive-content {
    order: 1;
}

.amaratech-projects-archive-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    .amaratech-projects-archive-wrapper--layout-grid .amaratech-projects-archive-grid,
    .amaratech-projects-archive-wrapper--layout-compact .amaratech-projects-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 0;
    }
    .amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-card.amaratech-projects-archive-row--reverse .amaratech-projects-archive-image,
    .amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-card .amaratech-projects-archive-image {
        order: 1;
    }
    .amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-card.amaratech-projects-archive-row--reverse .amaratech-projects-archive-content,
    .amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-card .amaratech-projects-archive-content {
        order: 2;
        max-width: 100%;
    }
    .amaratech-projects-archive-wrapper--layout-alternating .amaratech-projects-archive-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .amaratech-projects-archive-wrapper--layout-grid .amaratech-projects-archive-grid,
    .amaratech-projects-archive-wrapper--layout-compact .amaratech-projects-archive-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .amaratech-projects-archive-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}


/* =========================================================================
 * 6. PROJECTS SINGLE  —  /projects/{slug}/
 * ========================================================================= */

.amaratech-single-project-page {
    width: 100%;
}

.amaratech-single-project-heading-parent {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.amaratech-single-project-heading h1 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin: 0;
}

.amaratech-single-project-breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    font-size: 0.875rem;
    color: var(--amaratech-sp-body, #718096);
}

.amaratech-single-project-featured-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
}

.amaratech-single-project-gallery {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
}

.amaratech-single-project-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    overflow: hidden;
}

.amaratech-single-project-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.amaratech-single-project-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: #1a202c;
    justify-content: center;
}

.amaratech-single-project-gallery-thumb {
    flex: 0 1 120px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.25s ease, transform 0.25s ease;
    background: #2d3748;
}

.amaratech-single-project-gallery-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amaratech-single-project-gallery-thumb:hover {
    transform: translateY(-2px);
    border-color: var(--amaratech-sp-related-card-cat, #c9f31d);
}

.amaratech-single-project-gallery-thumb.is-active {
    border-color: var(--amaratech-sp-related-card-cat, #c9f31d);
}

.amaratech-single-project-content-parent {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 4rem;
    align-items: start;
}

.amaratech-single-project-left-column {
    min-width: 0;
}

/* Editor content — cannot carry classes. Parent chain deepened to
 * specificity 0,4,0 so no theme rule can override these safely. */
.amaratech-single-project-page .amaratech-single-project-content-parent .amaratech-single-project-left-column p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--amaratech-sp-body, #4a5568);
    margin-bottom: 1.5rem;
}

.amaratech-single-project-page .amaratech-single-project-content-parent .amaratech-single-project-left-column h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--amaratech-sp-heading, #1a202c);
    margin: 2.75rem 0 1rem;
}

.amaratech-single-project-page .amaratech-single-project-content-parent .amaratech-single-project-left-column ul {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.amaratech-single-project-page .amaratech-single-project-content-parent .amaratech-single-project-left-column li {
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--amaratech-sp-body, #4a5568);
    padding-left: 1.6rem;
    margin-bottom: 0.7rem;
}

.amaratech-single-project-page .amaratech-single-project-content-parent .amaratech-single-project-left-column li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amaratech-sp-details-overlay, #c9f31d);
}

.amaratech-single-project-page .amaratech-single-project-content-parent .amaratech-single-project-left-column blockquote {
    border-left: 3px solid var(--amaratech-sp-details-overlay, #c9f31d);
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--amaratech-sp-heading, #1a202c);
    font-style: italic;
}

.amaratech-single-project-right-column {
    min-width: 0;
}

.amaratech-single-project-details-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 2rem 1.75rem;
    min-height: 28.125rem;
    background: var(--amaratech-sp-details-bg, #1a202c);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
    color: var(--amaratech-sp-details-text, #1a202c);
}

.amaratech-single-project-details-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--amaratech-sp-details-overlay, #c9f31d);
    opacity: var(--amaratech-sp-details-overlay-opacity, 0.85);
    z-index: 1;
}

.amaratech-single-project-details-card > * {
    position: relative;
    z-index: 2;
}

.amaratech-single-project-details-heading {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
    color: var(--amaratech-sp-details-text, #1a202c);
}

.amaratech-single-project-details-row {
    margin-bottom: 1.1rem;
}

.amaratech-single-project-details-row:last-child {
    margin-bottom: 0;
}

.amaratech-single-project-details-row .label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.75;
    color: var(--amaratech-sp-details-label, #1a202c);
    margin-bottom: 0.35rem;
}

.amaratech-single-project-details-row .value {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--amaratech-sp-details-text, #1a202c);
}

.amaratech-single-project-details-link {
    color: var(--amaratech-sp-details-text, #1a202c);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.amaratech-single-project-details-link:hover {
    opacity: 0.75;
}

.amaratech-single-project-related {
    max-width: 1200px;
    margin: 5rem auto 0;
    padding: 0 2rem 5rem;
}

.amaratech-single-project-related-heading {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--amaratech-sp-related-heading, #1a202c);
    margin: 0 0 2rem;
}

.amaratech-single-project-related-grid {
    display: grid;
    gap: 2rem;
}

.amaratech-single-project-related-card {
    display: flex;
    flex-direction: column;
    background: var(--amaratech-sp-related-card-bg, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.amaratech-single-project-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.1);
}

.amaratech-single-project-related-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.05);
}

.amaratech-single-project-related-card-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.amaratech-single-project-related-card:hover .amaratech-single-project-related-card-image-img {
    transform: scale(1.05);
}

.amaratech-single-project-related-card-content {
    padding: 1.25rem 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.amaratech-single-project-related-card-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amaratech-sp-related-card-cat, #718096);
}

.amaratech-single-project-related-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--amaratech-sp-related-card-title, #1a202c);
    margin: 0;
}

@media (max-width: 960px) {
    .amaratech-single-project-heading h1 { font-size: 2.25rem; }
    .amaratech-single-project-content-parent {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }
    .amaratech-single-project-heading-parent { padding: 1.5rem 1.5rem 1rem; }
    .amaratech-single-project-content-parent { padding: 0 1.5rem; }
    .amaratech-single-project-related { padding: 0 1.5rem 4rem; }
}

@media (max-width: 640px) {
    .amaratech-single-project-heading h1 { font-size: 1.75rem; }
    .amaratech-single-project-gallery-thumbs { padding: 0.5rem 1rem; gap: 0.4rem; }
    .amaratech-single-project-gallery-thumb { flex: 0 1 70px; }
    .amaratech-single-project-gallery-main { aspect-ratio: 3 / 2; }
    .amaratech-single-project-content-parent { margin-top: 2rem; gap: 2rem; }
    .amaratech-single-project-related { margin-top: 3rem; }
    .amaratech-single-project-related-heading { font-size: 1.4rem; }
}


/* =========================================================================
 * 7. SHARED / UTILITY
 * ========================================================================= */

/* Placeholder — anything reused across sections goes here. */