/*
Theme Name: Cahaya Kampus
Author: WordPress Telex
Description: A warm, vibrant WordPress block theme designed for STAI Al-Ikhlas Dairi Sidikalang. Features deep greens, gold accents, and elegant serif typography that reflect the spirit of an Indonesian Islamic highland campus.
Version: 0.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: cahaya-kampus
Tags: block-theme, full-site-editing, education

Cahaya Kampus — STAI Al-Ikhlas Dairi Sidikalang
*/

/* === Equal-height card layout === */
.equal-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
	flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.equal-cards .cta-bottom {
	margin-top: auto;
	justify-content: center;
}

.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* === Geometric accent border === */
.geo-border-gold {
	height: 3px;
	background: linear-gradient(90deg, transparent, #C9A84C, transparent);
}

.geo-border-thick {
	height: 6px;
	background: repeating-linear-gradient(
		90deg,
		#0D3B1E 0px, #0D3B1E 40px,
		#C9A84C 40px, #C9A84C 42px,
		#0D3B1E 42px, #0D3B1E 82px,
		#C9A84C 82px, #C9A84C 84px
	);
}

/* === Islamic geometric star divider === */
.star-divider {
	position: relative;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.star-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, #C9A84C 30%, #C9A84C 70%, transparent);
}

/* === Manuscript-style section label === */
.manuscript-label p {
	font-family: 'Amiri', Georgia, serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 4px;
	color: #C9A84C;
}

/* === Pointed arch frame for rector portrait === */
.arch-frame img {
	border-radius: 50% 50% 4px 4px / 60% 60% 4px 4px;
	border: 3px solid #C9A84C;
	box-shadow: 0 8px 40px rgba(13, 59, 30, 0.15);
}

/* === Pull-quote styling === */
.rector-quote {
	position: relative;
	border-left: 3px solid #C9A84C !important;
}

.rector-quote::before {
	content: '\201C';
	position: absolute;
	top: -18px;
	left: 16px;
	font-family: 'Amiri', Georgia, serif;
	font-size: 5rem;
	color: #E8F5ED;
	line-height: 1;
	pointer-events: none;
}

/* === Card hover === */
.campus-card {
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.campus-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 50px rgba(13, 59, 30, 0.12);
}

/* === Stat counter animation === */
.stat-item {
	text-align: center;
	padding: 2rem 1rem;
	position: relative;
}

.stat-item::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 2px;
	background: #C9A84C;
}

/* === Fade-in on scroll === */
@keyframes revealUp {
	from {
		opacity: 0;
		transform: translateY(32px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.animate-reveal {
		animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	}
}

/* === Header nav styling === */
.campus-nav .wp-block-navigation-item a {
	font-family: 'Amiri', Georgia, serif;
	font-size: 14px;
	color: #1A202C;
	padding: 0.4rem 0.75rem;
	border-radius: 3px;
	transition: background 0.2s ease, color 0.2s ease;
	letter-spacing: 0.3px;
}

.campus-nav .wp-block-navigation-item a:hover {
	background: #E8F5ED;
	color: #0D3B1E;
}

/* === Section subtle overlay pattern === */
.pattern-overlay {
	position: relative;
	overflow: hidden;
}

.pattern-overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0.03;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23C9A84C' stroke-width='0.5'/%3E%3C/svg%3E");
	background-size: 60px 60px;
	pointer-events: none;
}

/* === Full-bleed cover text shadow === */
.hero-text-shadow h1,
.hero-text-shadow h2,
.hero-text-shadow p {
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* === Gold underline heading === */
.gold-underline-heading h2::after {
	content: '';
	display: block;
	width: 60px;
	height: 2px;
	background: #C9A84C;
	margin-top: 0.75rem;
}

.gold-underline-heading-center h2::after {
	content: '';
	display: block;
	width: 60px;
	height: 2px;
	background: #C9A84C;
	margin: 0.75rem auto 0;
}

/* === News card styling === */
.news-card {
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	overflow: hidden;
}

.news-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 48px rgba(13, 59, 30, 0.1);
}

/* === CTA decorative circles === */
.cta-circles {
	position: relative;
	overflow: hidden;
}

.cta-circles::before {
	content: '';
	position: absolute;
	top: -120px;
	right: -80px;
	width: 350px;
	height: 350px;
	border: 50px solid rgba(201, 168, 76, 0.08);
	border-radius: 50%;
	pointer-events: none;
}

.cta-circles::after {
	content: '';
	position: absolute;
	bottom: -100px;
	left: -60px;
	width: 280px;
	height: 280px;
	border: 40px solid rgba(255, 255, 255, 0.04);
	border-radius: 50%;
	pointer-events: none;
}

/* === Footer credit === */
/* === Footer navigation === */
.footer-nav .wp-block-navigation-item a,
.footer-nav .wp-block-pages-list__item__link,
.footer-nav .wp-block-navigation-item__content,
.footer-nav a {
	color: #FFFFFF !important;
	text-decoration: none;
	font-family: 'Amiri', Georgia, serif;
	font-size: 0.875rem;
	padding: 0;
	transition: color 0.2s ease;
}

.footer-nav .wp-block-navigation-item a:hover,
.footer-nav .wp-block-pages-list__item__link:hover,
.footer-nav .wp-block-navigation-item__content:hover,
.footer-nav a:hover {
	color: #C9A84C !important;
}

.footer-nav .wp-block-navigation__responsive-container-open,
.footer-nav .wp-block-navigation__responsive-container-close {
	display: none !important;
}

/* Footer nav layout - vertical list */
.footer-nav .wp-block-navigation__container,
.footer-nav .wp-block-page-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.campus-footer-credit a {
	color: #A8D5B5;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.campus-footer-credit a:hover {
	color: #C9A84C;
}

/* === Page header overlay gold line === */
.wp-block-cover .manuscript-label p {
	color: #C9A84C;
}

/* === Force page header title center alignment === */
.page-header-inner .wp-block-post-title {
	text-align: center !important;
}

/* === Gallery lightbox === */
.campus-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.campus-lightbox-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.campus-lightbox-overlay img {
	max-width: 90vw;
	max-height: 88vh;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transform: scale(0.92);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.campus-lightbox-overlay.is-active img {
	transform: scale(1);
}

.campus-lightbox-close {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	font-family: 'Amiri', Georgia, serif;
	font-size: 2rem;
	color: #FFFFFF;
	background: none;
	border: none;
	cursor: pointer;
	line-height: 1;
	padding: 0.5rem;
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.campus-lightbox-close:hover {
	opacity: 1;
}

.gallery-zoomable img {
	cursor: zoom-in;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-zoomable img:hover {
	transform: scale(1.03);
	box-shadow: 0 8px 30px rgba(13, 59, 30, 0.15);
}

/* === Mobile Navigation - Slide from left === */
.wp-block-navigation__responsive-container.is-menu-open {
	animation: slideInLeft 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideInLeft {
	from {
		transform: translateX(-100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
	padding: 2rem 1.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item a {
	font-family: 'Amiri', Georgia, serif;
	font-size: 1.125rem;
	color: #FFFFFF;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba(168, 213, 181, 0.15);
	display: block;
	width: 100%;
	text-decoration: none;
	transition: background 0.2s ease, padding-left 0.2s ease;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item a:hover {
	background: rgba(168, 213, 181, 0.1);
	padding-left: 1.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open {
	background-color: #0D3B1E !important;
}

.wp-block-navigation__responsive-container-close {
	color: #FFFFFF !important;
}

.wp-block-navigation__responsive-container-open {
	color: #0D3B1E !important;
}

/* Hamburger button styling */
.campus-nav .wp-block-navigation__responsive-container-open svg {
	width: 24px;
	height: 24px;
}

/* === Responsive === */
@media (max-width: 781px) {
	.arch-frame img {
		max-width: 280px;
		margin: 0 auto;
	}
}