/*
 Theme Name:   Annawawi Institute
 Template:     generatepress
 Description:  Annawawi Institute child theme based on GeneratePress
 Version:      1.0.0
*/

/* ── Global reset ── */
html, body {
	overflow-x: hidden;
}

.inside-header *,
.home-hero *,
.home-section *,
.custom-footer * {
	box-sizing: border-box;
}

/* ── Fixed header ── */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: #0a1628;
	padding: 12px 0 12px;
}

body.admin-bar .site-header {
	top: 32px;
}

/* ── Floating card ── */
.inside-header.grid-container {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.10);
	padding: 6px 20px;
	max-width: 1240px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* ── Push content down for fixed header ── */
.site-content {
	padding-top: 100px;
}

/* ── Logo ── */
.site-logo img {
	max-height: 48px;
	width: auto;
}

/* ── LOGIN button ── */
.menu-bar-items .login-item a.login-btn {
	background: #0a1628;
	color: #fff;
	padding: 10px 24px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 1.5px;
	line-height: 1;
	transition: background 0.2s;
}

.menu-bar-items .login-item a.login-btn:hover {
	background: #1a3a6b;
	color: #fff;
}

/* ── Logged-in user item ── */
.menu-bar-items .user-item a.user-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 13px;
	color: #0a1628;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 8px;
	line-height: 1;
	transition: background 0.2s;
}

.menu-bar-items .user-item a.user-btn:hover {
	background: rgba(10, 22, 40, 0.06);
}

.menu-bar-items .user-item .user-avatar {
	border-radius: 50%;
	width: 32px;
	height: 32px;
	object-fit: cover;
}

.menu-bar-items .user-item .user-name {
	white-space: nowrap;
}

/* ── Desktop three-zone layout (≥ 769px) ── */
@media (min-width: 769px) {
	.nav-float-right #site-navigation {
		margin-left: 0;
		flex: 1;
	}

	.main-navigation .inside-navigation {
		justify-content: center;
	}

	.main-navigation .main-nav {
		flex: 1;
		display: flex;
		justify-content: center;
	}

	.menu-bar-items {
		margin-left: auto;
	}

	.main-navigation .main-nav ul li a {
		text-transform: uppercase;
		color: #0a1628;
		font-weight: 600;
		font-size: 14px;
		letter-spacing: 1.5px;
		padding-left: 22px;
		padding-right: 22px;
	}

	.main-navigation .main-nav ul li a:hover {
		color: #1a3a6b;
	}
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
	.site-header {
		padding: 6px 0 6px;
	}

	body.admin-bar .site-header {
		top: 46px;
	}

	.inside-header.grid-container {
		padding: 6px 12px;
		max-width: calc(100% - 24px);
		border-radius: 10px;
	}

	.site-content {
		padding-top: 80px;
	}

	.site-logo img {
		max-height: 36px;
	}

	.menu-toggle {
		line-height: 50px;
		padding: 0 15px;
	}

	.has-inline-mobile-toggle #site-navigation.toggled {
		margin-top: 0.8em;
	}

	.nav-float-right .header-widget {
		margin-left: 10px;
	}

	.menu-bar-items .login-item a.login-btn {
		padding: 6px 12px;
		font-size: 11px;
		gap: 6px;
	}

	.menu-bar-items .login-item a.login-btn svg {
		width: 14px;
		height: 14px;
	}

	.menu-bar-items .user-item a.user-btn {
		font-size: 12px;
		gap: 8px;
		padding: 4px 6px;
	}

	.menu-bar-items .user-item .user-avatar {
		width: 28px;
		height: 28px;
	}

	.menu-bar-items .user-item .user-name {
		display: none;
	}

	/* Hero mobile */
	.home-hero {
		margin-top: 86px;
		padding: 0 12px;
	}

	.hero-slider {
		border-radius: 8px;
	}

	.hero-slide-content {
		margin-left: 20px;
		margin-right: 20px;
		max-width: 100%;
		display: flex;
		flex-direction: column;
	}

	.hero-slide-title {
		font-size: 20px;
		margin: 0 0 6px;
	}

	.hero-slide-subtitle {
		font-size: 13px;
		margin: 0 0 12px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.hero-slide-btn {
		padding: 8px 20px;
		font-size: 12px;
		align-self: flex-start;
	}

	/* Home body mobile */
	.home-section {
		padding: 20px 12px;
	}

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

	.home-grid .home-quicklinks .quicklinks-menu {
		display: flex;
		flex-direction: column;
		gap: 6px;
	}

	.home-quicklinks .quicklinks-menu li {
		width: 100%;
	}

	.home-quicklinks .quicklinks-menu a {
		min-height: 48px;
		padding: 10px 14px;
		font-size: 12px;
	}

	.home-news {
		padding: 18px 20px;
	}

	/* Footer mobile */
	.custom-footer {
		padding: 8px 0 0;
	}

	.footer-card {
		padding: 32px 16px;
		max-width: 100%;
		border-radius: 0;
		flex-direction: column;
		gap: 24px;
		margin: 0 0 8px;
	}

	.footer-bottom {
		padding: 16px 20px;
		font-size: 12px;
	}
}

/* ── Tablet home-section (769–1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
	.home-section .home-grid {
		grid-template-columns: 180px 1fr;
		gap: 24px;
	}

	.home-quicklinks .quicklinks-menu a {
		min-height: 50px;
		padding: 10px 14px;
		font-size: 13px;
	}

	.hero-slide-title {
		font-size: 28px;
	}

	.hero-slide-subtitle {
		font-size: 16px;
	}

	.hero-slide-content {
		max-width: 480px;
	}
}

/* ── Home page ── */

/* Hero Slider */
.home-hero {
	max-width: 1240px;
	margin: 120px auto 0;
	padding: 0 20px;
	box-sizing: border-box;
}

/* ── Front page: match grid-container to hero width ── */
.home .site.grid-container {
	max-width: 1240px;
	padding-left: 0;
	padding-right: 0;
}

.home .site-content {
	padding-top: 0;
}

.hero-slider {
	width: 100%;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	border-radius: 12px;
}

.hero-slide {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hero-slide-overlay {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: linear-gradient(to right, rgba(10,22,40,0.75) 0%, rgba(10,22,40,0.3) 100%);
}

.hero-slide-content {
	max-width: 640px;
	margin-left: 10%;
	margin-right: 10%;
	padding-right: 10px;
	color: #fff;
	overflow-wrap: break-word;
	word-break: break-word;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.hero-slide-title {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 12px;
	line-height: 1.2;
	overflow-wrap: break-word;
	word-break: break-word;
}

.hero-slide-subtitle {
	font-size: 18px;
	opacity: 0.9;
	margin: 0 0 24px;
	line-height: 1.6;
	overflow-wrap: break-word;
	word-break: break-word;
}

.hero-slide-btn {
	display: inline-block;
	background: #fff;
	color: #0a1628;
	padding: 12px 32px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
	align-self: flex-start;
	max-width: 320px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hero-slide-btn:hover {
	background: #e8ecf0;
	color: #0a1628;
	transform: translateY(-1px);
}

.hero-pagination.swiper-pagination-bullets {
	bottom: 20px;
}

.hero-pagination .swiper-pagination-bullet {
	background: #fff;
	opacity: 0.5;
	width: 10px;
	height: 10px;
}

.hero-pagination .swiper-pagination-bullet-active {
	opacity: 1;
	width: 24px;
	border-radius: 5px;
}

.hero-nav.swiper-button-prev,
.hero-nav.swiper-button-next {
	color: #fff;
	opacity: 0.6;
	transition: opacity 0.2s;
}

.hero-nav.swiper-button-prev:hover,
.hero-nav.swiper-button-next:hover {
	opacity: 1;
}

.hero-nav.swiper-button-prev::after,
.hero-nav.swiper-button-next::after {
	font-size: 24px;
}

/* Home Content Section */
.home-section {
	max-width: 1240px;
	width: 100%;
	min-width: 0;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
}

.home-grid {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 32px;
	align-items: stretch;
}

/* Quick Links */
.home-quicklinks .quicklinks-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.home-quicklinks .quicklinks-menu li {
	margin: 0;
}

.home-quicklinks .quicklinks-menu a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: 14px 20px;
	background: #fff;
	border: 2px solid #0a1628;
	border-radius: 10px;
	color: #0a1628;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.home-quicklinks .quicklinks-menu a:hover {
	background: #0a1628;
	color: #fff;
}

.quicklinks-placeholder {
	padding: 20px;
	background: #f0f0f0;
	border-radius: 10px;
	font-size: 14px;
	text-align: center;
	color: #575760;
}

.quicklinks-placeholder a {
	color: #0a1628;
	text-decoration: underline;
}

/* News List */
.home-news {
	background: #fff;
	border: 1px solid #e8ecf0;
	border-radius: 12px;
	padding: 24px 28px;
}

.home-news-heading {
	font-size: 18px;
	font-weight: 700;
	color: #0a1628;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid #0a1628;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.news-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.news-item {
	border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
	border-bottom: none;
}

.news-link {
	display: block;
	padding: 14px 0;
	text-decoration: none;
	color: #0a1628;
	transition: opacity 0.2s;
}

.news-link:hover {
	opacity: 0.75;
}

.news-date {
	display: block;
	font-size: 12px;
	color: #8c8c8c;
	margin-bottom: 4px;
}

.news-title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}

.news-empty {
	font-size: 14px;
	color: #575760;
	padding: 20px 0;
}

.news-empty a {
	color: #0a1628;
	text-decoration: underline;
}

/* ── Footer ── */
.custom-footer {
	background: #0a1628;
	padding: 12px 0 0;
	margin: 0;
}

.footer-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.10);
	padding: 48px 40px;
	max-width: 1240px;
	margin: 0 auto 12px;
	display: flex;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
	box-sizing: border-box;
}

.footer-name {
	font-size: 18px;
	color: #0a1628;
	display: block;
	margin-bottom: 12px;
}

.footer-address {
	font-size: 14px;
	color: #575760;
	line-height: 1.7;
	margin: 0;
}

.footer-contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.contact-row {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #0a1628;
	font-size: 14px;
}

.contact-row svg {
	flex-shrink: 0;
	color: #0a1628;
}

.contact-row a {
	color: #0a1628;
	text-decoration: none;
	transition: color 0.2s;
	word-break: break-all;
}

.contact-row a:hover {
	color: #1a3a6b;
}

.footer-bottom {
	background: #070f1d;
	color: rgba(255,255,255,0.6);
	text-align: center;
	padding: 16px 20px;
	font-size: 13px;
}
