﻿.category-nav {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 1rem;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
}

    .category-nav .category-nav-button {
        font-size: 0.9rem;
        color: #000;
        cursor: pointer;
        position: relative;
        background: none;
        border-width: 2px;
        border-style: solid;
        border-color: transparent;
        border-image: initial;
        padding: 0.5rem 1rem;
        transition: 0.3s;
        border-radius: 0.5rem;
        overflow: hidden;
    }

        .category-nav .category-nav-button.active::after {
            width: 100%;
        }

        .category-nav .category-nav-button:hover {
            color: #000;
        }

        .category-nav .category-nav-button.active {
            background-color: #000;
            color: #fff;
        }

        .category-nav .category-nav-button::after {
            content: "";
            position: absolute;
            bottom: 0px;
            left: 0px;
            width: 0px;
            height: 2px;
            background-color: #000;
            transition: width 0.3s;
        }

        .category-nav .category-nav-button:hover::after {
            width: 100%;
        }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Banner pattern */
.banner-pattern {
    background-color: #0f172a;
    background-image: url('https://i.imgur.com/7Q9QXqG.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 1100px;
    height: 100px;
}


/* Sidebar */

/* Article header */
.article-category {
    display: inline-block;
    background-color: #cbd5e1;
    color: #475569;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1.article-title {
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: #111827;
}

.article-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .article-meta svg {
        width: 14px;
        height: 14px;
        fill: #6b7280;
    }
/* Article image placeholder */
.article-image-placeholder {
    width: 100%;
    height: 180px;
    background-color: #d1d5db;
    border-radius: 8px;
    margin-bottom: 20px;
}
/* Table of contents */
.toc {
    background-color: #e2e8f0;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #334155;
}

    .toc strong {
        display: block;
        margin-bottom: 6px;
        font-weight: 700;
    }

    .toc a {
        display: block;
        color: var(--willimedia-green);
        margin-bottom: 4px;
        font-weight: 600;
    }
/* Article content */
.article-content p {
    margin-bottom: 16px;
    font-size: 18px;
    color: #374151;
}

.article-content strong {
    font-weight: 700;
}
/* Article subheading */
.article-content h2 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #111827;
}
/* Article image */
.article-content img {
    border-radius: 8px;
    margin: 20px 0;
    max-width: 100%;
    height: auto;
    display: block;
}
/* Social share and footer links */
.article-footer-links {
    font-size: 12px;
    color: #6b7280;
    margin-top: 30px;
    line-height: 1.3;
}

    .article-footer-links a {
        color: #333;
        font-size: 14px;
        text-decoration: none;
        margin-right: 8px;
    }

        .article-footer-links a:hover {
            text-decoration: underline;
        }
/* Related posts section */

.related-posts-section h2 {
    font-weight: 700;
    font-size: 25px;
    margin-bottom: 20px;
    color: #111827;
    text-align: center;
}

section.related-posts-section {
    margin: 50px 0;
}

.related-posts {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    gap: 20px;
    justify-content: center;
}

.related-post-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 6px rgb(0 0 0 / 0.1);
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

    .related-post-card:hover {
        box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
    }

    .related-post-card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }

.related-post-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-post-category {
    font-size: 12px;
    color: #7e7e7e;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.related-post-title {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 10px 0;
    color: var(--willimedia-green);
}

.related-post-meta {
    font-size: 15px;
    font-weight: 700;
    color: var(--willimedia-green);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .related-post-meta svg {
        width: 14px;
        height: 14px;
        fill: #6b7280;
    }

.banner_qc {
    margin: 30px 0;
}
/* Responsive */
@media (max-width: 900px) {
    main {
        flex-direction: column;
        padding: 0 10px;
    }

    aside.sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        margin-top: 20px;
    }

    .sidebar-pattern {
        flex: 0 0 120px;
        height: 120px;
    }

    .related-posts {
        grid-template-columns: repeat(1, 1fr) !important;
        flex-direction: column;
        align-items: center;
    }

    .related-post-card img {
        height: unset;
    }

    .related-post-card {
        width: 100%;
        max-width: 400px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 10px;
    }
}

article #tableOfContents .toc a:hover,
article #tableOfContents .toc a:active {
    cursor: pointer;
}

/* Breadcrumb */
nav.breadcrumb {
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 16px;
}

    nav.breadcrumb li {
        color: #6b7280 !important;
    }

    nav.breadcrumb ol {
        list-style: none;
        padding: 0;
        margin: 0;
        display: inline-flex;
        gap: 8px;
        align-items: center;
    }

        nav.breadcrumb ol li {
            display: inline;
        }

    nav.breadcrumb li:last-child a {
        color: var(--willimedia-green) !important;
    }

    nav.breadcrumb ol li a {
        font-weight: 600;
    }

.ads_d {
    width: 300px;
    height: 600px;
}



 .slideshow-controls {
	 display: flex;
	 justify-content: center;
	 align-items: center;
	 gap: 1rem;
	 margin-bottom: 2rem;
}
 .slideshow-controls .control-btn {
	 background: rgba(255, 255, 255, 0.2);
	 border: 2px solid rgba(255, 255, 255, 0.3);
	 color: #fff;
	 padding: 0.75rem 1.5rem;
	 border-radius: 25px;
	 cursor: pointer;
	 font-size: 1rem;
	 font-weight: 500;
	 transition: all 0.3s ease;
	 backdrop-filter: blur(10px);
}
 .slideshow-controls .control-btn:hover {
	 background: rgba(255, 255, 255, 0.3);
	 border-color: rgba(255, 255, 255, 0.5);
	 transform: translateY(-2px);
}
 .slideshow-controls .slideshow-status {
	 color: rgba(255, 255, 255, 0.8);
	 font-weight: 500;
}
 .image-gallery {
	 display: grid;
	 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	 gap: 1.5rem;
	 margin-top: 2rem;
}
 .image-gallery .thumbnail {
	 width: 100%;
	 height: 250px;
	 object-fit: cover;
	 border-radius: 12px;
	 cursor: pointer;
	 transition: all 0.3s ease;
	 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	 border: 3px solid transparent;
}
 .image-gallery .thumbnail:hover {
	 transform: translateY(-5px) scale(1.02);
	 box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
	 border-color: rgba(255, 255, 255, 0.3);
	 filter: brightness(1.1);
}
 .modal {
	 display: none;
	 position: fixed;
	 z-index: 1000;
	 left: 0;
	 top: 0;
	 width: 100%;
	 height: 100%;
	 background-color: rgba(0, 0, 0, 0.95);
	 opacity: 0;
	 transition: opacity 0.3s ease;
}
 .modal.modal-open {
	 opacity: 1;
}
 .modal .modal-content {
	 position: relative;
	 width: 100%;
	 height: 100%;
	 display: flex;
	 flex-direction: column;
	 animation: modalSlideIn 0.4s ease-out;
}
 .modal .modal-header {
	 position: absolute;
	 top: 0;
	 right: 0;
	 z-index: 1002;
	 padding: 1rem;
}
 .modal .modal-header .close {
	 color: #fff;
	 font-size: 40px;
	 font-weight: bold;
	 cursor: pointer;
	 transition: all 0.3s ease;
	 width: 50px;
	 height: 50px;
	 display: flex;
	 align-items: center;
	 justify-content: center;
	 border-radius: 50%;
	 background-color: rgba(0, 0, 0, 0.7);
	 border: 2px solid rgba(255, 255, 255, 0.3);
}
 .modal .modal-header .close:hover, .modal .modal-header .close:focus {
	 color: #ff6b6b;
	 background-color: rgba(0, 0, 0, 0.9);
	 border-color: #ff6b6b;
	 transform: scale(1.1);
}
 .modal .image-container {
	 flex: 1;
	 display: flex;
	 align-items: center;
	 justify-content: center;
	 position: relative;
	 overflow: hidden;
	 padding: 2rem;
}
 .modal .image-container #modalImage {
	 max-width: 100%;
	 max-height: 100%;
	 object-fit: contain;
	 border-radius: 8px;
	 box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
	 transition: transform 0.3s ease;
	 user-select: none;
	 cursor: zoom-in;
}
 .modal .modal-footer {
	 padding: 1rem 2rem;
	 text-align: center;
	 background: rgba(0, 0, 0, 0.3);
	 backdrop-filter: blur(10px);
}
 .modal .modal-footer .modal-caption {
	 color: #fff;
	 font-size: 1.2rem;
	 font-weight: 500;
	 text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
	 margin-bottom: 0.5rem;
}
 .modal .modal-footer .image-counter {
	 color: rgba(255, 255, 255, 0.8);
	 font-size: 1rem;
}
 .modal .slick-arrows {
	 position: absolute;
	 top: 0;
	 left: 0;
	 right: 0;
	 bottom: 0;
	 pointer-events: none;
	 z-index: 1001;
}
 .modal .slick-arrows .slick-prev, .modal .slick-arrows .slick-next {
	 position: absolute;
	 top: 50%;
	 transform: translateY(-50%);
	 background: rgba(0, 0, 0, 0.7);
	 color: #fff;
	 border: 2px solid rgba(255, 255, 255, 0.3);
	 font-size: 2.5rem;
	 width: 60px;
	 height: 60px;
	 border-radius: 50%;
	 cursor: pointer;
	 transition: all 0.3s ease;
	 display: flex;
	 align-items: center;
	 justify-content: center;
	 pointer-events: auto;
	 font-weight: bold;
	 line-height: 1;
}
 .modal .slick-arrows .slick-prev:hover, .modal .slick-arrows .slick-next:hover {
	 background: rgba(0, 0, 0, 0.9);
	 border-color: rgba(255, 255, 255, 0.6);
	 transform: translateY(-50%) scale(1.1);
	 color: #4caf50;
}
 .modal .slick-arrows .slick-prev {
	 left: 2rem;
}
 .modal .slick-arrows .slick-next {
	 right: 2rem;
}
 @keyframes modalSlideIn {
	 from {
		 transform: scale(0.8);
		 opacity: 0;
	}
	 to {
		 transform: scale(1);
		 opacity: 1;
	}
}
 @media (max-width: 768px) {
	 .container {
		 padding: 1rem;
	}
	 h1 {
		 font-size: 2rem;
	}
	 .slideshow-controls {
		 flex-direction: column;
		 gap: 0.5rem;
	}
	 .slideshow-controls .control-btn {
		 padding: 0.5rem 1rem;
		 font-size: 0.9rem;
	}
	 .image-gallery {
		 grid-template-columns: 1fr;
		 gap: 1rem;
	}
	 .image-gallery .thumbnail {
		 height: 200px;
	}
	 .image-container {
		 padding: 1rem;
	}
	 .close {
		 font-size: 30px;
		 width: 40px;
		 height: 40px;
	}
	 .slick-prev, .slick-next {
		 font-size: 2rem;
		 width: 50px;
		 height: 50px;
	}
	 .slick-prev {
		 left: 1rem;
	}
	 .slick-next {
		 right: 1rem;
	}
	 .modal-footer {
		 padding: 0.75rem 1rem;
	}
	 .modal-footer .modal-caption {
		 font-size: 1rem;
	}
}
 @media (max-width: 480px) {
	 .thumbnail {
		 height: 180px;
	}
	 .slick-prev, .slick-next {
		 width: 45px;
		 height: 45px;
		 font-size: 1.8rem;
	}
	 .close {
		 width: 35px;
		 height: 35px;
		 font-size: 25px;
	}
}

.content-area {
    width: 760px;
}

.toc a.active {
    color: #2563eb; /* text-blue-600 */
    font-weight: 600;
}

.toc-sublist {
    margin-left: 1rem;
    border-left: 2px solid #ccc;
    padding-left: 0.75rem;
}

/* To Top Button - Mobile Optimized */
#to-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--willimedia-green) 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 118, 224, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

    #to-top-button.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #to-top-button:hover {
        transform: translateY(-4px) scale(1.1);
        box-shadow: 0 8px 24px rgba(0, 118, 224, 0.4);
        background: linear-gradient(135deg, #0056b3 0%, var(--willimedia-green) 100%);
    }

    #to-top-button:active {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 118, 224, 0.5);
    }

    /* Pulse animation for attention */
    #to-top-button::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(135deg, var(--willimedia-green) 0%, #0056b3 100%);
        border-radius: 50%;
        z-index: -1;
        animation: pulse-ring 2s infinite;
        opacity: 0;
    }