/**
 * GFC Content Elements — Frontend Styles
 *
 * Shared styles for all GFC VC elements.
 *
 * @package GFC_Content_Elements
 */

/* =========================================================================
   Grid & Layout
   ========================================================================= */

.gfc-element-grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}

.gfc-element-grid .gfc-grid-item {
	padding: 0 15px;
	margin-bottom: 30px;
	box-sizing: border-box;
}

.gfc-element-grid.gfc-cols-1 .gfc-grid-item { width: 100%; }
.gfc-element-grid.gfc-cols-2 .gfc-grid-item { width: 50%; }
.gfc-element-grid.gfc-cols-3 .gfc-grid-item { width: 33.333%; }
.gfc-element-grid.gfc-cols-4 .gfc-grid-item { width: 25%; }

@media (max-width: 999px) {
	.gfc-element-grid.gfc-cols-3 .gfc-grid-item,
	.gfc-element-grid.gfc-cols-4 .gfc-grid-item { width: 50%; }
}
@media (max-width: 690px) {
	.gfc-element-grid .gfc-grid-item { width: 100% !important; }
}

/* =========================================================================
   Card / Item Styles
   ========================================================================= */

.gfc-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.gfc-card-image {
	position: relative;
	overflow: hidden;
}

.gfc-card-image img {
	width: 100%;
	height: auto;
	display: block;
}

.gfc-card-body {
	padding: 20px;
	flex: 1;
}

.gfc-card-body h4 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
}

.gfc-card-body h4 a {
	color: inherit;
	text-decoration: none;
}

.gfc-card-body h4 a:hover {
	color: #27ae60;
}

.gfc-card-meta {
	font-size: 13px;
	color: #888;
	margin-bottom: 8px;
}

.gfc-card-excerpt {
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

.gfc-card-footer {
	padding: 10px 20px;
	border-top: 1px solid #e5e5e5;
	font-size: 13px;
}

/* =========================================================================
   List Style
   ========================================================================= */

.gfc-list-item {
	padding: 20px 0;
	border-bottom: 1px solid #e5e5e5;
	display: flex;
	gap: 20px;
}

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

.gfc-list-item-image {
	flex: 0 0 150px;
}

.gfc-list-item-image img {
	width: 100%;
	height: auto;
	display: block;
}

.gfc-list-item-content {
	flex: 1;
}

.gfc-list-item-content h4 {
	margin: 0 0 5px;
}

.gfc-list-item-content h4 a {
	color: inherit;
	text-decoration: none;
}

.gfc-list-item-content h4 a:hover {
	color: #27ae60;
}

@media (max-width: 690px) {
	.gfc-list-item {
		flex-direction: column;
	}
	.gfc-list-item-image {
		flex: 0 0 auto;
		max-width: 200px;
	}
}

/* =========================================================================
   Table Style
   ========================================================================= */

.gfc-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.gfc-table th,
.gfc-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #e5e5e5;
	font-size: 14px;
}

.gfc-table th {
	background: #f7f7f7;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.gfc-table tr:hover td {
	background: #fafafa;
}

.gfc-table a {
	color: #27ae60;
}

/* =========================================================================
   Sponsor Logo Grid
   ========================================================================= */

.gfc-sponsor-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 30px;
	margin: 20px 0;
}

.gfc-sponsor-grid-item {
	text-align: center;
}

.gfc-sponsor-grid-item img {
	max-width: 200px;
	max-height: 100px;
	width: auto;
	height: auto;
}

.gfc-sponsor-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
	margin: 20px 0;
}

.gfc-sponsor-row-item img {
	max-height: 60px;
	width: auto;
}

/* =========================================================================
   Social Icon Row
   ========================================================================= */

.gfc-social-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
	margin: 10px 0;
}

.gfc-social-row-item img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

/* =========================================================================
   Header Banner
   ========================================================================= */

.gfc-header-banner-item {
	position: relative;
	background-size: cover;
	background-position: center;
	min-height: 200px;
	padding: 40px;
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.gfc-header-banner-text {
	color: #fff;
	max-width: 700px;
}

.gfc-header-banner-text h3 {
	color: #fff;
	margin: 0 0 10px;
}

/* =========================================================================
   Policy Meta Table (within elements)
   ========================================================================= */

.gfc-policy-meta-table,
.gfc-internship-meta-table {
	border-collapse: collapse;
	width: 100%;
}

.gfc-policy-meta-table td,
.gfc-internship-meta-table td {
	padding: 8px 12px;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.gfc-meta-label {
	width: 200px;
	background: #f9f9f9;
}

/* =========================================================================
   Widget Display
   ========================================================================= */

.gfc-widget-element {
	margin-bottom: 30px;
}

/* =========================================================================
   Single Header Banner (inline render mode)
   ========================================================================= */

.gfc-single-header-banner {
	position: relative;
	background-size: cover;
	background-position: center;
	min-height: 300px;
	padding: 60px 40px;
	display: flex;
	align-items: center;
	margin-bottom: 0;
}

.gfc-single-header-text {
	color: #fff;
	max-width: 700px;
}

.gfc-single-header-text h2 {
	color: #fff;
	margin: 0 0 15px;
	font-size: 32px;
	line-height: 1.2;
}

.gfc-single-header-body,
.gfc-single-header-body p {
	color: #fff;
	font-size: 16px;
	line-height: 1.6;
}

@media (max-width: 768px) {
	.gfc-single-header-banner {
		min-height: 200px;
		padding: 30px 20px;
	}
	.gfc-single-header-text h2 {
		font-size: 24px;
	}
}

/* =========================================================================
   Scroll-Triggered Animations (Phase 1)
   ========================================================================= */

[data-gfc-animation="fade-in-from-bottom"] {
	opacity: 0;
	transform: translateY(60px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-gfc-animation="fade-in-from-right"] {
	opacity: 0;
	transform: translateX(60px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-gfc-animation="zoom-out-reveal"] {
	opacity: 0;
	transform: scale(1.12);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-gfc-animation].gfc-animated {
	opacity: 1;
	transform: none;
}

/* =========================================================================
   Card Style Variants
   ========================================================================= */

/* Elevated: remove border, add subtle box-shadow */
.gfc-card.gfc-card-elevated {
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Bordered: explicit border, no shadow (matches default) */
.gfc-card.gfc-card-bordered {
	border: 1px solid #e5e5e5;
	box-shadow: none;
}

/* =========================================================================
   Hover Effects
   ========================================================================= */

/* Zoom: image scales up on hover */
.gfc-hover-zoom .gfc-card-image {
	overflow: hidden;
}
.gfc-hover-zoom .gfc-card-image img {
	transition: transform 0.35s ease;
}
.gfc-hover-zoom:hover .gfc-card-image img,
.gfc-hover-zoom:hover .gfc-list-item-image img {
	transform: scale(1.05);
}

/* Shadow: card lifts on hover */
.gfc-hover-shadow {
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.gfc-hover-shadow:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

/* List-item hover shadow adjustments */
.gfc-list-item.gfc-hover-shadow {
	padding: 20px;
	margin: 0 0 10px;
	border-bottom: none;
	border-radius: 3px;
}

/* =========================================================================
   Border Radius Utilities
   ========================================================================= */

.gfc-radius-3 { border-radius: 3px; }
.gfc-radius-5 { border-radius: 5px; }
.gfc-radius-10 { border-radius: 10px; }
.gfc-radius-3 .gfc-card-image img,
.gfc-radius-5 .gfc-card-image img,
.gfc-radius-10 .gfc-card-image img {
	border-radius: inherit inherit 0 0;
}

/* =========================================================================
   Filter Tabs (Universal Grid)
   ========================================================================= */

.gfc-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 25px;
}

.gfc-filter-tab {
	padding: 6px 16px;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: transparent;
	cursor: pointer;
	font-family: Raleway, sans-serif;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gfc-filter-tab.active,
.gfc-filter-tab:hover {
	background: #27ae60;
	color: #fff;
	border-color: #27ae60;
}

/* =========================================================================
   Carousel (Flickity integration)
   ========================================================================= */

.gfc-carousel {
	width: 100%;
}

.gfc-carousel .gfc-carousel-cell {
	padding: 0 15px;
	box-sizing: border-box;
}

/* Responsive cell widths (when Flickity hasn't set inline widths) */
.gfc-carousel .gfc-carousel-cell { width: 33.333%; }

@media (max-width: 999px) {
	.gfc-carousel .gfc-carousel-cell { width: 50%; }
}
@media (max-width: 690px) {
	.gfc-carousel .gfc-carousel-cell { width: 100%; }
}

/* Flickity navigation overrides */
.gfc-carousel .flickity-prev-next-button {
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
}
.gfc-carousel .flickity-prev-next-button:hover {
	background: rgba(0, 0, 0, 0.7);
}
.gfc-carousel .flickity-page-dots {
	bottom: -30px;
}
.gfc-carousel .flickity-page-dots .dot {
	background: #27ae60;
}

/* =========================================================================
   Load More Button
   ========================================================================= */

.gfc-load-more-wrap {
	text-align: center;
	margin-top: 30px;
}

.gfc-load-more-btn {
	display: inline-block;
	padding: 12px 30px;
	background: #27ae60;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-family: Raleway, sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}
.gfc-load-more-btn:hover {
	background: #219a52;
}
.gfc-load-more-btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* =========================================================================
   Text Tone (light on dark backgrounds)
   ========================================================================= */

.gfc-text-light,
.gfc-text-light .gfc-card-body h4 a,
.gfc-text-light .gfc-card-meta,
.gfc-text-light .gfc-card-excerpt,
.gfc-text-light .gfc-list-item-content h4 a {
	color: #fff;
}
.gfc-text-light .gfc-card-body h4 a:hover,
.gfc-text-light .gfc-list-item-content h4 a:hover {
	color: #ddd;
}
