.right-sidebar {
    margin-top: 72px;
}

.right-sidebar-item-border-bottom {
    border-bottom: 1px solid #edf0f5;
}

.footer-list {
    list-style: none;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0 !important;
}

.footer-list li {
    margin-left: 15px;
}

.tool-card-item {
    height: 220px;
}

.tool-card-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.tool-card-item h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    font-size: 20px;
}

.display-5 {
    font-size: 2rem;
}

.logo-custom {
    height: 65px;
    width: auto;
}

.dsc-cookie-policy {
    z-index: 99999;
    position: fixed;
    right: 0;
    bottom: 0;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    width: 300px;
    height: auto;
    background-color: #fff;
    justify-content: space-between;
    margin: 0 20px 20px 0;
    -webkit-box-shadow: 7px 7px 9px -2px rgba(0, 0, 0, 0.35);
    box-shadow: 7px 7px 9px -2px rgba(0, 0, 0, 0.35);
}

.dsc-cookie-policy-header {
    font-size: 18px;
}

.dsc-cookie-policy-content {
    padding-top: 10px;
}

.dsc-cookie-policy-buttons {
    justify-content: right;
    display: flex;
    margin-top: 15px;
}

.dsc-cookie-policy-buttons button {
    margin-left: 10px;
    border-radius: 20px;
    border: none;
    padding: 5px 15px;
    color: #fff;
}

.html-color-box {
    border-radius: 8px;
    border: 1px solid #f9f9f9;
    box-shadow: 0px 4px 4px rgba(31, 30, 47, 0.1);
    padding: 10px;
}

.hcp-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000;
    padding: 20px;
}

.hcp-modal-overlay.hcp-show {
    display: flex;
}

.hcp-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hcp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.hcp-modal-body {
    padding: 12px 16px;
}

.hcp-modal-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    justify-content: flex-end;
}

.hcp-modal textarea {
    width: 100%;
    min-height: 220px;
    padding: 8px;
    font-family: monospace;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.hcp-close-btn {
    background: transparent;
    border: 0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.fixed-ad-container {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 160px;
    /* Adjust based on ad size */
    height: 600px;
    /* Adjust based on ad size */
    display: none;
    /* Hidden by default, shown on large screens */
}

.fixed-ad-left {
    left: 10px;
}

.fixed-ad-right {
    right: 10px;
}

@media (min-width: 1400px) {
    .fixed-ad-container {
        display: block;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Search Area Styles */
.search-input {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    border: 1px solid #dfe1e5;
    box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
    height: 50px;
    padding-left: 20px;
    font-size: 1.1rem;
}

.search-input:focus {
    box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
    border-color: #dfe1e5;
    outline: none;
}

.search-btn {
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    padding-left: 25px;
    padding-right: 25px;
    font-weight: bold;
    height: 50px;
    font-size: 1.1rem;
    background-color: #007bff;
    /* Adjust color as needed */
    border-color: #007bff;
}

.search-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Blog Template Styles */
.blog-wrapper {
    padding-top: 40px;
    padding-bottom: 60px;
}

.blog-content {
    max-width: 850px;
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0 auto;

}

.blog-content h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-content h2 {
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.blog-post-body {
    color: #2c3e50;
}

.blog-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 140px;
}

/* Tool Preview Card */
.tool-preview-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tool-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.tool-preview-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #007bff;
    flex-shrink: 0;
}

.tool-preview-content {
    flex-grow: 1;
}

.tool-preview-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.tool-preview-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

.tool-preview-action {
    white-space: nowrap;
}

/* Dark Mode Support */
[data-layout-mode='dark'] .blog-content p {
    color: #aab8c5;
}

[data-layout-mode='dark'] .tool-preview-card {
    background: #2a3042;
    border-color: #32394e;
}

[data-layout-mode='dark'] .tool-preview-title {
    color: #fff;
}

[data-layout-mode='dark'] .tool-preview-desc {
    color: #a6b0cf;
}

[data-layout-mode='dark'] .tool-preview-icon {
    background: #32394e;
}

/* Blog List Styles */
.blog-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
    background: #fff;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card-img-wrapper {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.blog-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 20px;
}

.blog-card-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: #007bff;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #333;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #007bff;
    text-decoration: none;
}

.blog-card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Dark Mode for Blog List */
[data-layout-mode='dark'] .blog-card {
    background: #2a3042;
}

[data-layout-mode='dark'] .blog-card-title a {
    color: #fff;
}

[data-layout-mode='dark'] .blog-card-title a:hover {
    color: #007bff;
}

[data-layout-mode='dark'] .blog-card-text {
    color: #a6b0cf;
}

[data-layout-mode='dark'] .blog-card-meta {
    border-top-color: #32394e;
    color: #74788d;
}

.textarea-container {
    position: relative;
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
    height: 600px;
    /* Fixed height for scroll */
}

.line-numbers {
    min-width: 40px;
    padding: 10px 5px;
    text-align: right;
    background-color: #e9ecef;
    color: #999;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    border-right: 1px solid #ced4da;
    user-select: none;
    white-space: pre;
}

textarea.form-control-lined {
    border: none;
    resize: none;
    line-height: 1.5;
    padding: 10px;
    flex: 1;
    font-family: monospace;
    font-size: 13px;
    background-color: transparent;
    white-space: pre;
    overflow-x: auto;
}

textarea.form-control-lined:focus {
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

/* Homepage Specific Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 80px;
    color: white;
    margin-top: -24px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    /* Force full width */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    left: 0;
}

/* ... (rest of hero animation css remains similar but ensured) ... */

.hero-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* ... (animation keyframes) ... */
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.hero-search-box {
    background: white;
    padding: 5px;
    /* Thinner padding */
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    border: 1px solid #e0e0e0;
    /* Added border */
    align-items: center;
}

.hero-search-input {
    border: none;
    padding: 15px 25px;
    flex: 1;
    /* Fix width to play nice with flexbox */
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    color: #495057;
    background: transparent;
}

.hero-search-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-right: 4px;
    /* Slight offset from container edge */
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.15s ease;
}

.hero-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Polished Add to Chrome Button - Glassmorphism */
.hero-section .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-section .btn-outline-light:hover {
    background: #fff;
    color: #667eea;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Daily Tips Slider */
.tips-slider-container {
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 60px;
    position: relative;
}

.tip-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #667eea;
    text-align: left;
}

.tip-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tip-content {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.carousel-indicators li {
    background-color: #667eea;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100);
}

.tips-slider-container .carousel-control-prev,
.tips-slider-container .carousel-control-next {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tips-slider-container .carousel-control-prev:hover,
.tips-slider-container .carousel-control-next:hover {
    background: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.tips-slider-container .carousel-control-prev:hover .carousel-control-prev-icon,
.tips-slider-container .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(0);
}

.tips-slider-container .carousel-control-prev {
    left: -40px;
}

.tips-slider-container .carousel-control-next {
    right: -40px;
}


/* Category Cards */
.category-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.category-icon {
    width: 64px;
    height: 64px;
    background: #eef2ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.category-icon i {
    font-size: 28px;
    color: #667eea;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.1);
}

.category-card:hover .category-icon i {
    color: white;
}

.category-title {
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.category-card:hover .category-title {
    color: #667eea;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
}

.feature-box {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 15px;
}

[data-layout-mode='dark'] .hero-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

[data-layout-mode='dark'] .category-card {
    background: #2a3042;
    border-color: #32394e;
}

[data-layout-mode='dark'] .category-title {
    color: #fff;
}

[data-layout-mode='dark'] .category-icon {
    background: #32394e;
}

[data-layout-mode='dark'] .section-title h2 {
    color: #fff;
}