/* =========================================================
   SEO Success Stories (portfolio/seo-portfolio.php)
   Layout from Figma "RYH portfolio 2.0" → frame "SEO" (9:13389, 1440px),
   blue accents swapped for the site's lime (#d1fc0d).
   ========================================================= */

body.seo-page {
    background-color: var(--color-bg-dark, #0a0b0e) !important;
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(35, 39, 52, 0.5) 0%, rgba(10, 11, 14, 0.88) 75%),
        url('../../../assets/dark-bg-tile.jpg') !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
    background-size: 750px !important;
    color: #fff;
}

.seo-main {
    position: relative;
    overflow: hidden;
    padding: 0 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.seo-glow {
    position: absolute;
    width: 1050px;
    height: 460px;
    border-radius: 50%;
    background: #f6ff00;
    opacity: 0.1;
    filter: blur(180px);
    pointer-events: none;
    mix-blend-mode: screen;
}

.seo-glow--1 { left: calc(50% - 525px); top: -180px; }
.seo-glow--2 { left: calc(50% - 1114px); top: 700px; }

/* ---------- HERO ---------- */
.seo-hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0 72px;
    text-align: center;
}

.seo-hero__kicker {
    display: block;
    font-size: 28px;
    font-weight: 400;
    color: #fff;
}

.seo-hero__title {
    margin: 4px 0 0;
    font-family: 'Funnel Display', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 88px;
    line-height: 1.1;
    letter-spacing: -2.5px;
    color: #d1fc0d;
    text-shadow: 4px 4px 24px rgba(209, 252, 13, 0.25), -4px -4px 26px rgba(209, 252, 13, 0.25);
}

.seo-hero__subtitle {
    margin: 18px 0 0;
    font-size: 20px;
    letter-spacing: 0.4px;
    color: #fff;
}

/* ---------- CASE STUDY ---------- */
.seo-cases {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.seo-case {
    padding: 60px 0 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.seo-case:first-child {
    border-top: 0;
    padding-top: 10px;
}

.seo-meta {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    gap: 20px 40px;
    margin: 0 36px 44px;
}

.seo-meta div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seo-meta dt {
    font-weight: 400;
    font-size: 14px;
    color: #d8d8d8;
}

.seo-meta dd {
    margin: 0;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
}

.seo-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}

.seo-meta a:hover {
    color: #d1fc0d;
}

.seo-meta a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    font-size: 8px;
    font-style: normal;
}

.seo-about {
    max-width: 700px;
    margin: 0 auto 70px;
    text-align: center;
    font-size: 16px;
    line-height: 26px;
    color: #e8ecee;
}

/* Logo + challenges */
.seo-solved {
    display: grid;
    grid-template-columns: 416px minmax(0, 1fr);
    gap: 40px 120px;
    align-items: center;
    margin-bottom: 64px;
}

.seo-solved__logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.seo-solved__logo::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(209, 252, 13, 0.14) 0%, rgba(209, 252, 13, 0) 68%);
    pointer-events: none;
}

.seo-solved__logo img {
    position: relative;
    max-width: 100%;
    height: auto;
}

.seo-solved h3 {
    margin: 0 0 28px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #d1fc0d;
}

.seo-solved ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.seo-chip {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border: 1.5px solid #d1fc0d;
    border-radius: 99px;
    font-size: 15px;
    line-height: 1.2;
    color: #fff;
}

.seo-solved li p {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
    color: #e8ecee;
}

/* "Results" title: ghost word + lime word */
.seo-results-title {
    position: relative;
    margin: 0 0 36px;
    text-align: center;
    line-height: 1;
}

.seo-results-title span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 150px;
    letter-spacing: -2px;
    color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
}

.seo-results-title strong {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    font-family: 'Funnel Display', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 56px;
    color: #d1fc0d;
    text-shadow: 0 0 24px rgba(209, 252, 13, 0.25);
}

.seo-journey-title {
    margin: 0 0 22px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 21px;
    color: #fff;
}

.seo-results {
    display: grid;
    grid-template-columns: 661fr 522fr;
    gap: 17px;
    align-items: start;
}

/* Keyword table */
.seo-table-wrap {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    overflow: hidden;
    background: #111214;
}

.seo-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
    color: #fff;
}

.seo-table th {
    padding: 13px 16px;
    background: #1a1b1e;
    font-weight: 700;
    font-size: 14px;
    color: #d1fc0d;
    text-align: center;
    white-space: nowrap;
}

.seo-table th:first-child,
.seo-table td:first-child {
    text-align: left;
    padding-left: 30px;
}

.seo-table td {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    white-space: nowrap;
    text-transform: capitalize;
}

.seo-table td:first-child {
    white-space: normal;
}

.seo-table th + th,
.seo-table td + td {
    width: 112px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-rank {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.seo-rank::after {
    content: '';
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 7px 7px;
}

.seo-rank--before { color: #ff4d55; }
.seo-rank--before::after {
    background-color: #e81b24;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 9 1 3h8z' fill='%23fff'/%3E%3C/svg%3E");
}

.seo-rank--after { color: #2fd26c; }
.seo-rank--after::after {
    background-color: #08a546;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 1 9 7H1z' fill='%23fff'/%3E%3C/svg%3E");
}

.seo-rank--none { color: #8f9aa0; }

.seo-shot {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.seo-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.seo-shots {
    display: grid;
    grid-template-columns: 610fr 573fr;
    gap: 17px;
    margin-top: 18px;
}

/* ---------- CTA ---------- */
.seo-cta {
    position: relative;
    margin: 0 -16px;
    padding: 64px 16px 70px;
    text-align: center;
    background: #111214;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-cta h2 {
    margin: 0;
    font-family: 'Funnel Display', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: #fff;
}

.seo-cta p {
    margin: 8px 0 26px;
    font-size: 18px;
    color: #cfd6da;
}

.seo-cta a {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 99px;
    background: #d1fc0d;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    text-decoration: none;
    box-shadow: 0 0 24px rgba(209, 252, 13, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-cta a:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(209, 252, 13, 0.45);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .seo-hero__title { font-size: clamp(44px, 8vw, 80px); }
    .seo-solved { grid-template-columns: 320px minmax(0, 1fr); gap: 32px 56px; }
    .seo-results-title span { font-size: 120px; }
    .seo-results { grid-template-columns: minmax(0, 1fr); }
    .seo-results .seo-shot { max-width: 560px; }
}

@media (max-width: 767.98px) {
    .seo-glow { width: 700px; height: 320px; filter: blur(120px); }
    .seo-glow--1 { left: -160px; }
    .seo-glow--2 { left: -420px; top: 900px; }

    .seo-hero { padding: 48px 0 40px; }
    .seo-hero__kicker { font-size: 20px; }
    .seo-hero__title { letter-spacing: -1px; }
    .seo-hero__subtitle { font-size: 15px; }

    .seo-case { padding: 44px 0 52px; }

    .seo-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0 0 28px;
    }

    .seo-about { margin-bottom: 40px; font-size: 15px; line-height: 24px; text-align: left; }

    .seo-solved { grid-template-columns: minmax(0, 1fr); margin-bottom: 44px; }
    .seo-solved__logo { min-height: 160px; }
    .seo-solved__logo::before { width: 260px; height: 260px; }
    .seo-solved__logo img { max-width: min(100%, 300px); }
    .seo-solved h3 { font-size: 26px; margin-bottom: 20px; }
    .seo-solved li p { font-size: 15px; }

    .seo-results-title span { font-size: 84px; }
    .seo-results-title strong { font-size: 36px; bottom: 2px; }
    .seo-journey-title { font-size: 17px; }

    .seo-table { font-size: 13px; }
    .seo-table th:first-child,
    .seo-table td:first-child { padding-left: 14px; }
    .seo-table th,
    .seo-table td { padding: 10px 8px; }
    .seo-table th + th,
    .seo-table td + td { width: 76px; }
    .seo-table th { white-space: normal; }

    .seo-shots { grid-template-columns: minmax(0, 1fr); }

    .seo-cta h2 { font-size: 30px; }
    .seo-cta p { font-size: 16px; }
}
