/* =========================================================
   RESEARCH SERVICES PAGE — restyled to match Lexoria homepage
   ========================================================= */

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.9;
}

.research-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    border-radius: 0 0 42px 42px;
}

.research-hero::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: rgba(200, 164, 93, 0.10);
    right: -200px;
    top: -180px;
}

.research-hero::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(200, 164, 93, 0.08);
    left: -120px;
    bottom: -120px;
}

.research-hero .section-title {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.research-hero h1 {
    color: #fff;
    font-weight: 800;
    line-height: 1.4;
    font-size: clamp(1.7rem, 4.2vw, 2.8rem);
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.research-hero .lead {
    opacity: .92;
    line-height: 2;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.88);
}

.research-hero .btn-warning {
    background: linear-gradient(135deg, var(--primary), #d8bb79);
    border: none;
    color: #fff;
    box-shadow: 0 12px 30px rgba(200, 164, 93, 0.28);
    font-weight: 600;
}

.research-hero .btn-warning:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    color: #fff;
}

.research-hero .btn-outline-light {
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    transition: .3s ease;
}

.hero-stat:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.13);
}

.hero-stat h3 {
    color: var(--primary);
    font-size: 30px;
    margin-bottom: 6px;
    font-weight: 800;
}

.hero-stat span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.intro-card,
.service-card,
.process-card,
.why-card {
    background: var(--card);
    border: 1px solid rgba(24, 37, 59, 0.06);
    box-shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
    border-radius: 20px;
    transition: all .3s ease;
    height: 100%;
}

.intro-card { padding: 40px; text-align: center; }
.service-card { padding: 40px; }
.process-card { padding: 35px; text-align: center; }
.why-card { padding: 35px; text-align: center; }

.intro-card:hover,
.service-card:hover,
.process-card:hover,
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
}

.premium-card { border: 2px solid var(--primary); }

.intro-card h4,
.why-card h4 {
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.intro-card p,
.why-card p {
    color: #5b6572;
    line-height: 2;
}

.service-card h3 {
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--dark);
}

.service-card p { color: #5b6572; line-height: 2; }
.service-card ul { margin-top: 22px; padding-right: 20px; }
.service-card li { margin-bottom: 10px; color: var(--text); }

.service-icon,
.why-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(200, 164, 93, 0.12);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
    margin-bottom: 22px;
}

.why-icon { margin: 0 auto 18px; }
.intro-card .service-icon { margin: 0 auto 22px; }

.process-number {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #d8bb79);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 18px;
    box-shadow: 0 10px 24px rgba(200, 164, 93, 0.32);
}

.process-card h5 { font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.process-card p { color: #5b6572; line-height: 1.9; }

.mini-box {
    background: #fff;
    border: 1px solid rgba(24, 37, 59, 0.08);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    transition: .3s ease;
}

.mini-box:hover {
    background: linear-gradient(135deg, var(--primary), #d8bb79);
    color: #fff;
    border-color: transparent;
}

.cta-section { padding: 80px 0; }

.cta-box {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    border-radius: 32px;
    padding: 55px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(200, 164, 93, 0.10);
    right: -120px;
    top: -120px;
}

.cta-box h2 { color: #fff; font-weight: 800; text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3); }
.cta-box p { color: rgba(255, 255, 255, 0.9); }

.cta-box .btn-warning {
    background: linear-gradient(135deg, var(--primary), #d8bb79);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: 14px 32px;
    box-shadow: 0 12px 30px rgba(200, 164, 93, 0.3);
}

.cta-box .btn-warning:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    color: #fff;
}

.contact-box {
    background: var(--card);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
}

.contact-box .form-control,
.contact-box .form-select,
.contact-box select.form-control {
    border-radius: 12px;
    min-height: 52px;
    border: 1px solid rgba(24, 37, 59, 0.12);
}

.contact-box textarea.form-control { min-height: 160px; resize: vertical; }

.contact-box .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(200, 164, 93, 0.18);
}

.contact-box .btn-primary { border-radius: 12px; padding: 14px; font-weight: 600; }

.accordion-item {
    border: none;
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.accordion-button { font-weight: 600; color: var(--dark); background: #fff; }

.accordion-button:not(.collapsed) {
    background: rgba(200, 164, 93, 0.10);
    color: var(--primary-hover);
    box-shadow: none;
}

.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(200, 164, 93, 0.18); }
.accordion-body { color: #5b6572; line-height: 2; }

@media (max-width: 991px) {
    .research-hero { padding: 100px 0 50px; text-align: center; }
}

@media (max-width: 768px) {
    .cta-box { padding: 40px 25px; text-align: center; }
    .cta-box .col-lg-4.text-lg-end { text-align: center !important; margin-top: 20px; }
    .contact-box { padding: 28px; }
}

/* ---------------------------------------------------------
   ARTICLE PAGES (research content cluster)
   --------------------------------------------------------- */
.example-box {
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 14px;
    border: 1px solid rgba(24, 37, 59, 0.08);
    background: #fff;
    border-right: 4px solid #6c757d;
}

.example-box.wrong { border-right-color: #c0392b; background: rgba(192, 57, 43, 0.05); }
.example-box.correct { border-right-color: #1e8449; background: rgba(30, 132, 73, 0.05); }

.example-box .label {
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6c757d;
    margin-bottom: 6px;
    display: block;
}

.example-box.wrong .label { color: #c0392b; }
.example-box.correct .label { color: #1e8449; }
.example-box p { margin: 0; direction: ltr; text-align: left; color: #243041; }

.article-table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    font-size: .95rem;
}

.article-table th,
.article-table td {
    border: 1px solid rgba(24, 37, 59, 0.08);
    padding: 10px 14px;
    text-align: right;
    vertical-align: top;
}

.article-table th { background: rgba(200, 164, 93, 0.12); font-weight: 700; color: var(--dark); }

.toc-pill {
    display: inline-block;
    padding: 7px 16px;
    margin: 4px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid rgba(24, 37, 59, 0.08);
    color: var(--text);
    font-size: .85rem;
    text-decoration: none;
    font-weight: 600;
}

.toc-pill:hover { background: #c8a45d; color: #fff; }

.article-body h2 { margin-top: 34px; margin-bottom: 14px; }
.article-body h3 { margin-top: 26px; margin-bottom: 10px; }

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(24, 37, 59, 0.1);
}

.checklist-item i { color: #c8a45d; margin-top: 3px; }

.related-article-card {
    background: var(--card);
    border: 1px solid rgba(24, 37, 59, 0.06);
    border-radius: 18px;
    padding: 22px;
    height: 100%;
    transition: .3s ease;
    text-decoration: none;
    display: block;
}

.related-article-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(16, 24, 40, 0.1); }
.related-article-card .cat { color: #b28b42; font-size: .78rem; font-weight: 700; }
.related-article-card h5 { color: var(--dark); margin: 8px 0; }
.related-article-card p { color: #5b6572; font-size: .9rem; margin-bottom: 0; }

/* ---------------------------------------------------------
   ARTICLE SIDEBAR TOC + BACK-TO-TOP
   --------------------------------------------------------- */
.toc-sidebar { position: sticky; top: 100px; }

.toc-sidebar-card {
    border: 1px solid rgba(24, 37, 59, 0.08);
    border-radius: 16px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
}

.toc-sidebar-card .toc-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    font-size: .92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-sidebar-card .nav-link {
    color: #5b6572;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .87rem;
    margin-bottom: 2px;
    border-right: 3px solid transparent;
    transition: .2s;
}

.toc-sidebar-card .nav-link:hover { background: rgba(200, 164, 93, 0.08); color: #b28b42; }

.toc-sidebar-card .nav-link.active {
    background: rgba(200, 164, 93, 0.12);
    color: #b28b42;
    border-right-color: #c8a45d;
    font-weight: 700;
}

.toc-mobile-toggle {
    border-radius: 12px;
    border: 1px solid rgba(200, 164, 93, 0.4);
    color: #b28b42;
    background: rgba(200, 164, 93, 0.06);
    font-weight: 600;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.toc-mobile-toggle:hover { background: rgba(200, 164, 93, 0.12); color: #b28b42; }

.back-to-top {
    position: fixed;
    bottom: 26px;
    left: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8a45d, #d8bb79);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(200, 164, 93, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s ease;
    z-index: 1050;
    text-decoration: none;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: #fff; transform: translateY(-4px); }

@media (max-width: 991px) {
    .toc-sidebar { position: static; }
}

/* ---------------------------------------------------------
   READING TIME BADGE + CONTENT-CLUSTER LISTS
   --------------------------------------------------------- */
.read-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(200, 164, 93, 0.12);
    color: #b28b42;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}

.doc-list { list-style: none; padding-right: 0; margin-top: 14px; }

.doc-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.9;
}

.doc-list li i { color: #c8a45d; margin-top: 4px; flex-shrink: 0; }
.doc-list-warn li i { color: #c0392b; }

article.contact-card a,
.article-body a {
    color: #b28b42;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(200, 164, 93, 0.4);
}

article.contact-card a:hover,
.article-body a:hover { color: #c8a45d; }
