:root {
	--color-primary: #172554;
	--color-primary-soft: #2563eb;
	--color-accent: #7c3aed;

	--color-text: #172033;
	--color-text-soft: #64748b;

	--color-background: #ffffff;
	--color-surface: #f8fafc;
	--color-border: #e2e8f0;

	--container-width: 1200px;

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;

	--shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-text);

	font-family:
		"Vazirmatn",
		"Tahoma",
		"Arial",
		sans-serif;

	font-size: 16px;
	line-height: 1.8;

	direction: rtl;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	font: inherit;
}

.container {
	width: min(
		100% - 40px,
		var(--container-width)
	);

	margin-inline: auto;
}
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;

	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(14px);

	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	min-height: 76px;

	display: flex;
	align-items: center;
	gap: 32px;
}

.site-header__brand {
	flex-shrink: 0;
}

.site-header__brand img {
	display: block;
	width: 150px;
	height: auto;
	max-height: 60px;
}

.site-navigation {
	flex: 1;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 28px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.primary-menu a {
	color: var(--color-text-soft);
	font-size: 15px;
	font-weight: 600;

	transition: color 160ms ease;
}

.primary-menu a:hover {
	color: var(--color-primary-soft);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 44px;
	padding: 0 18px;

	border-radius: var(--radius-sm);

	font-size: 14px;
	font-weight: 700;

	transition:
		transform 160ms ease,
		box-shadow 160ms ease,
		background 160ms ease;
}

.button:hover {
	transform: translateY(-1px);
}

.button--primary {
	background: var(--color-primary-soft);
	color: #fff;
	box-shadow: var(--shadow-soft);
}

.button--ghost {
	background: var(--color-surface);
	color: var(--color-primary);
}
/* =========================
   HOME
========================= */

.home {
	position: relative;
	overflow-x: hidden;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;

	color: var(--color-primary-soft);

	font-size: 13px;
	font-weight: 800;
	letter-spacing: .02em;
}

.eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;

	border-radius: 50%;
	background: var(--color-primary-soft);
}


/* Hero */

.hero {
	padding: 110px 0 100px;

	background:
		radial-gradient(
			circle at 10% 20%,
			rgba(37, 99, 235, .08),
			transparent 32%
		),
		radial-gradient(
			circle at 90% 80%,
			rgba(124, 58, 237, .07),
			transparent 30%
		);
}

.hero__inner {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	align-items: center;
	gap: 80px;
}

.hero__content h1 {
	margin: 18px 0;

	font-size: clamp(42px, 5vw, 70px);
	line-height: 1.25;
	letter-spacing: -2px;
}

.hero__content h1 span {
	color: var(--color-primary-soft);
}

.hero__content p {
	max-width: 650px;

	margin: 0 0 32px;

	color: var(--color-text-soft);

	font-size: 18px;
	line-height: 2;
}

.hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.button--large {
	min-height: 52px;
	padding-inline: 24px;
}

.button--outline {
	border: 1px solid var(--color-border);
	background: #fff;
	color: var(--color-primary);
}


/* Hero Card */

.hero__visual {
	position: relative;
}

.hero-card {
	overflow: hidden;

	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 24px;

	background: rgba(255, 255, 255, .96);

	box-shadow:
		0 30px 80px rgba(15, 23, 42, .12);

	backdrop-filter: blur(20px);
}

.hero-card__image {
	position: relative;

	height: 150px;

	overflow: hidden;
}

.hero-card__image::after {
	content: "";

	position: absolute;
	inset: 0;

	background:
		linear-gradient(
			to top,
			rgba(15, 23, 42, .25),
			transparent 60%
		);
}

.hero-card__image img {
	width: 100%;
	height: 100%;

	object-fit: cover;
}

.hero-card__content {
	padding: 26px 28px 28px;
}


.hero-card__top {
	display: flex;
	justify-content: space-between;
	align-items: center;

	margin-bottom: 22px;

	color: var(--color-text-soft);

	font-size: 13px;
}

.hero-card__status {
	padding: 5px 10px;

	border-radius: 20px;

	background: #eff6ff;
	color: #2563eb;

	font-weight: 700;
}

.hero-card h3 {
	margin: 0 0 20px;

	font-size: 24px;
}

.progress {
	height: 8px;

	margin-bottom: 10px;

	border-radius: 20px;

	background: #e2e8f0;

	overflow: hidden;
}

.progress span {
	display: block;
	height: 100%;

	border-radius: inherit;

	background: linear-gradient(
		90deg,
		#2563eb,
		#6366f1
	);
}

.hero-card__meta {
	display: flex;
	justify-content: space-between;

	margin-bottom: 25px;

	color: var(--color-text-soft);

	font-size: 13px;
}

.hero-card__meta strong {
	color: var(--color-primary);
}

.hero-card__steps {
	display: grid;
	gap: 10px;
}

.hero-card__steps > div {
	display: flex;
	align-items: center;
	gap: 12px;

	padding: 12px;

	border-radius: 10px;

	background: #f8fafc;

	color: var(--color-text-soft);

	font-size: 13px;
}

.hero-card__steps span {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 27px;
	height: 27px;

	border-radius: 50%;

	background: #e2e8f0;

	font-size: 11px;
}

.hero-card__steps .is-complete {
	color: #2563eb;
}

.hero-card__steps .is-complete span {
	background: #dbeafe;
}

.hero-card__steps .is-active {
	background: #eff6ff;
	color: #172554;
	font-weight: 700;
}

.hero-card__steps .is-active span {
	background: #2563eb;
	color: white;
}


/* Sections */

.section {
	padding: 100px 0;
}

.section-heading {
	max-width: 700px;

	margin-bottom: 45px;
}

.section-heading h2 {
	margin: 12px 0;

	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.35;
}

.section-heading p {
	margin: 0;

	color: var(--color-text-soft);
}


/* Areas */

.area-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.area-card {
	position: relative;

	min-height: 250px;

	padding: 28px;

	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);

	background: #fff;

	transition:
		transform 200ms ease,
		box-shadow 200ms ease,
		border-color 200ms ease;
}

.area-card:hover {
	transform: translateY(-5px);

	border-color: #bfdbfe;

	box-shadow: var(--shadow-soft);
}

.area-card__number {
	color: #94a3b8;

	font-size: 12px;
	font-weight: 800;
}

.area-card h3 {
	margin: 55px 0 10px;

	font-size: 20px;
}

.area-card p {
	margin: 0;

	color: var(--color-text-soft);

	font-size: 14px;
	line-height: 1.9;
}

.area-card__arrow {
	position: absolute;

	bottom: 25px;
	left: 25px;

	color: var(--color-primary-soft);
}


/* Dark section */

.section--dark {
	background: #0f172a;
	color: white;
}

.section-heading--light p {
	color: #94a3b8;
}

.section-heading--light .eyebrow {
	color: #60a5fa;
}

.section-heading--light .eyebrow::before {
	background: #60a5fa;
}

.path-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.path-card {
	padding: 30px;

	border: 1px solid rgba(255,255,255,.1);
	border-radius: 20px;

	background: rgba(255,255,255,.04);

	transition: transform 200ms ease, background 200ms ease;
}

.path-card:hover {
	transform: translateY(-5px);
	background: rgba(255,255,255,.07);
}

.path-card > span {
	color: #60a5fa;

	font-size: 13px;
	font-weight: 800;
}

.path-card h3 {
	margin: 45px 0 12px;

	font-size: 23px;
}

.path-card p {
	min-height: 60px;

	color: #94a3b8;

	font-size: 14px;
}

.path-card a {
	display: inline-block;

	margin-top: 15px;

	color: #60a5fa;

	font-size: 14px;
	font-weight: 700;
}


/* Articles */

.section-heading--row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
}

.text-link {
	color: var(--color-primary-soft);

	font-size: 14px;
	font-weight: 700;
}

.article-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.article-card {
	overflow: hidden;

	border: 1px solid var(--color-border);
	border-radius: 20px;

	background: white;
}

.article-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;

	background-color: #172554;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;

	transition: transform 250ms ease;
}

.article-card:hover .article-card__image {
	transform: scale(1.04);
}


.article-card__content {
	padding: 24px;
}

.article-card__content > span {
	color: var(--color-primary-soft);

	font-size: 12px;
	font-weight: 800;
}

.article-card h3 {
	margin: 12px 0;

	font-size: 19px;
	line-height: 1.7;
}

.article-card p {
	color: var(--color-text-soft);

	font-size: 14px;
}

.article-card a {
	color: var(--color-primary-soft);

	font-size: 13px;
	font-weight: 700;
}


/* CTA */

.cta-section {
	padding: 0 0 100px;
}

.cta {
	position: relative;

	padding: 70px 40px;

	border-radius: 28px;

	background:
		radial-gradient(
			circle at 85% 20%,
			rgba(96,165,250,.25),
			transparent 30%
		),
		#172554;

	color: white;

	text-align: center;

	overflow: hidden;
}

.cta h2 {
	max-width: 700px;

	margin: 15px auto;

	font-size: clamp(30px, 4vw, 44px);
}

.cta p {
	margin: 0 auto 28px;

	color: #bfdbfe;
}


/* Responsive */

@media (max-width: 1000px) {

	.hero__inner {
		grid-template-columns: 1fr;
	}

	.hero__visual {
		max-width: 650px;
		width: 100%;
	}

	.area-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.path-grid,
	.article-grid {
		grid-template-columns: 1fr;
	}
}


@media (max-width: 700px) {

	.container {
		width: min(100% - 28px, var(--container-width));
	}

	.hero {
		padding: 70px 0;
	}

	.hero__content h1 {
		font-size: 42px;
	}

	.site-header__inner {
		min-height: 68px;
	}

	.site-navigation {
		display: none;
	}

	.area-grid {
		grid-template-columns: 1fr;
	}

	.section {
		padding: 70px 0;
	}

	.section-heading--row {
		display: block;
	}

	.section-heading--row .text-link {
		display: inline-block;
		margin-top: 10px;
	}
}

/* =========================
   HERO SLIDER
========================= */

.academy-hero-slider {
	position: relative;
	width: 100%;
}

.academy-hero-slider__track {
	position: relative;
	min-height: 390px;
}

.academy-hero-slide {
	position: absolute;
	inset: 0;

	opacity: 0;
	visibility: hidden;

	transform: translateX(-20px);

	transition:
		opacity 350ms ease,
		transform 350ms ease,
		visibility 350ms ease;
}

.academy-hero-slide.is-active {
	position: relative;

	opacity: 1;
	visibility: visible;

	transform: translateX(0);
}

.hero-card {
	padding: 28px;

	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 24px;

	background: rgba(255, 255, 255, .94);

	box-shadow:
		0 30px 80px rgba(15, 23, 42, .12);

	backdrop-filter: blur(20px);
}

.hero-card__description {
	margin: 0 0 22px;

	color: var(--color-text-soft);

	font-size: 14px;
	line-height: 1.9;
}

.hero-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;

	margin-top: 8px;

	color: var(--color-primary-soft);

	font-size: 13px;
	font-weight: 800;
}

.hero-card__link span {
	transition: transform 160ms ease;
}

.hero-card__link:hover span {
	transform: translateX(-4px);
}


/* Controls */

.academy-hero-slider__controls {
	display: flex;
	align-items: center;
	justify-content: flex-start;

	gap: 12px;

	margin-top: 18px;
}

.hero-slider-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 36px;
	height: 36px;

	padding: 0;

	border: 1px solid var(--color-border);
	border-radius: 50%;

	background: white;
	color: var(--color-primary);

	cursor: pointer;

	transition:
		background 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.hero-slider-button:hover {
	background: var(--color-primary-soft);
	color: white;

	transform: translateY(-2px);
}

.hero-slider-dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hero-slider-dot {
	width: 7px;
	height: 7px;

	padding: 0;

	border: 0;
	border-radius: 50%;

	background: #cbd5e1;

	cursor: pointer;

	transition:
		width 200ms ease,
		background 200ms ease;
}

.hero-slider-dot.is-active {
	width: 22px;

	border-radius: 10px;

	background: var(--color-primary-soft);
}

@media (max-width: 700px) {

	.hero-card__image {
		height: 130px;
	}

	.hero-card__content {
		padding: 22px;
	}

}
.learning-paths {
	padding: 100px 0;
}

.section-heading {
	margin-bottom: 48px;
}

.section-heading__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;

	margin-bottom: 12px;

	color: var(--color-primary-soft);

	font-size: 13px;
	font-weight: 800;
}

.section-heading h2 {
	margin: 0 0 10px;

	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.35;
}

.section-heading p {
	margin: 0;

	color: var(--color-text-soft);

	font-size: 15px;
}

.learning-paths__grid {
	display: grid;

	grid-template-columns:
		repeat(4, minmax(0, 1fr));

	gap: 16px;
}

.learning-path-card {
	position: relative;

	min-height: 250px;

	padding: 28px;

	display: flex;
	flex-direction: column;

	border: 1px solid var(--color-border);
	border-radius: 22px;

	background: #fff;

	color: var(--color-text);

	text-decoration: none;

	transition:
		transform 200ms ease,
		box-shadow 200ms ease,
		border-color 200ms ease;
}

.learning-path-card:hover {
	transform: translateY(-5px);

	border-color: rgba(37, 99, 235, .35);

	box-shadow:
		0 20px 50px rgba(15, 23, 42, .08);
}

.learning-path-card__number {
	align-self: flex-end;

	color: #94a3b8;

	font-size: 13px;
	font-weight: 700;
}

.learning-path-card__image {
	height: 90px;

	margin: 15px -10px 20px;

	overflow: hidden;

	border-radius: 14px;
}

.learning-path-card__image img {
	width: 100%;
	height: 100%;

	object-fit: cover;
}

.learning-path-card__content {
	margin-top: auto;
}

.learning-path-card h3 {
	margin: 0 0 12px;

	font-size: 20px;
}

.learning-path-card p {
	margin: 0;

	color: var(--color-text-soft);

	font-size: 14px;
	line-height: 1.9;
}

.learning-path-card__arrow {
	margin-top: 20px;

	color: var(--color-primary-soft);

	font-size: 20px;
}
@media (max-width: 900px) {

	.learning-paths__grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 600px) {

	.learning-paths {
		padding: 70px 0;
	}

	.learning-paths__grid {
		grid-template-columns: 1fr;
	}

}
@media (max-width: 1100px) {

	.path-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 600px) {

	.path-grid {
		grid-template-columns: 1fr;
	}

}


/* --- Home Search Box --- */
.home-search-section {
    padding: 20px 0 40px; /* ????? ????? ?? ???? (????) ? ????? (???????) */
}

.home-search-box {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04); /* ?? ???? ???? ??? */
    padding: 10px 24px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.03);
}

.home-search-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.home-search-form__right {
    display: flex;
    align-items: center;
    flex: 1;
}

.home-search-form__btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-left: 12px;
}

.home-search-form__btn:hover {
    color: #3b82f6; /* ??? ???? ???? ???? (?????? ?? ??? ???? ????? ??? ???) */
}

.home-search-form__input-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-search-form__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.home-search-form__input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    color: #6b7280;
    font-family: inherit;
    width: 100%;
    min-width: 280px;
}

.home-search-form__input::placeholder {
    color: #9ca3af;
}

.home-search-form__left {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
    padding-right: 20px;
    border-right: 1px solid #e5e7eb; /* ?? ???????? ??????? */
    transition: color 0.2s;
}

.home-search-form__left:hover {
    color: #1f2937;
}

.home-search-form__chevron {
    margin-right: 8px;
}

/* ???? ?????? */
@media (max-width: 768px) {
    .home-search-form {
        flex-direction: column;
        align-items: flex-start;
    }
    .home-search-form__left {
        border-right: none;
        border-top: 1px solid #e5e7eb;
        width: 100%;
        padding-top: 12px;
        padding-right: 0;
        margin-top: 12px;
        justify-content: space-between;
    }
    .home-search-form__input {
        min-width: auto;
    }
}

/* =========================================
   ?????????? ??? ?????? ???????? Tutor LMS
========================================= */
.hero-search-form {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 8px;
    margin: 40px auto 0;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    gap: 12px;
    position: relative;
    z-index: 10;
}

.search-input-wrapper {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 5px 15px;
}

.search-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 1rem;
    color: #333;
    outline: none;
    font-family: inherit;
    width: 100%;
}

.search-category-dropdown {
    border: none;
    background: transparent;
    color: #666;
    font-size: 0.95rem;
    padding: 10px;
    border-right: 1px solid #e0e0e0;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

.search-submit {
    background-color: #007bff; /* ??? ???? ????? ?? ??????? ??????? ??? */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.search-submit:hover {
    background-color: #0056b3;
}

.search-submit svg {
    width: 22px;
    height: 22px;
}

/* ???? ?????? ? ???? */
@media (max-width: 768px) {
    .hero-search-form {
        flex-direction: column;
        padding: 16px;
        border-radius: 16px;
        background-color: transparent;
        box-shadow: none;
    }
    .search-input-wrapper {
        flex-direction: column;
        width: 100%;
        background-color: transparent;
        padding: 0;
        gap: 12px;
    }
    .search-field, .search-category-dropdown {
        width: 100%;
        background-color: #ffffff;
        border-radius: 8px;
        padding: 15px;
        border-right: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }
    .search-submit {
        width: 100%;
        height: 52px;
        box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    }
}

//* =================================
   Glassmorphism Footer
   ================================= */
.custom-glass-footer {
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--color-text);
  padding: 60px 0 20px;
  overflow: hidden;
  font-family: 'Tahoma', 'Arial', sans-serif;
}

.custom-glass-footer .glass-container {
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

/* Background Orbs */
.glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  z-index: 1;
}

.orb-blue {
  width: 400px;
  height: 400px;
  background: var(--color-primary-soft, #2563eb);
  top: -100px;
  left: -150px;
}

.orb-purple {
  width: 350px;
  height: 350px;
  background: var(--color-accent, #7c3aed);
  bottom: -150px;
  right: -100px;
}

/* Top Row */
.footer-top-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-newsletter {
  flex: 1;
  min-width: 0;
}

.footer-newsletter h3 {
  font-size: 1.5rem;
  color: var(--color-primary, #172554);
  margin-bottom: 10px;
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input {
  flex-grow: 1;
  border: 1px solid var(--color-border, #e2e8f0);
  padding: 10px 15px;
  border-radius: 6px 0 0 6px;
  background: rgba(255, 255, 255, 0.7);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-primary-soft, #2563eb);
}

.newsletter-form button {
  border: none;
  background-color: var(--color-primary, #172554);
  color: white;
  padding: 10px 20px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: var(--color-primary-soft, #2563eb);
}


.footer-links-wrapper {
  display: flex;
  gap: 50px;
  flex: 2;
  justify-content: space-around;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--color-primary, #172554);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--color-text-soft, #64748b);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--color-primary-soft, #2563eb);
}

/* Bottom Row */
.footer-bottom-row {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
}


.footer-brand .brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary, #172554);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 15px; 
}

.footer-socials a {
  color: var(--color-text-soft, #64748b);
  transition: color 0.3s, transform 0.3s;
  overflow: visible; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-socials a:hover {
  color: var(--color-primary-soft, #2563eb);
  transform: translateY(-2px); 
}

.footer-socials svg {
  width: 24px;
  height: 24px;
}

.footer-copyright {
  color: var(--color-text-soft, #64748b);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-bottom-row {
    flex-direction: column; 
    justify-content: center;
    text-align: center;
    gap: 25px;
  }

  .custom-glass-footer {
    padding: 40px 0;
  }
}

/* =========================================================
   Homepage Sections - Academy Alami
   ========================================================= */
/* =========================================================
   Learning Areas
   ========================================================= */

.home .area-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.home .area-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 24px 22px 20px;
    overflow: hidden;
    isolation: isolate;

    color: var(--color-text);
    text-decoration: none;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(248, 250, 252, 0.96)
        );
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.home .area-card::before {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    width: 4px;
    height: 100%;
    content: "";
    background: var(--area-accent, var(--color-primary-soft));
    opacity: 0.95;
}

.home .area-card:nth-child(4n + 2) {
    --area-accent: #0891b2;
}

.home .area-card:nth-child(4n + 3) {
    --area-accent: #7c3aed;
}

.home .area-card:nth-child(4n + 4) {
    --area-accent: #ea580c;
}

.home .area-card:hover {
    border-color: var(--area-accent, var(--color-primary-soft));
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
    transform: translateY(-5px);
}

.home .area-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 4px;
}

.home .area-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 46px;
    min-height: 30px;
    margin-bottom: 30px;
    padding: 5px 10px;

    color: var(--area-accent, var(--color-primary-soft));
    font-size: 0.82rem;
    font-weight: 800;
    direction: ltr;
    background: color-mix(
        in srgb,
        var(--area-accent, var(--color-primary-soft)) 10%,
        white
    );
    border-radius: 999px;
}

.home .area-card h3 {
    margin: 0 0 12px;
    color: var(--color-primary);
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    line-height: 1.8;
}

.home .area-card p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.92rem;
    line-height: 2;
}

.home .area-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: auto;
    margin-inline-start: auto;

    color: #ffffff;
    font-size: 1rem;
    background: var(--area-accent, var(--color-primary-soft));
    border-radius: 50%;

    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.home .area-card:hover .area-card__arrow {
    transform: translateX(-4px);
}

/* =========================================================
   Learning Paths
   ========================================================= */

#learning-paths {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #111827 0%,
            #172554 52%,
            #1e1b4b 100%
        );
}

#learning-paths .container {
    position: relative;
    z-index: 1;
}

#learning-paths .section-heading--light h3,
#learning-paths .section-heading--light h2 {
    color: #ffffff;
}

#learning-paths .section-heading--light p {
    color: rgba(255, 255, 255, 0.68);
}

#learning-paths .eyebrow {
    color: #67e8f9;
}

#learning-paths .content-section__more {
    color: #a5f3fc;
}

#learning-paths .path-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

#learning-paths .path-card {
    --path-accent: #60a5fa;

    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 24px 22px 22px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

#learning-paths .path-card:nth-child(4n + 2) {
    --path-accent: #22d3ee;
}

#learning-paths .path-card:nth-child(4n + 3) {
    --path-accent: #a78bfa;
}

#learning-paths .path-card:nth-child(4n + 4) {
    --path-accent: #fb923c;
}

#learning-paths .path-card::before {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    height: 3px;
    content: "";
    background: var(--path-accent);
}

#learning-paths .path-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--path-accent);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

#learning-paths .path-card > span {
    display: block;
    margin-bottom: 34px;

    color: var(--path-accent);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    direction: ltr;
}

#learning-paths .path-card h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    line-height: 1.8;
}

#learning-paths .path-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    line-height: 2;
}

#learning-paths .path-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

#learning-paths .path-card a:hover {
    color: #ffffff;
}

#learning-paths .path-card a:focus-visible {
    outline: 3px solid rgba(165, 243, 252, 0.35);
    outline-offset: 4px;
}

/* =========================================================
   Educational Articles
   ========================================================= */

#articles {
    background: var(--color-background);
}

#articles .article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

#articles .article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

#articles .article-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
    transform: translateY(-5px);
}

#articles .article-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}

#articles .article-card__image::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.15));
}

#articles .article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 240ms ease;
}


#articles .article-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 20px 22px;
}

#articles .article-card__content > span {
    display: inline-block;
    width: fit-content;
    margin-bottom: 12px;

    color: var(--color-primary-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

#articles .article-card__content h3 {
    margin: 0 0 12px;
    font-size: 1.08rem;
    line-height: 1.9;
}

#articles .article-card__content h3 a {
    color: var(--color-primary);
    text-decoration: none;
}

#articles .article-card__content h3 a:hover {
    color: var(--color-primary-soft);
}

#articles .article-card__content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;

    color: var(--color-text-soft);
    font-size: 0.9rem;
    line-height: 2;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

#articles .article-card__content > a:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    padding-top: 20px;

    color: var(--color-primary-soft);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

#articles .article-card__content > a:last-child:hover {
    color: var(--color-accent);
}

#articles a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

/* =========================================================
   Homepage Responsive - Tablet
   ========================================================= */

@media (max-width: 1024px) {
    .home .area-grid,
    #learning-paths .path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #articles .article-grid {
        gap: 16px;
    }

    .home .area-card,
    #learning-paths .path-card {
        min-height: 240px;
    }
}

/* =========================================================
   Homepage Responsive - Mobile
   ========================================================= */

@media (max-width: 640px) {
    .home .area-grid,
    #learning-paths .path-grid,
    #articles .article-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home .area-card,
    #learning-paths .path-card {
        min-height: 0;
    }

    .home .area-card {
        min-height: 210px;
        padding: 20px 18px 18px;
    }

    .home .area-card__number,
    #learning-paths .path-card > span {
        margin-bottom: 24px;
    }

    #learning-paths .path-card {
        padding: 20px 18px;
    }

    #learning-paths .path-card > span {
        font-size: 1.8rem;
    }

    #articles .article-card__content {
        padding: 18px;
    }

    #articles .article-card__content h3 {
        font-size: 1rem;
    }

    .section-heading--row {
        display: block;
    }

    .section-heading--row .content-section__header-actions {
        margin-top: 16px;
    }
}

/* =========================================================
   Authentication Pages
   ========================================================= */

.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: #f7f8fa;
}

.auth-page .container {
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 42px;
    background: #fff;
    border: 1px solid #e8e9ec;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
}

.auth-card__header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card__header .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
}

.auth-card__header h1 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.5;
}

.auth-card__header p {
    margin: 0;
    color: #737781;
    font-size: 15px;
    line-height: 1.9;
}


/* Login form */

.auth-card form#loginform {
    margin: 0;
}

.auth-card form p {
    margin: 0 0 20px;
}

.auth-card label,
.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #24262b;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #dfe1e6;
    border-radius: 12px;
    background: #fafafa;
    color: #202228;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.auth-card input:focus,
.auth-form input:focus {
    border-color: #222;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}


/* Remember me */

.auth-card .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.auth-card .login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #6d7078;
}

.auth-card .login-remember input {
    width: 16px;
    height: 16px;
}


/* Login button */

.auth-card #wp-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 12px;
    background: #111318;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.auth-card #wp-submit:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* Register form */

.auth-form {
    margin: 0;
}

.auth-form .form-field {
    margin-bottom: 20px;
}

.auth-form .button {
    width: 100%;
    margin-top: 4px;
}


/* Footer */

.auth-card__footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eeeeef;
    text-align: center;
}

.auth-card__footer p {
    margin: 0;
    color: #777a82;
    font-size: 14px;
}

.auth-card__footer a {
    color: #111318;
    font-weight: 700;
    text-decoration: none;
}

.auth-card__footer a:hover {
    text-decoration: underline;
}


/* Error message */

.auth-message--error {
    margin-bottom: 24px;
    padding: 13px 16px;
    border-radius: 12px;
    background: #fff1f1;
    color: #b42318;
    border: 1px solid #ffd5d2;
    font-size: 14px;
    line-height: 1.8;
}


/* Mobile */

@media (max-width: 600px) {

    .auth-page {
        min-height: auto;
        padding: 50px 16px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .auth-card__header h1 {
        font-size: 25px;
    }

}

/* =========================================================
   Single Post — Academy Magazine
   ========================================================= */

.single-post {
    position: relative;
    /* overflow: hidden ??? ?? ?? ???? ?????? ????? ??? */

    /* ??? ???????? ?????? ??? css ????? ????? ?? */
    background: #f8f9fb; 

    padding: 80px 0 120px;
}


/* Decorative background */

.single-post::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background: rgba(79, 70, 229, 0.04);

    filter: blur(10px);

    pointer-events: none;
}


/* =========================================================
   Article Header
   ========================================================= */

.single-post__header {
    position: relative;
    z-index: 2;

    max-width: 920px;

    margin: 0 auto 55px;

    text-align: center;
}


.single-post__category {
    display: inline-flex;
    align-items: center;

    padding: 8px 17px;

    margin-bottom: 24px;

    background: #eef2ff;
    color: #4f46e5;

    border: 1px solid #e0e7ff;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;
}


.single-post__title {
    max-width: 900px;

    margin: 0 auto;

    color: #111827;

    font-size: clamp(36px, 5vw, 64px);

    line-height: 1.45;

    font-weight: 900;

    letter-spacing: -1.5px;
}


.single-post__meta {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 28px;

    color: #8a91a1;

    font-size: 14px;
}


.single-post__meta strong {
    color: #374151;
}


.single-post__separator {
    color: #cbd0d9;
}


/* =========================================================
   Featured Image
   ========================================================= */

.single-post__featured-image {
    position: relative;

    max-width: 1120px;

    margin: 0 auto 65px;

    padding: 0;
}


.single-post__featured-image::after {
    content: "";

    position: absolute;

    left: 7%;
    right: 7%;
    bottom: -20px;

    height: 40px;

    background: rgba(79, 70, 229, 0.15);

    filter: blur(30px);

    z-index: 0;
}


.single-post__image {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    height: auto;

    max-height: 620px;

    object-fit: cover;

    border-radius: 26px;

    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.14),
        0 5px 20px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   Article Body
   ========================================================= */

.single-post__layout {
    max-width: 900px;

    margin: 0 auto;
}


.single-post__content {
    position: relative;

    background: #ffffff;

    padding: clamp(30px, 6vw, 75px);

    border: 1px solid rgba(226, 232, 240, 0.9);

    border-radius: 26px;

    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.07);

    color: #374151;

    font-size: 18px;

    line-height: 2.25;
}


/* top accent */

.single-post__content::before {
    content: "";

    display: block;

    width: 60px;
    height: 4px;

    margin-bottom: 35px;

    background: #4f46e5;

    border-radius: 999px;
}


/* =========================================================
   Paragraph
   ========================================================= */

.single-post__content p {
    margin: 0 0 28px;
}


/* =========================================================
   Headings
   ========================================================= */

.single-post__content h2 {
    position: relative;

    margin-top: 60px;
    margin-bottom: 25px;

    padding-right: 18px;

    color: #111827;

    font-size: 29px;

    line-height: 1.6;

    font-weight: 850;
}


.single-post__content h2::before {
    content: "";

    position: absolute;

    right: 0;
    top: 8px;

    width: 5px;
    height: 75%;

    background: #4f46e5;

    border-radius: 999px;
}


.single-post__content h3 {
    position: relative;

    margin-top: 45px;
    margin-bottom: 20px;

    color: #1f2937;

    font-size: 23px;

    line-height: 1.6;

    font-weight: 800;
}


/* =========================================================
   Links
   ========================================================= */

.single-post__content a {
    color: #4f46e5;

    font-weight: 700;

    text-decoration: none;

    border-bottom: 1px solid rgba(79, 70, 229, 0.3);

    transition: all 0.2s ease;
}


.single-post__content a:hover {
    color: #3730a3;

    border-color: #4f46e5;
}


/* =========================================================
   Lists
   ========================================================= */

.single-post__content ul,
.single-post__content ol {
    margin: 30px 0;

    padding-right: 28px;
}


.single-post__content li {
    margin-bottom: 12px;

    padding-right: 5px;
}


.single-post__content li::marker {
    color: #4f46e5;

    font-weight: 800;
}


/* =========================================================
   Blockquote
   ========================================================= */

.single-post__content blockquote {
    position: relative;

    margin: 45px 0;

    padding: 32px 35px 32px 30px;

    background:
        linear-gradient(
            135deg,
            #f5f7ff,
            #fafaff
        );

    border: 1px solid #e4e7ff;

    border-right: 5px solid #4f46e5;

    border-radius: 18px;

    color: #374151;

    font-size: 19px;

    line-height: 2;

    font-weight: 650;
}


.single-post__content blockquote::before {
    content: "\201C";

    position: absolute;

    top: -15px;
    left: 25px;

    color: #4f46e5;

    font-family: Georgia, serif;

    font-size: 70px;

    line-height: 1;

    opacity: 0.25;
}


/* =========================================================
   Images inside Article
   ========================================================= */

.single-post__content figure {
    margin: 45px auto;

    text-align: center;
}


.single-post__content img {
    max-width: 100%;
    height: auto;

    border-radius: 18px;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, 0.10);
}


.single-post__content figcaption {
    margin-top: 12px;

    color: #9ca3af;

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   Code
   ========================================================= */

.single-post__content pre {
    direction: ltr;

    overflow-x: auto;

    margin: 35px 0;

    padding: 25px;

    background: #111827;

    color: #f9fafb;

    border-radius: 16px;

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.15);

    font-size: 14px;

    line-height: 1.9;

    text-align: left;
}


.single-post__content code {
    direction: ltr;

    padding: 3px 7px;

    background: #f1f3f5;

    color: #374151;

    border-radius: 6px;

    font-size: 0.88em;
}


.single-post__content pre code {
    padding: 0;

    background: transparent;

    color: inherit;
}


/* =========================================================
   Article Footer
   ========================================================= */

.single-post__footer {
    max-width: 900px;

    margin: 45px auto 0;
}


/* =========================================================
   Tags
   ========================================================= */

.single-post__tags {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 40px;
}


.single-post__tags-title {
    margin-left: 5px;

    color: #6b7280;

    font-size: 14px;

    font-weight: 700;
}


.single-post__tag {
    display: inline-flex;

    padding: 7px 14px;

    background: #ffffff;

    color: #4b5563;

    border: 1px solid #e5e7eb;

    border-radius: 999px;

    font-size: 13px;

    text-decoration: none;

    transition: all 0.2s ease;
}


.single-post__tag:hover {
    transform: translateY(-2px);

    background: #111827;

    color: #ffffff;

    border-color: #111827;
}


/* =========================================================
   Previous / Next
   ========================================================= */

.single-post__navigation {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


.single-post__nav {
    display: flex;

    flex-direction: column;

    gap: 10px;

    min-height: 100px;

    padding: 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.single-post__nav:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.08);
}


.single-post__nav span {
    color: #9ca3af;

    font-size: 12px;

    font-weight: 700;
}


.single-post__nav a {
    color: #111827;

    font-size: 15px;

    font-weight: 800;

    line-height: 1.8;

    text-decoration: none;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {

    .single-post {
        padding: 45px 0 75px;
    }


    .single-post__header {
        margin-bottom: 35px;
    }


    .single-post__title {
        font-size: 31px;

        line-height: 1.55;
    }


    .single-post__meta {
        font-size: 13px;
    }


    .single-post__featured-image {
        margin-bottom: 40px;
    }


    .single-post__image {
        border-radius: 18px;
    }


    .single-post__content {
        padding: 30px 22px;

        border-radius: 18px;

        font-size: 17px;

        line-height: 2.15;
    }


    .single-post__content h2 {
        margin-top: 45px;

        font-size: 25px;
    }


    .single-post__content h3 {
        font-size: 21px;
    }


    .single-post__content blockquote {
        padding: 25px 22px;

        font-size: 17px;
    }


    .single-post__navigation {
        grid-template-columns: 1fr;
    }

}


/* ==========================================
   Fixed Footer Mobile & Tablet
   ========================================== */
@media (max-width: 768px) {
  .custom-glass-footer {
    overflow-x: hidden; /* جلوگیری از هرگونه اسکرول افقی در فوتر */
  }

  .footer-top-row {
    flex-direction: column !important;
    gap: 35px !important;
    padding: 0 !important; /* پدینگ اضافی حذف شد چون کانتینر قبلا پدینگ دارد */
  }

  .footer-newsletter {
    width: 100% !important;
    min-width: 0 !important; /* تضمین اینکه در موبایل جمع میشود */
    text-align: center;
  }

  .footer-newsletter .newsletter-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .footer-newsletter .newsletter-form input {
    width: 100% !important;
    border-radius: 8px !important; 
    padding: 12px 15px !important;
    text-align: right; /* چینش متن به راست برای زیبایی */
  }

  .footer-newsletter .newsletter-form button {
    width: 100% !important;
    border-radius: 8px !important; 
    padding: 12px !important;
  }

  .footer-links-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
    width: 100% !important;
  }

  .footer-bottom-row {
    flex-direction: column !important;
    text-align: center !important;
    gap: 20px !important;
  }

  .footer-socials {
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .footer-links-wrapper {
    grid-template-columns: 1fr !important; 
    text-align: center;
  }
}

