/*
Theme Name: ElMajdal Hybrid
Theme URI: https://www.elmajdal.net/
Author: ElMajdal
Description: Responsive hybrid dark/light classic WordPress theme for technical tutorials and Classic Editor content.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: elmajdal-hybrid
*/
:root{--navy:#091827;--blue:#0284c7;--sky:#38bdf8;--bg:#f5f8fc;--paper:#fff;--ink:#162b40;--muted:#62758a;--line:#e1e9f0}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.7 system-ui,-apple-system,Segoe UI,sans-serif}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}
.wrap{max-width:1180px;margin:auto;padding:0 24px}.site-header{background:var(--navy);color:#fff}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:78px}.brand{font-size:25px;font-weight:800;letter-spacing:-.8px;color:#fff}.brand span{color:var(--sky)}.site-nav ul{display:flex;flex-wrap:wrap;gap:20px;list-style:none;padding:0;margin:0}.site-nav a{color:#d9e8f4;font-weight:600;font-size:14px}.site-nav .sub-menu{display:none;position:absolute;background:#132d45;padding:12px;border-radius:10px;z-index:5}.site-nav li{position:relative}.site-nav li:hover>.sub-menu,.site-nav li:focus-within>.sub-menu{display:block}.site-nav .sub-menu li{padding:5px}.theme-toggle{border:1px solid #4b667b;background:transparent;color:white;border-radius:20px;padding:7px 12px;cursor:pointer}.hero{background:linear-gradient(115deg,#091827,#153a58);color:white;padding:86px 0 92px}.hero h1{font-size:clamp(36px,5vw,60px);line-height:1.13;letter-spacing:-1.8px;max-width:760px;margin:0 0 20px}.hero h1 em{font-style:normal;color:var(--sky)}.hero p{max-width:650px;color:#b8ccdc;font-size:19px}.search-form{display:flex;gap:8px;max-width:640px;margin-top:30px}.search-form input{flex:1;min-width:0;padding:15px 17px;border-radius:9px;border:1px solid #ced9e5;font:inherit}.search-form button,.button{border:0;border-radius:9px;background:var(--blue);color:white;padding:14px 22px;font-weight:700;cursor:pointer}.hero .search-form button{background:var(--sky);color:#071727}.section{padding:52px 0}.section h2{font-size:28px;line-height:1.2;margin:0 0 22px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.category-grid,.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{background:var(--paper);border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:0 6px 22px #0a26400a}.card-body{padding:23px}.card h3{margin:4px 0 9px;line-height:1.35;font-size:20px}.card p{margin:0;color:var(--muted);font-size:14px}.card .meta,.meta{font-size:13px;color:var(--muted)}.card-thumb{width:100%;height:190px;object-fit:cover;display:block}.category-card{padding:25px;min-height:155px}.category-card h3{margin:0 0 9px}.category-card p{color:var(--muted);margin:0}.page-main{padding:44px 0 70px}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:30px;align-items:start}.article{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:clamp(22px,4vw,48px);min-width:0}.article h1{font-size:clamp(30px,4vw,46px);line-height:1.2;letter-spacing:-.8px;margin:8px 0 15px}.article .entry-content{margin-top:32px;overflow-wrap:anywhere}.entry-content h2,.entry-content h3{line-height:1.3;scroll-margin-top:30px}.entry-content p{margin:0 0 1.4em}.entry-content img{border-radius:8px}.entry-content pre{background:#0d1d2b;color:#e5f2ff;padding:20px;border-radius:10px;overflow:auto}.entry-content code{font-family:ui-monospace,Consolas,monospace}.entry-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}.entry-content td,.entry-content th{border:1px solid var(--line);padding:10px}.sidebar-panel{position:sticky;top:24px;background:var(--paper);border:1px solid var(--line);padding:23px;border-radius:14px}.sidebar-panel h3{margin:0 0 14px}.toc-links{list-style:none;padding:0;margin:0}.toc-links li{margin:0 0 9px}.toc-links a{font-size:14px}.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:16px}.article-footer{border-top:1px solid var(--line);margin-top:32px;padding-top:18px}.pagination{margin-top:30px}.pagination .page-numbers{display:inline-block;padding:7px 12px;background:var(--paper);border-radius:6px;margin-right:5px}.site-footer{background:#091827;color:#a9bdcf;padding:40px 0}.site-footer a{color:#d8eaf8}.footer-inner{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap}.screen-reader-text{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.aligncenter{display:block;margin:1em auto}.alignleft{float:left;margin:0 20px 15px 0}.alignright{float:right;margin:0 0 15px 20px}.wp-caption{max-width:100%}.wp-caption-text{color:var(--muted);font-size:13px}.sticky{}.gallery-caption{}.bypostauthor{}.dark-reading{--bg:#0b1521;--paper:#142638;--ink:#e6eff8;--muted:#adbdce;--line:#2b4358}.dark-reading .entry-content pre{background:#07121d}.dark-reading .search-form input{background:#20354a;color:#fff}.mobile-menu-button{display:none}@media(max-width:850px){.content-layout{grid-template-columns:1fr}.sidebar-panel{position:static}.category-grid,.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-menu-button{display:block;background:transparent;color:white;border:1px solid #567086;border-radius:8px;padding:8px}.header-inner{flex-wrap:wrap;padding-top:15px;padding-bottom:15px}.site-nav{display:none;width:100%}.site-nav.open{display:block}.site-nav ul{display:block}.site-nav li{margin:8px 0}.site-nav .sub-menu{display:block;position:static;background:transparent;padding-left:15px}}@media(max-width:560px){.category-grid,.post-grid{grid-template-columns:1fr}.hero{padding:65px 0}.search-form{flex-direction:column}.section{padding:36px 0}.article{padding:22px}.header-inner{gap:12px}}
.tablepress{--text-color:#111;--head-text-color:var(--text-color);--head-bg-color:#d9edf7;--odd-text-color:var(--text-color);--odd-bg-color:#fff;--even-text-color:var(--text-color);--even-bg-color:#f9f9f9;--hover-text-color:var(--text-color);--hover-bg-color:#f3f3f3;--border-color:#ddd;--padding:0.5rem;border:none;border-collapse:collapse;border-spacing:0;clear:both;margin:0 auto 1rem;table-layout:auto;width:100%}.tablepress>:not(caption)>*>*{background:none;border:none;box-sizing:border-box;float:none!important;padding:var(--padding);text-align:left;vertical-align:top}.tablepress>:where(thead)+tbody>:where(:not(.child))>*,.tablepress>tbody>*~:where(:not(.child))>*,.tablepress>tfoot>:where(:first-child)>*{border-top:1px solid var(--border-color)}.tablepress>:where(thead,tfoot)>tr>*{background-color:var(--head-bg-color);color:var(--head-text-color);font-weight:700;vertical-align:middle;word-break:normal}.tablepress>:where(tbody)>tr>*{color:var(--text-color)}.tablepress>:where(tbody.row-striping)>:nth-child(odd of :where(:not(.child,.dtrg-group)))+:where(.child)>*,.tablepress>:where(tbody.row-striping)>:nth-child(odd of :where(:not(.child,.dtrg-group)))>*{background-color:var(--odd-bg-color);color:var(--odd-text-color)}.tablepress>:where(tbody.row-striping)>:nth-child(even of :where(:not(.child,.dtrg-group)))+:where(.child)>*,.tablepress>:where(tbody.row-striping)>:nth-child(even of :where(:not(.child,.dtrg-group)))>*{background-color:var(--even-bg-color);color:var(--even-text-color)}.tablepress>.row-hover>tr{content-visibility:auto}.tablepress>.row-hover>tr:has(+.child:hover)>*,.tablepress>.row-hover>tr:hover+:where(.child)>*,.tablepress>.row-hover>tr:where(:not(.dtrg-group)):hover>*{background-color:var(--hover-bg-color);color:var(--hover-text-color)}.tablepress img{border:none;margin:0;max-width:none;padding:0}.tablepress-table-description{clear:both;display:block}.dt-scroll{width:100%}.dt-scroll .tablepress{width:100%!important}div.dt-scroll-body tfoot tr,div.dt-scroll-body thead tr{height:0}div.dt-scroll-body tfoot tr td,div.dt-scroll-body tfoot tr th,div.dt-scroll-body thead tr td,div.dt-scroll-body thead tr th{border-bottom-width:0!important;border-top-width:0!important;height:0!important;padding-bottom:0!important;padding-top:0!important}div.dt-scroll-body tfoot tr td div.dt-scroll-sizing,div.dt-scroll-body tfoot tr th div.dt-scroll-sizing,div.dt-scroll-body thead tr td div.dt-scroll-sizing,div.dt-scroll-body thead tr th div.dt-scroll-sizing{height:0!important;overflow:hidden!important}div.dt-scroll-body>table.dataTable>thead>tr>td,div.dt-scroll-body>table.dataTable>thead>tr>th{overflow:hidden}.tablepress{--head-active-bg-color:#049cdb;--head-active-text-color:var(--head-text-color);--head-sort-arrow-color:var(--head-active-text-color)}.tablepress thead th:active{outline:none}.tablepress thead .dt-orderable-asc .dt-column-order:before,.tablepress thead .dt-ordering-asc .dt-column-order:before{bottom:50%;content:"\25b2";content:"\25b2"/"";display:block;position:absolute}.tablepress thead .dt-orderable-desc .dt-column-order:after,.tablepress thead .dt-ordering-desc .dt-column-order:after{content:"\25bc";content:"\25bc"/"";display:block;position:absolute;top:50%}.tablepress thead .dt-orderable-asc .dt-column-order,.tablepress thead .dt-orderable-desc .dt-column-order,.tablepress thead .dt-ordering-asc .dt-column-order,.tablepress thead .dt-ordering-desc .dt-column-order{color:var(--head-sort-arrow-color);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif!important;font-size:14px;height:24px;line-height:12px;position:relative;width:12px}.tablepress thead .dt-orderable-asc .dt-column-order:after,.tablepress thead .dt-orderable-asc .dt-column-order:before,.tablepress thead .dt-orderable-desc .dt-column-order:after,.tablepress thead .dt-orderable-desc .dt-column-order:before,.tablepress thead .dt-ordering-asc .dt-column-order:after,.tablepress thead .dt-ordering-asc .dt-column-order:before,.tablepress thead .dt-ordering-desc .dt-column-order:after,.tablepress thead .dt-ordering-desc .dt-column-order:before{opacity:.2}.tablepress thead .dt-orderable-asc,.tablepress thead .dt-orderable-desc{cursor:pointer;outline-offset:-2px}.tablepress thead .dt-orderable-asc:hover,.tablepress thead .dt-orderable-desc:hover,.tablepress thead .dt-ordering-asc,.tablepress thead .dt-ordering-desc{background-color:var(--head-active-bg-color);color:var(--head-active-text-color)}.tablepress thead .dt-ordering-asc .dt-column-order:before,.tablepress thead .dt-ordering-desc .dt-column-order:after{opacity:.8}.tablepress tfoot>tr>* .dt-column-footer,.tablepress tfoot>tr>* .dt-column-header,.tablepress thead>tr>* .dt-column-footer,.tablepress thead>tr>* .dt-column-header{align-items:center;display:flex;gap:4px;justify-content:space-between}.tablepress tfoot>tr>* .dt-column-footer .dt-column-title,.tablepress tfoot>tr>* .dt-column-header .dt-column-title,.tablepress thead>tr>* .dt-column-footer .dt-column-title,.tablepress thead>tr>* .dt-column-header .dt-column-title{flex-grow:1}.tablepress tfoot>tr>* .dt-column-footer .dt-column-title:empty,.tablepress tfoot>tr>* .dt-column-header .dt-column-title:empty,.tablepress thead>tr>* .dt-column-footer .dt-column-title:empty,.tablepress thead>tr>* .dt-column-header .dt-column-title:empty{display:none}.tablepress:where(.auto-type-alignment) .dt-right,.tablepress:where(.auto-type-alignment) .dt-type-date,.tablepress:where(.auto-type-alignment) .dt-type-numeric{text-align:right}.tablepress:where(.auto-type-alignment) .dt-right .dt-column-footer,.tablepress:where(.auto-type-alignment) .dt-right .dt-column-header,.tablepress:where(.auto-type-alignment) .dt-type-date .dt-column-footer,.tablepress:where(.auto-type-alignment) .dt-type-date .dt-column-header,.tablepress:where(.auto-type-alignment) .dt-type-numeric .dt-column-footer,.tablepress:where(.auto-type-alignment) .dt-type-numeric .dt-column-header{flex-direction:row-reverse}.dt-container{clear:both;margin-bottom:1rem;position:relative}.dt-container table.tablepress{margin-bottom:0}.dt-container .dt-layout-row{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.dt-container .dt-layout-row.dt-layout-table .dt-layout-cell{display:block;width:100%}.dt-container .dt-layout-cell{display:flex;flex-direction:row;flex-wrap:wrap;gap:1em;padding:5px 0}.dt-container .dt-layout-cell.dt-layout-full{align-items:center;justify-content:space-between;width:100%}.dt-container .dt-layout-cell.dt-layout-full>:only-child{margin:auto}.dt-container .dt-layout-cell.dt-layout-start{align-items:center;justify-content:flex-start;margin-right:auto}.dt-container .dt-layout-cell.dt-layout-end{align-items:center;justify-content:flex-end;margin-left:auto}.dt-container .dt-layout-cell:empty{display:none}.dt-container .dt-input,.dt-container label{display:inline;width:auto}.dt-container .dt-input{font-size:inherit;padding:5px}.dt-container .dt-length,.dt-container .dt-search{align-items:center;display:flex;flex-wrap:wrap;gap:5px;justify-content:center}.dt-container .dt-paging .dt-paging-button{background:#0000;border:1px solid #0000;border-radius:2px;box-sizing:border-box;color:inherit!important;cursor:pointer;display:inline-block;font-size:1em;height:32px;margin-left:2px;min-width:32px;padding:0 5px;text-align:center;text-decoration:none!important;vertical-align:middle}.dt-container .dt-paging .dt-paging-button.current,.dt-container .dt-paging .dt-paging-button:hover{border:1px solid #111}.dt-container .dt-paging .dt-paging-button.disabled,.dt-container .dt-paging .dt-paging-button.disabled:active,.dt-container .dt-paging .dt-paging-button.disabled:hover{border:1px solid #0000;color:#0000004d!important;cursor:default;outline:none}.dt-container .dt-paging>.dt-paging-button:first-child{margin-left:0}.dt-container .dt-paging .ellipsis{padding:0 1em}@media screen and (max-width:767px){.dt-container .dt-layout-row{flex-direction:column}.dt-container .dt-layout-cell{flex-direction:column;padding:.5em 0}}