/*
Theme Name: BlogTimeNow
Theme URI: https://blogtimenow.com
Author: BlogTimeNow
Author URI: https://blogtimenow.com
Description: A modern, animated WordPress theme for digital marketing, tech blogging, and digital agencies. Features a transparent glassmorphism header/footer, flip card services section, animated hero with gradient, popular posts, and a dark purple footer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blogtimenow
Tags: blog, portfolio, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, dark, purple
*/

/* ============================================
   BLOGTIMENOW THEME - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-purple: #5a1090;
    --brand-pink: #9b1a6a;
    --brand-red: #e0305a;
    --brand-yellow: #f0c040;
    --brand-green: #5cb85c;
    --hero-gradient: linear-gradient(135deg, #2d0b6b 0%, #5a1090 35%, #9b1a6a 70%, #e0305a 100%);
    --footer-gradient: linear-gradient(135deg, #1a0540 0%, #2d0b6b 50%, #1a0540 100%);
    --dark-bg: #0a0a0f;
    --card-bg: #ffffff;
    --card-border: #eeeeee;
    --text-primary: #222222;
    --text-muted: #777777;
    --text-light: rgba(255,255,255,0.82);
    --section-gray: #f7f7f9;
    --transition: .25s ease;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --shadow-card: 0 4px 16px rgba(0,0,0,.07);
    --shadow-hover: 0 12px 28px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* === CONTAINER === */
.btn-container,
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-block;
    background: var(--brand-purple);
    color: #fff;
    padding: .6rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: .85rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    border: none;
    transition: background var(--transition), transform var(--transition);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.btn-primary:hover { background: #4a0080; transform: translateY(-2px); }

.btn-green {
    display: inline-block;
    background: var(--brand-green);
    color: #fff;
    padding: .6rem 2.5rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: .82rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    border: none;
    transition: background var(--transition), transform var(--transition);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.btn-green:hover { background: #4cae4c; transform: translateY(-2px); }

/* === HEADER === */
#masthead {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(30, 10, 70, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background .3s;
}
#masthead.scrolled { background: rgba(20, 5, 50, 0.88); }

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding .site-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.5px;
}
.site-branding .site-title span { color: var(--brand-yellow); }
.site-branding .site-title a { color: inherit; }

/* === NAVIGATION === */
#site-navigation {
    display: flex;
    align-items: center;
}

/* ── Top-level ul ONLY (direct child) ── */
#site-navigation > ul,
#site-navigation > div > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* ── Sub-menus must stack vertically ── */
#site-navigation ul ul {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Top-level li ── */
#site-navigation > ul > li,
#site-navigation > div > ul > li {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* ── Top-level links ── */
#site-navigation > ul > li > a,
#site-navigation > div > ul > li > a {
    display: block;
    color: rgba(255,255,255,.82);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0 .75rem;
    height: 64px;
    line-height: 64px;
    transition: color .2s;
    text-decoration: none;
    position: relative;
}
#site-navigation > ul > li > a::after,
#site-navigation > div > ul > li > a::after {
    content: '';
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: 0;
    height: 2px;
    background: var(--brand-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
#site-navigation > ul > li:hover > a,
#site-navigation > div > ul > li:hover > a,
#site-navigation > ul > li.current-menu-item > a,
#site-navigation > div > ul > li.current-menu-item > a,
#site-navigation > ul > li.current-menu-ancestor > a,
#site-navigation > div > ul > li.current-menu-ancestor > a { color: #fff; }
#site-navigation > ul > li:hover > a::after,
#site-navigation > div > ul > li:hover > a::after,
#site-navigation > ul > li.current-menu-item > a::after,
#site-navigation > div > ul > li.current-menu-item > a::after,
#site-navigation > ul > li.current-menu-ancestor > a::after,
#site-navigation > div > ul > li.current-menu-ancestor > a::after { transform: scaleX(1); }

/* ── Sub-menu toggle button (injected by JS) ── */
.sub-menu-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,.6);
    font-size: .6rem;
    cursor: pointer;
    padding: 0 .35rem 0 0;
    height: 64px;
    line-height: 64px;
    transition: color .2s, transform .2s;
    display: flex;
    align-items: center;
}
#site-navigation > ul > li:hover .sub-menu-toggle,
#site-navigation > div > ul > li:hover .sub-menu-toggle,
#site-navigation > ul > li.sub-open .sub-menu-toggle,
#site-navigation > div > ul > li.sub-open .sub-menu-toggle { color: #fff; }
#site-navigation > ul > li.sub-open > .sub-menu-toggle,
#site-navigation > div > ul > li.sub-open > .sub-menu-toggle { transform: rotate(180deg); }

/* ── Dropdown panel ── */
#site-navigation > ul > li > ul.sub-menu,
#site-navigation > div > ul > li > ul.sub-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(14, 4, 36, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.1);
    border-top: 2px solid var(--brand-purple);
    border-radius: 0 0 10px 10px;
    padding: .4rem 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 16px 36px rgba(0,0,0,.5);
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 9999;
}
/* Open on hover (desktop) */
#site-navigation > ul > li:hover > ul.sub-menu,
#site-navigation > div > ul > li:hover > ul.sub-menu,
/* Open via JS class (both desktop focus & mobile) */
#site-navigation > ul > li.sub-open > ul.sub-menu,
#site-navigation > div > ul > li.sub-open > ul.sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── Dropdown items ── */
#site-navigation > ul > li > ul.sub-menu li,
#site-navigation > div > ul > li > ul.sub-menu li {
    display: block;
    margin: 0;
    padding: 0;
}
#site-navigation > ul > li > ul.sub-menu li a,
#site-navigation > div > ul > li > ul.sub-menu li a {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .3px;
    text-transform: uppercase;
    padding: .6rem 1.2rem;
    white-space: nowrap;
    transition: color .15s, background .15s, padding-left .15s;
    text-decoration: none;
}
#site-navigation > ul > li > ul.sub-menu li a:hover,
#site-navigation > div > ul > li > ul.sub-menu li a:hover,
#site-navigation > ul > li > ul.sub-menu li.current-menu-item > a,
#site-navigation > div > ul > li > ul.sub-menu li.current-menu-item > a {
    color: #fff;
    background: rgba(90,16,144,.3);
    padding-left: 1.6rem;
}
#site-navigation > ul > li > ul.sub-menu li a::after,
#site-navigation > div > ul > li > ul.sub-menu li a::after { display: none; }
#site-navigation > ul > li > ul.sub-menu li + li,
#site-navigation > div > ul > li > ul.sub-menu li + li {
    border-top: 1px solid rgba(255,255,255,.05);
}
/* Hide the toggle btn inside sub-menu (no nested dropdowns needed) */
#site-navigation > ul > li > ul.sub-menu .sub-menu-toggle,
#site-navigation > div > ul > li > ul.sub-menu .sub-menu-toggle { display: none; }

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: .3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === HERO === */
.hero-section {
    background: var(--hero-gradient);
    padding: 5rem 2rem 3.5rem;
    position: relative;
    overflow: hidden;
    animation: heroBgShift 8s ease-in-out infinite alternate;
}
@keyframes heroBgShift {
    0%   { background: linear-gradient(135deg, #2d0b6b 0%, #5a1090 35%, #9b1a6a 70%, #e0305a 100%); }
    100% { background: linear-gradient(135deg, #1a0545 0%, #4a0080 35%, #c0205a 70%, #ff4070 100%); }
}
.hero-dots {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}
.hero-content { max-width: 1200px; margin: auto; position: relative; z-index: 2; }

.hero-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    max-width: 700px;
    margin-bottom: 2.5rem;
}
.hero-title .highlight { color: var(--brand-yellow); }

/* Newsletter in hero */
.hero-newsletter {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    max-width: 520px;
    margin-bottom: 2.5rem;
}
.hero-newsletter p {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: .75rem;
}
.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input[type="email"] {
    flex: 1;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: .55rem 1rem;
    border-radius: 4px;
    font-size: .82rem;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: border-color .2s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input[type="email"]:focus { border-color: rgba(255,255,255,0.5); }
.newsletter-form button {
    background: var(--brand-green);
    color: #fff;
    border: none;
    padding: .55rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: .82rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.newsletter-form button:hover { background: #4cae4c; }

/* Subscriber count */
.subscriber-count { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.sub-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--brand-yellow);
    line-height: 1;
}
.sub-label {
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: .5px;
    max-width: 160px;
    line-height: 1.4;
}

/* === FEATURED BAR === */
/* === LOGO CAROUSEL === */
.featured-bar {
    background: var(--section-gray);
    border-bottom: 1px solid #eee;
    padding: 1.1rem 0;
    overflow: hidden;
}
.featured-bar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 100%;
}
.featured-label-text {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 1.5rem 0 2rem;
    border-right: 1px solid #ddd;
}

/* Carousel wrapper — masks overflow */
.logo-carousel-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

/* Fade edges */
.logo-carousel-wrap::before,
.logo-carousel-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.logo-carousel-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--section-gray), transparent);
}
.logo-carousel-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--section-gray), transparent);
}

/* The moving track — CSS infinite marquee */
.logo-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: logoScroll 28s linear infinite;
    will-change: transform;
}
.logo-track:hover {
    animation-play-state: paused;
}

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

.logo-slide {
    display: flex;
    align-items: center;
    padding: 0 2.5rem;
    border-right: 1px solid #e0e0e0;
    height: 48px;
    flex-shrink: 0;
    transition: opacity .2s;
}
.logo-slide:hover { opacity: .7; }

.feat-logo {
    font-size: .82rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: .5px;
    white-space: nowrap;
    transition: color .2s;
}
.logo-slide:hover .feat-logo { color: var(--brand-purple); }

/* === SECTION COMMON === */
.section-block { padding: 4.5rem 2rem; }
.section-block.bg-white { background: #fff; }
.section-block.bg-gray { background: var(--section-gray); }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-divider {
    width: 40px; height: 3px;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-red));
    border-radius: 2px;
    margin: 0 auto .75rem;
}
.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* === POST CARDS === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.post-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.post-thumbnail {
    height: 190px;
    overflow: hidden;
    position: relative;
}
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumbnail img { transform: scale(1.06); }
.post-thumbnail-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
}

.post-category-badge {
    position: absolute; bottom: 10px; left: 10px;
    background: rgba(90,16,144,0.85);
    color: #fff;
    font-size: .6rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 3px;
}
.post-body { padding: 1.1rem 1.25rem 1.35rem; }
.post-cat-label {
    font-size: .65rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--brand-pink);
    margin-bottom: .4rem;
}
.post-body h3 { font-size: .95rem; font-weight: 700; color: var(--text-primary); line-height: 1.45; margin-bottom: .5rem; }
.post-body h3 a { color: inherit; }
.post-body h3 a:hover { color: var(--brand-purple); }
.post-body p { font-size: .8rem; color: var(--text-muted); line-height: 1.65; }
.post-meta { display: flex; align-items: center; justify-content: space-between; margin-top: .85rem; padding-top: .85rem; border-top: 1px solid #f0f0f0; }
.post-date { font-size: .72rem; color: #aaa; }
.read-more { font-size: .72rem; font-weight: 700; color: var(--brand-purple); }
.read-more:hover { color: var(--brand-pink); }

/* Placeholder gradients */
.thumb-dm  { background: linear-gradient(135deg, #f5c240, #e07010); }
.thumb-gs  { background: linear-gradient(135deg, #40b0f5, #1060c0); }
.thumb-ti  { background: linear-gradient(135deg, #80d0a0, #208050); }
.thumb-dm2 { background: linear-gradient(135deg, #f040a0, #900060); }
.thumb-gs2 { background: linear-gradient(135deg, #a040f0, #500090); }
.thumb-ti2 { background: linear-gradient(135deg, #40e0d0, #008080); }

/* === FLIP CARD SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.flip-card { height: 260px; perspective: 1000px; cursor: pointer; }
.flip-card-inner {
    position: relative; width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform .65s cubic-bezier(.4,0,.2,1);
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }

.flip-front,
.flip-back {
    position: absolute; inset: 0;
    border-radius: var(--radius-lg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem 1.5rem;
}
.flip-front {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: var(--shadow-card);
}
.flip-back { transform: rotateY(180deg); color: #fff; }

.flip-back.svc-design   { background: linear-gradient(135deg, #5a1090, #9b1a6a); }
.flip-back.svc-dev      { background: linear-gradient(135deg, #1060c0, #0a3080); }
.flip-back.svc-wp       { background: linear-gradient(135deg, #208080, #0a4040); }
.flip-back.svc-seo      { background: linear-gradient(135deg, #9b1a6a, #e0305a); }
.flip-back.svc-ecom     { background: linear-gradient(135deg, #b04010, #601808); }
.flip-back.svc-social   { background: linear-gradient(135deg, #207040, #0a3820); }

.flip-icon { font-size: 2.6rem; margin-bottom: 1rem; line-height: 1; }
.flip-front h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); text-align: center; margin-bottom: .4rem; }
.flip-front p  { font-size: .78rem; color: #888; text-align: center; line-height: 1.55; }
.svc-tag {
    margin-top: .75rem;
    font-size: .62rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    background: rgba(90,16,144,.1); color: var(--brand-purple);
    padding: .25rem .75rem; border-radius: 999px;
}
.flip-back h3  { font-size: 1rem; font-weight: 700; color: #fff; text-align: center; margin-bottom: .75rem; }
.flip-back p   { font-size: .82rem; color: rgba(255,255,255,.88); text-align: center; line-height: 1.65; }
.flip-back-btn {
    margin-top: 1.25rem;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    padding: .4rem 1.25rem;
    border-radius: 999px;
    font-size: .75rem; font-weight: 700;
    font-family: 'Roboto', sans-serif;
    cursor: pointer; transition: background .2s;
    text-decoration: none; display: inline-block;
}
.flip-back-btn:hover { background: rgba(255,255,255,.3); color: #fff; }

/* === FOOTER NEWSLETTER === */
.footer-newsletter-section { background: var(--section-gray); padding: 3rem 2rem; border-top: 1px solid #eee; }
.footer-nl-inner { max-width: 1200px; margin: auto; text-align: center; }
.footer-nl-inner h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; }
.footer-nl-inner p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.footer-nl-form { display: flex; gap: .5rem; max-width: 460px; margin: auto; }
.footer-nl-form input {
    flex: 1;
    border: 1px solid #ddd; background: #fff;
    padding: .6rem 1rem; border-radius: 4px;
    font-size: .85rem; font-family: 'Roboto', sans-serif; outline: none;
}
.footer-nl-form button {
    background: var(--brand-green); color: #fff; border: none;
    padding: .6rem 1.25rem; border-radius: 4px;
    font-weight: 700; font-size: .82rem;
    font-family: 'Roboto', sans-serif; cursor: pointer;
}
.footer-nl-form button:hover { background: #4cae4c; }

/* === FOOTER === */
#colophon {
    background: var(--footer-gradient);
    color: rgba(255,255,255,.75);
    padding: 3.5rem 2rem 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.08);
}
.footer-widgets {
    max-width: 1200px; margin: auto;
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.footer-widget-title {
    font-size: .75rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: #fff; margin-bottom: 1.1rem;
}
.footer-widget p { font-size: .82rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget ul li { margin-bottom: .5rem; }
.footer-widget ul li a { font-size: .82rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-widget ul li a:hover { color: #fff; }

/* Social icons */
.social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-link {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .75rem; font-weight: 700;
    cursor: pointer; transition: background .2s;
    text-decoration: none;
}
.social-link:hover { background: rgba(255,255,255,.22); color: #fff; }

/* Footer newsletter widget */
.footer-nl-widget-form { display: flex; gap: .5rem; margin-top: .75rem; }
.footer-nl-widget-form input {
    flex: 1;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff; padding: .5rem .9rem;
    border-radius: 4px; font-size: .78rem;
    font-family: 'Roboto', sans-serif; outline: none;
}
.footer-nl-widget-form input::placeholder { color: rgba(255,255,255,.4); }
.footer-nl-widget-form button {
    background: var(--brand-green); color: #fff; border: none;
    padding: .5rem 1rem; border-radius: 4px;
    font-weight: 700; font-size: .75rem;
    font-family: 'Roboto', sans-serif; cursor: pointer;
}

/* Footer bottom bar */
.footer-bottom {
    max-width: 1200px; margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: .75rem;
}
.footer-bottom p,
.footer-bottom a { font-size: .75rem; color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-copyright span { color: rgba(255,255,255,.6); }

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* === SIDEBAR === */
.widget-area { padding: 0; }
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--brand-purple); }
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: .35rem 0; border-bottom: 1px solid #f0f0f0; font-size: .85rem; }
.widget ul li a:hover { color: var(--brand-purple); }

/* === SINGLE POST === */
/* === SINGLE POST — Creattie-style typography === */
.entry-header { margin-bottom: 2.5rem; }

.entry-title {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.25;
    color: #111111;
    margin-bottom: 1rem;
    letter-spacing: -.3px;
}

.entry-meta {
    font-size: .82rem;
    color: #888888;
    font-family: 'Roboto', sans-serif;
    letter-spacing: .2px;
}

/* Body content — matches Creattie blog reading style */
.entry-content {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 1.0625rem;  /* ~17px */
    line-height: 1.9;
    color: #2d2d2d;
    max-width: 720px;
}

.entry-content p {
    margin-bottom: 1.6rem;
    font-size: 1.0625rem;
    line-height: 1.9;
    color: #2d2d2d;
}

/* Headings inside content */
.entry-content h1 {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.25;
    color: #111111;
    margin: 2.5rem 0 1rem;
    letter-spacing: -.3px;
}
.entry-content h2 {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111111;
    margin: 2.5rem 0 1rem;
    letter-spacing: -.2px;
}
.entry-content h3 {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111111;
    margin: 2rem 0 .75rem;
}
.entry-content h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    margin: 1.5rem 0 .5rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Links — Creattie blue */
.entry-content a {
    color: #2b6cb0;
    text-decoration: underline;
    text-decoration-color: rgba(43,108,176,.35);
    text-underline-offset: 2px;
    transition: color .2s, text-decoration-color .2s;
}
.entry-content a:hover {
    color: #1a4e87;
    text-decoration-color: #1a4e87;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    padding-left: 1.75rem;
    margin-bottom: 1.6rem;
}
.entry-content ul li,
.entry-content ol li {
    margin-bottom: .6rem;
    line-height: 1.8;
    font-size: 1.0625rem;
    color: #2d2d2d;
}

/* Blockquote */
.entry-content blockquote {
    border-left: 4px solid #2b6cb0;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f0f5ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Code */
.entry-content code {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: .15rem .4rem;
    font-size: .9rem;
    color: #c0392b;
    font-family: 'Courier New', monospace;
}
.entry-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.6rem;
    font-size: .9rem;
    line-height: 1.6;
}
.entry-content pre code {
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    padding: 0;
}

/* Images */
.entry-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.6rem;
    font-size: .95rem;
}
.entry-content th {
    background: #f3f4f6;
    font-weight: 700;
    padding: .65rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #555;
}
.entry-content td {
    padding: .65rem 1rem;
    border: 1px solid #e5e7eb;
    color: #2d2d2d;
    line-height: 1.6;
}
.entry-content tr:nth-child(even) td { background: #fafafa; }

/* Horizontal rule */
.entry-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0;
}

/* === PAGINATION === */
.pagination { display: flex; gap: .5rem; justify-content: center; margin: 2rem 0; }
.pagination a, .pagination span {
    padding: .4rem .85rem; border-radius: 4px;
    font-size: .85rem; font-weight: 500;
    border: 1px solid #ddd; color: var(--text-primary); transition: .2s;
}
.pagination a:hover, .pagination .current { background: var(--brand-purple); color: #fff; border-color: var(--brand-purple); }

/* === 404 === */
.error-404 { text-align: center; padding: 6rem 2rem; }
.error-404 h1 { font-size: 6rem; font-weight: 900; color: var(--brand-purple); line-height: 1; }
.error-404 p { font-size: 1.1rem; color: var(--text-muted); margin: 1rem 0 2rem; }

/* === MEDIA QUERIES === */
@media (max-width: 1024px) {
    .footer-widgets { grid-template-columns: 1fr 1fr; }
    #site-navigation > ul > li > a,
    #site-navigation > div > ul > li > a { padding: 0 .55rem; font-size: .72rem; }
    .sub-menu-toggle { padding: 0 .2rem 0 0; }
}
@media (max-width: 900px) {
    .posts-grid, .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    /* Slide-down mobile panel */
    #site-navigation {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(10, 3, 28, 0.98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 2px solid rgba(90,16,144,.5);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        z-index: 998;
        flex-direction: column;
        align-items: stretch;
    }
    #site-navigation.open { display: flex; }

    /* ALL ul levels go vertical on mobile */
    #site-navigation ul,
    #site-navigation > ul,
    #site-navigation > div > ul {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }

    /* All li items */
    #site-navigation ul > li {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

    /* Top-level links */
    #site-navigation ul > li > a {
        flex: 1;
        height: auto;
        line-height: 1.4;
        padding: .9rem 1.5rem;
        font-size: .85rem;
    }
    #site-navigation ul > li > a::after { display: none !important; }

    /* Sub-menu toggle button */
    .sub-menu-toggle {
        height: auto;
        line-height: 1;
        padding: .9rem 1.25rem;
        font-size: .85rem;
        background: rgba(255,255,255,.06);
        border-left: 1px solid rgba(255,255,255,.08);
        border-radius: 0;
        transition: background .2s, transform .25s;
    }
    .sub-menu-toggle:hover { background: rgba(255,255,255,.12); }
    #site-navigation ul > li.sub-open > .sub-menu-toggle {
        transform: rotate(180deg);
        background: rgba(90,16,144,.3);
    }

    /* Sub-menu panel — accordion style */
    #site-navigation ul > li > ul.sub-menu {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: none;
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255,255,255,.06) !important;
        border-radius: 0 !important;
        background: rgba(0,0,0,.3);
        padding: 0 !important;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        flex-basis: 100%;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    #site-navigation ul > li.sub-open > ul.sub-menu {
        max-height: 600px;
        pointer-events: auto;
    }

    /* Sub-menu link items */
    #site-navigation ul > li > ul.sub-menu > li {
        border-bottom: 1px solid rgba(255,255,255,.04);
    }
    #site-navigation ul > li > ul.sub-menu > li > a {
        padding: .75rem 2rem !important;
        font-size: .82rem;
        white-space: normal;
        flex: none;
        height: auto;
        line-height: 1.4;
    }
    #site-navigation ul > li > ul.sub-menu > li > a:hover {
        padding-left: 2.4rem !important;
    }

    .footer-widgets { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 1.9rem; }
}

@media (max-width: 600px) {
    .posts-grid, .services-grid { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================
   SINGLE POST — CREATTIE-STYLE LAYOUT
   ============================================ */

/* Two-column: content + sidebar */
.single-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: start;
}

/* Main content column */
.single-main {
    min-width: 0;
}

/* Post navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: .85rem;
}
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    color: #2b6cb0;
    font-weight: 500;
}
.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover { color: #1a4e87; }

/* ── SIDEBAR ── */
.single-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Creattie-style CTA card */
.sidebar-cta-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.sidebar-cta-title {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: #111111;
    line-height: 1.3;
    margin-bottom: .65rem;
}
.sidebar-cta-desc {
    font-family: 'Roboto', sans-serif;
    font-size: .85rem;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.sidebar-cta-img {
    font-size: 5rem;
    margin: 1rem auto 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.1));
}
.sidebar-cta-btn {
    display: block;
    background: #1a2744;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    padding: .8rem 1.25rem;
    border-radius: 8px;
    text-align: center;
    letter-spacing: .2px;
    transition: background .2s, transform .2s;
}
.sidebar-cta-btn:hover {
    background: #2b3f6b;
    transform: translateY(-2px);
    color: #fff;
}

/* Sidebar widgets */
.sidebar-widgets .widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.sidebar-widgets .widget-title {
    font-family: 'Roboto', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #888;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: .6rem;
    margin-bottom: 1rem;
}
.sidebar-widgets .widget ul li {
    font-family: 'Roboto', sans-serif;
    font-size: .875rem;
    color: #2d2d2d;
    padding: .4rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.sidebar-widgets .widget ul li a { color: #2b6cb0; }
.sidebar-widgets .widget ul li a:hover { color: #1a4e87; }

/* ── ARCHIVE / CATEGORY page typography ── */
.archive-header .section-title,
h1.section-title {
    font-family: 'Merriweather', 'Georgia', serif;
}

/* ── POST CARD titles — keep Roboto ── */
.post-body h3 {
    font-family: 'Roboto', sans-serif;
}

/* ── Single post responsive ── */
@media (max-width: 900px) {
    .single-wrap {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .single-sidebar { position: static; }
}
@media (max-width: 600px) {
    .single-wrap { padding: 2rem 1.25rem 3rem; }
    .entry-title { font-size: 1.6rem; }
    .entry-content { font-size: 1rem; }
    .entry-content p { font-size: 1rem; }
}

/* ============================================================
   SEO TOOLS PAGE — Complete self-contained styles
   ============================================================ */

/* Page wrapper */
.st-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
    box-sizing: border-box;
}

/* Page heading */
.st-page-heading { margin-bottom: 1.75rem; }
.st-page-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    color: #111;
    margin: 0 0 .4rem;
    line-height: 1.2;
}
.st-page-meta {
    font-family: 'Roboto', sans-serif;
    font-size: .85rem;
    color: #888;
    margin: 0;
}

/* ── Suite container ── */
.st-suite {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,.1);
    border: 1px solid #e0e0e8;
    display: flex;
    flex-direction: column;
}

/* ── Header bar ── */
.st-header {
    background: linear-gradient(135deg, #5a1090 0%, #7c3aed 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.st-header-left {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.st-header-icon { font-size: 1.2rem; }
.st-header-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.st-back-btn {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    padding: .38rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s;
}
.st-back-btn:hover { background: rgba(255,255,255,.3); }

/* ── Two-column body ── */
.st-body {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 640px;
    background: #fff;
}

/* ──────────────────────────────────────────
   LEFT SIDEBAR
────────────────────────────────────────── */
.st-sidebar {
    background: #fff;
    border-right: 1px solid #ebebf0;
    overflow-y: auto;
    padding: 1rem 0 2rem;
    flex-shrink: 0;
}
.st-cat-label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 1rem 1.2rem .35rem;
}
.st-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.st-sidebar-item { margin: 0; padding: 0; }
.st-sidebar-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .48rem 1.2rem;
    font-family: 'Roboto', sans-serif;
    font-size: .83rem;
    color: #333;
    text-decoration: none;
    transition: background .15s, color .15s;
    border-radius: 0;
}
.st-sidebar-icon { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; }
.st-sidebar-link:hover { background: #f3f0ff; color: #5a1090; }
.st-sidebar-link.active { background: #ede9fe; color: #5a1090; font-weight: 600; }

/* ──────────────────────────────────────────
   RIGHT MAIN PANEL
────────────────────────────────────────── */
.st-main {
    background: #f7f7fb;
    padding: 1.25rem 1.5rem 2rem;
    overflow-y: auto;
    min-width: 0;
}

/* Toolbar */
.st-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}
.st-search-box {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: .48rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.st-search-icon { font-size: .85rem; color: #aaa; flex-shrink: 0; }
.st-search-box input {
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: .84rem;
    color: #333;
    width: 100%;
    background: transparent;
}
.st-search-box input::placeholder { color: #bbb; }

/* View toggle buttons */
.st-view-btns { display: flex; gap: .35rem; }
.st-vbtn {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .45rem .9rem;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
    color: #666;
    font-family: 'Roboto', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}
.st-vbtn:hover:not(.active) { background: #f3f0ff; color: #5a1090; }
.st-vbtn.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }

/* Filter chips */
.st-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1rem;
}
.st-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .32rem .85rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-family: 'Roboto', sans-serif;
    font-size: .75rem;
    font-weight: 500;
    cursor: pointer;
    transition: .15s;
}
.st-chip:hover:not(.active) { background: #f3f0ff; color: #5a1090; border-color: #c4b5fd; }
.st-chip.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.st-chip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* Tools count */
.st-count {
    font-family: 'Roboto', sans-serif;
    font-size: .8rem;
    color: #888;
    margin-bottom: .85rem;
}

/* ── TOOL CARDS GRID ── */
.st-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
    width: 100%;
}
/* List view override */
.st-cards.st-cards-list {
    grid-template-columns: 1fr;
}
.st-cards.st-cards-list .st-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
}
.st-cards.st-cards-list .st-card-top { flex-direction: column; align-items: center; }
.st-cards.st-cards-list .st-card-footer { margin-top: 0; align-self: flex-end; flex-shrink: 0; }

/* Individual card */
.st-card {
    background: #eaf0fb;
    border: 1px solid #d0ddf5;
    border-radius: 12px;
    padding: 1.1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.st-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(90,16,144,.13);
    border-color: #c4b5fd;
}
.st-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
}
.st-card-icon {
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    flex-shrink: 0;
}
.st-card-cat {
    font-family: 'Roboto', sans-serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    padding: .2rem .6rem;
    border-radius: 999px;
}
.st-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}
.st-card-desc {
    font-family: 'Roboto', sans-serif;
    font-size: .76rem;
    color: #666;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.st-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: .5rem;
}
.st-open-btn {
    background: #fff;
    border: 1.5px solid #c4b5fd;
    color: #5a1090;
    font-family: 'Roboto', sans-serif;
    font-size: .74rem;
    font-weight: 700;
    padding: .3rem .9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: .15s;
}
.st-open-btn:hover { background: #7c3aed; border-color: #7c3aed; color: #fff; }

/* ── TOOL DETAIL VIEW ── */
.st-detail-back {
    background: none;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: #5a1090;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.st-detail-back:hover { color: #7c3aed; }
.st-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.st-detail-icon {
    width: 56px; height: 56px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    flex-shrink: 0;
}
.st-detail-cat {
    font-family: 'Roboto', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: .25rem;
}
.st-detail-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #111;
    margin: 0;
}
.st-detail-desc {
    font-family: 'Roboto', sans-serif;
    font-size: .9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

/* Tool interface */
.st-tool-interface {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.st-tool-input-row {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.st-tool-url-input {
    flex: 1;
    min-width: 200px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: .6rem 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    color: #333;
    outline: none;
    transition: border-color .2s;
}
.st-tool-url-input:focus { border-color: #7c3aed; }
.st-tool-url-input::placeholder { color: #bbb; }
.st-tool-run-btn {
    background: linear-gradient(135deg, #5a1090, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .6rem 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
    white-space: nowrap;
}
.st-tool-run-btn:hover { opacity: .9; transform: translateY(-1px); }

/* Result area */
.st-tool-result { min-height: 60px; }
.st-result-loading {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-family: 'Roboto', sans-serif;
    font-size: .88rem;
    color: #555;
    padding: 1rem 0;
}
.st-spinner {
    width: 20px; height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: #7c3aed;
    border-radius: 50%;
    display: inline-block;
    animation: stSpin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes stSpin { to { transform: rotate(360deg); } }
.st-result-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: .85rem;
}
.st-result-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    overflow: hidden;
}
.st-result-header {
    background: #16a34a;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    padding: .6rem 1rem;
}
.st-result-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
    font-size: .83rem;
}
.st-result-table td { padding: .55rem 1rem; border-bottom: 1px solid #dcfce7; color: #333; }
.st-result-table tr:last-child td { border-bottom: none; }
.st-result-table td:first-child { font-weight: 600; color: #555; width: 140px; }
.st-result-table code { background: #e5e7eb; padding: .1rem .35rem; border-radius: 3px; font-size: .8rem; }
.st-badge-ok { background: #16a34a; color: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }

/* Scrollbars */
.st-sidebar::-webkit-scrollbar,
.st-main::-webkit-scrollbar { width: 4px; }
.st-sidebar::-webkit-scrollbar-thumb,
.st-main::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .st-body {
        grid-template-columns: 200px 1fr;
    }
}
@media (max-width: 680px) {
    .st-body {
        grid-template-columns: 1fr;
    }
    .st-sidebar {
        max-height: 220px;
        border-right: none;
        border-bottom: 1px solid #ebebf0;
    }
    .st-cards {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 420px) {
    .st-cards { grid-template-columns: 1fr; }
    .st-page { padding: 1.5rem 1rem 3rem; }
}
