/**
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Description: Child theme for SRInfobiz website with custom free tools
Author: SRInfobiz
Author URI: https://srinfobiz.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* Add custom styles here */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tool-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tool-input, .tool-output {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
}

.tool-button {
    background: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 5px;
    transition: background 0.3s, color 0.3s;
}

.tool-button:hover {
    background: #005a87;
    color: #fff !important;
}

.tool-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Excel Converter Specific Styles */
.excel-converter-tool {
    max-width: 100%;
    overflow: visible;
    word-wrap: break-word;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.excel-title {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.excel-description {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    word-wrap: break-word;
}

.excel-form-group {
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.excel-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.excel-file-input {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    display: block;
}

.excel-file-input:hover {
    border-color: #667eea;
}

.excel-file-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.excel-help-text {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    margin-bottom: 0;
}

.excel-select {
    width: 100%;
    max-width: 500px;
    min-width: 200px;
    padding: 12px 40px 12px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    overflow: visible;
    display: block;
    height: auto;
    min-height: 44px;
}

.excel-select:hover {
    border-color: #667eea;
}

.excel-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.excel-action-group {
    margin: 30px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.excel-convert-btn {
    min-width: 150px;
}

.excel-status {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
    display: inline-block;
}

.excel-output {
    width: 100%;
    min-height: 250px;
    max-height: 500px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    resize: vertical;
    box-sizing: border-box;
}

.excel-button-group {
    margin: 25px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.excel-action-btn {
    min-width: 160px;
    flex: 1;
    max-width: 300px;
}

.excel-privacy-note {
    margin: 30px 0 0 0;
    padding: 18px 20px;
    background: #e8f4f8;
    border-left: 4px solid #667eea;
    border-radius: 6px;
}

.excel-privacy-note p {
    margin: 0;
    line-height: 1.7;
    color: #333;
    font-size: 14px;
    word-wrap: break-word;
}

.excel-privacy-note strong {
    color: #667eea;
}

/* Responsive Styles for Excel Converter */
@media (max-width: 768px) {
    .excel-converter-tool {
        padding: 20px;
    }
    
    .excel-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .excel-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .excel-form-group {
        margin: 20px 0;
    }
    
    .excel-label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .excel-file-input,
    .excel-select {
        font-size: 14px;
        padding: 12px 35px 12px 10px;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: 44px;
    }
    
    .excel-select {
        background-position: right 10px center;
    }
    
    .excel-action-group {
        margin: 25px 0;
        flex-direction: column;
        align-items: stretch;
    }
    
    .excel-convert-btn {
        width: 100%;
        min-width: auto;
    }
    
    .excel-status {
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .excel-output {
        min-height: 200px;
        font-size: 12px;
    }
    
    .excel-button-group {
        flex-direction: column;
    }
    
    .excel-action-btn {
        width: 100%;
        max-width: 100%;
        margin: 5px 0;
    }
    
    .excel-privacy-note {
        padding: 15px;
        margin-top: 25px;
    }
    
    .excel-privacy-note p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .excel-converter-tool {
        padding: 15px;
    }
    
    .excel-title {
        font-size: 22px;
    }
    
    .excel-description {
        font-size: 14px;
    }
    
    .excel-file-input,
    .excel-select {
        font-size: 13px;
        padding: 10px 35px 10px 10px;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .excel-select {
        background-position: right 8px center;
    }
    
    .tool-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Portfolio Header */
.tool-container .portfolio-header {
    text-align: center;
    margin: 60px 0 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tool-container .portfolio-header h1 {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 15px !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
}

.tool-container .portfolio-header p {
    font-size: 18px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    font-weight: 300 !important;
    margin: 0 !important;
}

/* Portfolio Grid */
.tool-container .portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    margin: 50px 0 !important;
}

.tool-container .portfolio-item {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #e8e8e8 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.tool-container .portfolio-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    border-color: #e0e0e0 !important;
}

/* Portfolio Card Content */
.portfolio-item .portfolio-card-content {
    padding: 32px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.portfolio-card-content .portfolio-title {
    color: #1a1a1a !important;
    margin: 0 0 16px 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    letter-spacing: -0.3px !important;
    line-height: 1.3 !important;
}

.portfolio-card-content .portfolio-description {
    color: #555 !important;
    line-height: 1.7 !important;
    margin: 0 0 24px 0 !important;
    font-size: 15px !important;
    flex-grow: 1 !important;
    font-weight: 400 !important;
}

/* Technology Badges */
.portfolio-card-content .portfolio-tech {
    margin: 0 0 24px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.portfolio-card-content .portfolio-tech .tech-badge {
    display: inline-block !important;
    background: #f5f5f5 !important;
    color: #555 !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    border: 1px solid #e8e8e8 !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
    line-height: 1.4 !important;
}

.portfolio-card-content .portfolio-tech .tech-badge:hover {
    background: #f0f0f0 !important;
    border-color: #ddd !important;
}

/* Portfolio Link */
.portfolio-card-content .portfolio-link {
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    margin-top: auto !important;
}

.portfolio-card-content .portfolio-link:hover {
    color: #5568d3 !important;
    gap: 10px !important;
}

.portfolio-card-content .portfolio-link:active {
    color: #4457b8 !important;
}

/* Responsive Portfolio */
@media (max-width: 992px) {
    .tool-container .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 24px !important;
    }
    
    .tool-container .portfolio-header h1 {
        font-size: 36px !important;
    }
}

@media (max-width: 768px) {
    .tool-container .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .tool-container .portfolio-header {
        margin: 40px 0 30px !important;
        padding: 0 20px !important;
    }
    
    .tool-container .portfolio-header h1 {
        font-size: 32px !important;
    }
    
    .tool-container .portfolio-header p {
        font-size: 16px !important;
    }
    
    .portfolio-item .portfolio-card-content {
        padding: 24px !important;
    }
    
    .portfolio-card-content .portfolio-title {
        font-size: 22px !important;
    }
    
    .portfolio-card-content .portfolio-description {
        font-size: 14px !important;
    }
}

/* Google Ads Zones */
.ads-zone {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ads-zone-header {
    margin: 20px 0;
}

.ads-zone-sidebar {
    margin: 20px 0;
}

.ads-zone-footer {
    margin-top: 40px;
}

/* Tool Page Layout with Sidebars */
.tool-page-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.tool-sidebar-left,
.tool-sidebar-right {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.tool-sidebar-left .ads-zone,
.tool-sidebar-right .ads-zone {
    margin: 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-page-wrapper .tool-container {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Responsive: Hide sidebars on mobile */
@media (max-width: 1024px) {
    .tool-sidebar-left,
    .tool-sidebar-right {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .tool-page-wrapper {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }
    
    .tool-sidebar-left,
    .tool-sidebar-right {
        width: 100%;
        position: static;
        order: 3;
    }
    
    .tool-page-wrapper .tool-container {
        order: 1;
        width: 100%;
        padding: 0;
    }
    
    .tool-sidebar-left {
        order: 2;
    }
    
    .tool-sidebar-right {
        order: 3;
    }
    
    .tool-card {
        padding: 20px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-page-wrapper .tool-container {
        padding: 0;
    }
    
    .tool-container:not(.tool-page-wrapper .tool-container) {
        padding: 10px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-button {
        width: 100%;
        margin: 5px 0;
    }
    
    .tool-input, .tool-output {
        min-height: 150px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tool-container {
        padding: 5px;
    }
    
    .tool-card {
        padding: 10px;
    }
    
    .tool-input, .tool-output {
        min-height: 120px;
        padding: 10px;
    }
}

/* Mobile-first improvements */
@media (min-width: 769px) {
    .tool-container {
        max-width: 1200px;
    }
}

/* Header Styles - Astra Compatible */
.ast-primary-header-bar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-branding {
    display: flex;
    align-items: center;
}

/* Astra Menu Styles */
.main-header-bar-navigation,
.main-navigation,
.site-navigation {
    display: flex;
    align-items: center;
}

.main-header-menu,
.main-header-menu.ast-nav-menu,
.main-header-menu.ast-flex {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.main-header-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-header-menu .menu-link,
.main-header-menu a,
.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
    cursor: pointer;
}

.main-header-menu .menu-link:hover,
.main-header-menu a:hover,
.main-navigation a:hover {
    color: #667eea;
}

/* Ensure menu items are clickable */
.main-header-menu .menu-item {
    position: relative;
}

.main-header-menu .menu-item a {
    pointer-events: auto;
    cursor: pointer;
    z-index: 1;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Footer Styles */
.srinfobiz-footer-content {
    background: #2c3e50;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widget h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-widget p {
    color: #bdc3c7;
    line-height: 1.8;
}

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

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #bdc3c7;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #333;
    margin-bottom: 15px;
}

/* Responsive Header */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-header-menu,
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-header-menu li,
    .main-navigation li {
        border-bottom: 1px solid #eee;
        padding: 15px 0;
        width: 100%;
    }
    
    .main-header-menu .menu-link,
    .main-header-menu a {
        padding: 15px 20px;
        width: 100%;
        display: block;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* Fix for Astra menu accessibility */
.navigation-accessibility {
    display: flex;
    align-items: center;
}

/* Ensure menu is visible and clickable */
#primary-site-navigation,
.site-navigation {
    display: flex;
    align-items: center;
    pointer-events: auto;
}

#primary-site-navigation .main-navigation,
.site-navigation .main-navigation {
    width: 100%;
    pointer-events: auto;
}

/* Fix for menu overlay issues */
.ast-primary-header-bar,
.main-header-bar-navigation,
.main-header-bar-navigation * {
    pointer-events: auto !important;
}

.main-header-menu .menu-item,
.main-header-menu .menu-item a,
.main-header-menu .menu-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10 !important;
    position: relative;
}

/* Remove any potential blocking elements */
.ast-primary-header-bar::before,
.ast-primary-header-bar::after,
.main-header-bar-navigation::before,
.main-header-bar-navigation::after {
    display: none !important;
}

/* Made in India Badge - Removed from header, footer only */

/* Hide default Astra below footer */
.site-below-footer-wrap {
    display: none !important;
}

/* Tool Card Hover Effects */
.tool-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.tool-card-item:hover h3 {
    color: #667eea;
    transition: color 0.3s;
}

/* Popular Tools Links Hover */
.popular-tools-section a {
    transition: all 0.3s ease !important;
}

.popular-tools-section a:hover {
    background: rgba(255,255,255,0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Logo Styles */
.site-logo img,
.custom-logo,
.site-header .custom-logo,
.ast-site-identity .custom-logo,
.custom-logo-link img {
    max-height: 50px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

/* Hide site title when logo exists */
.site-header.has-logo .site-title,
.site-header.has-logo .site-title a,
.ast-site-identity.has-logo .site-title,
.ast-site-identity .site-title {
    display: none !important;
}

/* Header alignment and spacing */
.ast-site-identity {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 !important;
}

.site-primary-header-wrap,
.ast-builder-grid-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
}

/* Logo link container */
.custom-logo-link,
.site-logo {
    display: inline-block;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Ensure header doesn't overflow */
.ast-primary-header-bar {
    overflow: visible !important;
    padding: 15px 0 !important;
    min-height: 70px;
    display: flex;
    align-items: center;
}

/* Header container */
.ast-builder-grid-row-container {
    width: 100%;
    max-width: 100%;
}

/* Navigation alignment */
.main-header-bar-navigation {
    display: flex;
    align-items: center;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .site-logo img,
    .custom-logo,
    .custom-logo-link img {
        max-height: 40px !important;
    }
    
    .ast-primary-header-bar {
        min-height: 60px;
        padding: 10px 0 !important;
    }
}

/* Tools Grid Layout - 3 columns per row */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tool-card-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.tool-card-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.tool-card-item p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.tool-card-item .tool-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.tool-card-item .tool-button:hover {
    color: #fff !important;
    background: #005a87;
}

.tool-category-section {
    margin: 30px 0;
}

.tool-category-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tool-card-item {
        padding: 18px;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tool-category-section h2 {
        font-size: 20px;
    }
    
    .tool-card-item {
        padding: 15px;
    }
}

/* JSON/TOON Converter Styles */
.json-toon-converter-tool {
    max-width: 100%;
}

.converter-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.converter-section {
    display: none;
}

.converter-section.active {
    display: block;
}

.json-toon-converter-tool pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 0;
    border: 1px solid #e0e0e0;
}

.json-toon-converter-tool .tool-input {
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.json-toon-converter-tool label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.json-toon-converter-tool .tool-button {
    margin: 5px;
}

/* Responsive styles for JSON/TOON Converter */
@media (max-width: 768px) {
    .converter-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-button {
        width: 100%;
        text-align: left;
        padding: 12px 15px;
        border-bottom: 2px solid #e0e0e0;
        margin-bottom: 0;
    }
    
    .tab-button.active {
        border-bottom-color: #667eea;
        background: rgba(102, 126, 234, 0.1);
    }
    
    .json-toon-converter-tool .tool-button {
        width: 100%;
        margin: 5px 0;
    }
    
    .json-toon-converter-tool pre {
        font-size: 11px;
        padding: 10px;
    }
    
    .json-toon-converter-tool .tool-input {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .json-toon-converter-tool h1 {
        font-size: 24px;
    }
    
    .json-toon-converter-tool p {
        font-size: 14px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .json-toon-converter-tool .tool-button {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .json-toon-converter-tool pre {
        font-size: 10px;
        padding: 8px;
    }
}

/* Enhanced Mobile Responsiveness */

/* Small phones (320px - 480px) */
@media (max-width: 480px) {
    .tool-container {
        padding: 10px;
    }
    
    .tool-card {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .tool-card h1 {
        font-size: 24px !important;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .tool-card p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .tool-input, .tool-output {
        min-height: 150px;
        padding: 10px;
        font-size: 13px;
    }
    
    .tool-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        margin: 5px 0;
    }
}

/* Medium phones and tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .tool-container {
        padding: 15px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-card h1 {
        font-size: 28px !important;
    }
    
    .tool-button {
        min-width: 150px;
    }
}

/* Ensure tool page wrapper stacks properly on mobile */
@media (max-width: 768px) {
    .tool-page-wrapper {
        flex-direction: column;
        padding: 10px;
    }
    
    .tool-page-wrapper .tool-container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        order: 1;
    }
    
    .tool-sidebar-left,
    .tool-sidebar-right {
        width: 100%;
        position: static;
        margin-top: 20px;
    }
    
    .tool-sidebar-left {
        order: 2;
    }
    
    .tool-sidebar-right {
        order: 3;
    }
}

/* Fix homepage sections on mobile */
@media (max-width: 768px) {
    .ast-container,
    .site-content .ast-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure all flex/grid layouts stack */
    .wp-block-columns,
    .elementor-row {
        flex-direction: column !important;
    }
    
    .wp-block-column,
    .elementor-column {
        width: 100% !important;
        flex-basis: 100% !important;
    }

    /* Portfolio Page Mobile Fixes */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px !important;
    }

    .portfolio-item {
        margin-bottom: 20px;
    }
}
