/*
Theme Name: Coptic Orthodox Church
Theme URI: https://copticfaith.org
Author: Coptic Faith Team
Author URI: https://copticfaith.org
Description: A beautiful, modern WordPress theme designed specifically for the Coptic Orthodox Church. Features elegant Coptic design elements, responsive layout, full Gutenberg support, and optimized for teaching and spiritual content.
Version: 1.0.1
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coptic-orthodox
Tags: church, religious, coptic, orthodox, responsive, accessibility-ready, custom-colors, custom-menu, editor-style, featured-images, theme-options, translation-ready, blog, full-width-template

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

/* =================================================================================
   TABLE OF CONTENTS
   =================================================================================
   1. CSS Variables
   2. Reset & Base Styles
   3. Typography
   4. Layout Containers
   5. Header & Navigation
   6. Hero Section
   7. Buttons
   8. Cards & Boxes
   9. Sections
   10. Posts & Pages
   11. Sidebar & Widgets
   12. Footer
   13. Comments
   14. Forms
   15. WordPress Core Classes
   16. Responsive Design
   17. Accessibility
   18. Print Styles
   19. Animations
   20. Custom Coptic Elements
   ================================================================================= */

/* =================================================================================
   1. CSS VARIABLES
   ================================================================================= */
:root {
    --wp--preset--spacing--30: 1.5rem;
    --wp--preset--spacing--40: 2rem;
    --wp--preset--spacing--50: 3rem;
    --wp--preset--spacing--60: 4rem;
    --wp--preset--spacing--70: 5.6rem;
    --additional-brown: #462a08;
    --background-cream: #fff8f2;
    --coptic-gold: #D4AF37;
    --deep-blue: #1e3a5f;
    --white: #ffffff;
    --black: #000000;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
}

/* =================================================================================
   2. RESET & BASE STYLES
   ================================================================================= */
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    margin-top: 0 !important;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--background-cream);
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2D3748;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

#wpadminbar {
    display: none !important;
}

/* =================================================================================
   3. TYPOGRAPHY
   ================================================================================= */
h1, h2, h3, h4, h5, h6, .serif {
    font-family: 'EB Garamond', Georgia, serif;
    color: var(--black);
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--additional-brown);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--coptic-gold);
}

a:focus {
    outline: 2px solid var(--coptic-gold);
    outline-offset: 2px;
}

/* =================================================================================
   4. LAYOUT CONTAINERS
   ================================================================================= */
.content-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--wp--preset--spacing--30);
}

.site-content {
    min-height: 60vh;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 2fr 1fr;
    }
}

/* =================================================================================
   5. HEADER & NAVIGATION
   ================================================================================= */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.main-navigation {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.custom-logo,
.default-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-info {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--stone-900);
}

.site-description {
    font-size: 0.75rem;
    color: var(--stone-600);
    margin: 0;
}

.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: block;
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    color: var(--stone-600);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--additional-brown);
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--additional-brown);
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    background-color: var(--background-cream);
    padding: 2rem;
    overflow-y: auto;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--additional-brown);
}

.mobile-header {
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.mobile-header img {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.5rem;
}

.mobile-header h3 {
    font-size: 1.125rem;
    margin: 0;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--stone-200);
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 0.5rem;
    color: #2D3748;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
    color: var(--additional-brown);
    padding-left: 1rem;
}

/* =================================================================================
   6. HERO SECTION
   ================================================================================= */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #462a08 0%, #6b4423 50%, #8b5a3c 100%);
    color: white;
    text-align: center;
    overflow: hidden;
    padding: 4rem 2rem;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(212, 175, 55, 0.1) 35px, rgba(212, 175, 55, 0.1) 70px);
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-icon {
    width: clamp(128px, 15vw, 160px);
    height: clamp(128px, 15vw, 160px);
    margin: 0 auto 2rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =================================================================================
   6.1 Utility Compatibility Layer
   Ensures page templates that use utility-like classes render correctly
   ================================================================================= */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.block { display: block; }
.hidden { display: none; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flex { display: flex; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-48 { width: 12rem; }
.h-48 { height: 12rem; }
.w-px { width: 1px; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-\[900px\] { max-width: 900px; }
.max-w-\[800px\] { max-width: 800px; }
.max-w-\[1000px\] { max-width: 1000px; }
.overflow-hidden { overflow: hidden; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-\[26px\] { border-radius: 26px; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.shadow-lg { box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.border-none { border: none !important; }
.border { border: 1px solid var(--stone-200); }
.border-b { border-bottom: 1px solid var(--stone-200); }
.border-b-2 { border-bottom: 2px solid var(--stone-200); }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-t-4 { border-top-width: 4px; border-top-style: solid; }
.border-\[\#462a08\] { border-color: #462a08; }
.border-\[\#D4AF37\] { border-color: #D4AF37; }
.border-stone-200 { border-color: var(--stone-200); }
.border-stone-300 { border-color: var(--stone-300); }
.border-stone-500 { border-color: var(--stone-500); }
.border-stone-600 { border-color: var(--stone-600); }
.border-stone-800 { border-color: var(--stone-800); }
.border-blue-100 { border-color: #dbeafe; }
.border-green-200 { border-color: #bbf7d0; }
.border-red-800 { border-color: #991b1b; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-serif { font-family: 'EB Garamond', Georgia, serif; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-8 { padding-top: 2rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.bg-white { background-color: #ffffff; }
.bg-stone-50 { background-color: var(--stone-50); }
.bg-stone-100 { background-color: var(--stone-100); }
.bg-stone-700 { background-color: var(--stone-700); }
.bg-stone-800 { background-color: var(--stone-800); }
.bg-stone-900 { background-color: var(--stone-900); }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-transparent { background-color: transparent; }
.bg-\[\#fff\] { background-color: #fff; }
.bg-\[\#fff8f2\] { background-color: #fff8f2; }
.bg-\[\#fdfbf7\] { background-color: #fdfbf7; }
.bg-\[\#462a08\] { background-color: #462a08; }
.bg-\[\#D4AF37\] { background-color: #D4AF37; }
.bg-\[\#D4AF37\]\/20 { background-color: rgba(212, 175, 55, 0.2); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-from, transparent), var(--tw-gradient-to, transparent)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from, transparent), var(--tw-gradient-to, transparent)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from, transparent), var(--tw-gradient-to, transparent)); }
.from-white { --tw-gradient-from: #ffffff; }
.from-stone-50 { --tw-gradient-from: var(--stone-50); }
.to-stone-50 { --tw-gradient-to: var(--stone-50); }
.to-stone-100 { --tw-gradient-to: var(--stone-100); }

.text-white { color: #ffffff !important; }
.text-stone-100 { color: var(--stone-100); }
.text-stone-200 { color: var(--stone-200); }
.text-stone-300 { color: var(--stone-300); }
.text-stone-400 { color: var(--stone-400); }
.text-stone-500 { color: var(--stone-500); }
.text-stone-600 { color: var(--stone-600); }
.text-stone-700 { color: var(--stone-700); }
.text-stone-800 { color: var(--stone-800); }
.text-\[\#462a08\] { color: #462a08; }
.text-\[\#D4AF37\] { color: #D4AF37; }
.text-green-800 { color: #166534; }
.text-purple-800 { color: #6b21a8; }
.text-red-800 { color: #991b1b; }
.text-large { font-size: 1.125rem; line-height: 1.75rem; }
.text-stone-500font-large { color: var(--stone-500); font-size: 1.125rem; line-height: 1.75rem; }

@media (min-width: 768px) {
    .md\:block { display: block !important; }
    .md\:hidden { display: none !important; }
    .md\:flex { display: flex !important; }
    .md\:text-left { text-align: left !important; }
    .md\:text-right { text-align: right !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-\[1fr_1fr\] { grid-template-columns: 1fr 1fr; }
    .md\:grid-cols-\[1fr_2fr\] { grid-template-columns: 1fr 2fr; }
    .md\:grid-cols-\[30\%_70\%\] { grid-template-columns: 30% 70%; }
    .md\:grid-cols-\[35\%_65\%\] { grid-template-columns: 35% 65%; }
    .md\:grid-cols-\[40\%_60\%\] { grid-template-columns: 40% 60%; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =================================================================================
   7. BUTTONS
   ================================================================================= */
.btn-primary,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
    background: linear-gradient(135deg, var(--additional-brown), #6b4423);
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(70, 42, 8, 0.3);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(70, 42, 8, 0.4);
    color: white !important;
}

.btn-primary i {
    font-size: 1.1em;
}

/* =================================================================================
   8. CARDS & BOXES
   ================================================================================= */
.lesson-card,
.info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.lesson-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(70, 42, 8, 0.15);
    border-color: var(--coptic-gold);
}

/* Global panel interactions across templates */
.info-card,
.step-card,
.saint-quote,
.split-hero-card,
.quote-box,
.feature-box {
    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.info-card::after,
.step-card::after,
.saint-quote::after,
.split-hero-card::after,
.quote-box::after,
.feature-box::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.9), transparent);
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: center;
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .info-card:hover,
    .step-card:hover,
    .saint-quote:hover,
    .split-hero-card:hover,
    .quote-box:hover,
    .feature-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 36px rgba(70, 42, 8, 0.14);
    }

    .info-card:hover::after,
    .step-card:hover::after,
    .saint-quote:hover::after,
    .split-hero-card:hover::after,
    .quote-box:hover::after,
    .feature-box:hover::after {
        opacity: 1;
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .info-card,
    .step-card,
    .saint-quote,
    .split-hero-card,
    .quote-box,
    .feature-box,
    .info-card::after,
    .step-card::after,
    .saint-quote::after,
    .split-hero-card::after,
    .quote-box::after,
    .feature-box::after {
        transition: none !important;
    }
}

.lesson-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--coptic-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.lesson-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--coptic-gold), #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lesson-title {
    margin-bottom: 1rem;
    color: var(--stone-900);
    transition: color 0.3s ease;
}

.lesson-card:hover .lesson-title {
    color: var(--additional-brown);
}

.lesson-excerpt {
    color: var(--stone-600);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.lesson-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--coptic-gold);
    font-weight: 600;
}

.lesson-link i {
    transition: transform 0.3s ease;
}

.lesson-card:hover .lesson-link i {
    transform: translateX(0.5rem);
}

.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--coptic-gold);
    margin-bottom: 1rem;
}

/* =================================================================================
   9. SECTIONS
   ================================================================================= */
section {
    padding: var(--wp--preset--spacing--70) 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--coptic-gold), transparent);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--stone-600);
    max-width: 700px;
    margin: 0 auto;
}

.intro-section {
    background: white;
    padding: 5rem 0;
}

.intro-text {
    font-size: 1.25rem;
    color: var(--stone-600);
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.teachings-section {
    background: linear-gradient(to bottom, var(--stone-50), white);
    padding: 5rem 0;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--additional-brown), #6b4423);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.cta-scripture {
    font-size: 1.75rem;
    font-style: italic;
    margin: 1.5rem auto;
    opacity: 0.95;
}

.cta-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.about-section {
    background: white;
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--stone-600);
    line-height: 1.8;
}

.rounded-image {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

/* =================================================================================
   10. POSTS & PAGES
   ================================================================================= */
.entry-content {
    margin-top: 2rem;
}

.entry-title {
    margin-bottom: 1rem;
}

.entry-meta {
    color: var(--stone-600);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

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

.entry-meta a:hover {
    color: var(--additional-brown);
}

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

.post-thumbnail,
.page-thumbnail {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--stone-200);
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =================================================================================
   11. SIDEBAR & WIDGETS
   ================================================================================= */
.sidebar {
    padding: 0;
}

.widget {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    color: var(--additional-brown);
    border-bottom: 2px solid var(--coptic-gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--stone-100);
}

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

.widget ul li a {
    color: var(--stone-700);
    transition: color 0.3s ease;
}

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

/* =================================================================================
   12. FOOTER
   ================================================================================= */
.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(212, 175, 55, 0.22), transparent 58%),
        radial-gradient(820px 420px at 95% 0%, rgba(151, 104, 49, 0.25), transparent 54%),
        linear-gradient(140deg, #17120f 0%, #100d0b 62%, #0f0c0b 100%);
    color: #fff;
    padding: 1.4rem 0 1rem;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image:
        linear-gradient(90deg, transparent 0, transparent 96%, rgba(212, 175, 55, 0.35) 100%),
        linear-gradient(0deg, transparent 0, transparent 96%, rgba(212, 175, 55, 0.25) 100%);
    background-size: 52px 52px;
}

.footer-shell {
    position: relative;
    z-index: 1;
}

.footer-top-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0 0 0.95rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.42);
}

.footer-top-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.13), rgba(212, 175, 55, 0.05));
    color: #f7ebd6;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-top-links a:hover,
.footer-top-links a:focus-visible {
    color: #22170d;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.95), rgba(212, 175, 55, 0.84));
    border-color: rgba(212, 175, 55, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.3);
    outline: none;
}

.footer-social-row {
    display: flex;
    justify-content: center;
    padding: 0.85rem 0 0.75rem;
}

.social-links {
    display: flex;
    gap: 0.7rem;
    margin: 0;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.social-link:hover {
    background: var(--coptic-gold);
    color: #17130f;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(212, 175, 55, 0.34);
}

.site-footer .site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.8rem;
    text-align: center;
    color: #c9bba8;
    font-size: 0.79rem;
    line-height: 1.4;
}

.site-footer .site-info p {
    margin: 0.08rem 0;
}

.site-footer .site-info a {
    color: #ddcfbc;
    text-decoration: none;
}

.site-footer .site-info a:hover {
    color: var(--coptic-gold);
}

@media (max-width: 767px) {
    .site-footer {
        padding-top: 1.15rem;
    }

    .footer-top-links {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .footer-top-links a {
        font-size: 0.72rem;
        padding: 0.4rem 0.76rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .site-footer .site-info {
        font-size: 0.76rem;
    }
}

/* =================================================================================
   13. COMMENTS
   ================================================================================= */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--stone-200);
}

.comments-title {
    margin-bottom: 2rem;
}

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

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--stone-200);
}

.comment-author img {
    border-radius: 50%;
    margin-right: 1rem;
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--stone-600);
    margin-top: 0.5rem;
}

.comment-content {
    margin-top: 1rem;
}

.reply {
    margin-top: 1rem;
}

.reply a {
    font-size: 0.875rem;
    color: var(--additional-brown);
}

/* =================================================================================
   14. FORMS
   ================================================================================= */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--stone-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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="date"]:focus,
textarea:focus,
select:focus {
    border-color: var(--coptic-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
}

.search-submit {
    padding: 0.75rem 1.5rem;
}

/* =================================================================================
   15. WORDPRESS CORE CLASSES
   ================================================================================= */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

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

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--stone-600);
    margin-top: 0.5rem;
}

.wp-block-image {
    margin-bottom: 1.5rem;
}

.wp-block-quote {
    border-left: 4px solid var(--coptic-gold);
    padding-left: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
}

.wp-block-pullquote {
    border-top: 4px solid var(--coptic-gold);
    border-bottom: 4px solid var(--coptic-gold);
    padding: 2rem 0;
    text-align: center;
}

.wp-block-separator {
    border-color: var(--coptic-gold);
    margin: 2rem 0;
}

/* =================================================================================
   16. RESPONSIVE DESIGN
   ================================================================================= */
@media (max-width: 1024px) {
    section {
        padding: 4rem 0;
    }
    
    .lessons-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 450px;
        padding: 3rem 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .lesson-card,
    .info-card {
        padding: 1.5rem;
    }
    
    .feature-box {
        padding: 1.5rem;
    }
}

/* =================================================================================
   17. ACCESSIBILITY
   ================================================================================= */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    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;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--additional-brown);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}

/* =================================================================================
   18. PRINT STYLES
   ================================================================================= */
@media print {
    .no-print,
    .site-header,
    .site-footer,
    .sidebar,
    .comments-area,
    .mobile-menu,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* =================================================================================
   19. ANIMATIONS
   ================================================================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation: slideUp 0.6s ease forwards;
}

/* =================================================================================
   20. CUSTOM COPTIC ELEMENTS
   ================================================================================= */
.coptic-cross {
    color: var(--coptic-gold);
}

.coptic-divider {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--coptic-gold), transparent);
    margin: 2rem 0;
    border: none;
}

.coptic-badge {
    background: var(--coptic-gold);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--coptic-gold);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--additional-brown);
    transform: translateY(-3px);
}

/* 404 Page Styles */
.error-404-page .error-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.error-404-page .error-card {
    background: white;
    border-radius: 30px;
    padding: 4rem 3rem;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(70, 42, 8, 0.15);
    border: 3px solid rgba(212, 175, 55, 0.2);
}

.error-404-page .cross-icon {
    color: var(--coptic-gold);
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.error-404-page .error-number {
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--coptic-gold), #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404-page .verse-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    border-left: 4px solid var(--coptic-gold);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.error-404-page .quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.error-404-page .quick-link {
    background: rgba(212, 175, 55, 0.1);
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--additional-brown);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.error-404-page .quick-link:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
}

.error-404-page .quick-link i {
    font-size: 2rem;
    color: var(--coptic-gold);
}

/* Search Results */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-result-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .search-result-item {
        grid-template-columns: 200px 1fr;
    }
}

.result-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--coptic-gold);
    font-weight: 600;
    margin-top: 1rem;
}

.read-more:hover {
    color: var(--additional-brown);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(0.5rem);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--stone-300);
    border-radius: 8px;
    color: var(--stone-700);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--coptic-gold);
    border-color: var(--coptic-gold);
    color: white;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.p-0 { padding: 0; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
