/* ============================================================
 * Hero slider + live ticker — replicated from homepage-v2.css
 * Used in methodology page header (above .mtg-layout).
 * ============================================================ */

.hp2-widget {
    background: rgba(15, 20, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}

.hp2-hero-widget {
    margin-top: 0;
    margin-bottom: 16px;
}

.hp2-hero {
    display: flex;
    align-items: center;
    padding: 18px 28px 16px;
    position: relative;
    overflow: hidden;
    background: #0a0e1a;
}

.hp2-hero::before {
    content: '';
    position: absolute;
    width: 55%;
    height: 450%;
    top: -175%;
    left: -15%;
    background: radial-gradient(ellipse at center, rgba(56, 132, 255, 0.30) 0%, transparent 65%);
    animation: hp2-mesh-drift-1 14s ease-in-out infinite alternate;
    filter: blur(30px);
    will-change: transform;
    pointer-events: none;
    z-index: 0;
}

.hp2-hero::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 450%;
    top: -175%;
    right: -10%;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 25% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 55%);
    animation: hp2-mesh-drift-2 18s ease-in-out infinite alternate;
    filter: blur(30px);
    will-change: transform;
    pointer-events: none;
    z-index: 0;
}

@keyframes hp2-mesh-drift-1 {
    0%   { transform: translateX(0) scale(1); }
    50%  { transform: translateX(65%) scale(1.1); }
    100% { transform: translateX(130%) scale(1); }
}
@keyframes hp2-mesh-drift-2 {
    0%   { transform: translateX(0) scale(1); }
    50%  { transform: translateX(-55%) scale(1.1); }
    100% { transform: translateX(-110%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hp2-hero::before, .hp2-hero::after { animation: none; }
}

.hp2-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hp2-hero-left {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.hp2-hero-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.hp2-hero-slider {
    display: grid;
    align-items: center;
    min-height: 100px;
}

.hp2-hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.hp2-hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hp2-hero-slide h1,
.hp2-hero-slide h2,
.hp2-hero-slide .hp2-hero-h1 {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff, #3b8aff, #3b82f6, #fff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hp2-title-gradient 8s ease infinite;
}

@keyframes hp2-title-gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hp2-hero-slide .hp2-hero-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3b8aff;
    margin: 0 0 8px;
    text-shadow: 0 0 30px rgba(56, 132, 255, 0.3);
}

.hp2-hero-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    margin: 0;
    max-width: 520px;
}

.hp2-hero-dots {
    display: flex;
    gap: 6px;
    margin: 10px 0 0;
}

.hp2-hero-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hp2-hero-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hp2-hero-dot.active { width: 36px; }
.hp2-hero-dot.active::after {
    width: 22px;
    border-radius: 4px;
    background: #3b8aff;
}
.hp2-hero-dot:hover::after { background: rgba(255, 255, 255, 0.4); }
.hp2-hero-dot.active:hover::after { background: #3b8aff; }

.hp2-hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hp2-hero-cta .btn-primary,
.hp2-hero-cta .btn-outline {
    white-space: nowrap;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.hp2-hero-cta .btn-primary {
    background: linear-gradient(135deg, #3b8aff, #3b82f6);
    color: #ffffff;
    border: 1px solid rgba(56, 132, 255, 0.4);
}

.hp2-hero-cta .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(56, 132, 255, 0.35);
    text-decoration: none;
}

.hp2-hero-cta .btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hp2-hero-cta .btn-outline:hover {
    border-color: rgba(56, 132, 255, 0.6);
    color: #3b8aff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hp2-hero-inner   { flex-direction: column; text-align: center; }
    .hp2-hero-left    { text-align: center; }
    .hp2-hero-dots    { justify-content: center; }
    .hp2-hero-right   { align-items: center; width: 100%; }
    .hp2-hero-cta     { justify-content: center; }
    .hp2-hero-desc    { margin-left: auto; margin-right: auto; }
    .hp2-hero-slide h1,
    .hp2-hero-slide .hp2-hero-h1 { font-size: 1.45rem; }
}

/* Live ticker bar */
.hp2-ticker {
    background: #0f1420;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
    height: 44px;
}

.hp2-ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: linear-gradient(90deg, #0f1420 80%, transparent);
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #3b8aff;
    gap: 6px;
}

.hp2-ticker-dot {
    width: 6px;
    height: 6px;
    background: #3b8aff;
    border-radius: 50%;
    animation: hp2-pulse 2s infinite;
    box-shadow: 0 0 8px #3b8aff;
}

@keyframes hp2-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}

.hp2-ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    animation: hp2-scroll 40s linear infinite;
    padding-left: 72px;
    width: max-content;
}

.hp2-ticker-track:hover { animation-play-state: paused; }

@keyframes hp2-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hp2-ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    height: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hp2-ticker-item:hover { background: rgba(255, 255, 255, 0.03); }

.hp2-ticker-name,
.hp2-ticker-price {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.hp2-ticker-price {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

.hp2-ticker-change {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.hp2-ticker-change.positive {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.hp2-ticker-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================================
 * methodology.css — /methodology page
 * Visual style mirrors Market Compass widget patterns:
 *   dark gradient bg, teal accents, glass-card surfaces.
 * Standalone (no dashboard chrome dependencies).
 * ============================================================ */

.methodology-page {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    font-size: 16px;
    padding: 0 0 80px;
    max-width: 100%;
}

.methodology-page .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Layout (blog-layout pattern, extended with right rail) ----- */
.mtg-layout {
    display: flex;
    gap: 16px;
    width: 100%;
    align-items: flex-start;
    padding: 16px 0 0 0;
    margin: 0;
}

.mtg-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ----- Right rail (stacked widgets) ----- */
.mtg-right-rail {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 132px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 152px);
    overflow-y: auto;
}

/* ============================================================
 * Sidebar — blog-sidebar style (replicated exactly from pages/blog.php)
 * Methodology sayfası blog'un sol menü stilini birebir kullanır.
 * ============================================================ */

.blog-sidebar {
    width: 220px;
    flex-shrink: 0;
    transition: width 0.3s ease;
    margin-top: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 132px;
    align-self: flex-start;
    max-height: calc(100vh - 152px);
}

.blog-sidebar::-webkit-scrollbar { width: 4px; }
.blog-sidebar::-webkit-scrollbar-track { background: transparent; }
.blog-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.blog-sidebar .sidebar-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.blog-sidebar .sidebar-menu {
    list-style: none;
    padding: 4px 0;
    margin: 0;
}

.blog-sidebar .sidebar-menu-item { margin-bottom: 1px; }

@keyframes blog-sidebar-glow-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.blog-sidebar .sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    background: transparent;
    position: relative;
    transition: color 0.25s ease;
}

.blog-sidebar .sidebar-menu-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(56, 132, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(56, 132, 255, 0.35), 0 0 10px rgba(56, 132, 255, 0.1);
    opacity: 0;
    transition: opacity 0.25s ease;
    -webkit-mask-image: linear-gradient(90deg, black 0%, black 40%, transparent 95%);
    mask-image: linear-gradient(90deg, black 0%, black 40%, transparent 95%);
    pointer-events: none;
}

.blog-sidebar .sidebar-menu-link:hover { color: #3b8aff; text-decoration: none; }
.blog-sidebar .sidebar-menu-link:hover::before {
    opacity: 1;
    animation: blog-sidebar-glow-pulse 2s ease-in-out infinite;
}

.blog-sidebar .sidebar-menu-link.active { color: #3b8aff; font-weight: 500; }
.blog-sidebar .sidebar-menu-link.active::before {
    opacity: 0.7;
    box-shadow: inset 0 0 0 1px rgba(56, 132, 255, 0.25), 0 0 8px rgba(56, 132, 255, 0.08);
}
.blog-sidebar .sidebar-menu-link.active svg { color: #3b8aff; }

.blog-sidebar .sidebar-menu-link.all-posts-link::before { display: none; }

.blog-sidebar .sidebar-menu-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease;
    stroke-width: 1.8;
}

.blog-sidebar .sidebar-menu-link:hover svg { color: #3b8aff; }

.blog-sidebar .sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 6px 14px;
}

.blog-sidebar .sidebar-section-title {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.25);
    padding: 12px 14px 6px;
    margin: 0;
}

.mtg-widget {
    background: rgba(15, 20, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    transition: border-color 0.2s;
}

.mtg-widget:hover {
    border-color: rgba(0, 200, 167, 0.25);
}

.mtg-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mtg-widget-icon {
    font-size: 16px;
    line-height: 1;
}

.mtg-widget-header h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
}

/* Widget 1: bench table */
.mtg-widget-bench {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 0;
}

.mtg-widget-bench td {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
}

.mtg-widget-bench td:first-child {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mtg-widget-bench td:last-child {
    text-align: right;
}

.mtg-widget-bench tr:last-child td {
    border-bottom: none;
}

.mtg-widget-bench-highlight td {
    background: rgba(0, 200, 167, 0.06);
}

.mtg-widget-bench-highlight strong {
    color: #00c9a7;
}

.mtg-widget-bench strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.mtg-widget-foot {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Widget 2: coverage */
.mtg-widget-coverage-headline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mtg-widget-coverage-headline strong {
    color: #00c9a7;
    font-weight: 700;
    font-size: 15px;
}

.mtg-widget-region-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mtg-widget-region-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.mtg-widget-region-list li a:hover {
    background: rgba(56, 132, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
}

.mtg-widget-region-name {
    flex: 1;
}

.mtg-widget-region-count {
    color: #00c9a7;
    font-weight: 600;
    font-size: 11px;
    background: rgba(0, 200, 167, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Widget 3: checklist */
.mtg-widget-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mtg-widget-checklist li {
    display: flex;
    gap: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}

.mtg-check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background: rgba(0, 200, 167, 0.15);
    color: #00c9a7;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
}

.mtg-widget-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #3b8aff;
    text-decoration: none;
}

.mtg-widget-link:hover {
    text-decoration: underline;
}

/* Widget 4: status */
.mtg-widget-status-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mtg-widget-status-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mtg-widget-status-list li:last-child {
    border-bottom: none;
}

.mtg-status-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mtg-status-value {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mtg-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.mtg-status-live {
    background: #00c9a7;
    box-shadow: 0 0 0 2px rgba(0, 200, 167, 0.2);
    animation: mtg-pulse 2s infinite;
}

@keyframes mtg-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Widget 5: CTA */
.mtg-widget-cta {
    background: linear-gradient(135deg, rgba(56, 132, 255, 0.08) 0%, rgba(0, 200, 167, 0.06) 100%);
    border-color: rgba(0, 200, 167, 0.2);
}

.mtg-widget-cta p {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 12px;
}

.mtg-widget-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #3b8aff, #00c9a7);
    color: #0a0e1a;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.mtg-widget-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 200, 167, 0.25);
    text-decoration: none;
}

.methodology-page p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.85);
}

.methodology-page strong {
    color: #ffffff;
    font-weight: 600;
}

.methodology-page em {
    color: #00c9a7;
    font-style: normal;
    font-weight: 500;
}

.methodology-page code {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 0.88em;
    background: rgba(0, 200, 167, 0.08);
    color: #00c9a7;
    padding: 1px 6px;
    border-radius: 4px;
}

.methodology-page a {
    color: #3b8aff;
    text-decoration: none;
}

.methodology-page a:hover {
    text-decoration: underline;
}

/* ----- Hero ----- */
.mtg-hero {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mtg-hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00c9a7;
    margin-bottom: 12px;
}

.mtg-hero-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 18px;
    background: linear-gradient(135deg, #ffffff 0%, #3b8aff 50%, #00c9a7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff; /* fallback */
}

.mtg-hero-lede {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    max-width: 800px;
    margin: 0 0 18px;
}

.mtg-hero-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
}

/* ----- Stats strip ----- */
.mtg-stats-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0 40px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(56, 132, 255, 0.06) 0%, rgba(0, 200, 167, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.mtg-stat {
    text-align: center;
}

.mtg-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #00c9a7;
    line-height: 1;
    letter-spacing: -0.5px;
}

.mtg-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 8px;
    line-height: 1.35;
}

/* ----- Table of contents ----- */
.mtg-toc {
    background: rgba(15, 20, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0 48px;
}

.mtg-toc-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 12px;
}

.mtg-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
}

.mtg-toc li {
    font-size: 14px;
}

.mtg-toc a {
    color: rgba(255, 255, 255, 0.78);
}

.mtg-toc a:hover {
    color: #3b8aff;
}

/* ----- Sections ----- */
.mtg-section {
    margin: 0 0 56px;
}

.mtg-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mtg-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin: 32px 0 14px;
}

.mtg-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 8px;
}

.mtg-section ul,
.mtg-section ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

.mtg-section li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
}

/* ----- Region grid ----- */
.mtg-region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.mtg-region-card {
    background: rgba(15, 20, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px 18px;
    transition: border-color 0.2s, transform 0.2s;
}

.mtg-region-card:hover {
    border-color: rgba(0, 200, 167, 0.4);
    transform: translateY(-2px);
}

.mtg-region-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mtg-region-card-header h4 {
    margin: 0;
    font-size: 15px;
    color: #ffffff;
}

.mtg-region-count {
    font-size: 12px;
    font-weight: 600;
    color: #00c9a7;
    background: rgba(0, 200, 167, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.mtg-region-countries,
.mtg-region-highlights {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 8px;
}

.mtg-region-countries:last-child,
.mtg-region-highlights:last-child {
    margin-bottom: 0;
}

.mtg-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 3px;
    font-weight: 500;
}

/* ----- Pipeline ----- */
.mtg-pipeline {
    counter-reset: stage;
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    gap: 12px;
}

.mtg-pipeline li {
    counter-increment: stage;
    position: relative;
    padding: 16px 20px 16px 60px;
    background: rgba(15, 20, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #00c9a7;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.mtg-pipeline li::before {
    content: counter(stage);
    position: absolute;
    left: 18px;
    top: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b8aff, #00c9a7);
    color: #0a0e1a;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----- Bench table ----- */
.mtg-bench-table {
    margin: 20px 0;
    overflow-x: auto;
}

.mtg-bench-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 20, 32, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.mtg-bench-table th,
.mtg-bench-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.mtg-bench-table th {
    background: rgba(56, 132, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 11px;
}

.mtg-bench-table tbody tr:last-child td {
    border-bottom: none;
}

.mtg-bench-table strong {
    color: #00c9a7;
}

/* ----- Guardrail grid ----- */
.mtg-guardrail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.mtg-guardrail {
    background: rgba(15, 20, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 18px 20px;
}

.mtg-guardrail h4 {
    color: #00c9a7;
    margin-bottom: 8px;
    font-size: 15px;
}

.mtg-guardrail p {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

/* ----- Commitments ----- */
.mtg-commitments {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.mtg-commitments dt {
    color: #00c9a7;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.mtg-commitments dd {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    font-size: 15px;
}

/* ----- Glossary ----- */
.mtg-glossary {
    margin: 20px 0;
}

.mtg-glossary dt {
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    margin: 18px 0 6px;
    border-left: 3px solid #00c9a7;
    padding-left: 12px;
}

.mtg-glossary dt:first-of-type {
    margin-top: 0;
}

.mtg-glossary dd {
    margin: 0 0 4px 15px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    font-size: 14px;
}

/* ----- FAQ (details/summary) ----- */
.mtg-faq-list {
    margin: 24px 0;
    display: grid;
    gap: 8px;
}

.mtg-faq-item {
    background: rgba(15, 20, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0;
    transition: border-color 0.2s;
}

.mtg-faq-item[open] {
    border-color: rgba(0, 200, 167, 0.35);
}

.mtg-faq-item summary {
    padding: 14px 18px;
    font-weight: 600;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 44px;
    line-height: 1.4;
}

.mtg-faq-item summary::-webkit-details-marker {
    display: none;
}

.mtg-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 20px;
    font-weight: 400;
    color: #00c9a7;
    transition: transform 0.2s;
}

.mtg-faq-item[open] summary::after {
    content: '−';
}

.mtg-faq-item p {
    padding: 0 18px 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.65;
}

/* ----- Doc footer ----- */
.mtg-doc-footer {
    margin-top: 64px;
    padding: 24px;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
}

.mtg-disclaimer {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 14px;
}

.mtg-disclaimer strong {
    color: #ef4444;
    display: block;
    margin-bottom: 4px;
}

.mtg-doc-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0;
}

.mtg-doc-meta a {
    color: rgba(255, 255, 255, 0.7);
}

/* ----- RTL ----- */
[dir="rtl"] .mtg-pipeline li {
    padding: 16px 60px 16px 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 3px solid #00c9a7;
}

[dir="rtl"] .mtg-pipeline li::before {
    left: auto;
    right: 18px;
}

[dir="rtl"] .mtg-glossary dt {
    border-left: none;
    border-right: 3px solid #00c9a7;
    padding-left: 0;
    padding-right: 12px;
}

[dir="rtl"] .mtg-glossary dd {
    margin: 0 15px 4px 0;
}

[dir="rtl"] .mtg-faq-item summary {
    padding-right: 18px;
    padding-left: 44px;
}

[dir="rtl"] .mtg-faq-item summary::after {
    right: auto;
    left: 18px;
}

[dir="rtl"] .mtg-bench-table th,
[dir="rtl"] .mtg-bench-table td {
    text-align: right;
}

/* ----- Responsive ----- */
@media (max-width: 1280px) {
    /* Tablet: drop right rail, keep sidebar + main */
    .mtg-right-rail {
        display: none;
    }
}

@media (max-width: 900px) {
    /* Small tablet: collapse to single column */
    .mtg-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
        order: -1;
    }
    .blog-sidebar .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .blog-sidebar .sidebar-divider,
    .blog-sidebar .sidebar-section-title {
        flex-basis: 100%;
    }
    .mtg-stats-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
    .mtg-toc ol {
        grid-template-columns: 1fr;
    }
}

/* ----- RTL (right rail flip) ----- */
[dir="rtl"] .blog-sidebar .sidebar-menu-link::before {
    -webkit-mask-image: linear-gradient(-90deg, black 0%, black 40%, transparent 95%);
    mask-image: linear-gradient(-90deg, black 0%, black 40%, transparent 95%);
}
[dir="rtl"] .mtg-widget-region-list li a {
    flex-direction: row-reverse;
}

@media (max-width: 640px) {
    .methodology-page {
        font-size: 15px;
        padding: 24px 0 60px;
    }
    .methodology-page .container {
        padding: 0 16px;
    }
    .mtg-hero-title {
        font-size: 28px;
    }
    .mtg-hero-lede {
        font-size: 16px;
    }
    .mtg-stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 18px;
    }
    .mtg-stat-num {
        font-size: 22px;
    }
    .mtg-section h2 {
        font-size: 22px;
    }
    .mtg-section h3 {
        font-size: 17px;
    }
    .mtg-region-grid,
    .mtg-guardrail-grid {
        grid-template-columns: 1fr;
    }
    .mtg-pipeline li {
        padding: 14px 16px 14px 52px;
    }
    .mtg-pipeline li::before {
        left: 14px;
        top: 12px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    .mtg-bench-table th,
    .mtg-bench-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ----- Print ----- */
@media print {
    .methodology-page {
        color: #000;
        background: #fff;
    }
    .methodology-page p,
    .methodology-page li,
    .mtg-region-card,
    .mtg-pipeline li,
    .mtg-guardrail,
    .mtg-faq-item p {
        color: #000;
        background: #fff;
        border-color: #ccc;
    }
    .mtg-faq-item {
        page-break-inside: avoid;
    }
}
