/*
Theme Name: QURAN School
Theme URI: https://example.com/quran-school
Author: Your Name
Author URI: https://example.com
Description: قالب ووردبريس احترافي لمدارس القرآن الكريم — تصميم عصري مع قائمة منسدلة وتأثير الموجة المائية. متوافق مع Elementor و Gutenberg وجميع الإضافات والودجات.
Version: 1.0.6
Requires at least: 5.0
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: quran-school
Tags: custom-menu, custom-logo, featured-images, translation-ready, right-sidebar, full-width-template, blog, elementor
*/

/* ==================== RESET ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }
:root {
    --primary: #0088CC;
    --primary-light: #33A6DE;
    --primary-dark: #006699;
    --deep-blue: #005C8A;
    --text-dark: #242424;
    --text-muted: #64748B;

    --ease-fluid: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-elegant: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --dur-parent: 0.6s;
    --dur-item: 0.6s;
    --dur-submenu: 0.55s;

    --slide-l0: -100px;
    --slide-l1: -90px;
    --slide-l2: -105px;
    --slide-l3: -120px;
}
html[dir="rtl"] {
    --slide-l0: 100px;
    --slide-l1: 90px;
    --slide-l2: 105px;
    --slide-l3: 120px;
}

html, body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
}
body { padding-top: 0 !important; }

a { text-decoration: none; transition: all 0.35s var(--ease-fluid); color: var(--primary); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* WordPress Core */
.alignleft { float: left; margin: 5px 20px 20px 0; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.aligncenter { display: block; margin: 5px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--text-muted); text-align: center; margin-top: 8px; }

.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 {
    position: absolute; top: -100px; left: 10px;
    background: var(--primary); color: #fff; padding: 10px 20px;
    z-index: 9999; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; color: #fff; }

/* ==================== HEADER STACK ==================== */
.header-stack {
    position: relative;
    z-index: 1000;
    background: #ffffff;
    width: 100%;
}
.header-wrap { position: relative; background: #ffffff; }
.top-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px 4px; position: relative; max-width: 1300px; margin: 0 auto;
}

/* Search Icon */
.search-toggle {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; color: var(--primary); font-size: 18px;
    cursor: pointer; border-radius: 50%; transition: all 0.5s var(--ease-elegant);
    background: rgba(0, 136, 204, 0.06); border: none;
}
.search-toggle::before {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 1.5px solid transparent; border-top-color: var(--primary);
    border-right-color: var(--primary); opacity: 0;
    transform: scale(0.7) rotate(0deg); transition: all 0.8s var(--ease-elegant);
    pointer-events: none;
}
.search-toggle:hover {
    color: #ffffff; background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,136,204,0.35), 0 0 0 6px rgba(0,136,204,0.08);
}
.search-toggle:hover::before { opacity: 1; transform: scale(1.15) rotate(180deg); }
.search-toggle i { transition: transform 0.7s var(--ease-elegant); position: relative; z-index: 2; }
.search-toggle:hover i { transform: rotate(-18deg) scale(1.08); }

/* Hamburger */
.menu-toggle {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 48px; height: 46px; border-radius: 8px; background: #ffffff;
    cursor: pointer; border: 1.5px solid var(--primary);
    transition: all 0.45s var(--ease-elegant); z-index: 1002;
    box-shadow: 0 4px 12px rgba(0,136,204,0.08), inset 0 0 0 2px rgba(255,255,255,1), inset 0 0 0 3px rgba(0,136,204,0.15);
    overflow: hidden;
}
.menu-toggle .bars {
    position: relative; width: 20px; height: 15px;
    display: flex; flex-direction: column; justify-content: space-between; z-index: 2;
}
.menu-toggle .bars span {
    display: block; height: 2px; width: 100%; background: var(--primary);
    border-radius: 2px; transition: all 0.55s var(--ease-elegant); transform-origin: center;
}
.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,136,204,0.25), inset 0 0 0 2px rgba(255,255,255,1), inset 0 0 0 3px rgba(0,136,204,0.3);
}
.menu-toggle:hover .bars span { background: var(--primary-dark); }
.menu-toggle.active {
    background: #ffffff; border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(0,136,204,0.3), inset 0 0 0 2px rgba(255,255,255,1), inset 0 0 0 3px rgba(0,136,204,0.3);
}
.menu-toggle.active .bars span { background: var(--primary); }
.menu-toggle.active .bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active .bars span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.menu-toggle.active .bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Wave Bar */
#wave-container { position: relative; height: 50px; width: 100%; background: #ffffff; overflow: hidden; margin-top: -2px; }
#startkitdrops { position: absolute; top: 0; left: 0; width: 100%; height: 50px; }

/* ============================================================
   DROPDOWN MENU — التنسيق الحاسم (ملتصقة تحت الموجة)
   ============================================================ */
.mobile-menu {
    position: relative;
    width: 100%;
    display: block;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 999;

    /* ❌ نحن لا نستخدم absolute أو fixed */
    top: auto; left: auto; right: auto; bottom: auto;

    /* ✅ الستارة: تنزل من 0 إلى الارتفاع الكامل */
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-parent) var(--ease-fluid),
                box-shadow var(--dur-parent) var(--ease-fluid),
                transform var(--dur-parent) var(--ease-fluid);

    transform-origin: top center;
    transform: perspective(1500px) rotateX(-12deg);
    box-shadow: 0 0 0 rgba(0,0,0,0);
    will-change: max-height;
    margin: 0;
    padding: 0;
    float: none;
}
.mobile-menu.active {
    max-height: 100vh;
    overflow-y: auto;
    transform: perspective(1500px) rotateX(0deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.mobile-menu::-webkit-scrollbar { width: 5px; }
.mobile-menu::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.mobile-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.35); border-radius: 3px; }

/* ============================================================
   القوائم — العناصر الرئيسية
   ============================================================ */
.mobile-menu > ul {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}
.mobile-menu > ul > li {
    position: relative;
    display: block;
    width: 100%;
    opacity: 0;
    transform: translateX(var(--slide-l0)) scale(0.9);
    filter: blur(8px);
    transition: opacity var(--dur-item) var(--ease-fluid),
                transform var(--dur-item) var(--ease-fluid),
                filter var(--dur-item) var(--ease-fluid);
}
.mobile-menu > ul > li::after {
    content: ""; position: absolute; bottom: 0;
    inset-inline-start: 15px; inset-inline-end: 15px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 20%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.25) 80%, transparent 100%);
    pointer-events: none; z-index: 3;
}
.mobile-menu > ul > li:last-child::after { display: none; }
.mobile-menu.active > ul > li { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
.mobile-menu.active > ul > li:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.active > ul > li:nth-child(2) { transition-delay: 0.21s; }
.mobile-menu.active > ul > li:nth-child(3) { transition-delay: 0.27s; }
.mobile-menu.active > ul > li:nth-child(4) { transition-delay: 0.33s; }
.mobile-menu.active > ul > li:nth-child(5) { transition-delay: 0.39s; }
.mobile-menu.active > ul > li:nth-child(6) { transition-delay: 0.45s; }
.mobile-menu.active > ul > li:nth-child(7) { transition-delay: 0.51s; }
.mobile-menu.active > ul > li:nth-child(8) { transition-delay: 0.57s; }

.menu-row {
    display: flex; justify-content: space-between; align-items: stretch;
    min-height: 62px; position: relative; overflow: hidden;
    width: 100%;
}
.menu-row > a {
    position: relative; flex: 1; color: #ffffff;
    padding: 18px 22px 18px 38px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 2px;
    display: flex; align-items: center;
    transition: all 0.5s var(--ease-elegant);
    overflow: hidden;
}
.menu-row > a::before {
    content: ""; position: absolute; inset-inline-start: 22px; top: 50%;
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.55);
    transform: translateY(-50%) scale(0.7);
    transition: all 0.5s var(--ease-elegant);
}
.menu-row > a::after {
    content: ""; position: absolute; bottom: 0;
    inset-inline-start: 38px; width: 0; height: 2px;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.3) 100%);
    transition: width 0.6s var(--ease-elegant);
}
.menu-row > a:hover {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    padding-inline-start: 46px; letter-spacing: 2.4px; color: #ffffff;
}
.menu-row > a:hover::before { transform: translateY(-50%) scale(1); background: #ffffff; box-shadow: 0 0 12px rgba(255,255,255,0.9); }
.menu-row > a:hover::after { width: calc(100% - 38px); }

.menu-expand {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 64px; min-height: 62px;
    background: rgba(255,255,255,0.06);
    color: #ffffff; cursor: pointer; font-size: 12px; font-weight: 700;
    transition: all 0.55s var(--ease-elegant); flex-shrink: 0;
    border-inline-start: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}
.menu-expand::before {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.7s var(--ease-elegant), height 0.7s var(--ease-elegant);
}
.menu-expand:hover::before { width: 130px; height: 130px; }
.menu-expand:hover { background: rgba(255,255,255,0.12); }
.menu-expand i { transition: transform 0.7s var(--ease-elegant); display: block; position: relative; z-index: 2; }
li.open > .menu-row .menu-expand,
li.menu-item-has-children.open > .menu-row .menu-expand {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #003F5F 100%);
    border-inline-start-color: transparent;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.1);
}
li.open > .menu-row .menu-expand i { transform: rotate(180deg) scale(1.15); }
li.open > .menu-row > a,
li.menu-item-has-children.open > .menu-row > a {
    font-weight: 600;
    background: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, transparent 100%);
    padding-inline-start: 46px;
}
li.open > .menu-row > a::before { background: #ffffff; transform: translateY(-50%) scale(1); box-shadow: 0 0 12px rgba(255,255,255,0.9); }
li.open > .menu-row > a::after { width: calc(100% - 38px); background: linear-gradient(90deg, #ffffff 0%, var(--primary-light) 100%); }

/* Sub-menu */
.sub-menu {
    max-height: 0; overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.08) 100%);
    transition: max-height var(--dur-submenu) var(--ease-fluid);
    position: relative;
    width: 100%;
    display: block;
}
.sub-menu::before {
    content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 3px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.5) 15%, rgba(255,255,255,0.35) 85%, transparent 100%);
    z-index: 2; pointer-events: none;
}
li.open > .sub-menu,
li.menu-item-has-children.open > .sub-menu { max-height: 1200px; }

.sub-menu > li {
    position: relative; opacity: 0;
    transform: translateX(var(--slide-l1)) scale(0.88);
    filter: blur(6px);
    display: block;
    width: 100%;
    transition: opacity var(--dur-item) var(--ease-fluid), transform var(--dur-item) var(--ease-fluid), filter var(--dur-item) var(--ease-fluid);
}
.sub-menu > li::after {
    content: ""; position: absolute; bottom: 0;
    inset-inline-start: 52px; inset-inline-end: 20px; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 25%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.18) 75%, transparent 100%);
    pointer-events: none;
}
.sub-menu > li:last-child::after { display: none; }
li.open > .sub-menu > li,
li.menu-item-has-children.open > .sub-menu > li { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
li.open > .sub-menu > li:nth-child(1) { transition-delay: 0.10s; }
li.open > .sub-menu > li:nth-child(2) { transition-delay: 0.17s; }
li.open > .sub-menu > li:nth-child(3) { transition-delay: 0.24s; }
li.open > .sub-menu > li:nth-child(4) { transition-delay: 0.31s; }
li.open > .sub-menu > li:nth-child(5) { transition-delay: 0.38s; }

.sub-menu > li > a,
.sub-menu > li > .menu-row > a {
    position: relative; display: flex; align-items: center;
    color: rgba(255,255,255,0.85);
    padding: 15px 22px 15px 56px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px; font-weight: 400; letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: all 0.45s var(--ease-elegant);
    line-height: 1.35; flex: 1; overflow: hidden;
}
.sub-menu > li > a::before,
.sub-menu > li > .menu-row > a::before {
    content: ""; position: absolute; inset-inline-start: 30px; top: 50%;
    transform: translateY(-50%); width: 12px; height: 1px;
    background: rgba(255,255,255,0.5);
}
.sub-menu > li > a::after,
.sub-menu > li > .menu-row > a::after {
    content: ""; position: absolute; inset-inline-start: 24px; top: 50%;
    transform: translateY(-50%) scale(0); width: 6px; height: 6px; border-radius: 50%;
    background: #ffffff; box-shadow: 0 0 10px rgba(255,255,255,0.9);
    transition: transform 0.55s var(--ease-elegant);
}
.sub-menu > li > a:hover,
.sub-menu > li > .menu-row > a:hover {
    background: linear-gradient(90deg, rgba(255,255,255,0.12) 0%, transparent 100%);
    color: #ffffff; padding-inline-start: 64px; letter-spacing: 1.6px;
}
.sub-menu > li > a:hover::before { width: 16px; background: #ffffff; }
.sub-menu > li > a:hover::after { transform: translateY(-50%) scale(1); }

.sub-menu .sub-menu {
    max-height: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 100%);
    transition: max-height var(--dur-submenu) var(--ease-fluid);
}
li.open > .sub-menu li.open > .sub-menu,
li.menu-item-has-children.open > .sub-menu li.menu-item-has-children.open > .sub-menu { max-height: 800px; }
.sub-menu .sub-menu::before {
    background: linear-gradient(180deg, transparent 0%, rgba(51,166,222,0.6) 15%, rgba(51,166,222,0.4) 85%, transparent 100%);
    width: 3px;
}
.sub-menu .sub-menu > li {
    opacity: 0; transform: translateX(var(--slide-l2)) scale(0.86); filter: blur(5px);
    transition: opacity var(--dur-item) var(--ease-fluid), transform var(--dur-item) var(--ease-fluid), filter var(--dur-item) var(--ease-fluid);
}
li.open > .sub-menu > li.open > .sub-menu > li,
li.menu-item-has-children.open > .sub-menu li.menu-item-has-children.open > .sub-menu > li {
    opacity: 1; transform: translateX(0) scale(1); filter: blur(0);
}
.sub-menu .sub-menu > li > a {
    padding: 14px 22px 14px 88px;
    font-size: 11.5px; letter-spacing: 1.2px;
    text-transform: capitalize; color: rgba(255,255,255,0.75);
}
.sub-menu .sub-menu > li > a::before { inset-inline-start: 62px; background: rgba(51,166,222,0.7); }
.sub-menu .sub-menu > li > a::after { inset-inline-start: 56px; width: 5px; height: 5px; background: var(--primary-light); box-shadow: 0 0 10px rgba(51,166,222,0.9); }
.sub-menu .sub-menu > li > a:hover { padding-inline-start: 96px; color: #ffffff; background: linear-gradient(90deg, rgba(51,166,222,0.15) 0%, transparent 100%); }

.sub-menu .menu-expand {
    width: 54px; min-height: 48px; background: transparent;
    border-inline-start: 1px solid rgba(255,255,255,0.12);
    font-size: 10px; color: rgba(255,255,255,0.75);
}
.sub-menu .menu-expand:hover { background: rgba(255,255,255,0.08); color: #ffffff; }
.sub-menu li.open > .menu-row .menu-expand { background: var(--deep-blue); color: #ffffff; border-inline-start-color: transparent; }
.sub-menu .menu-row { min-height: auto; }

/* ============================================================
   FORCE OVERRIDES — ضمان أن القائمة ملتصقة تحت الموجة دائماً
   ============================================================ */
.header-stack .mobile-menu {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    visibility: visible !important;
}
.header-stack .mobile-menu > ul {
    display: block !important;
    width: 100% !important;
}
.header-stack .mobile-menu > ul > li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}
.header-stack .mobile-menu .sub-menu {
    display: block !important;
    width: 100% !important;
}
.header-stack .mobile-menu .sub-menu > li {
    display: block !important;
    width: 100% !important;
}
.header-stack .mobile-menu .menu-row {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: stretch !important;
}
.header-stack .mobile-menu .menu-row > a {
    display: flex !important;
    flex: 1 !important;
    align-items: center !important;
}
.header-stack .mobile-menu ul li::before,
.header-stack .mobile-menu ul li::marker {
    display: none !important;
    content: none !important;
}
.header-stack .mobile-menu,
.header-stack .mobile-menu * {
    box-sizing: border-box !important;
}
.header-stack .mobile-menu .menu-item > a {
    color: #ffffff !important;
}

/* ==================== SEARCH OVERLAY ==================== */
.search-overlay {
    position: fixed; inset: 0;
    background: rgba(0,40,60,0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 99999; display: none; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; transition: opacity 0.4s ease;
}
.search-overlay.active { display: flex; opacity: 1; }
.search-overlay .search-inner {
    position: relative; width: 100%; max-width: 600px;
    transform: translateY(-30px); opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.search-overlay.active .search-inner { transform: translateY(0); opacity: 1; }
.search-overlay .search-form {
    display: flex; background: #ffffff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.search-overlay .search-field {
    flex: 1; border: none; padding: 18px 22px; font-size: 16px;
    background: transparent; color: var(--text-dark); outline: none;
}
.search-overlay .search-submit {
    background: var(--primary); color: #fff; padding: 0 26px;
    border: none; font-size: 18px; cursor: pointer; transition: background 0.3s;
}
.search-overlay .search-submit:hover { background: var(--primary-dark); }
.search-overlay .search-close {
    position: absolute; top: -50px; inset-inline-end: 0;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.15); color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s;
}
.search-overlay .search-close:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }

/* ==================== CONTENT ==================== */
.site-content { padding: 60px 20px 80px; background: #ffffff; min-height: 60vh; }
.container { width: 100%; max-width: 1300px; margin: 0 auto; }
.site-main-wrap { width: 100%; }
.layout-with-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 50px; }
@media (max-width: 991px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 40px; }
}
.layout-full { display: block; }

article.post, article.page { margin-bottom: 50px; }
article.post:last-child { margin-bottom: 0; }

.post-thumbnail { margin-bottom: 25px; overflow: hidden; border-radius: 12px; }
.post-thumbnail img { width: 100%; transition: transform 0.6s var(--ease-elegant); }
.post-thumbnail:hover img { transform: scale(1.05); }

.entry-header { margin-bottom: 20px; }
.entry-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px; font-weight: 600; line-height: 1.25;
    color: var(--text-dark); margin-bottom: 12px;
}
.entry-title a { color: var(--text-dark); }
.entry-title a:hover { color: var(--primary); }
.entry-meta {
    display: flex; flex-wrap: wrap; gap: 18px;
    color: var(--text-muted); font-size: 13px; margin-bottom: 20px;
}
.entry-meta span { display: inline-flex; align-items: center; gap: 6px; }
.entry-meta i { color: var(--primary); }
.entry-meta a { color: var(--text-muted); }
.entry-meta a:hover { color: var(--primary); }

.entry-content { font-size: 16px; line-height: 1.8; color: #333; }
.entry-content p { margin-bottom: 20px; }
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
    font-family: 'Poppins', sans-serif;
    margin: 30px 0 15px; color: var(--text-dark); font-weight: 600;
}
.entry-content h1 { font-size: 30px; }
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 19px; }
.entry-content h5 { font-size: 17px; }
.entry-content h6 { font-size: 15px; }
.entry-content ul, .entry-content ol { margin: 15px 0 25px 25px; padding-left: 0; }
.entry-content ul li, .entry-content ol li { margin-bottom: 8px; line-height: 1.7; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content img { border-radius: 12px; margin: 15px 0; }
.entry-content blockquote {
    background: rgba(0,136,204,0.06);
    border-inline-start: 4px solid var(--primary);
    padding: 20px 25px; margin: 25px 0;
    border-radius: 0 12px 12px 0; font-style: italic; color: #333;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.entry-content table th, .entry-content table td {
    padding: 12px 15px; text-align: start; border: 1px solid #e5e5e5;
}
.entry-content table th { background: var(--primary); color: #fff; font-weight: 600; }
.entry-content table tr:nth-child(even) { background: #fafafa; }
.entry-content code { background: #f5f5f5; color: #c7254e; padding: 2px 8px; border-radius: 4px; font-size: 0.9em; }
.entry-content pre { background: #1e1e1e; color: #f8f8f2; padding: 20px; border-radius: 8px; overflow-x: auto; margin: 20px 0; }
.entry-content pre code { background: transparent; color: inherit; padding: 0; }

.read-more {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 20px; color: var(--primary); font-weight: 500;
    transition: gap 0.3s;
}
.read-more:hover { gap: 14px; }

/* Pagination */
.pagination, .navigation.posts-navigation, .navigation.post-navigation {
    margin: 50px 0 20px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.navigation .nav-links a, .pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 14px; border-radius: 8px;
    background: #ffffff; color: var(--primary); font-weight: 500;
    transition: all 0.3s; box-shadow: 0 2px 8px rgba(0,136,204,0.12);
}
.pagination .page-numbers.current, .navigation .nav-links a:hover {
    background: var(--primary); color: #fff; transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,136,204,0.3);
}

/* Sidebar / Widgets */
.widget-area { display: flex; flex-direction: column; gap: 30px; }
.widget {
    background: #ffffff; padding: 28px; border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,136,204,0.08); border: none;
}
.widget-title {
    font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 600;
    color: var(--text-dark); margin-bottom: 20px; padding-bottom: 14px; position: relative;
}
.widget-title::after {
    content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
    width: 45px; height: 3px; background: var(--primary); border-radius: 2px;
}
.widget ul li { padding: 10px 0; border-bottom: 1px solid #f0f4f8; list-style: none; }
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a {
    color: #444; display: inline-flex; align-items: center; gap: 8px;
    font-size: 14.5px; transition: all 0.3s;
}
.widget ul li a::before { content: "›"; color: var(--primary); font-weight: 700; font-size: 16px; transition: transform 0.3s; }
.widget ul li a:hover { color: var(--primary); padding-inline-start: 6px; }
.widget ul li a:hover::before { transform: translateX(3px); }

.widget input[type="text"], .widget input[type="email"], .widget input[type="url"],
.widget input[type="search"], .widget input[type="password"], .widget select, .widget textarea {
    width: 100%; padding: 12px 16px; border: 1.5px solid #e5e9ef;
    border-radius: 8px; font-size: 14px; transition: all 0.3s;
    background: #fafbfc; margin-bottom: 12px;
}
.widget input:focus, .widget select:focus, .widget textarea:focus {
    outline: none; border-color: var(--primary); background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0,136,204,0.1);
}
.widget button, .widget input[type="submit"] {
    background: var(--primary); color: #fff; padding: 12px 24px;
    border-radius: 8px; border: none; font-weight: 500; cursor: pointer;
    transition: all 0.3s;
}
.widget button:hover, .widget input[type="submit"]:hover {
    background: var(--primary-dark); transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,136,204,0.3);
}

.tagcloud a {
    display: inline-block; padding: 6px 14px;
    background: rgba(0,136,204,0.08); color: var(--primary);
    border-radius: 20px; font-size: 13px !important;
    margin: 0 6px 8px 0; transition: all 0.3s;
}
.tagcloud a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.widget_calendar table { width: 100%; }
.widget_calendar caption { font-weight: 600; margin-bottom: 10px; color: var(--text-dark); }
.widget_calendar th, .widget_calendar td { text-align: center; padding: 6px; font-size: 13px; }
.widget_calendar th { background: var(--primary); color: #fff; }

.widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.widget .wp-block-search__button { background: var(--primary); color: #fff; border: none; padding: 12px 20px; border-radius: 8px; cursor: pointer; }
.widget .wp-block-button__link { background: var(--primary); color: #fff; border-radius: 8px; padding: 12px 24px; display: inline-block; }

/* Comments */
.comments-area { margin-top: 60px; padding-top: 40px; border-top: 1px solid #f0f4f8; }
.comments-title, .comment-reply-title {
    font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 600;
    margin-bottom: 30px; color: var(--text-dark);
}
.comment-list { margin-bottom: 40px; list-style: none; padding: 0; }
.comment-list .comment { padding: 22px 0; border-bottom: 1px solid #f0f4f8; list-style: none; }
.comment-list .comment:last-child { border-bottom: none; }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author img { border-radius: 50%; width: 44px; height: 44px; }
.comment-author .fn { font-weight: 600; font-size: 15px; font-style: normal; color: var(--text-dark); }
.comment-metadata { margin-bottom: 10px; }
.comment-metadata a { font-size: 13px; color: var(--text-muted); }
.comment-content { font-size: 15px; line-height: 1.7; color: #444; }
.reply { margin-top: 10px; }
.comment-reply-link {
    display: inline-block; padding: 6px 16px;
    background: rgba(0,136,204,0.08); color: var(--primary);
    border-radius: 20px; font-size: 13px; font-weight: 500; transition: all 0.3s;
}
.comment-reply-link:hover { background: var(--primary); color: #fff; }
.comment-form textarea, .comment-form input[type="text"],
.comment-form input[type="email"], .comment-form input[type="url"] {
    width: 100%; padding: 14px 18px; border: 1.5px solid #e5e9ef;
    border-radius: 8px; font-size: 15px; transition: all 0.3s; margin-bottom: 15px;
}
.comment-form textarea:focus, .comment-form input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,136,204,0.1);
}
.comment-form label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; font-weight: 500; }
.comment-form .submit {
    background: var(--primary); color: #fff; padding: 14px 40px;
    border-radius: 8px; border: none; font-weight: 600; font-size: 15px;
    cursor: pointer; transition: all 0.3s;
}
.comment-form .submit:hover {
    background: var(--primary-dark); transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,136,204,0.3);
}

/* 404 */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 .error-code {
    font-family: 'Poppins', sans-serif; font-size: 120px; font-weight: 700;
    color: var(--primary); line-height: 1; margin-bottom: 10px;
}
.error-404 h2 { font-size: 26px; margin-bottom: 15px; }
.error-404 p { color: var(--text-muted); margin-bottom: 30px; font-size: 16px; }
.error-404 .home-btn {
    display: inline-block; padding: 14px 40px; background: var(--primary);
    color: #fff; border-radius: 8px; font-weight: 600; transition: all 0.3s;
}
.error-404 .home-btn:hover {
    background: var(--primary-dark); transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,136,204,0.3);
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #f8fbfd 0%, #eff7fc 100%);
    padding: 70px 20px 50px; border: none;
}
.footer-widgets {
    max-width: 1300px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
}
.footer-widgets .widget { background: transparent; padding: 0; box-shadow: none; }
.footer-widgets .widget-title { color: var(--text-dark); font-size: 17px; }
.footer-widgets .widget ul li a { color: #4a5568; }
.footer-widgets .widget ul li a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(0,136,204,0.1);
    padding: 25px 20px; text-align: center;
    font-size: 14px; color: var(--text-muted);
    max-width: 1300px; margin: 40px auto 0;
}
.footer-bottom a { color: var(--primary); font-weight: 500; }

/* Scroll Up */
.scrollup {
    position: fixed; bottom: 32px; inset-inline-end: 32px;
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff; border: none; border-radius: 50%;
    font-size: 15px; cursor: pointer; z-index: 888;
    transition: all 0.5s var(--ease-elegant);
    box-shadow: 0 8px 24px rgba(0,136,204,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    opacity: 0; visibility: hidden;
    transform: translateY(20px) scale(0.8);
    padding: 0;
}
.scrollup::before {
    content: ""; position: absolute; inset: -5px; border-radius: 50%;
    border: 1.5px solid rgba(0,136,204,0.4);
    transition: all 0.5s var(--ease-elegant); pointer-events: none;
}
.scrollup.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.scrollup svg.progress-ring {
    position: absolute; top: -5px; left: -5px;
    width: calc(100% + 10px); height: calc(100% + 10px);
    transform: rotate(-90deg); pointer-events: none; z-index: 2;
}
.scrollup svg.progress-ring circle { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.scrollup svg.progress-ring .ring-bg { stroke: rgba(0,136,204,0.15); }
.scrollup svg.progress-ring .ring-progress {
    stroke: var(--primary);
    stroke-dasharray: 188.5;
    stroke-dashoffset: 188.5;
    transition: stroke-dashoffset 0.1s linear;
}
.scrollup:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 36px rgba(0,136,204,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    color: #ffffff;
}
.scrollup:hover::before { inset: -8px; border-color: var(--primary); box-shadow: 0 0 20px rgba(0,136,204,0.4); }
.scrollup i { transition: transform 0.5s var(--ease-elegant); position: relative; z-index: 3; }
.scrollup:hover i { transform: translateY(-3px); }

@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* Responsive */
@media (max-width: 768px) {
    .site-content { padding: 40px 16px 60px; }
    .entry-title { font-size: 26px; }
    .footer-widgets { gap: 35px; }
    .scrollup { width: 48px; height: 48px; bottom: 20px; inset-inline-end: 20px; font-size: 13px; }
    .menu-row > a { font-size: 12px; letter-spacing: 1.6px; }
}
@media (max-width: 480px) {
    .top-bar { padding: 12px 15px 2px; }
    .search-toggle { width: 42px; height: 42px; font-size: 16px; }
    .menu-toggle { width: 44px; height: 42px; }
    .menu-toggle .bars { width: 18px; height: 13px; }
    #wave-container { height: 45px; }
    #startkitdrops { height: 45px; }
}