﻿/* color mode */
.color-mode .dropstart .dropdown-toggle:before {
    display: none;
}

.color-mode .dropdown-menu.show {
    display: block !important;
}

.color-mode .dropdown-menu {
    display: none !important;
    z-index: 9999;
}

.color-mode .dropdown .btn {
    border: none;
}

.color-mode .dropdown-toggle:after {
    display: none;
}


.blog-filters {
    margin-bottom: 30px;
    text-align: center;
}

    .blog-filters .filter-btn {
        display: inline-block;
        margin: 8px 12px;
        padding: 10px 22px;
        background-color: #f5f5f5;
        border: 2px solid #ccc;
        border-radius: 25px;
        color: #333;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .blog-filters .filter-btn:hover {
            background-color: #007bff;
            border-color: #007bff;
            color: #fff;
        }

        .blog-filters .filter-btn.active {
            background-color: #007bff;
            border-color: #007bff;
            color: #fff;
            font-weight: 600;
            box-shadow: 0 3px 10px rgba(0, 123, 255, 0.2);
        }

.blog-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-grid-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

    .blog-grid-text .meta {
        margin-top: auto;
    }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}
    /* Pagination Link Styles */
    .pagination a,
    .pagination button {
        padding: 10px 20px;
        margin: 0 5px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        font-family: inherit;
        color: #333;
        border: 1px solid #ddd;
        border-radius: 50px;
        transition: all 0.3s ease-in-out;
        display: inline-block;
        cursor: pointer;
        background-color: #fff;
    }
        /* Hover Effect */
        .pagination a:hover,
        .pagination button:not(:disabled):hover {
            background-color: #1d184a;
            color: white;
            transform: scale(1.05);
        }
        /* Focus Effect (for accessibility/keyboard navigation) */
        .pagination a:focus,
        .pagination button:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(29, 24, 74, 0.8); /* Blue focus border */
        }
        /* Active Page (the current page) */
        .pagination a.active,
        .pagination button.active {
            background-color: #1d184a;
            color: white;
            font-weight: 600;
        }
        /* Disabled State for pagination */
        .pagination a.disabled,
        .pagination button:disabled {
            color: #ccc;
            background-color: #f8f8f8;
            border-color: #ddd;
            cursor: not-allowed;
        }
    /* Pagination "Prev" and "Next" buttons */
    .pagination .prev, .pagination .next {
        padding: 10px 15px;
        font-size: 16px;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
    }

        .pagination .prev:not(:disabled):hover, .pagination .next:not(:disabled):hover {
            background-color: #1d184a;
            color: white;
            transform: scale(1.05);
        }
/* Responsive adjustments */
@media (max-width: 768px) {
    .pagination a,
    .pagination button {
        padding: 8px 15px;
        font-size: 12px;
    }

    .pagination .prev, .pagination .next {
        padding: 8px 12px;
        font-size: 14px;
    }
}

.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* Section title */
.custom-section-title {
    text-align: center;
    margin-bottom: 30px;
}

    .custom-section-title h2 {
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 10px;
        font-size: 2rem;
    }

    .custom-section-title p {
        color: #7f8c8d;
        font-size: 1.1rem;
    }
/* Blog slider container */
.custom-blog-slider-container {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

.custom-blog-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.custom-blog-slide {
    flex: 0 0 33.333%;
    padding: 0 10px;
}
/* Blog grid styles */
.custom-blog-grid {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .custom-blog-grid:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.custom-blog-grid-img {
    overflow: hidden;
    height: 200px;
    position: relative;
}

    .custom-blog-grid-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.custom-blog-grid:hover .custom-blog-grid-img img {
    transform: scale(1.05);
}

.custom-blog-grid-text {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .custom-blog-grid-text h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }

        .custom-blog-grid-text h3 a {
            color: #333;
            text-decoration: none;
            transition: color 0.3s;
        }

            .custom-blog-grid-text h3 a:hover {
                color: #007bff;
            }

.custom-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: auto;
}

    .custom-meta ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
    }

        .custom-meta ul li {
            margin-right: 15px;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
        }

            .custom-meta ul li i {
                margin-right: 5px;
                font-size: 0.9rem;
            }
/* Custom slider controls */
.custom-slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.custom-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .custom-slider-dot.active {
        background-color: #007bff;
    }

.custom-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

    .custom-slider-nav:hover {
        background-color: #f8f9fa;
    }

    .custom-slider-nav.prev {
        left: 10px;
    }

    .custom-slider-nav.next {
        right: 10px;
    }

    .custom-slider-nav::before {
        content: '';
        width: 10px;
        height: 10px;
        border-top: 2px solid #333;
        border-right: 2px solid #333;
    }

    .custom-slider-nav.prev::before {
        transform: rotate(-135deg);
        margin-left: 3px;
    }

    .custom-slider-nav.next::before {
        transform: rotate(45deg);
        margin-right: 3px;
    }
/* View More Blogs link below slider */
.custom-view-all-blogs {
    text-align: center;
    margin-top: 30px;
}

    .custom-view-all-blogs a {
        display: inline-block;
        padding: 12px 30px;
        background-color: #007bff;
        color: #fff;
        text-decoration: none;
        border-radius: 30px;
        font-size: 1rem;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    }

        .custom-view-all-blogs a:hover {
            background-color: #0069d9;
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
        }

        .custom-view-all-blogs a span {
            margin-left: 8px;
        }
/* Responsive styles */
@media (max-width: 992px) {
    .custom-blog-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .custom-blog-slide {
        flex: 0 0 100%;
    }

    .custom-section-title h2 {
        font-size: 1.5rem;
    }

    .custom-section-title p {
        font-size: 1rem;
    }
}

.faq-section {
    background: #fff;
    border-radius: 20px;
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

    .faq-header h3 {
        font-size: 2rem;
        color: var(--secondary);
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }

        .faq-header h3:after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--accent);
            border-radius: 2px;
        }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.faq-item {
    background: var(--light);
    border-radius: 15px;
    border: 1.8px solid #e1e7f0; /* subtle border for structure */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

    .faq-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
        border-color: var(--accent); /* highlight border on hover */
    }

.faq-question {
    padding: 22px 24px;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

    .faq-question i,
    .faq-question .faq-toggle-icon {
        font-size: 1.25rem;
        color: var(--accent);
        flex-shrink: 0;
        transition: transform 0.3s ease, color 0.3s ease;
    }

.faq-item.active .faq-question i,
.faq-item.active .faq-question .faq-toggle-icon {
    transform: rotate(180deg);
    color: var(--secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 24px;
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding-bottom: 20px;
}
/* Paragraph inside answer for neat text spacing */
.faq-answer p {
    margin: 0;
}
/* BlogView FAQ accordion (uses .faq-container / .faq wrappers) */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq {
    background: var(--light);
    border: 1.8px solid #e1e7f0;
    border-radius: 12px;
    overflow: hidden;
}

    .faq .faq-question {
        cursor: pointer;
    }

    .faq.active .faq-question .faq-toggle-icon {
        transform: rotate(180deg);
        color: var(--secondary);
    }

    .faq.active .faq-answer {
        max-height: 1000px;
        padding-bottom: 20px;
    }
/* Variables (example colors, customize as needed) */
:root {
    --secondary: #223366;
    --accent: #0078d4;
    --light: #f9fbff;
    --gray: #5a677d;
}
/* Responsive tweaks */
@media (max-width: 600px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-item {
        padding: 0;
    }
}
/* Service Buttons Styles */
.service-buttons-widget {
    margin-top: 40px;
    padding: 0 10px;
}

.service-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    /* Increased gap between buttons */
}

.service-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .service-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.2);
        transition: left 0.5s ease;
    }

    .service-btn:hover::before {
        left: 100%;
    }

    .service-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        color: white;
    }

    .service-btn i {
        margin-right: 12px;
        font-size: 20px;
    }
/* Add subtle animation on page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-btn {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

    .service-btn:nth-child(1) {
        animation-delay: 0.1s;
    }

    .service-btn:nth-child(2) {
        animation-delay: 0.2s;
    }

    .service-btn:nth-child(3) {
        animation-delay: 0.3s;
    }

    .service-btn:nth-child(4) {
        animation-delay: 0.4s;
    }

    .service-btn:nth-child(5) {
        animation-delay: 0.5s;
    }
/* Responsive adjustments */
@media (max-width: 768px) {
    .service-buttons-widget {
        padding: 0 5px;
    }

    .service-btn {
        padding: 14px 16px;
        font-size: 14px;
    }

        .service-btn i {
            font-size: 18px;
        }

    .service-buttons-container {
        gap: 14px;
    }
}

.social-icons {
    /* margin-top: 10px; */
}

    .social-icons a {
        display: inline-block;
        margin-right: 15px;
        font-size: 20px;
        color: #555;
        transition: color 0.3s;
    }

        .social-icons a:hover {
            color: #007bff;
            /* Bootstrap blue or any custom color */
        }

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }

    25%, 75% {
        opacity: 0.6;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(10, 147, 150, 0.9);
    }

    50% {
        box-shadow: 0 0 30px rgba(10, 147, 150, 1);
    }

    100% {
        box-shadow: 0 0 20px rgba(10, 147, 150, 0.9);
    }
}

.cta-button {
    display: inline-block;
    background-color: #005f73;
    /* deep teal */
    color: #ffffff;
    padding: 14px 36px;
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: 8px;
    text-decoration: none;
    animation: blink 1.8s infinite;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 12px rgba(0, 95, 115, 0.7);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    user-select: none;
}

    .cta-button:hover {
        background-color: #0a9396;
        /* lighter teal */
        transform: scale(1.1);
        animation-play-state: paused;
        animation: pulse 1.5s infinite;
        color: white;
    }

    .cta-button:active {
        transform: scale(0.95);
        box-shadow: 0 0 10px rgba(10, 147, 150, 0.7);
    }

.Round-Img {
    height: 80px;
    border-radius: 50%;
    width: 80px;
    object-fit: cover;
}

/*
 * Main nav menu visibility.
 * The pages are @rendermode InteractiveServer, so Blazor owns the nav markup.
 * Previously #nav used inline style="display:none" and relied on nav-menu.js
 * (jQuery .show()) to reveal it once on load. After any interactive re-render
 * (e.g. clicking pagination) Blazor re-asserted display:none and the menu
 * disappeared. Controlling visibility purely via CSS keeps it independent of
 * Blazor's diffing and jQuery's one-time show.
 */
@media (min-width: 992px) {
    /* Desktop: always visible, horizontal (matches Bootstrap navbar-expand-lg). */
    header .navbar-nav#nav {
        display: flex !important;
    }
}

@media (max-width: 991px) {
    /* Mobile: hidden until the navbar-toggler opens it (nav-menu.js slideToggle). */
    header .navbar-nav#nav {
        display: none;
    }
}

.page-title-section {
    padding: 120px 0 90px 0;
}

    .page-title-section h1 {
        font-size: 26px;
        margin-bottom: 0;
        line-height: 1;
        text-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        color: #ffffff;
        position: relative;
        z-index: 9;
    }

        .page-title-section h1:focus,
        .page-title-section h1:focus-visible {
            outline: none;
            box-shadow: none;
        }