/* Page Sections, Hero Slider, News Grid, Pagination, Contact & Admissions */

/* Buttons */
.site-btn {
	display: inline-block;
	position: relative;
	padding: 0.3em 1em;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.7em;
	border: 2px solid transparent;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.site-btn:hover {
	padding-right: 2em;
	padding-left: 0.7em;
}

.site-btn::after {
	content: "";
	position: absolute;
	right: 0.85em;
	top: 50%;
	width: 7px;
	height: 7px;
	border: solid currentColor;
	border-width: 2px 2px 0 0;
	transform: translateY(-50%) rotate(45deg);
	opacity: 0;
	transition: all 0.2s ease;
}

.site-btn:hover::after {
	opacity: 1;
	right: 0.65em;
}

.site-btn--primary {
	background-color: #0a47aa;
	border-color: #0a47aa;
	color: #ffffff;
}

.site-btn--blue {
	background-color: #0c71c3;
	border-color: #0c71c3;
	color: #ffffff;
	font-size: 17px;
}

.site-btn--danger {
	background-color: #E02B20;
	border-color: #E02B20;
	color: #ffffff;
}

.site-btn--outline {
	background-color: transparent;
	border-color: #0a47aa;
	color: #0a47aa;
}

/* Hero Slider */
.hero-slider {
	position: relative;
	overflow: hidden;
	min-height: 80vh;
	background-color: #ffffff;
}

.hero-slides {
	position: relative;
	width: 100%;
	min-height: 80vh;
}

.hero-slide {
	position: relative;
	width: 100%;
	min-height: 80vh;
	background-size: contain;
	background-position: center bottom 0px;
	background-repeat: no-repeat;
	background-color: #0a47aa;
	transition: opacity 0.4s ease;
}

.hero-slide-container {
	width: 80%;
	max-width: 1080px;
	margin: 0 auto;
	height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.hero-slide-content {
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	padding: 0 8%;
}

.hero-slide-title {
	font-size: 46px;
	font-weight: 300;
	color: #ffffff;
	margin-bottom: 12px;
}

.hero-slide-desc {
	font-size: 16px;
	color: #ffffff;
	margin-bottom: 20px;
}

/* Default Fallback Slide Backgrounds (used only when no Filament sliders exist) */
.hero-slide--0 { background-image: url('../images/Cannosa-Nursery.png'); background-color: #62bb3b; }
.hero-slide--1 { background-image: url('../images/Cannosa-Jr.Kg_.png'); background-color: #ffcb2f; }

.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 48px;
	z-index: 100;
	opacity: 0;
	transition: all 0.2s ease-in-out;
	font-size: 0;
}

.slider-arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	border: solid #ffffff;
	border-width: 0 0 4px 4px;
}

.slider-arrow--prev {
	left: -24px;
}

.slider-arrow--prev::before {
	transform: translate(-30%, -50%) rotate(45deg);
}

.slider-arrow--next {
	right: -24px;
}

.slider-arrow--next::before {
	transform: translate(-70%, -50%) rotate(-135deg);
}

.hero-slider:hover .slider-arrow {
	opacity: 1;
}

.hero-slider:hover .slider-arrow--prev {
	left: 32px;
}

.hero-slider:hover .slider-arrow--next {
	right: 30px;
}

.slider-dots {
	position: absolute;
	bottom: 20px;
	left: 0;
	width: 100%;
	text-align: center;
	z-index: 100;
}

.slider-dots a {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	margin: 0 5px;
	font-size: 0;
	color: transparent;
}

.slider-dots a.is-active {
	background-color: #ffffff;
}

/* Welcome / Vision / Mission Section */
.intro-section {
	background-color: #ffffff;
	padding: 54px 0 50.7px;
}

.intro-box {
	padding: 0 0 27px;
	font-size: 15px;
	line-height: 1.7em;
	color: #333333;
}

.intro-box h2 {
	font-size: 26px;
	font-weight: 700;
	line-height: 1em;
	color: #000000;
	padding-bottom: 10px;
}

.intro-box p + h2 {
	margin-top: 30px;
}

.intro-box p {
	font-size: 15px;
	line-height: 1.7em;
	padding-bottom: 1em;
}

.intro-box p:last-of-type {
	padding-bottom: 0;
}

/* News & Updates Section (Homepage) */
.news-section {
	background-color: #f7f7f7;
	padding: 54px 0 35px;
}

.news-section-heading {
	margin-top: 18px;
	margin-bottom: 27px;
}

.news-section-heading h2 {
	font-size: 26px;
	font-weight: 700;
	color: #ee2025;
	text-decoration: underline;
}

/* List Section (News & Events Pages) */
.list-section {
	background-color: #ffffff;
	padding: 54px 0;
}

/* 3-Column Post Grid */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	align-items: start;
}

.post-card {
	border: 1px solid #d8d8d8;
	padding: 20px;
	background-color: #ffffff;
}

.post-card-image {
	margin: -21px -21px 24px -21px;
	display: block;
	overflow: hidden;
}

.post-card-image img {
	width: 100%;
	aspect-ratio: 400 / 250;
	object-fit: cover;
	display: block;
}

.post-card-title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3em;
	padding-bottom: 10px;
	margin: 0;
}

.post-card-title a {
	color: #333333;
}

.post-card-title a:hover {
	color: #82c0c7;
}

.home-page .post-card-title a,
.home-page .post-card-title a:hover {
	color: #E02B20;
}

.post-card-meta {
	font-size: 14px;
	margin-bottom: 6px;
	padding: 0;
	color: #666;
}

.post-card-meta a {
	color: #666;
}

.post-card-excerpt p {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding-bottom: 0;
}

@media (max-width: 980px) {
	.post-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* Numbered Pagination */
.pagination-nav {
	clear: both;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 30px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.pagination-nav a,
.pagination-nav span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	background: #ffffff;
	color: #0a47aa;
	border: 1px solid #d8d8d8;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.pagination-nav a:hover {
	background: #0a47aa;
	color: #ffffff;
	border-color: #0a47aa;
}

.pagination-nav span.is-active {
	background: #0c71c3;
	color: #ffffff;
	border-color: #0c71c3;
	font-weight: 700;
}

.pagination-nav span.is-disabled {
	opacity: 0.45;
	cursor: default;
}

.pagination-nav span.is-dots {
	background: transparent;
	border-color: transparent;
	color: #666666;
}

/* Single Post */
.single-post-header {
	margin-bottom: 20px;
}

.single-post-header .entry-title {
	font-size: 30px;
	color: #333;
	padding-bottom: 10px;
}

.single-post-meta {
	font-size: 14px;
	color: #666;
}

/* Admissions Page */
.admissions-section {
	background-color: #ffffff;
	padding: 20px 0 54px;
}

.admissions-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
	align-items: start;
}

.admissions-banner img {
	width: 100%;
	height: auto;
	display: block;
}

.admissions-cta {
	text-align: center;
	margin-top: 23px;
}

@media (max-width: 980px) {
	.admissions-grid {
		grid-template-columns: 1fr;
	}
}

/* Contact Us Page */
.contact-section {
	background-color: #ffffff;
	padding: 30px 0 54px;
}

.contact-info-grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 30px;
	align-items: start;
	margin-bottom: 36px;
}

.contact-map iframe {
	width: 100%;
	height: 250px;
	border: 0;
	display: block;
}

.contact-form-wrap {
	width: 70%;
	margin: 0 auto;
}

.contact-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 18px;
}

.contact-field {
	width: 100%;
	margin-bottom: 18px;
}

.contact-form-row .contact-field {
	margin-bottom: 0;
}

.contact-input {
	background-color: #eee;
	border: none;
	color: #666;
	font-size: 14px;
	padding: 16px;
	width: 100%;
	border-radius: 0;
}

.contact-textarea {
	min-height: 150px;
	resize: vertical;
}

.contact-form-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 14px;
}

.captcha-box {
	color: #333;
	font-size: 14px;
}

.captcha-input {
	width: 56px;
	padding: 10px 8px;
	text-align: center;
	background-color: #eee;
	border: none;
	margin-left: 6px;
	font-size: 14px;
}

.contact-alert {
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 14px;
	border-radius: 3px;
}

.contact-alert--success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.contact-alert--error {
	background: #ffebee;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

@media (max-width: 980px) {
	.contact-info-grid {
		grid-template-columns: 1fr;
	}
	.contact-form-wrap {
		width: 90%;
	}
	.contact-form-row {
		grid-template-columns: 1fr;
	}
}
