/*
 Theme Name:   Neve Child
 Theme URI:    https://ceeveeglobal.com
 Description:  CeeVeeGlobal child theme for Neve
 Author:       Dimuthu Harshana
 Author URI:   https://ceeveeglobal.com
 Template:     neve
 Version:      1.0.0
*/

/* ============================================================
   CVG HEADER
   ============================================================ */

#cvg-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	background-color: #fff;
	width: 100%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cvg-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 70px;
	gap: 16px;
}

/* Logo */
.cvg-logo {
	flex-shrink: 0;
}

.cvg-logo .custom-logo-link,
.cvg-logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.cvg-logo img.custom-logo {
	max-height: 48px;
	width: auto;
	display: block;
}

.cvg-site-name {
	color: #0D2451;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 1.3rem;
	text-decoration: none;
}

/* Navigation */
.cvg-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.cvg-nav .cvg-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 2px;
}

.cvg-nav .cvg-menu > li {
	position: relative;
}

.cvg-nav .cvg-menu > li > a {
	display: block;
	color: #0D2451;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 0.85rem;
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 4px;
	transition: color 0.2s ease, background-color 0.2s ease;
	white-space: nowrap;
}

.cvg-nav .cvg-menu > li > a:hover,
.cvg-nav .cvg-menu > li.current-menu-item > a,
.cvg-nav .cvg-menu > li.current-menu-ancestor > a {
	color: #f37262;
	background-color: rgba(13, 36, 81, 0.06);
}

/* Dropdown sub-menus */
.cvg-nav .cvg-menu .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 210px;
	background-color: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	list-style: none;
	margin: 0;
	padding: 6px 0;
	z-index: 100;
}

.cvg-nav .cvg-menu > li:hover > .sub-menu,
.cvg-nav .cvg-menu > li:focus-within > .sub-menu {
	display: block;
}

.cvg-nav .cvg-menu .sub-menu li a {
	display: block;
	color: #0D2451;
	font-family: 'Poppins', sans-serif;
	font-size: 0.82rem;
	text-decoration: none;
	padding: 9px 18px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.cvg-nav .cvg-menu .sub-menu li a:hover {
	color: #f37262;
	background-color: rgba(13, 36, 81, 0.06);
}

/* Header actions (right side) */
.cvg-header-actions {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Login / Logout button */
.cvg-btn {
	display: inline-block;
	background-color: #f37262;
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 0.85rem;
	padding: 8px 22px;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.2s ease;
	white-space: nowrap;
	border: none;
	cursor: pointer;
	line-height: 1.4;
}

.cvg-btn:hover,
.cvg-btn:focus {
	background-color: #d95a49;
	color: #fff;
	text-decoration: none;
}

/* Hamburger button */
.cvg-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px 4px;
	border-radius: 4px;
}

.cvg-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background-color: #0D2451;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.cvg-hamburger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.cvg-hamburger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.cvg-hamburger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   CVG FOOTER
   ============================================================ */

#cvg-footer {
	background-color: #0D2451;
	color: #fff;
	font-family: 'Poppins', sans-serif;
	margin-top: 60px;
}

.cvg-footer-inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 48px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 50px 24px 36px;
}

.cvg-footer-inner h3 {
	color: #f37262;
	font-family: 'Poppins', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 18px;
}

/* About column */
.cvg-footer-about p {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.875rem;
	line-height: 1.75;
	margin: 0;
}

/* Quick links */
.cvg-footer-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cvg-footer-links ul li {
	margin-bottom: 10px;
}

.cvg-footer-links ul li a {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.875rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cvg-footer-links ul li a:hover {
	color: #f37262;
}

/* Social icons */
.cvg-social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cvg-social-icons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background-color: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1rem;
	border-radius: 50%;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.cvg-social-icons a:hover {
	background-color: #f37262;
	color: #fff;
	transform: translateY(-2px);
}

/* Copyright bar */
.cvg-footer-copyright {
	background-color: rgba(0, 0, 0, 0.25);
	text-align: center;
	padding: 16px 24px;
}

.cvg-footer-copyright p {
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */

@media (max-width: 900px) {
	.cvg-hamburger {
		display: flex;
	}

	.cvg-nav {
		display: none;
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		width: 100%;
		background-color: #fff;
		border-top: 1px solid rgba(0, 0, 0, 0.08);
		padding: 8px 0 16px;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
		z-index: 9998;
	}

	.cvg-nav.cvg-nav-open {
		display: block;
	}

	.cvg-nav .cvg-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0 20px;
	}

	.cvg-nav .cvg-menu > li > a {
		padding: 12px 4px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.07);
		border-radius: 0;
		font-size: 0.9rem;
		white-space: normal;
	}

	.cvg-nav .cvg-menu .sub-menu {
		position: static;
		display: none;
		border: none;
		box-shadow: none;
		background: transparent;
		padding: 0 0 0 16px;
		min-width: auto;
		border-radius: 0;
	}

	/* Disable hover-based sub-menus on mobile */
	.cvg-nav .cvg-menu > li:hover > .sub-menu {
		display: none;
	}

	.cvg-footer-inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 40px 20px 24px;
	}
}

@media (max-width: 480px) {
	.cvg-header-inner {
		padding: 0 16px;
	}

	.cvg-btn {
		padding: 7px 16px;
		font-size: 0.8rem;
	}
}

/* ============================================================
   SINGLE POST LAYOUT FIXES
   - Expand post column to full width (sidebar is hidden)
   - Center title, meta, featured image
   ============================================================ */

/* Expand post column to full width on desktop */
@media (min-width: 960px) {
    .single .nv-single-post-wrap.col {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* Center title, meta, and featured image within the content column */
.single .entry-header,
.single .nv-title-meta-wrap {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Center the author/date meta list */
.single .nv-meta-list {
    justify-content: center !important;
}

/* Center featured image */
.single .nv-thumb-wrap {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   SINGLE POST META FIXES
   - Make author/date inline not bullet list
   - Remove duplicate date
   - Remove trailing slash separator
   ============================================================ */

/* Make meta list horizontal, no bullets */
.single .nv-meta-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0.5rem 0 1.5rem !important;
    flex-wrap: wrap !important;
}

.single .nv-meta-list li {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    color: #666;
    font-size: 0.95rem;
}

/* Remove Neve trailing slash separator */
.single .nv-meta-list .meta::after,
.single .nv-meta-list li::after,
.single .nv-meta-list li::before {
    content: none !important;
}

/* Add dot separator between items */
.single .nv-meta-list li + li::before {
    content: · !important;
    margin-right: 20px;
    color: #999;
    display: inline !important;
}

/* Hide duplicate updated date — show published only */
.single .nv-meta-list .updated {
    display: none !important;
}

/* Style author link */
.single .nv-meta-list .author a {
    color: #2f5aae;
    text-decoration: none;
    font-weight: 500;
}

