/**
 * Articles Section Styles
 * Design: GPA 2026 Homepage Articles Section
 */

.gpa-2026-articles {
	background: transparent;
	color: #FFFFFF;
	width: 100%;
	overflow: visible;
}

.gpa-2026-articles__inner {
	position: relative;
    padding-bottom: 24px;
}

.gpa-2026-articles__title {
	/* Base styling now handled by .gpa26-section-title utility class */
	padding: 0;
}

/* Navigation Buttons (Desktop Only) */
.gpa-2026-articles__navigation {
	display: none;
}

.gpa-2026-articles__nav-btn {
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.3);
	border: none;
	border-radius: 100px;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.2s ease;
	flex-shrink: 0;
}

.gpa-2026-articles__nav-btn:hover {
	background: rgba(255, 255, 255, 0.4);
	transform: scale(1.05);
}

.gpa-2026-articles__nav-btn:active {
	transform: scale(0.95);
}

.gpa-2026-articles__nav-btn.swiper-button-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.gpa-2026-articles__nav-btn.swiper-button-disabled:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1);
}

.gpa-2026-articles__nav-btn svg {
	max-width: 24px;
	max-height: 24px;
	width: auto;
	height: auto;
	display: block;
	flex-shrink: 0;
}

/* Grid/Slider Container */
.gpa-2026-articles__grid {
	/* Removed overflow properties - now handled by Swiper */
}

.gpa-2026-articles__grid::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

/* Article Item */
.gpa-2026-articles__item {
	flex-shrink: 0;
	width: 250px;
}

/* Article Card */
.gpa-2026-articles__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, border-color 0.3s ease;
	overflow: hidden;
}

.gpa-2026-articles__card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, 0.6);
}

/* Image */
.gpa-2026-articles__image {
	width: 100%;
	height: 180px;
	overflow: hidden;
	position: relative;
	flex-shrink: 0;
}

.gpa-2026-articles__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.gpa-2026-articles__card:hover .gpa-2026-articles__image img {
	transform: scale(1.05);
}

/* Content */
.gpa-2026-articles__content {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 140px;
	overflow: hidden;
}

/* Meta (Date | Source) */
.gpa-2026-articles__meta {
	font-family: 'Figtree', sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.5;
	color: #FFFFFF;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex-shrink: 0;
}

/* Text Container */
.gpa-2026-articles__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

/* Title */
.gpa-2026-articles__card-title {
	font-family: 'Figtree', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.5;
	color: #FFFFFF;
	margin: 0;
	height: 48px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	flex-shrink: 0;
}

/* Excerpt */
.gpa-2026-articles__excerpt {
	font-family: 'Figtree', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	color: #FFFFFF;
	margin: 0;
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* Swiper overrides */
.gpa-articles-slider {
	width: 100%;
	overflow: hidden;
	padding: 0 16px;
}

.gpa-articles-slider .swiper-wrapper {
	display: flex;
}

.gpa-articles-slider .swiper-slide {
	width: 250px;
	height: auto;
}

/* Tablet */
@media (min-width: 768px) {
	.gpa-2026-articles__navigation {
		display: flex;
		gap: 16px;
		position: absolute;
		right: 60px;
		top: 24px;
		transform: translateY(-50%);
	}
	
	.gpa-articles-slider {
		padding: 0 60px;
	}
	
	.gpa-2026-articles__item {
		width: 300px;
	}
	
	.gpa-2026-articles__image {
		height: 220px;
	}
	
	.gpa-2026-articles__content {
		min-height: 170px;
		gap: 8px;
	}
	
	.gpa-2026-articles__text {
		gap: 8px;
	}
	
	.gpa-2026-articles__card-title {
		font-size: 18px;
		height: 54px;
	}
	
	.gpa-articles-slider .swiper-slide {
		width: 300px;
	}
}

/* Desktop */
@media (min-width: 992px) {
	/* Title font-size now handled by .gpa26-section-title utility class */
	
	.gpa-articles-slider .swiper-slide {
		width: 300px;
	}
}

/* Large Desktop */
@media (min-width: 1280px) {
	.gpa-articles-slider {
		padding: 0 120px;
	}
	
	.gpa-2026-articles__navigation {
		right: 120px;
	}
}
