/* UNCAN-Connect Posts Styles 
   Target: home.php (News Archive)
*/

:root {
    --uncan-purple: #7A39C4;
    --uncan-yellow: #FFAB00;
    --uncan-dark: #1A1128;
    --bg-creme: #FDFCF8;
    --font-heading: 'Atkinson Hyperlegible', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
}

/* --- WRAPPER & HERO --- */

.header-placeholder-section {
	height: 84px;
}

.bgrnd-creme {
	background-color: var(--bg-creme);
}
.uncan-archive-content {
    font-family: var(--font-heading);
    color: var(--uncan-dark);
}

.uncan-section {
	position: relative;
	width: 100%;
	padding: 100px 10%;
}

.uncan-section-inner {
	position: relative;
	width: 100%;
	padding: 10px;
}

.uncan-section.cutout-section-left .uncan-section-inner {
	padding-top: 100px;
	padding-bottom: 100px;
}

.uncan-section.cutout-section-left .uncan-section-inner.default-pad-top {
	padding-top: 10px;
}

.uncan-section.archive-hero {
    padding-top: 40px;
    padding-bottom: 150px;
	margin-bottom: -120px;
	background: radial-gradient(circle at top right, rgba(122, 57, 196, 0.05), var(--bg-creme));
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 14px;
    color: var(--uncan-purple);
    display: block;
    margin-bottom: 10px;
}

.archive-hero h1 {
    font-size: clamp(36px, 5vw, 52px);
    color: var(--uncan-purple);
    margin-bottom: 0;
}

.archive-description {
	margin-bottom: 0;
}

/* --- FEATURED CARD (MATCHES news.html) --- */
.featured-news-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
	margin-top: 40px;
}

.featured-news-card:hover { transform: translateY(-5px); }

.featured-image {
    min-height: 450px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.featured-image.no-image {
    background: linear-gradient(135deg, #7a39c4, #ffb800);
}

.featured-image.no-image::after {
    content: "";
    position: absolute;
    width: 100%; height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(#fff 2px, transparent 2px);
    background-size: 30px 30px;
    top: 0; left: 0;
}

.featured-content { 
	padding: 60px; 
	display: flex; 
	flex-direction: column; 
	justify-content: center; 
}

.featured-content h2 { 
	font-size: 32px; 
	color: var(--uncan-purple); 
	margin-bottom: 20px;
	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.featured-content p { font-size: 17px;}

/* --- FILTERS --- */
.news-filters {
    padding: 20px 0;
    display: flex;
	justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 84px;
    z-index: 10;
    background: rgba(253, 252, 248, 0.01);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(122, 57, 196, 0.1);
}

.news-filters .filter-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
	width: calc(100% - 250px);
	flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 12px;
    border: 1px solid rgba(122, 57, 196, 0.15);
    background: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
	line-height: 1.5em;
    font-weight: 700;
    color: var(--uncan-purple);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-btn.active, 
.filter-btn:hover {
	background: var(--uncan-purple);
    color: white;
    box-shadow: 0 4px 12px rgba(122, 57, 196, 0.2);
}

.news-search-wrapper {
    display: flex;
    align-items: center;
	justify-content: flex-end;
	width: 250px;
}

.news-inline-search {
    display: flex;
	flex-direction: row-reverse;
	justify-content: center;
    align-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(122, 57, 196, 0.1);
    border-radius: 12px;
    padding: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 44px; 
    overflow: hidden;
}

/* When the search is active/expanded */
.news-inline-search.is-active {
    width: 100%;
    border-color: var(--uncan-purple);
    box-shadow: 0 4px 15px rgba(122, 57, 196, 0.1);
}

.inline-search-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 0;
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 14px;
}

.news-inline-search.is-active .inline-search-input {
    width: 100%;
    opacity: 1;
}

.search-toggle-btn {
    background: transparent;
    border: none;
    color: var(--uncan-purple);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
}

.news-inline-search.is-active .search-toggle-btn {
    color: var(--uncan-purple);
}

/* --- GRID & CARDS --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px 0 30px 0; 
}

.news-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--uncan-yellow);
}

.news-date {
	font-family: var(--font-body);
    font-size: 12px;
    color: var(--uncan-yellow);
    font-weight: 700;
	letter-spacing: 0.08em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.news-card h3 {
    font-size: 22px;
    color: var(--uncan-purple);
    margin-bottom: 15px;
    line-height: 1.3;
	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
	font-weight: 700;
    font-size: 14px;
    color: var(--uncan-purple);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

/* --- PAGINATION --- */
.uncan-pagination {
    text-align: center;
}

.uncan-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    margin: 0 5px;
    padding: 0 15px;
    background: #ffffff;
    border: 1px solid rgba(122, 57, 196, 0.1);
    border-radius: 12px; /* Matches your input and button radius */
    color: var(--uncan-purple);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover & Active States */
.uncan-pagination .page-numbers:hover,
.uncan-pagination .page-numbers.current {
    background: var(--uncan-purple);
    color: #ffffff;
    border-color: var(--uncan-purple);
    box-shadow: 0 5px 15px rgba(122, 57, 196, 0.2);
}

/* Previous/Next Text Adjustments */
.uncan-pagination .prev, 
.uncan-pagination .next {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- BOTTOM SECTIONS --- */
/* --- UNCAN VISUAL IDENTITY: GLASS ENGAGEMENT ZONE --- */

.engagement-zone {
    background: transparent !important; /* Revealing the Vanta Body background */
}

.uncan-glass-newsletter-box {
    width: 100%;
	max-width: 950px;
    margin: 0 auto;
	text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.uncan-glass-newsletter-box p {
	margin-bottom: 25px;
}

/* Typography */
.uncan-white-title {
    font-size: 22px;
	margin: 0 0 8px 0;
    color: #fdfcf8;
}

.uncan-transparent-white {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
	max-width: 380px;
}

/* Newsletter Input Group */
.newsletter-form-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.uncan-glass-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 14px 20px;
    width: 280px;
    font-size: 16px;
	outline: unset;
}

.uncan-glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Section Intro Styles */
.engagement-header {
    text-align: center;
    margin-bottom: 25px;
}

.engagement-body {
	text-align: center;
}

.uncan-overline {
	margin-bottom: 12px;
}

.white-title {
    color: #fdfcf8;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-desc-centered {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}

/* Glass Box Adjustments */
.uncan-glass-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 40px 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.uncan-glass-newsletter .uncan-glass-input {
	color: #fff;
}

.cta-btn {
	width: fit-content;
}

.bgrnd-pattern {
    position: relative;
    background-color: #ffffff;
    /* Subtle Data Grid Pattern */
    background-image: radial-gradient(var(--uncan-purple) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    background-opacity: 0.05; /* We control this via rgba in the next line */
    background-image: radial-gradient(rgba(122, 57, 196, 0.07) 1px, transparent 0px);
}

.bgrnd-pattern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #ffffff);
}


.uncan-section-inner article .entry-footer > div.flex-wrap {
	gap: 20px;
}

.post-meta-wrapper {
	justify-content: space-between;
}

.post-tags {
	margin-left: auto;
}

.post-tags a,
.post-share a {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(122, 57, 196, 0.05);
    color: var(--uncan-purple);
    border-radius: 12px;
	font-family: var(--font-heading);
	font-weight: 700;
	border: 1px solid rgba(122, 57, 196, 0.1);
    font-size: 12px;
	line-height: 1.5;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
	margin-top: 5px;
	margin-bottom: 5px;
}

.post-tags a:not(:last-child) {
	margin-right: 10px;
}

.post-share .social-icon li:not(:first-child) {
	margin-inline-start: 10px;
}

.post-share .social-icon li {
	margin-inline-end: 0;
}

.post-share .social-icon li a {
	font-size: 18px;
}

.post-tags a:hover,
.post-share a:hover {
    background: var(--uncan-purple);
    color: #fff;
}

/* Search. */ 
.search-toggle-btn svg {
    display: block;
    color: var(--uncan-purple);
    transition: transform 0.3s ease;
}

.news-inline-search.is-active .search-toggle-btn svg {
    transform: scale(0.9);
}

/* Hover state for the button */
.search-toggle-btn:hover svg {
    color: #622da3; /* Deeper purple on hover */
}

/* Subtle pulse when the bar is active */
.news-inline-search.is-active .search-toggle-btn svg {
    opacity: 0.8;
}

/* Add a transition to the SVG specifically */
.search-toggle-btn svg {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                color 0.2s ease, 
                opacity 0.2s ease;
}

/* Optional: Add a slight "lifting" effect to the whole pill on hover */
.news-inline-search:hover {
    border-color: rgba(122, 57, 196, 0.3);
    box-shadow: 0 2px 10px rgba(122, 57, 196, 0.05);
}

/* Ensure the wrapper doesn't collapse weirdly */
.uncan-search-container {
    max-width: 600px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(122, 57, 196, 0.15);
    border-radius: 12px;
    padding: 8px 8px 8px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.search-input-group:focus-within {
    border-color: var(--uncan-purple);
    box-shadow: 0 8px 25px rgba(122, 57, 196, 0.1);
}

.search-input-group i {
    color: var(--uncan-purple);
    margin-right: 15px;
    font-size: 18px;
}

.uncan-search-field {
    border: none !important;
    outline: none !important;
    flex-grow: 1;
    font-size: 16px;
    color: var(--uncan-dark);
    background: transparent;
}

.uncan-search-submit {
    background: var(--uncan-purple);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.uncan-search-submit:hover {
    background: #622da3; /* Darker purple */
}

/* Search Box Refinement */
.search-refine-wrap {
    max-width: 500px;
    margin: 30px 0;
}

.uncan-search-form {
    display: flex;
    gap: 10px;
}

.uncan-search-form .uncan-glass-input {
    flex-grow: 1;
    border: 1px solid rgba(122, 57, 196, 0.2);
    color: var(--uncan-dark);
}

.search-meta-info {
    font-size: 14px;
    color: #666;
    text-align: left;
    display: block;
    width: 100%;
	padding-top: 30px;
}

.search-meta-info strong {
    color: var(--uncan-purple);
    font-weight: 700;
}

.navigation.pagination {
	padding-top: 30px;
}

/* Popular Categories Pills (for No Results) */
.popular-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.cat-pill {
    padding: 10px 24px;
    border-radius: 12px;
    border: 1px solid rgba(122, 57, 196, 0.15);
    background: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 1.5em;
    font-weight: 700;
    color: var(--uncan-purple);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cat-pill:hover {
    background: var(--uncan-purple);
    color: white;
    box-shadow: 0 4px 12px rgba(122, 57, 196, 0.2);
}

mark.search-highlight {
    background-color: rgba(122, 57, 196, 0.15); /* Light purple tint */
    color: var(--uncan-purple);
    padding: 0 2px;
    border-radius: 4px;
    font-weight: 600;
}

/* Single post */
.article-meta-uncan {
	margin-top: 20px;
}

/* Style the Tags and Share row at the bottom */
.entry-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
}

.tags-label, .share-label {
	font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--uncan-dark);
	display: block;
	margin-bottom: 8px;
}

/* Post Content Typography */
.uncan-single-featured-image {
    width: 100%;
    margin-bottom: 60px;
}

.uncan-single-featured-image img {
    width: 100%;
    max-height: 500px; 
    object-fit: cover; 
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Container to place between Content and Related Posts */
.single-post-newsletter-bridge {
    background: linear-gradient(90deg, #7A39C4 0%, #4D267E 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0; /* Space above and below */
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    gap: 20px;
}

.single-post-newsletter-bridge {
    background: linear-gradient(135deg, #5A2A91 0%, #7A39C4 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(122, 57, 196, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-post-newsletter-bridge::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.bridge-text h4 {
	line-height: normal;
    margin: 0 0 5px 0;
    color: #ffffff;
}

.bridge-text p {
    margin: 0;
    font-size: 16px;
    line-height: normal;
    opacity: 0.9;
}

/* Glass Grid Specifics */
.news-grid-glass { 
	display: grid; 
	gap: 30px; 
	margin-top: 40px;
	grid-template-columns: repeat(3, 1fr); 
}

.news-grid-glass .news-card-glass {
	position: relative;
	background: rgba(255, 255, 255, 0.08); 
	backdrop-filter: blur(5px); 
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.15); 
	border-radius: 20px; 
	overflow: hidden;
	transition: all 0.4s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.news-grid-glass .news-card-glass:hover { 
	transform: translateY(-10px); 
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--uncan-yellow);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); 
}

.news-grid-glass .stretched-link::after {
	position: absolute; top: 0; right: 0; bottom: 0; left: 0;
	z-index: 1; content: "";
}

.news-grid-glass .news-img { 
	position: relative;
	width: 100%; 
	height: 200px; 
	background-size: cover; 
	background-position: center;
}

.news-img:before {
    content: "";
    background: rgba(0, 0, 0, .2);
    display: block;
    width: 100%;
    height: 100%;
}

.news-grid-glass .news-img.no-image {
	background: linear-gradient(135deg, #7A39C4, #FFAB00);
}

.news-grid-glass .news-img.no-image:after { 
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0.1;
	background-image: radial-gradient(#fff 2px, transparent 2px);
	background-size: 30px 30px;
	top: 0;
	left: 0;
}

.news-grid-glass .news-category-tag {
	position: absolute;
	top: 15px;
	left: 15px;
	padding: 5px 12px;
	background: rgba(255, 255, 255, 0.15); 
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50px;
	color: #FFFFFF;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	z-index: 2;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.news-grid-glass .news-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }

.news-grid-glass .news-date {
	font-family: var(--font-body);
	font-size: 13px;
	line-height: normal;
	font-weight: 400;
	color: rgba(255,255,255,0.7);
	margin-bottom: 8px;
	text-transform: uppercase;
}

.news-grid-glass .news-body h3 { 
	margin-bottom: 15px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
}

.news-grid-glass .news-body h3 a {
	font-family: var(--font-heading);
	color: #FFFFFF; 
	text-decoration: none;
	position: relative;
	z-index: 2;
	font-weight: inherit;
	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-grid-glass .source-card-text {
	font-family: var(--font-body);
	font-size: 16px;
	color: rgba(255,255,255,0.8);
	line-height: 1.5;
	margin-bottom: 20px;
}

.news-grid-glass a.case-link { 
	color: var(--uncan-yellow);
	font-weight: 700; 
	text-decoration: none;
	margin-top: auto;
	transition: 0.3s;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.5px;
}

.news-grid-glass .case-link:hover { 
	color: #FFFFFF;
	padding-left: 5px;
}

.half-width {
	width: 50%;
}

/* --- UNCAN POST NAVIGATION  --- */
.uncan-post-nav {
	display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: 60px;
    width: 100%;
    margin: 0 auto;
}

.uncan-post-nav .nav-previous,
.uncan-post-nav .nav-next {
   min-width: 0;
   max-width: 500px;
}

.uncan-post-nav .nav-next {
	text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
	margin-left: auto;
}

.uncan-post-nav .nav-previous {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.uncan-post-nav .nav-center {
	grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.nav-icon-wrapper {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(122, 57, 196, 0.15);
    border-radius: 50%;
    color: var(--uncan-purple);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-icon-wrapper svg {
	fill: currentColor;
    width: 18px;
    height: 18px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.uncan-post-nav .nav-subtitle {
    display: flex;
    align-items: center;
	line-height: normal;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--uncan-purple);
    margin-bottom: 10px;
}

.uncan-post-nav .nav-next .nav-subtitle {
    justify-content: flex-end;
}

.uncan-post-nav .nav-subtitle svg {
    stroke: var(--uncan-purple);
    width: 16px; 
    height: 16px;
    transition: transform 0.3s ease;
}

.uncan-post-nav .nav-title {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.4;
    color: #1a1a1a;
    font-weight: 700;
    transition: color 0.3s ease;
    display: block; 
    word-wrap: break-word;
	/* Line Clamping Logic */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limits to 2 lines */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}

.uncan-post-nav a:hover .nav-title {
    color: var(--uncan-purple);
}

.uncan-post-nav .nav-previous a:hover svg {
    transform: translateX(-4px);
}

.uncan-post-nav .nav-next a:hover svg {
    transform: translateX(4px);
}

.uncan-post-nav .nav-next svg g {
    transform: rotate(180deg);
    transform-origin: center;
}

.uncan-nav-all:hover .nav-icon-wrapper {
    background-color: var(--uncan-purple);
    color: #fff;
    border-color: var(--uncan-purple);
}

.uncan-nav-all:hover .nav-icon-wrapper svg {
    transform: rotate(90deg);
}

/* ---TABLE --- */
.uncan-contents-wrap .wp-block-table,
.uncan-contents-wrap table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
	table-layout: fixed;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(122, 57, 196, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
}

.uncan-contents-wrap table thead th {
    background-color: #f6f4f9; 
    color: var(--uncan-purple);
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px;
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(122, 57, 196, 0.15);
    border-right: 1px solid rgba(122, 57, 196, 0.05);
}

.uncan-contents-wrap table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    border-right: 1px solid rgba(0, 0, 0, 0.02);
    color: #444;
    font-size: 15px;
    vertical-align: middle;
	word-wrap: break-word;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.uncan-contents-wrap table thead tr:first-child th:first-child {
    border-top-left-radius: 12px;
}

.uncan-contents-wrap table thead tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

.uncan-contents-wrap table th:last-child,
.uncan-contents-wrap table td:last-child {
    border-right: none;
}

.uncan-contents-wrap table tbody tr:last-child td {
    border-bottom: none;
}

.uncan-contents-wrap table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.5); 
}

.uncan-contents-wrap table tbody tr:hover td {
    background-color: rgba(122, 57, 196, 0.04);
    color: var(--uncan-dark);
}

.empty-section {
	margin-top: -1px;
    margin-bottom: -117px;
    padding: 20px 0px 0px 0px;
}

@media (min-width: 1025px) and (max-width: 1599px) {
	.uncan-section {
		padding: 100px 6%; 
	}
}

@media (min-width: 1025px) {
    /* --- STICKY HEADER FORCE COLORS (DESKTOP ONLY) --- */

    /* White Mode (Over Dark Sections) */
    .main-header.is-stuck.header-force-white .main-nav > li > a { 
        color: #ffffff !important; 
    }
    .main-header.is-stuck.header-force-white .logo-light { 
        opacity: 1 !important; visibility: visible !important; 
    }
    .main-header.is-stuck.header-force-white .logo-dark,
    .main-header.is-stuck.header-force-white .logo-default { 
        opacity: 0 !important; visibility: hidden !important; 
    }

    /* Purple Mode (Over Light Sections) */
    .main-header.is-stuck.header-force-purple .main-nav > li > a { 
        color: #7a39c4 !important; 
    }
    .main-header.is-stuck.header-force-purple .logo-dark { 
        opacity: 1 !important; visibility: visible !important; 
    }
    .main-header.is-stuck.header-force-purple .logo-light,
    .main-header.is-stuck.header-force-purple .logo-default { 
        opacity: 0 !important; visibility: hidden !important; 
    }

    /* Smooth transition for colors */
    .main-header.is-stuck .main-nav > li > a,
    .main-header.is-stuck .navbar-brand img {
        transition: color 0.2s ease, opacity 0.2s ease;
    }
}

@media (max-width: 1024px) { 
	.header-placeholder-section {
		height: 75.25px;
	}
	.uncan-section {
		padding: 80px 4%;
	}
	
	.uncan-section.cutout-section-left .uncan-section-inner {
		padding-top: 80px;
		padding-bottom: 80px;
	}
	
	.uncan-section.archive-hero {
		padding-bottom: 110px;
		margin-bottom: -70px; 
	}
	
	.uncan-glass-newsletter {
		max-width: 500px;
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }
	
	.uncan-glass-newsletter-box {
		max-width: 500px;
    }
	
    .uncan-transparent-white {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .newsletter-form-row {
        width: 100%;
        flex-direction: column;
    }
    .uncan-glass-input {
        width: 100%;
    }
    .engagement-zone .uncan-btn-solid {
        width: 100%;
    }
	
	.news-grid-glass {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 30px;
		padding: 15px;
		scrollbar-width: none; 
	}

	.news-grid-glass::-webkit-scrollbar {
		display: none; 
	}

	.news-grid-glass .news-card-glass {
		flex: 0 0 calc(50% - 15px); 
		scroll-snap-align: start;
		box-shadow: unset; /* Stops clipping issues on mobile */
	}
	
	.news-grid-glass .news-card-glass:hover {
		box-shadow: unset;
		transform: none; /* Recommended: lift effect can also cause clipping on mobile swipers */
	}

	.news-container-wrapper-glass .news-pagination {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin-top: 15px;
	}

	.news-container-wrapper-glass .news-pagination .dot {
		width: 8px;
		height: 8px;
		background: rgba(255,255,255,0.3);
		border-radius: 50%;
		transition: 0.3s;
	}

	.news-container-wrapper-glass .news-pagination .dot.active {
		background: var(--uncan-yellow);
		width: 20px;
		border-radius: 10px;
	}
	
	.empty-section {
		margin-bottom: -70px;
		padding: 0px 0px 0px 0px;
	}

}

@media (max-width: 992px) {
    .featured-news-card { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .footer-archive-info { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 767px) {
	
	body p {
		font-size: 17px;
	}
	.uncan-section {
		padding: 50px 20px;
	}
	
	.uncan-section.cutout-section-left .uncan-section-inner {
		padding-top: 50px;
		padding-bottom: 50px;
	}
	
	.uncan-section.archive-hero {
		padding-bottom: 80px;
		margin-bottom: -50px; 
	}
	
	.white-title { font-size: 32px; }
    .engagement-header { margin-bottom: 25px; }
	
	.featured-content {
		padding: 40px; 
	}
	
	.news-filters {
        flex-direction: column; /* Stack filters and search vertically */
        align-items: center;
        gap: 15px;
    }

    .news-filters .filter-buttons {
        width: 100%;
		flex-wrap: nowrap !important;
		justify-content: flex-start !important;
		overflow-x: auto;
		scrollbar-width: none;
    }

    .news-search-wrapper {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
		margin-top: 20px;
        margin-bottom: 10px;
    }

    .news-inline-search {
        width: 100%;
        max-width: 468px;
        background: #fff;
    }

    .news-inline-search.is-active {
        width: 100%;
    }

    .inline-search-input {
        width: 100%;
        opacity: 1;
        padding: 0 15px;
    }
	
	.uncan-main-content input[type="text"],
    .uncan-main-content input[type="search"],
    .uncan-main-content textarea,
    .uncan-main-content select {
        font-size: 16px;
    }
	
   .search-meta-info {
        text-align: center;
        padding-top: 30px;
        margin-bottom: 0;
    }
	
	.featured-image {
		min-height: 250px; 
	}
	
	.uncan-single-featured-image img {
        max-height: 350px;
    }
	
	.news-grid-glass { 
		margin-top: 25px;
	}
	
	.news-grid-glass .news-card-glass {
		flex: 0 0 100%; 
	}
	
	.half-width {
		width: 100%;
	}
	
	.uncan-post-nav {
        grid-template-columns: 1fr auto 1fr; 
        padding-top: 40px;
        gap: 10px;
    }

    .uncan-post-nav .nav-title {
        display: none !important;
    }

    .uncan-post-nav .nav-center {
        padding: 0 15px;
    }

    .nav-icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .uncan-post-nav .nav-subtitle {
        font-size: 10px;
		margin-bottom: 0;
    }
	
	.uncan-contents-wrap figure.wp-block-table {
        overflow-x: auto;
        border-radius: 12px;
        border: 1px solid rgba(122, 57, 196, 0.12);
    }
	
	.wp-block-table {
        overflow-x: auto;
        border-radius: 12px;
    }
    
    .uncan-contents-wrap table {
        table-layout: auto;
    }
	
	.empty-section {
		margin-bottom: -50px;
		padding: 0px 0px 0px 0px;
	}
	
	.single-post-newsletter-bridge {
        flex-direction: column;
        text-align: center;
		gap: 25px;
    }
	
	.bridge-text h4 {
		margin-bottom: 20px;
    }
	
	.post-meta-wrapper {
		justify-content: start;
    }
	
	.post-tags, .post-share {
		width: 100%;
		max-width: 100%;
	}

}

@media (max-width: 480px) {
    .search-input-group {
        flex-direction: column;
        padding: 15px;
    }
    .uncan-search-submit {
        width: 100%;
        margin-top: 10px;
    }
	
	.uncan-contents-wrap table thead th,
	.uncan-contents-wrap table tbody td {
		padding: 12px 6px;
    }
	
	.uncan-post-nav .nav-previous a,
	.uncan-post-nav .nav-next a {
		max-width: 80px;
    }
}

