/*
Theme Name: FiveVolt Neo
Theme URI: https://5volt.ir/
Author: FiveVolt
Author URI: https://5volt.ir/
Description: قالب اختصاصی، سبک و راست‌چین FiveVolt با طراحی سرمه‌ای و آبی الکتریکی برای آموزش برق و الکترونیک.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: fivevolt-neo
Tags: blog, education, rtl-language-support, custom-logo, custom-menu, featured-images
*/
:root{--navy:#071d3b;--navy2:#0b315b;--blue:#0878e8;--blue2:#28a7ff;--yellow:#ffc400;--ink:#102b4e;--muted:#64748b;--paper:#f4f8fc;--line:#dbe7f3;--white:#fff;--radius:18px;--shadow:0 12px 34px rgba(7,29,59,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Tahoma,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.85}a{color:var(--blue);text-decoration:none}a:hover{color:#0055b8}img{max-width:100%;height:auto}button,input{font:inherit}.site-shell{max-width:1440px;margin:auto;background:#fff;min-height:100vh}.topline{background:#f1f6fb;color:#34506e;font-size:13px;padding:7px 4.2%;display:flex;justify-content:space-between;gap:16px}.topline a{color:inherit}.brand-band{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:20px 4.2%;background:linear-gradient(105deg,#fff 0%,#f4f9ff 62%,#e8f3ff 100%);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:14px;color:var(--navy);min-width:240px}.brand-mark{width:68px;height:68px;flex:none}.brand-name{font-size:clamp(34px,4vw,54px);font-weight:900;letter-spacing:-2px;line-height:1}.brand-name span{color:var(--blue)}.brand-tag{font-size:12px;letter-spacing:1px;color:#49627f;margin-top:5px}.brand-copy{text-align:right;font-size:20px;font-weight:800;line-height:1.6}.brand-copy strong{color:var(--blue)}.main-nav{background:linear-gradient(90deg,var(--navy),#0c3767);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 3.5%;min-height:62px;gap:18px}.main-nav ul{list-style:none;padding:0;margin:0;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.main-nav li{position:relative}.main-nav a{display:block;color:#fff;padding:16px 17px;font-weight:700;font-size:14px;border-radius:9px}.main-nav a:hover,.main-nav .current-menu-item>a{background:var(--blue)}.main-nav .sub-menu{display:none;position:absolute;right:0;top:100%;z-index:99;background:#fff;min-width:240px;padding:8px;box-shadow:var(--shadow);border:1px solid var(--line);border-radius:12px}.main-nav li:hover>.sub-menu,.main-nav li:focus-within>.sub-menu{display:block}.main-nav .sub-menu a{color:var(--ink);padding:9px 12px;border-radius:8px}.main-nav .sub-menu a:hover{color:#fff}.search-form{display:flex;align-items:center;background:#fff;border-radius:30px;padding:4px 12px;min-width:210px}.search-form input[type=search]{border:0;outline:0;width:100%;min-width:0;color:var(--ink);font-size:13px}.search-form button{border:0;background:transparent;color:var(--blue);cursor:pointer;font-weight:bold}.hero{position:relative;overflow:hidden;min-height:390px;padding:55px 6%;display:flex;align-items:center;background:radial-gradient(circle at 72% 45%,rgba(23,145,255,.48),transparent 24%),linear-gradient(115deg,#061a35 0%,#07366a 58%,#0876cb 100%);color:#fff}.hero:before,.hero:after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.20;background-image:linear-gradient(90deg,transparent 48%,rgba(65,181,255,.7) 49%,rgba(65,181,255,.7) 50%,transparent 51%),linear-gradient(0deg,transparent 48%,rgba(65,181,255,.5) 49%,rgba(65,181,255,.5) 50%,transparent 51%);background-size:54px 54px;mask-image:linear-gradient(90deg,transparent,#000)}.hero:after{opacity:.14;transform:rotate(22deg) scale(1.5)}.hero-inner{position:relative;z-index:2;max-width:720px}.eyebrow{display:inline-block;color:var(--yellow);font-weight:800;font-size:14px;letter-spacing:.5px}.hero h1{font-size:clamp(34px,5vw,62px);line-height:1.25;margin:8px 0 12px;color:#fff;font-weight:900}.hero h1 span{color:var(--yellow)}.hero p{font-size:17px;color:#e5f2ff;max-width:620px;margin:0 0 24px}.btn-primary{display:inline-flex;align-items:center;gap:10px;background:var(--yellow);color:#102b4e;padding:12px 25px;border-radius:40px;font-weight:900;box-shadow:0 8px 22px rgba(255,196,0,.2)}.btn-primary:hover{color:#102b4e;transform:translateY(-1px)}.hero-chip{position:absolute;z-index:1;left:8%;top:50%;transform:translateY(-50%);width:230px;height:230px;border:2px solid rgba(95,193,255,.55);border-radius:30px;display:grid;place-items:center;box-shadow:0 0 65px rgba(0,150,255,.25),inset 0 0 45px rgba(0,150,255,.18);background:linear-gradient(145deg,rgba(7,38,75,.6),rgba(11,96,166,.28))}.hero-chip svg{width:150px;height:150px;filter:drop-shadow(0 0 18px rgba(0,165,255,.6))}.features{display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:22px 4%;background:#f1f6fb;border-bottom:1px solid var(--line)}.feature{padding:8px 18px;text-align:center;border-left:1px solid #cbd9e8}.feature:last-child{border-left:0}.feature b{display:block;color:var(--navy);font-size:16px}.feature span{font-size:12px;color:var(--muted)}.section{padding:42px 4.2%}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.section-heading h2{margin:0;color:var(--navy);font-size:25px}.section-heading h2:after{content:"";display:block;width:58px;height:4px;background:var(--yellow);border-radius:4px;margin-top:8px}.section-heading a{font-weight:800}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.category-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px 17px;box-shadow:0 5px 18px rgba(7,29,59,.045);transition:.2s}.category-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#a9d4ff}.category-icon{width:42px;height:42px;border-radius:12px;background:#e7f3ff;color:var(--blue);display:grid;place-items:center;font-size:22px;margin-bottom:12px}.category-card h3{font-size:16px;margin:0 0 5px;color:var(--navy)}.category-card p{margin:0;color:var(--muted);font-size:12px}.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.post-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 5px 18px rgba(7,29,59,.05)}.post-thumb{display:block;aspect-ratio:16/9;background:linear-gradient(135deg,#dceeff,#f4f8fc);overflow:hidden}.post-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.post-card:hover .post-thumb img{transform:scale(1.04)}.post-body{padding:17px}.post-meta{font-size:11px;color:var(--muted)}.post-body h3{font-size:17px;line-height:1.6;margin:7px 0 9px}.post-body h3 a{color:var(--navy)}.post-body p{font-size:13px;color:#5c6f85;margin:0}.about-strip{margin:0 4.2% 40px;padding:30px;border-radius:20px;background:linear-gradient(110deg,#edf6ff,#fff);border:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px}.about-strip h2{margin:0 0 8px;color:var(--navy)}.about-strip p{margin:0;color:#526b86;max-width:780px}.site-footer{background:#061a35;color:#d9e8f8;padding:35px 4.2% 18px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:28px}.site-footer h3{color:#fff;margin-top:0}.site-footer a{color:#b9dcff}.copyright{border-top:1px solid rgba(255,255,255,.14);margin-top:25px;padding-top:14px;font-size:12px;color:#9eb4cb}.content-wrap{max-width:1120px;margin:35px auto;padding:0 22px}.content-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:clamp(22px,4vw,45px);box-shadow:var(--shadow)}.content-card h1,.content-card h2{color:var(--navy)}.content-card img{border-radius:12px}.pagination{display:flex;gap:8px;margin-top:25px}.pagination a,.pagination span{padding:8px 14px;background:#edf5ff;border-radius:8px}.mobile-menu-label{display:none;color:#fff;font-weight:800}.screen-reader-text{position:absolute;left:-9999px}
@media(max-width:900px){.hero-chip{left:4%;width:170px;height:170px}.hero-chip svg{width:110px}.category-grid{grid-template-columns:repeat(2,1fr)}.features{grid-template-columns:repeat(2,1fr)}.feature:nth-child(2){border-left:0}.feature{border-bottom:1px solid #d8e4f0}.posts-grid{grid-template-columns:repeat(2,1fr)}.main-nav{align-items:flex-start;flex-direction:column;padding:10px 4%}.main-nav ul{width:100%}.main-nav a{padding:10px 12px}.search-form{width:100%}}
@media(max-width:600px){.topline{display:none}.brand-band{padding:15px 4%;gap:10px}.brand-mark{width:48px;height:48px}.brand-name{font-size:34px}.brand-copy{display:none}.hero{min-height:390px;padding:40px 7%}.hero-chip{opacity:.22;left:-20px;width:190px;height:190px}.hero-inner{max-width:100%}.hero h1{font-size:38px}.hero p{font-size:15px}.features{padding:12px 3%}.feature{padding:10px 5px}.feature b{font-size:13px}.category-grid,.posts-grid{grid-template-columns:1fr 1fr;gap:10px}.category-card{padding:14px 12px}.category-card h3{font-size:13px}.section{padding:30px 4%}.section-heading h2{font-size:21px}.about-strip{margin:0 4% 28px;padding:20px;display:block}.footer-grid{grid-template-columns:1fr}.main-nav ul{gap:0}.main-nav li{width:auto}.main-nav a{font-size:12px;padding:8px}.main-nav .sub-menu{min-width:190px}.search-form{min-width:0}}


/* Footer Social Icons - 5Volt */

.site-footer .footer-social {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin-top: 15px !important;
    direction: ltr !important;
}

.site-footer .footer-social a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.site-footer .footer-social a svg {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
}





/* Independent pagination for each homepage category */
.category-pagination{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:26px auto 0;direction:rtl}
.category-pagination .page-link{display:inline-flex;align-items:center;justify-content:center;min-width:92px;padding:9px 18px;border:1px solid #c9def2;border-radius:24px;background:#edf5ff;color:#075fb8;font-size:14px;font-weight:800;transition:background .2s,color .2s,transform .2s}
.category-pagination .page-link:hover{background:#0878e8;color:#fff;transform:translateY(-1px)}
.category-pagination .page-status{font-size:13px;color:#64748b;font-weight:700}

/* =========================
   FIVEVOLT COMMENTS
========================= */
.comments-section {
    width: min(850px, 100%);
    margin: 36px auto 55px;
    direction: rtl;
}
.comments-section .comments-area {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 8px 28px rgba(16, 24, 40, .04);
}
.comments-title {
    margin: 0 0 24px;
    color: #172033;
    font-size: 22px;
    font-weight: 800;
}
.comments-section .comment-list {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}
.comments-section .comment-list .comment {
    list-style: none;
    padding: 18px 0;
    border-bottom: 1px solid #edf0f5;
}
.comments-section .comment-author {
    font-weight: 700;
    color: #172033;
}
.comments-section .comment-author img {
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 8px;
}
.comments-section .comment-metadata,
.comments-section .comment-metadata a {
    color: #98a2b3;
    font-size: 12px;
}
.comments-section .comment-content {
    margin-top: 10px;
    color: #475467;
    line-height: 2;
}
.comment-respond-wrap {
    margin-top: 28px;
}
.comment-respond-wrap .comment-reply-title {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 800;
    color: #172033;
}
.comment-respond-wrap .comment-notes,
.comments-closed {
    color: #667085;
    font-size: 13px;
    margin-bottom: 16px;
}
.comment-respond-wrap .comment-form p {
    margin: 0 0 16px;
}
.comment-respond-wrap label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}
.comment-respond-wrap input[type="text"],
.comment-respond-wrap input[type="email"],
.comment-respond-wrap textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    font: inherit;
    outline: none;
}
.comment-respond-wrap input:focus,
.comment-respond-wrap textarea:focus {
    border-color: #1769ff;
    box-shadow: 0 0 0 3px rgba(23,105,255,.10);
}
.comment-respond-wrap textarea {
    min-height: 145px;
    resize: vertical;
}
.comment-respond-wrap .form-submit {
    margin-top: 18px !important;
}
.comment-respond-wrap input[type="submit"] {
    border: 0;
    border-radius: 10px;
    padding: 12px 25px;
    background: #1769ff;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}
.comment-respond-wrap input[type="submit"]:hover {
    background: #0757df;
    transform: translateY(-1px);
}
.comments-section .children {
    margin: 15px 22px 0 0;
    padding: 0;
}
@media (max-width: 700px) {
    .comments-section { margin: 25px auto 40px; }
    .comments-section .comments-area { padding: 22px 17px; }
    .comments-title { font-size: 19px; }
}
