/*!
Theme Name: Quran Academy
Theme URI: https://quran-academy.com/
Author: Quran Academy Team
Author URI: https://quran-academy.com/
Description: A beautiful, modern WordPress theme for Quran Academy websites with stunning animations, full Elementor support, and SEO optimization. Perfect for Islamic educational institutions, Quran learning centers, and religious organizations.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: quran-acadmy
Tags: education, islamic, quran, academy, rtl-language-support, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, elementor-ready, full-width-template, two-columns, responsive-design, seo-friendly

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

Quran acadmy 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/
*/

/*--------------------------------------------------------------
# Color Palette (Islamic Theme Colors)
--------------------------------------------------------------*/
:root {
	--primary-color: #2d5016;
	--secondary-color: #8b7355;
	--accent-color: #d4af37;
	--text-dark: #2c3e50;
	--text-light: #555;
	--bg-light: #f8f9fa;
	--bg-white: #ffffff;
	--border-color: #e0e0e0;
	--success-color: #28a745;
	--gradient-primary: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
	--gradient-secondary: linear-gradient(135deg, #8b7355 0%, #a08968 100%);
	--shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
	--shadow-md: 0 4px 6px rgba(0,0,0,0.15);
	--shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
	--transition-fast: 0.3s ease;
	--transition-normal: 0.5s ease;
}

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
	appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: var(--text-dark);
	font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-family: 'Amiri', Georgia, serif;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 1rem;
	color: var(--text-dark);
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
}

h2 {
	font-size: 2rem;
	margin-bottom: 1.25rem;
}

h3 {
	font-size: 1.75rem;
}

h4 {
	font-size: 1.5rem;
}

h5 {
	font-size: 1.25rem;
}

h6 {
	font-size: 1.1rem;
}

@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.75rem;
	}
	h3 {
		font-size: 1.5rem;
	}
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: var(--bg-white);
	overflow-x: hidden;
}

/* Smooth Scrolling */
html {
	scroll-behavior: smooth;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: var(--primary-color);
	text-decoration: none;
	transition: all var(--transition-fast);
	position: relative;
}

a:visited {
	color: var(--primary-color);
}

a:hover,
a:focus,
a:active {
	color: var(--accent-color);
}

a:focus {
	outline: 2px solid var(--accent-color);
	outline-offset: 2px;
}

a:hover,
a:active {
	outline: 0;
}

/* Link Hover Effect */
.entry-content a:not(.button):not(.wp-block-button__link) {
	border-bottom: 1px solid transparent;
}

.entry-content a:not(.button):not(.wp-block-button__link):hover {
	border-bottom-color: var(--accent-color);
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-block-button__link {
	border: none;
	border-radius: 5px;
	background: var(--gradient-primary);
	color: var(--bg-white);
	font-weight: 500;
	line-height: 1;
	padding: 0.875rem 2rem;
	cursor: pointer;
	transition: all var(--transition-fast);
	box-shadow: var(--shadow-sm);
	display: inline-block;
	text-align: center;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	background: var(--gradient-secondary);
	color: var(--bg-white);
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus,
.button:active,
.button:focus {
	transform: translateY(0);
	box-shadow: var(--shadow-sm);
	outline: 2px solid var(--accent-color);
	outline-offset: 2px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

.site {
	max-width: 100%;
	margin: 0 auto;
}

.site-content {
	padding: 2rem 0;
}

.content-area {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 3rem;
	align-items: start;
}

.content-area.full-width {
	grid-template-columns: 1fr;
	max-width: 100%;
	padding: 0;
}

@media (max-width: 992px) {
	.content-area {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

.site-main {
	min-width: 0;
}

.widget-area {
	position: sticky;
	top: 100px;
}

/* Full Width Template for Page Builders */
.page-template-elementor_canvas .site-header,
.page-template-elementor_canvas .site-footer {
	display: none;
}

.elementor-page .content-area {
	max-width: 100%;
	padding: 0;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Header & Navigation
--------------------------------------------- */
.site-header {
	background: var(--bg-white);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 999;
	animation: slideDown 0.5s ease-out;
	padding: 1rem 0;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.site-header .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-branding {
	display: flex;
	align-items: center;
	animation: fadeInLeft 0.6s ease-out;
}

@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.custom-logo-link {
	margin-right: 1rem;
}

.custom-logo {
	max-height: 60px;
	width: auto;
	transition: transform var(--transition-fast);
}

.custom-logo:hover {
	transform: scale(1.05);
}

.site-title {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
}

.site-title a {
	color: var(--primary-color);
}

.site-title a:hover {
	color: var(--accent-color);
}

.site-description {
	margin: 0;
	font-size: 0.875rem;
	color: var(--text-light);
}

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
	animation: fadeInRight 0.6s ease-out;
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: var(--shadow-lg);
	background: var(--bg-white);
	border-radius: 5px;
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all var(--transition-fast);
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: 100%;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-navigation ul ul a {
	width: 220px;
	padding: 0.75rem 1.25rem;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: 0;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	padding: 0.75rem 1.25rem;
	color: var(--text-dark);
	font-weight: 500;
	transition: all var(--transition-fast);
	position: relative;
}

.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--accent-color);
	transition: all var(--transition-fast);
	transform: translateX(-50%);
}

.main-navigation a:hover,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a {
	color: var(--primary-color);
}

.main-navigation a:hover::after,
.main-navigation .current_page_item > a::after,
.main-navigation .current-menu-item > a::after {
	width: 100%;
}

/* Small menu. */
.menu-toggle {
	display: block;
	background: var(--gradient-primary);
	color: var(--bg-white);
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 600;
	transition: all var(--transition-fast);
}

.menu-toggle:hover {
	background: var(--gradient-secondary);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.main-navigation.toggled ul {
	display: block;
	background: var(--bg-white);
	padding: 1rem;
	margin-top: 1rem;
	border-radius: 5px;
	box-shadow: var(--shadow-md);
	animation: slideDown 0.3s ease-out;
}

@media screen and (min-width: 37.5em) {
	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
		gap: 0.5rem;
	}
	
	.main-navigation a {
		padding: 0.5rem 1rem;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
	border-left: 4px solid var(--accent-color);
	padding-left: 1rem;
}

.post,
.page {
	margin: 0 0 2.5rem;
	background: var(--bg-white);
	border-radius: 10px;
	padding: 2rem;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-fast);
	animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.post:hover,
.page:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-5px);
}

.entry-header {
	margin-bottom: 1.5rem;
}

.entry-title {
	margin-bottom: 0.5rem;
	color: var(--text-dark);
	transition: color var(--transition-fast);
}

.entry-title a {
	color: var(--text-dark);
}

.entry-title a:hover {
	color: var(--primary-color);
}

.entry-meta {
	font-size: 0.875rem;
	color: var(--text-light);
	margin-bottom: 1rem;
}

.entry-meta a {
	color: var(--secondary-color);
}

.post-thumbnail {
	margin-bottom: 1.5rem;
	border-radius: 8px;
	overflow: hidden;
}

.post-thumbnail img {
	transition: transform var(--transition-normal);
}

.post-thumbnail:hover img {
	transform: scale(1.05);
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
	line-height: 1.8;
}

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

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
	font-size: 0.875rem;
}

.page-links {
	clear: both;
	margin: 2rem 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 2rem;
	padding: 1.5rem;
	background: var(--bg-white);
	border-radius: 8px;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-fast);
	animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.widget:hover {
	box-shadow: var(--shadow-md);
}

.widget-title {
	color: var(--primary-color);
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--accent-color);
	position: relative;
	font-size: 1.25rem;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget ul li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--border-color);
	transition: padding-left var(--transition-fast);
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li:hover {
	padding-left: 0.5rem;
}

.widget ul li a {
	color: var(--text-dark);
}

.widget ul li a:hover {
	color: var(--primary-color);
}

.widget select {
	max-width: 100%;
	padding: 0.5rem;
	border: 1px solid var(--border-color);
	border-radius: 5px;
}

/* Footer Widgets */
.footer-widget {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.footer-widget .widget-title {
	color: var(--bg-white);
	border-bottom-color: var(--accent-color);
}

.footer-widget ul li a {
	color: rgba(255, 255, 255, 0.8);
}

.footer-widget ul li a:hover {
	color: var(--bg-white);
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
	background: var(--gradient-primary);
	color: var(--bg-white);
	padding: 3rem 0 0;
	margin-top: 4rem;
	position: relative;
}

.site-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--accent-color);
}

.footer-widgets {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.site-info {
	background: rgba(0, 0, 0, 0.2);
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.875rem;
	margin-top: 2rem;
}

.site-info a {
	color: var(--accent-color);
	text-decoration: underline;
}

.site-info a:hover {
	color: var(--bg-white);
}

/*--------------------------------------------------------------
# Animation Utilities
--------------------------------------------------------------*/
.fade-in {
	animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
	animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
	animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
	animation: fadeInRight 0.6s ease-out;
}

.slide-down {
	animation: slideDown 0.5s ease-out;
}

/* Stagger animation for multiple elements */
.animate-stagger > * {
	opacity: 0;
	animation: fadeInUp 0.6s ease-out forwards;
}

.animate-stagger > *:nth-child(1) {
	animation-delay: 0.1s;
}

.animate-stagger > *:nth-child(2) {
	animation-delay: 0.2s;
}

.animate-stagger > *:nth-child(3) {
	animation-delay: 0.3s;
}

.animate-stagger > *:nth-child(4) {
	animation-delay: 0.4s;
}

.animate-stagger > *:nth-child(5) {
	animation-delay: 0.5s;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 768px) {
	.site-header .container {
		flex-direction: column;
		gap: 1rem;
	}
	
	.site-branding {
		flex-direction: column;
		text-align: center;
	}
	
	.custom-logo-link {
		margin-right: 0;
		margin-bottom: 0.5rem;
	}
	
	.footer-widgets {
		grid-template-columns: 1fr;
	}
	
	.post,
	.page {
		padding: 1.5rem;
	}
}

/*--------------------------------------------------------------
# Accessibility Improvements
--------------------------------------------------------------*/
.skip-link {
	background-color: var(--primary-color);
	color: var(--bg-white);
	padding: 0.75rem 1.5rem;
	border-radius: 5px;
}

.skip-link:focus {
	background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Page Builder Compatibility
--------------------------------------------------------------*/
/* Elementor Compatibility */
.elementor-widget-wrap {
	animation: fadeIn 0.6s ease-out;
}

/* Full Width for Page Builders */
.page-template-elementor_header_footer .content-area,
.elementor-template-full-width .content-area {
	max-width: 100%;
	padding: 0;
}

/* Ensure Elementor sections work properly */
.elementor-section {
	margin: 0;
}

/*--------------------------------------------------------------
# Performance & Loading States
--------------------------------------------------------------*/
img {
	image-rendering: -webkit-optimize-contrast;
}

img[loading="lazy"] {
	opacity: 0;
	transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
	opacity: 1;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}
