/**
 * Oman Scouts & Guides - Premium Editorial Stylesheet
 */

:root {
	/* Refined Palette */
	--osg-color-primary: #8b0000;
	--osg-color-primary-dark: #660000;
	--osg-color-secondary: #4b0082;
	--osg-color-secondary-light: #6a0dad;
	
	--osg-color-bg: #fdfbfb;
	--osg-color-surface: #ffffff;
	--osg-color-text-main: #1a1a1a;
	--osg-color-text-muted: #666666;
	
	/* Typography */
	--osg-font-display: var(--osg-font-secondary);
	--osg-font-body: var(--osg-font-primary);
	
	/* Spacing System */
	--osg-space-3xs: 0.25rem;
	--osg-space-2xs: 0.5rem;
	--osg-space-xs: 1rem;
	--osg-space-s: 1.5rem;
	--osg-space-m: 2rem;
	--osg-space-l: 3rem;
	--osg-space-xl: 5rem;
	--osg-space-2xl: 8rem;

	/* Shadows & Radius */
	--osg-radius-md: 16px;
	--osg-radius-lg: 24px;
	--osg-shadow-soft: 0 20px 40px rgba(0,0,0,0.06);
	--osg-shadow-hover: 0 30px 60px rgba(75,0,130,0.15);
	
	/* Easing */
	--osg-ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }

body {
	font-family: var(--osg-font-body);
	color: var(--osg-color-text-main);
	background-color: var(--osg-color-bg);
	line-height: 1.6;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--osg-font-display);
	font-weight: 700;
	line-height: 1.2;
	margin-top: 0;
	color: var(--osg-color-text-main);
}

a {
	color: var(--osg-color-secondary);
	text-decoration: none;
	transition: color 0.3s var(--osg-ease-out);
}
a:hover { color: var(--osg-color-primary); }

.osg-container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 var(--osg-space-m);
}

/* Offset for fixed header */
#content {
	padding-top: 110px;
}
.admin-bar #content {
	padding-top: 142px;
}

/* ==========================================================================
   Premium Buttons
   ========================================================================== */
.osg-btn-premium {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	background: linear-gradient(135deg, var(--osg-color-primary), var(--osg-color-secondary));
	color: #fff !important;
	font-family: var(--osg-font-display);
	font-weight: 600;
	font-size: 1.1rem;
	border-radius: 50px;
	position: relative;
	overflow: hidden;
	transition: transform 0.4s var(--osg-ease-out), box-shadow 0.4s var(--osg-ease-out);
	box-shadow: 0 10px 20px rgba(139,0,0,0.2);
}
.osg-btn-premium::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(135deg, var(--osg-color-secondary), var(--osg-color-primary));
	opacity: 0;
	transition: opacity 0.4s var(--osg-ease-out);
	z-index: 1;
}
.osg-btn-premium span, .osg-btn-premium { z-index: 2; position: relative; }
.osg-btn-premium:hover {
	transform: translateY(-4px);
	box-shadow: 0 15px 30px rgba(75,0,130,0.3);
}
.osg-btn-premium:hover::before { opacity: 1; }

.osg-btn-outline {
	display: inline-flex;
	padding: 1rem 2rem;
	color: var(--osg-color-text-main);
	font-family: var(--osg-font-display);
	font-weight: 600;
	font-size: 1.1rem;
	border-radius: 50px;
	border: 1px solid rgba(0,0,0,0.1);
	transition: all 0.4s var(--osg-ease-out);
}
.osg-btn-outline:hover {
	border-color: var(--osg-color-primary);
	color: var(--osg-color-primary);
	background: rgba(139,0,0,0.03);
}

/* ==========================================================================
   Header Updates
   ========================================================================== */
.osg-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: rgba(253, 251, 251, 0.85);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-bottom: 1px solid rgba(0,0,0,0.03);
	transition: all 0.4s var(--osg-ease-out);
	padding: 1.5rem 0;
}

.osg-header.is-scrolled,
.osg-header.scrolled {
	padding: 1rem 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	background-color: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.osg-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 70px;
	gap: 1.5rem;
}

.osg-logo-svg {
	max-height: 52px;
	width: auto;
	display: block;
}

/* SFH Alert Button in Header */
.osg-header-sfh-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	background: linear-gradient(135deg, var(--osg-color-primary), var(--osg-color-secondary));
	color: #fff !important;
	font-size: 0.85rem;
	font-weight: 700;
	border-radius: 50px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: opacity 0.3s ease, transform 0.3s ease;
	flex-shrink: 0;
}
.osg-header-sfh-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.site-branding a {
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--osg-color-primary);
	text-decoration: none;
}

.osg-logo {
	flex-shrink: 0;
}

.osg-logo img {
	max-height: 55px;
	width: auto;
}

.osg-primary-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 1.25rem;
	flex-wrap: nowrap;
}

.osg-primary-menu > li {
	position: relative;
	padding: 1rem 0;
}

.osg-primary-menu a {
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--osg-color-text-main);
	font-family: var(--osg-font-display);
	position: relative;
	text-decoration: none;
	transition: color 0.3s ease;
	white-space: nowrap;
}

.osg-primary-menu > li > a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--osg-color-primary);
	transition: width 0.3s var(--osg-ease-out);
}

.osg-primary-menu > li > a:hover::after {
	width: 100%;
}

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

/* Dropdown Menus */
.osg-primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	right: 0; /* Align right for RTL */
	background: #fff;
	min-width: 220px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	border-radius: 8px;
	padding: 0.5rem 0;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s var(--osg-ease-out);
	z-index: 100;
	border: 1px solid rgba(0,0,0,0.05);
}
html[dir="ltr"] .osg-primary-menu .sub-menu {
	right: auto;
	left: 0;
}

.osg-primary-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.osg-primary-menu .sub-menu li {
	display: block;
}

.osg-primary-menu .sub-menu a {
	display: block;
	padding: 0.75rem 1.5rem;
	font-size: 0.95rem;
	color: var(--osg-color-text-main);
	white-space: nowrap;
}

.osg-primary-menu .sub-menu a:hover {
	background: rgba(0,0,0,0.02);
	color: var(--osg-color-primary);
}

/* Off-canvas Menu */
.osg-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--osg-color-primary);
	padding: 0.5rem;
}

.osg-menu-close {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--osg-color-primary);
	position: absolute;
	top: 1rem;
	right: 1rem;
}

.osg-offcanvas-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	z-index: 998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}

.osg-offcanvas-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* ==========================================================================
   Scrollytelling Front Page (Video Reference Style)
   ========================================================================== */

.osg-scrolly-page {
	background-color: #f5f5f7; /* Very light gray */
	overflow-x: hidden;
}

/* Common Section Borders */
.osg-scrolly-hero, .osg-scrolly-text-reveal, .osg-scrolly-dark-section, .osg-scrolly-news-slider, .osg-scrolly-cta {
	border-radius: 40px;
	margin-bottom: 2rem;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

/* 1. Hero Section */
.osg-scrolly-hero {
	min-height: 95vh;
	display: flex;
	flex-direction: column;
	background-color: #f2f2f4;
	margin-top: 2rem;
	margin-left: 2rem;
	margin-right: 2rem;
}

.osg-hero-inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 4rem 2rem 2rem;
}

.osg-hero-content {
	text-align: center;
	max-width: 900px;
	margin-bottom: 3rem;
}

.osg-display-title {
	font-size: clamp(3rem, 6vw, 5rem);
	font-weight: 800;
	margin-bottom: 1rem;
	color: #1a1a1a;
	letter-spacing: -0.03em;
}

.osg-hero-text p {
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	color: #666;
	margin-bottom: 2rem;
}

.osg-btn-solid {
	display: inline-flex;
	padding: 1rem 2.5rem;
	background-color: #1a1a1a;
	color: #fff !important;
	border-radius: 50px;
	font-weight: 600;
	font-size: 1.1rem;
	transition: transform 0.3s, box-shadow 0.3s;
}
.osg-btn-solid:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.osg-hero-image-wrapper {
	position: relative;
	flex: 1;
	border-radius: 30px;
	overflow: hidden;
	background: #ddd;
}
.osg-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.placeholder-bg {
	background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.osg-float-badge {
	position: absolute;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 0.8rem 1.5rem;
	border-radius: 30px;
	font-weight: 600;
	font-size: 1rem;
	color: #1a1a1a;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	pointer-events: none;
}
.badge-1 { top: 20%; right: 10%; }
.badge-2 { top: 50%; left: 15%; }
.badge-3 { bottom: 20%; right: 25%; }

/* 2. Text Reveal */
.osg-scrolly-text-reveal {
	padding: 8rem 0;
	margin: 0 2rem 2rem;
}
.gs-scrub-text {
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.6;
	text-align: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px; /* Fix clipping */
	color: #e0e0e0; /* Starting color */
	background: linear-gradient(to right, #1a1a1a, #1a1a1a);
	background-size: 0% 100%;
	background-repeat: no-repeat;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	/* The JS will animate the background-size from 0% to 100% on scroll */
}
html[dir="rtl"] .gs-scrub-text {
	background-position: right center; /* Fill from right to left for Arabic */
}

/* 3. Dark Section (Programs) */
.osg-scrolly-dark-section {
	background-color: #111;
	color: #fff;
	margin: 0 2rem 2rem;
}
.osg-dark-inner {
	padding: 6rem 0;
}
.osg-dark-heading {
	text-align: center;
	margin-bottom: 4rem;
}
.osg-dark-heading h2 {
	color: #fff;
	font-size: clamp(2.5rem, 5vw, 4rem);
}
.osg-dark-heading p {
	color: #888;
	font-size: 1.25rem;
}
.osg-dark-parallax-grid {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	height: 150vh; /* Taller for scrolling */
}
.osg-parallax-center {
	width: 50%;
	max-width: 600px;
	position: sticky;
	top: 20vh;
	height: 60vh;
	z-index: 1;
}
.osg-center-image, .osg-center-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
	background: #333;
}
.osg-parallax-cards {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 10;
}
.osg-p-card {
	position: absolute;
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 20px;
	padding: 2rem;
	width: 320px;
	pointer-events: auto;
}
.pc-1 { top: 10%; right: 5%; }
.pc-2 { top: 45%; left: 5%; }
.pc-3 { top: 80%; right: 15%; }

.osg-p-card h3 {
	color: #fff;
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}
.osg-p-card p {
	color: #bbb;
	font-size: 1rem;
	margin-bottom: 1.5rem;
}
.osg-card-link {
	color: #fff;
	text-decoration: underline;
}

/* 4. News Slider */
.osg-scrolly-news-slider {
	background-color: #fff;
	margin: 0 2rem 2rem;
}
.osg-news-inner {
	padding: 6rem 0;
}
.osg-news-header {
	text-align: center;
	margin-bottom: 4rem;
}
.osg-news-header h2 {
	font-size: clamp(2.5rem, 5vw, 4rem);
}
.osg-news-header p {
	color: #666;
	font-size: 1.25rem;
}

.osg-news-pin-wrapper {
	overflow: hidden;
}
.osg-news-slides-container {
	display: flex;
	width: 300%; /* For 3 slides */
}
.osg-news-slides {
	display: flex;
	width: 100%;
}
.osg-news-slide {
	width: 33.333%; /* 100% / 3 slides */
	display: flex;
	padding: 0 2rem;
	gap: 4rem;
	align-items: center;
}
.osg-ns-image-col {
	flex: 1;
}
.osg-ns-image-wrapper {
	position: relative;
	border-radius: 30px;
	overflow: hidden;
	aspect-ratio: 4/3;
	background: #f0f0f0;
}
.osg-ns-image-wrapper img, .ns-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.osg-ns-tag {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: #fff;
	color: #111;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-weight: 700;
}
.osg-ns-content-col {
	flex: 1;
}
.osg-ns-content-col h3 {
	font-size: clamp(2rem, 3vw, 3rem);
	margin-bottom: 1rem;
}
.osg-ns-content-col p {
	font-size: 1.25rem;
	color: #666;
	margin-bottom: 2rem;
}

/* 5. Final CTA */
.osg-scrolly-cta {
	background-color: #fff;
	margin: 0 2rem 2rem;
	position: relative;
}
.osg-cta-inner {
	padding: 10rem 0;
	position: relative;
	overflow: hidden;
}
.osg-marquee-bg {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	transform: translateY(-50%);
	z-index: 1;
	pointer-events: none;
	opacity: 0.05;
}
.gs-marquee-fast {
	display: flex;
	white-space: nowrap;
	font-size: 15rem;
	font-weight: 900;
	color: #000;
}
.osg-cta-grid {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.osg-cta-text-left, .osg-cta-text-right {
	flex: 1;
}
.osg-cta-text-left h2 {
	font-size: clamp(3rem, 5vw, 5rem);
	line-height: 1.1;
}
.osg-cta-image-center {
	flex: 1.5;
	display: flex;
	justify-content: center;
}
.osg-cta-image-center img, .cta-placeholder {
	width: 400px;
	height: 400px;
	border-radius: 50%; /* Starts circular */
	object-fit: cover;
	background: #ddd;
}
.osg-cta-text-right p {
	font-size: 1.25rem;
	color: #666;
	margin-bottom: 2rem;
}

/* ==========================================================================
   Timeline Section
   ========================================================================== */
.osg-timeline-section {
	padding: 6rem 0;
	background-color: var(--osg-color-bg-alt);
}
.osg-timeline-wrapper {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}
.osg-timeline-line {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background-color: rgba(0, 0, 0, 0.1);
	transform: translateX(-50%);
}
.osg-timeline-item {
	display: flex;
	align-items: center;
	margin-bottom: 4rem;
	position: relative;
	width: 100%;
}
.osg-timeline-item:last-child {
	margin-bottom: 0;
}
.osg-timeline-content, .osg-timeline-empty {
	flex: 1;
}
.osg-timeline-content.left {
	text-align: right;
	padding-right: 3rem;
}
html[dir="rtl"] .osg-timeline-content.left {
	text-align: left;
	padding-right: 0;
	padding-left: 3rem;
}
.osg-timeline-content.right {
	text-align: left;
	padding-left: 3rem;
}
html[dir="rtl"] .osg-timeline-content.right {
	text-align: right;
	padding-left: 0;
	padding-right: 3rem;
}
.osg-timeline-dot {
	width: 20px;
	height: 20px;
	background-color: var(--osg-color-secondary);
	border-radius: 50%;
	border: 4px solid #fff;
	box-shadow: 0 0 0 2px var(--osg-color-secondary);
	z-index: 2;
}
.osg-timeline-year {
	font-weight: 800;
	font-size: 2rem;
	color: var(--osg-color-primary);
	margin-bottom: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.osg-footer {
	background-color: var(--osg-color-text-main);
	color: #ccc;
	padding: var(--osg-space-xl) 0 var(--osg-space-m);
	border-top: 10px solid var(--osg-color-primary);
}

.osg-footer h2, .osg-footer h3 {
	color: #fff;
}

.osg-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: var(--osg-space-l);
	margin-bottom: var(--osg-space-l);
}

.osg-footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}
.osg-footer-menu li { margin-bottom: 0.5rem; }
.osg-footer-menu a { color: #aaa; transition: color 0.3s ease; }
.osg-footer-menu a:hover { color: #fff; }

.osg-social-icons {
	list-style: none;
	padding: 0;
	display: flex;
	gap: 1rem;
}
.osg-social-icons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
	color: #fff;
}
.osg-social-icons a:hover {
	background: var(--osg-color-primary);
}

.partner-logos,
.osg-footer-partners {
	display: flex;
	gap: 1rem;
}
.partner-logos img,
.osg-footer-partners img {
	max-width: 100px;
	height: auto;
	filter: grayscale(1) brightness(2);
	transition: filter 0.3s ease;
}
.partner-logos img:hover,
.osg-footer-partners img:hover { filter: grayscale(0) brightness(1); }

.osg-svg-logo {
	width: 60px;
	height: 60px;
	background-color: var(--osg-partner-logo-color, #ffffff);
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	display: inline-block;
}
.logo-placeholder {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: rgba(255,255,255,0.1);
	border-radius: 4px;
	font-size: 0.875rem;
}

.osg-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: var(--osg-space-m);
	font-size: 0.9rem;
}
.osg-btn-warning {
	color: var(--osg-color-primary);
	border: 1px solid var(--osg-color-primary);
	padding: 0.5rem 1rem;
	border-radius: 4px;
	display: inline-block;
}
.osg-btn-warning:hover {
	background: var(--osg-color-primary);
	color: #fff;
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */
@media (max-width: 1024px) {
	.osg-hero-content-wrapper { grid-template-columns: 1fr; text-align: center; }
	.osg-hero-actions { justify-content: center; }
	.osg-hero-glass-cards { display: none; }
	
	.osg-programs-grid { grid-template-columns: 1fr 1fr; }
	.osg-editorial-grid { grid-template-columns: 1fr; }
	.editorial-sidebar { border-left: none; padding-left: 0; padding-top: var(--osg-space-l); border-top: 2px solid #eaeaea; }
	
	.osg-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	.osg-menu-toggle { display: block; }
	.osg-nav-menu-wrapper {
		position: fixed;
		top: 0;
		right: -100%;
		width: 320px;
		max-width: 85vw;
		height: 100vh;
		background: #fff;
		z-index: 1000;
		padding: 5rem 2rem 2rem;
		box-shadow: -5px 0 30px rgba(0,0,0,0.1);
		transition: right 0.4s var(--osg-ease-out);
		overflow-y: auto;
	}
	.osg-nav-menu-wrapper.active { right: 0; }
	
	html[dir="ltr"] .osg-nav-menu-wrapper {
		right: auto;
		left: -100%;
		box-shadow: 5px 0 30px rgba(0,0,0,0.1);
		transition: left 0.4s var(--osg-ease-out);
	}
	html[dir="ltr"] .osg-nav-menu-wrapper.active { left: 0; }
	
	.osg-menu-close { display: block; }

	.osg-primary-menu { flex-direction: column; gap: 0.5rem; }
	.osg-primary-menu > li { padding: 0.5rem 0; }
	.osg-primary-menu a { font-size: 1.15rem; white-space: normal; display: inline-block; }
	
	.osg-primary-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		padding: 0.5rem 1rem 0;
		margin-top: 0.5rem;
		border-right: 2px solid rgba(0,0,0,0.05); /* RTL */
	}
	html[dir="ltr"] .osg-primary-menu .sub-menu {
		border-right: none;
		border-left: 2px solid rgba(0,0,0,0.05);
	}
	.osg-primary-menu .sub-menu a { font-size: 1rem; padding: 0.5rem 0; }

	.osg-section-heading.flex-between { flex-direction: column; align-items: flex-start; gap: 1rem; }
	
	.osg-footer-grid { grid-template-columns: 1fr; }
	.osg-footer-bottom { flex-direction: column; gap: var(--osg-space-m); text-align: center; }
}

/* ==========================================================================
   News Archive Grid
   ========================================================================== */
.osg-news-archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 3rem;
	margin-bottom: 4rem;
}

.osg-news-card {
	background: var(--osg-color-surface);
	border-radius: var(--osg-radius-md);
	overflow: hidden;
	border: 1px solid rgba(0,0,0,0.06);
	box-shadow: var(--osg-shadow-soft);
	transition: transform 0.3s var(--osg-ease-out), box-shadow 0.3s var(--osg-ease-out);
	display: flex;
	flex-direction: column;
}

/* ==========================================================================
   Single Post / News Page
   ========================================================================== */
.osg-single-hero {
	position: relative;
	width: 100%;
	height: 50vh;
	min-height: 400px;
	overflow: hidden;
}
.osg-single-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.osg-single-hero-overlay {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}
.osg-single-content-wrapper {
	max-width: 840px;
	margin: 0 auto;
	background: #fff;
	position: relative;
	margin-top: -120px; /* Pull up over hero if hero exists */
	padding: 4rem 5rem;
	border-radius: var(--osg-radius-lg);
	box-shadow: var(--osg-shadow-hover);
	z-index: 10;
}
/* if no hero, remove negative margin */
.osg-single-post:not(:has(.osg-single-hero)) .osg-single-content-wrapper {
	margin-top: 4rem;
	padding: 4rem 2rem;
	box-shadow: none;
	border: 1px solid rgba(0,0,0,0.05);
}

.osg-single-header {
	margin-bottom: 3rem;
	text-align: center;
}
.osg-single-category {
	display: inline-block;
	background: var(--osg-color-primary);
	color: #fff;
	padding: 0.3rem 1rem;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}
.osg-single-title {
	font-size: clamp(2rem, 4vw, 3rem);
	margin-bottom: 1.5rem;
}
.osg-single-meta {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	color: var(--osg-color-text-muted);
	font-size: 0.95rem;
}
.osg-meta-date, .osg-meta-author {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.osg-single-body {
	font-size: 1.15rem;
	line-height: 1.9;
	color: var(--osg-color-text-main);
}
.osg-single-body p { margin-bottom: 1.5rem; }
.osg-single-body img { max-width: 100%; height: auto; border-radius: var(--osg-radius-md); margin: 2rem 0; box-shadow: var(--osg-shadow-soft); }
.osg-single-body h2 { font-size: 1.8rem; margin: 3rem 0 1rem; }
.osg-single-body h3 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.osg-single-body blockquote {
	margin: 2rem 0;
	padding: 1.5rem 2rem;
	border-right: 4px solid var(--osg-color-primary); /* RTL */
	background: rgba(139,0,0,0.03);
	font-size: 1.25rem;
	font-style: italic;
	border-radius: var(--osg-radius-md);
}
html[dir="ltr"] .osg-single-body blockquote {
	border-right: none;
	border-left: 4px solid var(--osg-color-primary);
}

@media (max-width: 768px) {
	.osg-single-content-wrapper { padding: 3rem 1.5rem; margin-top: -60px; }
	.osg-single-meta { flex-direction: column; gap: 0.5rem; align-items: center; }
	.osg-single-hero { height: 40vh; min-height: 300px; }
}

.osg-news-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--osg-shadow-hover);
}

.osg-news-card-image {
	display: block;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(139,0,0,0.1), rgba(75,0,130,0.1));
}

.osg-news-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--osg-ease-out);
}

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

.osg-news-no-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
}

.osg-news-card-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.75rem;
}

.osg-news-card-meta time {
	font-size: 0.82rem;
	color: var(--osg-color-text-muted);
}

.osg-news-card-title {
	font-size: 1.1rem;
	line-height: 1.4;
	margin: 0;
}

.osg-news-card-title a {
	color: var(--osg-color-text-main);
	text-decoration: none;
}

.osg-news-card-title a:hover {
	color: var(--osg-color-primary);
}

.osg-news-card-excerpt {
	font-size: 0.9rem;
	color: var(--osg-color-text-muted);
	line-height: 1.6;
	flex: 1;
}

.osg-news-card-link {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--osg-color-primary);
	text-decoration: none;
	margin-top: auto;
}

.osg-pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin: 2rem 0 4rem;
}

.osg-pagination a,
.osg-pagination span {
	padding: 0.5rem 1rem;
	border-radius: 6px;
	border: 1px solid rgba(0,0,0,0.1);
	font-weight: 600;
	color: var(--osg-color-primary);
	text-decoration: none;
}

.osg-pagination .current {
	background: var(--osg-color-primary);
	color: #fff;
	border-color: var(--osg-color-primary);
}

@media (max-width: 1024px) { .osg-news-archive-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .osg-news-archive-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Page Templates (About, Programs, Band, Contact, SFH)
   ========================================================================== */

/* Page Headers */
.page-header {
	padding: 4rem 0 2rem;
	text-align: center;
}
.page-title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	color: var(--osg-color-primary);
	margin-bottom: 1rem;
}
.page-description {
	font-size: 1.25rem;
	color: var(--osg-color-text-muted);
	max-width: 800px;
	margin: 0 auto;
}

/* Contact Page */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	margin-top: 3rem;
	margin-bottom: 6rem;
}
.contact-details-list {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem 0;
}
.contact-details-list li {
	margin-bottom: 1rem;
	font-size: 1.1rem;
}
.contact-details-list strong {
	color: var(--osg-color-primary);
	display: block;
	margin-bottom: 0.25rem;
}
.contact-cta {
	background: var(--osg-color-bg-alt, #f5f5f5);
	padding: 2rem;
	border-radius: var(--osg-radius-md);
	border-right: 4px solid var(--osg-color-primary);
}
.contact-cta h3 {
	margin-bottom: 0.5rem;
}
.contact-map {
	border-radius: var(--osg-radius-lg);
	overflow: hidden;
	box-shadow: var(--osg-shadow-soft);
}
.map-placeholder {
	background: #eee;
	padding: 4rem;
	text-align: center;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* SFH Page */
.sfh-content {
	max-width: 1000px;
	margin: 3rem auto 6rem;
}
.sfh-actions {
	text-align: center;
	margin-bottom: 3rem;
}
.button-danger {
	background: #d32f2f;
	color: #fff;
}
.button-danger:hover {
	background: #b71c1c;
}
.sfh-document h2 {
	margin-bottom: 1.5rem;
	border-bottom: 2px solid var(--osg-color-primary);
	padding-bottom: 0.5rem;
	display: inline-block;
}
.pdf-container {
	border-radius: var(--osg-radius-md);
	overflow: hidden;
	box-shadow: var(--osg-shadow-soft);
	border: 1px solid rgba(0,0,0,0.1);
}

/* Utilities */
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 4rem; }
.mb-12 { margin-bottom: 4rem; }

/* OSG Button Base (used across new templates) */
.osg-button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: var(--osg-color-primary);
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
	transition: background 0.3s ease;
}
.osg-button:hover {
	background: var(--osg-color-primary-dark);
}
.osg-button-outline {
	background: transparent;
	color: var(--osg-color-primary) !important;
	border: 2px solid var(--osg-color-primary);
}
.osg-button-outline:hover {
	background: rgba(139,0,0,0.05);
}

@media (max-width: 768px) {
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.recognition-grid {
		grid-template-columns: 1fr !important;
	}
}
