/*
Theme Name: Simple
Description: A clean and simple WordPress theme with Bricolage Grotesque and Karla fonts
Version: 1.0
Author: Gupse Bilgi Teknolojileri
Text Domain: simple
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-header, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Reset and Base Styles */

:root {
    --primary-color: #39495a;
    --secondary-color: #74b3e3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

a {
    color: #74b3e3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.button {
    background: #fff;
    border: 2px solid #74b3e3;
    color: #74b3e3;
    border-radius: 5rem;
    font-size: 1.025rem;
    font-weight: 500;
    padding: 0.95rem 2.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button:hover {
    background: #74b3e3;
    color: #fff;
    text-decoration: none;
}

.button-primary {
    color: #74b3e3;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: rgba(0, 0, 0, 0.2);
    min-height: 90px;
    padding: 1rem 0;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

body.admin-bar .site-header {
    top: 32px;
}

body:not(.home) .site-header,
.site-header.scrolled {
    background-color: rgba(43, 62, 80, .95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.site-title {
    font-size: 3.1rem;
    font-weight: 400;
    color: #fff;
    font-family: 'Cookie', 'Brush Script MT', cursive;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

.site-title:hover {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.site-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #f0f0f0;
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Navigation */
.main-navigation {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
    position: relative;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle-text {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menu Toggle Animation */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu li {
    margin-left: 2rem;
    position: relative;
}

.nav-menu a {
    color: #eee;
    font-weight: 500;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.nav-menu a:hover {
    color: #f8fee1;
}

/* Submenu Styles */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    border: 1px solid #e0e0e0;
}

.nav-menu .sub-menu li {
    margin-left: 0;
    margin-bottom: 0;
}

.nav-menu .sub-menu a {
    padding: 0.75rem 1.5rem;
    color: #333;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.nav-menu .sub-menu a:hover {
    background-color: #f8f9fa;
    color: #0073aa;
    padding-left: 2rem;
}

/* Show submenu on hover */
.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow indicator for parent items */
.nav-menu .menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    color: #fff;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Ensure submenus don't interfere with fixed header */
.nav-menu .sub-menu {
    margin-top: 0.5rem;
}

/* Right-aligned submenus for items near the edge */
.nav-menu li:last-child .sub-menu,
.nav-menu li:nth-last-child(2) .sub-menu {
    left: auto;
    right: 0;
}

/* Main Content */
body:not(.home) .site-content {
    margin-top: 120px;
}

.section .section-title {
    font-size: 2.625rem;
    font-weight: 800;
    color: #74b3e3;
    letter-spacing: 1px;
    margin-bottom: 1.325rem;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

.section .section-subtitle {
    color: #74b3e3;
    display: inline-block;
    font-size: 1.325rem;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
    margin: 0;
    margin-bottom: .925rem;
    position: relative;
    padding-bottom: .325rem;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.section .section-subtitle::after {
    border-bottom: 2px dashed #74b3e3;
    bottom: 0;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    width: 100%;
}

.section .section-content {
    font-size: 1.125rem;
    font-weight: 400;
    color: #333;
    letter-spacing: .2px;
    line-height: 1.4;
}

.section .section-content p {
    margin-bottom: 3rem;
}

.section.hero {
    position: relative;
}

.section.hero .hero-text {
    color: #fff;
    font-size: 1.5rem;
    font-style: italic;
    left: 10%;
    position: absolute;
    top: 34%;
}

.section.hero img {
    height: auto;
    width: 100%;
}

/* About */
.section.about {
    padding: 4rem 0;
}

.section.about .container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.section.about .about-image {
    flex: 0.45;
}

.section.about .about-image img {
    border-radius: 2rem;
}

.section.about .about-text {
    flex: 0.55;
}

/* Books */
.section.books {
    padding: 4rem 0;
    background-color: #2c3e50;
    color: #fff;
}

.section.books .section-subtitle {
    color: #74b3e3;
}

.section.books .section-subtitle::after {
    border-bottom: 2px dashed #74b3e3;
}

.section.books .section-title {
    color: #fff;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.book-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.book-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.book-image {
    position: relative;
    overflow: hidden;
    height: 380px;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-item:hover .book-image img {
    transform: scale(1.05);
}

.book-info {
    padding: 1.5rem;
    text-align: center;
}

.book-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.no-books {
    text-align: center;
    color: #ccc;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 2rem;
}

/* Gallery */
.section.gallery {
    padding: 4rem 0;
    background-color: #34495e;
    color: #fff;
}

.section.gallery .section-subtitle {
    color: #74b3e3;
}

.section.gallery .section-subtitle::after {
    border-bottom: 2px dashed #74b3e3;
}

.section.gallery .section-title {
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 1.5rem;
    text-align: center;
}

.gallery-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

/* Articles */
.section.articles {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-item {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #74b3e3;
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
}

.article-date {
    font-weight: 500;
}

.articles-footer {
    text-align: center;
}

.no-articles {
    text-align: center;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 2rem;
}

article.format-quote h1 {
    font-size: 1.6rem;
    letter-spacing: -.05rem;
}

article.format-quote .post-thumbnail {
    float: left;
    margin: 0 1rem 0 0;
    width: 45%;
}

.book-table {
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.book-table td {
    border: 1px solid #ddd;
    padding: .25rem;
    vertical-align: top;
}

.book-table td.table-key {
    white-space: normal;
    width: 20%;
}

/**
 * Content area
 *(

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Sidebar layout for detail and archive pages */
body:not(.home) .content-area {
    display: grid;
    grid-template-columns: 5fr 2fr;
    gap: 3rem;
}

/* Posts */
.post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Archive Page Styling */
.page-header {
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: #39495a;
    border-radius: .325rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-title {
    font-size: 2.025rem;
    color: #fff;
    margin-bottom: 0;
    font-family: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.archive-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.posts-container {
    display: grid;
    gap: 2rem;
}


/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    gap: 1rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: rgba(116, 179, 227, 0.1);
    color: #74b3e3;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(116, 179, 227, 0.2);
    font-weight: 500;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #74b3e3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 179, 227, 0.3);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* WP PageNavi Plugin Styling */
.wp-pagenavi {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wp-pagenavi .pages {
    color: #666;
    font-size: 0.9rem;
    margin-right: 1rem;
    font-weight: 500;
}

.wp-pagenavi .page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: rgba(116, 179, 227, 0.1);
    color: #74b3e3;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(116, 179, 227, 0.2);
    font-weight: 500;
    margin: 0 0.25rem;
    min-width: 44px;
    text-align: center;
}

.wp-pagenavi .page-numbers:hover {
    background: #74b3e3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 179, 227, 0.3);
    text-decoration: none;
}

.wp-pagenavi .page-numbers.current {
    background: #74b3e3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 179, 227, 0.3);
    font-weight: 600;
}

.wp-pagenavi .page-numbers.prev,
.wp-pagenavi .page-numbers.next {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    background: rgba(116, 179, 227, 0.15);
    border: 2px solid rgba(116, 179, 227, 0.3);
}

.wp-pagenavi .page-numbers.prev:hover,
.wp-pagenavi .page-numbers.next:hover {
    background: #74b3e3;
    color: white;
    border-color: #74b3e3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 179, 227, 0.3);
}

.wp-pagenavi .page-numbers.extend {
    background: transparent;
    color: #999;
    border: none;
    cursor: default;
    padding: 0.75rem 0.5rem;
}

.wp-pagenavi .page-numbers.extend:hover {
    background: transparent;
    color: #999;
    transform: none;
    box-shadow: none;
}

/* WPForms Styling */
.wpforms-container {
    max-width: 100%;
    margin: 2rem 0;
    font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif;
}

.wpforms-container .wpforms-form {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(116, 179, 227, 0.1);
    position: relative;
    overflow: hidden;
}

.wpforms-container .wpforms-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #74b3e3, #0073aa, #74b3e3);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Form Title */
.wpforms-container .wpforms-title {
    font-family: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.wpforms-container .wpforms-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #74b3e3, #0073aa);
    border-radius: 2px;
}

/* Form Description */
.wpforms-container .wpforms-description {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form Fields */
.wpforms-container .wpforms-field {
    margin-bottom: 1.5rem;
    position: relative;
}

.wpforms-container .wpforms-field-label {
    font-family: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
}

.wpforms-container .wpforms-field-label .wpforms-required-label {
    color: #e74c3c;
    margin-left: 0.25rem;
}

/* Input Fields */
.wpforms-container .wpforms-field input[type="text"],
.wpforms-container .wpforms-field input[type="email"],
.wpforms-container .wpforms-field input[type="tel"],
.wpforms-container .wpforms-field input[type="url"],
.wpforms-container .wpforms-field input[type="number"],
.wpforms-container .wpforms-field input[type="password"],
.wpforms-container .wpforms-field textarea,
.wpforms-container .wpforms-field select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpforms-container .wpforms-field input[type="text"]:focus,
.wpforms-container .wpforms-field input[type="email"]:focus,
.wpforms-container .wpforms-field input[type="tel"]:focus,
.wpforms-container .wpforms-field input[type="url"]:focus,
.wpforms-container .wpforms-field input[type="number"]:focus,
.wpforms-container .wpforms-field input[type="password"]:focus,
.wpforms-container .wpforms-field textarea:focus,
.wpforms-container .wpforms-field select:focus {
    outline: none;
    border-color: #74b3e3;
    box-shadow: 0 0 0 3px rgba(116, 179, 227, 0.2);
    background: #fff;
    transform: translateY(-1px);
}

.wpforms-container .wpforms-field textarea {
    min-height: 120px;
    resize: vertical;
}

/* Radio Buttons and Checkboxes */
.wpforms-container .wpforms-field-radio .wpforms-field-label,
.wpforms-container .wpforms-field-checkbox .wpforms-field-label {
    margin-bottom: 1rem;
}

.wpforms-container .wpforms-field-radio ul,
.wpforms-container .wpforms-field-checkbox ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpforms-container .wpforms-field-radio li,
.wpforms-container .wpforms-field-checkbox li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 2rem;
}

.wpforms-container .wpforms-field-radio input[type="radio"],
.wpforms-container .wpforms-field-checkbox input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.wpforms-container .wpforms-field-radio label,
.wpforms-container .wpforms-field-checkbox label {
    position: relative;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    display: block;
    padding: 0.5rem 0;
}

.wpforms-container .wpforms-field-radio label::before,
.wpforms-container .wpforms-field-checkbox label::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 18px;
    height: 18px;
    border: 2px solid #74b3e3;
    background: #fff;
    transition: all 0.3s ease;
}

.wpforms-container .wpforms-field-radio label::before {
    border-radius: 50%;
}

.wpforms-container .wpforms-field-checkbox label::before {
    border-radius: 4px;
}

.wpforms-container .wpforms-field-radio input[type="radio"]:checked + label::before,
.wpforms-container .wpforms-field-checkbox input[type="checkbox"]:checked + label::before {
    background: #74b3e3;
    border-color: #74b3e3;
}

.wpforms-container .wpforms-field-radio input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.wpforms-container .wpforms-field-checkbox input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    width: 18px;
}

/* Dropdown Fields */
.wpforms-container .wpforms-field-select .choices {
    margin-bottom: 0;
}

.wpforms-container .wpforms-field-select .choices__inner {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    min-height: auto;
    transition: all 0.3s ease;
}

.wpforms-container .wpforms-field-select .choices__inner:focus-within {
    border-color: #74b3e3;
    box-shadow: 0 0 0 3px rgba(116, 179, 227, 0.2);
    background: #fff;
}

.wpforms-container .wpforms-field-select .choices__list--single {
    padding: 0;
}

.wpforms-container .wpforms-field-select .choices__item--selectable {
    color: #2c3e50;
}

/* Submit Button */
.wpforms-container .wpforms-submit-container {
    text-align: center;
    margin-top: 2rem;
}

body.page div.wpforms-container-full .wpforms-form button,
body.page div.wpforms-container-full .wpforms-form input[type=submit],
body.page .wpforms-container .wpforms-submit {
    background: #74b3e3;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif;
    text-decoration: none;
    display: inline-block;
}

body.page div.wpforms-container-full .wpforms-form button:hover,
body.page .wpforms-container .wpforms-submit:hover {
    background: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(116, 179, 227, 0.3);
    text-decoration: none;
    color: #fff;
}

.wpforms-container .wpforms-submit:active {
    transform: translateY(0);
}

/* Error Messages */
.wpforms-container .wpforms-error-container {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.wpforms-container .wpforms-field-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.wpforms-container .wpforms-field input.wpforms-error,
.wpforms-container .wpforms-field textarea.wpforms-error,
.wpforms-container .wpforms-field select.wpforms-error {
    border-color: #e74c3c;
    background: #fff5f5;
}

.wpforms-container .wpforms-field input.wpforms-error:focus,
.wpforms-container .wpforms-field textarea.wpforms-error:focus,
.wpforms-container .wpforms-field select.wpforms-error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Success Message */
.wpforms-container .wpforms-confirmation-container {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

/* File Upload */
.wpforms-container .wpforms-field-file-upload {
    position: relative;
}

.wpforms-container .wpforms-field-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.wpforms-container .wpforms-field-file-upload .wpforms-file-upload-area {
    border: 2px dashed #74b3e3;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: rgba(116, 179, 227, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.wpforms-container .wpforms-field-file-upload .wpforms-file-upload-area:hover {
    background: rgba(116, 179, 227, 0.1);
    border-color: #0073aa;
}

.wpforms-container .wpforms-field-file-upload .wpforms-file-upload-text {
    color: #74b3e3;
    font-weight: 500;
    font-size: 1rem;
}

/* Date/Time Fields */
.wpforms-container .wpforms-field-date-time input[type="date"],
.wpforms-container .wpforms-field-date-time input[type="time"],
.wpforms-container .wpforms-field-date-time input[type="datetime-local"] {
    position: relative;
}

.wpforms-container .wpforms-field-date-time input[type="date"]::-webkit-calendar-picker-indicator,
.wpforms-container .wpforms-field-date-time input[type="time"]::-webkit-calendar-picker-indicator,
.wpforms-container .wpforms-field-date-time input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    background: #74b3e3;
    border-radius: 4px;
    cursor: pointer;
}

/* Rating Field */
.wpforms-container .wpforms-field-rating .wpforms-field-rating-items {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.wpforms-container .wpforms-field-rating .wpforms-field-rating-item {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.3s ease;
}

.wpforms-container .wpforms-field-rating .wpforms-field-rating-item:hover,
.wpforms-container .wpforms-field-rating .wpforms-field-rating-item.active {
    color: #ffc107;
}

/* Address Field */
.wpforms-container .wpforms-field-address .wpforms-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wpforms-container .wpforms-field-address .wpforms-field-row:last-child {
    margin-bottom: 0;
}

/* Name Field */
.wpforms-container .wpforms-field-name .wpforms-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wpforms-container .wpforms-field-name .wpforms-field-row:last-child {
    margin-bottom: 0;
}

/* Phone Field */
.wpforms-container .wpforms-field-phone input[type="tel"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #0073aa;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-content {
    margin-bottom: 1rem;
}

.post-content blockquote {
    background: #eee;
    border-radius: .5rem;
    margin-bottom: 1.5rem;
    padding: .725rem .725rem .0125rem;
}

.post-content blockquote h4 {
    margin-top: 0;
}

.post-content blockquote h4:before {
    content: "\f10d";
    display: inline-block;
    font-size: 1rem;
    font-family: 'Font Awesome 7 Free';
    margin-right: .5rem;
}

.post-content hr {
    background: transparent;
    border: 0;
    border-bottom: 2px solid #ccc;
    height: 1px;
    margin-bottom: 1rem;
}

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

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

.read-more {
    display: inline-block;
    background-color: #74b3e3;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more:hover {
    background-color: #74b3e3;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,115,170,0.3);
}

/* Sidebar */
.sidebar {
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
}

.widget {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 1.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #74b3e3, #0073aa, #74b3e3);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.widget:last-child {
    margin-bottom: 0;
}

.wp-block-search__label {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2;
    margin-bottom: 1rem;
}

.wp-block-search__label,
.widget-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-family: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #74b3e3, #0073aa) 1;
    padding-bottom: 0.75rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #74b3e3, #0073aa);
    border-radius: 2px;
}

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

.widget li {
    margin-bottom: 1rem;
    padding: .25rem 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.widget li::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #74b3e3, #0073aa);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.widget li:hover {
    background: rgba(116, 179, 227, 0.1);
    transform: translateX(5px);
    border-left-color: #74b3e3;
}

.widget li:hover::before {
    opacity: 1;
}

.widget li:last-child {
    margin-bottom: 0;
}

.widget a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
    position: relative;
}

.widget a:hover {
    color: #74b3e3;
    padding-left: 8px;
}

/* Recent Posts Widget */
.widget_recent_entries .post-date {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Categories Widget */
.widget_categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories .count {
    background: #74b3e3;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Search Widget */
.widget_search .search-form {
    position: relative;
}

.widget_search input[type="search"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.widget_search input[type="search"]:focus {
    outline: none;
    border-color: #74b3e3;
    box-shadow: 0 0 0 3px rgba(116, 179, 227, 0.2);
}

.widget_search .search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #74b3e3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget_search .search-submit:hover {
    background: #0073aa;
    transform: translateY(-50%) scale(1.05);
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud a {
    display: inline-block;
    background: rgba(116, 179, 227, 0.1);
    color: #74b3e3;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(116, 179, 227, 0.2);
}

.widget_tag_cloud .tagcloud a:hover {
    background: #74b3e3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 179, 227, 0.3);
}


.widget .site-social li {
    background: transparent;
    transform: none;
    border: 0;
}

.widget .site-social li:hover {
    background: transparent;
    border: 0;
    transform: none;
}

.widget .site-social li:before {
    display: none;
}

.widget .site-social li a,
.widget .site-social li a:hover {
    margin: 0;
    padding: 0;
}

.widget .site-social li i {
    color: #33495e;
    font-size: 1.5rem;
    border: 1px solid #33495e;
    border-radius: 5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    transition: all .25s ease;
    width: 2.5rem;
}

.widget .site-social li  a:hover i {
    background-color: #33495e;
    color: #fff;
}


/* Footer */
.site-footer {
    background: rgb(116 179 227 / 30%);
    color: #333;
    padding: 4rem 0 0;
}

body:not(.home) .site-footer {
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    text-align: left;
}

.footer-column h2.footer-logo {
    font-family: 'Cookie';
    font-size: 3.2rem;
}

.footer-title {
    color: #74b3e3;
    border-bottom: 2px solid #74b3e3;
    display: inline-block;
    font-family: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.footer-text p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: #74b3e3;
    padding-left: 5px;
}

.footer-contact p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact strong {
    color: #333;
    font-weight: 600;
}

.footer-bottom {
    background: #39495a;
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
}

.site-info p {
    color: #fff;
    font-size: 0.825rem;
    margin-bottom: 0;
}

.site-footer a {
    color: #74b3e3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #333;
}

.site-social li {
    display: inline-block;
    margin: 0 0 0 .5rem;
}

.site-social i {
    border: 1px solid #fff;
    border-radius: 5rem;
    color: #fff;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    transition: all .25s ease;
    width: 2rem;
}

.site-social a:hover i {
    background-color: #fff;
    color: #33495e;
}

/* Footer Widgets */
.footer-widget {
    margin-bottom: 0;
}

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

.footer-widget li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-widget a:hover {
    color: #74b3e3;
    padding-left: 5px;
}

.footer-widget p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-widget strong {
    color: #333;
    font-weight: 600;
}

/* Additional Styles */
.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;
}

.skip-link {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
    left: -9999px;
    padding: 8px 16px;
    position: absolute;
    text-decoration: none;
    top: -9999px;
    z-index: 999999;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Entry Meta Styles */
.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-meta a {
    color: #666;
    text-decoration: none;
}

.entry-meta a:hover {
    color: #0073aa;
}

/* Entry Footer Styles */
.entry-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.entry-footer span {
    margin-right: 1rem;
}

.entry-footer a {
    color: #666;
    text-decoration: none;
}

.entry-footer a:hover {
    color: #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {

    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar .site-header.scrolled {
        top: 0;
    }

    /* Hero Section Mobile */
    .section.hero {
        position: relative;
        height: 35vh;
        min-height: 400px;
    }

    .section.hero img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .section.hero .hero-text {
        position: absolute;
        bottom: 4%;
        left: 2%;
        text-align: left;
        font-size: 1.2rem;
        line-height: 1.4;
        padding: 0 2rem;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 8px;
        backdrop-filter: blur(5px);
        width: 60vw;
        font-size: .75rem;
        top: inherit;
    }

    /* About Section Mobile */
    .section.about {
        padding: 3rem 0;
    }

    .section.about .container {
        flex-direction: column;
        gap: 2rem;
    }

    .section.about .about-image {
        flex: none;
        order: 1;
    }

    .section.about .about-text {
        flex: none;
        order: 2;
        text-align: center;
    }

    .section.about .about-image img {
        border-radius: 1rem;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .section-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Books Section Mobile */
    .section.books {
        padding: 3rem 0;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .book-image {
        height: 200px;
    }

    .book-info {
        padding: 1rem;
    }

    .book-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    /* Articles Section Mobile */
    .section.articles {
        padding: 3rem 0;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .article-image {
        height: 150px;
    }

    .article-content {
        padding: 1rem;
    }

    .article-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    /* Gallery Section Mobile */
    .section.gallery {
        padding: 3rem 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .gallery-image {
        height: 200px;
    }

    .gallery-info {
        padding: 1rem;
    }

    .gallery-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    /* Button Mobile */
    .button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .button-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    /* Mobile Header Layout */
    .site-header {
        min-height: auto;
        padding: 1rem 0;
    }

    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        display: flex;
        order: 2;
        position: relative;
        z-index: 1001;
    }

    /* Site Title Mobile */
    .site-title {
        font-size: 2.5rem;
        order: 1;
    }

    /* Mobile Navigation */
    .main-navigation {
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        right: 0;
        background-color: rgba(43, 62, 80, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 999;
        padding: 1rem 0;
    }

    .main-navigation.toggled {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-menu li {
        margin-left: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .nav-menu a {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu a:hover {
        background-color: rgba(116, 179, 227, 0.2);
        color: #74b3e3;
        padding-left: 2.5rem;
    }

    /* Mobile Submenu */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 0;
        margin-top: 0.5rem;
        border-radius: 8px;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu .sub-menu.open {
        max-height: 300px;
    }

    .nav-menu .sub-menu a {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-transform: none;
    }

    .nav-menu .sub-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu .sub-menu a:hover {
        background-color: rgba(116, 179, 227, 0.3);
        color: #fff;
        padding-left: 2.5rem;
    }

    /* Mobile Arrow Indicator */
    .nav-menu .menu-item-has-children > a::after {
        content: '▶';
        font-size: 0.7rem;
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
        color: #74b3e3;
    }

    .nav-menu .menu-item-has-children > a.submenu-open::after {
        transform: rotate(90deg);
    }

    /* Mobile Content Adjustments */
    body:not(.home) .site-content {
        margin-top: 80px;
    }

    /* Mobile Detail and Archive Pages */
    .page-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .archive-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .posts-container {
        gap: 1.5rem;
    }

    article.format-quote .post-thumbnail {
        display: block;
        float: none;
        width: 100%;
    }

    .entry-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .entry-title a {
        color: #2c3e50;
        text-decoration: none;
    }

    .entry-title a:hover {
        color: #74b3e3;
    }

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

    .entry-content {
        font-size: 1.125rem;
        line-height: 1.5;
    }

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

    .entry-content img {
        max-width: 100%;
        height: auto;
        margin: 1rem 0;
    }

    .entry-content h1,
    .entry-content h2,
    .entry-content h3,
    .entry-content h4,
    .entry-content h5,
    .entry-content h6 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem 0;
        line-height: 1.3;
    }

    .entry-content h1 {
        font-size: 1.4rem;
    }

    .entry-content h2 {
        font-size: 1.3rem;
    }

    .entry-content ul,
    .entry-content ol {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .entry-content li {
        margin-bottom: 0.5rem;
    }

    .entry-content table {
        width: 100%;
        font-size: 0.85rem;
        margin: 1rem 0;
        border-collapse: collapse;
    }

    .entry-content th,
    .entry-content td {
        padding: 0.5rem;
        border: 1px solid #ddd;
    }

    .entry-content th {
        background-color: #f8f9fa;
        font-weight: 600;
    }

    .entry-footer {
        margin-top: 1rem;
        padding-top: 0.75rem;
        font-size: 0.85rem;
    }

    .entry-footer span {
        margin-right: 0.75rem;
    }

    .post-meta {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .post-content {
        margin-bottom: 0.75rem;
    }

    .read-more {
        display: inline-block;
        margin-top: 0.75rem;
        padding: 0.5rem 1rem;
        background-color: #74b3e3;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        font-size: 0.9rem;
        transition: background-color 0.3s ease;
    }

    .read-more:hover {
        background-color: #5a9fd4;
        color: white;
    }

    /* Mobile Pagination */
    .page-links {
        margin: 1rem 0;
        text-align: center;
    }

    .page-links a {
        display: inline-block;
        padding: 0.5rem 0.75rem;
        margin: 0 0.25rem;
        background-color: #f8f9fa;
        color: #2c3e50;
        text-decoration: none;
        border-radius: 4px;
        font-size: 0.9rem;
    }

    .page-links a:hover {
        background-color: #74b3e3;
        color: white;
    }

    .page-links .current {
        background-color: #74b3e3;
        color: white;
    }

    /* Mobile WP PageNavi */
    .wp-pagenavi {
        margin: 2rem 0;
        gap: 0.25rem;
    }

    .wp-pagenavi .pages {
        font-size: 0.8rem;
        margin-right: 0.5rem;
    }

    .wp-pagenavi .page-numbers {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        margin: 0 0.15rem;
        min-width: 36px;
    }

    .wp-pagenavi .page-numbers.prev,
    .wp-pagenavi .page-numbers.next {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Mobile WPForms */
    .wpforms-container .wpforms-form {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .wpforms-container .wpforms-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .wpforms-container .wpforms-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .wpforms-container .wpforms-field {
        margin-bottom: 1.25rem;
    }

    .wpforms-container .wpforms-field input[type="text"],
    .wpforms-container .wpforms-field input[type="email"],
    .wpforms-container .wpforms-field input[type="tel"],
    .wpforms-container .wpforms-field input[type="url"],
    .wpforms-container .wpforms-field input[type="number"],
    .wpforms-container .wpforms-field input[type="password"],
    .wpforms-container .wpforms-field textarea,
    .wpforms-container .wpforms-field select {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .wpforms-container .wpforms-field textarea {
        min-height: 100px;
    }

    .wpforms-container .wpforms-submit {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .wpforms-container .wpforms-field-address .wpforms-field-row,
    .wpforms-container .wpforms-field-name .wpforms-field-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Mobile Posts Pagination */
    .nav-links {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 2rem 0;
        padding: 1rem 0;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        background-color: #74b3e3;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        font-size: 0.9rem;
        transition: background-color 0.3s ease;
    }

    .nav-links a:hover {
        background-color: #5a9fd4;
        color: white;
    }

    .nav-links .current {
        background-color: #2c3e50;
        color: white;
        padding: 0.75rem 1rem;
        border-radius: 4px;
    }

    /* Mobile Sidebar */
    .content-area {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        order: 2;
        margin-top: 2rem;
    }

    .content-wrapper {
        order: 1;
    }

    /* Mobile Search Form */
    .search-form {
        margin: 1rem 0;
    }

    .search-form input[type="search"] {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .search-form input[type="submit"] {
        margin-top: 0.5rem;
        padding: 0.75rem 1.5rem;
        background-color: #74b3e3;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 0.9rem;
        cursor: pointer;
    }

    .search-form input[type="submit"]:hover {
        background-color: #5a9fd4;
    }

    /* Mobile Footer */
    .site-footer {
        padding: 2rem 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column h2.footer-logo {
        font-size: 2.5rem;
    }

    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .footer-text p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .footer-menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-menu li {
        margin-bottom: 0;
    }

    .footer-menu a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        background-color: rgba(116, 179, 227, 0.1);
        border-radius: 20px;
        transition: all 0.3s ease;
    }

    .footer-menu a:hover {
        background-color: #74b3e3;
        color: white;
        padding-left: 1rem;
    }

    .footer-contact p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .site-info p {
        font-size: 0.85rem;
    }

    .footer-bottom .container {
        display: block;
    }

    .footer-bottom .site-social {
        display: none;
    }

    /* Mobile Footer Widgets */
    .footer-widget {
        margin-bottom: 1.5rem;
    }

    .footer-widget ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .footer-widget li {
        margin-bottom: 0;
    }

    .footer-widget a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        background-color: rgba(116, 179, 227, 0.1);
        border-radius: 15px;
        transition: all 0.3s ease;
    }

    .footer-widget a:hover {
        background-color: #74b3e3;
        color: white;
        padding-left: 0.8rem;
    }

    .footer-widget p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    /* Mobile Widget Search in Footer */
    .footer-widget .widget_search input[type="search"] {
        padding: 0.75rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .footer-widget .widget_search .search-submit {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Mobile Widget Tag Cloud in Footer */
    .footer-widget .widget_tag_cloud .tagcloud a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .site-title {
        font-size: 2.5rem;
    }

    .menu-toggle-text {
        font-size: 0;
    }

    .nav-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .nav-menu .sub-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .container {
        padding: 0 15px;
    }

    body:not(.home) .content-area {
        display: block;
    }

    /* Hero Section Extra Small */
    .section.hero {
        height: 50vh;
        min-height: 300px;
    }

    .section.hero .hero-text {
        font-size: .85rem;
        padding: 1rem;
        line-height: 1.2;
    }

    /* About Section Extra Small */
    .section.about {
        padding: 2rem 0;
    }

    .section.about .about-image img {
        max-width: 95%;
    }

    /* Section Titles Extra Small */
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-content {
        font-size: 0.9rem;
    }

    /* Books Section Extra Small */
    .section.books {
        padding: 2rem 0;
    }

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

    .book-image {
        height: 250px;
    }

    .book-title {
        font-size: 0.85rem;
    }

    /* Articles Section Extra Small */
    .section.articles {
        padding: 2rem 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .article-image {
        height: 180px;
    }

    .article-title {
        font-size: 0.85rem;
    }

    /* Gallery Section Extra Small */
    .section.gallery {
        padding: 2rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-image {
        height: 220px;
    }

    .gallery-title {
        font-size: 0.85rem;
    }

    /* Button Extra Small */
    .button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .button-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Extra Small Mobile Detail and Archive Pages */
    .page-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .archive-description {
        font-size: 0.9rem;
    }

    .post {
        padding: 2rem 1rem;
    }

    .posts-container {
        gap: 1rem;
    }

    .entry-title {
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .entry-content {
        line-height: 1.5;
    }

    .entry-content h1,
    .entry-content h2,
    .entry-content h3,
    .entry-content h4,
    .entry-content h5,
    .entry-content h6 {
        font-size: 1.1rem;
        margin: 1.25rem 0 0.5rem 0;
    }

    .entry-content h1 {
        font-size: 1.25rem;
    }

    .entry-content h2 {
        font-size: 1.2rem;
    }

    .entry-content ul,
    .entry-content ol {
        padding-left: 1.25rem;
    }

    .entry-content blockquote {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    .entry-content table {
        font-size: 0.8rem;
    }

    .entry-content th,
    .entry-content td {
        padding: 0.4rem;
    }

    .entry-footer {
        font-size: 0.8rem;
    }

    .post-meta {
        font-size: 0.8rem;
    }

    .read-more {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .page-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .nav-links a {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .nav-links .current {
        padding: 0.6rem 0.8rem;
    }

    /* Extra Small Mobile WP PageNavi */
    .wp-pagenavi {
        margin: 1.5rem 0;
        gap: 0.2rem;
    }

    .wp-pagenavi .pages {
        font-size: 0.75rem;
        margin-right: 0.25rem;
    }

    .wp-pagenavi .page-numbers {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        margin: 0 0.1rem;
        min-width: 32px;
    }

    .wp-pagenavi .page-numbers.prev,
    .wp-pagenavi .page-numbers.next {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Extra Small Mobile WPForms */
    .wpforms-container .wpforms-form {
        padding: 1rem;
        margin: 1rem 0;
    }

    .wpforms-container .wpforms-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .wpforms-container .wpforms-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .wpforms-container .wpforms-field {
        margin-bottom: 1rem;
    }

    .wpforms-container .wpforms-field input[type="text"],
    .wpforms-container .wpforms-field input[type="email"],
    .wpforms-container .wpforms-field input[type="tel"],
    .wpforms-container .wpforms-field input[type="url"],
    .wpforms-container .wpforms-field input[type="number"],
    .wpforms-container .wpforms-field input[type="password"],
    .wpforms-container .wpforms-field textarea,
    .wpforms-container .wpforms-field select {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .wpforms-container .wpforms-field textarea {
        min-height: 80px;
    }

    .wpforms-container .wpforms-submit {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .wpforms-container .wpforms-field-address .wpforms-field-row,
    .wpforms-container .wpforms-field-name .wpforms-field-row {
        gap: 0.5rem;
    }

    .search-form input[type="search"] {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .search-form input[type="submit"] {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Extra Small Mobile Footer */
    .footer-content {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-column h2.footer-logo {
        font-size: 2rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-text p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .footer-menu ul {
        gap: 0.5rem;
    }

    .footer-menu a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .footer-contact p {
        font-size: 0.85rem;
    }

    .site-info p {
        font-size: 0.8rem;
    }

    /* Extra Small Mobile Footer Widgets */
    .footer-widget {
        margin-bottom: 1rem;
    }

    .footer-widget ul {
        gap: 0.3rem;
    }

    .footer-widget a {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .footer-widget p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .footer-widget .widget_search input[type="search"] {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .footer-widget .widget_search .search-submit {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .footer-widget .widget_tag_cloud .tagcloud a {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        margin: 0.15rem;
    }
}
