/* ═══════════════════════════════════════════════════════
   ACCORG CONSULTING — Custom CSS
   Phase 3: Polished styles on top of Justica template
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   LOGO SIZE FIX
   ═══════════════════════════════════════════════════════ */
#logo img.logo,
#logo img.logo-2 {
    height: 55px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain;
}

@media (max-width: 767px) {
    #logo img.logo,
    #logo img.logo-2 {
        height: 42px !important;
        max-width: 160px !important;
    }
}

/* ═══════════════════════════════════════════════════════
   CARD SYSTEM — Targeted Equal-Height Fix
   Covers: Service Cards, Blog Cards, Testimonials
   ═══════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────
   1. SERVICE FEATURE BOXES (services page grid)
   .feature-box.f-boxed.style-3
   Equal height via: col wraps become flex, card fills height
   ────────────────────────────────────────────────────── */

/* Only target cols that directly wrap a feature-box */
.col-lg-4:has(> .feature-box.f-boxed),
.col-md-6:has(> .feature-box.f-boxed) {
    display: flex;
    flex-direction: column;
}

.feature-box.f-boxed.style-3 {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 260px;
    box-sizing: border-box;
}
.feature-box.f-boxed.style-3 .text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.feature-box.f-boxed.style-3 .text h4 { margin-bottom: 10px; }
.feature-box.f-boxed.style-3 .text p  { flex: 1 1 auto; margin-bottom: 0; }
.feature-box.f-boxed.style-3 .spacer-single { flex-shrink: 0; margin-top: auto; }
/* Keep button inline-block — do NOT set align-self which causes stretch */
.feature-box.f-boxed.style-3 .btn-custom {
    display: inline-block !important;
    width: auto !important;
}

/* ──────────────────────────────────────────────────────
   2. SERVICE POSTER CARDS (de-card-poster)
   All cards in the same row get the same fixed height.
   d-content uses absolute positioning — safe from flex issues.
   ────────────────────────────────────────────────────── */
.de-card-poster {
    position: relative !important;
    overflow: hidden !important;
    height: 360px !important;
    width: 100%;
    border-radius: 4px;
    /* Do NOT use flex here — d-image/d-content are absolute */
}

/* d-image fills card — override template's 110% margin hack */
.de-card-poster .d-image {
    position: absolute !important;
    top: 0 !important; right: 0 !important;
    bottom: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin-left: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    transition: transform 0.5s ease;
}
.de-card-poster:hover .d-image {
    transform: scale(1.05);
    margin-left: 0 !important;
}

/* Gradient overlay — always visible, dark at bottom */
.de-card-poster .d-overlay {
    position: absolute !important;
    top: 0 !important; right: 0 !important;
    bottom: 0 !important; left: 0 !important;
    min-height: 100% !important;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.40) 45%,
        rgba(0,0,0,0.10) 100%
    ) !important;
    z-index: 1;
    transition: background 0.35s ease;
}
.de-card-poster:hover .d-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.65) 55%,
        rgba(0,0,0,0.20) 100%
    ) !important;
}

/* Content at bottom — always visible */
.de-card-poster .d-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0; right: 0;
    z-index: 2;
    margin: 0 !important;
    padding: 18px 22px 20px !important;
}
.de-card-poster:hover .d-content { margin-bottom: 0 !important; }

/* h3 — icon is absolute inside it (template behaviour) */
.de-card-poster .d-content h3 {
    font-size: 17px !important;
    line-height: 1.35;
    padding-left: 38px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: solid 1px rgba(255,255,255,0.35);
    white-space: normal;
    word-break: break-word;
    color: #fff !important;
    position: relative;   /* needed for icon absolute */
}
.de-card-poster .d-content h3 i {
    font-size: 26px;
    position: absolute;
    left: 0;
    top: 0;
    color: #f0c060;
}

/* d-text always visible */
.de-card-poster .d-content .d-text {
    max-height: none !important;
    opacity: 1 !important;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    margin-top: 6px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More — inline, gold */
.de-card-poster .btn-main {
    opacity: 1 !important;
    display: inline-block !important;
    font-size: 11px;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: #f0c060 !important;
    text-transform: uppercase;
    width: auto !important;
}

/* ──────────────────────────────────────────────────────
   3. BLOG CARDS — equal height within grid rows
   Use :has selector on col (modern) + safe fallback
   ────────────────────────────────────────────────────── */
.col-lg-4:has(> .bloglist.item),
.col-md-6:has(> .bloglist.item) {
    display: flex;
    flex-direction: column;
}

.bloglist.item {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.bloglist.item:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

/* post-content/user-post: fills the card vertically */
.bloglist .post-content,
.bloglist .user-post {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* post-image: fixed height image block */
.bloglist .post-image {
    flex-shrink: 0;
    overflow: hidden;
    height: 220px;
    display: block;
    position: relative;
}
.bloglist .post-image a {
    display: block;
    height: 100%;
}
.bloglist .post-image img {
    width: 100%;
    height: 220px !important;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.bloglist.item:hover .post-image img { transform: scale(1.04); }

/* post-text: grows, flexbox column */
.bloglist .post-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 18px;
    position: relative;
}
.bloglist .post-text .p-tagline { display: inline-block; margin-bottom: 10px; }
.bloglist .post-text h4 {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 8px;
}
.bloglist .post-text h4 a { color: inherit; }
.bloglist .post-text h4 a:hover { color: #b59a6a; }
.bloglist .post-text > p {
    flex: 1 1 auto;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
}
/* Read More always sticks to bottom */
.bloglist .post-text .btn-custom {
    display: inline-block !important;
    width: auto !important;
    align-self: flex-start;
    margin-top: auto;
}

/* Date badge — sits on top-right of the image, not the text area */
.bloglist .date-box {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #b59a6a;
    color: #fff;
    text-align: center;
    padding: 5px 9px;
    border-radius: 4px;
    font-weight: 700;
    line-height: 1.1;
    z-index: 5;
    min-width: 38px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    pointer-events: none;
}
.bloglist .date-box .m { font-size: 1.1rem; font-weight: 800; display: block; }
.bloglist .date-box .d { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; display: block; }

/* blog meta */
.bloglist .blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.77rem;
    color: #999;
    margin-bottom: 10px;
}

/* ──────────────────────────────────────────────────────
   4. TESTIMONIALS — equal height blockquotes in owl
   ────────────────────────────────────────────────────── */
.owl-item .de_testi.opt-2 { height: 100%; }
.owl-item .de_testi.opt-2 blockquote {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-height: 180px;
}
.owl-item .de_testi.opt-2 blockquote p { flex: 1; }

/* ──────────────────────────────────────────────────────
   5. RESPONSIVE
   ────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
    .de-card-poster        { height: 320px !important; }
    .bloglist .post-image  { height: 190px; }
    .bloglist .post-image img { height: 190px !important; }
}

@media (max-width: 767px) {
    .de-card-poster        { height: 270px !important; }
    .de-card-poster .d-content { padding: 14px 16px 16px !important; }
    .de-card-poster .d-content h3 { font-size: 14px !important; padding-left: 30px; }
    .de-card-poster .d-content h3 i { font-size: 20px; }
    .de-card-poster .d-content .d-text { -webkit-line-clamp: 2; }
    .bloglist .post-image  { height: 195px; }
    .bloglist .post-image img { height: 195px !important; }
    .feature-box.f-boxed.style-3 { min-height: 210px; }
}

@media (max-width: 480px) {
    .de-card-poster        { height: 250px !important; }
    .bloglist .post-image  { height: 175px; }
    .bloglist .post-image img { height: 175px !important; }
}





/* ═══════════════════════════════════════════════════════
   TEMPLATE OVERRIDE FIXES

   Fix Justica template issues: button hover white text,
   dropdown link color, feature-box hover visibility.
   ═══════════════════════════════════════════════════════ */

/* Fix: btn-custom text always visible, gold hover background */
.btn-custom,
a.btn-custom,
button.btn-custom {
    color: #fff !important;
}
.btn-custom:hover,
a.btn-custom:hover,
button.btn-custom:hover {
    background-color: #9c7f4f !important;
    color: #fff !important;
    border-color: #9c7f4f !important;
}
/* Fix: btn-border variant — dark bg on hover instead of white */
.btn-custom.btn-border {
    color: #1a1a2e !important;
    border-color: #1a1a2e;
}
.btn-custom.btn-border:hover {
    background-color: #1a1a2e !important;
    border-color: #1a1a2e !important;
    color: #fff !important;
}

/* Fix: feature-box and nft__item hover — text must stay dark */
.feature-box:hover *,
.de-box:hover *,
.nft__item:hover * {
    color: inherit;
}

/* Fix: template's #mainmenu dropdown hover sets color:#fff which
   bleeds into .de-filter-menu and similar nav-adjacent elements. */
.de-filter-menu a { color: #1a1a2e; }
.de-filter-menu a:hover,
.de-filter-menu a.active { background: #b59a6a; color: #fff; border-color: #b59a6a; }

/* Fix: dark-section links should not inherit white-text hover from mainmenu */
#section-services a.btn-custom:hover { color: #fff !important; }

/* Define btn-black — dark charcoal button */
.btn-custom.btn-black,
a.btn-custom.btn-black {
    background: #1a1a2e;
    color: #fff !important;
    border-color: #1a1a2e;
}
.btn-custom.btn-black:hover,
a.btn-custom.btn-black:hover {
    background: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #fff !important;
}

/* Define btn-border light — outline on dark/image background */
.btn-custom.btn-border.light,
a.btn-custom.btn-border.light {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.75);
}
.btn-custom.btn-border.light:hover,
a.btn-custom.btn-border.light:hover {
    background: #fff !important;
    color: #1a1a2e !important;
    border-color: #fff !important;
}

/* ── General Utilities ────────────────────────────────── */
.mt10  { margin-top: 10px; }
.mt20  { margin-top: 20px; }
.mt30  { margin-top: 30px; }
.mb10  { margin-bottom: 10px; }
.mb20  { margin-bottom: 20px; }
.pt40  { padding-top: 40px; }
.pb40  { padding-bottom: 40px; }
.text-gold  { color: #b59a6a; }
.bg-light-gray { background: #f7f8fa; }

/* ── Service Content Page ────────────────────────────── */
.service-content h2 {
    font-size: 1.6rem;
    margin-top: 35px;
    margin-bottom: 12px;
    color: #1a1a2e;
    border-left: 4px solid #b59a6a;
    padding-left: 14px;
}
.service-content h3 {
    font-size: 1.2rem;
    margin-top: 24px;
    color: #2c3e50;
}
.service-content ul, .service-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
    line-height: 1.85;
}
.service-content li { margin-bottom: 6px; }
.service-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}
.service-content table th {
    background: #1a1a2e;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
}
.service-content table td {
    border: 1px solid #dee2e6;
    padding: 9px 14px;
}
.service-content table tr:nth-child(even) td { background: #f7f8fa; }

/* FAQ items inside service pages */
.service-content .faq-section h3 {
    color: #b59a6a;
    margin-top: 20px;
    font-size: 1.05rem;
}

/* ── Blog Cards ──────────────────────────────────────── */
.bloglist .post-content { border-radius: 6px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.bloglist .post-image img { width: 100%; height: 210px; object-fit: cover; transition: transform .4s ease; }
.bloglist:hover .post-image img { transform: scale(1.04); }
.bloglist .post-text { padding: 18px 20px 24px; }
.bloglist .post-text h4 a { color: #1a1a2e; font-size: 1.05rem; line-height: 1.5; }
.bloglist .post-text h4 a:hover { color: #b59a6a; }
.bloglist .p-tagline {
    display: inline-block;
    background: #b59a6a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

/* ── Blog Single Post ─────────────────────────────────── */
.blog-post-content h2, .blog-post-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}
.blog-post-content h2 { font-size: 1.5rem; color: #1a1a2e; }
.blog-post-content h3 { font-size: 1.15rem; }
.blog-post-content ul, .blog-post-content ol {
    padding-left: 22px;
    margin-bottom: 16px;
    line-height: 1.9;
}
.blog-post-content li { margin-bottom: 5px; }
.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}
.blog-post-content table th {
    background: #1a1a2e;
    color: #fff;
    padding: 9px 12px;
    text-align: left;
}
.blog-post-content table td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
}
.blog-post-content table tr:nth-child(even) td { background: #f7f8fa; }

/* Author box */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f7f8fa;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #b59a6a;
    border-radius: 8px;
    padding: 22px;
    margin: 40px 0 30px;
}
.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.author-box h5 { margin: 0 0 4px; font-size: 1.05rem; }
.author-box .author-title { color: #b59a6a; font-size: 0.85rem; margin-bottom: 8px; display: block; }
.author-box p { margin: 0; font-size: 0.92rem; line-height: 1.7; }

/* Social share */
.share-buttons { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    color: #fff !important;
    transition: opacity .2s;
}
.share-btn:hover { opacity: .85; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.linkedin { background: #0077B5; }
.share-btn.twitter  { background: #1DA1F2; }

/* Blog sidebar */
.blog-sidebar .widget {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 28px;
}
.blog-sidebar .widget h5 {
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 2px solid #b59a6a;
    padding-bottom: 10px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.blog-sidebar .recent-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.blog-sidebar .recent-post-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.blog-sidebar .recent-post-item img { width: 60px; height: 54px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.blog-sidebar .rpi-text a { font-size: 0.88rem; line-height: 1.5; font-weight: 600; color: #1a1a2e; }
.blog-sidebar .rpi-text a:hover { color: #b59a6a; }

/* Tags */
.tag-cloud a {
    display: inline-block;
    background: #f0f2f5;
    color: #3a3a4a;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.82rem;
    margin: 3px 3px 3px 0;
    transition: all .2s;
}
.tag-cloud a:hover { background: #b59a6a; color: #fff; }

/* ── Pagination ───────────────────────────────────────── */
.pagination-wrap { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 40px 0; }
.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    transition: all .2s;
    text-decoration: none;
}
.pagination-wrap a:hover,
.pagination-wrap span.current {
    background: #b59a6a;
    border-color: #b59a6a;
    color: #fff;
}
.pagination-wrap span.current { pointer-events: none; }

/* ── Category Filter Tabs ─────────────────────────────── */
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.category-tabs a {
    padding: 7px 18px;
    border-radius: 25px;
    border: 1px solid #dee2e6;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    transition: all .2s;
}
.category-tabs a:hover,
.category-tabs a.active {
    background: #b59a6a;
    border-color: #b59a6a;
    color: #fff;
}

/* ── Case Studies ─────────────────────────────────────── */
.case-study-card {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.case-study-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.13); }

/* Dark gradient header */
.case-study-card .cs-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%);
    padding: 22px 22px 18px;
    color: #fff;
    flex-shrink: 0;
}
.case-study-card .cs-industry {
    display: inline-block;
    background: rgba(181,154,106,.22);
    color: #f0c060;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}
.case-study-card .cs-industry i { margin-right: 5px; }
.case-study-card .cs-header h4 { color: #fff; font-size: 1rem; margin: 0; line-height: 1.55; }

/* Body */
.case-study-card .cs-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.case-study-card .cs-challenge {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 14px;
}
.case-study-card .cs-challenge strong { display: block; margin-bottom: 5px; }

.case-study-card .cs-outcome {
    background: #f0f9f0;
    border-left: 3px solid #27ae60;
    padding: 10px 14px;
    font-size: 0.88rem;
    line-height: 1.7;
    border-radius: 0 4px 4px 0;
    margin-top: auto;
}
.case-study-card .cs-outcome strong { color: #27ae60; display: block; margin-bottom: 4px; }

/* Footer */
.case-study-card .cs-footer {
    padding: 13px 22px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}
.case-study-card .cs-footer a:first-child {
    font-size: 0.88rem;
    font-weight: 700;
    color: #b59a6a;
    text-decoration: none;
    transition: color .2s;
}
.case-study-card .cs-footer a:first-child:hover { color: #9c7f4f; }
.case-study-card .cs-footer a:first-child i { margin-left: 4px; }

/* ── Contact Form ─────────────────────────────────────── */
.contact-form-wrap .form-control {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 11px 15px;
    font-size: 0.95rem;
    transition: border-color .2s, box-shadow .2s;
}
.contact-form-wrap .form-control:focus {
    border-color: #b59a6a;
    box-shadow: 0 0 0 3px rgba(181,154,106,.18);
    outline: none;
}
.contact-form-wrap .form-group { margin-bottom: 18px; }
.contact-form-wrap label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; display: block; }
.contact-form-wrap .btn-send {
    background: #b59a6a;
    color: #fff;
    border: none;
    padding: 12px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    width: 100%;
}
.contact-form-wrap .btn-send:hover { background: #9c7f4f; transform: translateY(-1px); }
.contact-form-wrap .btn-send:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Form status messages — hidden by default, shown via jQuery .show() */
.form-msg {
    display: none;
    padding: 14px 18px;
    border-radius: 5px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.95rem;
}
.form-msg.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-msg.error   { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Testimonials Page ───────────────────────────────── */
.testimonial-card {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    height: 100%;
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    color: #b59a6a;
    opacity: .18;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    font-family: Georgia, serif;
}
.testimonial-card .stars { color: #f1c40f; margin-bottom: 14px; font-size: 0.9rem; }
.testimonial-card .content { font-style: italic; line-height: 1.8; margin-bottom: 18px; font-size: 0.96rem; }
.testimonial-card .client-info { display: flex; align-items: center; gap: 14px; }
.testimonial-card .client-info img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #b59a6a;
}
.testimonial-card .client-info .initials-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #b59a6a);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testimonial-card .client-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-card .client-title { font-size: 0.82rem; color: #888; }

/* ── Team Cards ───────────────────────────────────────── */
.team-card-custom {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.07);
    transition: transform .3s;
}
.team-card-custom:hover { transform: translateY(-5px); }
.team-card-custom .team-img-wrap { position: relative; overflow: hidden; height: 260px; }
.team-card-custom .team-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.team-card-custom:hover .team-img-wrap img { transform: scale(1.06); }
.team-card-custom .team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,46,.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}
.team-card-custom:hover .team-overlay { opacity: 1; }
.team-card-custom .team-body { padding: 20px; }
.team-card-custom .team-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.team-card-custom .team-designation { color: #b59a6a; font-size: 0.85rem; margin-bottom: 10px; }
.team-card-custom .team-specialization { font-size: 0.83rem; color: #777; line-height: 1.6; }

/* ── FAQ Accordion ────────────────────────────────────── */
.faq-accordion .faq-item {
    border: 1px solid #e8ecef;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-accordion .faq-question {
    padding: 16px 20px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.98rem;
    transition: background .2s;
}
.faq-accordion .faq-question:hover { background: #fafafa; }
.faq-accordion .faq-question.active { background: #1a1a2e; color: #fff; }
.faq-accordion .faq-question .faq-icon { font-size: 1.2rem; transition: transform .3s; flex-shrink: 0; }
.faq-accordion .faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-accordion .faq-answer {
    display: none;
    padding: 16px 20px 18px;
    background: #f9f9f9;
    font-size: 0.94rem;
    line-height: 1.8;
    border-top: 1px solid #e8ecef;
}
.faq-category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b59a6a;
    border-bottom: 2px solid #b59a6a;
    padding-bottom: 10px;
    margin: 40px 0 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── 404 Page ─────────────────────────────────────────── */
.page-404 { text-align: center; padding: 80px 0; }
.page-404 .error-code { font-size: 120px; font-weight: 900; color: #b59a6a; line-height: 1; }
.page-404 h2 { font-size: 2rem; margin-bottom: 16px; }

/* ── Breadcrumb ───────────────────────────────────────── */
.breadcrumb-accorg { background: transparent; padding: 0; margin: 0; }
.breadcrumb-accorg li { font-size: 0.85rem; }
.breadcrumb-accorg a { color: #b59a6a; }
.breadcrumb-accorg .active { color: rgba(255,255,255,.7); }
.breadcrumb-accorg .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ── Flash Messages ───────────────────────────────────── */
.flash-message {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.flash-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-message.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-message.info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── Related Services Sidebar ────────────────────────── */
.sidebar-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%);
    color: #fff;
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    margin-bottom: 28px;
}
.sidebar-cta h4 { color: #f0c060; margin-bottom: 14px; }
.sidebar-cta p { font-size: 0.92rem; opacity: .85; margin-bottom: 18px; }
.sidebar-cta .phone-link {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #f0c060;
    margin-bottom: 16px;
    text-decoration: none;
}
.sidebar-cta .btn-consult {
    display: block;
    background: #b59a6a;
    color: #fff;
    padding: 11px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}
.sidebar-cta .btn-consult:hover { background: #9c7f4f; color: #fff; }

/* Related services list */
.related-services-list { list-style: none; padding: 0; margin: 0; }
.related-services-list li { border-bottom: 1px solid #f0f0f0; padding: 10px 0; }
.related-services-list li:last-child { border-bottom: none; }
.related-services-list a { font-size: 0.92rem; color: #1a1a2e; display: flex; align-items: center; gap: 8px; }
.related-services-list a:hover { color: #b59a6a; }
.related-services-list a i { color: #b59a6a; font-size: 0.8rem; }

/* ── Case Study Single Page ─────────────────────────── */
.case-study-meta-box {
    background: #f7f8fa;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 28px;
}
.cs-meta-item { margin-bottom: 14px; }
.cs-meta-item .cs-meta-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: #888;
    margin-bottom: 4px;
}
.cs-meta-item .cs-meta-value { font-weight: 600; font-size: 0.95rem; }

.cs-outcome-box {
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    border-left: 4px solid #27ae60;
    border-radius: 6px;
    padding: 20px 22px;
    margin: 28px 0;
}
.cs-outcome-box h4 { color: #27ae60; font-size: 1rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .05em; }

/* ═══════════════════════════════════════════════════════
   ACCORG MEGA MENU — #accorg-mega
   Lives inside <header> but OUTSIDE #mainmenu.
   Template CSS has zero effect on this element.
   ═══════════════════════════════════════════════════════ */

/* ── Mega menu wrapper — hidden by default ─────────── */
#accorg-mega {
    display: none;
    position: absolute;
    top: 100%;          /* flush below header bottom edge */
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 3px solid #b59a6a;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    z-index: 9999;
    animation: megaFadeIn .18s ease;
}
#accorg-mega.mega-open { display: block; }

@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Inner container: 3-column flex ──────────────────  */
.mega-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: stretch;
}

/* ── Each column ──────────────────────────────────────  */
.mega-col {
    flex: 1;
    border-right: 1px solid #efefef;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.mega-col:last-child { border-right: none; }
.mega-col-indore { background: #fffefa; }
.mega-col-fin    { background: #f9fafc; }

/* ── Column heading ────────────────────────────────── */
.mega-col-hd {
    padding: 12px 18px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #b59a6a;
    border-bottom: 1px solid #f0e8d5;
    background: #fffdf8;
    white-space: nowrap;
    line-height: 1.5;
}
.mega-col-indore .mega-col-hd { background: #fffbf0; }
.mega-col-fin    .mega-col-hd { background: #f0f4ff; }

.mega-col-hd i   { margin-right: 6px; opacity: .75; font-size: 12px; }
.mega-col-hd span { color: #bbb; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .65rem; }

/* ── Service links ─────────────────────────────────── */
.mega-col > a {
    display: block;
    padding: 9px 18px;
    font-size: 0.84rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: color .13s, background .13s, padding-left .13s;
    white-space: nowrap;
    line-height: 1.4;
}
.mega-col > a:hover {
    color: #b59a6a;
    background: #fffbf0;
    padding-left: 26px;
    border-bottom-color: #f0e8d5;
}
.mega-col > a > i.fa-angle-right {
    font-size: 10px;
    color: #ccc;
    margin-right: 7px;
    transition: color .13s;
}
.mega-col > a:hover > i.fa-angle-right { color: #b59a6a; }

/* ── Info note at bottom of Indore column ─────────── */
.mega-col-note {
    margin-top: auto;
    padding: 10px 18px 12px;
    font-size: 0.72rem;
    color: #aaa;
    border-top: 1px solid #f0e8d5;
    background: #fffbf5;
    line-height: 1.5;
}
.mega-col-note i { margin-right: 5px; color: #b59a6a; }

/* ── Services nav item: show arrow when active ────── */
#nav-services.has-mega > a::after {
    content: '\f107';
    font-family: 'FontAwesome';
    margin-left: 5px;
    font-size: 11px;
    opacity: .6;
    display: inline-block;
    transition: transform .15s;
}
#nav-services.has-mega.mega-active > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Keep services submenu hidden on desktop; mega menu handles desktop UX */
#nav-services > ul.mobile-services-submenu {
    display: none !important;
}

/* ── Responsive: hide mega on mobile (use standard nav) */
@media (max-width: 991px) {
    #accorg-mega { display: none !important; }

    /* Enable mobile services dropdown list in collapsed nav */
    #nav-services > ul.mobile-services-submenu {
        display: block !important;
    }

    /* Mobile hero CTA buttons: full-width, no overlap */
    .hero-cta-group {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    .hero-cta-group .btn-custom,
    .hero-cta-group .btn-custom.btn-border.light {
        display: block !important;
        width: 100%;
        min-height: 44px;
        text-align: center;
        margin: 0 !important;
    }
}

@media (max-width: 767px) {
    .author-box { flex-direction: column; align-items: center; text-align: center; }
    .page-404 .error-code { font-size: 80px; }
    .share-buttons { justify-content: center; }
    .category-tabs { justify-content: center; }
    .blog-sidebar { margin-top: 40px; }
    .service-content h2 { font-size: 1.3rem; }
}
