/*
Theme Name: PetSoftly
Theme URI: https://petsoftly.com
Author: PetSoftly Team  
Description: Complete responsive theme - Expert Care for Dogs, Cats & Other Pets
Version: 12.1
Text Domain: petsoftly
*/

:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --accent: #16a34a;
    --dark: #1f2937;
    --light: #6b7280;
    --bg: #f9fafb;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--secondary); }

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

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main { padding: 1rem 0; }

.header-content {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 430px);
    align-items: center;
    gap: 1.25rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--light);
    margin-top: 0.25rem;
}

/* Search Bar */
.search-form {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    min-width: 340px;
    max-width: 430px;
    width: 100%;
}

.search-input {
    border: none;
    background: transparent;
    padding: 0.25rem;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.search-button {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem 0.55rem;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Navigation */
.main-navigation {
    background: var(--primary);
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.nav-menu > li > a:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* Single Dropdown Icon (▼) */
.dropdown-icon {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Standard Submenu (Vertical) */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    color: var(--dark);
    padding: 0.75rem 1.5rem;
    display: block;
}

.sub-menu li a:hover {
    background: var(--bg);
    color: var(--primary);
}

.sub-header {
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    border-top: 1px solid var(--bg);
    margin-top: 0.5rem;
}

.sub-header:first-child {
    border-top: none;
    margin-top: 0;
}

/* HORIZONTAL MEGA MENU - DARSA*/
/*.mega-sub-horizontal {*/
/*    display: flex !important;*/
/*    flex-direction: row !important;*/
/*    min-width: 150px;*/
/*    padding: 1.5rem;*/
/*    gap: 1rem;*/
/*}*/

/*.mega-column {*/
/*    flex: 1;*/
/*    min-width: 180px;*/
/*}*/

/* Line 241-246: Replace with */
.mega-sub-horizontal {
    display: grid !important;           /* Changed from flex */
    grid-template-columns: auto auto;   /* Auto-size columns */
    justify-content: start;             /* Align left */
    min-width: 500px;                   /* Increased from 150px */
    padding: 1.5rem;
    gap: 1.5rem;                        /* Reduced from 1rem is fine */
}

/* Line 248-251: Replace with */
.mega-column {
    min-width: 180px;
    max-width: 300px;  /* NEW - prevents stretching */
}


.mega-header {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    background: var(--primary);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
}

.mega-list {
    list-style: none;
    padding: 0;
}

.mega-list li {
    margin-bottom: 0.25rem;
}

.mega-list li a {
    padding: 0.5rem 1rem;
    display: block;
    color: var(--dark);
    border-radius: 4px;
    transition: 0.2s;
}

.mega-list li a:hover {
    background: var(--bg);
    color: var(--primary);
    padding-left: 1.25rem;
}

/* News & Science dropdown: inline link chips */
.mega-list--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mega-list--inline li {
    padding: 0;
    margin: 0;
}

.mega-list--inline a {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1f2937;
    font-weight: 600;
}

.mega-list--inline a:hover {
    background: #e0e7ff;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .header-content { display: flex; }
    .menu-toggle { display: block; }
    .search-form { min-width: auto; width: min(52vw, 220px); }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary);
        transition: right 0.3s;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .main-navigation.active { right: 0; }
    
    .nav-menu {
        flex-direction: column;
        padding: 5rem 0 2rem;
    }
    
    .nav-menu > li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu > li > a {
        padding: 1rem 1.5rem;
        justify-content: space-between;
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    
    .menu-item-has-children.open .sub-menu {
        max-height: 1500px;
    }
    
    .sub-menu li a {
        color: var(--white);
        padding: 0.75rem 2.5rem;
    }
    
    /* Mobile Mega Menu - Stack Vertically */
    .mega-sub-horizontal {
        flex-direction: column !important;
        min-width: auto;
        padding: 0;
    }
    
    .mega-header {
        background: rgba(0,0,0,0.2);
        margin-bottom: 0;
    }
    
    .mega-list li a {
        color: var(--white);
        padding: 0.5rem 2rem;
    }
    
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

/* Hero */
.hero {
    background:
        radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.18), transparent 35%),
        radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.16), transparent 30%),
        linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 55%, #0f172a 100%);
    color: var(--white);
    padding: 5rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn:focus {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #15803d;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
}

.btn-primary:focus {
    outline: 3px solid rgba(22, 163, 74, 0.4);
    outline-offset: 2px;
}

/* CTA Button Variants - Different colors for each section */
.btn-cta-purple {
    background: #7c3aed;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-cta-purple:hover {
    background: #6d28d9;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.btn-cta-purple:focus {
    outline: 3px solid rgba(124, 58, 237, 0.4);
    outline-offset: 2px;
}

.btn-cta-teal {
    background: #0d9488;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-cta-teal:hover {
    background: #0f766e;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.btn-cta-teal:focus {
    outline: 3px solid rgba(13, 148, 136, 0.4);
    outline-offset: 2px;
}

/* Tool Card Button Color Variants */
.btn-tool-green {
    background: #16a34a;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-tool-green:hover {
    background: #15803d;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
}

.btn-tool-green:focus {
    outline: 3px solid rgba(22, 163, 74, 0.4);
    outline-offset: 2px;
}

.btn-tool-rose {
    background: #e11d48;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-tool-rose:hover {
    background: #be123c;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.3);
}

.btn-tool-rose:focus {
    outline: 3px solid rgba(225, 29, 72, 0.4);
    outline-offset: 2px;
}

.btn-tool-blue {
    background: #3b82f6;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-tool-blue:hover {
    background: #2563eb;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-tool-blue:focus {
    outline: 3px solid rgba(59, 130, 246, 0.4);
    outline-offset: 2px;
}

.btn-tool-orange {
    background: #f97316;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-tool-orange:hover {
    background: #ea580c;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.btn-tool-orange:focus {
    outline: 3px solid rgba(249, 115, 22, 0.4);
    outline-offset: 2px;
}

.btn-tool-violet {
    background: #a855f7;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-tool-violet:hover {
    background: #9333ea;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.btn-tool-violet:focus {
    outline: 3px solid rgba(168, 85, 247, 0.4);
    outline-offset: 2px;
}

.btn-tool-cyan {
    background: #14b8a6;
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-tool-cyan:hover {
    background: #0d9488;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.3);
}

.btn-tool-cyan:focus {
    outline: 3px solid rgba(20, 184, 166, 0.4);
    outline-offset: 2px;
}

.btn-white {
    background: #dcfce7;
    color: #166534;
    transition: all 0.3s ease;
    border: 1px solid #86efac;
}

.btn-white:hover {
    background: #bbf7d0;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
}

.btn-white:focus {
    outline: 3px solid rgba(22, 163, 74, 0.4);
    outline-offset: 2px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

/* Category Sections */
.category-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.category-section:nth-child(even) {
    flex-direction: row-reverse;
}

.category-image {
    flex: 0 0 400px;
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.category-content {
    flex: 1;
}

.category-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.category-content p {
    font-size: 1.1rem;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.category-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-links a {
    color: var(--primary);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: 0.2s;
}

.category-links a:hover {
    color: var(--secondary);
    padding-left: 0.5rem;
}

/* Popular Search Cards */
.popular-search-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.popular-search-card:hover {
    transform: translateY(-1px);
    border-color: #c7d2fe;
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.popular-icon {
    font-size: 1.35rem;
    line-height: 1;
}

/* Icon Images */
.inline-icon {
    width: 20px;
    height: 20px;
    vertical-align: -4px;
    margin-right: 8px;
    display: inline-block;
}

.popular-icon-img {
    width: 22px;
    height: 22px;
    display: block;
}

.tool-icon-img {
    width: 48px;
    height: 48px;
    display: block;
}

.tool-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.tool-icon {
    width: 56px;
    height: 56px;
    display: block;
}

/* Email Signup */
.email-signup {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 3rem 0;
    margin: 3rem 0;
}

.signup-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.signup-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
}

/* Subscribe CTA — compact inline bar */
.pts-cta {
    margin: 1.5rem 0;
}

.pts-cta .pts-cta-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    flex-wrap: wrap;
}

.pts-cta--light .pts-cta-inner {
    background: #f9fafb;
}

.pts-cta--dark .pts-cta-inner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-color: rgba(255,255,255,0.1);
}

.pts-cta--dark .pts-cta-inner,
.pts-cta--dark .pts-cta-inner h2,
.pts-cta--dark .pts-cta-inner p {
    color: #fff;
}

.pts-cta--compact .pts-cta-inner {
    padding: 0.75rem 1rem;
}

.pts-cta-copy {
    flex: 0 1 auto;
    min-width: 0;
}

.pts-cta-copy h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.pts-cta-copy p {
    margin: 0;
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.3;
    display: none;
}

.pts-cta--dark .pts-cta-copy p {
    color: rgba(255,255,255,0.75);
}

.pts-cta-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 480px;
}

.pts-cta-fields {
    display: flex;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.pts-cta-fields input[name="full_name"] {
    display: none;
}

.pts-cta-form input[type="text"],
.pts-cta-form input[type="email"] {
    min-width: 0;
    width: 100%;
    height: 36px;
    padding: 0 0.75rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    outline: none;
    background: #fff;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.pts-cta-form input[type="text"]:focus,
.pts-cta-form input[type="email"]:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}

.pts-cta-form input[type="text"]::placeholder,
.pts-cta-form input[type="email"]::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.pts-cta-actions {
    flex: 0 0 auto;
}

.pts-cta-actions .btn-primary {
    height: 36px;
    padding: 0 1rem;
    font-size: 0.82rem;
    border-radius: 8px;
    min-width: auto;
    white-space: nowrap;
}

.pts-cta--dark .pts-cta-form input[type="text"],
.pts-cta--dark .pts-cta-form input[type="email"] {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.pts-cta--dark .pts-cta-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.pts-cta-note {
    display: none;
}

@media (max-width: 640px) {
    .pts-cta .pts-cta-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.75rem 1rem;
    }
    .pts-cta-copy h2 {
        font-size: 0.88rem;
        white-space: normal;
    }
    .pts-cta-form {
        max-width: 100%;
    }
}

.tool-page-main {
    padding: 0.85rem 15px 1rem;
}

.tool-page-shell {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0.65rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.tool-page-shell iframe {
    width: 100%;
    min-height: 76vh;
    border: 0;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.tool-page-fallback {
    padding: 1.25rem;
}

/* Full-width tool page layout */
.tool-page-main-fullwidth {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: #f9fafb;
}

.tool-page-shell-fullwidth {
    background: #fff;
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

.tool-page-shell-fullwidth iframe {
    width: 100%;
    min-height: 400px;
    border: 0;
    display: block;
    border-radius: 0;
    overflow: hidden;
}

.pts-cta--dark .pts-cta-note {
    color: rgba(255,255,255,0.75);
}

/* CTA Color Modifiers */
.pts-cta--green .btn-primary {
    background: #16a34a;
}

.pts-cta--green .btn-primary:hover {
    background: #15803d;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
}

.pts-cta--purple .btn-primary {
    background: #7c3aed;
}

.pts-cta--purple .btn-primary:hover {
    background: #6d28d9;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.pts-cta--purple .pts-cta-form input[type="text"]:focus,
.pts-cta--purple .pts-cta-form input[type="email"]:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.pts-cta--teal .btn-primary {
    background: #0d9488;
}

.pts-cta--teal .btn-primary:hover {
    background: #0f766e;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.pts-cta--teal .pts-cta-form input[type="text"]:focus,
.pts-cta--teal .pts-cta-form input[type="email"]:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.site-footer h3 {
    color: rgba(255,255,255,0.95);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #86efac;
    padding-left: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.breadcrumbs li:after {
    content: "/";
    margin-left: 0.5rem;
    color: #d1d5db;
}

.breadcrumbs li:last-child:after {
    content: "";
}

.breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #111827;
    text-decoration: underline;
}

/* Responsive - Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .card-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .mega-sub-horizontal { 
        min-width: 600px; 
    }
    .category-image {
        flex: 0 0 300px;
        width: 300px;
        height: 250px;
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .card-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .category-section {
        flex-direction: column !important;
        padding: 1.5rem;
    }
    
    .category-image {
        flex: none;
        width: 100%;
        height: 250px;
    }
    
    .category-links {
        grid-template-columns: 1fr;
    }
    
    .pts-cta .pts-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pts-cta-form {
        width: 100%;
        min-width: 0;
    }

    .pts-cta-fields {
        width: 100%;
        grid-template-columns: 1fr;
    }
    
    .pts-cta-form input[type="text"],
    .pts-cta-form input[type="email"] {
        width: 100%;
    }

    .pts-cta-note {
        text-align: left;
    }

    .tool-page-shell iframe {
        min-height: 72vh;
    }

    /* Ensure buttons don't break on mobile */
    .btn,
    .btn-primary,
    .btn-white,
    .btn-tool-green,
    .btn-tool-rose,
    .btn-tool-blue,
    .btn-tool-orange,
    .btn-tool-violet,
    .btn-tool-cyan {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    /* Tool cards mobile optimization */
    .pts-cta-actions {
        width: 100%;
    }

    .pts-cta-actions .btn-primary {
        width: 100%;
    }

    /* Full-width tool page mobile optimization */
    .tool-page-main-fullwidth {
        padding: 0;
    }

    .tool-page-shell-fullwidth {
        min-height: calc(100vh - 80px);
    }

    .tool-page-shell-fullwidth iframe {
        min-height: calc(100vh - 80px);
    }
}
