/* === THEME TRANSITIONS === */

.theme-transition,
.theme-transition *,
.theme-transition *:before,
.theme-transition *:after {
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.theme-switching {
    filter: brightness(0.98);
}


/* === LIGHT THEME === */

body[data-theme="light"] {
    background-color: #ffffff;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.02) 1px, transparent 0);
    background-size: 20px 20px;
    color: #1a1a1a;
    line-height: 1.6;
}

body[data-theme="light"] a {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
}

body[data-theme="light"] a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}


/* === TEXT ELEMENTS === */

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] h4,
body[data-theme="light"] h5,
body[data-theme="light"] h6 {
    color: #1a1a1a;
}

body[data-theme="light"] p,
body[data-theme="light"] span,
body[data-theme="light"] div,
body[data-theme="light"] li {
    color: #374151;
}

body[data-theme="light"] .text-muted {
    color: #6b7280 !important;
}

body[data-theme="light"] .text-secondary {
    color: #6b7280 !important;
}

body[data-theme="light"] .text-primary {
    color: #2563eb !important;
}

body[data-theme="light"] .text-dark {
    color: #1a1a1a !important;
}


/* === POST CONTENT STYLING === */

body[data-theme="light"] .post-title {
    color: #1a1a1a !important;
}

body[data-theme="light"] .post-title a {
    color: #1a1a1a !important;
}

body[data-theme="light"] .post-title a:hover {
    color: #2563eb !important;
}

body[data-theme="light"] .post-meta {
    color: #6b7280 !important;
    border-top-color: #e5e7eb !important;
}

body[data-theme="light"] .category-badge {
    background-color: #f3f4f6;
    color: #374151;
}

body[data-theme="light"] .post-excerpt {
    color: #4b5563;
}


/* === SIDEBAR ELEMENTS === */

body[data-theme="light"] .categories-sidebar {
    background-color: #f8f9fa !important;
    border: 1px solid #e5e7eb;
}

body[data-theme="light"] .category-item {
    color: #374151 !important;
    border-bottom-color: #e5e7eb !important;
}

body[data-theme="light"] .category-item:hover {
    color: #2563eb !important;
}

body[data-theme="light"] .popular-posts h3 {
    color: #1a1a1a !important;
}


/* === NEWSLETTER POPUP === */

body[data-theme="light"] .newsletter-popup-content {
    background-color: #ffffff;
    color: #1a1a1a;
}

body[data-theme="light"] .newsletter-form-side h3 {
    color: #2563eb !important;
}

body[data-theme="light"] .newsletter-popup-form p {
    color: #6b7280 !important;
}


/* === BREADCRUMBS === */

body[data-theme="light"] .breadcrumb {
    background-color: #f8f9fa;
}

body[data-theme="light"] .breadcrumb-item {
    color: #6b7280;
}

body[data-theme="light"] .breadcrumb-item.active {
    color: #374151;
}

body[data-theme="light"] .breadcrumb-item a {
    color: #2563eb;
}


/* === SEARCH RESULTS === */

body[data-theme="light"] .search-result-title {
    color: #1a1a1a !important;
}

body[data-theme="light"] .search-result-title a {
    color: #2563eb !important;
}

body[data-theme="light"] .search-result-snippet {
    color: #4b5563 !important;
}

body[data-theme="light"] .search-result-url {
    color: #6b7280 !important;
}


/* === ARCHIVE PAGE ELEMENTS === */

body[data-theme="light"] .archive-title {
    color: #1a1a1a !important;
}

body[data-theme="light"] .archive-description {
    color: #4b5563 !important;
}

body[data-theme="light"] .post-date {
    color: #6b7280 !important;
}

body[data-theme="light"] .post-author {
    color: #6b7280 !important;
}


/* === STATUS INDICATORS === */

body[data-theme="light"] .status-good {
    color: #059669 !important;
}

body[data-theme="light"] .status-warning {
    color: #d97706 !important;
}

body[data-theme="light"] .status-danger,
body[data-theme="light"] .status-bad {
    color: #dc2626 !important;
}


/* === COOKIE NOTICE === */

body[data-theme="light"] #cookieNotice {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    border-top: 1px solid #e5e7eb;
}


/* === SOCIAL SHARING === */

body[data-theme="light"] .social-share-buttons {
    background-color: #ffffff;
    border-color: #e5e7eb;
}

body[data-theme="light"] .social-share-label {
    color: #374151;
}


/* === PAGINATION === */

body[data-theme="light"] .pagination .page-link {
    background-color: #ffffff;
    border-color: #e5e7eb;
    color: #374151;
}

body[data-theme="light"] .pagination .page-link:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #1a1a1a;
}

body[data-theme="light"] .pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}


/* === CARDS & CONTAINERS === */

body[data-theme="light"] .card {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

body[data-theme="light"] .card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

body[data-theme="light"] .card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1a1a1a;
}

body[data-theme="light"] .card-body {
    color: #374151;
}

body[data-theme="light"] .card-title {
    color: #1a1a1a;
}

body[data-theme="light"] .card-text {
    color: #4b5563;
}


/* === FORMS === */

body[data-theme="light"] .form-control,
body[data-theme="light"] .form-select {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

body[data-theme="light"] .form-control:focus,
body[data-theme="light"] .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

body[data-theme="light"] .form-control::placeholder {
    color: #6b7280;
}

body[data-theme="light"] .form-label {
    color: #374151;
}


/* === BUTTONS === */

body[data-theme="light"] .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

body[data-theme="light"] .btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

body[data-theme="light"] .btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

body[data-theme="light"] .btn-outline-primary {
    color: #3b82f6;
    border-color: #3b82f6;
}

body[data-theme="light"] .btn-outline-primary:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

body[data-theme="light"] .btn-outline-secondary {
    color: #6b7280;
    border-color: #d1d5db;
}

body[data-theme="light"] .btn-outline-secondary:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}


/* === NAVIGATION === */

body[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

body[data-theme="light"] .navbar-brand {
    color: #1a1a1a !important;
    font-weight: 700;
}

body[data-theme="light"] .nav-link {
    color: #4b5563 !important;
    font-weight: 700 !important;
    text-transform: capitalize;
}

body[data-theme="light"] .nav-link:hover {
    color: #1a1a1a !important;
    background: rgba(37, 99, 235, 0.1) !important;
    border-radius: 8px;
}


/* === TABLES === */

body[data-theme="light"] .table {
    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .table th {
    background-color: #f8fafc;
    color: #374151;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

body[data-theme="light"] .table td {
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

body[data-theme="light"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9fafb;
}

body[data-theme="light"] .table-hover tbody tr:hover {
    background-color: #f3f4f6;
    color: #1a1a1a;
}


/* === THEME TOGGLE BUTTON === */

body[data-theme="light"] #theme-toggle {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    border: none;
    color: #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body[data-theme="light"] #theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

body[data-theme="light"] #theme-toggle:active {
    transform: scale(0.95);
}

body[data-theme="light"] #theme-toggle .theme-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

body[data-theme="light"] #theme-toggle:hover .theme-icon {
    transform: rotate(-10deg);
}


/* === ALERTS & NOTIFICATIONS === */

body[data-theme="light"] .alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

body[data-theme="light"] .alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

body[data-theme="light"] .alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

body[data-theme="light"] .alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

body[data-theme="light"] .alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}


/* === MODALS & DROPDOWNS === */

body[data-theme="light"] .modal-content {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}

body[data-theme="light"] .modal-header {
    border-bottom: 1px solid #e5e7eb;
    background-color: #f8fafc;
    color: #1a1a1a;
}

body[data-theme="light"] .modal-title {
    color: #1a1a1a;
}

body[data-theme="light"] .modal-body {
    color: #374151;
}

body[data-theme="light"] .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .dropdown-item {
    color: #374151;
    transition: all 0.2s ease;
}

body[data-theme="light"] .dropdown-item:hover {
    background-color: #f3f4f6;
    color: #1a1a1a;
}

body[data-theme="light"] .dropdown-divider {
    border-color: #e5e7eb;
}


/* === FOOTER ELEMENTS === */

body[data-theme="light"] .footer {
    background-color: #f8fafc !important;
    color: #374151 !important;
    border-top: 1px solid #e5e7eb;
}

body[data-theme="light"] .footer h5 {
    color: #1a1a1a !important;
}

body[data-theme="light"] .footer a {
    color: #6b7280 !important;
}

body[data-theme="light"] .footer a:hover {
    color: #2563eb !important;
}


/* === LINK STATUS INDICATORS === */

body[data-theme="light"] .link-ok {
    color: #059669 !important;
}

body[data-theme="light"] .link-broken {
    color: #dc2626 !important;
}

body[data-theme="light"] .link-error {
    color: #d97706 !important;
}

body[data-theme="light"] .link-skipped {
    color: #6b7280 !important;
}


/* === RESPONSIVE ENHANCEMENTS === */

.navbar .form-control {
    min-width: 150px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .navbar .form-control {
        width: 100% !important;
        border-radius: 8px;
    }
    .navbar .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    body[data-theme="light"] #theme-toggle {
        width: 36px;
        height: 36px;
    }
}


/* === SCROLL IMPROVEMENTS === */

::-webkit-scrollbar {
    width: 8px;
}

body[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 4px;
}

body[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, #94a3b8 0%, #64748b 100%);
}


/* === SEARCH HIGHLIGHTS === */

body[data-theme="light"] .search-highlight {
    background-color: #fef3c7;
    color: #92400e;
}


/* === COMMENT FORMS === */

body[data-theme="light"] .comment-form {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
}

body[data-theme="light"] .comments-section {
    border-top-color: #e5e7eb;
}


/* === NO RESULTS SECTION === */

body[data-theme="light"] .no-results {
    color: #374151;
}

body[data-theme="light"] .search-suggestions h5 {
    color: #1a1a1a;
}

body[data-theme="light"] .search-suggestions ul li {
    color: #6b7280;
}


/* === SEARCH TIPS === */

body[data-theme="light"] .search-tips .card {
    background-color: #f8fafc !important;
    border-color: #e5e7eb !important;
}


/* === GALLERY IMAGES === */

body[data-theme="light"] .gallery-image {
    border: 1px solid #e5e7eb;
}


/* === CONTENT BODY === */

body[data-theme="light"] .content-body {
    color: #374151;
}

body[data-theme="light"] .content-body h2,
body[data-theme="light"] .content-body h3,
body[data-theme="light"] .content-body h4,
body[data-theme="light"] .content-body h5,
body[data-theme="light"] .content-body h6 {
    color: #1a1a1a;
}


/* === AUTHOR BIO === */

body[data-theme="light"] .author-bio {
    background-color: #ffffff;
    border-color: #e5e7eb;
}


/* === RELATED CONTENT === */

body[data-theme="light"] .related-content {
    background-color: #ffffff;
    border-color: #e5e7eb;
}


/* === CATEGORY INFO === */

body[data-theme="light"] .category-info {
    background-color: #ffffff;
    border-color: #e5e7eb;
}


/* === NEWSLETTER FORM === */

body[data-theme="light"] .newsletter-form {
    background-color: #ffffff;
    border-color: #e5e7eb;
}


/* === SEARCH RESULT ITEMS === */

body[data-theme="light"] .search-result-item {
    background-color: #ffffff;
    border-color: #e5e7eb !important;
}

body[data-theme="light"] .search-result-item:hover {
    border-color: #2563eb !important;
}


/* === BADGES === */

body[data-theme="light"] .badge {
    color: #ffffff;
}

body[data-theme="light"] .badge.bg-secondary {
    background-color: #6b7280 !important;
    color: #ffffff;
}

body[data-theme="light"] .badge.bg-outline-primary {
    color: #2563eb;
    border-color: #2563eb;
}


/* === SMALL TEXT === */

body[data-theme="light"] small {
    color: #6b7280;
}


/* === STICKY ELEMENTS === */

body[data-theme="light"] .sticky-top {
    background-color: transparent;
}


/* === ENHANCED SIDEBAR CARDS === */

body[data-theme="light"] .card-header.bg-primary {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

body[data-theme="light"] .card-header.bg-success {
    background-color: #059669 !important;
    color: #ffffff !important;
}


/* === ENHANCED FORM ELEMENTS === */

body[data-theme="light"] .input-group .form-control {
    background-color: #ffffff;
    border-color: #e5e7eb;
    color: #374151;
}

body[data-theme="light"] .input-group .btn {
    border-color: #e5e7eb;
}


/* === ENHANCED NAVIGATION ELEMENTS === */

body[data-theme="light"] .content-navigation .btn {
    border-color: #e5e7eb;
}


/* === ENHANCED ARTICLE ELEMENTS === */

body[data-theme="light"] .content-article {
    color: #374151;
}

body[data-theme="light"] .content-meta {
    color: #6b7280;
}

body[data-theme="light"] .content-meta .badge {
    background-color: #f3f4f6;
    color: #374151;
}


/* === ENHANCED RESPONSIVE ELEMENTS === */

@media (max-width: 768px) {
    body[data-theme="light"] .search-result-item {
        background-color: #ffffff;
    }
}


/* === CODE BLOCKS AND PRE === */

body[data-theme="light"] pre {
    background-color: #f8fafc;
    color: #374151;
    border: 1px solid #e5e7eb;
}

body[data-theme="light"] code {
    background-color: #f1f5f9;
    color: #374151;
    border: 1px solid #e5e7eb;
}


/* === BLOCKQUOTES === */

body[data-theme="light"] blockquote {
    border-left: 4px solid #2563eb;
    background-color: #f8fafc;
    color: #374151;
}


/* === HORIZONTAL RULES === */

body[data-theme="light"] hr {
    border-color: #e5e7eb;
}


/* === LIST ITEMS === */

body[data-theme="light"] ul li,
body[data-theme="light"] ol li {
    color: #374151;
}


/* === STRONG AND EMPHASIS === */

body[data-theme="light"] strong,
body[data-theme="light"] b {
    color: #1a1a1a;
}

body[data-theme="light"] em,
body[data-theme="light"] i {
    color: #4b5563;
}


/* === ENHANCED RESPONSIVE DESIGN === */


/* Mobile-first approach with better breakpoints */

@media (max-width: 575.98px) {
    /* Extra small devices */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .hero-post {
        height: 300px !important;
        margin-bottom: 2rem;
        border-radius: 8px;
    }
    .hero-post-content {
        padding: 1.5rem 1rem;
    }
    .hero-post-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    .hero-post-content .lead {
        font-size: 0.95rem;
        margin-bottom: 1rem !important;
    }
    .post-card {
        margin-bottom: 1.5rem;
    }
    .post-card-image {
        height: 180px;
    }
    .post-card-body {
        padding: 1rem;
    }
    .post-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    .category-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    .post-meta {
        font-size: 0.8rem;
    }
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    .navbar-brand img {
        max-height: 32px !important;
    }
    .popular-posts .d-flex {
        flex-direction: column;
        text-align: center;
    }
    .popular-posts .d-flex img {
        width: 100% !important;
        height: 120px !important;
        margin: 0 0 0.75rem 0 !important;
    }
    .categories-sidebar {
        margin-bottom: 2rem;
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    /* Small devices */
    .hero-post {
        height: 350px;
        margin-bottom: 2.5rem;
    }
    .hero-post-content {
        padding: 1.75rem 1.25rem;
    }
    .hero-post-content h1 {
        font-size: 1.75rem;
    }
    .post-card-image {
        height: 200px;
    }
    .col-md-6 {
        margin-bottom: 1.5rem;
    }
    .navbar .form-control {
        width: 100% !important;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    .navbar .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    body[data-theme="light"] #theme-toggle {
        width: 36px;
        height: 36px;
    }
    .search-result-item {
        background-color: #ffffff;
        padding: 1rem !important;
        margin-bottom: 1rem;
    }
    .search-result-item h5 {
        font-size: 1rem;
    }
    /* Newsletter popup mobile fixes */
    .newsletter-image-side {
        min-height: 150px;
    }
    .newsletter-form-side {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    /* Sidebar responsiveness */
    .col-lg-4 {
        margin-top: 3rem;
    }
    /* Button sizing */
    .btn {
        padding: 0.6rem 1.2rem;
    }
    .btn-lg {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    /* Medium devices */
    .nav-center {
        justify-content: flex-start;
        margin: 1rem 0;
    }
    .nav-right {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    .search-form {
        min-width: auto;
        width: 100%;
    }
    .navbar-nav {
        gap: 0.5rem;
    }
    .nav-link {
        text-align: center;
    }
    .dropdown-submenu .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background: #f8f9fa;
        border-left: 3px solid var(--bs-primary);
    }
    /* Hero adjustments */
    .hero-post {
        height: 400px;
    }
    .hero-post-content h1 {
        font-size: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Tablet specific styles */
    .col-md-6 {
        width: 50%;
    }
    .post-card {
        height: auto;
        min-height: 420px;
    }
    .popular-posts .d-flex img {
        width: 100px !important;
        height: 75px !important;
    }
}

@media (min-width: 992px) {
    /* Large devices and up */
    .post-card {
        min-height: 480px;
    }
    .hero-post {
        height: 500px;
    }
}


/* Container responsive improvements */

@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
}


/* Card responsive improvements */

@media (max-width: 767.98px) {
    .post-card:hover {
        transform: none;
    }
    .card {
        border-radius: 8px;
    }
    .card-body {
        padding: 1rem;
    }
}


/* Text responsive improvements */

@media (max-width: 575.98px) {
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    h3 {
        font-size: 1.1rem;
    }
    h4 {
        font-size: 1rem;
    }
    h5 {
        font-size: 0.95rem;
    }
    h6 {
        font-size: 0.9rem;
    }
    .display-6 {
        font-size: 1.5rem !important;
    }
    .lead {
        font-size: 1rem;
    }
}


/* Form responsive improvements */

@media (max-width: 767.98px) {
    .form-control {
        padding: 0.75rem;
        font-size: 1rem;
    }
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    .input-group .form-control {
        font-size: 1rem;
    }
}


/* Table responsive improvements */

@media (max-width: 767.98px) {
    .table-responsive {
        border: none;
    }
    .table {
        font-size: 0.9rem;
    }
    .table th,
    .table td {
        padding: 0.5rem;
    }
}


/* Modal responsive improvements */

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    .modal-content {
        border-radius: 8px;
    }
}


/* Pagination responsive improvements */

@media (max-width: 575.98px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}


/* Footer responsive improvements */

@media (max-width: 767.98px) {
    .footer {
        text-align: center;
        padding: 2rem 1rem;
    }
    .footer .row>div {
        margin-bottom: 2rem;
    }
}


/* Breadcrumb responsive improvements */

@media (max-width: 575.98px) {
    .breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    .breadcrumb-item+.breadcrumb-item::before {
        padding: 0 0.3rem;
    }
}


/* Alert responsive improvements */

@media (max-width: 575.98px) {
    .alert {
        padding: 0.75rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
}


/* Badge responsive improvements */

@media (max-width: 575.98px) {
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}


/* List group responsive improvements */

@media (max-width: 767.98px) {
    .list-group-item {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}


/* Progress bar responsive improvements */

@media (max-width: 575.98px) {
    .progress {
        height: 1rem;
    }
}


/* Spinner responsive improvements */

@media (max-width: 575.98px) {
    .spinner-border {
        width: 2rem;
        height: 2rem;
    }
    .spinner-border-sm {
        width: 1rem;
        height: 1rem;
    }
}


/* Utilities responsive improvements */

@media (max-width: 575.98px) {
    .text-center-mobile {
        text-align: center !important;
    }
    .d-block-mobile {
        display: block !important;
    }
    .w-100-mobile {
        width: 100% !important;
    }
    .mb-3-mobile {
        margin-bottom: 1rem !important;
    }
    .p-2-mobile {
        padding: 0.5rem !important;
    }
}


/* === EXISTING MEDIA QUERIES ENHANCED === */


/* === MOBILE TOUCH IMPROVEMENTS === */


/* Better touch targets */

@media (max-width: 767.98px) {
    .btn,
    .nav-link,
    .dropdown-item,
    .page-link,
    .list-group-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-link {
        justify-content: flex-start;
        padding-left: 1rem;
    }
    .dropdown-item {
        justify-content: flex-start;
        padding-left: 1rem;
    }
}


/* Touch-friendly interactions */

@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .nav-link:hover,
    .card:hover {
        transform: none;
    }
    .btn:active,
    .nav-link:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    .post-card:active {
        transform: scale(0.99);
        transition: transform 0.1s ease;
    }
}


/* Mobile keyboard adjustments */

@media (max-width: 767.98px) {
    .form-control:focus {
        transform: scale(1.05);
        transition: transform 0.2s ease;
    }
    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}


/* Better mobile navigation */

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    body[data-theme="dark"] .navbar-collapse {
        background: rgba(33, 37, 41, 0.98);
        backdrop-filter: blur(10px);
    }
}


/* Sticky mobile header improvements */

@media (max-width: 767.98px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1030;
        backdrop-filter: blur(10px);
    }
}


/* Mobile-optimized loading states */

@media (max-width: 767.98px) {
    .spinner-border {
        width: 1.5rem;
        height: 1.5rem;
    }
    .spinner-border-sm {
        width: 1rem;
        height: 1rem;
    }
}


/* Mobile scroll improvements */

@media (max-width: 767.98px) {
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    .modal-body {
        -webkit-overflow-scrolling: touch;
    }
}


/* Mobile image optimization */

@media (max-width: 767.98px) {
    img {
        image-rendering: auto;
        image-rendering: -webkit-optimize-contrast;
    }
    .hero-post-bg {
        object-position: center center;
    }
}


/* Enhanced mobile focus styles */

@media (max-width: 767.98px) {
    button:focus,
    .btn:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid #007bff;
        outline-offset: 2px;
    }
    body[data-theme="dark"] button:focus,
    body[data-theme="dark"] .btn:focus,
    body[data-theme="dark"] input:focus,
    body[data-theme="dark"] textarea:focus,
    body[data-theme="dark"] select:focus {
        outline-color: #60a5fa;
    }
}


/* Mobile typography optimizations */

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    .lead {
        font-size: 1.1rem;
        line-height: 1.4;
    }
}


/* Better mobile table handling */

@media (max-width: 767.98px) {
    .table-responsive {
        border: none;
        font-size: 0.875rem;
    }
    .table-responsive table {
        border-collapse: collapse;
    }
    .table-responsive th,
    .table-responsive td {
        padding: 0.5rem 0.25rem;
        vertical-align: top;
    }
    /* Stack table cells on very small screens */
    .table-responsive.table-stack thead {
        display: none;
    }
    .table-responsive.table-stack tbody,
    .table-responsive.table-stack tr,
    .table-responsive.table-stack td {
        display: block;
        width: 100%;
    }
    .table-responsive.table-stack tr {
        border: 1px solid #dee2e6;
        margin-bottom: 0.5rem;
        border-radius: 0.25rem;
        padding: 0.5rem;
    }
    .table-responsive.table-stack td {
        border: none;
        padding: 0.25rem 0;
        text-align: left;
    }
    .table-responsive.table-stack td:before {
        content: attr(data-label) ": ";
        font-weight: bold;
        color: #495057;
    }
}


/* Mobile-optimized modals */

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    .modal-content {
        border-radius: 0.5rem;
    }
    .modal-header {
        padding: 1rem;
    }
    .modal-body {
        padding: 1rem;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
}


/* Mobile-optimized alerts */

@media (max-width: 575.98px) {
    .alert {
        border-radius: 0.5rem;
        padding: 0.75rem;
        margin: 0.5rem;
    }
    .alert .btn-close {
        padding: 0.5rem;
    }
}


/* Mobile-friendly breadcrumbs */

@media (max-width: 575.98px) {
    .breadcrumb {
        background: transparent;
        padding: 0.5rem 0;
        margin: 0.5rem 0;
        font-size: 0.875rem;
        flex-wrap: wrap;
    }
    .breadcrumb-item {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


/* Enhanced mobile search */

@media (max-width: 767.98px) {
    .search-form input {
        border-radius: 1.5rem;
        padding: 0.75rem 3rem 0.75rem 1rem;
    }
    .search-form .btn {
        border-radius: 50%;
        width: 2.5rem;
        height: 2.5rem;
        right: 0.25rem;
        top: 50%;
        transform: translateY(-50%);
    }
}


/* === ENHANCED MOBILE UTILITIES === */


/* === MODERN ENHANCEMENTS === */

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/* Smooth animations */

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.8s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Enhanced post cards */

body[data-theme="light"] .post-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="light"] .post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

body[data-theme="light"] .post-card:hover::before {
    left: 100%;
}


/* Enhanced buttons */

body[data-theme="light"] .btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

body[data-theme="light"] .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

body[data-theme="light"] .btn:hover::before {
    width: 300px;
    height: 300px;
}


/* Enhanced form controls */

body[data-theme="light"] .form-control {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

body[data-theme="light"] .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}


/* Enhanced navbar */

body[data-theme="light"] .navbar {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}


/* Improved loading states */

.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* Enhanced scrollbar */

body[data-theme="light"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

body[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #64748b, #475569);
    border-radius: 4px;
    transition: all 0.3s ease;
}

body[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #475569, #334155);
}


/* Enhanced tooltips */

.tooltip-enhanced {
    position: relative;
}

.tooltip-enhanced::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip-enhanced:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}


/* Enhanced focus states for accessibility */

body[data-theme="light"] *:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}


/* Improved typography */

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3 {
    background: linear-gradient(135deg, #1f2937, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}


/* Enhanced text selection */

body[data-theme="light"] ::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1f2937;
}


/* Smooth page transitions */

.page-transition {
    animation: pageEnter 0.4s ease-out;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Enhanced alerts */

body[data-theme="light"] .alert {
    border: none;
    border-left: 4px solid;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

body[data-theme="light"] .alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
    color: #166534;
}

body[data-theme="light"] .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    color: #991b1b;
}

body[data-theme="light"] .alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
    color: #92400e;
}

body[data-theme="light"] .alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
    color: #1e40af;
}


/* Modern card enhancements */

body[data-theme="light"] .card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

body[data-theme="light"] .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}


/* Enhanced footer */

body[data-theme="light"] .footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}


/* Responsive enhancements */

@media (max-width: 768px) {
    body[data-theme="light"] .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    body[data-theme="light"] .card {
        margin-bottom: 1.5rem;
    }
    body[data-theme="light"] .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}


/* Performance optimizations */

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}


/* Accessibility improvements */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* === SIDEBAR AND FOOTER SPACING === */


/* Ensure proper spacing between sidebar and footer */

.sidebar {
    margin-bottom: 4rem;
    /* 64px gap between sidebar and footer */
    padding-bottom: 2rem;
    /* Additional padding within sidebar */
}

.sidebar-section:last-child {
    margin-bottom: 2rem;
    /* Extra space for the last sidebar section */
}


/* Container spacing to prevent content from touching footer */

.container-fluid,
.container {
    margin-bottom: 3rem;
    /* Space between main content and footer */
}


/* Responsive spacing adjustments */

@media (max-width: 991.98px) {
    .sidebar {
        margin-bottom: 3rem;
        /* Reduced gap on mobile */
        padding-bottom: 1.5rem;
    }
    .container-fluid,
    .container {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        margin-bottom: 2rem;
        /* Smaller gap on very small screens */
        padding-bottom: 1rem;
    }
    .container-fluid,
    .container {
        margin-bottom: 1.5rem;
    }
}


/* Specific spacing for index page layout */

.row:has(.sidebar) {
    margin-bottom: 3rem;
    /* Space for the row containing sidebar */
}


/* Additional footer spacing */

footer {
    margin-top: 2rem;
    /* Ensure footer has top margin */
}


/* Sidebar sections spacing */

.sidebar-section {
    margin-bottom: 2rem;
    /* Space between sidebar sections */
}

.sidebar-section:first-child {
    margin-top: 0;
    /* No top margin for first section */
}

.sidebar-section:last-child {
    margin-bottom: 3rem;
    /* Extra bottom margin for last section */
}


/* === INDIVIDUAL SIDEBAR SECTION SCROLLING === */


/* Base sidebar section styling with max height and scroll */

.sidebar-section {
    max-height: none;
    /* Default: no height restriction */
    overflow: visible;
    /* Default: no scrolling */
    transition: all 0.3s ease;
}


/* Scrollable sidebar sections - apply to sections that might have lots of content */

.sidebar-section.scrollable {
    max-height: 400px;
    /* Fixed maximum height */
    overflow-y: auto;
    /* Enable vertical scrolling */
    overflow-x: hidden;
    /* Hide horizontal scroll */
    padding-right: 8px;
    /* Space for scrollbar */
}


/* Specific sections that should be scrollable */

.sidebar-section.popular-posts-section,
.sidebar-section.categories-section,
.sidebar-section.main-pages-section,
.sidebar-section.featured-posts-section,
.sidebar-section.recent-activity-section,
.sidebar-section.tags-section {
    max-height: 350px;
    /* Reasonable height for content sections */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}


/* Content wrapper within scrollable sections */

.sidebar-section.scrollable .sidebar-content,
.popular-posts-section .sidebar-content,
.categories-section .sidebar-content,
.main-pages-section .sidebar-content,
.featured-posts-section .sidebar-content,
.recent-activity-section .sidebar-content,
.tags-section .sidebar-content {
    padding-right: 4px;
    /* Additional padding for content */
}


/* Custom scrollbar for sidebar sections */

.sidebar-section::-webkit-scrollbar {
    width: 6px;
}

.sidebar-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.sidebar-section::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.sidebar-section::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}


/* Firefox scrollbar for sidebar sections */

.sidebar-section {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}


/* Responsive max heights */

@media (max-width: 991.98px) {
    .sidebar-section.scrollable,
    .sidebar-section.popular-posts-section,
    .sidebar-section.categories-section,
    .sidebar-section.main-pages-section,
    .sidebar-section.featured-posts-section,
    .sidebar-section.recent-activity-section,
    .sidebar-section.tags-section {
        max-height: 300px;
        /* Smaller height on tablets */
    }
}

@media (max-width: 767.98px) {
    .sidebar-section.scrollable,
    .sidebar-section.popular-posts-section,
    .sidebar-section.categories-section,
    .sidebar-section.main-pages-section,
    .sidebar-section.featured-posts-section,
    .sidebar-section.recent-activity-section,
    .sidebar-section.tags-section {
        max-height: 250px;
        /* Even smaller on mobile */
    }
}


/* Fade effect at bottom to indicate more content */

.sidebar-section.scrollable::after,
.sidebar-section.popular-posts-section::after,
.sidebar-section.categories-section::after,
.sidebar-section.main-pages-section::after,
.sidebar-section.featured-posts-section::after,
.sidebar-section.recent-activity-section::after,
.sidebar-section.tags-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.8));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* Show fade effect when content is scrollable */

.sidebar-section.has-scroll::after {
    opacity: 1;
}


/* Ensure sidebar sections are positioned relatively for fade effect */

.sidebar-section {
    position: relative;
}


/* Hover effect for better scrollbar visibility */

.sidebar-section:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
}


/* Newsletter section should not be scrollable (usually short content) */

.sidebar-section.newsletter-section {
    max-height: none !important;
    overflow: visible !important;
}


/* Welcome section should not be scrollable */

.sidebar-section.welcome-section {
    max-height: none !important;
    overflow: visible !important;
}


/* === ENHANCED SCROLLING FEATURES === */


/* Collapsed state for sidebar sections */

.sidebar-section.collapsed {
    overflow: hidden !important;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.sidebar-section.collapsed .sidebar-item,
.sidebar-section.collapsed .sidebar-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* Toggle button styling */

.sidebar-title .toggle-btn {
    float: right;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sidebar-title .toggle-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}


/* Scroll shadow effects */

.sidebar-section.scrolled-top {
    box-shadow: inset 0 8px 8px -8px rgba(0, 0, 0, 0.15);
}

.sidebar-section.scrolled-bottom::after {
    opacity: 0 !important;
}


/* Visual scroll indicator */

.sidebar-section.has-scroll::before {
    content: "↕";
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(0, 0, 0, 0.3);
    font-size: 12px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-section.has-scroll:hover::before {
    opacity: 1;
}


/* Enhanced scrollbar on focus */

.sidebar-section:focus-within::-webkit-scrollbar {
    width: 8px;
}

.sidebar-section:focus-within::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.4);
}


/* Smooth scrolling animation */

@keyframes fadeInScroll {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-section.has-scroll .sidebar-item {
    animation: fadeInScroll 0.3s ease-out;
}


/* Better mobile scrolling */

@media (max-width: 767.98px) {
    .sidebar-section.has-scroll {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: y proximity;
    }
    .sidebar-section .sidebar-item {
        scroll-snap-align: start;
    }
}


/* Accessibility improvements */

.sidebar-section[tabindex]:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}


/* Loading state for dynamic content */

.sidebar-section.loading {
    position: relative;
    pointer-events: none;
}

.sidebar-section.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
}

.sidebar-section.loading::after {
    content: "⟳";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #007bff;
    animation: spin 1s linear infinite;
    z-index: 101;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}