/**
 * Brands Section Styles
 * Matching the design from the image
 *
 * @package CreateAI
 */

/* Brands Section Wrapper */
.tools-section-wrapper {
    width: 100%;
    margin: var(--section-gap) 0;
}

.tools-section-container {
    width: 100%;
}

/* Brands Section Box (glassmorphism) */
.tools-section-box {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--box-border-radius);
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 24px 64px rgba(0, 0, 0, 0.25),
        0 0 80px rgba(0, 230, 118, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* Box Header */
.tools-section-box-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2.5rem;
    gap: 1.25rem;
}

/* Section Title */
.tools-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* View All Button in Header - Unified style with articles button */
.tools-view-all-btn-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.tools-view-all-btn-header:hover {
    background: rgba(44, 44, 46, 0.75);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
}

@media (max-width: 768px) {
    .tools-section-box {
        padding: 1.5rem 1rem;
        border-radius: var(--box-border-radius-mobile);
    }
    
    .tools-section-box-header {
        margin-bottom: 1.5rem;
        gap: 1rem;
    }
    
    .tools-section-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .tools-view-all-btn-header {
        font-size: 0.8rem;
        padding: 0.7rem 1.5rem;
        text-align: center;
    }
}

/* Brands Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

/* Brand Card */
.tool-card {
    position: relative; /* Needed for badge positioning */
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--box-border-radius-mobile);
    padding: 2rem;
    padding-top: 2.5rem; /* Extra space for badge */
    margin-top: 0.75rem; /* Space for badge overflow */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    height: 100%;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 20px 56px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 40px 80px rgba(0, 0, 0, 0.25),
        0 0 35px rgba(0, 230, 118, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    background: rgba(44, 44, 46, 0.75);
    border: 1px solid rgba(0, 230, 118, 0.18);
}

/* Brand Card Title */
.tool-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    margin: 0;
    text-align: center;
    text-shadow:
        0 0 20px var(--tool-accent-color, rgba(255, 255, 255, 0.3)),
        0 0 40px var(--tool-accent-color, rgba(255, 255, 255, 0.1)),
        0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Subtle accent color bar at the top of each card */
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--tool-accent-color, rgba(255, 255, 255, 0.3)) 30%,
        var(--tool-accent-color, rgba(255, 255, 255, 0.3)) 70%,
        transparent 100%
    );
    opacity: 0.6;
    border-radius: var(--box-border-radius-mobile) var(--box-border-radius-mobile) 0 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

/* Brand Card Image Container */
.tool-card-image-container {
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 280px;
    max-height: 360px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: var(--box-border-radius);
    margin: 0;
}

.tool-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--box-border-radius);
}

/* Brand Card Description (legacy - now using features) */
/* Brand Card Description Box - Mini version */
.tool-card-description-box {
    width: 100%;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(28, 28, 30, 0.4);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.tool-card-description-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: left;
    margin: 0;
}

.tool-card-description-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

/* Brand Card Features - Elegant preview tags */
.tool-card-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    flex-grow: 1;
}

.tool-card-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tool-card-feature-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tool-card-feature-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Features */
@media (max-width: 768px) {
    .tool-card-features {
        gap: 0.4rem;
    }
    
    .tool-card-feature-tag {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .tool-card-feature-more {
        padding: 0.3rem 0.4rem;
        font-size: 0.6rem;
    }
}

/* Brand Card Button */
.tool-card-button {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background: var(--tool-accent-color, rgba(28, 28, 30, 0.6));
    border: 1px solid color-mix(in srgb, var(--tool-accent-color, #ffffff) 30%, transparent);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px color-mix(in srgb, var(--tool-accent-color, transparent) 30%, transparent);
}

.tool-card-button:hover {
    background: color-mix(in srgb, var(--tool-accent-color, #ffffff) 110%, #000);
    border-color: color-mix(in srgb, var(--tool-accent-color, #ffffff) 50%, transparent);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 30px color-mix(in srgb, var(--tool-accent-color, transparent) 50%, transparent);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ==========================================
   BRANDS PAGE SPECIFIC STYLES
   ========================================== */

.tools-page-wrapper {
    width: 100%;
    min-height: 60vh;
    padding: var(--page-padding-desktop);
}

.tools-page-container {
    max-width: var(--box-max-width);
    margin: 0 auto;
    padding: var(--wrapper-padding-desktop);
}

.tools-page-header {
    margin-bottom: 0;
}

.tools-page-header-content {
    text-align: center;
    margin-bottom: 0;
}

.tools-page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.tools-page-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

/* Filters integrated in header */
.tools-page-header .tools-categories-filter {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.25rem 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Fade hint at right edge */
    mask-image: linear-gradient(to right, transparent 0, black 1rem, black calc(100% - 1rem), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 1rem, black calc(100% - 1rem), transparent 100%);
}

.tools-page-header .tools-categories-filter::-webkit-scrollbar {
    display: none;
}

.tools-page-header .tools-categories-filter .category-filter-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Desktop filter buttons - larger */
@media (min-width: 769px) {
    .tools-page-header .tools-categories-filter .category-filter-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

/* Section divider - Bold Engraved Style */
.tools-section-divider {
    margin: calc(var(--section-gap) * 0.75) 0;
    text-align: center;
    position: relative;
    transition: margin-top 0.3s ease, padding-top 0.3s ease;
}

/* When divider is inside related-tools-section, only keep bottom margin (top is from section itself) */
.related-tools-section .tools-section-divider {
    margin-top: 0;
    margin-bottom: calc(var(--section-gap) * 0.75);
}

/* When divider follows category-description-box, spacing is handled by divider */
.category-description-box.visible + .related-tools-section .tools-section-divider {
    margin-top: calc(var(--section-gap) * 0.75);
}

/* When dropdown is open, JavaScript handles margin-bottom on dropdown container */
/* This pushes all content below (description + brands) automatically */
.tools-filter-dropdown.dropdown-open {
    /* JavaScript will set exact margin-bottom based on menu height */
    /* This is a fallback minimum */
    transition: margin-bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tools-section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 0;
    background: transparent;
    position: relative;
    margin: 0;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(255, 255, 255, 0.1);
}

/* Featured section - bright white neon */
.tools-section-featured-divider .tools-section-label {
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.15);
}

/* Others section - slightly dimmer */
.tools-section-others-divider .tools-section-label {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(255, 255, 255, 0.15);
}

/* Featured brands inline (no separate section) */
.featured-tools-inline {
    margin-bottom: 0;
}

/* Brand Badge */
.tool-badge {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Mobile badge adjustments */
@media (max-width: 768px) {
    .tool-badge {
        top: -0.5rem;
        right: 0.75rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.65rem;
    }
}

.tool-badge-popular {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.tool-badge-new {
    background: rgba(40, 167, 69, 0.9);
    color: #ffffff;
}

.tool-badge-top-rated {
    background: rgba(255, 87, 34, 0.9);
    color: #ffffff;
}

.tool-badge-editor-choice {
    background: rgba(156, 39, 176, 0.9);
    color: #ffffff;
}

.tool-badge-free {
    background: rgba(0, 188, 212, 0.9);
    color: #fff;
}

.tool-badge-premium {
    background: rgba(147, 112, 219, 0.9);
    color: #fff;
}

/* Brand Stats */
/* Brand Card Stats - Ultra minimal, inline, no box */
.tool-card-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin: 0.75rem 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.tool-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    white-space: nowrap;
}

.tool-stat-svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Score badge on card image */
.tool-card-image-container {
    position: relative;
}

.tool-card-score-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.9), rgba(0, 230, 118, 0.9));
    backdrop-filter: blur(8px);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 3px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 230, 118, 0.4);
    line-height: 1.4;
}

/* Meta row: category pill + pricing pill */
.tool-card-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0 0.25rem;
}

.tool-card-cat-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.tool-card-pricing-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 2px 7px;
}

.tool-card-pricing-free {
    color: #00E676;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
}

.tool-card-pricing-freemium {
    color: #69F0AE;
    background: rgba(105, 240, 174, 0.1);
    border: 1px solid rgba(105, 240, 174, 0.2);
}

.tool-card-pricing-paid,
.tool-card-pricing-premium {
    color: rgba(255, 210, 100, 0.85);
    background: rgba(255, 200, 50, 0.08);
    border: 1px solid rgba(255, 200, 50, 0.18);
}

@media (max-width: 768px) {
    .tool-card-stats {
        gap: 0.75rem;
        margin: 0.5rem 0;
}

    .tool-stat {
        font-size: 0.7rem;
}

    .tool-stat-svg {
        width: 12px;
        height: 12px;
}
}

/* Responsive */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .featured-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-how-to-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .tools-section-wrapper {
        margin: var(--section-gap-mobile) 0;
    }
    
    .tools-page-container {
        padding: var(--wrapper-padding-mobile);
    }
    
    .tools-page-wrapper {
        padding: var(--page-padding-mobile);
    }
    
    .tools-page-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .tools-page-subtitle {
        font-size: 1rem;
    }
    
    .tools-page-header .tools-categories-filter {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .tools-page-header .tools-categories-filter .category-filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: var(--section-gap-mobile);
    }
    
    .tool-card {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .tool-card-image-container {
        min-height: 260px;
        max-height: none;
    }
    
    .tool-card-description-box {
        padding: 0.85rem;
        margin: 0.85rem 0;
    }
    
    .tool-card-description-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .tools-section-divider {
        margin: calc(var(--section-gap-mobile) * 0.75) 0;
    }
    
    /* When divider is inside related-tools-section, only keep bottom margin (top is from section) */
    .related-tools-section .tools-section-divider {
        margin-top: 0;
        margin-bottom: calc(var(--section-gap-mobile) * 0.75);
    }
    
    .category-description-box.visible {
        margin-bottom: 0;
    }
    
    .category-description-box.visible + .related-tools-section .tools-section-divider {
        margin-top: calc(var(--section-gap-mobile) * 0.75);
    }
}

/* Brands About Section */
.tools-about-section {
    width: 100%;
    margin: var(--section-gap) 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tools-about-box {
    width: 100%;
    max-width: 100%;
    padding: var(--box-padding-desktop);
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--box-border-radius);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 24px 64px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.tools-about-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Content - Collapsible */
.tools-about-content {
    margin: 0;
    position: relative;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.tools-about-content.expanded {
    max-height: 5000px;
}

.tools-about-content-inner {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
}

.tools-about-content p {
    margin-bottom: 1rem;
}

.tools-about-content h2,
.tools-about-content h3 {
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tools-about-content ul,
.tools-about-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.tools-about-content li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.tools-about-content strong {
    color: #ffffff;
    font-weight: 700;
}

.tools-about-content a {
    color: #4A90E2;
    text-decoration: underline;
}

.tools-about-content a:hover {
    color: #50E3C2;
}

/* Toggle Button */
.tools-about-toggle-container {
    text-align: center;
    margin-top: 1.5rem;
}

.tools-about-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tools-about-toggle-btn:hover {
    background: rgba(44, 44, 46, 0.75);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.tools-toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
    .tools-about-section {
        margin: var(--section-gap-mobile) 0 0 0;
    }
    
    .tools-about-box {
        padding: var(--box-padding-mobile);
        border-radius: var(--box-border-radius-mobile);
    }
    
    .tools-about-title {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
        margin-bottom: 1.25rem;
    }
    
    .tools-about-content {
        max-height: 250px;
    }
    
    .tools-about-content-inner {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .tools-about-toggle-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   BRANDS PAGINATION
   ============================================ */
.tools-pagination {
    margin: 3rem auto 1.5rem;
    display: flex;
    justify-content: center;
}

.tools-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tools-pagination .page-numbers li {
    list-style: none;
}

.tools-pagination .page-numbers a,
.tools-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tools-pagination .page-numbers a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.tools-pagination .page-numbers .current {
    background: rgba(0, 230, 118, 0.15);
    color: #00E676;
    border-color: rgba(0, 230, 118, 0.35);
    cursor: default;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.15);
}

.tools-pagination .page-numbers .dots {
    background: transparent;
    border-color: transparent;
    color: rgba(255, 255, 255, 0.35);
    cursor: default;
}

@media (max-width: 480px) {
    .tools-pagination .page-numbers a,
    .tools-pagination .page-numbers span {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.78rem;
    }
}

