.sidebar .badge {
    background: #007bff;
    color: #fff;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --bg-light: #f8f9fa;
    --text-light: #333;
    --bg-dark: #1a1a1a;
    --text-dark: #f8f9fa;
}

body.light-mode {
    background: var(--bg-light);
    color: var(--text-light);
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-dark);
}

.navbar,
.topbar,
.footer {
    transition: background 0.3s ease;
    background-color: #000;
}
.footer {
    color:#f8f9fa;
}

.topbar {
    background: var(--primary-color);
    color: white;
    padding: 10px 0;
}

.navbar.light-mode {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar.dark-mode {
    background: #333;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.navbar.light-mode .nav-link,
.navbar.light-mode .navbar-brand {
    color: var(--text-light) !important;
}

.navbar.light-mode .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar.dark-mode .nav-link,
.navbar.dark-mode .navbar-brand {
    color: var(--text-dark) !important;
}

.navbar.dark-mode .nav-link:hover {
    color: var(--primary-color) !important;
}

.slider {
    height: 720px;
    position: relative;
}

.carousel-item img {
    height: 720px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 10px;
}

.section-padding {
    padding: 60px 0;
}

.portfolio-item img {
    height: 300px;
    /*object-fit: cover;*/
}

.blog-item img {
    height: 200px;
    object-fit: cover;
}

.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.client-logo img {
    height: 80px;
    object-fit: contain;
}

.pricing-table .card {
    transition: transform 0.3s ease;
}

.pricing-table .card:hover {
    transform: translateY(-10px);
}

.callout {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
}

.footer.dark-mode {
    background: #222;
}

.mode-toggle {
    position: fixed;
    top: 54px;
    right: 15px;
    z-index: 1000;
}

.services-title,
.blog-title,
.clients-title,
.contect-black,
.blog-p,
.clients-p {
    color: black;
}


ul.text-decoration-none a {
    color: var(--text-light);
}

body.dark-mode ul.text-decoration-none a {
    color: var(--text-dark);
}

ul.text-decoration-none a:hover {
    color: var(--primary-color);
}

/* Single Post */
.post-meta {
    font-size: 0.9rem;
    color: #666;
}
.comment-box {
    margin-top: 40px;
}
.comment-list {
    margin-top: 40px;
}
.comment {
    border-left: 3px solid #ff4b2b;
    padding-left: 20px;
    margin-bottom: 20px;
}
.nested-comment {
    margin-left: 40px;
    padding-left: 20px;
    border-left: 3px solid #ff416c;
}
.dark-mode .post-meta {
    color: #ccc;
}
.dark-mode .comment {
    border-left-color: #ff416c;
}
.dark-mode .nested-comment {
    border-left-color: #ff4b2b;
}
/* Fix post content visibility in dark mode */
.dark-mode .post-content h1,
.dark-mode .post-content h2,
.dark-mode .post-content h3,
.dark-mode .post-content h4,
.dark-mode .post-content h5,
.dark-mode .post-content h6,
.dark-mode .post-content p,
.dark-mode .post-title {
    color: #fff;
}
/* Fix nested comments visibility in dark mode */
.dark-mode .comment-section .card-body p,
.dark-mode .comment-section .card-body h6,
.dark-mode .comment-section .card-body small,
.dark-mode .comment-box,
.dark-mode .comment-list {
    color: #fff;
}

/* Single Page */
/* Fix post content visibility in dark mode */
.dark-mode .page-content h1,
.dark-mode .page-content h2,
.dark-mode .page-content h3,
.dark-mode .page-content h4,
.dark-mode .page-content h5,
.dark-mode .page-content h6,
.dark-mode .page-content p,
.dark-mode .page-title {
    color: #fff;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .slider {
        height: 400px;
    }

    .carousel-item img {
        height: 400px;
    }

    .carousel-caption {
        padding: 10px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .section-padding {
        padding: 40px 0;
    }

    .portfolio-item img {
        height: 200px;
    }

    .blog-item img {
        height: 150px;
    }

    .team-member img {
        width: 100px;
        height: 100px;
    }

    .client-logo img {
        height: 60px;
    }

    .topbar .col-md-6 {
        text-align: center;
        margin-bottom: 10px;
    }

    .topbar .text-md-end {
        text-align: center !important;
    }

    .navbar-nav {
        text-align: center;
    }

    .mode-toggle {
        top: 35px;
        right: 10px;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3,
    h5 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .slider {
        height: 300px;
    }

    .carousel-item img {
        height: 300px;
    }

    .carousel-caption h1 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }

    .carousel-caption .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .section-padding {
        padding: 30px 0;
    }

    .portfolio-item,
    .blog-item,
    .team-member {
        margin-bottom: 20px;
    }

    .pricing-table .card {
        margin-bottom: 20px;
    }

    .footer .col-md-4 {
        margin-bottom: 20px;
        text-align: center;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3,
    h5 {
        font-size: 1rem;
    }
}

@media (max-width: 991.98px) {
  .navbar .dropdown-menu { border: 0; }
}

/* Consistent logo sizing */
.navbar-brand .logo-image {
  height: 40px;        /* uniform across devices */
  width: auto;
  display: block;
}

/* Slightly larger on desktop */
@media (min-width: 992px) {
  .navbar-brand .logo-image { height: 48px; }
}

/* Align items nicely */
.navbar { padding-top: .5rem; padding-bottom: .5rem; }
.navbar .navbar-brand { margin-right: 1rem; }

/* Make sure toggler icon is visible (works with navbar-light) */
.navbar-light .navbar-toggler { border: 0; }

/* If you want the navbar same blue as the topbar, switch to: 
   .navbar.navbar-dark.bg-primary  (and remove bg-white above) */


   /* Light mode breadcrumb */

body.light-mode .breadcrumb .breadcrumb-item {
  color: #6c757d;
}
body.light-mode .breadcrumb .breadcrumb-item a {
  color: #0d6efd;
}
body.light-mode .breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  color: #adb5bd;
}

/* Dark mode breadcrumb */

body.dark-mode .breadcrumb .breadcrumb-item,
body.dark-mode .breadcrumb .breadcrumb-item.active {
  color: #e5e7eb;
}
body.dark-mode .breadcrumb .breadcrumb-item a {
  color: #60a5fa;
}
body.dark-mode .breadcrumb .breadcrumb-item a:hover {
  color: #93c5fd;
}
body.dark-mode .breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  color: #9ca3af;
}
