/*-------------------------------------------------
                   ROOT VARIABLES
------------------------------------------------*/
:root {
    --primary-blue: #0052cc;
    --hero-gradient: linear-gradient(135deg, #0061ff 0%, #0033aa 100%);
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/*-------------------------------------------------
                    RESET & GLOBAL
------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, p {
    word-wrap: break-word;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

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

.bg-light {
    background-color: var(--bg-light);
}

/*-------------------------------------------------
                    HERO SECTION
------------------------------------------------*/
.hero {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 60px 0 100px;
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.breadcrumb .current {
    font-weight: 600;
    opacity: 1;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 760px;
    opacity: 0.92;
}

/*-------------------------------------------------
                        LAYOUT
------------------------------------------------*/
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin-top: -50px;
    padding-bottom: 80px;
}

/*-------------------------------------------------
                    TOOL CARDS
------------------------------------------------*/
.calculator-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.card-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.blue-bg {
    background-color: #eff6ff;
    color: var(--primary-blue);
}

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.popular {
    background: #fef3c7;
    color: #92400e;
}

.new {
    background: #dcfce7;
    color: #166534;
}

.card-content h2,
.card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.35;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.calc-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

/*-------------------------------------------------
                INLINE CONTENT LINKS
------------------------------------------------*/
.card-content p a,
.seo-card p a,
.feature-article p a,
.faq-card p a,
.mini-info-card p a,
.side-links a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.card-content p a:hover,
.seo-card p a:hover,
.feature-article p a:hover,
.faq-card p a:hover,
.mini-info-card p a:hover,
.side-links a:hover {
    opacity: 0.85;
}

/*-------------------------------------------------
                        SIDEBAR
------------------------------------------------*/
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.side-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.side-card-header h3 {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.stats-row:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.stats-row span {
    color: var(--text-muted);
}

.tip-card {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
}

.tip-card p {
    font-size: 0.9rem;
    font-style: italic;
    color: #1e40af;
}

.side-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-links a {
    font-size: 0.9rem;
}

/*-------------------------------------------------
                    SEO CONTENT
------------------------------------------------*/
.seo-content-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-heading h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-heading p {
    color: var(--text-muted);
    max-width: 900px;
    font-size: 1rem;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.seo-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.seo-card h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.seo-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/*-------------------------------------------------
           ALTERNATIVE SEO CONTENT DESIGN
------------------------------------------------*/
.seo-info-block {
    border-top: 1px solid var(--border-color);
}

.seo-info-header {
    max-width: 850px;
    margin-bottom: 40px;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-blue);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.seo-info-header h2,
.seo-split-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.seo-info-header p,
.seo-split-heading p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 760px;
}

.seo-feature-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.seo-feature-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-article,
.feature-highlight-box,
.mini-info-card,
.seo-step-card,
.faq-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.feature-article {
    padding: 30px;
}

.feature-article h3,
.feature-highlight-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.feature-article p {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.feature-article p:last-child {
    margin-bottom: 0;
}

.feature-highlight-box {
    padding: 26px 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.feature-highlight-box ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.feature-highlight-box ul li {
    position: relative;
    padding-left: 22px;
    color: var(--text-main);
    font-size: 0.96rem;
}

.feature-highlight-box ul li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-blue);
    position: absolute;
    left: 0;
    top: 9px;
}

.seo-feature-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mini-info-card {
    padding: 22px;
    transition: var(--transition);
}

.mini-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.mini-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mini-info-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
}

/*-------------------------------------------------
                    STEP SECTION
------------------------------------------------*/
.seo-split-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: end;
    margin-bottom: 36px;
}

.seo-step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.seo-step-card {
    padding: 26px 22px;
    height: 100%;
    transition: var(--transition);
}

.seo-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 14px;
}

.seo-step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.seo-step-card p {
    font-size: 0.93rem;
    color: var(--text-muted);
    margin: 0;
}

/*-------------------------------------------------
                    FAQ SECTION
------------------------------------------------*/
.faq-section {
    border-top: 1px solid var(--border-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.faq-card {
    padding: 24px;
    height: 100%;
}

.faq-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/*-------------------------------------------------
                    NOTE BANNER
------------------------------------------------*/
.seo-note-banner {
    padding: 0 0 80px;
}

.seo-note-inner {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 24px 26px;
}

.seo-note-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.seo-note-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.seo-note-content p {
    font-size: 0.95rem;
    color: #1e3a8a;
    margin: 0;
}

/*-------------------------------------------------
                    RESPONSIVE
------------------------------------------------*/
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .seo-grid,
    .seo-feature-layout,
    .seo-split-heading,
    .seo-step-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0 20px;
    }

    .main-layout {
        margin-top: -80px;
    }

    .tool-card {
        flex-direction: column;
    }

    .card-icon-wrapper {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .feature-article,
    .feature-highlight-box,
    .mini-info-card,
    .seo-step-card,
    .faq-card {
        padding: 22px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .seo-note-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
        margin: 0 auto;
    }

    .hero {
        padding: 40px 0 80px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }
}