/* =======================================================
 *    SCHOOL NEWS - CONSOLIDATED CUSTOM STYLES
 *       File: /blog/wp-content/themes/school_news/css/custom.css
 *          ======================================================= */

/* -------------------------------------------------------
 *    1. EDITORIAL & NEWSPAPER TYPOGRAPHY
 * ------------------------------------------------------- */
.font-serif {
	font-family: "Georgia", "Times New Roman", serif;
}

.letter-spacing-1 {
	letter-spacing: 0.12em;
}

.masthead .site-title a {
	letter-spacing: -0.02em;
}

/* -------------------------------------------------------
 *    2. DESKTOP & LAYOUT STRUCTURE
 * ------------------------------------------------------- */
@media (min-width: 992px) {
	.border-start-lg {
		border-left: 1px solid #dee2e6;
	}
}

/* -------------------------------------------------------
 *    3. PRIMARY NAVIGATION BAR & MULTI-LEVEL HOVER FLYOUTS
 * ------------------------------------------------------- */
#main-nav .navbar-nav .nav-link {
	color: #212529;
	padding-left: 1rem;
	padding-right: 1rem;
}

#main-nav .navbar-nav .nav-link:hover {
	color: #dc3545; /* Editorial Accent */
}

@media (min-width: 768px) {
	/* Ensure parent list items act as positioning anchors */
	#navbarNavDropdown .dropdown-menu li {
		position: relative !important;
	}

	/* Position all nested submenus directly to the right */
	#navbarNavDropdown .dropdown-menu .dropdown-menu {
		position: absolute !important;
		top: 0 !important;
		left: 100% !important;
		margin-top: -0.25rem !important;
		margin-left: 0 !important;
		display: none !important;
		opacity: 0 !important;
		visibility: hidden !important;
	}

	/* Reveal nested menu on hover of the specific <li> */
	#navbarNavDropdown .dropdown-menu li:hover > .dropdown-menu {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	/* Right single chevron indicator on items with children */
	#navbarNavDropdown .dropdown-menu .menu-item-has-children > a {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
	}

	#navbarNavDropdown .dropdown-menu .menu-item-has-children > a::after {
		content: " \203A" !important; /* Unicode right single chevron › */
		font-weight: bold !important;
		font-size: 1.2rem !important;
		line-height: 1 !important;
		margin-left: 1rem !important;
	}
}

/* =======================================================
 *    ARTICLE (SINGLE POST) EDITORIAL STYLES
 * ======================================================= */

.article-entry .entry-title {
	font-family: "Georgia", "Times New Roman", serif;
	line-height: 1.25;
}

.article-entry .entry-content {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 1.15rem;
	line-height: 1.8;
}

.article-entry .entry-content p {
	margin-bottom: 1.5rem;
}

/* Format inline author images with captions */
.article-entry .entry-content figure,
.article-entry .entry-content .wp-caption {
	max-width: 100%;
	margin: 1.75rem auto;
}

.article-entry .entry-content figcaption,
.article-entry .entry-content .wp-caption-text {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.85rem;
	color: #6c757d;
	margin-top: 0.5rem;
	padding-left: 0.25rem;
	border-left: 2px solid #dee2e6;
}

/* Editorial Blockquotes within articles */
.article-entry .entry-content blockquote {
	font-style: italic;
	font-size: 1.25rem;
	border-left: 4px solid #212529;
	padding-left: 1.25rem;
	margin: 2rem 0;
	color: #333;
}

