/* ************ Base Styles ************ */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--heading-color);
    background-color: var(--background-color);
    padding-top: 90px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--heading-color);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

section {
    padding: 80px 0;
    position: relative;
}

/* ************ Navigation Menu ************ */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand img {
    height: 50px;
    transition: all 0.3s;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--heading-color);
    font-weight: 500;
    padding: 10px 15px;
    margin: 0 5px;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--accent-color);
}

.navbar-nav .nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

.navbar-nav .nav-link.active:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1); /* kept as hex for transparency */
    color: var(--accent-color);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#navbar .navbar-brand {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #007bff;
    transition: color 0.3s ease;
}

#navbar .navbar-brand:hover {
    color: #0056b3;
}

#navbar .navbar-brand img {
    height: 40px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

#navbar .navbar-brand img:hover {
    transform: scale(1.05);
}

/* ************ Footer ************ */
footer {
    background: linear-gradient(135deg, #1a2a4a, #0d1b36);
    color: var(--contrast-color);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

footer:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(
            90deg,
            var(--accent-color),
            #0dcaf0
    ); /* kept --info-color as hex since not in new vars */
}

.footer-waves {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("https://placehold.co/1200x100/1a2a4a/FFFFFF?text=+")
    center/cover;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-heading {
    color: var(--contrast-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.25rem;
}

.footer-heading:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(
            90deg,
            var(--accent-color),
            #0dcaf0
    ); /* info-color kept as hex */
    border-radius: 3px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-block;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--contrast-color);
    transform: translateX(5px);
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: var(--accent-color);
    margin-top: 3px;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--contrast-color);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--contrast-color);
}

.footer-logo {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--contrast-color);
    transition: color 0.3s ease;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: grayscale(100%) brightness(200%) contrast(0%);
    opacity: 0.8;
}

/* ************ Floating Action Button (Scroll to Top) ************ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--heading-color);
    transform: translateY(-5px);
}

/* ************ General Section Styling ************ */
.section-heading {
    margin-bottom: 50px;
    text-align: center;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-heading p {
    color: var(--default-color);
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--surface-color) !important;
}

/* ************ Hero Section ************ */
#hero {
    background: url("  https://assets.aktools.net/image-stocks/solid-colors/solid-8.jpg  ")
    center center/cover no-repeat;
    padding: 180px 0 100px 0;
    color: var(--heading-color);
    position: relative;
}

#hero:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero .hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

#hero .hero-content p {
    font-size: 1.25rem;
    color: var(--default-color);
    max-width: 800px;
    margin-bottom: 30px;
}

/* ************ About Section ************ */
#about .about-img {
    padding-right: 20px;
}

#about .about-img img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#about .content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

#about .content ul {
    list-style: none;
    padding: 0;
}

#about .content li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

#about .content li i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
}

/* ************ What We Do Section ************ */
.what-we-do-item {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.what-we-do-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.what-we-do-item .icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

/* ************ Services Section ************ */
.service-card {
    background: var(--background-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-card .card-body {
    padding: 30px;
    text-align: center;
}

.service-card .icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: rgba(13, 110, 253, 0.1); /* kept as hex for transparency */
    color: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    transition: all 0.3s;
}

.service-card:hover .icon {
    background: var(--accent-color);
    color: var(--contrast-color);
}

/* ************ Sponsors Section ************ */
#sponsors .logo-item img {
    filter: grayscale(100%);
    transition: all 0.3s;
    max-width: 150px;
}

#sponsors .logo-item img:hover {
    filter: none;
    opacity: 0.8;
}

/* ************ CountUp Section ************ */
#counts {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://assets.aktools.net/image-stocks/solid-colors/solid-9.jpg  ")
    fixed center center/cover;
    color: var(--contrast-color);
}

#counts .count-box {
    text-align: center;
    padding: 20px 0;
}

#counts .count-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

#counts .count-box .counter {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
}

#counts .count-box p {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

#counts .counter {
    color: var(--surface-color);
}

/* ************ FAQ Section ************ */
#faq .accordion-item {
    border: none;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

#faq .accordion-button {
    background-color: var(--surface-color);
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 20px 25px;
}

#faq .accordion-button:not(.collapsed) {
    color: var(--accent-color);
    background-color: rgba(13, 110, 253, 0.1); /* kept as hex */
}

#faq .accordion-body {
    padding: 20px 25px;
    color: var(--default-color);
}

/* ************ Recent Posts Section ************ */
.recent-posts article {
    background: var(--surface-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-posts article:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.recent-posts .post-img {
    max-height: 240px;
    margin: -30px -30px 15px -30px;
    overflow: hidden;
}

.recent-posts .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recent-posts article:hover .post-img img {
    transform: scale(1.05);
}

.recent-posts .post-category {
    font-size: 16px;
    color: var(--default-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.recent-posts .title {
    font-size: 20px;
    font-weight: 700;
    padding: 0;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.recent-posts .title a {
    color: var(--heading-color);
    transition: 0.3s;
    text-decoration: none;
}

.recent-posts .title a:hover {
    color: var(--accent-color);
}

.recent-posts .post-author-img {
    width: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.recent-posts .post-author {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.recent-posts .post-date {
    font-size: 14px;
    color: var(--default-color);
    margin-bottom: 0;
}

/* ************ CTA Section ************ */
#cta {
    background: linear-gradient(rgba(13, 110, 253, 0.8), rgba(13, 110, 253, 0.8)),
    url("https://assets.aktools.net/image-stocks/cta/cta-1.jpg") fixed center
    center/cover;
    color: var(--contrast-color);
    text-align: center;
}

#cta h3 {
    color: var(--contrast-color);
    font-size: 2rem;
    font-weight: 700;
}

#cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ************ Testimonials Section ************ */
.testimonial-item {
    padding: 30px;
    background: var(--surface-color);
    border-radius: 10px;
    position: relative;
    text-align: center;
    margin: 0 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-item .quote-icon-left,
.testimonial-item .quote-icon-right {
    color: rgba(13, 110, 253, 0.1); /* kept as hex */
    font-size: 2.5rem;
}

.testimonial-item .quote-icon-left {
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-item .quote-icon-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.testimonial-item p {
    font-style: italic;
    color: var(--default-color);
    padding: 0 40px;
}

.testimonial-item .profile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-item .profile img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 15px;
    border: 4px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-item .profile h4 {
    margin: 0;
    font-size: 1.1rem;
}

.testimonial-item .profile span {
    font-size: 0.9rem;
    color: var(--default-color);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
}

/* ************ Portfolio Section ************ */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    transition: all 0.5s ease;
    width: 100%;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    color: var(--contrast-color);
    text-align: center;
}

.portfolio-info h4 {
    color: var(--contrast-color);
    margin-bottom: 5px;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.portfolio-links a {
    color: var(--contrast-color);
    font-size: 1.5rem;
    margin: 0 10px;
}

/* ************ Team Section ************ */
.team-member {
    text-align: center;
    background: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.team-member .member-img img {
    max-width: 100%;
    border-radius: 10px 10px 0 0;
}

.team-member .member-info {
    padding: 15px;
}

.team-member .member-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-member .member-info span {
    font-size: 0.9rem;
    color: var(--default-color);
    display: block;
    margin-bottom: 10px;
}

.team-member .social-links a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(13, 110, 253, 0.1); /* kept as hex */
    color: var(--accent-color);
    transition: all 0.3s;
}

.team-member .social-links a:hover {
    background: var(--accent-color);
    color: var(--contrast-color);
}

/* ************ Pricing Section ************ */
.pricing-card {
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card h4 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
}

.pricing-card .price sup {
    font-size: 1.5rem;
    top: -1em;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--default-color);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 25px 0;
}

.pricing-card ul li {
    margin-bottom: 15px;
    color: var(--heading-color);
}

.pricing-card ul i {
    color: #198754; /* success color not in new vars → keep as hex */
    margin-right: 10px;
}

.pricing-card .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.pricing-card .btn-primary:hover {
    background-color: var(--heading-color);
    border-color: var(--heading-color);
}

.pricing-card.pro-plan :is(i, li, span) {
    color: var(--surface-color) !important;
}

/* ************ Subscribe Section ************ */
#subscribe {
    background: var(--surface-color);
    padding: 60px 0;
    text-align: center;
}

#subscribe .subscribe-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

#subscribe .form-control {
    border-radius: 50px 0 0 50px;
    padding: 12px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#subscribe .btn {
    border-radius: 0 50px 50px 0;
    padding: 12px 25px;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ************ Contact Section ************ */
#contact .info {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

#contact .info .icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
}

#contact .info h4 {
    font-size: 1.2rem;
}

#contact .php-email-form {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

#contact .form-group {
    margin-bottom: 20px;
}

#contact .form-control {
    border-radius: 5px;
    padding: 12px;
}

#contact textarea.form-control {
    min-height: 150px;
}

#contact .btn-primary {
    width: 100%;
    padding: 12px;
}

/* ************ Blog Details Page Specific Styles ************ */
.blog-details {
    padding: 80px 0;
}

.blog-details .blog-content {
    margin-bottom: 30px;
}

.blog-details .blog-content h1.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.blog-details .blog-meta {
    color: var(--default-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.blog-details .blog-meta ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-details .blog-meta ul li + li {
    padding-left: 20px;
}

.blog-details .blog-meta i {
    margin-right: 8px;
    line-height: 0;
}

.blog-details .blog-content img {
    margin: 20px 0;
    max-width: 100%;
    height: auto;
}

.blog-details .blog-content blockquote {
    overflow: hidden;
    background-color: var(--surface-color);
    padding: 30px;
    position: relative;
    text-align: center;
    margin: 20px 0;
    border-left: 3px solid var(--accent-color);
}

.blog-details .blog-content blockquote p {
    color: var(--default-color);
    line-height: 1.6;
    margin-bottom: 0;
    font-style: italic;
    font-size: 1.1rem;
}

/* ************ Author Box ************ */
.blog-author {
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background-color: var(--surface-color);
    border-radius: 8px;
}

.blog-author img {
    width: 120px;
    margin-right: 20px;
    border-radius: 50%;
}

.blog-author h4 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.blog-author .social-links a {
    color: rgba(108, 117, 125, 0.5); /* --default-color with opacity */
    margin-right: 10px;
    font-size: 1.1rem;
}

.blog-author .social-links a:hover {
    color: var(--accent-color);
}

.blog-author p {
    font-style: italic;
    color: var(--default-color);
}

/* ************ Sidebar ************ */
.sidebar {
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background-color: var(--background-color);
    border-radius: 8px;
    margin-top: 20px;
}

@media (min-width: 992px) {
    .sidebar {
        margin-top: 0;
    }
}

.sidebar .sidebar-item {
    margin-bottom: 30px;
}

.sidebar .sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--surface-color);
    color: var(--heading-color);
}

/* ************ Sidebar Search ************ */
.sidebar .search-form form {
    background: var(--surface-color);
    border: 1px solid #e1e4e6;
    padding: 5px;
    border-radius: 4px;
    display: flex;
}

.sidebar .search-form form input[type="text"] {
    border: 0;
    padding: 8px;
    border-radius: 4px 0 0 4px;
    flex-grow: 1;
    background-color: transparent;
}

.sidebar .search-form form input[type="text"]:focus {
    outline: none;
    box-shadow: none;
}

.sidebar .search-form form button {
    padding: 8px 15px;
    margin: 0;
    background: var(--accent-color);
    border: 0;
    border-radius: 0 4px 4px 0;
    color: var(--contrast-color);
    cursor: pointer;
}

.sidebar .search-form form button:hover {
    background: #0b5ed7; /* darken(var(--accent-color), 10%) → approx */
}

/* ************ Sidebar Categories & Recent Posts ************ */
.sidebar .categories ul,
.sidebar .recent-posts ul {
    list-style: none;
    padding: 0;
}

.sidebar .categories ul li,
.sidebar .recent-posts ul li {
    margin-bottom: 10px;
}

.sidebar .categories ul a {
    color: var(--default-color);
    transition: 0.3s;
    display: block;
    padding: 5px 0;
}

.sidebar .categories ul a:hover {
    color: var(--accent-color);
}

.sidebar .categories ul a span {
    float: right;
    color: var(--default-color);
    font-size: 0.9em;
}

.sidebar .recent-posts .post-item {
    display: flex;
    align-items: flex-start;
}

.sidebar .recent-posts img {
    width: 80px;
    margin-right: 15px;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar .recent-posts h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar .recent-posts h4 a {
    color: var(--heading-color);
    transition: 0.3s;
}

.sidebar .recent-posts h4 a:hover {
    color: var(--accent-color);
}

.sidebar .recent-posts time {
    display: block;
    font-style: italic;
    font-size: 0.8rem;
    color: var(--default-color);
}

/* ************ Sidebar Tags ************ */
.sidebar .tags ul {
    list-style: none;
    padding: 0;
}

.sidebar .tags ul li {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 8px;
}

.sidebar .tags ul a {
    color: var(--default-color);
    font-size: 0.9rem;
    padding: 6px 14px;
    border: 1px solid rgba(108, 117, 125, 0.5); /* --default-color with opacity */
    display: inline-block;
    border-radius: 4px;
    transition: 0.3s;
}

.sidebar .tags ul a:hover {
    color: var(--contrast-color);
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* ************ Blog Comments ************ */
.blog-comments {
    margin-top: 30px;
}

.blog-comments .comments-count {
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.blog-comments .comment {
    margin-bottom: 30px;
    position: relative;
}

.blog-comments .comment .comment-img {
    margin-right: 15px;
    float: left;
}

.blog-comments .comment .comment-img img {
    width: 60px;
    border-radius: 50%;
}

.blog-comments .comment h5 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 2px;
}
.blog-comments .comment h5 a {
    color: var(--heading-color);
}

.blog-comments .comment time {
    font-size: 0.85rem;
    color: var(--default-color);
    margin-bottom: 5px;
    display: block;
}

.blog-comments .comment .comment-reply {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

.blog-comments .comment .comment-reply i {
    margin-right: 4px;
}

.blog-comments .comment.comment-reply {
    padding-left: 40px;
    margin-left: 20px;
    border-left: 1px dashed var(--surface-color);
    margin-top: 15px;
}

.blog-comments .reply-form {
    margin-top: 30px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background-color: var(--surface-color);
    border-radius: 8px;
}

.blog-comments .reply-form h4 {
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.blog-comments .reply-form p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--default-color);
}

.blog-comments .reply-form .form-group {
    margin-bottom: 20px;
}

.blog-comments .reply-form .form-control {
    border-radius: 4px;
    box-shadow: none;
    font-size: 0.95rem;
}

.blog-comments .reply-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.blog-comments .reply-form .btn-primary {
    padding: 10px 20px;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 4px;
    transition: 0.3s;
}

.blog-comments .reply-form .btn-primary:hover {
    background-color: #0b5ed7; /* darken accent */
    border-color: #0b5ed7;
}

/* ************ Preloader ************ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--contrast-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--accent-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loaded .content {
    opacity: 1;
}

.loaded #preloader {
    opacity: 0;
    pointer-events: none;
}
