/* ===== Container ===== */
.inor-project-accordion-wrapper {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 1rem 1rem;
}

.inor-project-heading {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #e5e5e5;
}

/* Accent bar at the very start of the accordion tab */
.inor-project-item > summary {
    position: relative;
    padding-left: 1.5em; /* makes room for the bar so text doesn't overlap it */
}

.inor-project-item > summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: var(--wp--preset--color--accent-1, #e64e3e);
}

/* Bar follows the open-state if you style open tabs differently */
.inor-project-item[open] > summary::before {
    background: var(--wp--preset--color--accent-1, #e64e3e);
}

/* Suppress the browser focus ring on the summary tabs.
   Keyboard users still get a visible indicator via :focus-visible. */
.inor-project-item > summary:focus {
    outline: none;
}

/* Keep accessibility for keyboard navigation */
.inor-project-item > summary:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-1, #e64e3e);
    outline-offset: -2px;
}

/* ===== Accordion ===== */
.inor-project-accordion {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.inor-project-item {
	background: #f8f8f8;
	border: none;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.inor-project-item:hover { background: #f0f0f0; }

.inor-project-item[open] {
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== Summary ===== */
.inor-project-summary {
	padding: 1rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: #333333;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: color 0.2s ease;
}

.inor-project-summary::-webkit-details-marker { display: none; }
.inor-project-summary:hover { color: #000000; }

.inor-toggle-icon {
	font-size: 1.25rem;
	font-weight: bold;
	color: #666;
	transition: transform 0.3s ease;
}

.inor-project-item[open] .inor-toggle-icon { transform: rotate(45deg); }

/* ===== Content ===== */
.inor-project-content {
	padding: 1.5rem;
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from { opacity: 0; transform: translateY(-10px); }
	to   { opacity: 1; transform: translateY(0); }
} /* FIX: this brace was missing before */

/* ===== Layout ===== */
.inor-project-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
}

@media (max-width: 768px) {
	.inor-project-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

.inor-project-details p {
	margin-bottom: 0.75rem;
	font-size: 1rem;
	line-height: 1.6;
	color: #444;
}

.inor-project-details strong {
	color: #1a1a1a;
	font-weight: 600;
	min-width: 140px;
	display: inline-block;
}

/* ===== Image ===== */
.inor-project-image img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inor-project-image img:hover {
	transform: scale(1.02);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ===== Link ===== */
.inor-project-link { margin-top: 1.5rem; }

.inor-project-link a {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	background: var(--wp--preset--color--accent-1, #e64e3e);
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 500;
	font-size: 0.9rem;
	transition: background 0.3s ease, transform 0.2s ease;
}

.inor-project-link a:hover {
	background: var(--wp--preset--color--accent-1, #e64e3e);
	transform: translateX(4px);
}

.inor-empty-state {
	padding: 2rem;
	text-align: center;
	color: #666;
	font-style: italic;
}