﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NEWS DETAIL PAGE  (.nd-*)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* Breadcrumb */
.nd-breadcrumb {
    background: var(--green-50, #f0faf4);
    padding: .75rem 0;
    padding-top: 1.5rem;
    font-size: .8rem;
    color: var(--gray-500, #6b7280);
}

.nd-breadcrumb a {
    color: var(--green-700);
    text-decoration: none;
    font-weight: 500;
}

.nd-breadcrumb a:hover {
    text-decoration: underline;
}

.nd-breadcrumb svg {
    vertical-align: middle;
    margin: 0 .3rem;
    opacity: .6;
}

.nd-breadcrumb span {
    font-weight: 600;
    color: var(--gray-700);
}

/* Layout */
.nd-layout {
    padding: 3rem 0 4rem;
}

.nd-row {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

/* Main article */
.nd-cats {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .75rem;
}

.nd-cat {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: var(--green-100, #dcfce7);
    color: var(--green-800, #166534);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nd-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--green-900, #14532d);
    margin: .5rem 0 1rem;
}

.nd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    font-size: .82rem;
    color: var(--gray-500, #6b7280);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.nd-meta-date,
.nd-meta-author {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.nd-meta-sep {
    opacity: .4;
}

.nd-hero-img {
    margin-bottom: 2rem;
    border-radius: .75rem;
    overflow: hidden;
    background: #f3f4f6;
}

.nd-hero-img img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Article body â€” WordPress content */
.nd-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-800, #1f2937);
}

.nd-body h1,
.nd-body h2,
.nd-body h3,
.nd-body h4 {
    font-weight: 700;
    color: var(--green-900);
    margin: 1.5rem 0 .75rem;
}

.nd-body h2 {
    font-size: 1.4rem;
}

.nd-body h3 {
    font-size: 1.15rem;
}

.nd-body p {
    margin: 0 0 1.25rem;
}

.nd-body img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
    margin: 1rem 0;
    cursor: zoom-in;
    display: block;
}

/* WordPress figure / image blocks */
.nd-body figure {
    margin: 1.5rem 0;
}

.nd-body figure img {
    width: 100%;
    margin: 0;
    border-radius: .5rem;
}

.nd-body figcaption {
    font-size: .82rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: .45rem;
    font-style: italic;
}

.nd-body .wp-block-image {
    margin: 1.5rem 0;
}

.nd-body .wp-block-image img {
    border-radius: .5rem;
    width: 100%;
    height: auto;
    margin: 0;
}

/* Gutenberg gallery block */
.nd-body .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .6rem;
    margin: 1.5rem 0;
}

.nd-body .wp-block-gallery figure {
    margin: 0;
    border-radius: .4rem;
    overflow: hidden;
}

.nd-body .wp-block-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    transition: transform .3s ease;
}

.nd-body .wp-block-gallery img:hover {
    transform: scale(1.04);
}

/* Classic editor alignments */
.nd-body .aligncenter {
    display: block;
    margin: 1.25rem auto;
}

.nd-body .alignleft {
    float: left;
    margin: 0 1.25rem 1rem 0;
    max-width: 45%;
}

.nd-body .alignright {
    float: right;
    margin: 0 0 1rem 1.25rem;
    max-width: 45%;
}

.nd-body::after {
    content: '';
    display: table;
    clear: both;
}

.nd-body .wp-caption {
    max-width: 100%;
}

.nd-body .wp-caption-text {
    font-size: .82rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: .3rem;
    font-style: italic;
}

/* â”€â”€ Lightbox â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#nd-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#nd-lightbox.nd-lb-active {
    display: flex;
}

.nd-lb-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
}

.nd-lb-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.nd-lb-img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: .5rem;
    display: block;
    margin: 0 auto;
    cursor: default !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}

.nd-lb-cap {
    color: rgba(255, 255, 255, .7);
    font-size: .85rem;
    margin-top: .6rem;
    font-style: italic;
}

.nd-lb-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    padding: 0;
}

.nd-lb-prev,
.nd-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    padding: .25rem .75rem;
    border-radius: .4rem;
    cursor: pointer;
    z-index: 2;
    transition: background .2s;
}

.nd-lb-prev:hover,
.nd-lb-next:hover {
    background: rgba(255, 255, 255, .25);
}

.nd-lb-prev {
    left: 1rem;
}

.nd-lb-next {
    right: 1rem;
}

.nd-body a {
    color: var(--green-700);
    text-decoration: underline;
}

.nd-body ul,
.nd-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.nd-body li {
    margin-bottom: .4rem;
}

.nd-body blockquote {
    border-left: 4px solid var(--green-400, #4ade80);
    padding: .75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--green-50, #f0faf4);
    border-radius: 0 .5rem .5rem 0;
    font-style: italic;
    color: var(--green-900);
}

/* Tags */
.nd-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.nd-tags-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-right: .25rem;
}

.nd-tag {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 999px;
    border: 1px solid var(--green-300, #86efac);
    background: transparent;
    color: var(--green-700);
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.nd-tag:hover {
    background: var(--green-700);
    color: #fff;
}

/* Back link */
.nd-back-wrap {
    margin-top: 2rem;
}

.nd-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--green-700);
    text-decoration: none;
}

.nd-back:hover {
    text-decoration: underline;
}

/* Sidebar */
.nd-sidebar {
    position: sticky;
    top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nd-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
}

.nd-widget--featured {
    border-color: var(--green-300, #86efac);
    background: var(--green-50, #f0faf4);
}

.nd-widget--about {
    background: var(--green-700);
    color: #fff;
    border-color: var(--green-700);
}

.nd-widget-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-700);
    margin: 0 0 .85rem;
}

.nd-widget--about .nd-widget-title {
    color: rgba(255, 255, 255, .7);
}

/* Featured university in sidebar */
.nd-featured-uni {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: inherit;
}

.nd-featured-logo {
    max-height: 70px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(.1);
    transition: filter .25s, transform .25s;
}

.nd-featured-uni:hover .nd-featured-logo {
    filter: none;
    transform: translateY(-2px);
}

.nd-featured-placeholder {
    font-weight: 700;
    color: var(--green-700);
    font-size: 1rem;
    text-align: center;
}

.nd-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--green-700);
    margin-top: .25rem;
}

/* Recent posts list */
.nd-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.nd-recent-item {}

.nd-recent-link {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.nd-recent-thumb {
    width: 64px;
    height: 50px;
    object-fit: cover;
    border-radius: .4rem;
    flex-shrink: 0;
    background: #f3f4f6;
}

.nd-recent-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300, #d1d5db);
}

.nd-recent-info {
    flex: 1;
    min-width: 0;
}

.nd-recent-title {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--green-900);
    margin: 0 0 .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nd-recent-link:hover .nd-recent-title {
    color: var(--green-700);
}

.nd-recent-date {
    font-size: .72rem;
    color: var(--gray-400, #9ca3af);
}

/* About widget */
.nd-widget-text {
    font-size: .82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 .75rem;
}

.nd-widget-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    opacity: .9;
}

.nd-widget-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive detail */
@media (max-width: 900px) {
    .nd-row {
        grid-template-columns: 1fr;
    }

    .nd-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .nd-title {
        font-size: 1.4rem;
    }

    .nd-layout {
        padding: 2rem 0 3rem;
    }
}

/* â”€â”€ End News Detail Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */