/*
Theme Name: Pixelpen School One
Author: Pixelpen
Author URI: https://www.pixel-pen.com/
Description: Refreshed school theme for Rehmaniya Girls Inter College — academic teal palette with refined typography while keeping the original layout and content structure.
Requires at least: 5.9
Tested up to: 6.0
Requires PHP: 5.6
Version: 2.1
*/

 :root {
	--primary_color: #1a5f7a;
	--primary_dark_color: #124556;
	--primary_light_color: #2a7a9b;
	--secondary_color: #c9a227;
	--accent_color: #c9a227;
	--text_color: #2c3a47;
	--text_muted: #5a6b7a;
	--bg_soft: #eef4f7;
	--bg_soft_alt: #e4eef3;
	--surface: #ffffff;
	--footer_bg: #0f2f3c;
	--font_display: "Cormorant Garamond", "Times New Roman", serif;
	--font_body: "Manrope", "Segoe UI", sans-serif;
	--radius_sm: 6px;
	--radius_md: 12px;
	--shadow_soft: 0 8px 24px rgba(18, 69, 86, 0.08);
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-family: var(--font_body);
	color: var(--text_color);
	background-color: var(--bg_soft);
	background-image:
		radial-gradient(ellipse at top left, rgba(201, 162, 39, 0.08), transparent 45%),
		radial-gradient(ellipse at bottom right, rgba(26, 95, 122, 0.1), transparent 50%),
		linear-gradient(180deg, #f7fafc 0%, var(--bg_soft) 40%, #f4f8fa 100%);
	background-attachment: fixed;
	line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.card-title,
.display-4,
#college_name {
	font-family: var(--font_display);
	letter-spacing: 0.01em;
}

.text-primary {
	color: var(--primary_color) !important;
}

.btn-primary,
.btn-secondary {
	background-color: var(--primary_color) !important;
	border-color: var(--primary_dark_color) !important;
}

.btn-primary:hover,
.btn-secondary:hover {
	background-color: var(--primary_dark_color) !important;
}

.color-container-1 {
	background:
		linear-gradient(135deg, rgba(26, 95, 122, 0.06), rgba(201, 162, 39, 0.05)),
		repeating-linear-gradient(
			-45deg,
			transparent,
			transparent 12px,
			rgba(26, 95, 122, 0.03) 12px,
			rgba(26, 95, 122, 0.03) 13px
		),
		var(--bg_soft_alt);
}

.topbar {
	background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
	width: 100%;
	border-bottom: 3px solid var(--accent_color);
	box-shadow: 0 2px 12px rgba(18, 69, 86, 0.06);
}

.topbar .logo-container {
	width: 100%;
	justify-content: flex-start;
	align-items: center;
	flex-direction: row;
	display: flex;
	gap: 14px;
}

.topbar .logo-container p {
	font-size: 22px;
	font-weight: 600;
	color: var(--primary_dark_color);
	margin: 0;
	line-height: 1.25;
}

.topbar .logo-container p span {
	font-family: var(--font_body);
	color: var(--text_muted);
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em;
}

nav.header {
	position: sticky;
	top: 0;
	width: 100%;
	transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
	z-index: 98;
	font-size: 14px !important;
	padding: 0;
	background: linear-gradient(90deg, var(--primary_dark_color), var(--primary_color) 55%, var(--primary_light_color)) !important;
	border-bottom: none;
	box-shadow: 0 4px 18px rgba(15, 47, 60, 0.25);
}

nav.header button {
	font-size: 12px !important;
}

nav.header img {
	max-height: 60px;
}

.top-navigation {
	display: none;
}

@media (max-width: 4000px) {
	.font-md-20 {
		font-size: 20px !important;
	}

	#college_name {
		font-size: 34px;
		font-weight: 600;
	}

	.top-navigation {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.top-navigation .menu-main-menu-container {
		height: 100%;
	}

	.top-navigation .menu-top-menu-container {
		width: 100%;
	}

	.top-navigation ul.menu {
		display: flex;
		list-style: none;
		gap: 6px;
		margin: 0;
		height: 100%;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	.top-navigation ul.menu li.menu-item {
		height: 100%;
		display: flex;
		align-items: center;
		position: relative;
	}

	.top-navigation ul.menu li.menu-item a {
		text-decoration: none;
		color: #f5f9fb;
		font-size: 14px;
		font-family: var(--font_body);
		text-transform: uppercase;
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 12px 10px;
		height: 100%;
		position: relative;
		font-weight: 600;
		letter-spacing: 0.04em;
		white-space: nowrap;
		border-radius: var(--radius_sm);
		transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
	}

	.top-navigation ul.menu li.menu-item a:hover {
		text-decoration: none;
		color: var(--primary_dark_color);
		background: rgba(255, 255, 255, 0.95);
		transform: translateY(-1px);
	}

	.top-navigation ul.menu ul.sub-menu {
		position: absolute;
		top: 50px;
		right: 0;
		background: rgba(255, 255, 255, 0.98) !important;
		backdrop-filter: blur(30px);
		white-space: nowrap;
		box-shadow: var(--shadow_soft);
		border-radius: var(--radius_sm);
		border-top: 3px solid var(--accent_color);
		padding: 10px 0;
		transform: scale(0);
		transform-origin: top right;
		transition: 0.2s ease-in-out;
		min-width: 140px;
	}

	.top-navigation ul.menu li.menu-item:hover ul.sub-menu {
		transform: scale(1);
	}

	.top-navigation ul.menu ul.sub-menu li.menu-item,
	.top-navigation ul.menu ul.sub-menu li.menu-item a {
		width: 100%;
		color: var(--primary_dark_color);
		border-radius: 0;
	}

	.top-navigation ul.menu ul.sub-menu a:hover {
		background: var(--primary_color);
		color: white !important;
	}

	.sidebar,
	.header .menu-btn {
		display: none;
	}
}

@media (max-width: 991px) {
	#college_name {
		font-size: 24px;
	}
}

@media (max-width: 767px) {
	#college_name {
		font-size: 20px;
	}

	.top-navigation {
		display: none;
	}

	.header .menu-btn {
		display: inline-block;
		color: white;
	}

	.sidebar {
		display: block;
		position: fixed;
		top: 0;
		width: 270px;
		background: linear-gradient(180deg, #ffffff, #f3f8fa);
		height: 100vh;
		overflow: auto;
		transform: translateX(-270px);
		transition: 0.2s ease-in-out;
		z-index: 110;
		padding: 10px;
		border-right: 3px solid var(--accent_color);
	}

	.sidebar.open {
		transform: translateX(0px);
	}

	.sidebar .topbar {
		background: none;
		border-bottom: none;
		box-shadow: none;
	}

	.header .menu-btn i {
		font-size: 22px;
	}

	.sidebar-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background: rgba(15, 47, 60, 0.72);
		backdrop-filter: blur(30px);
		visibility: hidden;
		transition: all 0.2s ease-in-out;
		z-index: 100;
	}

	.sidebar-overlay.show {
		visibility: visible;
	}

	.sidebar-menu,
	.sidebar-menu .menu-top-menu-container {
		width: 100%;
	}

	.sidebar-menu ul.menu {
		display: flex;
		flex-direction: column;
		width: 100%;
		list-style: none;
		margin: 0;
	}

	.sidebar-menu ul.menu li.menu-item {
		width: 100%;
		display: flex;
		align-items: center;
		position: relative;
	}

	.sidebar-menu ul.menu li.menu-item-has-children {
		flex-direction: column;
		align-items: stretch;
		display: flex;
	}

	.sidebar-menu ul.menu li.menu-item a {
		text-decoration: none;
		color: var(--text_color);
		font-size: 15px;
		text-transform: uppercase;
		display: flex;
		align-items: center;
		padding: 10px;
		height: 100%;
		position: relative;
		font-weight: 600;
		width: 100%;
	}

	.sidebar-menu ul.menu ul.sub-menu {
		background: transparent;
		white-space: nowrap;
		padding: 0 10px;
	}

	.sidebar-menu ul.menu ul.sub-menu.opened {
		height: auto;
		visibility: visible;
		transform: scaleY(1);
	}

	.sidebar-menu ul.menu ul.sub-menu li.menu-item,
	.sidebar-menu ul.menu ul.sub-menu li.menu-item a {
		width: 100%;
	}

	.sidebar-menu ul.menu a:hover {
		background: var(--bg_soft);
		color: var(--primary_color);
	}
}

.icon-btn {
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	text-decoration: none;
	color: var(--text_color);
}

.icon-btn:hover {
	background: rgb(0 0 0 / 10%);
	text-decoration: none;
}

.footer {
	text-align: left;
}

#footer > p {
	display: none;
}

#lightbox-ui {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgb(15 47 60 / 55%);
	backdrop-filter: blur(30px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transform: scale(1);
	transition: all 0.2s ease-in-out;
	padding: 20px 0;
}

#lightbox-ui img {
	height: 100%;
	border: solid 5px white;
	border-radius: 10px;
}

.lightbox-close-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: white;
	color: var(--primary_dark_color);
	position: absolute;
	top: 20px;
	right: 20px;
	border-radius: 50%;
	cursor: pointer;
	font-weight: bold;
}

#lightbox-ui.hidden {
	transform: scale(0);
}

#videobox-ui {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgb(15 47 60 / 55%);
	backdrop-filter: blur(30px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transform: scale(1);
	transition: all 0.2s ease-in-out;
	padding: 20px 0;
}

#videobox-ui iframe {
	width: 50%;
	min-width: 300px;
	border: solid 5px white;
	border-radius: 10px;
	height: 50%;
}

.videobox-close-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: white;
	color: var(--primary_dark_color);
	position: absolute;
	top: 20px;
	right: 20px;
	border-radius: 50%;
	cursor: pointer;
	font-weight: bold;
}

#videobox-ui.hidden {
	transform: scale(0);
}

/* —— Refresh layer: sections, cards, footer —— */

.section-block {
	position: relative;
	padding: 1.5rem 0;
}

.section-highlights {
	background:
		radial-gradient(circle at 20% 20%, rgba(201, 162, 39, 0.12), transparent 40%),
		linear-gradient(180deg, #ffffff 0%, var(--bg_soft) 100%);
	border-top: 1px solid rgba(26, 95, 122, 0.08);
	border-bottom: 1px solid rgba(26, 95, 122, 0.08);
}

.section-highlights .fa-solid {
	transition: transform 0.25s ease;
}

.section-highlights .col-md-3:hover .fa-solid {
	transform: translateY(-4px) scale(1.05);
}

.section-highlights .red-text,
.section-highlights .green-text,
.section-highlights .cyan-text,
.section-highlights .blue-text {
	color: var(--primary_color) !important;
}

.section-session {
	padding: 1rem 0 2rem;
}

.section-session .wow {
	background: linear-gradient(135deg, var(--primary_dark_color), var(--primary_color));
	color: #fff;
	border-radius: var(--radius_md);
	padding: 2.25rem 1.5rem;
	box-shadow: var(--shadow_soft);
	border: 1px solid rgba(201, 162, 39, 0.35);
}

.section-session .wow hr {
	border-top-color: rgba(255, 255, 255, 0.35);
	width: 120px;
	margin-left: auto;
	margin-right: auto;
}

.section-session .display-4,
.section-session h5 {
	color: #fff !important;
}

.section-session .display-4 {
	font-size: 2.6rem;
	font-weight: 600;
}

.section-about .card-cascade,
.card-cascade.card-transparent {
	background: rgba(255, 255, 255, 0.92) !important;
	border-radius: var(--radius_md);
	box-shadow: var(--shadow_soft);
	overflow: hidden;
	border: 1px solid rgba(26, 95, 122, 0.08);
}

.section-about .card-title {
	color: var(--primary_dark_color);
	font-size: 1.85rem;
}

.section-about .card-text {
	color: var(--text_muted);
	font-size: 1.05rem;
}

.view.w-100 {
	border-bottom: 4px solid var(--accent_color);
}

.top-pink-footer {
	background: linear-gradient(90deg, var(--primary_dark_color), var(--primary_light_color)) !important;
}

footer.page-footer.unique-color-dark {
	background: linear-gradient(180deg, #143947 0%, var(--footer_bg) 100%) !important;
}

footer.page-footer hr.pink,
footer.page-footer .pink.accent-2 {
	background-color: var(--accent_color) !important;
	border: none !important;
	height: 3px !important;
}

footer.page-footer .footer-copyright {
	background: #0a222c !important;
	border-top: 1px solid rgba(201, 162, 39, 0.25);
}

footer.page-footer a {
	transition: color 0.2s ease;
}

footer.page-footer a:hover {
	color: var(--accent_color) !important;
}

.notice-board,
.timeline,
.table {
	font-family: var(--font_body);
}

@keyframes fadeRise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.section-highlights .col-md-3,
.section-session .wow,
.section-about .card-cascade {
	animation: fadeRise 0.55s ease both;
}

/* —— Photo gallery (aligned tiles) —— */

.photo-gallery-page {
	background:
		radial-gradient(ellipse at top right, rgba(26, 95, 122, 0.07), transparent 45%),
		linear-gradient(180deg, #f7fafc 0%, var(--bg_soft) 100%);
}

.gallery-header {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.gallery-eyebrow {
	font-family: var(--font_body);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent_color);
	margin-bottom: 0.5rem;
}

.gallery-title {
	font-family: var(--font_display);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 600;
	color: var(--primary_dark_color);
	margin: 0 0 0.5rem;
}

.gallery-title--sm {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.gallery-subtitle {
	font-family: var(--font_body);
	color: var(--text_muted);
	font-size: 1.05rem;
	margin: 0 auto 1rem;
	max-width: 36rem;
}

.gallery-title-rule {
	width: 72px;
	height: 3px;
	margin: 0 auto;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--primary_color), var(--accent_color));
}

.photo-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem;
	align-items: stretch;
}

.gallery-item {
	margin: 0;
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius_md);
	overflow: hidden;
	background: #d7e4ea;
	box-shadow: var(--shadow_soft);
	border: 1px solid rgba(26, 95, 122, 0.1);
	animation: fadeRise 0.5s ease both;
}

.gallery-item:nth-child(2) { animation-delay: 0.05s; }
.gallery-item:nth-child(3) { animation-delay: 0.1s; }
.gallery-item:nth-child(4) { animation-delay: 0.15s; }
.gallery-item:nth-child(5) { animation-delay: 0.2s; }
.gallery-item:nth-child(6) { animation-delay: 0.25s; }

.gallery-item-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	color: inherit;
	text-decoration: none;
	cursor: zoom-in;
}

.gallery-item img,
.gallery-item .lightbox-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.45s ease;
}

.gallery-item-caption {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 2.5rem 1rem 0.9rem;
	background: linear-gradient(180deg, transparent 0%, rgba(15, 47, 60, 0.82) 100%);
	color: #fff;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.gallery-item-caption span {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-family: var(--font_body);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
}

.gallery-item-caption small {
	font-weight: 400;
	font-size: 0.78rem;
	opacity: 0.9;
}

.gallery-item-caption i {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(201, 162, 39, 0.95);
	color: var(--primary_dark_color);
	font-size: 0.85rem;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
	transform: scale(1.06);
}

.gallery-item:hover .gallery-item-caption,
.gallery-item:focus-within .gallery-item-caption {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 991px) {
	.photo-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.9rem;
	}
}

@media (max-width: 575px) {
	.photo-gallery-grid {
		grid-template-columns: 1fr;
	}

	.gallery-item {
		aspect-ratio: 16 / 10;
	}

	.gallery-item-caption {
		opacity: 1;
		transform: none;
		padding-top: 2rem;
	}
}
