/*
Theme Name: NeoSecHub
Theme URI: https://neosechub.com
Author: NeoSecHub
Description: Arabic / RTL cybersecurity news and tutorials theme. Requires the companion plugin "NeoSecHub Content Types" (news + tutorial post types).
Version: 1.4.1
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neosechub
Tags: rtl-language-support, dark, custom-menu, featured-images, blog, news
*/

/* ===== Original NeoSecHub design (from style/index.css), paths and selectors adapted ===== */
:root{

--bg:#03020e;
--card:#0c091e;

--purple:#7c3aed;
--purple2:#a855f7;

--pink:#ec4899;

--text:#fff;

}


*{
margin:0;
padding:0;
box-sizing:border-box;
font-family: 'Tajawal', sans-serif;
}

body{

background:var(--bg);

font-family:Tahoma,sans-serif;

color:var(--text);

}

.wrapper{

width:min(95%,1600px);

margin:auto;

padding:20px;

}

/* NAVBAR */
.navbar{

    display:grid;

    grid-template-columns: 1fr auto 1fr;

    align-items:center;

    background: #03020e;

    border:2px solid #8b5cf6;

    padding:14px 28px;

    box-shadow:0 0 12px rgba(139,92,246,.25);

    position:relative;
}

/* Pixel corners */

.navbar::before,
.navbar::after{

    content:"";

    position:absolute;

    width:10px;
    height:10px;

    background:#8b5cf6;
}

.navbar::before{
    top:-2px;
    left:-2px;
}

.navbar::after{
    bottom:-2px;
    right:-2px;
}

/* Logo */

.logo{
    justify-self:start;
    display:flex;
    align-items:center;
}
.logo img{

    height:58px;

    width:auto;

    display:block;
}

/* Navigation */

.navbar nav{
    justify-self:center;
    display:flex;
    gap:35px;
}

.navbar nav a{

    color:#d9d6ff;

    text-decoration:none;

    font-size:14px;

    font-weight:600;

    letter-spacing:.5px;

    transition:.25s;

    position:relative;
}

/* Hover */

.navbar nav a:hover{

    color:#fff;

    text-shadow:
    0 0 8px #a855f7,
    0 0 18px #a855f7;
}

/* Active Link */

.navbar nav a.active{

    color:#ffffff;

    text-shadow:
    0 0 10px #a855f7,
    0 0 20px #a855f7;
}

.navbar nav a.active::after{

    content:"";

    position:absolute;

    left:0;
    right:0;

    bottom:-8px;

    height:2px;

    background:#a855f7;

    box-shadow:
    0 0 8px #a855f7;
}

/* HERO */

.hero{

position:relative;

height:28vh;

margin-top:20px;

border:2px solid var(--purple);

background:url("assests/hero5.png")
center/cover;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
overflow:hidden;

}

.overlay{

position:absolute;

inset:0;

background:
linear-gradient(
rgba(0,0,0,.3),
rgba(0,0,0,.7)
);

}

.hero-content{

position:relative;

z-index:2;

padding:60px;

max-width:600px;

}

.hero h1{

font-size:clamp(2rem,5vw,5rem);

}

.hero span{

color:var(--purple2);

}

.hero p{

margin:20px 0;

font-size:1.2rem;

}

.hero button{

background:var(--purple2);

border:none;

padding:15px 30px;

color:white;

cursor:pointer;

}

/* CONTENT */

.content-grid{

display:grid;

grid-template-columns:2fr 1fr;

gap:20px;

margin-top:20px;

}

/* NEWS */

.news-panel{

background:var(--card);

border:2px solid var(--purple);

padding:20px;

}

.section-header{

display:flex;

justify-content:space-between;

margin-bottom:20px;

}

.news-item{

display:flex;

gap:20px;

padding:20px 0;

border-bottom:1px solid #222;

}

.thumb{

width:220px;

aspect-ratio:16/9;

background:#1a1030;

}

/* SIDEBAR */

.sidebar{

display:flex;

flex-direction:column;

gap:20px;

}

/* ========================= */
/* Categories Card */
/* ========================= */

.categories-card h2{

    margin-bottom:20px;

    text-align:center;

    font-size:1.2rem;

    color:#fff;

    text-shadow:
    0 0 10px rgba(168,85,247,.4);
}

.categories-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:12px;
}

.category-item{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:8px;

    text-decoration:none;

    color:#fff;

    min-height:90px;

    background:#12071f;

    border:1px solid rgba(124,58,237,.5);

    transition:.25s;

    position:relative;
}

/* Pixel Corners */

.category-item::before,
.category-item::after{

    content:"";

    position:absolute;

    width:6px;
    height:6px;

    background:#8b5cf6;
}

.category-item::before{

    top:-1px;
    left:-1px;
}

.category-item::after{

    bottom:-1px;
    right:-1px;
}

.category-item:hover{

    transform:translateY(-3px);

    border-color:#a855f7;

    box-shadow:
    0 0 12px rgba(168,85,247,.35);
}

.icon{

    font-size:1.5rem;
}

.category-item span:last-child{

    font-size:.85rem;

    font-weight:600;
}


.card{

background:var(--card);

border:2px solid var(--purple);

padding:20px;

}

.card ul{

list-style:none;

}

.card li{

padding:10px 0;

}

.danger{

color:#ff3d7d;

font-size:2rem;

font-weight:bold;

margin:20px 0;

}

.progress{

height:16px;

background:#1b102a;

border-radius:30px;

overflow:hidden;

}

.progress span{

display:block;

width:85%;

height:100%;

background:#ff3d7d;

}

/* EXPLORE */

.explore{

grid-column:1;

display:grid;

grid-template-columns:
repeat(6,1fr);

gap:20px;

}


/* FOOTER */

footer{

margin-top:20px;

padding:20px;

border:2px solid var(--purple);

text-align:center;

}

/* Categories Section */

.categories-card h2{
    margin-left: 40px;
    margin-bottom:25px;
    text-align:center;
    font-size:1.2rem;
    font-weight:700;
    color:#fff;
}

.categories-list{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:22px 30px;
}

/* Item */
.explore{

    grid-column:1 / -1;

    display:grid;

    grid-template-columns:repeat(6,1fr);

    gap:20px;

    margin-top:20px;
}

.explore-card{

    background:#0c0418;
    border:2px solid #7c3aed;

    text-decoration:none;

    color:white;

    overflow:hidden;

    transition:.25s;

    display:flex;

    flex-direction:column;
}

.explore-card:hover{

    transform:translateY(-5px);

    border-color:#a855f7;

    box-shadow:
    0 0 20px rgba(168,85,247,.25);
}

.explore-card img{

    width:50%;

    aspect-ratio:1/1;

    object-fit:contain;
        align-self:center;


    display:block;
}

.explore-card span{

    border-top:1px solid rgba(124,58,237,.4);

    padding:14px 10px;

    text-align:center;

    font-weight:700;

    font-size:14px;
}

.category-link{

    display:flex;

    align-items:center;

    gap:12px;

    text-decoration:none;

    color:#fff;

    transition:.25s ease;
}

.category-link:hover{

    color:#a855f7;

    transform:translateX(-4px);
}

.category-link img{

    width:42px;

    height:42px;

    object-fit:contain;

    flex-shrink:0;
}

.category-link span{

    font-size:15px;

    font-weight:600;
}


.social-card h2{

    text-align:center;

    margin-bottom:25px;
}

.social-icons{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:25px;
}

.social-icons a{

    transition:.25s;
}

.social-icons a:hover{

    transform:translateY(-4px) scale(1.08);
}

.social-icons img{

    width:64px;

    height:64px;

    object-fit:contain;
}

/* ============================================================
   WordPress additions (same design language as the original)
   ============================================================ */

.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;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:#0c091e;color:#fff;clip:auto;clip-path:none;display:block;height:auto;width:auto;padding:12px 18px;top:8px;right:8px;z-index:100000;border:2px solid var(--purple2)}

a{color:inherit}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--purple2);outline-offset:3px}
img{max-width:100%;height:auto}
main{display:block}

/* Navbar: logo link, mobile repair (original used flex rules on a grid) */
.logo a{display:flex;align-items:center}
.logo img{max-width:100%}
.navbar nav a:focus-visible{color:#fff;text-shadow:0 0 8px #a855f7}
/* CSS-only mobile menu controls are hidden on desktop. */
.mobile-menu-toggle,.mobile-menu-button{display:none}
.mobile-menu-icon{display:flex;flex-direction:column;gap:5px;width:20px}
.mobile-menu-icon span{display:block;width:20px;height:2px;background:#d9d6ff;transition:transform .2s ease,opacity .2s ease}

/* Section headings keep the original h3 look */
.section-header h1,.section-header h2,.card h2{font-size:1.17em;font-weight:700}
.section-header a{color:var(--purple2);text-decoration:none}
.section-header h2 a{color:inherit;text-decoration:none}
.section-header a:hover{text-decoration:underline}
.section-header .archive-description{margin-top:6px}
.more-button-wrap{margin-top:20px;text-align:right;direction:rtl}
.more-button{display:inline-block;color:#fff!important;text-decoration:none!important}

/* Article cards (original .news-item) */
.thumb{flex-shrink:0;overflow:hidden}
.thumb a{display:block;height:100%}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.news-item{min-width:0}
.news-body{flex:1;min-width:0}
.news-item h3{font-size:1rem;font-weight:700;margin-bottom:6px}
.news-item h3 a{text-decoration:none;overflow-wrap:anywhere}
.news-item h3 a:hover{color:var(--purple2)}
.news-item p{color:#cfc9ee;line-height:1.7}
.news-meta{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-top:8px;font-size:.8rem;color:#9b92c9}
.type-badge{display:inline-block;padding:2px 10px;font-size:.75rem;font-weight:700;border:1px solid var(--purple);background:#12071f;color:#d9d6ff}
.type-badge--news{border-color:var(--pink);color:#ffd1e6}
.empty-state{padding:30px 10px;text-align:center;color:#cfc9ee}
.empty-state .notice-admin{display:block;margin-top:10px;font-size:.85rem;color:#9b92c9}

/* Category cards */
.category-link.is-current{color:var(--purple2)}
.category-link{min-width:0}
.categories-card--bar .categories-list{display:grid;grid-template-columns:repeat(4,1fr);gap:22px 30px}
.categories-card--bar{margin-top:20px}
.categories-card--bar .category-link,.categories-card .category-link{min-width:0}
.categories-card--bar .category-link span,.categories-card .category-link span{overflow-wrap:anywhere}
span.explore-card{cursor:default}

/* Threat card progress width is set inline from the Customizer value */

/* Sidebar search */
.search-title{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.search-title img{width:42px;height:42px;object-fit:contain;flex:0 0 auto}
.search-form{display:flex;gap:8px}
.search-field{flex:1;min-width:0;background:#12071f;border:1px solid rgba(124,58,237,.5);color:#fff;padding:10px 12px;font-size:15px}
.search-field::placeholder{color:#8f87b8}
.search-submit,.button-primary{background:var(--purple);border:1px solid var(--purple2);color:#fff;padding:10px 18px;font-size:15px;font-weight:700;cursor:pointer;transition:.25s}
.search-submit:hover,.button-primary:hover{background:var(--purple2);box-shadow:0 0 14px rgba(168,85,247,.35)}
.sidebar .card .search-form{flex-wrap:wrap}

/* Support message above the footer */
.support-section{display:block;width:100%;clear:both;margin:20px 0 0;padding:20px;background:var(--card);border:2px solid var(--purple);box-shadow:0 0 12px rgba(124,58,237,.25);text-align:center;color:#d9d6ff}
.support-notice{display:flex;align-items:flex-start;justify-content:center;gap:12px;margin:0;line-height:1.8}
.support-notice img{width:27px;height:27px;object-fit:contain;flex:0 0 27px}
.support-notice span{min-width:0}

/* Pagination */
.pagination{margin-top:24px}
.pagination ul{list-style:none;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.pagination a,.pagination span.page-numbers{display:block;min-width:38px;padding:8px 12px;text-align:center;text-decoration:none;border:1px solid rgba(124,58,237,.5);background:#12071f;color:#fff;transition:.25s}
.pagination a:hover{border-color:var(--purple2);box-shadow:0 0 12px rgba(168,85,247,.35)}
.pagination .current{background:var(--purple);border-color:var(--purple2);font-weight:700}
.pagination .dots{border-color:transparent;background:transparent}

/* Single-column pages (pages, 404) */
.content-grid--single{grid-template-columns:1fr}
.content-grid>.news-panel,.content-grid>.sidebar,.content-grid>.explore{min-width:0}

/* Single article / page content */
.article-header{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #222}
.article-title{font-size:clamp(1.5rem,3.2vw,2.2rem);line-height:1.4;margin:10px 0;overflow-wrap:break-word}
.article-meta{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;font-size:.9rem;color:#9b92c9}
.article-meta a{color:var(--purple2);text-decoration:none}
.article-meta a:hover{text-decoration:underline}
.article-thumb{margin:0 0 24px;border:1px solid rgba(124,58,237,.4)}
.article-thumb img{display:block;width:100%;height:auto}
.article-content{min-width:0;max-width:100%;line-height:1.95;font-size:1.05rem;overflow-wrap:break-word}
.article-content>*+*{margin-top:1.1em}
.article-content h2,.article-content h3,.article-content h4{margin-top:1.6em;line-height:1.5;color:#fff}
.article-content h2{font-size:1.5rem}
.article-content h3{font-size:1.25rem}
.article-content h4{font-size:1.1rem}
.article-content a{color:var(--purple2);overflow-wrap:anywhere}
.article-content a:hover{color:var(--pink)}
.article-content ul,.article-content ol{padding-inline-start:1.6em}
.article-content li+li{margin-top:.35em}
.article-content blockquote{border-inline-start:4px solid var(--purple2);background:#12071f;padding:14px 18px;color:#d9d6ff}
.article-content pre{direction:ltr;text-align:left;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;white-space:pre;background:#07040f;border:1px solid rgba(124,58,237,.5);padding:16px;line-height:1.6;font-size:.9rem}
.article-content code{direction:ltr;unicode-bidi:embed;font-family:Consolas,Menlo,monospace;background:#12071f;padding:1px 6px;font-size:.9em}
.article-content pre code{background:none;padding:0}
.article-content img,.article-content video,.article-content iframe{max-width:100%;height:auto}
.article-content .wp-block-embed__wrapper{max-width:100%}
.article-content figure{margin-inline:0}
.article-content figcaption,.wp-caption-text{font-size:.85rem;color:#9b92c9;text-align:center;margin-top:6px}
.article-content table{width:100%;max-width:100%;border-collapse:collapse;display:block;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.article-content th,.article-content td{border:1px solid rgba(124,58,237,.4);padding:8px 12px;text-align:start}
.article-content th{background:#12071f}
.alignleft{float:left;margin:0 20px 10px 0}
.alignright{float:right;margin:0 0 10px 20px}
.aligncenter{display:block;margin-inline:auto}
.article-footer{margin-top:28px;padding-top:16px;border-top:1px solid #222}
.article-terms{font-size:.95rem;color:#cfc9ee}
.article-terms a{color:var(--purple2);text-decoration:none}
.post-navigation{margin-top:22px}
.post-navigation .nav-links{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.post-navigation a{display:block;height:100%;padding:12px 14px;border:1px solid rgba(124,58,237,.5);background:#12071f;text-decoration:none;transition:.25s}
.post-navigation a:hover{border-color:var(--purple2);box-shadow:0 0 12px rgba(168,85,247,.35)}
.post-navigation .nav-next{text-align:left}
.nav-subtitle{display:block;font-size:.8rem;color:#9b92c9;margin-bottom:4px}
.nav-title{font-weight:700}
.page-links{margin-top:16px}

/* Contact form */
.contact-form{margin-top:30px;padding-top:24px;border-top:1px solid #222;display:grid;gap:16px;max-width:680px}
.contact-form h2{font-size:1.2rem}
.form-row{display:grid;gap:6px}
.form-row label{font-weight:700;font-size:.95rem}
.form-row .req{color:var(--pink)}
.contact-form input[type=text],.contact-form input[type=email],.contact-form textarea{width:100%;min-width:0;background:#12071f;border:1px solid rgba(124,58,237,.5);color:#fff;padding:12px 14px;font-size:15px}
.contact-form textarea{min-height:160px;resize:vertical}
.hp-field{position:absolute;inset-inline-start:-9999px;width:1px;height:1px;overflow:hidden}
.form-notice{padding:12px 16px;border:1px solid var(--purple);background:#12071f}
.form-notice--ok{border-color:#34d399}
.form-notice--err{border-color:var(--pink)}
.contact-form button{justify-self:start}

/* About Me page */
/* The profile is one centered composition: heading above, image on the right,
   and the name + description/social group on the left. */
.about-page{width:min(100%,850px);margin:0 auto;padding:12px 0 28px;direction:rtl;background:transparent;border:0;box-shadow:none}
.about-page-title{text-align:center;color:#fff;font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.4;margin:0 0 42px}
.about-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px;align-items:center;padding:20px;background:#12071f;border:1px solid rgba(124,58,237,.5)}
/* In an RTL grid, column 1 is the right-hand column. */
.about-image-column{grid-column:1;grid-row:1;display:flex;justify-content:center;align-items:center;min-width:0}
.about-profile-image{display:block;width:min(100%,360px);height:auto;aspect-ratio:1 / 1;object-fit:contain}
.about-content-column{grid-column:2;grid-row:1;min-width:0;text-align:right}
.about-content-column h2{margin:0 0 20px;color:var(--purple2);font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.4;text-align:center}
/* Description occupies the main area; social icons form a vertical rail beside it. */
.about-description-social{display:flex;flex-direction:row;align-items:flex-start;gap:20px}
.about-description{flex:1;min-width:0;color:#d9d6ff;font-size:1.05rem;line-height:2;text-align:right}
.about-description p{margin:0}
.about-description p+p{margin-top:16px}
.about-social-links{display:flex;flex-direction:column;gap:12px;flex:0 0 42px}
.about-social-links a{display:flex;align-items:center;justify-content:center;transition:transform .25s ease}
.about-social-links a:hover{transform:translateX(-3px) scale(1.06)}
.about-social-links img{display:block;width:42px;height:42px;object-fit:contain}

/* Responsive breakpoints: tablet layout, compact header, then phone refinements. */
@media(max-width:992px){
  .content-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .article-content .alignwide,.article-content .alignfull{max-width:100%;margin-inline:auto}
  .categories-card--bar .categories-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .explore{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}
  .explore>:only-child{grid-column:1/-1;width:min(100%,320px);justify-self:center}
}

@media(max-width:900px){
  .navbar{grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"brand toggle" "menu menu";justify-items:stretch;gap:0;padding:12px 14px}
  .navbar .logo{grid-area:brand;justify-self:start;min-width:0}
  .navbar .logo img{height:46px;width:auto;max-width:100%}
  .mobile-menu-toggle{display:block;position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
  .mobile-menu-button{grid-area:toggle;display:flex;width:44px;height:44px;justify-self:end;align-items:center;justify-content:center;background:#12071f;border:1px solid var(--purple2);cursor:pointer;transition:background .2s ease,box-shadow .2s ease}
  .mobile-menu-button:hover{background:#1a1030;box-shadow:0 0 10px rgba(168,85,247,.25)}
  .mobile-menu-toggle:focus-visible+.mobile-menu-button{outline:2px solid var(--purple2);outline-offset:3px}
  .mobile-menu-toggle:checked+.mobile-menu-button .mobile-menu-icon span:first-child{transform:translateY(7px) rotate(45deg)}
  .mobile-menu-toggle:checked+.mobile-menu-button .mobile-menu-icon span:nth-child(2){opacity:0}
  .mobile-menu-toggle:checked+.mobile-menu-button .mobile-menu-icon span:last-child{transform:translateY(-7px) rotate(-45deg)}
  .navbar nav{grid-area:menu;justify-self:stretch;display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%;min-width:0;max-height:0;margin-top:0;padding-block:0;overflow:hidden;visibility:hidden;opacity:0;border-top:0;transition:max-height .25s ease,opacity .2s ease,margin .2s ease,padding .2s ease,visibility .2s}
  .mobile-menu-toggle:checked~#primary-navigation{max-height:min(70vh,420px);overflow-y:auto;overscroll-behavior:contain;visibility:visible;opacity:1;margin-top:10px;padding-block:8px;border-top:1px solid rgba(124,58,237,.45)}
  .navbar nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;text-align:center;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid rgba(124,58,237,.2)}
  .navbar nav a:last-child{border-bottom:0}
  .navbar nav a.active::after{display:none}
  .navbar nav a.active{background:#12071f}
  .hero{height:auto;aspect-ratio:3400 / 792;margin-top:16px}
  .hero-content{padding:0}
  .category-link{min-height:44px}
  .search-field,.contact-form input[type=text],.contact-form input[type=email]{min-height:44px;font-size:16px}
  .contact-form textarea{font-size:16px}
  .search-submit,.button-primary,.contact-form button{min-height:44px}
  .pagination a,.pagination span.page-numbers{min-width:44px;min-height:44px}
  .about-social-links a{width:44px;height:44px}
  .about-social-links{flex-basis:44px}
  .more-button{display:inline-flex;align-items:center;justify-content:center}
}

@media(max-width:768px){
  .news-item{flex-direction:column}
  .thumb{width:100%}
  .post-navigation .nav-links{grid-template-columns:1fr}
  .alignleft,.alignright{float:none;margin:0 auto 10px;display:block}
  .about-page{padding-top:0}
  .about-page-title{margin-bottom:28px}
  .about-layout{grid-template-columns:minmax(0,1fr);gap:30px}
  .about-image-column,.about-content-column{grid-column:1}
  .about-image-column{grid-row:1}
  .about-content-column{grid-row:2;text-align:center}
  .about-content-column h2{text-align:center}
  .about-description-social{align-items:flex-start;gap:16px;text-align:right}
  .about-profile-image{width:min(100%,340px)}
}

@media(max-width:600px){
  .wrapper{padding:12px}
  .content-grid{gap:16px;margin-top:16px}
  .news-panel,.card{padding:16px}
  .hero{margin-top:16px}
  .section-header{align-items:flex-start;flex-wrap:wrap;gap:12px;min-width:0;margin-bottom:16px}
  .section-header h1,.section-header h2{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .categories-card h2{margin-left:0}
  .categories-card--bar .categories-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}
  .explore{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:16px}
  .explore>:only-child{grid-column:auto;width:min(100%,320px);justify-self:center}
  .social-icons{flex-wrap:wrap;gap:16px}
  .support-section{margin-top:16px;padding:14px}
  .support-notice{gap:10px}
  .article-content{font-size:1rem;line-height:1.85}
  .article-content pre{padding:12px}
  .pagination ul{gap:6px}
  .contact-form{gap:14px}
  .search-form{flex-wrap:wrap}
  .sidebar .card .search-submit{flex:1 0 auto}
}

@media(max-width:480px){
  .wrapper{padding:10px}
  .navbar{padding:10px 12px}
  .news-panel,.card{padding:14px}
  .article-title{font-size:clamp(1.35rem,6vw,1.75rem);line-height:1.45}
  .about-page-title{margin-bottom:24px}
  .about-layout{padding:16px;gap:24px}
  .about-description-social{gap:12px}
  .about-social-links{gap:10px}
  .about-social-links img{width:34px;height:34px}
  .about-description{font-size:1rem;line-height:1.9}
}

@media(max-width:380px){
  .wrapper{padding:8px}
  .news-panel,.card{padding:12px}
  .categories-card .categories-list,.categories-card--bar .categories-list{grid-template-columns:minmax(0,1fr)}
  .categories-card--bar .categories-list{gap:16px}
  .article-meta{gap:8px;font-size:.85rem}
}

@media(prefers-reduced-motion:reduce){
  .mobile-menu-icon span,.mobile-menu-button{transition:none}
}

