/* Orange Dice — district & office landing pages */
@import url('odic-cta.css'); .district-page {
    --district-link: #c45a00;
    --district-link-hover: #ff7301;
    --district-pill-bg: #fff;
    --district-pill-border: #e8e4df;
    --district-pill-text: #333;
}

/* In-content text links (office, body copy, FAQ) */
.district-page .district-text-link, .district-page .district-body a:not(.odic-btn-link):not(.district-pill):not(.district-client-url):not(.district-cta__btn):not(.btn) {
    color: var(--district-link);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 90, 0, 0.35);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.district-page .district-text-link:hover, .district-page .district-body a:not(.odic-btn-link):not(.district-pill):not(.district-client-url):not(.district-cta__btn):not(.btn):hover {
    color: var(--district-link-hover);
    border-bottom-color: var(--district-link-hover);
}

.district-page a[href^="tel:"] {
    border-bottom: none;
}

/* Service quick links row */
.district-service-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 0.75rem;
    margin-bottom: 1.5rem;
}

.district-service-pills .district-pill {
    min-width: 7.5rem;
}

/* District navigation grid — "Other Kerala districts" */
.district-nav-section {
    background: #f8f6f3;
    border-top: 1px solid #ebe6e0;
    border-bottom: 1px solid #ebe6e0;
}

.district-nav-section__title {
    font-family: var(--font-1, Roboto, sans-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.25rem;
}

.district-pill-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.district-pill-grid li {
    margin: 0;
}

.district-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--district-pill-text) !important;
    text-decoration: none !important;
    border: 1px solid var(--district-pill-border);
    border-radius: 999px;
    background: var(--district-pill-bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.district-pill:hover {
    color: #fff !important;
    background: var(--district-link-hover);
    border-color: var(--district-link-hover);
    box-shadow: 0 4px 12px rgba(255, 115, 1, 0.25);
    transform: translateY(-1px);
}

.district-pill:focus-visible {
    outline: 2px solid var(--district-link-hover);
    outline-offset: 2px;
}

/* Client card styles */
.district-client-card {
    border: 1px solid rgba(223, 215, 206, 0.45);
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
}

.district-client-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.03);
    border-color: rgba(255, 115, 1, 0.35);
}

/* Client card thumbnail — assets/images/portfolio/district-clients/{filename} */
.district-client-card__media {
    aspect-ratio: 16 / 9;
    background: #f0ebe6;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.district-client-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.district-client-card:hover .district-client-card__media img {
    transform: scale(1.05);
}

.district-client-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

/* Client Name */
.district-client-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1f1f1f;
    margin-bottom: 0.5rem;
}

/* Business Type Badge */
.district-client-card__badge {
    align-self: flex-start;
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.725rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--district-link) !important;
    background: rgba(255, 115, 1, 0.08);
    border-radius: 30px;
    margin-bottom: 0.85rem !important;
}

.district-client-card__badge strong {
    font-weight: 600;
}

/* Project and Summary Styles */
.district-client-card__project, .district-client-card__summary, .district-client-card__address {
    font-size: 0.91rem !important;
    line-height: 1.75 !important;
    color: #5f6368;
    margin-bottom: 0.55rem !important;
}

.district-client-card__project span.text-black-50, .district-client-card__address span.text-black-50 {
    color: #8c857e !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.725rem;
    letter-spacing: 0.04em;
    margin-right: 0.25rem;
}

/* Address pending indicator */
.district-client-card__address-pending {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem !important;
    color: #a37c00 !important;
    background: #fffbef;
    border: 1px dashed #ffe58f;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.85rem !important;
}

.district-client-card__address-pending em {
    font-style: normal;
    font-weight: 500;
}

/* Client card external website URL button */
.district-client-url {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--district-link) !important;
    text-decoration: none !important;
    background: #fdfaf7;
    border: 1px solid #f3ede6;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    margin-top: auto;
    /* Push to bottom of card body */
    margin-bottom: 0.5rem !important;
    transition: all 0.25s ease;
    word-break: break-all;
}

.district-client-url::after {
    content: "";
    font-size: 0.75rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
    display: inline-block;
    width: 25px;
    height: 25px;
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m18 8l4 4m0 0l-4 4m4-4H2'/%3E%3C/svg%3E");
    background-color: currentColor;
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.district-client-url:hover {
    background: #ffebd9;
    border-color: #ffc499;
    color: var(--district-link-hover) !important;
    transform: translateY(-1px);
}

.district-client-url:hover::after {
    transform: translate(1px, -1px);
}

/* Case Study Button Overrides */
.district-client-card__body .odic-btn-link.district-client-card__case-study {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin-top: 0.5rem !important;
    padding: 10px 16px !important;
    font-size: 0.8125rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 30px;
    text-align: center;
    line-height: 1.2 !important;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.district-client-card__body .odic-btn-link-outline.district-client-card__case-study {
    border: 1.5px solid #333 !important;
    color: #333 !important;
    background-color: #fff !important;
}

.district-client-card__body .odic-btn-link.district-client-card__case-study:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
    text-indent: 0 !important;
}

/* Reset parent transitions/effects for case study button inside card */
.district-client-card__body .odic-btn-link.district-client-card__case-study::before, .district-client-card__body .odic-btn-link.district-client-card__case-study::after {
    display: none !important;
}

/* Office page service grid links */
.district-page .district-office-services a {
    display: block;
    padding: 0.85rem 0.5rem;
    font-weight: 500;
    color: #333 !important;
    text-decoration: none !important;
    border: 1px solid #e8e4df;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.district-page .district-office-services a:hover {
    color: var(--district-link-hover) !important;
    border-color: var(--district-link-hover);
    box-shadow: 0 2px 8px rgba(255, 115, 1, 0.12);
}

/* Remote district (Wayanad / Palakkad) — hero is dark; links in white sections */
.district-page--remote .district-body a:not(.odic-btn-link):not(.district-cta__btn) {
    color: var(--district-link);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 90, 0, 0.35);
}

.district-page--remote .district-body a:not(.odic-btn-link):not(.district-cta__btn):hover {
    color: var(--district-link-hover);
    border-bottom-color: var(--district-link-hover);
}
