/**
 * GFC View Compatibility – Frontend Styles
 *
 * Styles for the [wpv-view] shortcode output rendered by gfc-view-compat plugin.
 *
 * @package GFC_View_Compat
 */

/* ==========================================================================
   1. SHARED / BASE
   ========================================================================== */

/* Tables (Educators, Team Members) */
.gfc-vc-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 30px;
	font-size: 14px;
	line-height: 1.5;
}

.gfc-vc-table thead th {
	background: #3a5a40;
	color: #fff;
	font-weight: 600;
	text-align: left;
	padding: 10px 14px;
	border-bottom: 2px solid #2d4a33;
	font-size: 14px;
	white-space: nowrap;
}

.gfc-vc-table tbody td {
	padding: 10px 14px;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: top;
}

.gfc-vc-table tbody tr:nth-child(even) {
	background: #f8f9f7;
}

.gfc-vc-table tbody tr:hover {
	background: #eef2eb;
}

.gfc-vc-table a {
	color: #3a5a40;
	text-decoration: none;
}

.gfc-vc-table a:hover {
	text-decoration: underline;
}


/* ==========================================================================
   2. SEARCH FORMS (Policy Basic, Policy Advanced, Reader)
   ========================================================================== */

.gfc-vc-search-form {
	background: #f7f8f6;
	border: 1px solid #dde1d9;
	border-radius: 4px;
	padding: 20px 24px;
	margin: 0 0 30px;
}

.gfc-vc-search-form p {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

/* Single-row text input + button (Policy Basic) */
.gfc-vc-form-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
	flex-wrap: wrap;
}

.gfc-vc-text-input {
	flex: 1 1 300px;
	padding: 8px 12px;
	font-size: 14px;
	border: 1px solid #bbb;
	border-radius: 3px;
	background: #fff;
}

.gfc-vc-text-input:focus {
	border-color: #3a5a40;
	outline: none;
	box-shadow: 0 0 0 2px rgba(58, 90, 64, 0.15);
}

/* Filter grid (Policy Advanced, Reader) */
.gfc-vc-filter-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 16px;
}

.gfc-vc-filter-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gfc-vc-filter-col {
	display: flex;
	flex-direction: column;
}

.gfc-vc-filter-col label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 4px;
	color: #333;
}

.gfc-vc-filter-col select,
.gfc-vc-filter-col input {
	width: 100%;
	padding: 7px 10px;
	font-size: 13px;
	border: 1px solid #bbb;
	border-radius: 3px;
	background: #fff;
	box-sizing: border-box;
}

.gfc-vc-filter-col select:focus,
.gfc-vc-filter-col input:focus {
	border-color: #3a5a40;
	outline: none;
	box-shadow: 0 0 0 2px rgba(58, 90, 64, 0.15);
}

.gfc-vc-filter-col select[multiple] {
	height: auto;
	min-height: 100px;
}

/* Buttons */
.gfc-vc-form-actions {
	display: flex;
	gap: 10px;
	margin-top: 6px;
}

.gfc-vc-btn {
	display: inline-block;
	padding: 9px 22px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	line-height: 1.4;
	text-align: center;
	transition: background 0.15s ease, color 0.15s ease;
}

/* Primary button (Search / Sort) */
button.gfc-vc-btn,
input[type="submit"].gfc-vc-btn {
	background: #3a5a40;
	color: #fff;
}

button.gfc-vc-btn:hover,
input[type="submit"].gfc-vc-btn:hover {
	background: #2d4a33;
}

/* Secondary button (Clear) */
a.gfc-vc-btn.gfc-vc-btn-secondary {
	background: #e8ebe5;
	color: #333;
}

a.gfc-vc-btn.gfc-vc-btn-secondary:hover {
	background: #d5dad0;
	color: #222;
}

/* Results wrapper */
.gfc-vc-results {
	margin-top: 20px;
}

.gfc-vc-result-count {
	margin: 0 0 16px;
	font-size: 15px;
}


/* ==========================================================================
   3. POLICY CARDS (Shared by Basic + Advanced)
   ========================================================================== */

.gfc-vc-policy-card {
	border: 1px solid #dde1d9;
	border-radius: 4px;
	padding: 18px 22px;
	margin: 0 0 18px;
	background: #fff;
}

.gfc-vc-policy-card h3 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.3;
}

.gfc-vc-policy-card h3 a {
	color: #3a5a40;
	text-decoration: none;
}

.gfc-vc-policy-card h3 a:hover {
	text-decoration: underline;
}

.gfc-vc-policy-card p {
	margin: 4px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #444;
}

.gfc-vc-policy-card p strong {
	color: #333;
}


/* ==========================================================================
   4. NEWS LIST
   ========================================================================== */

.gfc-vc-news-list {
	margin: 0 0 30px;
}

.gfc-vc-news-item {
	display: flex;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid #e4e4e4;
}

.gfc-vc-news-item:first-child {
	padding-top: 0;
}

.gfc-vc-news-image {
	flex: 0 0 160px;
}

.gfc-vc-news-image img {
	display: block;
	width: 160px;
	height: auto;
	border-radius: 3px;
}

.gfc-vc-news-content {
	flex: 1 1 0%;
	min-width: 0;
}

.gfc-vc-news-title {
	margin: 0 0 4px;
	font-size: 18px;
	line-height: 1.3;
}

.gfc-vc-news-title a {
	color: #3a5a40;
	text-decoration: none;
}

.gfc-vc-news-title a:hover {
	text-decoration: underline;
}

.gfc-vc-news-date {
	font-size: 13px;
	color: #888;
	margin-bottom: 8px;
}

.gfc-vc-news-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}

a.gfc-vc-more {
	color: #3a5a40;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

a.gfc-vc-more:hover {
	text-decoration: underline;
}


/* ==========================================================================
   5. INTERNSHIP CARDS
   ========================================================================== */

.gfc-vc-internship-list {
	margin: 0 0 30px;
}

.gfc-vc-internship-card {
	border: 1px solid #dde1d9;
	border-radius: 4px;
	padding: 18px 22px;
	margin: 0 0 18px;
	background: #fff;
}

.gfc-vc-internship-card h3 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.3;
}

.gfc-vc-internship-card h3 a {
	color: #3a5a40;
	text-decoration: none;
}

.gfc-vc-internship-card h3 a:hover {
	text-decoration: underline;
}

.gfc-vc-internship-card p {
	margin: 4px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #444;
}

.gfc-vc-internship-card p strong {
	color: #333;
}

.gfc-vc-internship-desc {
	margin: 8px 0 12px;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}


/* ==========================================================================
   6. READER VIEW
   ========================================================================== */

.gfc-vc-reader-view {
	margin: 0 0 30px;
}

.gfc-vc-reader-list {
	margin: 0;
}

.gfc-vc-reader-item {
	display: flex;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid #e4e4e4;
}

.gfc-vc-reader-item:first-child {
	padding-top: 0;
}

.gfc-vc-reader-image {
	flex: 0 0 120px;
}

.gfc-vc-reader-image img {
	display: block;
	width: 120px;
	height: auto;
	border-radius: 3px;
}

.gfc-vc-reader-content {
	flex: 1 1 0%;
	min-width: 0;
}

.gfc-vc-reader-content h4 {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.3;
}

.gfc-vc-reader-content h4 a {
	color: #3a5a40;
	text-decoration: none;
}

.gfc-vc-reader-content h4 a:hover {
	text-decoration: underline;
}

.gfc-vc-reader-authors {
	font-size: 13px;
	color: #666;
	margin-bottom: 2px;
}

.gfc-vc-reader-date {
	font-size: 13px;
	color: #888;
	margin-bottom: 8px;
}

.gfc-vc-reader-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}


/* ==========================================================================
   7. COI LISTING
   ========================================================================== */

ul.gfc-vc-coi-list {
	list-style: disc;
	margin: 0 0 30px 20px;
	padding: 0;
}

ul.gfc-vc-coi-list li {
	margin-bottom: 6px;
	font-size: 15px;
	line-height: 1.5;
}

ul.gfc-vc-coi-list a {
	color: #3a5a40;
	text-decoration: none;
}

ul.gfc-vc-coi-list a:hover {
	text-decoration: underline;
}


/* ==========================================================================
   8. PAST EVENTS
   ========================================================================== */

.gfc-vc-events-list {
	margin: 0 0 30px;
}

.gfc-vc-event-item {
	padding: 14px 0;
	border-bottom: 1px solid #e4e4e4;
}

.gfc-vc-event-item:first-child {
	padding-top: 0;
}

.gfc-vc-event-item h4 {
	margin: 0 0 2px;
	font-size: 16px;
	line-height: 1.3;
}

.gfc-vc-event-item h4 a {
	color: #3a5a40;
	text-decoration: none;
}

.gfc-vc-event-item h4 a:hover {
	text-decoration: underline;
}

.gfc-vc-event-date {
	font-size: 13px;
	color: #888;
	margin-bottom: 6px;
}

.gfc-vc-event-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}


/* ==========================================================================
   9. WIDGETS (Feature widget View)
   ========================================================================== */

.gfc-vc-widget {
	margin: 0 0 24px;
}

.gfc-vc-widget-inner,
.gfc-vc-widget-bg {
	overflow: hidden;
}

.gfc-vc-widget-bg {
	border-radius: 4px;
}

.gfc-vc-widget-headline {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.3;
}

.gfc-vc-widget-body {
	font-size: 14px;
	line-height: 1.7;
	color: #444;
}

.gfc-vc-widget-body p {
	margin: 0 0 14px;
}

a.gfc-vc-widget-link {
	display: inline-block;
	padding: 8px 18px;
	background: #3a5a40;
	color: #fff;
	text-decoration: none;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s ease;
}

a.gfc-vc-widget-link:hover {
	background: #2d4a33;
}

/* Widget columns */
.gfc-vc-widget-cols {
	display: flex;
	gap: 24px;
	margin-top: 20px;
}

.gfc-vc-cols-2 .gfc-vc-col {
	flex: 1 1 50%;
	min-width: 0;
}

.gfc-vc-cols-3 .gfc-vc-col {
	flex: 1 1 33.333%;
	min-width: 0;
}

.gfc-vc-col img {
	max-width: 100%;
	height: auto;
	display: block;
	margin-bottom: 10px;
}

.gfc-vc-col h4 {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.3;
}

/* Widget main column (1-over-3 full-width block) */
.gfc-vc-widget-main-column {
	margin-top: 20px;
}

.gfc-vc-widget-main-column img {
	max-width: 100%;
	height: auto;
	display: block;
	margin-bottom: 10px;
}

.gfc-vc-widget-main-column h4 {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.3;
}

/* Home featured block */
.gfc-vc-widget-home-featured {
	margin-top: 20px;
}

.gfc-vc-widget-home-featured h3 {
	margin: 0 0 10px;
	font-size: 20px;
}


/* ==========================================================================
   10. PAGINATION
   ========================================================================== */

.gfc-vc-pagination {
	margin: 24px 0;
	text-align: center;
	font-size: 14px;
}

.gfc-vc-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 2px;
	border: 1px solid #ddd;
	border-radius: 3px;
	text-decoration: none;
	color: #3a5a40;
	background: #fff;
	transition: background 0.15s ease, color 0.15s ease;
}

.gfc-vc-pagination .page-numbers:hover {
	background: #eef2eb;
}

.gfc-vc-pagination .page-numbers.current {
	background: #3a5a40;
	color: #fff;
	border-color: #3a5a40;
}

.gfc-vc-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	cursor: default;
}

.gfc-vc-pagination .page-numbers.prev,
.gfc-vc-pagination .page-numbers.next {
	font-weight: 600;
}


/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
	.gfc-vc-filter-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gfc-vc-filter-grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	/* Stack filter grids */
	.gfc-vc-filter-grid,
	.gfc-vc-filter-grid-3 {
		grid-template-columns: 1fr;
	}

	/* Stack news items */
	.gfc-vc-news-item {
		flex-direction: column;
		gap: 12px;
	}

	.gfc-vc-news-image {
		flex: none;
	}

	.gfc-vc-news-image img {
		width: 100%;
		max-width: 300px;
	}

	/* Stack reader items */
	.gfc-vc-reader-item {
		flex-direction: column;
		gap: 12px;
	}

	.gfc-vc-reader-image {
		flex: none;
	}

	.gfc-vc-reader-image img {
		width: 100%;
		max-width: 200px;
	}

	/* Widget columns stack */
	.gfc-vc-widget-cols {
		flex-direction: column;
		gap: 16px;
	}

	.gfc-vc-cols-2 .gfc-vc-col,
	.gfc-vc-cols-3 .gfc-vc-col {
		flex: none;
		width: 100%;
	}

	/* Tables become scrollable */
	.gfc-vc-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Form row stack */
	.gfc-vc-form-row {
		flex-direction: column;
	}

	.gfc-vc-text-input {
		flex: none;
		width: 100%;
	}

	/* Form actions stack */
	.gfc-vc-form-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.gfc-vc-btn {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.gfc-vc-search-form {
		padding: 14px 16px;
	}

	.gfc-vc-policy-card,
	.gfc-vc-internship-card {
		padding: 14px 16px;
	}

	.gfc-vc-news-title,
	.gfc-vc-internship-card h3,
	.gfc-vc-policy-card h3 {
		font-size: 16px;
	}
}
