/* ==========================================================================
   IISAUH THEME 2026 — NEWSLETTERS PAGE STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO HEADER BANNER (Title Only, Full Width Standard & Moving Icons)
   -------------------------------------------------------------------------- */

.newsletter-hero {
	position: relative;
	background: linear-gradient(135deg, #071a2d 0%, #0f2a4a 45%, #0d3859 100%);
	padding: clamp(32px, 3.5vw, 48px) 0 clamp(32px, 3.5vw, 48px);
	overflow: hidden;
	color: #ffffff;
}

.newsletter-hero__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: 100%;
	pointer-events: none;
	overflow: hidden;
	z-index: 1;
}

.newsletter-hero__glow {
	position: absolute;
	width: clamp(260px, 35vw, 500px);
	height: clamp(260px, 35vw, 500px);
	border-radius: 50%;
	top: -20%;
	right: -5%;
	background: radial-gradient(circle, rgba(0, 168, 150, 0.28) 0%, rgba(0, 168, 150, 0) 70%);
	filter: blur(40px);
}

.newsletter-hero__glow--left {
	top: 20%;
	left: -10%;
	background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0) 70%);
}

.newsletter-hero__pattern {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: 0.7;
}

/* Floating Newsletter Icons (Slow Drift) */
.nl-floating-icon {
	position: absolute;
	pointer-events: none;
	z-index: 1;
	color: #38bdf8;
	opacity: 0.28;
	filter: drop-shadow(0 0 8px rgba(0, 168, 150, 0.25));
	will-change: transform;
}

.nl-floating-icon svg {
	display: block;
}

.nl-floating-icon--1 {
	top: 18%;
	left: 28%;
	color: #38bdf8;
	opacity: 0.28;
	animation: nlFloatSlow1 24s ease-in-out infinite alternate;
}

.nl-floating-icon--2 {
	top: 52%;
	left: 45%;
	color: #02c4ae;
	opacity: 0.24;
	animation: nlFloatSlow2 28s ease-in-out infinite alternate;
}

.nl-floating-icon--3 {
	top: 20%;
	right: 18%;
	color: #38bdf8;
	opacity: 0.26;
	animation: nlFloatSlow3 26s ease-in-out infinite alternate;
}

.nl-floating-icon--4 {
	bottom: 22%;
	left: 10%;
	color: #00a896;
	opacity: 0.22;
	animation: nlFloatSlow1 30s ease-in-out infinite alternate;
}

.nl-floating-icon--5 {
	top: 66%;
	right: 12%;
	color: #38bdf8;
	opacity: 0.25;
	animation: nlFloatSlow2 22s ease-in-out infinite alternate;
}

.nl-floating-icon--6 {
	top: 14%;
	left: 6%;
	color: #02c4ae;
	opacity: 0.22;
	animation: nlFloatSlow3 25s ease-in-out infinite alternate;
}

@keyframes nlFloatSlow1 {
	0%   { transform: translate(0, 0) rotate(0deg); }
	50%  { transform: translate(14px, -18px) rotate(6deg); }
	100% { transform: translate(-10px, 12px) rotate(-4deg); }
}

@keyframes nlFloatSlow2 {
	0%   { transform: translate(0, 0) rotate(0deg); }
	50%  { transform: translate(-16px, 15px) rotate(-8deg); }
	100% { transform: translate(12px, -10px) rotate(5deg); }
}

@keyframes nlFloatSlow3 {
	0%   { transform: translate(0, 0) rotate(0deg); }
	50%  { transform: translate(10px, 16px) rotate(5deg); }
	100% { transform: translate(-14px, -12px) rotate(-7deg); }
}

.newsletter-hero__shell {
	position: relative;
	z-index: 2;
	width: min(100%, var(--container-max, 1680px));
	max-width: var(--container-max, 1680px);
	margin: 0 auto;
	padding: 0 var(--gutter, clamp(16px, 3.5vw, 40px));
	box-sizing: border-box;
}

.newsletter-hero__title {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: clamp(22px, 2.6vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	color: #ffffff;
	letter-spacing: -0.01em;
}

.newsletter-hero__title-icon.about-hero__badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	min-width: 26px;
	min-height: 26px;
	border-radius: 50%;
	background: var(--teal, #00a896);
	color: #07172b;
	flex-shrink: 0;
	box-shadow: 0 0 16px rgba(0, 168, 150, 0.4);
}

.newsletter-hero__title-icon svg {
	width: 14px;
	height: 14px;
	display: block;
	stroke: currentColor;
}

.newsletter-hero__title-text {
	color: #ffffff;
}

/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
   2. NEWSLETTERS CONTENT SECTION & OUTSIDE PATTERN
   -------------------------------------------------------------------------- */

.newsletter-body-section {
	position: relative;
	padding: clamp(48px, 6vw, 84px) 0 clamp(70px, 9vw, 110px);
	background: #f8fafc;
	overflow: hidden;
	isolation: isolate;
}

/* Outside Backdrop Pattern with Atmospheric Orbs & Grid */
.newsletter-outer-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: 100%;
	pointer-events: none;
	overflow: hidden;
	z-index: 1;
}

.nl-ambient-orb {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(80px);
	opacity: 0.6;
}

.nl-ambient-orb--left {
	top: 5%;
	left: -120px;
	width: clamp(340px, 35vw, 550px);
	height: clamp(340px, 35vw, 550px);
	background: radial-gradient(circle, rgba(0, 168, 150, 0.18) 0%, rgba(2, 196, 174, 0.05) 50%, transparent 70%);
}

.nl-ambient-orb--right {
	bottom: 5%;
	right: -120px;
	width: clamp(360px, 38vw, 580px);
	height: clamp(360px, 38vw, 580px);
	background: radial-gradient(circle, rgba(2, 132, 199, 0.16) 0%, rgba(56, 189, 248, 0.04) 50%, transparent 70%);
}

.newsletter-outer-pattern-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	overflow: hidden;
	pointer-events: none;
}

.newsletter-body-section .container {
	position: relative;
	z-index: 2;
	width: min(100%, var(--container-max, 1680px));
	max-width: var(--container-max, 1680px);
	margin: 0 auto;
	padding: 0 var(--gutter, clamp(16px, 3.5vw, 40px));
	box-sizing: border-box;
}

/* Editorial Introduction Content (if written in page editor) */
.newsletter-editorial-content {
	margin-bottom: clamp(28px, 3.5vw, 44px);
	color: #334155;
	font-size: 15px;
	line-height: 1.7;
}

/* Grid of Newsletter Cards */
.newsletter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: clamp(22px, 2.8vw, 36px);
	align-items: stretch;
}

/* --------------------------------------------------------------------------
   3. MODERN ICON NEWSLETTER CARD DESIGN
   -------------------------------------------------------------------------- */

.newsletter-card {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
	box-shadow: 0 4px 14px rgba(15, 42, 74, 0.04), 0 1px 3px rgba(15, 42, 74, 0.02);
	overflow: hidden;
}

/* Left subtle accent bar */
.newsletter-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, #00a896 0%, #0284c7 100%);
	opacity: 0;
	transition: opacity 0.3s ease, width 0.3s ease;
	border-radius: 16px 0 0 16px;
}

.newsletter-card:hover {
	transform: translateY(-6px);
	border-color: rgba(0, 168, 150, 0.4);
	box-shadow: 0 18px 36px rgba(15, 42, 74, 0.09), 0 4px 12px rgba(0, 168, 150, 0.06);
}

.newsletter-card:hover::before {
	opacity: 1;
	width: 5px;
}

.newsletter-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	justify-content: space-between;
}

/* Card Header: Icon on Left, Title Wrap on Right */
.newsletter-card__header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 22px;
	flex: 1;
}

/* Modern Newsletter Icon Badge */
.newsletter-card__icon-badge {
	position: relative;
	width: 52px;
	height: 52px;
	min-width: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(0, 168, 150, 0.12) 0%, rgba(2, 132, 199, 0.14) 100%);
	border: 1px solid rgba(0, 168, 150, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #00a896;
	transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
	box-shadow: 0 4px 12px rgba(0, 168, 150, 0.1);
	flex-shrink: 0;
}

.newsletter-card:hover .newsletter-card__icon-badge {
	background: linear-gradient(135deg, #00a896 0%, #0284c7 100%);
	color: #ffffff;
	border-color: transparent;
	transform: scale(1.05) rotate(-2deg);
	box-shadow: 0 8px 20px rgba(0, 168, 150, 0.35);
}

.newsletter-card__icon-badge svg {
	width: 26px;
	height: 26px;
	display: block;
	transition: transform 0.3s ease;
}

/* Title & Small Series Eyebrow Wrap */
.newsletter-card__title-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.newsletter-card__series-title {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--teal, #00a896);
	display: block;
	line-height: 1.2;
}

.newsletter-card__title {
	font-size: 17px;
	font-weight: 700;
	color: #0f2a4a;
	margin: 0;
	line-height: 1.38;
	letter-spacing: -0.01em;
	transition: color 0.2s ease;
	min-width: 0;
	word-break: break-word;
	overflow-wrap: break-word;
}

.newsletter-card:hover .newsletter-card__title {
	color: #00a896;
}

/* Modern Colored Academic Year Badge */
.newsletter-card__ay-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	padding: 3.5px 11px;
	border-radius: 6px;
	background: linear-gradient(135deg, rgba(0, 168, 150, 0.08) 0%, rgba(2, 132, 199, 0.12) 100%);
	border: 1px solid rgba(0, 168, 150, 0.25);
	color: #008779;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-top: 3px;
	transition: all 0.25s ease;
}

.newsletter-card__ay-badge svg {
	color: #00a896;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.newsletter-card:hover .newsletter-card__ay-badge {
	background: linear-gradient(135deg, rgba(0, 168, 150, 0.14) 0%, rgba(2, 132, 199, 0.18) 100%);
	border-color: rgba(0, 168, 150, 0.4);
	transform: translateX(2px);
}

.newsletter-card:hover .newsletter-card__ay-badge svg {
	transform: scale(1.1);
}

/* Bottom Row: View button */
.newsletter-card__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
}

.newsletter-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 8px;
	background: #f1f5f9;
	color: #0f2a4a;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid #e2e8f0;
	transition: all 0.25s ease;
}

.newsletter-card:hover .newsletter-card__btn {
	background: #0f2a4a;
	color: #ffffff;
	border-color: #0f2a4a;
	box-shadow: 0 4px 14px rgba(15, 42, 74, 0.22);
}

.newsletter-card:hover .newsletter-card__btn svg {
	transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   4. EMPTY STATE
   -------------------------------------------------------------------------- */

.newsletter-empty-state {
	background: #ffffff;
	border: 1px dashed #cbd5e1;
	border-radius: 16px;
	padding: clamp(48px, 6vw, 72px) 24px;
	text-align: center;
	max-width: 600px;
	margin: 20px auto;
}

.newsletter-empty-state__icon {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #94a3b8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.newsletter-empty-state__title {
	font-size: 19px;
	font-weight: 700;
	color: #0f2a4a;
	margin: 0 0 8px;
}

.newsletter-empty-state__desc {
	font-size: 14px;
	color: #64748b;
	max-width: 440px;
	margin: 0 auto;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
	.nl-floating-icon {
		opacity: 0.15;
		transform: scale(0.8);
	}

	.newsletter-outer-pattern-svg,
	.nl-ambient-orb--right,
	.newsletter-hero__glow {
		display: none;
	}

	.newsletter-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.newsletter-card {
		padding: 20px 18px;
	}

	.newsletter-card__title {
		font-size: 16.5px;
	}
}

@media (max-width: 480px) {
	.newsletter-card {
		padding: 16px 14px;
	}

	.newsletter-card__icon-badge {
		width: 46px;
		height: 46px;
		min-width: 46px;
		border-radius: 12px;
	}

	.newsletter-card__icon-badge svg {
		width: 22px;
		height: 22px;
	}

	.newsletter-card__header {
		gap: 12px;
		margin-bottom: 16px;
	}

	.newsletter-card__title {
		font-size: 15.5px;
	}
}
