*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	line-height: 1.65;
	overflow-x: hidden
}

.nav.scrolled {
	box-shadow: 0 2px 20px rgba(11, 35, 112, .1)
}

.nav-logo {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.55rem;
	font-weight: 800;
	color: var(--navy);
	text-decoration: none;
	letter-spacing: .02em
}

.nav-logo span {
	color: var(--red)
}

.nav-links {
	display: flex;
	align-items: center;
	list-style: none
}

.nav-links a {
	color: var(--muted);
	font-size: .83rem;
	font-weight: 500;
	text-decoration: none;
	padding: .4rem .7rem;
	border-radius: 6px;
	transition: color .2s, background .2s
}

.nav-links a:hover, .nav-links a.active {
	color: var(--navy);
	background: rgba(11, 35, 112, .05)
}

.nav-links a.active {
	font-weight: 600
}

.btn-login {
	border: 1px solid var(--navy);
	color: var(--navy);
	background: transparent;
	padding: .4rem 1.1rem;
	border-radius: 8px;
	font-size: .83rem;
	font-weight: 600;
	text-decoration: none;
	transition: all .2s
}

.btn-login:hover {
	background: var(--navy);
	color: white
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
	padding: .25rem
}

.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--navy);
	border-radius: 2px
}

.mobile-menu {
	display: none;
	position: fixed;
	top: 64px;
	left: 0;
	right: 0;
	background: white;
	border-bottom: 1px solid var(--border);
	padding: 1rem 5%;
	z-index: 999
}

.mobile-menu.open {
	display: block
}

.mobile-menu a {
	display: block;
	padding: .7rem 0;
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px solid var(--border)
}

.mobile-menu a:last-child {
	border-bottom: none
}

.hero-band {
	background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy2) 100%);
	color: white;
	padding: 5rem 5% 4rem;
	margin-top: 64px;
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns:1fr 1fr;
	gap: 3rem;
	align-items: center;
	max-width: none;
}

@media (max-width: 760px) {
	.hero-band {
		grid-template-columns:1fr;
		padding: 4rem 1.25rem 3rem
	}
}

.hero-band::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(255, 255, 255, .05) 0%, transparent 60%), radial-gradient(ellipse 40% 50% at 20% 80%, rgba(230, 57, 70, .1) 0%, transparent 55%)
}

.hero-text {
	position: relative;
	z-index: 1;
	padding: 0 5%
}

.hero-text h1 {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -.02em;
	max-width: 520px
}

.hero-text h1 span {
	color: #FF8C94
}

.hero-text p {
	color: rgba(255, 255, 255, .7);
	margin-top: .85rem;
	max-width: 440px;
	font-size: 1rem
}

.hero-video-thumb {
	position: relative;
	z-index: 1;
	padding-right: 5%
}

.video-thumb-wrap {
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
	aspect-ratio: 16/9;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .25s;
}

.video-thumb-wrap:hover {
	transform: scale(1.02)
}

.video-thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .7;
	position: absolute;
	inset: 0
}

.play-btn {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(230, 57, 70, .9);
	border: 3px solid white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	position: relative;
	z-index: 2;
	transition: transform .2s, background .2s;
}

.video-thumb-wrap:hover .play-btn {
	transform: scale(1.1);
	background: var(--red)
}

.thumb-label {
	position: absolute;
	bottom: .75rem;
	left: .75rem;
	z-index: 2;
	background: rgba(7, 21, 69, .8);
	color: white;
	padding: .3rem .7rem;
	border-radius: 6px;
	font-size: .75rem;
	font-weight: 600
}

.thumb-duration {
	position: absolute;
	bottom: .75rem;
	right: .75rem;
	z-index: 2;
	background: rgba(0, 0, 0, .7);
	color: white;
	padding: .2rem .5rem;
	border-radius: 4px;
	font-size: .73rem
}

.library-section {
	padding: 4rem 5%;
	max-width: 1200px;
	margin: 0 auto
}

.library-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2rem
}

.library-header h2 {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.7rem;
	font-weight: 800;
	color: var(--text);
	border-left: 3px solid var(--red);
	padding-left: .75rem
}

.module-count {
	font-size: .82rem;
	color: var(--muted)
}

.filter-tabs {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	margin-bottom: 2rem
}

.filter-tab {
	background: white;
	border: 1px solid var(--border);
	color: var(--muted);
	font-size: .82rem;
	font-weight: 600;
	padding: .4rem 1rem;
	border-radius: 999px;
	cursor: pointer;
	transition: all .2s;
	white-space: nowrap
}

.filter-tab:hover {
	border-color: rgba(11, 35, 112, .2);
	color: var(--navy)
}

.filter-tab.active {
	background: var(--navy);
	color: white;
	border-color: var(--navy)
}

.video-grid {
	display: grid;
	grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem
}

.video-card {
	background: white;
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	transition: transform .25s, box-shadow .25s;
	cursor: pointer
}

.video-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 36px rgba(11, 35, 112, .14)
}

.video-thumb {
	aspect-ratio: 16/9;
	background: var(--bg2);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center
}

.video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s
}

.video-card:hover .video-thumb img {
	transform: scale(1.04)
}

.video-thumb .play-overlay {
	position: absolute;
	inset: 0;
	background: rgba(11, 35, 112, .35);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .25s;
}

.video-card:hover .play-overlay {
	opacity: 1
}

.play-circle {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--red);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem
}

.vid-duration {
	position: absolute;
	bottom: .5rem;
	right: .5rem;
	background: rgba(0, 0, 0, .72);
	color: white;
	font-size: .7rem;
	padding: .15rem .45rem;
	border-radius: 4px
}

.vid-cat-badge {
	position: absolute;
	top: .5rem;
	left: .5rem;
	background: rgba(11, 35, 112, .8);
	color: white;
	font-size: .68rem;
	font-weight: 700;
	padding: .18rem .5rem;
	border-radius: 4px;
	letter-spacing: .04em;
	text-transform: uppercase
}

.video-info {
	padding: 1.1rem 1.25rem
}

.vid-meta {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: .4rem
}

.vid-cat {
	font-size: .72rem;
	font-weight: 700;
	color: var(--red);
	text-transform: uppercase;
	letter-spacing: .06em
}

.vid-views {
	font-size: .75rem;
	color: var(--muted)
}

.vid-views::before {
	content: '·';
	margin-right: .4rem
}

.video-info h3 {
	font-size: .98rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1.35
}

.video-info p {
	font-size: .83rem;
	color: var(--muted);
	margin-top: .3rem;
	line-height: 1.55
}

.vid-progress {
	margin-top: .75rem;
	background: var(--bg);
	border-radius: 4px;
	height: 4px;
	overflow: hidden
}

.vid-progress-bar {
	height: 100%;
	background: var(--red);
	border-radius: 4px;
	transition: width .3s
}

.modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(7, 21, 69, .88);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 1.5rem
}

.modal-overlay.open {
	display: flex
}

.modal-box {
	background: black;
	border-radius: 16px;
	overflow: hidden;
	width: 100%;
	max-width: 860px;
	position: relative
}

.modal-close {
	position: absolute;
	top: .75rem;
	right: .75rem;
	z-index: 10;
	background: rgba(255, 255, 255, .12);
	border: none;
	color: white;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s
}

.modal-close:hover {
	background: rgba(255, 255, 255, .25)
}

.modal-video {
	aspect-ratio: 16/9;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center
}

.modal-video-placeholder {
	text-align: center;
	color: rgba(255, 255, 255, .5);
	padding: 2rem
}

.modal-video-placeholder p {
	margin-top: .5rem;
	font-size: .85rem
}

.modal-info {
	background: var(--navy-dark);
	padding: 1.25rem 1.5rem
}

.modal-info h3 {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.2rem;
	font-weight: 800;
	color: white;
	margin-bottom: .3rem
}

.modal-info p {
	font-size: .85rem;
	color: rgba(255, 255, 255, .6)
}

.cta-band {
	background: linear-gradient(135deg, var(--navy-dark), var(--navy2));
	padding: 4.5rem 5%;
	text-align: center;
	position: relative;
	overflow: hidden
}

.cta-band::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(230, 57, 70, .1) 0%, transparent 65%)
}

.cta-band h2 {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: clamp(1.7rem, 4vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -.02em;
	color: white;
	line-height: 1.1;
	position: relative;
	z-index: 1;
	max-width: 700px;
	margin: 0 auto
}

.cta-band p {
	color: rgba(255, 255, 255, .68);
	max-width: 480px;
	margin: .75rem auto 2rem;
	position: relative;
	z-index: 1
}

.cta-row {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	position: relative;
	z-index: 1
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: var(--red);
	color: white;
	padding: .8rem 1.75rem;
	border-radius: 8px;
	font-weight: 700;
	font-size: .95rem;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all .2s
}

.btn-primary:hover {
	background: var(--red2);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(230, 57, 70, .3)
}

.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .6s ease, transform .6s ease
}

.reveal.up {
	opacity: 1;
	transform: translateY(0)
}

footer {
	background: var(--navy-dark);
	color: rgba(255, 255, 255, .55);
	padding: 2.5rem 5%
}

.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem
}

.footer-logo {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.8rem;
	font-weight: 800;
	color: white;
	text-decoration: none
}

.footer-logo span {
	color: #FF8C94
}

.footer-links {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
	justify-content: center
}

.footer-links a {
	color: rgba(255, 255, 255, .45);
	text-decoration: none;
	font-size: .83rem;
	transition: color .2s
}

.footer-links a:hover {
	color: white
}

.footer-copy {
	font-size: .78rem;
	color: rgba(255, 255, 255, .3);
	text-align: center
}

.scroll-top.show {
	opacity: 1;
	transform: scale(1);
	pointer-events: all
}

@media (max-width: 900px) {
	.nav-links, .btn-login {
		display: none
	}

	.nav-toggle {
		display: flex
	}
}

@media (max-width: 600px) {
	.library-section {
		padding: 3rem 1.25rem
	}

	.cta-band {
		padding: 3.5rem 1.25rem
	}
}
