/*!
Theme Name: tilwan
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tilwan
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

tilwan is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
# Page Loader (moved from tilwan-style-inline)
--------------------------------------------------------------*/
.page-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 99999;
	transition: all 0.8s ease-in-out;
}

.page-loader.fade-out {
	opacity: 0;
	visibility: hidden;
}

.loader-content {
	text-align: center;
	position: relative;
}

.loader-logo {
	width: 120px;
	height: auto;
	margin-bottom: 30px;
	animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

.loader-spinner {
	position: relative;
	width: 80px;
	height: 80px;
	margin: 0 auto 20px;
}

.spinner-ring {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 3px solid transparent;
	border-radius: 50%;
	animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
	border-top-color: #d22630;
}

.spinner-ring:nth-child(2) {
	border-right-color: #FAAF40;
	animation-delay: 0.3s;
	width: 90%;
	height: 90%;
	top: 5%;
	left: 5%;
}

.spinner-ring:nth-child(3) {
	border-bottom-color: #28a745;
	animation-delay: 0.6s;
	width: 80%;
	height: 80%;
	top: 10%;
	left: 10%;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.loader-text {
	color: #fff;
	font-weight: 500;
	letter-spacing: 2px;
}

.loader-subtitle {
	color: #FAAF40;
	font-size: 0.9rem;
	opacity: 0.8;
}

.loading-dots {
	display: inline-block;
	position: relative;
	width: 30px;
	height: 20px;
	margin-left: 10px;
}

.loading-dots div {
	position: absolute;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #FAAF40;
	animation: loadingDots 1.2s linear infinite;
}

.loading-dots div:nth-child(1) { left: 0; }
.loading-dots div:nth-child(2) { left: 12px; animation-delay: 0.4s; }
.loading-dots div:nth-child(3) { left: 24px; animation-delay: 0.8s; }

@keyframes loadingDots {
	0%, 40%, 100% { transform: translateY(-50%) scale(0.8); opacity: 0.5; }
	20% { transform: translateY(-70%) scale(1.2); opacity: 1; }
}

.progress-bar-container {
	width: 200px;
	height: 4px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	margin: 20px auto 0;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #d22630 0%, #FAAF40 50%, #28a745 100%);
	width: 0%;
	transition: width 0.3s ease;
}

.brand-elements {
	position: absolute;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.floating-element {
	position: absolute;
	opacity: 0.1;
	animation: floatAround 8s ease-in-out infinite;
}

.floating-element:nth-child(1) {
	top: 10%;
	left: 10%;
	font-size: 2rem;
	color: #d22630;
}

.floating-element:nth-child(2) {
	top: 20%;
	right: 15%;
	font-size: 1.5rem;
	color: #FAAF40;
	animation-delay: 2s;
}

.floating-element:nth-child(3) {
	bottom: 15%;
	left: 20%;
	font-size: 1.8rem;
	color: #28a745;
	animation-delay: 4s;
}

.floating-element:nth-child(4) {
	bottom: 25%;
	right: 10%;
	font-size: 1.3rem;
	color: #6c757d;
	animation-delay: 6s;
}

@keyframes floatAround {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	25% { transform: translateY(-20px) rotate(90deg); }
	50% { transform: translateY(-10px) rotate(180deg); }
	75% { transform: translateY(-30px) rotate(270deg); }
}

/* Tilwan header overrides (from former inline) */
.top-bar {
	font-size: 0.8rem;
}

.main-header {
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.main-header .logo img {
	max-height: 100px;
	width: auto;
}

.navbar-nav .nav-link {
	padding: 0.5rem 1rem;
	font-weight: 600;
	color: #333;
}

.navbar-nav .nav-link:hover {
	color: #d22630;
}

.navbar-nav .dropdown-menu {
	border-radius: 0;
	border: 1px solid #eee;
}

/*--------------------------------------------------------------
# Tilwan Header & Navigation (matches HTML design)
--------------------------------------------------------------*/

/* Top bar */
.top-bar {
	background-color: #1c1c1c;
	color: #808080;
	padding: 5px 0;
	text-align: right;
	font-size: 0.8rem;
}

.date, .time, .location {
	margin: 0 5px;
}

/* Main header */
.main-header {
	background-color: #fff;
	padding: 0;
	border-bottom: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1050;
	min-height: 80px;
}

.main-header .container-fluid {
	padding: 0 15px;
}

.main-header .row {
	align-items: center;
	min-height: 80px;
}

.main-header .col-lg-2 {
	display: flex;
	align-items: center;
	padding: 15px 0;
	height: 80px;
}

/* Logo */
.logo {
	display: flex;
	align-items: center;
	height: 100%;
}

.logo a {
	display: inline-block;
}

.logo img {
	height: 100px;
	max-height: 80px;
	width: auto;
	object-fit: contain;
	transition: all 0.3s ease;
}

.logo img:hover {
	transform: scale(1.02);
}

/* Nav link base */
.navbar-nav .nav-link {
	position: relative;
	transition: all 0.3s ease;
	font-weight: 500;
	letter-spacing: 0.5px;
	padding: 20px 15px !important;
	height: 80px;
	display: flex;
	align-items: center;
	color: #333 !important;
	text-decoration: none;
	text-transform: capitalize;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
	color: #d22630 !important;
}

.navbar-nav .nav-item {
	position: relative;
}

.navbar-nav .nav-item::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: #d22630;
	transition: width 0.3s ease;
}

.navbar-nav .nav-item:hover::after,
.navbar-nav .nav-item.active::after {
	width: 100%;
}

.navbar-nav .nav-link::after {
	display: none;
}

/* Dropdown */
@media (min-width: 992px) {
	.navbar-nav .dropdown {
		position: relative !important;
	}
}

.navbar-nav .dropdown-menu {
	border-radius: 0;
	border: none;
	min-width: 200px;
	background: #d22630;
}

/* Desktop: hover-driven animated dropdown */
@media (min-width: 992px) {
	.navbar-nav .nav-item {
		height: 80px;
		display: flex;
		align-items: center;
	}

	.navbar-nav .dropdown-menu {
		position: absolute !important;
		top: 100% !important;
		left: 0 !important;
		z-index: 1000 !important;
		margin-top: 0;
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: all 0.3s ease;
		display: block !important;
	}

	.navbar-nav .dropdown:hover .dropdown-menu,
	.navbar-nav .dropdown .dropdown-menu:hover {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

.navbar-nav .dropdown-item {
	color: #fff;
	font-weight: 500;
	padding: 12px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
	text-decoration: none;
	display: block;
	text-transform: capitalize;
}

.navbar-nav .dropdown-item:last-child {
	border-bottom: none;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	padding-left: 25px;
}

.navbar-nav .dropdown-toggle.fa-arrow::after {
	content: "▼";
	font-family: inherit;
	border: none;
	margin-left: 0.5em;
	font-size: 0.7em;
	transition: transform 0.3s ease;
	color: inherit;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::after,
.navbar-nav .dropdown:hover .dropdown-toggle::after {
	transform: rotate(180deg);
}

.navbar-nav .dropdown-toggle::after {
	opacity: 1 !important;
}

/* Search form in header */
.main-header .search-form {
	position: relative;
}

.main-header .search-wrapper .form-control {
	padding: 8px 35px 8px 15px;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 13px;
	width: 180px;
	transition: all 0.3s ease;
}

.main-header .search-wrapper .form-control:focus {
	border-color: #d22630;
	box-shadow: 0 0 0 2px rgba(210, 38, 48, 0.1);
	outline: none;
}

.language-selector a,
.language-selector-mobile a {
	text-decoration: none;
}

.language-selector a:hover,
.language-selector-mobile a:hover {
	color: #d22630;
}

/* Mobile (< 992px) */
@media (max-width: 991px) {
	.main-header {
		min-height: auto;
		padding: 0.5rem 0;
	}

	.main-header .row {
		min-height: auto;
	}

	.main-header .col-lg-2 {
		height: auto;
		padding: 10px 0;
	}

	/* Stack nav items vertically, each full width */
	.navbar-nav {
		flex-direction: column !important;
		width: 100%;
	}

	.navbar-nav .nav-item {
		height: auto;
		width: 100%;
		display: block;
		margin: 0;
	}

	.navbar-nav .nav-item::after {
		display: none;
	}

	.navbar-nav .nav-link {
		height: auto !important;
		padding: 10px 16px !important;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	/* Submenu: appears below parent, full width, no absolute positioning */
	.navbar-nav .dropdown-menu {
		position: static !important;
		display: none;
		float: none;
		width: 100%;
		background: #f5f5f5;
		box-shadow: none !important;
		border: none;
		border-left: 3px solid #d22630;
		border-radius: 0;
		margin: 0 0 4px 0;
		padding: 4px 0;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
	}

	/* Show submenu when Bootstrap adds .show */
	.navbar-nav .dropdown-menu.show {
		display: block !important;
	}

	.navbar-nav .dropdown-item {
		color: #333;
		font-size: 0.875rem;
		padding: 9px 16px 9px 24px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.04);
	}

	.navbar-nav .dropdown-item:last-child {
		border-bottom: none;
	}

	.navbar-nav .dropdown-item:hover,
	.navbar-nav .dropdown-item:focus {
		background: #d22630;
		color: #fff;
		padding-left: 28px;
	}

	/* Highlight parent when submenu is open */
	.navbar-nav .nav-item.dropdown.show > .nav-link {
		background-color: rgba(210, 38, 48, 0.07);
		color: #d22630 !important;
	}

	.logo img {
		max-height: 70px;
	}
}

@media (max-width: 991px) {
	/* These apply to ALL mobile widths (tablet + phone) */
	.navbar-toggler {
		background: none;
		border: 2px solid #d22630 !important;
		border-radius: 6px;
		padding: 0.4rem 0.6rem;
	}

	.navbar-toggler:focus {
		box-shadow: 0 0 0 0.2rem rgba(210, 38, 48, 0.25);
		outline: none;
	}

	.navbar-toggler-icon {
		background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d22630' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
	}

	.navbar-collapse {
		width: 100%;
		margin-top: 12px;
		padding: 8px 0 12px;
		border-top: 2px solid #d22630;
		background: #fff;
		border-radius: 0 0 8px 8px;
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	}
}

@media (max-width: 768px) {
	.main-header {
		padding: 0.3rem 0;
	}

	.logo img {
		max-height: 50px;
	}
}

.mobile-search-btn {
	min-width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.mobile-search-btn:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

#mobileSearch .form-control {
	border: 1px solid rgba(0, 0, 0, 0.1);
	padding: 8px 40px 8px 15px;
}

/*--------------------------------------------------------------
# Front Page: Hero Section & About Tilwan Section
   (CSS from html design – hero + about sections)
--------------------------------------------------------------*/
.front-page-main {
	padding: 0;
}

/* Hero section container */
.hero-section {
	position: relative;
	color: #fff;
}

/* Video background container */
.video-background-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
}

/* Hero video – full cover, no letterbox black bars */
.hero-section .hero-video,
.video-background-container .hero-video,
.about-tilwan-section .hero-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	z-index: 1;
}

/* Video element fallback (poster/cover) */
video.hero-video {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Fallback image when video doesn't load (hidden by default; JS shows on error) */
.video-fallback {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: none;
	z-index: 0;
}

.video-background-container video.video-error + .video-fallback {
	display: block !important;
}

.video-background-container video.video-error {
	display: none !important;
}

.video-background-container .bg-dark.opacity-50 {
	z-index: 2;
}

/* Hero content (text + button) */
.hero-section .container,
.hero-section .container-fluid {
	position: relative;
	z-index: 1;
}

.hero-section .text-white h1,
.hero-section .hero-content h1 {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.hero-section .text-white .lead,
.hero-section .hero-content p {
	font-size: 1.25rem;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.hero-section .btn-outline-light {
	border: 2px solid #fff;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

.hero-section .btn-outline-light:hover {
	background-color: #fff;
	color: #000;
	border-color: #fff;
}

/* About Tilwan section */
.about-tilwan-section {
	position: relative;
	color: #fff;
}

/* About Tilwan overlay: same as html – gradient on top of video so it dims correctly */
.about-tilwan-bg {
	overflow: hidden;
}

.about-tilwan-bg .hero-video {
	z-index: 0;
}
.about-tilwan-overlay {
	z-index: 1;
	pointer-events: none;
}

/* About Tilwan – video/fallback switching */
.about-tilwan-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	z-index: 0;
}

.about-tilwan-fallback {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	display: none;
}

/* Mobile (≤ 768px): hide video, show fallback image */
@media (max-width: 768px) {
	.about-tilwan-video {
		display: none !important;
	}
	.about-tilwan-fallback {
		display: block !important;
	}
}

.about-tilwan-section .position-absolute[style*="z-index: 1"] {
	z-index: 1;
}

.about-tilwan-section .container-fluid[style*="z-index: 2"] {
	position: relative;
	z-index: 2;
}

/* Quote side */
.about-tilwan-section .about-quote p,
.about-tilwan-section .quote-text {
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.about-tilwan-section .about-quote .position-absolute[style*="color: #d22630"] {
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* TILWAN heading */
.about-tilwan-section .display-4 {
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
	font-weight: 800;
	color: #fff;
}

.about-tilwan-section .about-text,
.about-tilwan-section .text-white p {
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
	font-weight: 400;
	letter-spacing: 0.5px;
}

/* Green dots decoration */
.about-tilwan-section .green-dots-decoration,
.about-tilwan-section .green-dots {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	justify-content: flex-start;
	margin-bottom: 1.5rem;
}

.about-tilwan-section .green-dots-decoration span,
.about-tilwan-section .green-dot {
	width: 8px;
	height: 8px;
	background-color: #28a745;
	border-radius: 50%;
	display: inline-block;
}

/* About section buttons */
.about-tilwan-section .btn-outline-light {
	border: 2px solid #fff;
	color: #fff;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.about-tilwan-section .btn-outline-light:hover {
	background-color: #fff;
	color: #000;
	border-color: #fff;
}

/* Global btn-outline-light (front page) */
.front-page-main .btn-outline-light {
	border: 2px solid #fff;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.front-page-main .btn-outline-light:hover {
	background-color: #fff;
	color: #000;
}

/* Mobile: show fallback image instead of video for performance */
@media (max-width: 768px) {
	.hero-section video.hero-video {
		display: none;
	}

	.hero-section .video-fallback {
		display: block !important;
	}

	.hero-section .text-white h1,
	.hero-section .display-4 {
		font-size: 2rem !important;
	}

	.hero-section .lead {
		font-size: 1rem !important;
	}

	.about-quote {
		padding-left: 1.5rem !important;
		padding-bottom: 3rem !important;
	}

	.about-tilwan-section .text-end[style*="padding-right: 50px"] {
		padding-right: 1.5rem !important;
		padding-left: 1.5rem;
	}

	.about-tilwan-section .display-4 {
		font-size: 2rem !important;
	}

	.about-tilwan-section .about-quote .position-absolute[style*="font-size: 4rem"] {
		font-size: 3rem !important;
	}

	.about-tilwan-section .text-white p {
		font-size: 0.9rem !important;
	}
}

@media (max-width: 992px) {
	.hero-section .text-white h1,
	.hero-section .display-4 {
		font-size: 2.5rem !important;
	}

	.about-tilwan-section .display-4 {
		font-size: 2.5rem !important;
	}
}

/* ==========================================================================
   Projects Section (same as html/index.html – text positions match exactly)
   ========================================================================== */
.projects-section {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Desktop: fixed height so percentage positions match HTML */
@media (min-width: 992px) {
	.projects-section {
		height: 900px;
		min-height: 900px;
	}
	.projects-section .projects-content {
		height: 100%;
		min-height: 900px;
	}
	.projects-section .desktop-projects-layout {
		position: relative;
		width: 100%;
		height: 100%;
		min-height: 900px;
	}
}

.projects-background {
	overflow: hidden;
}

.projects-background .projects-bg-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.projects-section:hover .projects-bg-image {
	transform: scale(1.02);
	filter: brightness(1.05) contrast(1.05);
}

.projects-content {
	padding-left: 40px;
	padding-right: 40px;
}

.projects-section .project-line {
	animation: expandLine 2s ease-out;
	transform-origin: left;
}

@keyframes expandLine {
	from {
		width: 0;
	}
	to {
		width: var(--line-width, 30px);
	}
}

.projects-section .network-diagram svg {
	top: 0;
	left: 0;
}

@media (max-width: 992px) {
	.projects-section {
		min-height: 70vh;
	}
}

@media (max-width: 768px) {
	.projects-section {
		min-height: 60vh;
	}

	.projects-content {
		padding-left: 20px;
		padding-right: 20px;
	}

	.projects-section:hover .projects-bg-image {
		transform: none;
		filter: none;
	}
}

@media (max-width: 576px) {
	.projects-section {
		height: auto !important;
		min-height: auto !important;
		padding: 2rem 0;
	}

	.projects-section h3 {
		font-size: 1.8rem !important;
	}

	.projects-section h4 {
		font-size: 1.2rem !important;
	}

	.projects-section .network-diagram {
		width: 150px !important;
		height: 100px !important;
		margin: 0 auto;
	}
}

/* ==========================================================================
   Agora Section (same as html/index.html)
   ========================================================================== */
.agora-section {
	position: relative;
	overflow: hidden;
	/* Desktop: full viewport block (moved from inline — mobile overrides below) */
	min-height: 800px;
	height: 100vh;
}

.agora-bg {
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	min-height: 100%;
	overflow: hidden;
	z-index: 1;
	/* Poster: inline background-image + cover fills layer edge-to-edge */
}

.agora-bg .agora-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	z-index: 1;
}

/* Desktop: hide video when load/play failed */
.agora-bg .agora-video.agora-video-hidden {
	display: none !important;
}

.agora-fallback {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	z-index: 0;
	/* Slight overscan avoids 1px gaps on some mobile WebKit layouts */
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
}

.agora-bg .agora-fallback.agora-fallback-visible {
	display: block !important;
	z-index: 1 !important;
}

/* Mobile: no video; no <img> (iOS letterboxing). Section + .agora-bg both use cover background; height uses svh/dvh not 100vh. */
@media (max-width: 768px) {
	.agora-section {
		height: auto !important;
		min-height: 100vh !important;
		background-color: #2d2d2d;
		background-image: var(--agora-poster);
		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
	}

	@supports (min-height: 100dvh) {
		.agora-section {
			min-height: 100dvh !important;
		}
	}

	@supports (min-height: 100svh) {
		.agora-section {
			min-height: 100svh !important;
		}
	}

	.agora-section > .container-fluid {
		min-height: inherit;
	}

	/* Bleed past edges — removes 1px hairlines vs adjacent sections */
	.agora-bg {
		inset: -2px;
		min-height: calc(105% + 4px);
		background-size: cover !important;
		background-position: center center !important;
	}

	.agora-bg .agora-video {
		display: none !important;
	}

	.agora-bg .agora-fallback {
		display: none !important;
	}
}

.agora-overlay {
	pointer-events: none;
}

.agora-image {
	transition: all 0.3s ease;
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.agora-image:hover {
	transform: scale(1.05);
	filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

/* Agora modal (Bootstrap) */
#agoraModal .modal-content {
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(20px);
}

#agoraModal .interactive-panel {
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.2);
	position: relative;
	overflow: hidden;
}

#agoraModal .interactive-panel:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

#agoraModal .btn {
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

#agoraModal .btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#agoraModal .list-unstyled li {
	transition: all 0.3s ease;
	padding: 8px 0;
	border-left: 3px solid transparent;
	padding-left: 15px;
	margin-left: -15px;
}

#agoraModal .list-unstyled li:hover {
	border-left-color: #d22630;
	background: rgba(210, 38, 48, 0.1);
	border-radius: 5px;
	transform: translateX(10px);
}

@media (max-width: 768px) {
	.agora-image {
		max-width: 250px !important;
	}

	#agoraModal .modal-dialog {
		margin: 10px;
	}

	#agoraModal .modal-body {
		padding: 20px !important;
	}

	#agoraModal h2 {
		font-size: 2rem !important;
		text-align: center !important;
	}

	#agoraModal .text-start {
		text-align: center !important;
	}

	#agoraModal .list-unstyled {
		text-align: left !important;
		max-width: 400px;
		margin: 0 auto;
	}

	#agoraModal .qr-image {
		max-width: 200px !important;
	}
}

/* ==========================================================================
   Registration Section (same as html/index.html)
   ========================================================================== */
.registration-section {
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.registration-content .vertical-text {
	transition: all 0.3s ease;
}

.registration-content .vertical-text:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateX(5px);
}

.registration-content h2 {
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.registration-content p {
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.registration-section .custom-input,
.registration-section .custom-select {
	background: rgba(255, 255, 255, 0.2) !important;
	border: 1px solid white !important;
	border-radius: 0 !important;
	padding: 4px 5px !important;
	font-size: 0.9rem !important;
	font-weight: 500 !important;
	color: #333 !important;
	transition: all 0.3s ease !important;
	height: auto !important;
}

.registration-section .custom-input:focus,
.registration-section .custom-select:focus {
	background: white !important;
	border-color: #FAAF40 !important;
	box-shadow: 0 0 0 0.2rem rgba(250, 175, 64, 0.25) !important;
	outline: none !important;
}

.registration-section .custom-select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important;
	background-position: right 10px center !important;
	background-size: 14px 10px !important;
}

.register-btn {
	transition: all 0.3s ease !important;
	text-transform: uppercase;
	position: relative;
	overflow: hidden;
	min-width: 140px;
}

.register-btn:hover {
	background: white !important;
	color: #d22630 !important;
	border-color: white !important;
	transform: translateY(-1px);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

.registration-form .col-12 {
	margin-bottom: 15px !important;
}

.registration-form .row.align-items-center {
	min-height: 40px;
}

@media (max-width: 992px) {
	.registration-section {
		padding: 60px 0 !important;
	}

	.registration-content .pe-5 {
		padding-right: 15px !important;
	}

	.registration-form .row.align-items-center {
		flex-direction: column;
		align-items: flex-start !important;
	}

	.registration-form .col-md-3,
	.registration-form .col-md-9 {
		width: 100%;
		max-width: 100%;
		flex: 0 0 100%;
	}
}

@media (max-width: 768px) {
	.registration-section {
		padding: 40px 0 !important;
	}

	.registration-content h2 {
		font-size: 1.5rem !important;
		text-align: center;
	}

	.registration-content .content-text {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}

	.registration-label .vertical-text {
		margin: 0 auto;
	}
}

/* ==========================================================================
   Contact Section (same as html/index.html)
   ========================================================================== */
.contact-section {
	background-color: #f8f9fa;
	padding: 80px 0;
	position: relative;
}

.contact-us-btn {
	border: 2px solid #FAAF40;
	color: #FAAF40;
	padding: 12px 40px;
	font-weight: bold;
	letter-spacing: 2px;
	border-radius: 0;
	background: transparent;
}

.contact-us-btn:hover {
	background: #FAAF40 !important;
	color: white !important;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(250, 175, 64, 0.3);
}

.contact-section .location-title {
	color: #333;
	font-size: 1.5rem;
}

.contact-section .contact-details {
	color: #666;
	font-size: 1.1rem;
	font-weight: 500;
}

.contact-section .email-title,
.contact-section h4.email-title {
	color: #1c1c1c !important;
}

.contact-section .contact-label {
	color: #333 !important;
	font-size: 0.9rem;
}

.contact-section .contact-input {
	border: 1px solid #ccc;
	border-radius: 0;
	padding: 10px;
	background: white;
	transition: all 0.3s ease;
}

.contact-section .contact-input:focus {
	border-color: #FAAF40 !important;
	box-shadow: 0 0 0 0.2rem rgba(250, 175, 64, 0.25) !important;
}

.contact-section .contact-textarea {
	border: 1px solid #ccc;
	border-radius: 0;
	padding: 10px;
	background: white;
	resize: vertical;
}

.contact-send-btn {
	background: transparent;
	border: 1px solid #FAAF40;
	color: #FAAF40;
	padding: 10px 30px;
	font-weight: bold;
	letter-spacing: 1px;
	border-radius: 0;
	transition: all 0.3s ease;
}

.contact-send-btn:hover {
	background: #FAAF40 !important;
	color: white !important;
	transform: translateY(-1px);
	box-shadow: 0 3px 10px rgba(250, 175, 64, 0.3);
}

.contact-section .social-icon {
	display: inline-block;
	width: 40px;
	height: 40px;
	color: white;
	text-align: center;
	line-height: 40px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.contact-section .social-icon.facebook {
	background: #d22630;
}

.contact-section .social-icon.twitter,
.contact-section .social-icon.instagram {
	background: #333;
}

.contact-section .social-icon.youtube {
	background: #d22630;
}

.contact-section .social-icon:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-section .map-container {
	background: #fbaf41;
	height: 400px;
	position: relative;
	border-radius: 0;
	transition: all 0.3s ease;
}

.contact-section .map-container:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-section .map-icon {
	font-size: 3rem;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 20px;
}

.contact-section .map-title {
	color: rgba(255, 255, 255, 0.9);
	font-weight: bold;
}

.contact-section .map-subtitle {
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}

@media (max-width: 992px) {
	.contact-section {
		padding: 60px 0 !important;
	}

	.contact-section .map-container {
		height: 300px !important;
		margin-top: 30px;
	}
}

/* ==========================================================================
   Footer Section (same as html/index.html)
   ========================================================================== */
.footer-section {
	background-color: #1a1a1a;
	padding: 60px 0 30px;
	color: white;
	position: relative;
}

.footer-section .footer-links li {
	margin-bottom: 0.5rem;
}
.footer-section .footer-link {
	color: #8E8E8E;
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.3s ease;
}
.footer-section .footer-links li,
.footer-section .footer-links a{
	color: #8E8E8E;
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.3s ease;
}
.footer-section .footer-links li:hover,
.footer-section .footer-links a:hover {
	color: #FAAF40 !important;
	padding-left: 5px;
}
 
.footer-section .footer-link:hover {
	color: #FAAF40 !important;
	padding-left: 5px;
}

.footer-section .tilwan-character {
	position: relative;
}

.footer-section .footer-logo {
	object-fit: contain;
	max-height: 180px;
	width: auto;
	transition: transform 0.3s ease;
}

.footer-section .character-illustration:hover .footer-logo {
	transform: scale(1.1);
}

.footer-section .copyright-border {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section .copyright-text {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
}

@media (max-width: 992px) {
	.footer-section {
		padding: 40px 0 20px !important;
	}

	.footer-section .footer-brand {
		text-align: center !important;
		margin-top: 30px;
	}

	.footer-section .footer-links {
		text-align: center !important;
	}
}

@media (max-width: 768px) {
	.footer-section .footer-brand {
		text-align: center !important;
		margin: 30px 0 !important;
	}

	.footer-section .character-illustration {
		display: inline-block;
	}

	.footer-section .footer-logo {
		max-height: 120px;
	}
}

/* ==========================================================================
   Go to top button
   ========================================================================== */
.back-to-top-global {
	z-index: 1000;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top-global button {
	width: 50px;
	height: 50px;
	border: none;
	background: linear-gradient(135deg, #FAAF40 0%, #FFD700 100%);
	color: white;
	border-radius: 50%;
	box-shadow: 0 4px 15px rgba(250, 175, 64, 0.4);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top-global button:hover {
	background: linear-gradient(135deg, #FFD700 0%, #FAAF40 100%);
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 6px 20px rgba(250, 175, 64, 0.6);
}

.back-to-top-global button:active {
	transform: translateY(-1px) scale(1.02);
}

.back-to-top-global button i {
	color: white;
	font-size: 16px;
}

@media (max-width: 768px) {
	.back-to-top-global {
		bottom: 20px !important;
		right: 20px !important;
	}

	.back-to-top-global button {
		width: 45px;
		height: 45px;
	}

	.back-to-top-global button i {
		font-size: 14px;
	}
}

/* ==========================================================================
   About Page – Circles Section (from about-v2.html / about-v2.css)
   ========================================================================== */
.page-about-main {
	padding: 0;
}

.about-circles-section {
	background-image: url('assets/images/about-bg.png');
	background-color: #fff;
	background-size: cover;
	background-position: center;
	min-height: 100vh;
	padding: 80px 0 0;
	position: relative;
	overflow: hidden;
	margin-bottom: 0;
}

.decoration-circles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

.deco-circle {
	position: absolute;
	border-radius: 50%;
	opacity: 0.1;
	animation: decoFloat 6s ease-in-out infinite;
}

.deco-circle-1 {
	width: 200px;
	height: 200px;
	background: #FAAF40;
	top: 10%;
	right: 15%;
	animation-delay: 0s;
}

.deco-circle-2 {
	width: 150px;
	height: 150px;
	background: #d22630;
	bottom: 20%;
	left: 10%;
	animation-delay: 2s;
}

.deco-circle-3 {
	width: 100px;
	height: 100px;
	background: #333;
	top: 60%;
	right: 5%;
	animation-delay: 4s;
}

.deco-circle-4 {
	width: 80px;
	height: 80px;
	background: #FAAF40;
	top: 20%;
	left: 5%;
	animation-delay: 1s;
}

@keyframes decoFloat {
	0%, 100% { transform: translateY(0) scale(1); }
	25% { transform: translateY(-20px) scale(1.05); }
	50% { transform: translateY(-10px) scale(0.95); }
	75% { transform: translateY(-15px) scale(1.02); }
}

@keyframes bounceInUp {
	0% {
		opacity: 0;
		transform: translateY(100px) scale(0.8);
	}
	60% {
		opacity: 1;
		transform: translateY(-15px) scale(1.05);
	}
	80% {
		transform: translateY(5px) scale(0.98);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.circles-container {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: -300px;
	min-height: 100vh;
	justify-content: center;
}

.content-circle {
	width: 900px;
	max-width: 90vw;
	height: 900px;
	max-height: 90vw;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 80px 60px;
	position: relative;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
		0 0 0 3px rgba(255, 255, 255, 0.1),
		inset 0 0 50px rgba(255, 255, 255, 0.05);
	transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	border: 2px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.circle-content {
	position: relative;
	z-index: 2;
	max-width: 100%;
	box-sizing: border-box;
}

.content-circle.animate-in {
	animation: bounceInUp 0.8s ease-out forwards;
	opacity: 1 !important;
}

.content-circle:hover {
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25),
		0 0 0 5px rgba(255, 255, 255, 0.2),
		inset 0 0 80px rgba(255, 255, 255, 0.1);
	z-index: 15;
}

.circle-vision.animate-in { animation-delay: 0.2s; }
.circle-values.animate-in { animation-delay: 0.5s; }
.circle-story.animate-in { animation-delay: 0.8s; }

.circle-vision {
	background: linear-gradient(135deg, #FAAF40 0%, #FFD700 100%);
	color: #333;
	order: 1;
	z-index: 13;
	transform: translateY(100px) translateX(-100px);
	margin-left: -400px;
	transition-delay: 0.2s;
}

.circle-vision.animate-in {
	transform: translateY(0) translateX(-100px);
}

.circle-vision:hover {
	transform: translate(-100px, -10px) scale(1.02);
}

.circle-values {
	background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
	color: white;
	order: 2;
	z-index: 12;
	transform: translate(150px, calc(-350px + 100px));
	filter: blur(0.3px);
	margin-right: -350px;
	margin-top: -200px;
	transition-delay: 0.5s;
}

.circle-values.animate-in {
	transform: translate(150px, -350px);
}

.circle-values:hover {
	transform: translate(150px, -360px) scale(1.02);
	filter: blur(0);
}

.circle-story {
	background: linear-gradient(135deg, #d22630 0%, #b91c2c 100%);
	color: white;
	order: 3;
	text-align: center;
	z-index: 11;
	transform: translate(-100px, calc(-650px + 100px));
	filter: blur(0.5px);
	margin-left: -450px;
	margin-top: -200px;
	transition-delay: 0.8s;
}

.circle-story.animate-in {
	transform: translate(-100px, -650px);
}

.circle-story:hover {
	transform: translate(-100px, -660px) scale(1.02);
	filter: blur(0);
}

.circle-icon {
	position: absolute;
	top: 50px;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 100px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.circle-vision .circle-icon {
	background: rgba(0, 0, 0, 0.1);
	color: #333;
}

.circle-values .circle-icon,
.circle-story .circle-icon {
	background: rgba(255, 255, 255, 0.2);
	color: white;
}

.circle-title {
	font-weight: 700;
	font-size: 1.6rem;
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 20px;
}

.circle-text {
	font-size: 1.1rem;
	line-height: 1.7;
	margin-bottom: 0;
}

.about-circles-section .values-list {
	text-align: left;
	list-style: none;
	padding: 0;
	margin: 0;
}

.about-circles-section .values-list li {
	font-size: 1.05rem;
	line-height: 1.7;
	margin-bottom: 10px;
	padding-left: 0;
	text-align: center;
}

/* About circles – responsive (match about-v2.css breakpoints and text scaling) */
@media (max-width: 992px) {
	.about-circles-section {
		margin-bottom: 0;
	}

	.circles-container {
		flex-direction: column !important;
		gap: 50px !important;
		align-items: center !important;
		justify-content: center !important;
		padding: 30px 15px;
		min-height: auto !important;
	}

	.content-circle {
		position: relative !important;
		margin: 0 !important;
		transform: none !important;
		width: min(400px, 85vw) !important;
		max-width: 400px !important;
		height: min(400px, 85vw) !important;
		max-height: 400px !important;
		padding: 45px 28px 40px !important;
		overflow: hidden !important;
	}

	.about-circles-section .circle-content {
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		max-height: calc(100% - 100px);
		padding: 0 4px;
	}

	.content-circle.animate-in {
		transform: none !important;
		opacity: 1 !important;
	}

	.circle-vision,
	.circle-values,
	.circle-story {
		position: relative !important;
		margin: 0 !important;
		transform: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-top: 0 !important;
	}

	.circle-vision.animate-in,
	.circle-values.animate-in,
	.circle-story.animate-in {
		transform: none !important;
	}

	.circle-vision:hover,
	.circle-values:hover,
	.circle-story:hover {
		transform: translateY(-8px) scale(1.03) !important;
	}

	/* Responsive text – tablet */
	.about-circles-section .circle-title {
		font-size: 1.15rem;
		margin-bottom: 12px;
		margin-top: 12px;
	}

	.about-circles-section .circle-content .circle-title.mt-4 {
		margin-top: 1rem;
	}

	.about-circles-section .circle-text {
		font-size: 0.95rem;
		line-height: 1.6;
	}

	.about-circles-section .values-list li {
		font-size: 0.9rem;
		line-height: 1.5;
		margin-bottom: 8px;
	}

	.about-circles-section .circle-icon {
		width: 80px;
		height: 80px;
		top: 35px;
	}
}

@media (max-width: 768px) {
	.about-circles-section .content-circle {
		padding: 40px 24px 35px !important;
		overflow: hidden !important;
	}

	.about-circles-section .circle-content {
		max-height: calc(100% - 90px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.about-circles-section .circle-title {
		font-size: 1.05rem;
		margin-bottom: 10px;
		margin-top: 10px;
	}

	.about-circles-section .circle-text {
		font-size: 0.9rem;
		line-height: 1.55;
	}

	.about-circles-section .values-list li {
		font-size: 0.85rem;
		line-height: 1.45;
		margin-bottom: 6px;
	}

	.about-circles-section .content-circle:hover {
		transform: translateY(-5px) scale(1.02) !important;
	}

	.about-circles-section .circle-icon {
		width: 65px;
		height: 65px;
		top: 22px;
	}
}

@media (max-width: 576px) {
	.about-circles-section .content-circle {
		width: min(300px, 85vw) !important;
		height: min(300px, 85vw) !important;
		max-width: 300px !important;
		max-height: 300px !important;
		padding: 22px 14px 18px !important;
		overflow: hidden !important;
		justify-content: flex-start !important;
	}

	/* Keep all text inside circle: scrollable content area below icon */
	.about-circles-section .circle-content {
		margin-top: 48px;
		max-height: calc(100% - 48px) !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		width: 100%;
		padding: 0 2px;
		word-wrap: break-word;
		overflow-x: hidden;
	}

	.about-circles-section .circle-content .circle-title:first-child {
		margin-top: 0;
	}

	.about-circles-section .content-circle:hover {
		transform: translateY(-3px) scale(1.01) !important;
	}

	/* Responsive text – small mobile, compact so it fits inside circle */
	.about-circles-section .circle-title {
		font-size: 0.8rem;
		margin-bottom: 6px;
		margin-top: 6px;
		line-height: 1.2;
	}

	.about-circles-section .circle-content .circle-title.mt-4 {
		margin-top: 0.5rem;
	}

	.about-circles-section .circle-text {
		font-size: 0.6rem;
		line-height: 1.35;
		margin-bottom: 4px;
	}

	.about-circles-section .values-list {
		margin-bottom: 4px;
	}

	.about-circles-section .values-list li {
		font-size: 0.65rem;
		line-height: 1.3;
		margin-bottom: 3px;
	}

	.about-circles-section .circle-icon {
		width: 50px;
		height: 50px;
		top: 10px;
	}

	.about-circles-section .circle-icon .img-fluid {
		max-width: 28px;
		height: auto;
	}
}

/* ==========================================================================
   About Page – Programmes Section (from about-v2.html / about-v2.css)
   ========================================================================== */
.programmes-section {
	background: linear-gradient(135deg, #E6A345 0%, #D2933A 100%);
	position: relative;
	padding-top: 100px;
	padding-bottom: 100px;
	z-index: 100;
}

.programmes-title {
	display: flex;
	align-items: center;
	margin-bottom: 40px;
}

.programmes-section .title-black {
	background-color: #2c2c2c;
	color: white;
	padding: 8px 20px;
	margin: 0;
	font-size: 3rem;
	font-weight: bold;
	letter-spacing: 2px;
	margin-right: 5px;
}

.programmes-content {
	color: #2c2c2c;
	max-width: 800px;
}

.programmes-section .main-text {
	font-size: 1.1rem;
	line-height: 1.7;
	margin-bottom: 0;
	color: #2c2c2c;
}

.programmes-section .intro-text {
	font-size: 1.05rem;
	font-weight: 500;
	color: #2c2c2c;
}

.programmes-section .areas-list {
	margin-left: 20px;
}

.programmes-section .area-item {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.programmes-section .area-number {
	font-size: 1.3rem;
	font-weight: bold;
	color: #2c2c2c;
	margin-right: 15px;
	min-width: 30px;
}

.programmes-section .area-title {
	font-weight: 600;
	color: #2c2c2c;
	cursor: pointer;
	text-decoration: none;
	transition: color 0.2s ease;
}

.programmes-section .area-title:hover {
	color: #d22630;
}

.programmes-diagram {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 40px;
}

.programmes-section .diagram-image {
	max-width: 100%;
	height: auto;
	max-height: 300px;
	object-fit: contain;
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
	transition: transform 0.3s ease;
}

.programmes-section .diagram-image:hover {
	transform: scale(1.02);
}

@media (max-width: 992px) {
	.programmes-section .title-black {
		font-size: 2rem;
	}

	.programmes-section {
		padding-top: 60px;
		padding-bottom: 60px;
	}

	.programmes-diagram {
		margin-top: 2rem;
	}
}

@media (max-width: 768px) {
	.programmes-section .title-black {
		font-size: 1.75rem;
	}

	.programmes-section .main-text {
		font-size: 1rem;
	}

	.programmes-section .areas-list {
		margin-left: 0;
	}
}

@media (max-width: 576px) {
	.programmes-section {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.programmes-section .title-black {
		font-size: 1.5rem;
		padding: 6px 14px;
	}

	.programmes-section .main-text,
	.programmes-section .intro-text {
		font-size: 0.95rem;
	}

	.programmes-section .area-number {
		font-size: 1.1rem;
	}

	.programmes-section .area-title {
		font-size: 0.95rem;
	}
}

/* Programmes core-area modals – improved look (About page) */
.core-area-modal .modal-dialog {
	max-width: 580px;
	margin: 1.75rem auto;
}

.core-area-modal .modal-content {
	border: none;
	border-radius: 12px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(44, 44, 44, 0.08);
	overflow: hidden;
}

.core-area-modal .modal-header {
	position: relative;
	background: linear-gradient(135deg, #2c2c2c 0%, #1f1f1f 100%);
	color: #fff;
	padding: 1rem 1.5rem;
	border-bottom: 3px solid #D2933A;
	align-items: center;
	flex-shrink: 0;
}

.core-area-modal .modal-title {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	margin: 0;
	line-height: 1.3;
	padding-right: 2rem;
}

.core-area-modal .modal-header .btn-close {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.85;
	filter: invert(1);
	padding: 0.5rem;
	background-size: 1.25rem;
	z-index: 10;
	cursor: pointer;
}

.core-area-modal .modal-header .btn-close:hover {
	opacity: 1;
}

.core-area-modal .modal-body {
	padding: 1.5rem 1.75rem 1.75rem;
	background: #fafafa;
	color: #2c2c2c;
	font-size: 1rem;
	line-height: 1.65;
}

.core-area-modal .modal-body h6 {
	color: #D2933A;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.core-area-modal .modal-body > p:first-of-type {
	margin-bottom: 1.25rem;
	color: #333;
}

.core-area-modal .modal-body ul {
	list-style: none;
	padding-left: 0;
	margin-bottom: 0;
}

.core-area-modal .modal-body ul li {
	padding: 0.65rem 0 0.65rem 1rem;
	margin-bottom: 0.25rem;
	border-left: 3px solid transparent;
	margin-left: 0;
	transition: background 0.2s ease, border-color 0.2s ease;
	border-radius: 0 6px 6px 0;
}

.core-area-modal .modal-body ul li:hover {
	border-left-color: #d22630;
	background: rgba(210, 38, 48, 0.06);
}

.core-area-modal .modal-body ul li strong {
	color: #2c2c2c;
}

@media (max-width: 576px) {
	.core-area-modal .modal-dialog {
		margin: 0.5rem;
		max-width: calc(100% - 1rem);
	}

	.core-area-modal .modal-content {
		max-height: calc(100vh - 1rem);
		display: flex;
		flex-direction: column;
	}

	.core-area-modal .modal-header {
		padding: 1rem 3.5rem 1rem 1.25rem;
		flex-shrink: 0;
	}

	.core-area-modal .modal-body {
		padding: 1rem 1.25rem;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.core-area-modal .modal-title {
		font-size: 1.1rem;
		padding-right: 2.5rem;
	}

	/* Larger touch target for close button on mobile (min 44px) */
	.core-area-modal .modal-header .btn-close {
		right: 0.5rem;
		top: 50%;
		transform: translateY(-50%);
		min-width: 44px;
		min-height: 44px;
		padding: 0.75rem;
		background-size: 1.25rem;
		background-position: center;
		z-index: 11;
	}
}

/* ==========================================================================
   About Page – Cross-Cutting Themes Section (from about-v2.html – diagram important)
   ========================================================================== */
.section-themes {
	background-image: url('assets/images/slider-02.png');
	background-size: cover;
	background-attachment: fixed;
	position: relative;
	padding: 80px 0;
	color: #fff;
	overflow: hidden;
}

.section-themes::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 0;
}

.section-themes .container-fluid {
	position: relative;
	z-index: 1;
}

.section-themes .section-title.white {
	color: #fff;
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.section-themes .lead {
	color: rgba(255, 255, 255, 0.95);
	font-size: 1.1rem;
	line-height: 1.6;
}

/* Theme text list */
.section-themes .theme-text-item {
	transition: all 0.3s ease;
	padding: 15px;
	border-radius: 8px;
	border-left: 4px solid transparent;
}

.section-themes .theme-text-item.active {
	background: rgba(255, 255, 255, 0.15);
	border-left-color: #FAAF40;
}

.section-themes .theme-text-item h4 {
	font-weight: 700;
	margin-bottom: 8px;
}

.section-themes .theme-text-item p {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.6;
}

/* Circles diagram wrapper */
.section-themes .circles-wrapper.themes-diagram {
	position: relative;
	width: 600px;
	height: 600px;
	margin: 0 auto;
}

.section-themes .theme-circle {
	position: absolute;
	width: 280px;
	height: 280px;
	transition: all 0.5s ease;
	cursor: pointer;
}

.section-themes .theme-circle img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.section-themes .theme-circle:hover img {
	transform: scale(1.05);
}

.section-themes .theme-circle.active img {
	transform: scale(1.1);
	filter: drop-shadow(0 0 15px rgba(250, 175, 64, 0.6));
}

.section-themes .theme-label {
	position: absolute;
	width: 100%;
	text-align: center;
	color: #fff;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	bottom: -30px;
	font-size: 0.9rem;
}

/* Center hub */
.section-themes .center-hub {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200px;
	height: 200px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	border: 4px solid #FAAF40;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	z-index: 10;
	box-shadow: 0 0 30px rgba(250, 175, 64, 0.3);
	padding: 20px;
}

.section-themes .center-hub span {
	font-size: 0.75rem;
	font-weight: 700;
	color: #1c1c1c;
	display: block;
	margin: 2px 0;
}

/* Theme circle positions – desktop (top, right, bottom, left) */
.section-themes .theme-circle.community {
	top: 0;
	left: 50%;
	transform: translateX(-50%);
}

.section-themes .theme-circle.youth {
	top: 50%;
	right: 0;
	transform: translateY(-50%);
}

.section-themes .theme-circle.women {
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
}

.section-themes .theme-circle.innovation {
	top: 50%;
	left: 0;
	transform: translateY(-50%);
}

/* Cross-Cutting Themes – responsive */
@media (max-width: 992px) {
	.section-themes {
		background-attachment: scroll;
		padding: 60px 0;
	}

	.section-themes .section-title.white {
		font-size: 2rem;
	}

	.section-themes .circles-wrapper.themes-diagram {
		width: 450px;
		height: 450px;
	}

	.section-themes .theme-circle {
		width: 200px;
		height: 200px;
	}

	.section-themes .center-hub {
		width: 140px;
		height: 140px;
		padding: 15px;
	}

	.section-themes .center-hub span {
		font-size: 0.6rem;
	}
}

@media (max-width: 768px) {
	.section-themes .circles-wrapper.themes-diagram {
		width: 380px;
		height: 380px;
		margin-top: 2rem;
	}

	.section-themes .theme-circle {
		width: 160px;
		height: 160px;
	}

	.section-themes .theme-circle.community {
		top: 20px;
	}

	.section-themes .theme-circle.youth {
		right: 20px;
	}

	.section-themes .theme-circle.women {
		bottom: 20px;
	}

	.section-themes .theme-circle.innovation {
		left: 20px;
	}

	.section-themes .center-hub {
		width: 110px;
		height: 110px;
		padding: 10px;
	}

	.section-themes .center-hub span {
		font-size: 0.55rem;
	}

	.section-themes .theme-label {
		font-size: 0.75rem;
		bottom: -24px;
	}
}

@media (max-width: 576px) {
	.section-themes {
		padding: 40px 0;
	}

	.section-themes .section-title.white {
		font-size: 1.5rem;
	}

	.section-themes .lead {
		font-size: 1rem;
	}

	.section-themes .circles-wrapper.themes-diagram {
		width: 300px !important;
		height: 300px !important;
		margin-left: auto;
		margin-right: auto;
	}

	.section-themes .theme-circle {
		width: 150px !important;
		height: 150px !important;
	}

	.section-themes .theme-circle.community {
		top: 0 !important;
	}

	.section-themes .theme-circle.youth {
		right: 0 !important;
	}

	.section-themes .theme-circle.women {
		bottom: 0 !important;
	}

	.section-themes .theme-circle.innovation {
		left: 0 !important;
	}

	.section-themes .center-hub {
		width: 120px !important;
		height: 120px !important;
		padding: 5px;
	}

	.section-themes .center-hub span {
		font-size: 0.5rem !important;
		line-height: 1.1;
	}

	.section-themes .theme-label {
		font-size: 0.6rem;
		bottom: -20px;
	}

	.section-themes .theme-circle.community .theme-label {
		bottom: auto;
		top: -25px;
	}
}

/* ==========================================================================
   About Page – Projects & Activities (from about-v2.html)
   ========================================================================== */
.section-projects {
	background-color: #FAAF40;
	background-image: url('assets/images/afaq-bg.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	color: #fff;
	padding: 80px 0;
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Custom background from CPT (About: Projects Block) */
.section-projects--custom-bg {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.section-projects--custom-bg .section-projects-bg-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.section-projects--custom-bg .section-projects-inner {
	position: relative;
	z-index: 1;
}

.section-projects::before {
	content: '';
	position: absolute;
	inset: 0;
	/* background: radial-gradient(circle at center, rgba(255, 255, 254, 0.1), rgba(0, 0, 0, 0.49)); */
	z-index: 0;
}

.section-projects > * {
	position: relative;
	z-index: 1;
}

.section-projects .projects-title-box h2,
.section-projects .projects-text,
.section-projects .project-subtitle,
.section-projects .projects-funding {
	text-shadow: var(--ap-text-shadow, 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4));
}

.section-projects .project-subtitle {
	color: var(--ap-title-color, #fff);
}

.section-projects .projects-text,
.section-projects .projects-text p,
.section-projects .projects-funding {
	color: var(--ap-text-color, #fff);
}

.section-projects .projects-text {
	text-align: justify;
}

.section-projects .projects-text p {
	margin-bottom: 1rem;
}

.section-projects .projects-text p:last-child {
	margin-bottom: 0;
}

.section-projects .project-subtitle {
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

.section-projects .projects-text a {
	color: var(--ap-text-color, #fff);
	text-decoration: underline;
}

.section-projects .projects-section-logo {
	display: flex;
	justify-content: center;
	width: 100%;
}

.section-projects .projects-section-logo.text-left {
	justify-content: flex-start;
}

.section-projects .projects-section-logo.text-center {
	justify-content: center;
}

.section-projects .projects-section-logo.text-right {
	justify-content: flex-end;
}

.section-projects .projects-section-logo img {
	max-width: 280px;
	width: auto;
	height: auto;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.section-projects .projects-logo,
.section-projects .projects-logo2 {
	display: flex;
	justify-content: center;
	width: 100%;
}

.section-projects .projects-logo.text-left,
.section-projects .projects-logo2.text-left {
	justify-content: flex-start;
}

.section-projects .projects-logo.text-center,
.section-projects .projects-logo2.text-center {
	justify-content: center;
}

.section-projects .projects-logo.text-right,
.section-projects .projects-logo2.text-right {
	justify-content: flex-end;
}

.section-projects .projects-logo img,
.section-projects .projects-logo2 img {
	max-width: var(--ap-partner-logo-max-width, 200px);
	width: auto;
	height: auto;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.section-projects .projects-funding {
	font-size: 0.95rem;
	opacity: 0.95;
	text-align: justify;
}

/* About Project: Photos & Video – Swiper carousel (5 visible, autoplay 5s) */
.ap-project-media {
	width: 100%;
}

.ap-project-swiper {
	overflow: hidden;
	padding: 0 0 10px;
}

.ap-project-swiper .swiper-slide {
	height: auto;
}

.ap-project-media-item {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	max-width: 150px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.2);
}

.ap-project-media-item:hover {
	opacity: 0.95;
}

.ap-project-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ap-project-media-video .ap-project-media-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.3);
}

.ap-project-media-video .ap-project-media-play::after {
	content: '';
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 20px 0 20px 36px;
	border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
	margin-left: 6px;
}

/* Projects heading – own section with page-title style background */
.section-projects-heading {
	position: relative;
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: url('assets/images/about-bg.png');
	background-size: contain;
	background-position: center bottom;
	background-repeat:  repeat;
	background-color: #be1e2d;
	overflow: hidden;
}

.section-projects-heading-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( to bottom, rgba(0, 0, 0, 0.85 ) 0%, rgba(0, 0, 0, 0.5 ) 50%, rgba(0, 0, 0, 0.4 ) 100% );
	pointer-events: none;
}

.section-projects-heading-inner {
	z-index: 1;
	padding: 3rem 0;
}

.section-projects-heading .projects-title-box {
	display: inline-block;
	margin: 0;
}

.section-projects-heading .projects-title-box h2 {
	color: #fff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.section-projects .projects-title-box {
	display: inline-block;
	margin-bottom: 0;
}

.section-projects .projects-title-box h2 {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 2px;
}

@media (max-width: 991px) {
	.section-projects {
		background-attachment: scroll;
	}
}

@media (max-width: 767px) {
	.section-projects .projects-title-box h2 {
		font-size: 1.5rem;
	}
}

/* ==========================================================================
   About Page – Calligraphy and Beyond / Horoof (from about-v2.html)
   ========================================================================== */
.section-horoof {
	background-color: #1c1c1c;
	background-image: url('assets/images/horoof_bg.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	color: #fff;
	padding: 80px 0;
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.section-horoof::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
	z-index: 0;
}

.section-horoof > * {
	position: relative;
	z-index: 1;
}

.section-horoof .horoof-title,
.section-horoof .horoof-subtitle,
.section-horoof .horoof-text,
.section-horoof .horoof-text p,
.section-horoof .horoof-text a {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.section-horoof .horoof-logo {
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

.section-horoof .horoof-logo img {
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.section-horoof .horoof-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	letter-spacing: 1px;
}

.section-horoof .horoof-subtitle {
	font-size: 1rem;
	opacity: 0.95;
	margin-bottom: 1.5rem;
}

.section-horoof .horoof-text {
	text-align: justify;
}

.section-horoof .horoof-text p {
	margin-bottom: 1rem;
}

.section-horoof .horoof-text p:last-child {
	margin-bottom: 0;
}

.section-horoof .horoof-text a {
	color: #FAAF40;
}

@media (max-width: 991px) {
	.section-horoof {
		background-attachment: scroll;
	}
}

/* ==========================================================================
   About Page – Bring to Light (Raas Kheit) – white bg, image right
   ========================================================================== */
.section-raas-kheit {
	position: relative;
	background-image: url('assets/images/ras.png');
	background-size: contain;
	background-position: right bottom;
	background-repeat: no-repeat;
	background-color: #fff;
	color: #333;
	overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
	height: 100vh;
 
}

.section-raas-kheit .raas-kheit-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.60);
	pointer-events: none;
}

@media (max-width: 767px) {
	.section-raas-kheit .raas-kheit-overlay {
		background: rgb(255 255 255 / 87%);
	}
}

.section-raas-kheit .raas-kheit-inner {
	z-index: 1;
}

.section-raas-kheit .raas-kheit-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: #1c1c1c;
}

.section-raas-kheit .raas-kheit-subtitle {
	font-size: 1.15rem;
	color: #d22630;
	font-weight: 600;
	margin: 0 0 1.5rem;
}

.section-raas-kheit .raas-kheit-text {
	text-align: justify;
}

.section-raas-kheit .raas-kheit-text p {
	margin-bottom: 1rem;
	line-height: 1.7;
}

.section-raas-kheit .raas-kheit-text p:last-child {
	margin-bottom: 0;
}

.section-raas-kheit .raas-kheit-text a {
	color: #d22630;
	text-decoration: underline;
}


/* ==========================================================================
   About Page – Tripoli's Little Details (from about-v2.html)
   ========================================================================== */
.section-tripoli {
	background-color: #1c1c1c;
	background-image: url('assets/images/tripoli_bg.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	color: #fff;
	padding: 80px 0;
	padding-bottom: 0;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.section-tripoli::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
	z-index: 0;
}

.section-tripoli > * {
	position: relative;
	z-index: 1;
}

.section-tripoli .tripoli-title,
.section-tripoli .tripoli-subtitle,
.section-tripoli .tripoli-text,
.section-tripoli .tripoli-text p {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.section-tripoli .tripoli-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	letter-spacing: 1px;
}

.section-tripoli .tripoli-subtitle {
	font-size: 1rem;
	opacity: 0.95;
	margin-bottom: 1.5rem;
}

.section-tripoli .tripoli-text {
	margin-bottom: 5rem;
	margin-top: 5rem;
	text-align: justify;
}

.section-tripoli .tripoli-text p {
	margin-bottom: 1rem;
}

.section-tripoli .tripoli-text p:last-child {
	margin-bottom: 0;
}

.section-tripoli .tripoli-logos-row {
	max-width: 100%;
	row-gap: 1rem;
	column-gap: 1.5rem;
}

.section-tripoli .tripoli-partner-edge {
	margin-left: -3rem;
	padding-left: 1rem;
}

@media (max-width: 767px) {
	.section-tripoli .tripoli-partner-edge {
		margin-left: 0;
		padding-left: 0;
	}
	.section-tripoli .tripoli-logos-row .order-1 {
		margin-bottom: 1rem;
	}
	.section-tripoli .tripoli-logos-row .col-12 {
		max-width: 100%;
		flex: 0 0 100%;
	}
}

.section-tripoli .tripoli-partner-img,
.section-tripoli .tripoli-logo-img {
	height: auto;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
	max-width: 100%;
}

.section-tripoli .tripoli-partner-img {
	max-width: 300px;
}

.section-tripoli .tripoli-logo-img {
	max-width: 350px;
}

/* Tripoli section logo – prevent overflow on mobile */
.section-tripoli .tripoli-logo-wrap {
	overflow: hidden;
	max-width: 100%;
}

@media (max-width: 767px) {
	.section-tripoli .tripoli-logo-wrap .tripoli-logo-img {
		max-width: 100%;
		width: auto;
		height: auto;
	}
}

@media (min-width: 768px) {
	.section-tripoli .tripoli-logos-row .tripoli-partner-edge .tripoli-partner-img {
		max-width: min(100%, 380px);
	}
	.section-tripoli .tripoli-logos-row .tripoli-logo-img {
		max-width: min(100%, 280px);
	}
}

@media (min-width: 992px) {
	.section-tripoli .tripoli-logos-row .tripoli-partner-edge .tripoli-partner-img {
		max-width: min(100%, 820px);
	}
	.section-tripoli .tripoli-logos-row .tripoli-logo-img {
		max-width: min(100%, 350px);
	}
}

@media (max-width: 991px) {
	.section-tripoli {
		background-attachment: scroll;
	}
}

/* ==========================================================================
   Archive (category, tag, author, date) – same cards layout
   ========================================================================== */
.archive-main {
	padding-bottom: 4rem;
	min-height: 50vh;
}

.archive-main .archive-title {
	text-transform: uppercase;
}

/* ==========================================================================
   News Archive Page – Hero, filter, cards grid (أرشيف الأخبار)
   ========================================================================== */
.news-archive-main {
	padding-bottom: 4rem;
	min-height: 50vh;
}

.news-archive-hero {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1c1c1c 100%);
	color: #fff;
	padding: 4rem 0 3rem;
	margin-bottom: 2rem;
	border-bottom: 3px solid #FAAF40;
}

.news-archive-title {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: 2px;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}

.news-archive-lead {
	font-size: 1.1rem;
	opacity: 0.9;
	margin: 0;
}

/* Category filter pills */
.news-category-filter {
	margin-bottom: 2.5rem;
}

.news-category-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.news-cat-pill {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none;
	border-radius: 2rem;
	font-weight: 600;
	font-size: 0.9rem;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	border: 2px solid transparent;
}

.news-cat-pill:hover {
	background: rgba(250, 175, 64, 0.25);
	color: #fff;
	border-color: #FAAF40;
}

.news-cat-pill.active {
	background: #FAAF40;
	color: #1c1c1c;
	border-color: #FAAF40;
}

/* Cards grid */
.news-cards-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 1.75rem;
}

@media (min-width: 576px) {
	.news-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.news-cards-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

/* Single card */
.news-card {
	background: #252525;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.news-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.news-card-image-wrap {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #1a1a1a;
}

.news-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.news-card:hover .news-card-image {
	transform: scale(1.06);
}

.news-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
	pointer-events: none;
}

.news-card-cat {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #FAAF40;
	color: #1c1c1c;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.news-card-body {
	padding: 1.35rem 1.25rem;
}

.news-card-date {
	display: block;
	font-size: 0.8rem;
	opacity: 0.8;
	margin-bottom: 0.5rem;
	color: #b0b0b0;
}

.news-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.5rem;
	color: #fff;
	transition: color 0.2s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-card:hover .news-card-title {
	color: #FAAF40;
}

.news-card-excerpt {
	font-size: 0.9rem;
	line-height: 1.5;
	margin: 0 0 0.75rem;
	color: rgba(255, 255, 255, 0.85);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-card-more {
	font-size: 0.85rem;
	font-weight: 600;
	color: #FAAF40;
	transition: transform 0.2s ease;
}

.news-card:hover .news-card-more {
	transform: translateX(4px);
}

/* No posts */
.news-no-posts {
	text-align: center;
	padding: 4rem 2rem;
	background: rgba(255,255,255,0.04);
	border-radius: 12px;
}

.news-no-posts-text {
	color: rgba(255,255,255,0.8);
	margin-bottom: 1rem;
}

.news-no-posts .news-cat-pill {
	margin-top: 0.5rem;
}

/* Pagination */
.news-pagination-wrap {
	margin-top: 3rem;
	display: flex;
	justify-content: center;
}

.news-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.news-pagination a,
.news-pagination span {
	display: inline-block;
	min-width: 42px;
	padding: 0.5rem 0.75rem;
	text-align: center;
	background: rgba(255,255,255,0.08);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease;
}

.news-pagination a:hover {
	background: #FAAF40;
	color: #1c1c1c;
}

.news-pagination .current {
	background: #FAAF40;
	color: #1c1c1c;
}

.news-pagination .dots {
	background: transparent;
	color: rgba(255,255,255,0.5);
}

/* RTL: card read-more arrow direction */
.rtl .news-card:hover .news-card-more {
	transform: translateX(-4px);
}

/* ==========================================================================
   Single Post – Hero, body, content (صفحة المقال)
   ========================================================================== */
.single-post-main {
	padding-bottom: 4rem;
}

/* Hero: full-width image + overlay + title & meta */
.single-post-hero {
	position: relative;
	min-height: 420px;
	background-size: cover;
	background-position: center;
	background-color: #1a1a1a;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 3rem;
}

.single-post-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( to top, rgba(0, 0, 0, 0.85 ) 0%, rgba(0, 0, 0, 0.5 ) 50%, rgba(0, 0, 0, 0.4 ) 100% );
}

.single-post-hero-inner {
	position: relative;
	z-index: 1;
	padding: 4rem 0;
}

.single-post-cats {
	margin-bottom: 1rem;
}

.single-post-cat-pill {
	display: inline-block;
	padding: 0.3rem 0.9rem;
	background: #FAAF40;
	color: #1c1c1c;
	text-decoration: none;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0.25rem 0.35rem 0;
	transition: background 0.2s ease, color 0.2s ease;
}

.single-post-cat-pill:hover {
	background: #fff;
	color: #1c1c1c;
}

.single-post-title {
	color: #fff;
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 1rem;
	letter-spacing: 0.5px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
	.single-post-title {
		font-size: 2.75rem;
	}
}

.single-post-meta {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.95rem;
}

.single-post-date {
	font-weight: 500;
}

.single-post-meta-sep {
	margin: 0 0.5rem;
	opacity: 0.7;
}

.single-post-author a {
	color: #FAAF40;
	text-decoration: none;
}

.single-post-author a:hover {
	text-decoration: underline;
}

/* Body & content */
.single-post-body {
	color: #333;
}

.single .entry-content{
	color: #333;
}

.single-post-entry-content {
	font-size: 1.1rem;
	line-height: 1.75;
}

.single-post-entry-content p {
	margin-bottom: 1.25rem;
}

.single-post-entry-content h2,
.single-post-entry-content h3,
.single-post-entry-content h4 {
	color: #fff;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	font-weight: 700;
}

.single-post-entry-content h2 { font-size: 1.6rem; }
.single-post-entry-content h3 { font-size: 1.35rem; }
.single-post-entry-content h4 { font-size: 1.15rem; }

.single-post-entry-content a {
	color: #FAAF40;
	text-decoration: none;
}

.single-post-entry-content a:hover {
	text-decoration: underline;
}

.single-post-entry-content ul,
.single-post-entry-content ol {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}

.single-post-entry-content li {
	margin-bottom: 0.4rem;
}

.single-post-entry-content blockquote {
	border-left: 4px solid #FAAF40;
	padding-left: 1.25rem;
	margin: 1.5rem 0;
	font-style: italic;
	opacity: 0.95;
}

.single-post-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}


.single-post-entry-content .page-links {
	margin-top: 1.5rem;
}

/* Footer: tags, edit link */
.single-post-footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.95rem;
}

.single-post-tags-label {
	display: inline-block;
	margin-left: 0.25rem;
	color: rgba(255, 255, 255, 0.7);
}

.single-post-tags a {
	color: #FAAF40;
	text-decoration: none;
}

.single-post-tags a:hover {
	text-decoration: underline;
}

.single-post-footer .edit-link {
	display: block;
	margin-top: 0.75rem;
}

.single-post-footer .edit-link a {
	color: rgba(255, 255, 255, 0.6);
}

.single-post-footer .edit-link a:hover {
	color: #FAAF40;
}

/* Post navigation (prev/next) */
.single-post-main .post-navigation {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.single-post-main .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	max-width: 900px;
	margin: 0 auto;
}

.single-post-main .nav-previous,
.single-post-main .nav-next {
	padding: 1rem 1.25rem;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.single-post-main .nav-previous { text-align: right; }
.single-post-main .nav-next     { text-align: left; }

.rtl .single-post-main .nav-previous { text-align: left; }
.rtl .single-post-main .nav-next     { text-align: right; }

.single-post-main .nav-previous:hover,
.single-post-main .nav-next:hover {
	background: rgba(250, 175, 64, 0.15);
	border-color: rgba(250, 175, 64, 0.4);
}

.single-post-main .nav-subtitle {
	display: block;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 0.25rem;
}

.single-post-main .nav-title {
	font-weight: 600;
	color: #fff;
}

.single-post-main .nav-links a:hover .nav-title {
	color: #FAAF40;
}

/* ==========================================================================
   Default Page Template – Hero + content (صفحة ثابتة)
   ========================================================================== */
.page-main {
	padding-bottom: 4rem;
}

.page-hero {
	position: relative;
	min-height: 320px;
	background-image: url('assets/images/page-title-bg.png');
	background-size: cover;
	background-position: center bottom;
	background-color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2.5rem;
}

.page-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( to top, rgba(0, 0, 0, 0.85 ) 0%, rgba(0, 0, 0, 0.5 ) 50%, rgba(0, 0, 0, 0.4 ) 100% );
}

.page-hero-inner {
	position: relative;
	z-index: 1;
	padding: 3rem 0;
}

.page-title {
	color: #fff;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	letter-spacing: 0.5px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
	.page-title {
		font-size: 2.5rem;
	}
}

.page-body {
	color: #e0e0e0;
}

.page-entry-content {
	font-size: 1.1rem;
	line-height: 1.75;
}

.page-entry-content p {
	margin-bottom: 1.25rem;
}

.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4 {
	color: #fff;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	font-weight: 700;
}

.page-entry-content h2 { font-size: 1.6rem; }
.page-entry-content h3 { font-size: 1.35rem; }
.page-entry-content h4 { font-size: 1.15rem; }

.page-entry-content a {
	color: #FAAF40;
	text-decoration: none;
}

.page-entry-content a:hover {
	text-decoration: underline;
}

.page-entry-content ul,
.page-entry-content ol {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}

.page-entry-content li {
	margin-bottom: 0.4rem;
}

.page-entry-content blockquote {
	border-left: 4px solid #FAAF40;
	padding-left: 1.25rem;
	margin: 1.5rem 0;
	font-style: italic;
	opacity: 0.95;
}

.page-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.page-entry-content .page-links {
	margin-top: 1.5rem;
}

.page-footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.95rem;
}

.page-footer .edit-link a {
	color: rgba(255, 255, 255, 0.6);
}

.page-footer .edit-link a:hover {
	color: #FAAF40;
}

/* ==========================================================================
   Search Results Page – Hero, form, cards grid, no results (صفحة البحث)
   ========================================================================== */
.search-main {
	padding-bottom: 4rem;
	min-height: 50vh;
}

.search-title .search-query {
	color: #FAAF40;
	font-weight: 700;
}

/* نموذج البحث في الهيرو – مستوى احترافي */
.search-hero-form-wrap {
	margin-top: 2rem;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

.search-hero-form-label {
	display: block;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.6rem;
	letter-spacing: 0.5px;
}

.search-form-hero {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	background: rgba(255, 255, 255, 0.06);
	border: 2px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	padding: 0.5rem;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-form-hero:focus-within {
	border-color: #FAAF40;
	box-shadow: 0 0 0 3px rgba(250, 175, 64, 0.2);
}

.search-field-hero {
	flex: 1;
	min-width: 200px;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	color: #fff;
	padding: 0.85rem 1.15rem;
	font-size: 1.05rem;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.search-field-hero::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.search-field-hero:focus {
	outline: none;
	border-color: #FAAF40;
	background: rgba(0, 0, 0, 0.35);
}

.search-submit-hero {
	background: #FAAF40;
	color: #1c1c1c;
	border: none;
	border-radius: 8px;
	padding: 0.85rem 1.75rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.search-submit-hero:hover {
	background: #fff;
	color: #1c1c1c;
	transform: translateY(-1px);
}

.search-submit-hero:active {
	transform: translateY(0);
}

@media (max-width: 576px) {
	.search-form-hero {
		flex-direction: column;
		padding: 0.75rem;
	}
	.search-field-hero {
		min-width: 100%;
	}
	.search-submit-hero {
		width: 100%;
	}
}

/* لا توجد نتائج */
.search-no-results {
	padding: 2rem 0;
}

.search-no-results-inner {
	text-align: center;
	max-width: 560px;
	margin: 0 auto;
}

.search-no-results-title {
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.search-form-wrap {
	margin-top: 1.75rem;
	margin-bottom: 1.5rem;
}

.search-form-wrap .search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	max-width: 500px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.06);
	border: 2px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	padding: 0.5rem;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-form-wrap .search-form:focus-within {
	border-color: #FAAF40;
	box-shadow: 0 0 0 3px rgba(250, 175, 64, 0.2);
}

.search-form-wrap .search-field {
	flex: 1;
	min-width: 180px;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	color: #fff;
	padding: 0.8rem 1.1rem;
	font-size: 1.05rem;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.search-form-wrap .search-field::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.search-form-wrap .search-field:focus {
	outline: none;
	border-color: #FAAF40;
	background: rgba(0, 0, 0, 0.35);
}

.search-form-wrap .search-submit {
	background: #FAAF40;
	color: #1c1c1c;
	border: none;
	border-radius: 8px;
	padding: 0.8rem 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.search-form-wrap .search-submit:hover {
	background: #fff;
	color: #1c1c1c;
	transform: translateY(-1px);
}

/* Form messages (registration & contact): hide after 5s with fade */
.form-message {
	transition: opacity 0.4s ease;
}
.form-message-hide {
	opacity: 0 !important;
	pointer-events: none;
}

/* ==========================================================================
   Media CPT – Archive & Single (YouTube + Photo Gallery with GLightbox)
   ========================================================================== */
/* Archive Media – Hero */
.archive-media-hero {
	position: relative;
	background-image: url('assets/images/page-title-bg.png');
	background-size: contain;
	background-position: left bottom;
	background-repeat: no-repeat;
	background-color: #000;
	color: #fff;
	padding: 3.5rem 0 4rem;
	overflow: hidden;
}

.archive-media-hero-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(210, 38, 48, 0.12) 0%, transparent 55%);
	pointer-events: none;
}

.archive-media-hero-inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.archive-media-title {
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: 2px;
	margin: 0;
	color: #fff;
}

.archive-media-lead {
	opacity: 0.9;
	margin: 0.75rem 0 0;
	font-size: 1.15rem;
	line-height: 1.5;
}

.archive-media-hero-line {
	width: 60px;
	height: 4px;
	background: #d22630;
	margin: 1.5rem auto 0;
	border-radius: 2px;
}

/* Archive Media – Content & Filter */
.archive-media-content {
	background: #f5f5f5;
	padding: 2.5rem 0 4rem;
}

.archive-media-container {
	max-width: 1200px;
	margin: 0 auto;
}

.archive-media-filter {
	margin-bottom: 1.75rem;
}

.archive-media-filter-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.archive-media-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.25rem;
	border-radius: 50px;
	background: #fff;
	color: #2c2c2c;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.archive-media-filter-pill:hover {
	background: #eee;
	color: #d22630;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.archive-media-filter-pill.active {
	background: #d22630;
	color: #fff;
	box-shadow: 0 4px 14px rgba(210, 38, 48, 0.35);
}

.archive-media-filter-pill i {
	font-size: 1.1em;
}

.archive-media-count {
	font-size: 0.9rem;
	color: #666;
	margin: 0 0 1.5rem;
}

/* Archive Media – Cards */
.archive-media-grid {
	margin-bottom: 2.5rem;
}

.media-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	height: 100%;
}

.media-card-link {
	display: block;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.media-card-link:hover {
	color: inherit;
}

.media-card-link:hover .media-card {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

.media-card-thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #eee;
	overflow: hidden;
}

.media-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.media-card-link:hover .media-card-thumb img {
	transform: scale(1.06);
}

.media-card-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
}

.media-card-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(210, 38, 48, 0.9);
	color: #fff;
	border-radius: 50%;
	font-size: 1.5rem;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.media-card-link:hover .media-card-play {
	opacity: 1;
}

.media-card-body {
	padding: 1.25rem 1.25rem 1.5rem;
	border-top: none;
}

.media-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #2c2c2c;
	margin: 0 0 0.35rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.media-card-excerpt {
	font-size: 0.85rem;
	color: #666;
	margin: 0;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Archive Media – Pagination */
.archive-media-pagination {
	margin-top: 2rem;
}

.archive-media-pagination .nav-links,
.archive-media-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.archive-media-pagination a,
.archive-media-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border-radius: 8px;
	background: #fff;
	color: #2c2c2c;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.archive-media-pagination a:hover {
	background: #d22630;
	color: #fff;
	box-shadow: 0 4px 12px rgba(210, 38, 48, 0.3);
}

.archive-media-pagination .current {
	background: #d22630;
	color: #fff;
	box-shadow: 0 4px 12px rgba(210, 38, 48, 0.3);
}

.archive-media-pagination .dots,
.archive-media-pagination .prev,
.archive-media-pagination .next {
	background: transparent;
	box-shadow: none;
}

/* Archive Media – Empty state */
.archive-media-empty {
	text-align: center;
	padding: 4rem 2rem;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.archive-media-empty-icon {
	font-size: 4rem;
	color: #ddd;
	margin-bottom: 1rem;
}

.archive-media-empty-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #2c2c2c;
	margin: 0 0 0.5rem;
}

.archive-media-empty-text {
	color: #666;
	margin: 0 0 1.5rem;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

/* Archive Media – Responsive */
@media (max-width: 768px) {
	.archive-media-hero {
		padding: 2.5rem 0 3rem;
	}

	.archive-media-title {
		font-size: 1.9rem;
	}

	.archive-media-lead {
		font-size: 1rem;
	}

	.media-card-body {
		padding: 1rem 1rem 1.25rem;
	}

	.media-card-title {
		font-size: 1rem;
	}
}

@media (max-width: 576px) {
	.archive-media-filter-pill {
		padding: 0.45rem 1rem;
		font-size: 0.85rem;
	}

	.archive-media-title {
		font-size: 1.6rem;
		letter-spacing: 1px;
	}
}

/* Single Media – Hero (section + divs) */
section.single-media-hero {
	position: relative;
	background-image: url('assets/images/page-title-bg.png');
	background-size: contain;
	background-position: left bottom;
	background-color: #000;
	background-repeat: no-repeat;
	color: #fff;
	padding: 3rem 0 4rem;
	overflow: hidden;
}

section.single-media-hero .single-media-hero-overlay,
section.single-media-hero div.single-media-hero-overlay {
	position: absolute;
	inset: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(210, 38, 48, 0.15) 0%, transparent 60%);
	pointer-events: none;
}

section.single-media-hero .single-media-hero-inner,
section.single-media-hero div.single-media-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	padding-left: 15px;
	padding-right: 15px;
}

section.single-media-hero .single-media-breadcrumb,
section.single-media-hero nav.single-media-breadcrumb {
	font-size: 0.875rem;
	margin-bottom: 1rem;
	opacity: 0.9;
}

section.single-media-hero .single-media-breadcrumb a {
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

section.single-media-hero .single-media-breadcrumb a:hover {
	color: #d22630;
}

section.single-media-hero .single-media-breadcrumb-sep {
	margin: 0 0.35rem;
	opacity: 0.6;
}

section.single-media-hero .single-media-breadcrumb-current {
	opacity: 0.85;
}

section.single-media-hero .single-media-badge,
section.single-media-hero span.single-media-badge {
	display: inline-block;
	background: #d22630;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.35rem 0.85rem;
	border-radius: 4px;
	margin-bottom: 1.25rem;
}

section.single-media-hero .single-media-hero-title,
section.single-media-hero h1.single-media-hero-title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	margin: 0 0 0.75rem;
	color: #fff;
}

section.single-media-hero .single-media-hero-excerpt {
	font-size: 1.1rem;
	line-height: 1.6;
	opacity: 0.9;
	margin: 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* Single Media – Content section */
.single-media-section {
	background: #f5f5f5;
	padding: 2.5rem 0 4rem;
}

.single-media-container {
	max-width: 900px;
	margin: 0 auto;
}

.single-media-content-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	margin-bottom: 2rem;
}

.media-video-wrapper {
	border-radius: 0;
	overflow: hidden;
	background: #000;
}

.media-video-wrapper iframe {
	width: 100%;
	height: 100%;
	display: block;
}

.single-media-empty {
	text-align: center;
	color: #888;
	padding: 3rem 1.5rem;
	margin: 0;
}

/* Gallery intro line */
.media-gallery-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.5rem;
	padding: 1rem 1.5rem;
	background: #fafafa;
	border-bottom: 1px solid #eee;
	font-size: 0.9rem;
}

.media-gallery-count {
	font-weight: 600;
	color: #2c2c2c;
}

.media-gallery-hint {
	color: #666;
}

/* Photo gallery grid (single) – GLightbox */
.media-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0.75rem;
	padding: 1.5rem;
}

.media-gallery-grid .gallery-item {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 1;
	background: #eee;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-gallery-grid .gallery-item:hover {
	transform: scale(1.03);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.media-gallery-grid .gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Single media body text */
.single-media-body {
	margin-bottom: 2rem;
}

.single-media-body-inner {
	background: #fff;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.single-media-body-inner p:last-child {
	margin-bottom: 0;
}

/* Back to Media link */
.single-media-back {
	text-align: center;
	padding-top: 1rem;
}

.single-media-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #d22630;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease, gap 0.2s ease;
}

.single-media-back-link:hover {
	color: #a01d25;
	gap: 0.65rem;
}

.single-media-back-icon {
	font-size: 1.1em;
}

/* Responsive – Single Media */
@media (max-width: 768px) {
	section.single-media-hero {
		padding: 2rem 0 3rem;
	}

	section.single-media-hero .single-media-hero-title {
		font-size: 1.75rem;
	}

	section.single-media-hero .single-media-hero-excerpt {
		font-size: 1rem;
	}

	.media-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
		padding: 1rem;
	}

	.single-media-body-inner {
		padding: 1.5rem;
	}
}

@media (max-width: 576px) {
	section.single-media-hero .single-media-hero-title {
		font-size: 1.5rem;
	}

	section.single-media-hero .single-media-breadcrumb {
		font-size: 0.8rem;
	}
}
/* Mobile fix for iOS/WebKit poster letterboxing in Hero / About sections */
@media (max-width: 768px) {
	.hero-section {
		background-color: #000;
		background-image: var(--hero-poster);
		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
	}

	.about-tilwan-section {
		background-color: #000;
		background-image: var(--about-poster);
		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
	}

	/* Use CSS backgrounds on the mobile layers themselves instead of relying on <video>/<img>. */
	.hero-section .video-background-container,
	.about-tilwan-section .about-tilwan-bg {
		inset: -45px;
		width: auto;
		height: auto;
		min-height: calc(105% + 4px);
		background-size: cover !important;
		background-position: center center !important;
		background-repeat: no-repeat !important;
		transform: translateZ(0);
		-webkit-transform: translateZ(0);
	}

	.hero-section .video-background-container {
		background-image: var(--hero-poster);
	}

	.about-tilwan-section .about-tilwan-bg {
		background-image: var(--about-poster);
	}

	/* Hide replaced media on mobile to avoid Safari/iOS letterboxing bars. */
	.hero-section .hero-video,
	.hero-section .video-fallback,
	.about-tilwan-section .about-tilwan-video,
	.about-tilwan-section .about-tilwan-fallback {
		display: none !important;
	}

	/* Keep the dark overlays stretched edge-to-edge. */
	.hero-section .bg-dark.opacity-50,
	.about-tilwan-overlay {
		inset: 0;
		width: auto !important;
		height: auto !important;
	}
}
