/* Global Styles & Reset */
:root {
    --primary-color: #007bff;
    /* Trust Blue */
    --secondary-color: #0056b3;
    --accent-color: #ffce45;
    /* Yellow/Gold for attention */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --font-main: 'Inter', sans-serif;
    --header-height: 70px;
    --bottom-nav-height: 60px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    padding-bottom: var(--bottom-nav-height);
    /* Space for bottom nav on mobile */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-padding {
    padding: 10px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #333;
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.view-all {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Header */
.header {
    background: linear-gradient(135deg, #4527a0 0%, #283593 100%);
    /* Brand Blue */
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

/* Replaced image logo with text/icon for better contrast on blue, or assumed white logo image */

.desktop-nav a {
    color: rgba(255, 255, 255, 0.9);
}

.desktop-nav a:hover {
    color: var(--white);
    opacity: 1;
}

.mobile-menu-toggle span {
    background-color: var(--white);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Quick Access / Purpose Section (Replacing Hero) */
.quick-access {
    background: #fff;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.purpose-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--radius);
    padding: 16px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.purpose-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.purpose-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 4px;
}

.purpose-card.adopt .purpose-icon {
    color: #28a745;
    background: #e8f5e9;
}

.purpose-card.lost .purpose-icon {
    color: #dc3545;
    background: #ffebee;
}

.purpose-card.mate .purpose-icon {
    color: #e91e63;
    background: #fce4ec;
}

.purpose-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.purpose-card span {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
}

/* Hürriyet Style Footer */
.footer {
    background: #ffffff;
    color: #333;
    padding: 30px 0 80px;
    /* Padding bottom for mobile nav space */
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-logo {
    color: var(--primary-color);
    /* Brand Blue */
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.footer-copy {
    font-size: 0.8rem;
    color: #666;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 700;
}

.social-icon:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.footer-sep {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
    width: 100%;
}

.footer-sep-tight {
    margin-top: 0;
}

.footer-accordion-group {
    width: 100%;
}

.footer-accordion-toggle {
    display: none;
    width: 100%;
    border: 0;
    border-top: 1px solid #ececec;
    background: #fff;
    color: #1f2937;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 2px;
    cursor: pointer;
    position: relative;
}

.footer-accordion-toggle::after {
    content: '+';
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #4b5563;
}

.footer-accordion-toggle.is-open::after {
    content: '-';
}

.footer-accordion-content.is-collapsed {
    display: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 2 cols */
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-corp-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-weight: 700;
    font-size: 0.85rem;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.5;
}

/* Desktop Styles for Footer */
@media (min-width: 768px) {
    .footer {
        padding-bottom: 40px;
    }

    .footer-accordion-content {
        display: block !important;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-brand {
        flex-direction: row;
        gap: 20px;
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
        /* Desktop: 5 cols */
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .footer-accordion-toggle {
        display: block;
    }

    .footer-sep {
        margin: 12px 0;
    }
}

/* Categories Adjustment */
.categories .section-header {
    margin-top: 10px;
}

@media (min-width: 768px) {
    .purpose-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
        margin: 0 auto;
        gap: 24px;
    }

    .purpose-card {
        padding: 30px 20px;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        text-align: left;
    }

    .purpose-card span {
        display: block;
        font-size: 0.85rem;
    }
}

/* Categories (Mobile Scroll) */
.category-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    /* Firefox */
}

.category-list::-webkit-scrollbar {
    display: none;
    /* Safari/Chrome */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    gap: 8px;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background-color: #eee;
    transition: transform 0.2s;
}

.icon-box.color-1 {
    background-color: #ffe0e0;
}

.icon-box.color-2 {
    background-color: #e0f0ff;
}

.icon-box.color-3 {
    background-color: #e0ffe4;
}

.icon-box.color-4 {
    background-color: #fff5e0;
}

.icon-box.color-5 {
    background-color: #f3e0ff;
}

.icon-box.color-6 {
    background-color: #e0fff9;
}

.category-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Listings Grid */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile */
    gap: 16px;
}

.listing-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #eee;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge.premium {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #e74c3c;
}

.card-content {
    padding: 10px;
}

.card-content h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content .meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.location {
    font-size: 0.75rem;
    color: var(--text-light);
}

.price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 767.98px) {
    .card-content .meta {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .card-content .meta .location {
        min-width: 0;
        flex: 1 1 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-content .meta .price,
    .card-content .meta .date {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* Q&A List */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    gap: 12px;
}

.qa-icon {
    font-size: 20px;
}

.qa-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.qa-text strong {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.qa-text span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.qa-arrow {
    color: #ccc;
    font-size: 20px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.blog-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100px;
}

.blog-card img {
    object-fit: cover;
}

.blog-content {
    padding: 12px;
    align-items: center;
}

.blog-content h3 {
    font-size: 1rem;
    line-height: 1.4;
}

/* Breeds Section (Evcil Ped) */
.breed-scroll-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.breed-scroll-list::-webkit-scrollbar {
    display: none;
}

.breed-card {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.breed-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.breed-card:hover img {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.breed-card span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
}

/* Attributes for Mating Cards */
.attributes {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.attr-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.attr-male {
    background-color: #e3f2fd;
    color: #1976d2;
}

.attr-female {
    background-color: #fce4ec;
    color: #c2185b;
}

.attr-age {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Veterinary Section */
.vet-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Featured Blog Section */
.center-header {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin-bottom: 30px;
}

.center-header .sub-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    display: block;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    width: 100%;
    max-width: 400px;
}

.center-header h2 {
    font-size: 1rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.featured-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.featured-card:hover img {
    opacity: 1;
}

.featured-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    pointer-events: none;
}

.card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    width: 100%;
    z-index: 2;
}

.card-content-overlay .tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
    font-weight: 600;
}

.card-content-overlay h3 {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.featured-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-card.small {
    aspect-ratio: 16/9;
    flex: 1;
}

@media (min-width: 768px) {
    .center-header h2 {
        font-size: 1.25rem;
    }

    /* Featured Grid Desktop */
    .featured-grid {
        grid-template-columns: 1.2fr 1.2fr 1fr;
        height: 350px;
    }

    .featured-card.large {
        aspect-ratio: auto;
        height: 100%;
    }

    .featured-column {
        height: 100%;
    }
}

/* Category Tree (Top Bar) - Global Styles */
.category-tree {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    position: relative;
    z-index: 900;
}

.category-scroll-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cat-scroll-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 10px;
    flex: 1;
}

.cat-scroll-list::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    color: #333;
    transition: all 0.2s;
    text-decoration: none;
}

.cat-pill:hover {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cat-pill img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.more-cats-btn {
    display: flex;
    align-items: center;
    padding: 4px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    background: #f8f9fa;
    margin-left: auto;
    flex-shrink: 0;
}

.more-images-stack {
    display: flex;
}

.more-images-stack img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #fff;
    margin-left: -5px;
}

.more-images-stack img:first-child {
    margin-left: 0;
}

.more-count {
    background: #6f42c1;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    height: 24px;
    display: flex;
    align-items: center;
}

/* Expanded Category Modal */
.category-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.modal-header h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.full-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.full-cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.full-cat-item:hover {
    background: #e9ecef;
}

.full-cat-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.vet-card {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.vet-info h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.vet-info .address {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.vet-status {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.vet-status.open {
    background: #e8f5e9;
    color: #28a745;
}

.vet-status.closed {
    background: #eee;
    color: #666;
}

.vet-status.urgent {
    background: #ffebee;
    color: #dc3545;
}

.call-btn {
    width: 40px;
    height: 40px;
    background: #f1f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background 0.2s;
}

.call-btn:hover {
    background: #e9ecef;
}

/* Mobile Bottom Navigation Bar Styles */
.mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    gap: 4px;
}

.mobile-bottom-nav a svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.mobile-bottom-nav a.active {
    color: #007bff;
}

.mobile-bottom-nav a.active svg {
    transform: translateY(-2px);
    fill: currentColor;
}

/* Highlighted Center Button (Post Ad) */
.mobile-bottom-nav a.highlight {
    position: relative;
    z-index: 2;
}

.mobile-bottom-nav a.highlight .plus-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    margin-top: -30px;
    border: 4px solid #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-nav a.highlight:hover .plus-circle {
    transform: scale(1.1) rotate(90deg);
}

.mobile-bottom-nav a.highlight span {
    margin-top: 0;
}

/* Desktop Responsiveness */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .mobile-bottom-nav {
        display: none;
    }

    .header-actions .btn,
    .desktop-nav,
    .search-bar {
        display: inline-flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .search-bar {
        flex: 1;
        max-width: 400px;
        margin: 0 20px;
    }

    .search-bar form {
        display: flex;
        background: #f1f2f4;
        border-radius: 20px;
        padding: 5px 15px;
        width: 100%;
    }

    .search-bar input {
        border: none;
        background: transparent;
        flex: 1;
        outline: none;
        padding: 5px;
    }

    .search-bar button {
        background: none;
        border: none;
        cursor: pointer;
        color: #666;
    }

    .search-bar input::placeholder {
        color: #999;
    }

    .desktop-nav ul {
        display: flex;
        gap: 20px;
    }

    .desktop-nav a {
        font-weight: 500;
        font-size: 0.9rem;
    }

    .full-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .vet-grid {
        flex-direction: row;
        gap: 20px;
    }

    .vet-card {
        flex: 1;
    }

    .listing-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .qa-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .qa-item {
        flex: 1;
        min-width: 300px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-card {
        flex-direction: column;
        height: auto;
    }

    .blog-card img {
        width: 100%;
        height: 500px;
    }

    .footer {
        padding-bottom: 30px;
    }
}

/* --- Category Page Specific Styles --- */

.page-content {
    display: flex;
    flex-direction: column;
    padding: 2px 0;
}

.sidebar {
    width: 100%;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.sidebar-cat-list,
.sidebar-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-cat-list li a,
.sidebar-sub-list li a {
    display: block;
    padding: 6px 0;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.sidebar-cat-list li a:hover,
.sidebar-sub-list li a:hover {
    color: var(--primary-color);
}

.sub-cat {
    padding-left: 10px;
    border-left: 2px solid #eee;
}

.sub-cat a.selected {
    color: var(--primary-color);
    font-weight: 700;
}

.active_cat {
    font-weight: 600;
    color: #333 !important;
}

.filter-group {
    margin-bottom: 15px;
}

.form-select,
.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
}

.btn-yellow {
    background: #ffca28;
    /* Yellow from image */
    color: #333;
    font-weight: 700;
    text-align: center;
    border: none;
    padding: 12px;
    border-radius: 6px;
    transition: background 0.2s;
    display: block;
    width: 100%;
    text-decoration: none;
}

.btn-yellow:hover {
    background: #ffc107;
    color: #000;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-block {
    display: block;
    width: 100%;
}

.small-text-muted {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
    line-height: 1.4;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

/* Listing Content */
.breadcrumbs {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs .sep {
    margin: 0 5px;
    color: #ccc;
}

.breadcrumbs .current {
    font-weight: 600;
    color: #333;
}

.cat-page-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.cat-page-header h1 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    line-height: 1.2;
}

.cat-desc {
    font-size: 0.9rem;
    color: #666;
}

.header-right {
    margin-top: 10px;
}

.sort-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 0.9rem;
}

.listing-grid-category {
    column-count: 2;
    column-gap: 15px;
    margin-bottom: 30px;
}

.cat-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    /* Important for corner radius */
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    break-inside: avoid;
    vertical-align: top;
}

.cat-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    z-index: 2;
}

.cat-card .img-wrapper {
    width: 100%;
    background: #f8f9fa;
    position: relative;
    line-height: 0;
}

.cat-card img {
    width: 100%;
    height: auto;
    display: block;
}

.cat-card .info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cat-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: auto;
    /* Push meta down */
    line-height: 1.3;
    color: #333;
    height: 2.6em;
    /* Limit lines visually */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cat-card .meta {
    margin-top: 10px;
    font-size: 0.7rem;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-card .meta span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.seo-block {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.seo-block h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.seo-block h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.seo-block ul {
    margin-left: 20px;
}

.seo-block li {
    margin-bottom: 5px;
}

/* Category Desktop / Large Screens */
@media (min-width: 992px) {
    .page-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .sidebar {
        width: 260px;
        flex-shrink: 0;
    }

    .sticky-sidebar {
        position: sticky;
        top: 20px;
    }

    .main-content {
        flex: 1;
        min-width: 0;
    }

    .listing-grid-category {
        column-count: 4;
        column-gap: 20px;
    }

    .cat-card {
        margin-bottom: 20px;
    }

    .cat-page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-right {
        margin-top: 0;
    }
}

/* --- Detail Page Styles --- */

.page-content.detail-page-content {
    flex-direction: column;
}

.detail-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.detail-main {
    flex: 1;
    min-width: 0;
}

.detail-sidebar {
    width: 100%;
}

.detail-title {
    font-size: 1.6rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Detail Top Split: Gallery + Info Table */
.detail-top-split {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* Gallery */
.detail-gallery {
    width: 100%;
}

.main-image {
    width: 100%;
    /* aspect-ratio: 4/3; removed to allow better fit */
    background: #f8f8f8;
    /* lighter background */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    max-height: 600px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Changed to cover to fill area or contain if full view is preferred. Cover is better for layout aesthetics */
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
}

.thumbnails img.active,
.thumbnails img:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

.detail-nav-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.nav-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Info Table */
.detail-info-table {
    background: #fff;
    flex: 1;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.price-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.price-location {
    text-align: right;
}

.price-val {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    /* Or specific price color usually black/dark */
}

.price-location .loc {
    font-size: 0.8rem;
    color: #666;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr td {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.info-table tr td:first-child {
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
    width: 40%;
}

.info-table tr td:last-child {
    color: #333;
    font-weight: 600;
}

.highlight-text {
    color: var(--primary-color) !important;
}

/* Detail Sections (Desc, QA) */
.detail-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.desc-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.desc-content p {
    margin-bottom: 10px;
}

/* QA Section */
.qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    /* Override section title border if needed */
}

.qa-header .section-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.qa-count {
    background: #eef2ff;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.qa-subtitle {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.qa-empty-state {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.qa-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 10px;
}

.qa-empty-state p {
    margin: 0;
    color: #666;
    font-weight: 500;
}

.qa-empty-state .small {
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
    margin-top: 5px;
}

.btn-ask {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
}

/* Sidebar Widgets */
.widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.user-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    padding-right: 64px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    position: relative;
    border-radius: 50%;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar.is-online img {
    box-shadow: 0 0 0 2px #22c55e;
}

.user-online-dot {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.user-online-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.user-online-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.badge-year {
    background: transparent url(../../images/kayitYil.webp) no-repeat scroll center center;
    color: #fff;
    padding: 14px 8px 26px;
    position: absolute;
    right: 1px;
    top: 1px;
    z-index: 11;
    color: black !important;
    font-size: 12px;
}

.user-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: #333;
}

.rating {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating .count {
    color: #999;
    font-weight: 400;
    font-size: 0.8rem;
}

.btn-outline-blue {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
}

.btn-outline-red {
    background: transparent;
    border: 1px solid #ef5350;
    color: #ef5350;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
}

.btn-outline-blue:hover {
    background: #e3f2fd;
}

.btn-outline-red:hover {
    background: #ffebee;
}

.contact-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.contact-row .icon {
    width: 30px;
    height: 30px;
    background: #eef2ff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-row.whatsapp .icon {
    background: #e8f5e9;
    color: #4caf50;
}

.wa-info {
    display: flex;
    flex-direction: column;
}

.wa-info .label {
    font-size: 0.7rem;
    color: #4caf50;
    text-transform: uppercase;
    font-weight: 700;
}

.sidebar-buttons .dual-btns {
    display: flex;
    gap: 10px;
}

.sidebar-buttons .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 10px 5px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.btn-gray {
    background: #eeeeee;
    color: #555;
}

.btn-red {
    background: #ff0000;
    color: #fff;
}

.safety-box {
    background: #e3f2fd;
    /* Light blue tint similar to image */
    border: 1px solid #bbdefb;
}

.safety-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.safety-header h5 {
    color: #1565c0;
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
}

.safety-box p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* Similar Items */
.similar-items-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
}

.similar-header {
    margin-bottom: 30px;
}

.blue-pill {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: inline-block;
}

.similar-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 10px;
}

/* Detail Responsive */
@media (min-width: 992px) {
    .detail-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .detail-sidebar {
        width: 400px;
        flex-shrink: 0;
        position: -webkit-sticky;
        position: sticky;
        /* Managed dynamically by JS in script.js to handle tall/short sidebars */
        top: 0;
        bottom: auto;
        height: auto;
        align-self: flex-start;
        max-height: none;
        overflow: visible;
        z-index: 10;
    }

    .detail-sidebar::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .detail-top-split {
        flex-direction: row;
        gap: 30px;
    }

    .detail-gallery {
        width: 55%;
        /* Slightly wider gallery */
    }

    .detail-info-table {
        width: 45%;
    }
}

/* --- Evcil Pedi Page Styles --- */

.pedi-hero {
    background: linear-gradient(135deg, #102d66 0%, #4667a8 100%);
    color: #fff;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-left {
    flex: 2;
}

.badge-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-left h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.pedi-search {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    max-width: 600px;
}

.pedi-search input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    outline: none;
    color: #333;
}

.pedi-search button {
    background: #dddddd;
    color: #333;
    border: none;
    padding: 8px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pedi-search button:hover {
    background: #ccc;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.info-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-box p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* Pedi Grid */
.pedi-categories {
    margin-bottom: 60px;
}

.section-header {
    margin-bottom: 3px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 5px;
}

.section-header p {
    color: #666;
    font-size: 0.95rem;
}

.pedi-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.pedi-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pedi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-img {
    height: 160px;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.4);
    /* Fallback */
    /* Based on image, seems goldish or transparent with text */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
    color: #fff;
    /* Re-check image tag style. Usually tags are top right or within image */
    /* Actually image shows label top right like "BÖCEKLER" with bg */
    background: rgba(160, 140, 80, 0.9);
    /* Goldish brown from image */
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0000;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    z-index: 2;
}

.card-body {
    padding: 20px;
}

.count-badge {
    font-size: 0.75rem;
    color: #888;
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.card-body p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Pedi */
@media (min-width: 768px) {
    .pedi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .pedi-hero {
        padding: 80px 0;
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
    }

    .pedi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .pedi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Pedi Category Page Styles --- */

.pedi-cat-hero {
    background: linear-gradient(135deg, #102d66 0%, #4667a8 100%);
    color: #fff;
    padding: 60px 0 40px;
    /* Adjusted padding */
}

.pedi-breadcrumb-bar {
    background: #eef2f7;
    padding: 10px 0;
    font-size: 0.85rem;
    margin-bottom: 1px;
    border-bottom: 1px solid #e0e0e0;
}

.pedi-breadcrumb-bar a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
}

.pedi-breadcrumb-bar .sep {
    margin: 0 8px;
    color: #ccc;
}

.pedi-breadcrumb-bar .current {
    color: #888;
}

.pedi-cat-content {
    margin-bottom: 60px;
}

.pedi-cat-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
}

.pedi-cat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.pedi-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-img-purple {
    height: 200px;
    position: relative;
    background: #4a148c;
    /* Fallback purple */
    /* Gradient like in image: Dark purple/blue */
    background: linear-gradient(135deg, #311b92 0%, #673ab7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img-purple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: transform 0.3s ease; */
}



/* Overlay at bottom of image */
.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.wiki-icon {
    font-size: 1rem;
}

.pedi-cat-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pedi-cat-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.pedi-cat-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-detail {
    margin-top: auto;
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    border: 1px solid #4db6ac;
    /* Tealish color from image buttons */
    color: #00897b;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-detail:hover {
    background: #e0f2f1;
}

/* Responsive Grid for Pedi Category */
@media (min-width: 768px) {
    .pedi-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .pedi-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Pedi Detail Page Styles --- */

.pedi-detail-hero {
    background: #311b92;
    /* Deep purple */
    background: linear-gradient(135deg, #4527a0 0%, #283593 100%);
    border-radius: 12px;
    padding: 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(49, 27, 146, 0.3);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Subtle pattern example */
    opacity: 0.1;
    pointer-events: none;
}

.hero-content-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
}

@media (min-width: 768px) {
    .hero-content-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.latin-name {
    font-style: italic;
    font-family: serif;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
    display: block;
}

.hero-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
}

.hero-stats li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-stats li strong {
    color: #b39ddb;
    /* Light purple accent */
    font-weight: 600;
    width: 60px;
    /* Align labels */
}

.hero-image {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
    transform: rotate(-3deg);
    transition: transform 0.3s;
}

.hero-image img:hover {
    transform: rotate(0) scale(1.05);
}

/* Share Bar */
.pedi-share-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.share-icons {
    display: flex;
    gap: 10px;
}

.share-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.share-icon.fb {
    background: #3b5998;
}

.share-icon.tw {
    background: #1da1f2;
}

.share-icon.wp {
    background: #25d366;
}

/* Content Blocks */
.content-block {
    margin-bottom: 40px;
}

.block-title {
    font-size: 1.4rem;
    color: #311b92;
    /* Purple Title */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #ede7f6;
    padding-bottom: 8px;
}

.block-title .icon {
    font-size: 1.5rem;
}

.content-block p {
    color: #000;
    line-height: 1;
    margin-bottom: 10px;
}

/* Info Grid Blue */
.info-grid-blue {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .info-grid-blue {
        grid-template-columns: 1fr 1fr;
    }
}

.info-box-blue {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 20px;
    border-radius: 4px;
}

.info-box-blue h4 {
    color: #1565c0;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-box-blue p {
    font-size: 0.9rem;
    color: #333;
    margin: 0;
}

/* Rating Bars */
.rating-bars {
    width: 100%;
    /* Full width */
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.rating-row .label {
    flex: 0 0 220px;
    /* Increased fixed width to fit long labels */
    font-weight: 600;
    color: #444;
}

.bar-container {
    flex: 1;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 5px;
}

.rating-row .val {
    width: 80px;
    text-align: right;
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

/* Similar Circles */
.similar-circles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 on mobile */
    gap: 15px;
    justify-items: center;
}

@media (min-width: 500px) {
    .similar-circles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .similar-circles-grid {
        grid-template-columns: repeat(5, 1fr);
        /* 5 on desktop */
    }
}

.sim-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100%;
    /* Fluid width */
}

.circle-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #673ab7;
    /* Purple border */
    overflow: hidden;
    margin-bottom: 8px;
    background: #fff;
    padding: 2px;
    /* Gap between border and image if desired */
    transition: transform 0.2s;
}

.circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sim-circle:hover .circle-img {
    transform: scale(1.05);
    border-color: #311b92;
}

.sim-circle span {
    text-align: center;
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
}

/* FAQ Accordion */
.pedi-accordion details {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.pedi-accordion summary {
    padding: 15px;
    background: #f9f9f9;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pedi-accordion summary::-webkit-details-marker {
    display: none;
}

.pedi-accordion summary:after {
    content: '+';
    font-size: 1.2rem;
    color: #666;
}

.pedi-accordion details[open] summary:after {
    content: '-';
}

.acc-content {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    color: #555;
    line-height: 1.6;
}

/* Right Sidebar Widget */
.pedi-sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-widget {
    text-align: center;
    border-top: 4px solid #673ab7;
}

.circular-header {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    margin-top: -40px;
    /* Pull up to overlap if desired, or just margin */
    margin-top: 0;
}

.circle-border {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #673ab7;
    padding: 4px;
    background: #fff;
    overflow: hidden;
}

.circle-border img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.summary-widget h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

.quick-stats-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.quick-stats-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
    font-size: 0.9rem;
}

.quick-stats-list .label {
    color: #666;
}

.quick-stats-list .val {
    font-weight: 600;
    color: #333;
}

.sidebar-links {
    list-style: none;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    text-decoration: none;
    color: #555;
    display: block;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.sidebar-links a:hover {
    background: #e3f2fd;
    color: #1565c0;
}

/* Comments Section */
.pedi-comment-form {
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 30px;
}

.pedi-comment-form h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

.pedi-comment-form .form-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: 0.2s;
    background: #fff;
    margin-bottom: 12px;
}

.pedi-comment-form .form-input:focus {
    border-color: #311b92;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 27, 146, 0.1);
}

.pedi-comment-form textarea.form-input {
    resize: vertical;
}

.btn-comment {
    background: #311b92;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-comment:hover {
    background: #4527a0;
}

.pedi-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* --- QA Category (Masonry) Styles --- */

.qa-masonry-grid {
    column-count: 1;
    column-gap: 20px;
}

@media (min-width: 576px) {
    .qa-masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .qa-masonry-grid {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    .qa-masonry-grid {
        column-count: 3;
    }
}

.qa-card {
    background: #fff;
    border: 1px solid #1c7c3c;
    /* Green border as in image */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    break-inside: avoid;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: inline-block;
    /* Essential for masonry */
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qa-card-link {
    color: inherit;
    text-decoration: none;
}

.qa-card-link:hover {
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.qa-card-img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
}

.qa-card-img img {
    width: 100%;
    height: auto;
    display: block;
}

.qa-card-body {
    padding: 15px;
}

.qa-date {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
    display: block;
}

.qa-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.qa-card-title a {
    color: #333;
    text-decoration: none;
}

.qa-card-title a:hover {
    color: #1976d2;
}

.qa-card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qa-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}

.view-count {
    color: #999;
}

.answer-link {
    color: #039be5;
    /* Blue link */
    text-decoration: none;
    font-weight: 600;
}

.answer-link:hover {
    text-decoration: underline;
}

/* --- QA Detail Page Styles --- */

.qa-detail-main {
    flex: 1;
    margin-right: 30px;
}

.qa-question-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    /* border: 1px solid #eee; Optional if main bg is not white */
}

.qa-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #888;
}

.qa-cat-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.qa-main-title {
    font-size: 1.6rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.qa-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.u-avatar.blue-bg {
    background: #00acc1;
    /* Tealish blue */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.u-details {
    display: flex;
    flex-direction: column;
}

.u-name {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}

.u-role {
    font-size: 0.75rem;
    color: #999;
}

.u-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
    margin-top: 4px;
}

.u-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.u-status.is-online {
    color: #15803d;
    background: #dcfce7;
}

.u-status.is-offline {
    color: #6b7280;
    background: #f3f4f6;
}

.qa-body-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.qa-gallery {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
}

.qa-img-wrapper {
    flex: 0 0 auto;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.qa-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.qa-img-wrapper img:hover {
    transform: scale(1.05);
}

/* Answers Section */
.qa-answers-section {
    margin-bottom: 40px;
}

.answers-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.count-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.qa-answer-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    position: relative;
    border-left: 4px solid #ddd;
}

.qa-answer-card.accepted {
    border-left-color: #2e7d32;
}

.accepted-badge {
    background: #2e7d32;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.ans-header {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.ans-date {
    font-size: 0.8rem;
    color: #999;
}

.ans-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.ans-actions {
    display: flex;
    gap: 15px;
}

.btn-like {
    background: #f5f5f5;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-like:hover {
    background: #eee;
}

/* Login Prompt */
.qa-login-prompt {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.qa-login-prompt h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.btn-primary-blue {
    background: #039be5;
    color: #fff;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.btn-primary-blue:hover {
    background: #0288d1;
}

/* Sidebar Specifics */
.qa-detail-sidebar {
    width: 300px;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .qa-detail-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 90px;
        align-self: flex-start;
    }
}

.qa-blue-cta {
    background: #1976d2;
    /* Vibrant Blue */
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
}

.icon-bubble {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.qa-blue-cta h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.qa-blue-cta p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.4;
}

.btn-white {
    background: #fff;
    color: #1976d2;
    padding: 8px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

.qa-sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.w-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}

.w-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.w-header .tag {
    background: #e8eaf6;
    color: #3f51b5;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.top-users-list {
    list-style: none;
    padding: 0;
}

.top-users-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.top-users-list img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.top-users-list .u-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.top-users-list .name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.top-users-list .stats {
    font-size: 0.75rem;
    color: #999;
}

.crown {
    font-size: 1.2rem;
}

@media (max-width: 991px) {
    .detail-layout {
        flex-direction: column;
    }

    .qa-detail-main {
        margin-right: 0;
        margin-bottom: 30px;
    }

}

/* --- Library Index Styles --- */

.lib-header-section {
    background: #e3f2fd;
    /* Light blue bg */
    padding: 30px 0;
    border-bottom: 1px solid #bbdefb;
}

.lib-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.lib-title-area h1 {
    font-size: 1.8rem;
    color: #0d47a1;
    font-weight: 700;
    margin-bottom: 5px;
}

.lib-title-area p {
    color: #546e7a;
    margin: 0;
}

.lib-search-form {
    display: flex;
    background: #fff;
    border-radius: 6px;
    padding: 5px;
    border: 1px solid #bbdefb;
    min-width: 300px;
}

.lib-search-form input {
    border: none;
    flex: 1;
    padding: 8px 15px;
    outline: none;
    font-size: 0.95rem;
}

.lib-search-form button {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.lib-page-wrapper {
    background: #eef2f7;
    /* Overall page bg */
    padding-bottom: 60px;
}

.lib-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .lib-layout {
        flex-direction: row;
    }

    .lib-main {
        flex: 1;
        /* Width is auto flex */
    }

    .lib-sidebar {
        width: 400px;
        flex-shrink: 0;
    }
}

/* Category Grid */
.lib-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

@media (min-width: 576px) {
    .lib-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .lib-cat-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Or 3 depending on preference, image shows 3 */
        grid-template-columns: repeat(3, 1fr);
    }
}

.lib-cat-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.lib-cat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.cat-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    border: 2px solid #e91e63;
    /* Pink/Red border */
    margin-bottom: 10px;
    position: relative;
}

.cat-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    /* Inner white border */
}

.lib-cat-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Recent Articles */
.lib-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.icon-circle {
    width: 32px;
    height: 32px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lib-section-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.lib-recent-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lib-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: 0.2s;
}

.lib-card.has-media {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.lib-card-media {
    flex: 0 0 140px;
    width: 140px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f3f5;
}

.lib-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lib-card.has-media .lib-card-body {
    flex: 1 1 auto;
}

.lib-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.lib-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.lib-badge {
    background: #e0f7fa;
    color: #006064;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.lib-date {
    color: #999;
}

.lib-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.lib-card h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.lib-card h3 a:hover {
    color: #1976d2;
}

.lib-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .lib-card.has-media {
        flex-direction: column;
    }

    .lib-card-media {
        width: 100%;
        height: 180px;
    }
}

/* Sidebar Widgets */
.lib-stats-widget {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.3);
}

.lib-stats-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    opacity: 0.9;
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-col {
    display: flex;
    flex-direction: column;
}

.stat-col .count {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-col .label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 25px;
}

.lib-trivia-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lib-trivia-widget h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.lib-trivia-widget p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.comment-item:last-child {
    border-bottom: none;
}

.c-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #eee;
    object-fit: cover;
}

.c-content {
    flex: 1;
}

.c-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.c-name {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.c-date {
    font-size: 0.8rem;
    color: #999;
}

.c-rating {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #ffc107;
}

/* --- QA Index Styles --- */

.qa-index-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
    margin-bottom: 20px;
}

.qa-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

@media (min-width: 768px) {
    .qa-header-inner {
        flex-direction: row;
    }
}

.qa-title-area h1 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 5px;
}

.qa-title-area p {
    color: #666;
    font-size: 0.95rem;
}

.qa-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .qa-stats {
        margin-top: 0;
    }
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-pill.blue {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-pill.yellow {
    background: #fff8e1;
    color: #ff8f00;
}

.qa-sidebar {
    width: 100%;
}

@media (min-width: 992px) {
    .qa-sidebar {
        width: 300px;
        /* Fixed sidebar width if desired */
        order: -1;
        /* Move to left */
    }

    .qa-main {
        flex: 1;
        width: calc(100% - 330px);
        /* Fill remaining */
    }
}

.qa-cat-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-cat-list {
    list-style: none;
    padding: 0;
}

.qa-cat-list li {
    margin-bottom: 5px;
}

.qa-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    border-radius: 6px;
    transition: 0.2s;
}

.qa-cat-list a:hover {
    background: #f5f5f5;
    color: #333;
}

.qa-cat-list .count {
    background: #e3f2fd;
    color: #1976d2;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* QA Tabs */
.qa-tabs {
    display: flex;
    gap: 5px;
    background: #e3f2fd;
    padding: 5px;
    border-radius: 25px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.qa-tab {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #555;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.2s;
}

.qa-tab.active {
    background: #fff;
    color: #1976d2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: 700;
}

/* QA List Item */
.qa-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.ua-col {
    flex-shrink: 0;
}

.u-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.u-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.q-content-col {
    flex: 1;
    min-width: 250px;
}

.q-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.q-title a {
    text-decoration: none;
    color: #333;
}

.q-title a:hover {
    color: #1976d2;
}

.q-meta {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.q-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.q-cat a {
    color: #1976d2;
    text-decoration: none;
}

.q-stats-col {
    display: flex;
    gap: 20px;
    text-align: center;
}

.q-stat {
    display: flex;
    flex-direction: column;
}

.q-stat .val {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.q-stat .label {
    font-size: 0.75rem;
    color: #888;
}

.q-status-col {
    min-width: 100px;
    display: flex;
    justify-content: flex-end;
}

.status-badge {
    padding: 6px 15px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.solved {
    background: #2e7d32;
    /* Green */
}

/* Responsive adjustment for QA item */
@media (max-width: 768px) {
    .qa-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .q-status-col,
    .q-stats-col {
        width: 100%;
        justify-content: flex-start;
        flex-direction: row;
    }

    .q-stats-col {
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
}

/* --- Library Category Page Styles --- */

.lib-category-header {
    background: #fff;
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.breadcrumb-mini {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.breadcrumb-mini a {
    text-decoration: none;
    color: #555;
    transition: color 0.2s;
}

.breadcrumb-mini a:hover {
    color: #1976d2;
}

.breadcrumb-mini .sep {
    margin: 0 5px;
    font-size: 0.8rem;
}

.lib-category-header h1 {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
}

/* --- Library Detail Page Styles --- */

.lib-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 50px;
}

@media (min-width: 992px) {
    .lib-detail-layout {
        flex-direction: row;
    }

    .lib-article-main {
        flex: 1;
        /* max-width: calc(100% - 340px); */
    }

    .lib-sidebar {
        width: 300px;
        /* Reuse sidebar width */
        flex-shrink: 0;
    }
}

.lib-full-article {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    /* Reduced from 40px for mobile */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .lib-full-article {
        padding: 20px;
    }
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-header h1 {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #777;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-featured-img {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Typography */
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.article-body p {
    margin-bottom: 5px;
}

.article-body .lead {
    font-size: 1.2rem;
    font-weight: 300;
    color: #333;
    border-left: 4px solid #1976d2;
    padding-left: 15px;
    margin-bottom: 30px;
}

.article-body h3 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 5px;
}

.article-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-img-block {
    margin: 30px 0;
    text-align: center;
}

.article-img-block img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.img-caption {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

.infobox {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.infobox.warning {
    background: #fff3e0;
    border-color: #ffe0b2;
    color: #e65100;
}

.infobox h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.infobox p:last-child {
    margin-bottom: 0;
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Reduced from 15px for mobile */
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 15px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.share-btn.fb {
    background: #3b5998;
}

.share-btn.tw {
    background: #1da1f2;
}

.share-btn.wp {
    background: #25d366;
}

/* Library Comments */
.lib-comments {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.lib-comments h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.lib-comment-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    font-family: inherit;
    resize: vertical;
}

/* Sidebar Widgets Specifics */
.lib-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.sidebar-search {
    display: flex;
}

.sidebar-search input {
    flex: 1;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.sidebar-search button {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.sidebar-articles {
    list-style: none;
    padding: 0;
}

.sidebar-articles li {
    margin-bottom: 15px;
}

.sidebar-articles a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.sidebar-articles img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-articles span {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s;
}

/* --- Directory (Rehber) Index Page Styles --- */

.dir-header-section {
    background: #f0f4f8;
    /* Matching the background in image 2 */
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-left-empty {
    flex: 1;
}

.dir-header-inner h1 {
    font-size: 1.6rem;
    color: #1a1a1a;
    font-weight: 800;
    margin: 0;
    flex: 2;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-right .result-count {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
}

.header-right .result-count strong {
    color: #444;
}

.dir-search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    position: relative;
}

.dir-search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
    outline: none;
    font-size: 1rem;
    padding-right: 50px;
}

.dir-search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    background: #0288d1;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dir-page-wrapper {
    background: #f0f4f8;
    padding: 0 0 50px;
    /* Reduced top padding as header is now part of the flow visually */
}

.dir-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .dir-layout {
        flex-direction: row;
        align-items: flex-start;
        /* Important for sticky */
    }

    .dir-main {
        flex: 1;
    }

    .dir-sidebar {
        width: 300px;
        flex-shrink: 0;
        position: -webkit-sticky;
        position: sticky;
        top: auto;
        bottom: auto;
        height: auto;
        align-self: flex-start;
        z-index: 10;
    }
}

.dir-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dir-toolbar .result-count {
    color: #666;
    font-size: 0.9rem;
}

.dir-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 576px) {
    .dir-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .dir-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dir-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
    border: 1px solid #fff;
    position: relative;
    /* For stretched-link */
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.dir-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.dir-img {
    height: 180px;
    position: relative;
    background: #eee;
}

.dir-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

.status-tag.open {
    background: #2e7d32;
}

.status-tag.closed {
    background: #9c27b0;
}

.dir-content {
    padding: 20px;
}

.dir-cat-label {
    font-size: 0.7rem;
    color: #1976d2;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.dir-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 44px;
    /* Limit height for 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dir-title a {
    text-decoration: none;
    color: #333;
}

.dir-loc {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dir-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.dir-rating .stars {
    color: #ffc107;
}

.dir-rating .count {
    color: #999;
    font-size: 0.75rem;
}

.dir-distance {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef6ff;
    color: #2563eb;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
}

/* Sidebar Filter Widget Redesign */
.dir-sticky-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Smart Sticky is handled by assets/js/script.js */

/* To make it stick to bottom, we need to monitor the end of container. 
   Sticky with bottom only works if parent is taller and we are at the bottom. */

.dir-filter-widget {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 0;
    /* Handled by container gap */
}

.dir-filter-widget h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0d235c;
    margin-bottom: 20px;
    border: none;
    padding: 0;
}

.search-inside {
    position: relative;
    margin-bottom: 25px;
}

.search-inside input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    background: #f9fafb;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    padding-right: 55px;
}

.search-inside input:focus {
    border-color: #0288d1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(2, 136, 209, 0.1);
}

.search-inside button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 46px;
    background: #0288d1;
    color: #fff;
    border: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-weight: 700;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.filter-group select {
    width: 100%;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.filter-group select:focus {
    border-color: #0288d1;
}

.btn-nearby-new {
    width: 100%;
    background: transparent;
    border: 1.5px solid #0288d1;
    color: #0288d1;
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.btn-nearby-new:hover {
    background: #f0faff;
}

.btn-apply-new {
    width: 100%;
    background: #0288d1;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-apply-new:hover {
    background: #0277bd;
}

.side-cat-list-new {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-cat-list-new li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #f0f7ff;
    border-radius: 12px;
    color: #444;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.side-cat-list-new li i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.side-cat-list-new li.active a {
    background: #0288d1;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.3);
}

.side-cat-list-new li:not(.active) a:hover {
    background: #e1efff;
    color: #0288d1;
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .dir-sticky-container {
        position: static;
    }
}

/* Fixed Load More Button Styles */
.load-more-btn-wrapper {
    margin-top: 30px;
    text-align: center;
}

.btn-load-more {
    display: inline-block;
    min-width: 200px;
    background: #fff;
    border: 1.5px solid #0288d1;
    padding: 12px 30px;
    text-align: center;
    color: #0288d1;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.1);
}

.btn-load-more:hover {
    background: #0288d1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 136, 209, 0.25);
}

/* --- Video Index Page Styles --- */

.vid-header-section {
    background: linear-gradient(135deg, #1e1e2f 0%, #2a2a40 100%);
    /* Different dark theme for video section */
    padding: 40px 0;
    color: #fff;
    margin-bottom: 30px;
    border-bottom: 4px solid #7c4dff;
    /* Accent border */
}

.vid-header-inner h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.vid-header-inner p {
    opacity: 0.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.vid-search-box {
    display: flex;
    max-width: 600px;
    gap: 10px;
}

.vid-search-box input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 4px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.btn-vid-search {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 0 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-vid-search:hover {
    background: #fff;
}

.vid-page-wrapper {
    background: #fff;
    padding-bottom: 50px;
}

.vid-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .vid-layout {
        flex-direction: row;
    }

    .vid-main {
        flex: 1;
    }

    .vid-sidebar {
        width: 300px;
        flex-shrink: 0;
    }
}

.vid-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .vid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vid-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    /* No border or shadow initially for cleaner look, or light shadow */
}

.vid-thumb {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.vid-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}

.vid-card:hover .vid-thumb img {
    opacity: 0.7;
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid #fff;
    pointer-events: none;
}

.vid-src-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: lowercase;
}

.vid-content {
    padding: 15px 5px;
}

.vid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.v-cat-blue {
    background: #1976d2;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.v-comments {
    color: #999;
}

.vid-title {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
    margin: 0;
}

.vid-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.vid-title a:hover {
    color: #1976d2;
}

/* Video Sidebar Widget */
.vid-cat-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.vid-cat-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vid-cat-list {
    list-style: none;
    padding: 0;
}

.vid-cat-list li {
    margin-bottom: 5px;
}

.vid-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    border-radius: 6px;
    background: #f9f9f9;
    transition: 0.2s;
}

.vid-cat-list a:hover {
    background: #f0f0f0;
    color: #333;
}

.vid-cat-list .count {
    background: #e3f2fd;
    color: #1976d2;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* 4 Column Grid modifier for full width layout */
/* --- Video Detail Page Styles --- */

.vid-detail-wrapper {
    background: #fdfdfd;
    padding: 30px 0;
}

.vid-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .vid-detail-layout {
        flex-direction: row;
    }

    .vid-detail-main {
        flex: 1;
        width: 100%;
        /* Ensure it takes full available width in flex */
        min-width: 0;
        /* Prevents flex item from overflowing */
    }

    .vid-detail-sidebar {
        width: 340px;
        flex-shrink: 0;
    }
}

.vid-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.vid-player-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.vid-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vid-info-box {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 30px;
}

.vid-info-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 15px;
}

.vid-desc-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.vid-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tag-btn.blue {
    background: #2196f3;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-badge.purple {
    background: #9c27b0;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.view-count-badge {
    background: #f5f5f5;
    color: #666;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #ddd;
}

/* Comments Section */
.vid-comments-section {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.vid-comments-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.no-comments-alert {
    background: #e0e0e0;
    padding: 15px;
    border-radius: 6px;
    color: #555;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.vid-comment-form h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #444;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-size: 0.95rem;
    transition: border 0.2s;
}

.form-control:focus {
    border-color: #1976d2;
}

.btn-submit-comment {
    background: #03a9f4;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-submit-comment:hover {
    background: #0288d1;
}

/* Sidebar Similar Videos */
.vid-detail-sidebar .sidebar-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.vid-detail-sidebar .sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.similar-vid-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.similar-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    /* Fallback gap */
    transition: background 0.2s;
    border: 1px solid transparent;
}

.similar-item:hover {
    background: #f9f9f9;
}

.s-thumb {
    width: 120px;
    height: 75px;
    flex-shrink: 0;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.s-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vid-type-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.8rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.s-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.s-meta {
    font-size: 0.75rem;
    color: #888;
}

/* Articles Grid Layout */
.lib-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .lib-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .lib-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lib-grid-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.lib-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.lib-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.lib-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.lib-grid-item:hover .lib-thumb img {
    transform: scale(1.05);
}

.badge-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e3f2fd;
    /* Default blue for article */
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-cat.red {
    background: #ffebee;
    color: #c62828;
}

.overlay-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.lib-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lib-content h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 700;
}

.lib-content h3 a {
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.lib-content h3 a:hover {
    color: #1976d2;
}

.lib-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.lib-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.8rem;
    color: #999;
}

.lib-footer .date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    text-decoration: none;
    color: #1976d2;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
}

.read-more:hover {
    color: #0d47a1;
    transform: translateX(3px);
}

/* Pagination */
.lib-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 600;
    transition: 0.2s;
}

.page-link.active,
.page-link:hover {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

/* Pedi Category Improvements */
.pedi-subcat-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    /* Yan yana */
    margin-bottom: 20px;
    margin-top: 15px;
}

.pedi-subcat-item {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f3f5f7;
    color: #333;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.pedi-subcat-item:hover {
    background-color: #e2e6ea;
    transform: translateY(-1px);
    color: #000;
}

/* Load More Button */
.pedi-load-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.pedi-load-more-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.pedi-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pedi-load-more-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    animation: rotate 2s linear infinite;
}

.pedi-load-more-btn .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

.pedi-load-more-btn.loading .spinner {
    display: block;
}

.pedi-load-more-btn.loading:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.pedi-load-more-container {
    text-align: center;
    margin-top: 30px;
    width: 100%;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.pedi-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.pedi-card-link:hover {
    color: inherit;
}

/* Lazy Loading */
img.lazy,
.lazy-bg {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-color: #f8f9fa;
    /* Gray placeholder to prevent blue background show-through */
    min-height: 100px;
    /* Ensure visibility */
}

img.loaded,
.lazy-bg.loaded {
    opacity: 1;
    background-color: transparent;
}

/* FINAL TOC STYLING MATCH */
.topic-headings {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.topic-headings h2.h6 {
    font-weight: 700 !important;
    color: #1a1a1a !important;
    /* Dark black/blue */
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
}

.topic-headings .text-muted {
    font-size: 0.85rem !important;
    color: #888 !important;
}

.topic-headings .list-group {
    display: block !important;
    padding: 0 !important;
    margin-top: 15px !important;
}

.topic-headings .list-group-item {
    display: block !important;
    background-color: #f8f9fa !important;
    /* Extremely light gray/blue */
    border: none !important;
    border-radius: 6px !important;
    /* Slightly rounded */
    margin-bottom: 6px !important;
    /* Explicit gap */
    padding: 10px 15px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
}

.topic-headings .list-group-item:last-child {
    margin-bottom: 0 !important;
}

.topic-headings .list-group-item:hover {
    background-color: #eff2f5 !important;
}

.topic-headings .list-group-item a {
    color: #2c3e50 !important;
    /* Dark slate text */
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    display: block !important;
    /* Remove any link padding since li has it */
    padding: 0 !important;
}

.gozat {
    display: block;
    font-weight: bold;
    background-color: #ffcf92;
    border: 0 !important;
    border-left: 4px solid #16A085 !important;
    text-decoration: none;
    padding: 5px;
}

.gozat::before {
    content: "";
    background-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath fill='%23E1E8ED' d='M35.059 18c0 3.304-7.642 11-17.067 11C8.566 29 .925 22.249.925 18c0-3.314 34.134-3.314 34.134 0z'/%3E%3Cpath fill='%23292F33' d='M35.059 18H.925c0-3.313 7.642-11 17.067-11s17.067 7.686 17.067 11z'/%3E%3Cpath fill='%23F5F8FA' d='M33.817 18c0 2.904-7.087 9.667-15.826 9.667-8.74 0-15.825-5.935-15.825-9.667 0-2.912 7.085-9.666 15.825-9.666C26.73 8.333 33.817 15.088 33.817 18z'/%3E%3Ccircle fill='%238B5E3C' cx='18' cy='18' r='8.458'/%3E%3Ccircle fill='%23292F33' cx='18' cy='18' r='4.708'/%3E%3Ccircle fill='%23F5F8FA' cx='14.983' cy='15' r='2'/%3E%3C/svg%3E");
    background-size: contain;
    width: 20px;
    height: 20px;
    padding-left: 25px;
    background-repeat: no-repeat;
}

.not {
    background-color: #d1ecf1;
    margin-bottom: 15px;
    margin-top: 10px;
    padding: 10px;
    border-left: 5px #7ad7e8 solid;
}

.onsoz {
    position: relative;
    color: #530396 !important;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    border: 2px solid #fff;
    border: solid 2px;
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 35px !important;
    margin-top: 5px !important;
}

.article h2 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    border-left: 5px solid #530396;
    padding-left: 10px;
    background: linear-gradient(to right, #f3e5ff, #ffffff);
}

.article h3 {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    border-left: 3px dashed #a46ad9;
    padding-left: 8px;
    background: linear-gradient(to right, #f9f4ff, #ffffff);
    font-weight: 600;
    color: #5a2d91;
}

.article h4 {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    border-left: 2px dotted #c2a4e6;
    padding-left: 6px;
    background: linear-gradient(to right, #fbf8ff, #ffffff);
    font-weight: 500;
    color: #7349ad;
}



.article ul {
    list-style-type: circle;
    padding-left: 20px;
    font-size: 15px;
    margin-bottom: 6px;
}

.article ul li {
    display: list-item;
    list-style-position: outside;
}

/* FINAL LAYOUT FIX */
.topic-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.topic-headings .list-group-item {
    /* Ensure indentation (margin-left) is respected */
    width: auto !important;
    /* Allow width to shrink if indented? No, default block width handles margin. */
    /* If width is 100% and margin-left is added, it might overflow or shrink content. Default block behavior is fine. */
    /* Remove width: 100% if explicitly set previously and causes overflow */
}

/* CONSOLIDATED TOC AND SCROLL FIX */

/* 1. Header Layout - Force Side-by-Side */
.topic-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

/* 2. Scroll Position Logic */
/* Target all headers that might be TOC targets. */
/* Increasing offset to 140px to clear likely sticky headers */
h2[id],
h3[id],
h4[id] {
    scroll-margin-top: 140px !important;
}

/* 3. List Item Spacing & Layout */
.topic-headings .list-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.topic-headings .list-group-item {
    background-color: #f8f9fa !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 4. Indentation via Margin - Ensure no overflow */
/* Since we use margin-left in HTML, ensure width adjusts */
.topic-headings .list-group-item {
    width: auto !important;
    /* width: auto allows the block to shrink when margin-left pushes it, keeping it inside container */
}

/* RESPONSIVE IMAGES FIX */
.pedi-article-content img,
.content-block img,
img.ortalaimg {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    /* Subtle shadow for depth */
    image-rendering: auto;
    /* Ensure standard rendering */
}

/* Ensure no fixed width inline styles break layout */

.pedi-article-content .article img,
.pedi-article-content .content-block img {
    width: 100% !important;
    height: auto !important;
}

/* Restore avatar size if affected */
.c-avatar img {
    width: 50px !important;
    height: 50px !important;
}

/* Control Bar Styling */
.pedi-meta-control-bar {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.pedi-meta-control-bar .btn-xs {
    padding: 2px 8px;
    line-height: 1.5;
    border: 1px solid #ced4da;
    background: #fff;
    color: #555;
    border-radius: 4px;
}

.pedi-meta-control-bar .btn-xs:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #adb5bd;
}

/* Tags Styling */
.pedi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pedi-tags .tag-badge {
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.pedi-tags .tag-badge:hover {
    transform: translateY(-2px);
    background-color: #7b1fa2;
    /* Darker purple on hover */
}

/* Feedback Widget */
.feedback-widget-toggle {
    position: fixed;
    right: 14px;
    top: 52%;
    transform: translateY(-50%);
    width: 40px;
    height: 118px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ff6565 0%, #e54343 100%);
    color: #fff;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    cursor: pointer;
}

.feedback-widget-toggle span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.4px;
    font-size: 13px;
    font-weight: 600;
}

.feedback-widget-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 24, 31, 0.56);
    z-index: 1190;
}

.feedback-widget-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100% - 22px));
    max-height: calc(100vh - 36px);
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    z-index: 1200;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.feedback-widget-head {
    padding: 16px 18px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.feedback-widget-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
    color: #2c2f34;
}

.feedback-widget-close {
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #4f5358;
    cursor: pointer;
    padding: 0;
}

.feedback-widget-subtitle {
    margin: 0;
    padding: 0 18px 12px;
    color: #52565d;
    font-size: 15px;
    line-height: 1.35;
}

.feedback-widget-body {
    background: #f2f2f3;
    padding: 12px 14px;
}

.feedback-widget-grid {
    display: grid;
    gap: 12px;
}

.feedback-widget-card {
    border: 0;
    border-radius: 10px;
    background: #ececef;
    padding: 12px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #30343a;
    font-size: 17px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.feedback-widget-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(24, 29, 39, 0.08);
}

.feedback-widget-card.active {
    box-shadow: inset 0 0 0 2px #2f76ff;
    background: #fff;
}

.feedback-widget-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 auto;
}

.feedback-row {
    margin-bottom: 14px;
}

.feedback-row:last-child {
    margin-bottom: 0;
}

.feedback-label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #30343a;
}

.feedback-rating {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.feedback-rating-item {
    border: 1px solid #dedfe3;
    background: #fff;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    cursor: pointer;
    color: #363a3f;
}

.feedback-rating-item strong {
    display: block;
    font-size: 18px;
    line-height: 1;
    margin-bottom: 4px;
}

.feedback-rating-item span {
    font-size: 12px;
}

.feedback-rating-item.active {
    border-color: #2f76ff;
    box-shadow: 0 0 0 2px rgba(47, 118, 255, 0.12);
}

.feedback-options {
    display: grid;
    gap: 10px;
}

.feedback-option {
    border: 1px solid #d9dadd;
    border-radius: 8px;
    background: #fff;
    padding: 11px 12px;
    text-align: left;
    font-size: 14px;
    color: #373b40;
    cursor: pointer;
}

.feedback-option.active {
    border-color: #2f76ff;
    box-shadow: 0 0 0 2px rgba(47, 118, 255, 0.12);
}

.feedback-input,
.feedback-textarea {
    width: 100%;
    border: 1px solid #d9dadd;
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
    font-size: 14px;
    color: #30343a;
    outline: none;
}

.feedback-input:focus,
.feedback-textarea:focus {
    border-color: #2f76ff;
    box-shadow: 0 0 0 2px rgba(47, 118, 255, 0.12);
}

.feedback-textarea {
    min-height: 88px;
    resize: vertical;
}

.feedback-nps {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
}

.feedback-nps button {
    border: 1px solid #d9dadd;
    border-radius: 8px;
    background: #fff;
    height: 34px;
    font-weight: 600;
    color: #3a3e45;
    cursor: pointer;
}

.feedback-nps button.active {
    border-color: #2f76ff;
    background: #eaf1ff;
}

.feedback-actions {
    background: #f2f2f3;
    border-top: 1px solid #e6e6e8;
    padding: 10px 14px 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.feedback-btn {
    min-width: 106px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid #d1d1d4;
    background: #fff;
    color: #4c5158;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.feedback-btn.primary {
    background: #5a9be6;
    border-color: #5a9be6;
    color: #fff;
}

.feedback-result {
    margin: 0 24px 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.feedback-result.show {
    display: block;
}

.feedback-result.success {
    background: #e7f7ed;
    color: #1f6e3e;
}

.feedback-result.error {
    background: #fdeced;
    color: #a23943;
}

.feedback-hidden {
    display: none !important;
}

@media (max-width: 767.98px) {
    .feedback-widget-toggle {
        right: 6px;
        width: 34px;
        height: 108px;
        top: 48%;
    }

    .feedback-widget-toggle span {
        font-size: 12px;
    }

    .feedback-widget-modal {
        width: calc(100% - 10px);
        max-height: calc(100vh - 10px);
        border-radius: 12px;
    }

    .feedback-widget-head {
        padding: 14px 14px 8px;
    }

    .feedback-widget-title {
        font-size: 20px;
    }

    .feedback-widget-close {
        font-size: 30px;
    }

    .feedback-widget-subtitle {
        padding: 0 14px 10px;
        font-size: 14px;
    }

    .feedback-widget-body {
        padding: 10px;
    }

    .feedback-widget-card {
        font-size: 15px;
        padding: 10px;
    }

    .feedback-rating-item strong {
        font-size: 18px;
    }

    .feedback-rating-item span {
        font-size: 12px;
    }

    .feedback-nps {
        grid-template-columns: repeat(10, minmax(0, 1fr));
    }

    .feedback-actions {
        padding: 12px;
    }

    .feedback-btn {
        min-width: 98px;
        font-size: 14px;
    }
}

html,
body {
    width: 100%;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: none;
}

.toast-msg {
    background: #fff;
    color: #333;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out forwards;
    border-left: 4px solid #1677ff;
    font-weight: 600;
    min-width: 300px;
    pointer-events: auto;
}

.toast-msg.success {
    border-left-color: #52c41a;
}

.toast-msg.error {
    border-left-color: #ff4d4f;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.header-inner-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
}

.header-left-main {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: start;
}

.header-center-main {
    justify-self: center;
}

.header-right-main {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: end;
}

.header-actions-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.search-bar form {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px !important;
    padding: 4px 16px !important;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 320px;
    box-sizing: border-box;
}

.search-bar form:focus-within {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 340px;
}

.search-bar input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 10px 0 !important;
    outline: none !important;
    width: 100%;
    height: auto !important;
    line-height: normal !important;
    appearance: none;
    caret-color: var(--accent-color);
}

.search-bar input:-webkit-autofill,
.search-bar input:-webkit-autofill:hover,
.search-bar input:-webkit-autofill:focus,
.search-bar input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0) inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
    background: transparent !important;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.search-bar button {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0 !important;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.search-bar button:hover {
    transform: scale(1.1);
    color: #fff;
}

.desktop-nav ul {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-nav a {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.2s ease;
    position: relative;
    padding: 8px 0;
    text-decoration: none;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 2px;
    transform: translateX(-50%);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
}

.header-btn-login {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-btn-post {
    background: var(--accent-color);
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 206, 69, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.header-btn-post:hover {
    background: #ffdb70;
    box-shadow: 0 6px 20px rgba(255, 206, 69, 0.35);
    transform: translateY(-2px);
    color: #000;
}

.header-btn-post svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    color: #fff;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.35);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 5px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-chip:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-2px);
}

.user-chip img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.user-chip .user-chip-name {
    max-width: 140px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-chip .caret {
    font-size: 10px;
    opacity: 0.9;
}

.mobile-search-container {
    display: none;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.mobile-search-container.active {
    display: block;
}

.mobile-search-form {
    position: relative;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #fff;
    color: #333;
    outline: none;
    height: 44px;
    font-size: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.mobile-search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    color: #333;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
}

.mobile-login-icon,
.mobile-search-icon,
.mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 5px;
    align-items: center;
}

.mobile-login-icon {
    display: none;
    margin-right: 10px;
}

.mobile-search-icon {
    display: none;
    margin-right: 5px;
}

@media (max-width: 767.98px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .header {
        height: auto;
        min-height: var(--header-height);
    }

    .header-inner-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 10px 14px;
    }

    .header-left-main,
    .header-right-main,
    .header-actions-main {
        min-width: 0;
    }

    .header-center-main,
    .desktop-nav,
    .search-bar,
    .header-user-actions,
    .header-btn-login,
    .header-btn-post {
        display: none !important;
    }

    .header-left-main {
        gap: 0;
    }

    .header-right-main {
        gap: 4px;
    }

    .header-actions-main {
        gap: 2px;
    }

    .logo {
        min-width: 0;
    }

    .logo-image {
        height: 34px;
        max-width: 100%;
    }

    .mobile-login-icon,
    .mobile-search-icon,
    .mobile-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .mobile-login-icon {
        margin-right: 0;
    }

    .mobile-search-icon {
        margin-right: 0;
    }

    .mobile-menu-toggle {
        padding-right: 0;
    }

    .mobile-search-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    padding: 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-content {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
}

.close-mobile-nav {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
}

.close-mobile-nav:hover {
    background: #eee;
    transform: rotate(90deg);
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #f8f8f8;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.mobile-menu-list li a:hover {
    padding-left: 5px;
    color: var(--primary-color);
}

.mobile-auth-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobile-auth-btn {
    width: 100%;
    justify-content: center;
    text-decoration: none;
}

.mobile-auth-btn-primary {
    margin-bottom: 10px;
}

.mobile-auth-btn-outline {
    border-color: #ddd;
    color: #333;
}

.verify-email-banner {
    width: 100%;
    background: #fff7e6;
    border-bottom: 1px solid #ffd591;
    color: #ad4e00;
}

.verify-email-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 600;
}

.verify-email-banner a {
    color: #ad4e00;
    text-decoration: underline;
    font-weight: 700;
    white-space: nowrap;
}

.mega-icon-social {
    color: #6366f1;
}

.mega-icon-friends {
    color: #0ea5e9;
}

.mega-icon-pets {
    color: #f59e0b;
}

.mega-icon-messages {
    color: #ec4899;
}

.mega-icon-business {
    color: #8b5cf6;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(860px, calc(100vw - 32px));
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(226, 232, 240, 0.95);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1200;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-header {
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.mega-menu-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
}

.mega-menu-body {
    display: flex;
    align-items: stretch;
    min-height: 420px;
    max-height: 520px;
}

.mega-column {
    padding: 8px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.left-col {
    flex: 1.6;
    background: #fff;
    padding: 16px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.right-col {
    flex: 1;
    background: #f7f8fa;
    padding: 16px;
}

.mega-section {
    margin-bottom: 20px;
}

.mega-section h3,
.right-col h3 {
    margin: 0 0 12px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mega-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 12px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
    color: #0f172a;
}

.mega-item:hover {
    background: #f8fafc;
    transform: translateX(2px);
}

.mega-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-icon-svg {
    width: 24px;
    height: 24px;
}

.mega-content h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.mega-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #475569;
}

.create-actions {
    display: grid;
    gap: 10px;
}

.create-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #0f172a;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    font-weight: 700;
}

.create-item:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.divider {
    height: 1px;
    background: #e5e7eb;
    margin: 6px 0;
}

@media (max-width: 991.98px) {
    .mega-menu {
        width: min(720px, calc(100vw - 20px));
        right: -12px;
    }

    .mega-menu-body {
        flex-direction: column;
        max-height: min(70vh, 640px);
    }

    .left-col,
    .right-col {
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .verify-email-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
