/* main.css - Custom styles for Small SEO Tools layout */

.navbar-brand img {
    width: 100%;
    padding-left: 1rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin-right: 1rem;
}

.navbar-nav .nav-link:last-child {
    margin-right: 0;
}

.lang-btn {
    border: 1px solid #ddd;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
}

footer {
    background: #181c23;
    color: #f1f1f1;
    font-size: 1rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
    border-top: none;
}

footer .fw-bold {
    font-size: 1.1rem;
    color: #fff;
}

footer address {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
}

footer .btn-outline-danger {
    border-color: #ff5e3a;
    color: #ff5e3a;
    background: #23272f;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background 0.2s, color 0.2s;
}

footer .btn-outline-danger:hover {
    background: #ff5e3a;
    color: #fff;
    border-color: #ff5e3a;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li:last-child {
    margin-bottom: 0;
}

footer a.text-dark,
footer a.text-light,
footer a {
    color: #f1f1f1 !important;
    text-decoration: none;
    transition: color 0.2s;
}

footer a.text-dark:hover,
footer a.text-light:hover,
footer a:hover {
    color: #ff5e3a !important;
}

footer img {
    max-height: 32px;
    filter: brightness(0) invert(1);
}

footer .col-12.col-md-4.col-lg-3 {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 2rem;
}

@media (max-width: 991.98px) {
    footer .col-12.col-md-4.col-lg-3 {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
}

footer .list-unstyled {
    padding-left: 0;
}

footer .btn-outline-danger i {
    font-size: 1.1rem;
}

.footer-dark {
    background: #181c23;
    color: #e0e0e0;
    font-size: 1rem;
    padding-top: 3rem;
    padding-bottom: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #23272f;
}

.footer-col {
    flex: 1 1 180px;
    min-width: 180px;
    margin-bottom: 1.5rem;
}

.footer-brand {
    flex: 1.5 1 260px;
    min-width: 220px;
}

.footer-logo img {
    max-height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-weight: 700;
    color: #ff5e3a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

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

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li:last-child {
    margin-bottom: 0;
}

.footer-col a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #ff5e3a;
    text-decoration: underline;
}

.footer-socials {
    margin: 1rem 0 0.5rem 0;
}

.footer-socials a {
    color: #e0e0e0;
    margin-right: 0.7rem;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: #ff5e3a;
}

.footer-contact div {
    margin-bottom: 0.5rem;
    font-size: 0.97rem;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: #ff5e3a;
}

.footer-bottom-bar {
    background: #15181e;
    color: #b0b3b8;
    text-align: center;
    padding: 1.1rem 0 1rem 0;
    font-size: 0.98rem;
    margin-top: 0;
    letter-spacing: 0.01em;
}

@media (max-width: 991.98px) {
    .footer-main {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-col,
    .footer-brand {
        min-width: 0;
        width: 100%;
    }
}

.custom-navbar {
    background: #181c23 !important;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.12);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    z-index: 1040;
    border-bottom: 1px solid #23272f;
}

.custom-navbar .navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.01em;
    width: 12%;
}

.custom-navbar .navbar-nav .nav-link {
    color: #e0e0e0 !important;
    font-weight: 500;
    margin-right: 1rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    padding: 0.5rem 1rem;
}

.custom-navbar .navbar-nav .nav-link:last-child {
    margin-right: 0;
}

.custom-navbar .navbar-nav .nav-link:hover,
.custom-navbar .navbar-nav .nav-link.active {
    background: #23272f;
    color: #ff5e3a !important;
}

.custom-navbar .lang-btn {
    border: 1px solid #ff5e3a;
    background: #ff5e3a;
    color: #fff !important;
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    margin-left: 0.5rem;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.custom-navbar .lang-btn:hover {
    background: #ff784e;
    color: #fff !important;
    border-color: #ff784e;
}

@media (max-width: 991.98px) {
    .custom-navbar .navbar-nav .nav-link {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

.hero-bar {
    background: linear-gradient(120deg, #23272f 60%, #181c23 100%);
    color: #fff;
    padding: 0;
    margin-top: 70px;
    min-height: 250px;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.10);
    border-bottom: 1px solid #23272f;
}

.hero-bar h1 {
    font-size: 2.7rem;
    letter-spacing: 0.01em;
}

.hero-bar .lead {
    color: #e0e0e0;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

.hero-bar .btn-primary {
    background: #ff5e3a;
    border: none;
    font-weight: 600;
    font-size: 1.15rem;
    border-radius: 50px;
    padding: 0.7rem 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

.hero-bar .btn-primary:hover {
    background: #ff784e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
}

main.container,
main.container-fluid {
    margin-top: 40px;
}

@media (max-width: 767.98px) {
    .hero-bar {
        padding: 70px 10px 40px 10px;
        min-height: 220px;
    }

    .hero-bar h1 {
        font-size: 2rem;
    }
}

.tools-left-bg {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.tool-category {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    border: 1px solid #f1f1f1;
    border-radius: 18px;
    margin-bottom: 2.5rem;
    transition: box-shadow 0.2s;
    backdrop-filter: none;
}

.tool-category:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
}

.category-accent {
    width: 8px;
    height: 32px;
    background: linear-gradient(180deg, #ff5e3a 60%, #ffb347 100%);
    border-radius: 4px;
}

.tool-category h4 {
    color: #ff5e3a;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.tool-card {
    background: #f8f9fa;
    border-radius: 16px;
    color: #23272f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    cursor: pointer;
    border: 1px solid #ececec;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.7s cubic-bezier(.39, .575, .565, 1) both;
}

.tool-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    background: #fff;
}

.tool-icon {
    color: #ff5e3a;
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.tool-card:hover .tool-icon {
    color: #ffb347;
}

.tool-name {
    font-size: 1.08rem;
    font-weight: 600;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
}

.tool-categories {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 2rem 1.5rem;
    border: 1px solid #ececec;
    margin-top: 2rem;
}

.tool-categories h4,
.tool-categories h5 {
    color: #ff5e3a;
    font-weight: 700;
}

.tool-categories ul {
    margin-bottom: 1.2rem;
}

.tool-categories li {
    padding: 0.2rem 0;
    font-size: 1rem;
    color: #23272f;
    transition: color 0.2s;
}

.tool-categories li:hover {
    color: #ff5e3a;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Enhanced Search Bar Styles */
.tool-search-container {
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

.tool-search-bar {
    position: relative;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f1f1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tool-search-bar:focus-within {
    border-color: #ff5e3a;
    box-shadow: 0 8px 32px rgba(255, 94, 58, 0.15);
    transform: translateY(-2px);
}

.tool-search-bar input {
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    padding: 1rem 3.5rem 1rem 4rem;
    background: transparent;
    width: 100%;
    transition: all 0.3s ease;
}

.tool-search-bar input:focus {
    outline: none;
    box-shadow: none;
}

.tool-search-bar input::placeholder {
    color: #999;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ff5e3a;
    font-size: 1.2rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.tool-search-bar:focus-within .search-icon {
    color: #ffb347;
    transform: translateY(-50%) scale(1.1);
}

.search-clear {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    color: #ff5e3a;
    background: rgba(255, 94, 58, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f1f1;
    margin-top: 8px;
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-header {
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #f1f1f1;
}

.suggestion-header i {
    color: #ff5e3a;
}

.suggestion-items {
    padding: 0.5rem 0;
}

.suggestion-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.suggestion-item:hover {
    background: rgba(255, 94, 58, 0.08);
    color: #ff5e3a;
}

.suggestion-item.active {
    background: rgba(255, 94, 58, 0.12);
    color: #ff5e3a;
    border-left: 3px solid #ff5e3a;
}

.suggestion-item i {
    font-size: 1.1rem;
    color: #ff5e3a;
    width: 20px;
    text-align: center;
}

.suggestion-item span {
    font-weight: 500;
}

.search-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.total-tools strong {
    color: #ff5e3a;
    font-weight: 600;
}

.search-tip {
    color: #999;
    font-style: italic;
}

/* Search Results Animation */
.tool-category {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-category.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.tool-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-search-container {
        max-width: 100%;
    }

    .search-stats {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .tool-search-bar input {
        font-size: 1rem;
        padding: 0.875rem 3rem 0.875rem 3.5rem;
    }

    .search-icon {
        left: 1.25rem;
        font-size: 1.1rem;
    }

    .search-clear {
        right: 1.25rem;
        font-size: 1rem;
    }

    .tool-categories {
        margin-top: 2rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff5e3a 0%, #ffb347 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 94, 58, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top-btn:hover {
    background: linear-gradient(135deg, #ff784e 0%, #ffc107 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 94, 58, 0.4);
}

.scroll-to-top-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top-btn i {
    transition: transform 0.3s ease;
}

.scroll-to-top-btn:hover i {
    transform: translateY(-2px);
}

/* Pulse animation for attention */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(255, 94, 58, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(255, 94, 58, 0.5), 0 0 0 8px rgba(255, 94, 58, 0.1);
    }

    100% {
        box-shadow: 0 4px 20px rgba(255, 94, 58, 0.3);
    }
}

.scroll-to-top-btn.pulse {
    animation: pulse 2s infinite;
}

/* Responsive adjustments for scroll button */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
}

.dropdown-item {
    color: #333;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.dropdown-item:hover {
    background: rgba(255, 94, 58, 0.08);
    color: #ff5e3a;
    transform: translateX(3px);
}

.dropdown-item i {
    color: #ff5e3a;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #f1f1f1;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Navbar dropdown positioning */
.navbar-nav .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
}

@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }

    .dropdown-item {
        color: #e0e0e0;
        padding: 0.5rem 1rem;
    }

    .dropdown-item:hover {
        background: rgba(255, 94, 58, 0.1);
        color: #ff5e3a;
    }
}

/* Enhanced Sidebar Styles */
.enhanced-sidebar {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 2rem 1.5rem;
    border: 1px solid #ececec;
    margin-top: 2rem;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff5e3a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-category {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f6f6f6;
}

.sidebar-category:last-child {
    border-bottom: none;
}

.sidebar-category-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.bg-social {
    background: linear-gradient(135deg, #ff5e3a 60%, #ffb347 100%);
}

.bg-pdf {
    background: linear-gradient(135deg, #6c63ff 60%, #b47aff 100%);
}

.bg-text {
    background: linear-gradient(135deg, #00b894 60%, #00cec9 100%);
}

.bg-image {
    background: linear-gradient(135deg, #fdcb6e 60%, #e17055 100%);
}

.bg-math {
    background: linear-gradient(135deg, #0984e3 60%, #00b894 100%);
}

.category-name {
    font-weight: 600;
    color: #23272f;
    font-size: 1.05rem;
}

.sidebar-tool-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.sidebar-tool-list li {
    margin-bottom: 0.3rem;
}

.sidebar-tool-list a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #23272f;
    font-size: 1rem;
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    transition: background 0.18s, color 0.18s, padding-left 0.18s;
    text-decoration: none;
}

.sidebar-tool-list a:hover {
    background: rgba(255, 94, 58, 0.08);
    color: #ff5e3a;
    padding-left: 1.2rem;
}

.sidebar-tool-list i {
    color: #ff5e3a;
    font-size: 1.1rem;
    transition: color 0.18s;
}

@media (max-width: 991.98px) {
    .enhanced-sidebar {
        padding: 1.2rem 0.7rem;
    }

    .sidebar-title {
        font-size: 1.05rem;
    }
}

.about-category-section {
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(108, 130, 251, 0.13);
    position: relative;
}

.about-category-section .d-flex.align-items-center.bg-white {
    transition: transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.about-category-section .d-flex.align-items-center.bg-white:hover {
    box-shadow: 0 8px 32px rgba(108, 130, 251, 0.10);
    background: lightgray;
    z-index: 2;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    border-radius: 20%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.18s, filter 0.18s, transform 0.18s;
}

.accordion-item {
    border-radius: 0.75rem !important;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(108, 130, 251, 0.07);
    border: 1.5px solid #e3e6f0;
    transition: box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.accordion-item:before {
    display: none !important;
}

.accordion-button {
    padding-left: 1.5rem !important;
    justify-content: center;
    text-align: center;
}

.accordion-button:focus {
    background: #f0f4ff;
    color: #6a82fb;
    outline: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: #f0f4ff;
    color: #6a82fb;
}

.accordion-button i.fa {
    margin-right: 0.7rem;
    color: #6a82fb;
    font-size: 1.35rem;
}

.accordion-body {
    font-size: 1.05rem;
    color: #444;
    background: #fff;
    border-radius: 0 0 0.75rem 0.75rem;
    padding: 1.1rem 1.5rem 1.1rem 2.2rem;
}

/* About Section Feature Icon Gradients */
.feature-icon.gradient-pink {
    background: linear-gradient(135deg, #6a82fb, #fc5c7d);
    color: #fff;
}

.feature-icon.gradient-green {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #fff;
}

.feature-icon.gradient-yellow {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #fff;
}

.feature-icon.gradient-blue {
    background: linear-gradient(135deg, #43cea2, #185a9d);
    color: #fff;
}

.feature-icon.gradient-orange {
    background: linear-gradient(135deg, #ff5e3a, #ffb347);
    color: #fff;
}

.feature-icon.gradient-purple {
    background: linear-gradient(135deg, #6a82fb, #fc5c7d);
    color: #fff;
}

.feature-icon.gradient-gold {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: #fff;
}

.feature-icon.gradient-darkblue {
    background: linear-gradient(135deg, #6c63ff, #b47aff);
    color: #fff;
}

/* About Section Heading */
.about-category-section .section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #23272f;
    margin-top: 3rem;
    margin-bottom: 0.7rem;
    letter-spacing: 0.01em;
    position: relative;
    text-align: left;
}

.firstheading {
    margin-top: 1rem !important;
}

.about-category-section .section-title.accent {
    color: #6a82fb;
}

.about-category-section .section-title .accent-bar {
    display: block;
    width: 48px;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, #6a82fb 0%, #fc5c7d 100%);
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}

@media (max-width: 767.98px) {
    .about-category-section .section-title {
        font-size: 1.4rem;
        margin-top: 2rem;
    }

    .about-category-section .section-title .accent-bar {
        width: 32px;
        height: 4px;
    }
}

/* Remove inline border-radius if present */
.about-category-section {
    border-radius: 1.5rem;
}

/* Google Translate Widget Styling */
#google_translate_element {
    display: flex;
    align-items: center;
}

#google_translate_element .goog-te-gadget {
    font-size: 0;
}

#google_translate_element .goog-te-gadget .goog-te-combo {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#google_translate_element .goog-te-gadget .goog-te-combo:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

#google_translate_element .goog-te-gadget .goog-te-combo:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#google_translate_element .goog-te-gadget .goog-te-combo option {
    background: #343a40;
    color: white;
}

/* Hide Google Translate attribution */
.goog-te-banner-frame {
    display: none !important;
}

.goog-te-gadget {
    font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
}

/* Mobile responsive adjustments for Google Translate */
@media (max-width: 768px) {
    #google_translate_element .goog-te-gadget .goog-te-combo {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Tool Card Link Styles */
.tool-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

a .tool-card {
    transition: all 0.3s ease;
}

a:hover .tool-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

a:hover .tool-card .tool-icon {
    color: #ffb347;
    transform: scale(1.1);
}

a:hover .tool-card .tool-name {
    color: #ff5e3a;
}

/* Text Case Converter Specific Styles */
.case-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.case-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-btn:active {
    transform: translateY(0);
}

#loadingIndicator {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
}

.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Safe styling for content blocks rendered from admin (FAQ, help, features) */
.tool-content-section pre,
.tool-content-section code,
.accordion-body pre,
.accordion-body code {
    font-family: "Share Tech Mono", "Courier New", monospace;
}

.tool-content-section pre,
.accordion-body pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.tool-content-section code,
.accordion-body code {
    background: #fff3cd;
    color: #856404;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* Custom Shadow Classes */
.custom-shadow {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

@media (max-width: 768px) {
    .case-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .d-flex.flex-wrap.gap-2 {
        gap: 0.5rem !important;
    }
}

.clearbtn {
    max-width: 100px;
    margin: 1rem auto;
    height: 48px;
}