/**
 * CPT Styles - Schools, Departments, Programmes, News, Events, Gallery
 * Modern, beautiful design consistent with homepage
 * Version: 1.0.0
 */

/* =========================================
   CSS CUSTOM PROPERTIES (inherited from homepage)
   ========================================= */
:root {
    --cpt-primary: var(--theme-palette-color-1, #1e40af);
    --cpt-primary-dark: var(--theme-palette-color-2, #1e3a8a);
    --cpt-accent: var(--theme-palette-color-3, #3b82f6);
    --cpt-text: var(--theme-text-color, #1f2937);
    --cpt-text-light: #6b7280;
    --cpt-bg: #ffffff;
    --cpt-bg-alt: #f8fafc;
    --cpt-bg-dark: #0f172a;
    --cpt-border: #e5e7eb;
    --cpt-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --cpt-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --cpt-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --cpt-radius: 12px;
    --cpt-radius-lg: 16px;
    --cpt-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   ARCHIVE HERO SECTION
   ========================================= */
.cpt-archive-hero {
    position: relative;
    background: linear-gradient(135deg, var(--cpt-primary) 0%, var(--cpt-primary-dark) 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
    overflow: hidden;
}

.cpt-archive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cpt-archive-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.cpt-archive-hero__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.cpt-archive-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0 0 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cpt-archive-hero__description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.7;
}

.cpt-archive-hero__breadcrumb {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.cpt-archive-hero__breadcrumb a {
    color: white;
    text-decoration: none;
    transition: var(--cpt-transition);
}

.cpt-archive-hero__breadcrumb a:hover {
    opacity: 0.8;
}

.cpt-archive-hero__breadcrumb span {
    margin: 0 0.5rem;
    opacity: 0.6;
}

/* =========================================
   SINGLE PAGE HERO SECTION
   ========================================= */
.cpt-single-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    padding: 3rem 0;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--cpt-primary) 0%, var(--cpt-primary-dark) 100%);
    overflow: hidden;
}

.cpt-single-hero--has-image {
    min-height: 400px;
}

.cpt-single-hero__bg {
    position: absolute;
    inset: 0;
}

.cpt-single-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpt-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(32, 164, 49, 0.95) 0%,
        rgba(32, 164, 49, 0.7) 40%,
        rgba(32, 164, 49, 0.45) 100%
    );
}

.cpt-single-hero__content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

.cpt-single-hero__breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.cpt-single-hero__breadcrumb a {
    color: white;
    text-decoration: none;
    transition: var(--cpt-transition);
}

.cpt-single-hero__breadcrumb a:hover {
    opacity: 0.7;
}

.cpt-single-hero__breadcrumb span {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.cpt-single-hero__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.cpt-single-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    color: white;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.cpt-single-hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin: 0;
}

.cpt-single-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.cpt-single-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.cpt-single-hero__meta-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* =========================================
   SINGLE PAGE LAYOUT WITH SIDEBAR
   ========================================= */
.cpt-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.cpt-single-main {
    min-width: 0;
}

.cpt-single-sidebar {
    position: sticky;
    top: 2rem;
}

/* Content Sections */
.cpt-content-section {
    margin-bottom: 3rem;
}

.cpt-content-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cpt-text);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--cpt-primary);
    display: inline-block;
}

.cpt-content-section__content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cpt-text-light);
}

.cpt-content-section__content p {
    margin-bottom: 1rem;
}

.cpt-content-section__content ul,
.cpt-content-section__content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.cpt-content-section__content li {
    margin-bottom: 0.5rem;
}

/* =========================================
   SIDEBAR WIDGETS
   ========================================= */
.cpt-sidebar-widget {
    background: white;
    border-radius: var(--cpt-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--cpt-shadow);
}

.cpt-sidebar-widget__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cpt-text);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cpt-primary);
}

.cpt-sidebar-widget--primary {
    background: linear-gradient(135deg, var(--cpt-primary) 0%, var(--cpt-primary-dark) 100%);
    color: white;
}

.cpt-sidebar-widget--primary .cpt-sidebar-widget__title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Sidebar Navigation List */
.cpt-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cpt-sidebar-nav__item {
    border-bottom: 1px solid var(--cpt-border);
}

.cpt-sidebar-nav__item:last-child {
    border-bottom: none;
}

.cpt-sidebar-nav__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0;
    color: var(--cpt-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--cpt-transition);
}

.cpt-sidebar-nav__link:hover {
    color: var(--cpt-primary);
    padding-left: 0.5rem;
}

.cpt-sidebar-nav__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cpt-sidebar-nav__badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--cpt-bg-alt);
    color: var(--cpt-text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
}

/* Sidebar Quick Info */
.cpt-quick-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cpt-quick-info__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cpt-border);
}

.cpt-quick-info__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cpt-quick-info__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cpt-primary) 0%, var(--cpt-accent) 100%);
    border-radius: 8px;
    color: white;
    flex-shrink: 0;
}

.cpt-quick-info__icon svg {
    width: 18px;
    height: 18px;
}

.cpt-quick-info__content {
    flex: 1;
    min-width: 0;
}

.cpt-quick-info__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cpt-text-light);
    margin-bottom: 0.25rem;
}

.cpt-quick-info__value {
    font-weight: 600;
    color: var(--cpt-text);
}

.cpt-quick-info__value a {
    color: var(--cpt-primary);
    text-decoration: none;
    transition: var(--cpt-transition);
}

.cpt-quick-info__value a:hover {
    color: var(--cpt-primary-dark);
}

/* =========================================
   LEADERSHIP/PROFILE CARD
   ========================================= */
.cpt-profile-card {
    display: flex;
    gap: 1.5rem;
    background: white;
    border-radius: var(--cpt-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--cpt-shadow);
    transition: var(--cpt-transition);
}

.cpt-profile-card:hover {
    box-shadow: var(--cpt-shadow-lg);
    transform: translateY(-2px);
}

.cpt-profile-card__image {
    flex-shrink: 0;
    width: 120px;
    /* height: 150px; */
    border-radius: var(--cpt-radius);
    overflow: hidden;
}

.cpt-profile-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpt-profile-card__image--placeholder {
    background: linear-gradient(135deg, var(--cpt-bg-alt) 0%, var(--cpt-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpt-profile-card__image--placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--cpt-text-light);
    opacity: 0.4;
}

.cpt-profile-card__content {
    flex: 1;
    min-width: 0;
}

.cpt-profile-card__role {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cpt-primary);
    margin-bottom: 0.5rem;
}

.cpt-profile-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cpt-text);
    margin: 0 0 0.5rem;
}

.cpt-profile-card__name a {
    color: inherit;
    text-decoration: none;
    transition: var(--cpt-transition);
}

.cpt-profile-card__name a:hover {
    color: var(--cpt-primary);
}

.cpt-profile-card__qualifications {
    font-size: 0.9rem;
    color: var(--cpt-text-light);
    margin-bottom: 1rem;
}

.cpt-profile-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cpt-primary);
    text-decoration: none;
    transition: var(--cpt-transition);
}

.cpt-profile-card__link:hover {
    gap: 0.75rem;
}

.cpt-profile-card__link svg {
    width: 16px;
    height: 16px;
}

/* =========================================
   ARCHIVE GRID
   ========================================= */
.cpt-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

/* =========================================
   CPT CARDS
   ========================================= */
.cpt-card {
    background: white;
    border-radius: var(--cpt-radius-lg);
    overflow: hidden;
    box-shadow: var(--cpt-shadow);
    transition: var(--cpt-transition);
    display: flex;
    flex-direction: column;
}

.cpt-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cpt-shadow-xl);
}

.cpt-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.cpt-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--cpt-transition);
}

.cpt-card:hover .cpt-card__image img {
    transform: scale(1.05);
}

.cpt-card__image--placeholder {
    background: linear-gradient(135deg, var(--cpt-bg-alt) 0%, var(--cpt-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpt-card__image--placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--cpt-text-light);
    opacity: 0.4;
}

.cpt-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--cpt-primary);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
}

.cpt-card__date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    text-align: center;
    box-shadow: var(--cpt-shadow);
}

.cpt-card__date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cpt-primary);
    line-height: 1;
}

.cpt-card__date-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--cpt-text-light);
    margin-top: 0.25rem;
}

.cpt-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cpt-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--cpt-text-light);
}

.cpt-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cpt-card__meta-item svg {
    width: 14px;
    height: 14px;
}

.cpt-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.cpt-card__title a {
    color: var(--cpt-text);
    text-decoration: none;
    transition: var(--cpt-transition);
}

.cpt-card__title a:hover {
    color: var(--cpt-primary);
}

.cpt-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--cpt-text-light);
    margin: 0 0 1.25rem;
    flex: 1;
}

.cpt-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cpt-primary);
    text-decoration: none;
    transition: var(--cpt-transition);
    margin-top: auto;
}

.cpt-card__link:hover {
    gap: 0.75rem;
}

.cpt-card__link svg {
    width: 16px;
    height: 16px;
}

/* Parent Link */
.cpt-card__parent {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.cpt-card__parent a {
    color: var(--cpt-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--cpt-transition);
}

.cpt-card__parent a:hover {
    color: var(--cpt-primary-dark);
}

/* =========================================
   PROGRAMME CARDS (Special Layout)
   ========================================= */
.cpt-programme-card {
    background: white;
    border-radius: var(--cpt-radius-lg);
    overflow: hidden;
    box-shadow: var(--cpt-shadow);
    transition: var(--cpt-transition);
}

.cpt-programme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cpt-shadow-lg);
}

.cpt-programme-card__header {
    background: linear-gradient(135deg, var(--cpt-primary) 0%, var(--cpt-primary-dark) 100%);
    padding: 1.25rem 1.5rem;
    color: white;
}

.cpt-programme-card__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.cpt-programme-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.cpt-programme-card__title a {
    color: white;
    text-decoration: none;
}

.cpt-programme-card__body {
    padding: 1.5rem;
}

.cpt-programme-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cpt-programme-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.cpt-programme-card__meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--cpt-primary);
}

.cpt-programme-card__meta-label {
    color: var(--cpt-text-light);
}

.cpt-programme-card__meta-value {
    font-weight: 600;
    color: var(--cpt-text);
}

.cpt-programme-card__departments {
    font-size: 0.85rem;
    color: var(--cpt-text-light);
    margin-bottom: 1rem;
}

.cpt-programme-card__departments strong {
    color: var(--cpt-text);
}

.cpt-programme-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cpt-primary);
    text-decoration: none;
    transition: var(--cpt-transition);
}

.cpt-programme-card__link:hover {
    gap: 0.75rem;
}

/* =========================================
   PAGINATION
   ========================================= */
.cpt-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cpt-border);
}

.cpt-pagination a,
.cpt-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--cpt-radius);
    transition: var(--cpt-transition);
}

.cpt-pagination a {
    background: white;
    color: var(--cpt-text);
    box-shadow: var(--cpt-shadow);
}

.cpt-pagination a:hover {
    background: var(--cpt-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--cpt-shadow-lg);
}

.cpt-pagination span.current {
    background: var(--cpt-primary);
    color: white;
    box-shadow: var(--cpt-shadow);
}

.cpt-pagination span.dots {
    background: transparent;
    box-shadow: none;
    color: var(--cpt-text-light);
}

.cpt-pagination .prev,
.cpt-pagination .next {
    font-weight: 600;
}

.cpt-pagination .prev svg,
.cpt-pagination .next svg {
    width: 18px;
    height: 18px;
}

/* =========================================
   ITEMS GRID (Programmes in Sidebar/Dept Page)
   ========================================= */
.cpt-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

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

/* Mini Cards */
.cpt-mini-card {
    background: white;
    border-radius: var(--cpt-radius);
    padding: 1.25rem;
    box-shadow: var(--cpt-shadow);
    transition: var(--cpt-transition);
}

.cpt-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cpt-shadow-lg);
}

.cpt-mini-card__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(30, 64, 175, 0.1);
    color: var(--cpt-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.cpt-mini-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.cpt-mini-card__title a {
    color: var(--cpt-text);
    text-decoration: none;
    transition: var(--cpt-transition);
}

.cpt-mini-card__title a:hover {
    color: var(--cpt-primary);
}

.cpt-mini-card__meta {
    font-size: 0.8rem;
    color: var(--cpt-text-light);
}

/* =========================================
   EMPTY STATE
   ========================================= */
.cpt-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--cpt-bg-alt);
    border-radius: var(--cpt-radius-lg);
}

.cpt-empty-state__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--cpt-shadow);
}

.cpt-empty-state__icon svg {
    width: 36px;
    height: 36px;
    color: var(--cpt-text-light);
    opacity: 0.5;
}

.cpt-empty-state__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cpt-text);
    margin: 0 0 0.5rem;
}

.cpt-empty-state__text {
    font-size: 1rem;
    color: var(--cpt-text-light);
    margin: 0;
}

/* =========================================
   COURSE TABLES
   ========================================= */
.cpt-course-level {
    margin-bottom: 2.5rem;
}

.cpt-course-level__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cpt-text);
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cpt-course-level__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--cpt-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 8px;
}

.cpt-semester {
    margin-bottom: 1.5rem;
}

.cpt-semester__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cpt-text-light);
    margin: 0 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--cpt-accent);
}

.cpt-courses-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--cpt-radius);
    overflow: hidden;
    box-shadow: var(--cpt-shadow);
}

.cpt-courses-table th,
.cpt-courses-table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.cpt-courses-table th {
    background: var(--cpt-bg-alt);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cpt-text-light);
}

.cpt-courses-table td {
    border-bottom: 1px solid var(--cpt-border);
    font-size: 0.95rem;
}

.cpt-courses-table tr:last-child td {
    border-bottom: none;
}

.cpt-courses-table__code {
    font-weight: 600;
    color: var(--cpt-primary);
    font-family: monospace;
}

.cpt-courses-table__credits {
    text-align: center;
    font-weight: 600;
}

/* =========================================
   BUTTONS
   ========================================= */
.cpt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--cpt-radius);
    transition: var(--cpt-transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.cpt-btn svg {
    width: 18px;
    height: 18px;
    transition: var(--cpt-transition);
}

.cpt-btn:hover svg {
    transform: translateX(4px);
}

.cpt-btn--primary {
    background: var(--cpt-primary);
    color: white;
}

.cpt-btn--primary:hover {
    background: var(--cpt-primary-dark);
    box-shadow: var(--cpt-shadow-lg);
}

.cpt-btn--outline {
    background: transparent;
    color: var(--cpt-primary);
    border-color: var(--cpt-primary);
}

.cpt-btn--outline:hover {
    background: var(--cpt-primary);
    color: white;
}

.cpt-btn--white {
    background: white;
    color: var(--cpt-primary);
}

.cpt-btn--white:hover {
    background: var(--cpt-bg-alt);
    box-shadow: var(--cpt-shadow-lg);
}

/* =========================================
   VISION & MISSION CARDS
   ========================================= */
.cpt-vision-mission {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.cpt-vm-card {
    background: white;
    border-radius: var(--cpt-radius-lg);
    padding: 2rem;
    box-shadow: var(--cpt-shadow);
    position: relative;
    overflow: hidden;
}

.cpt-vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--cpt-primary) 0%, var(--cpt-accent) 100%);
}

.cpt-vm-card__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cpt-primary) 0%, var(--cpt-accent) 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 1.25rem;
}

.cpt-vm-card__icon svg {
    width: 24px;
    height: 24px;
}

.cpt-vm-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cpt-text);
    margin: 0 0 1rem;
}

.cpt-vm-card__content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cpt-text-light);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .cpt-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cpt-single-layout {
        grid-template-columns: 1fr 280px;
        gap: 2rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .cpt-archive-hero {
        padding: 3rem 0;
    }

    .cpt-single-hero {
        min-height: 300px;
    }

    .cpt-single-layout {
        grid-template-columns: 1fr;
    }

    .cpt-single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .cpt-vision-mission {
        grid-template-columns: 1fr;
    }

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

    .cpt-items-grid--3cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .cpt-archive-hero {
        padding: 2.5rem 0;
    }

    .cpt-archive-hero__title {
        font-size: 1.75rem;
    }

    .cpt-archive-grid {
        grid-template-columns: 1fr;
    }

    .cpt-single-hero {
        min-height: 250px;
        padding: 2rem 0;
    }

    .cpt-single-hero__meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cpt-single-sidebar {
        grid-template-columns: 1fr;
    }

    .cpt-profile-card {
        flex-direction: column;
        text-align: center;
    }

    .cpt-profile-card__image {
        width: 100px;
        height: 125px;
        margin: 0 auto;
    }

    .cpt-items-grid {
        grid-template-columns: 1fr;
    }

    .cpt-courses-table {
        font-size: 0.85rem;
    }

    .cpt-courses-table th,
    .cpt-courses-table td {
        padding: 0.75rem;
    }

    .cpt-pagination {
        flex-wrap: wrap;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .cpt-archive-hero {
        padding: 2rem 0;
    }

    .cpt-archive-hero__title {
        font-size: 1.5rem;
    }

    .cpt-single-hero__title {
        font-size: 1.5rem;
    }

    .cpt-content-section__title {
        font-size: 1.25rem;
    }

    .cpt-card__content {
        padding: 1.25rem;
    }

    .cpt-programme-card__meta {
        grid-template-columns: 1fr;
    }

    .cpt-vm-card {
        padding: 1.5rem;
    }

    .cpt-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* =========================================
   GALLERY ARCHIVE GRID
   ========================================= */
.cpt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cpt-gallery-card {
    position: relative;
    border-radius: var(--cpt-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--cpt-shadow);
}

.cpt-gallery-card__link {
    display: block;
    width: 100%;
    height: 100%;
}

.cpt-gallery-card__image {
    width: 100%;
    height: 100%;
}

.cpt-gallery-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--cpt-transition);
}

.cpt-gallery-card:hover .cpt-gallery-card__image img {
    transform: scale(1.08);
}

.cpt-gallery-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cpt-bg-alt) 0%, var(--cpt-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpt-gallery-card__placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--cpt-text-light);
    opacity: 0.4;
}

.cpt-gallery-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(15, 23, 42, 0.4) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--cpt-transition);
}

.cpt-gallery-card:hover .cpt-gallery-card__overlay {
    opacity: 1;
}

.cpt-gallery-card__content {
    color: white;
    transform: translateY(10px);
    transition: var(--cpt-transition);
}

.cpt-gallery-card:hover .cpt-gallery-card__content {
    transform: translateY(0);
}

.cpt-gallery-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.cpt-gallery-card__count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.cpt-gallery-card__count svg {
    width: 16px;
    height: 16px;
}

/* =========================================
   LEADERSHIP ARCHIVE STYLES
   ========================================= */
.cpt-leadership-section {
    margin-bottom: 3rem;
}

.cpt-leadership-section__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cpt-text);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--cpt-primary);
}

.cpt-leadership-section__title svg {
    width: 28px;
    height: 28px;
    color: var(--cpt-primary);
}

.cpt-leadership-section__count {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--cpt-bg-alt);
    color: var(--cpt-text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.cpt-leadership-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cpt-leader-card {
    background: white;
    border-radius: var(--cpt-radius-lg);
    overflow: hidden;
    box-shadow: var(--cpt-shadow);
    transition: var(--cpt-transition);
    text-align: center;
}

.cpt-leader-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cpt-shadow-xl);
}

.cpt-leader-card__image {
    height: 300px;
    overflow: hidden;
}

.cpt-leader-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--cpt-transition);
}

.cpt-leader-card:hover .cpt-leader-card__image img {
    transform: scale(1.05);
}

.cpt-leader-card__image--placeholder {
    background: linear-gradient(135deg, var(--cpt-bg-alt) 0%, var(--cpt-border) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpt-leader-card__image--placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--cpt-text-light);
    opacity: 0.4;
}

.cpt-leader-card__content {
    padding: 1.25rem;
}

.cpt-leader-card__role {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cpt-primary);
    margin-bottom: 0.1rem;
}

.cpt-leader-card__name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.cpt-leader-card__name a {
    color: var(--cpt-text);
    text-decoration: none;
    transition: var(--cpt-transition);
}

.cpt-leader-card__name a:hover {
    color: var(--cpt-primary);
}

.cpt-leader-card__qualifications {
    font-size: 0.8rem;
    color: var(--cpt-text-light);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.cpt-leader-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cpt-primary);
    text-decoration: none;
    transition: var(--cpt-transition);
}

.cpt-leader-card__link:hover {
    gap: 0.5rem;
}

.cpt-leader-card__link svg {
    width: 14px;
    height: 14px;
}

/* Gallery Responsive */
@media (max-width: 992px) {
    .cpt-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .cpt-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .cpt-gallery-card__overlay {
        opacity: 1;
    }

    .cpt-gallery-card__content {
        transform: translateY(0);
    }

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

    .cpt-leadership-section__title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .cpt-gallery-grid {
        grid-template-columns: 1fr;
    }

    .cpt-leadership-grid {
        grid-template-columns: 1fr;
    }

    .cpt-leader-card {
        display: flex;
        text-align: left;
    }

    .cpt-leader-card__image {
        width: 100px;
        height: auto;
        flex-shrink: 0;
    }

    .cpt-leader-card__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .cpt-card,
    .cpt-profile-card,
    .cpt-mini-card,
    .cpt-programme-card,
    .cpt-gallery-card,
    .cpt-leader-card {
        transition: none;
    }

    .cpt-card:hover,
    .cpt-profile-card:hover,
    .cpt-mini-card:hover,
    .cpt-programme-card:hover,
    .cpt-gallery-card:hover,
    .cpt-leader-card:hover {
        transform: none;
    }

    .cpt-gallery-card__image img,
    .cpt-leader-card__image img {
        transition: none;
    }

    .cpt-gallery-card:hover .cpt-gallery-card__image img,
    .cpt-leader-card:hover .cpt-leader-card__image img {
        transform: none;
    }
}

/* =========================================
   SINGLE POST TEMPLATES
   ========================================= */

/* Single Hero Section */
.cpt-single-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, var(--cpt-primary) 0%, var(--cpt-primary-dark) 100%);
    color: white;
    overflow: hidden;
}

.cpt-single-hero--has-image {
    min-height: 450px;
}

.cpt-single-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cpt-single-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpt-single-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(32, 164, 49, 0.95) 0%,
        rgba(32, 164, 49, 0.7) 50%,
        rgba(32, 164, 49, 0.5) 100%
    );
}

.cpt-single-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 0 3rem;
}

.cpt-single-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cpt-single-hero__breadcrumb a {
    color: white;
    text-decoration: none;
    transition: var(--cpt-transition);
}

.cpt-single-hero__breadcrumb a:hover {
    text-decoration: underline;
}

.cpt-single-hero__breadcrumb span {
    opacity: 0.7;
}

.cpt-single-hero__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.cpt-single-hero__icon svg {
    width: 30px;
    height: 30px;
}

.cpt-single-hero__badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.cpt-single-hero__title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: white;
}

.cpt-single-hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.cpt-single-hero__meta {
    font-size: 0.875rem;
    font-style: italic;
    opacity: 0.85;
}

.cpt-single-hero__count {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Date Badge for Events */
.cpt-single-hero__date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: white;
    color: var(--cpt-primary);
    border-radius: var(--cpt-radius);
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cpt-single-hero__date-day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.cpt-single-hero__date-month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Meta Items */
.cpt-single-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-style: normal;
}

.cpt-single-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.cpt-single-hero__meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* Single Content Layout */
.cpt-single-content {
    padding: 3rem 0 4rem;
    background: var(--cpt-bg-alt);
}

.cpt-single-layout {
    margin: 0 auto;
}

.cpt-single-main {
    background: white;
    border-radius: var(--cpt-radius-lg);
    padding: 2rem;
    box-shadow: var(--cpt-shadow);
}

/* Profile Card */
.cpt-profile-card {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cpt-border);
}

.cpt-profile-card__image {
    flex-shrink: 0;
    width: 200px;
}

.cpt-profile-card__image img {
    width: 100%;
    height: auto;
    border-radius: var(--cpt-radius);
    box-shadow: var(--cpt-shadow);
}

.cpt-profile-card__placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--cpt-bg-alt);
    border-radius: var(--cpt-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpt-profile-card__placeholder svg {
    width: 60px;
    height: 60px;
    color: var(--cpt-text-light);
    opacity: 0.5;
}

.cpt-profile-card__info {
    flex: 1;
}

.cpt-profile-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cpt-text);
    margin-bottom: 0.25rem;
}

.cpt-profile-card__position {
    font-size: 1.1rem;
    color: var(--cpt-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.cpt-profile-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.cpt-profile-card__badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--cpt-primary-light);
    color: var(--cpt-primary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cpt-profile-card__contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cpt-profile-card__contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--cpt-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--cpt-transition);
}

a.cpt-profile-card__contact-item:hover {
    color: var(--cpt-primary);
}

.cpt-profile-card__contact-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cpt-bg-alt);
    border-radius: 50%;
    flex-shrink: 0;
}

.cpt-profile-card__contact-icon svg {
    width: 18px;
    height: 18px;
    color: var(--cpt-primary);
}

/* Event Details Card */
.cpt-event-details-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--cpt-bg-alt);
    border-radius: var(--cpt-radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.cpt-event-details-card__item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cpt-event-details-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--cpt-shadow-sm);
}

.cpt-event-details-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--cpt-primary);
}

.cpt-event-details-card__text {
    display: flex;
    flex-direction: column;
}

.cpt-event-details-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cpt-text-light);
    margin-bottom: 0.125rem;
}

.cpt-event-details-card__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cpt-text);
}

/* Article Meta Bar */
.cpt-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--cpt-border);
}

.cpt-article-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--cpt-text-light);
}

.cpt-article-meta svg {
    width: 16px;
    height: 16px;
    color: var(--cpt-primary);
}

.cpt-article-meta a {
    color: var(--cpt-primary);
    text-decoration: none;
}

.cpt-article-meta a:hover {
    text-decoration: underline;
}

/* Featured Image (in content) */
.cpt-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--cpt-radius);
    overflow: hidden;
}

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

/* Content Section */
.cpt-content-section {
    margin-bottom: 2rem;
}

.cpt-content-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cpt-text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cpt-primary);
    display: inline-block;
}

.cpt-content-section__content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--cpt-text);
}

.cpt-content-section__content p {
    margin-bottom: 1rem;
}

.cpt-content-section__content h2,
.cpt-content-section__content h3,
.cpt-content-section__content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--cpt-text);
}

/* Back Link */
.cpt-back-link {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cpt-border);
}

/* Button Styles */
.cpt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--cpt-radius);
    text-decoration: none;
    transition: var(--cpt-transition);
    cursor: pointer;
}

.cpt-btn--outline {
    background: transparent;
    border: 2px solid var(--cpt-primary);
    color: var(--cpt-primary);
}

.cpt-btn--outline:hover {
    background: var(--cpt-primary);
    color: white;
}

.cpt-btn svg {
    width: 18px;
    height: 18px;
}

/* Post Navigation */
.cpt-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cpt-border);
}

.cpt-post-nav__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--cpt-bg-alt);
    border-radius: var(--cpt-radius-lg);
    text-decoration: none;
    transition: var(--cpt-transition);
}

.cpt-post-nav__link:hover {
    background: var(--cpt-primary-light);
    transform: translateY(-2px);
}

.cpt-post-nav__link--next {
    text-align: right;
    flex-direction: row-reverse;
}

.cpt-post-nav__arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cpt-primary);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--cpt-transition);
}

.cpt-post-nav__link:hover .cpt-post-nav__arrow {
    transform: scale(1.1);
}

.cpt-post-nav__arrow svg {
    width: 20px;
    height: 20px;
}

.cpt-post-nav__content {
    flex: 1;
    min-width: 0;
}

.cpt-post-nav__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cpt-text-light);
    margin-bottom: 0.25rem;
}

.cpt-post-nav__thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--cpt-radius);
    overflow: hidden;
    margin: 0.5rem 0;
    display: none;
}

.cpt-post-nav__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpt-post-nav__title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cpt-text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cpt-post-nav__placeholder {
    /* Empty placeholder for grid alignment */
}

/* Gallery Masonry */
.cpt-gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.cpt-gallery-masonry__item {
    position: relative;
    border-radius: var(--cpt-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.cpt-gallery-masonry__link {
    display: block;
    width: 100%;
    height: 100%;
}

.cpt-gallery-masonry__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--cpt-transition);
}

.cpt-gallery-masonry__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: var(--cpt-transition);
}

.cpt-gallery-masonry__item:hover .cpt-gallery-masonry__overlay {
    opacity: 1;
}

.cpt-gallery-masonry__item:hover img {
    transform: scale(1.05);
}

.cpt-gallery-masonry__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--cpt-primary);
}

.cpt-gallery-masonry__icon svg {
    width: 24px;
    height: 24px;
}

.cpt-gallery-masonry__caption {
    color: white;
    font-size: 0.875rem;
    text-align: center;
}

/* Lightbox */
.cpt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cpt-lightbox--active {
    opacity: 1;
    visibility: visible;
}

.cpt-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.cpt-lightbox__container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpt-lightbox__content {
    position: relative;
}

.cpt-lightbox__image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--cpt-radius);
}

.cpt-lightbox__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    text-align: center;
    font-size: 0.9rem;
}

.cpt-lightbox__close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--cpt-transition);
}

.cpt-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cpt-lightbox__close svg {
    width: 24px;
    height: 24px;
}

.cpt-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--cpt-transition);
}

.cpt-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cpt-lightbox__nav svg {
    width: 24px;
    height: 24px;
}

.cpt-lightbox__nav--prev {
    left: 1.5rem;
}

.cpt-lightbox__nav--next {
    right: 1.5rem;
}

.cpt-lightbox__counter {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Empty State */
.cpt-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--cpt-bg-alt);
    border-radius: var(--cpt-radius-lg);
}

.cpt-empty-state__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: var(--cpt-shadow);
}

.cpt-empty-state__icon svg {
    width: 40px;
    height: 40px;
    color: var(--cpt-text-light);
}

.cpt-empty-state__text {
    font-size: 1.1rem;
    color: var(--cpt-text-light);
}

/* Comments Section */
.cpt-comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cpt-border);
}

/* Single Template Responsive */
@media (max-width: 768px) {
    .cpt-single-hero {
        min-height: 350px;
    }

    .cpt-single-hero__content {
        padding: 3rem 0 2rem;
    }

    .cpt-single-hero__title {
        font-size: 1.75rem;
    }

    .cpt-single-hero__date-badge {
        width: 70px;
        height: 70px;
    }

    .cpt-single-hero__date-day {
        font-size: 1.75rem;
    }

    .cpt-single-main {
        padding: 1.5rem;
    }

    .cpt-profile-card {
        flex-direction: column;
        text-align: center;
    }

    .cpt-profile-card__image {
        width: 150px;
        margin: 0 auto;
    }

    .cpt-profile-card__contact {
        align-items: center;
    }

    .cpt-event-details-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cpt-article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cpt-post-nav {
        grid-template-columns: 1fr;
    }

    .cpt-post-nav__link--next {
        flex-direction: row;
        text-align: left;
    }

    .cpt-gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .cpt-lightbox__nav--prev {
        left: 0.75rem;
    }

    .cpt-lightbox__nav--next {
        right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cpt-single-hero {
        min-height: 300px;
    }

    .cpt-single-hero__title {
        font-size: 1.5rem;
    }

    .cpt-single-hero__breadcrumb {
        font-size: 0.75rem;
    }

    .cpt-single-main {
        padding: 1.25rem;
        border-radius: var(--cpt-radius);
    }

    .cpt-profile-card__image {
        width: 120px;
    }

    .cpt-gallery-masonry {
        grid-template-columns: 1fr;
    }

    .cpt-lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .cpt-lightbox__close {
        width: 40px;
        height: 40px;
    }
}
