/*
Theme Name: ErrorCodeWorld
Theme URI: https://errorcodeworld.com/
Author: OpenAI
Description: قالب عربي متجاوب لموقع عالم الأعطال والصيانة، مع صفحة رئيسية مخصصة وأقسام للأجهزة وأكواد الأعطال.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: errorcodeworld
*/
:root{
 --ecw-navy:#102C46;--ecw-blue:#1684B8;--ecw-ink:#263746;--ecw-muted:#718096;
 --ecw-light:#EAF3F8;--ecw-border:#D5E1EA;--ecw-bg:#F4F7FA;--ecw-white:#fff;
 --ecw-radius:14px;--ecw-shadow:0 8px 28px rgba(16,44,70,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ecw-bg);color:var(--ecw-ink);font-family:"Tajawal",Tahoma,Arial,sans-serif;font-size:17px;line-height:1.8}
a{color:var(--ecw-blue);text-decoration:none}
a:hover{color:var(--ecw-navy)}
img{max-width:100%;height:auto}
.container{width:min(1180px,calc(100% - 36px));margin-inline:auto}
.site-header{background:#fff;border-bottom:1px solid var(--ecw-border)}
.header-inner{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;flex-direction:column;line-height:1.35}
.site-title{font-size:27px;font-weight:800;color:var(--ecw-navy)}
.site-description{font-size:14px;color:var(--ecw-blue)}
.main-nav ul{display:flex;align-items:center;gap:6px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.main-nav a{display:block;padding:10px 12px;color:var(--ecw-ink);font-weight:700;border-radius:8px;font-size:15px}
.main-nav a:hover,.main-nav .current-menu-item>a{background:var(--ecw-light);color:var(--ecw-blue)}
.mobile-menu-toggle{display:none;background:var(--ecw-navy);color:#fff;border:0;border-radius:8px;padding:9px 14px;font:inherit}
.hero{background:var(--ecw-navy);color:#fff;padding:64px 0 58px;text-align:center}
.hero-inner{max-width:900px;margin-inline:auto}
.hero h1{font-size:clamp(30px,4vw,44px);line-height:1.35;margin:0 0 10px;color:#fff;font-weight:800}
.hero h2{font-size:clamp(21px,2.5vw,27px);margin:0 0 12px;color:#fff}
.hero p{max-width:760px;margin:0 auto 28px;color:var(--ecw-light);font-size:18px}
.hero-search{width:100%;max-width:760px;margin:0 auto}
.hero-search form{display:flex;flex-direction:column;gap:12px;width:100%;margin:0}
.hero-search label{display:block;width:100%;margin:0}
.hero-search .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hero-search input[type="search"]{display:block;width:100%;height:54px;padding:12px 18px;border:2px solid #fff;border-radius:9px;background:#fff;color:var(--ecw-ink);font:inherit;outline:none}
.hero-search input[type="search"]:focus{border-color:#8ed5f5;box-shadow:0 0 0 3px rgba(22,132,184,.25)}
.hero-search input[type="submit"]{display:block;width:100%;height:52px;border:0;border-radius:9px;background:var(--ecw-blue);color:#fff;font:700 17px inherit;cursor:pointer}
.hero-search input[type="submit"]:hover{background:#0f719f}
.section{padding:48px 0}
.section-heading{text-align:center;margin:0 0 26px}
.section-heading h2{font-size:29px;color:var(--ecw-navy);margin:0 0 5px}
.section-heading p{color:var(--ecw-muted);margin:0}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.category-card{display:flex;align-items:center;gap:16px;min-height:116px;padding:22px;background:#fff;border:1px solid var(--ecw-border);border-radius:var(--ecw-radius);box-shadow:var(--ecw-shadow);transition:transform .2s,border-color .2s}
.category-card:hover{transform:translateY(-3px);border-color:var(--ecw-blue)}
.category-icon{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:13px;background:var(--ecw-light);color:var(--ecw-blue);font-size:27px}
.category-card h3{margin:0;color:var(--ecw-navy);font-size:19px}
.category-card p{margin:3px 0 0;color:var(--ecw-muted);font-size:14px;line-height:1.6}
.latest-section{background:#fff}
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.post-card{overflow:hidden;background:#fff;border:1px solid var(--ecw-border);border-radius:var(--ecw-radius);box-shadow:var(--ecw-shadow)}
.post-thumb{display:block;aspect-ratio:16/9;background:var(--ecw-light);overflow:hidden}
.post-thumb img{width:100%;height:100%;object-fit:cover}
.post-card-content{padding:18px}
.post-card h3{font-size:19px;line-height:1.5;margin:0 0 8px;color:var(--ecw-navy)}
.post-card p{margin:0;color:var(--ecw-muted);font-size:15px}
.post-meta{font-size:13px;color:var(--ecw-muted);margin-bottom:8px}
.text-link{display:inline-block;margin-top:12px;font-weight:700}
.empty-state{padding:25px;background:#fff;border:1px dashed var(--ecw-border);border-radius:12px;text-align:center}
.content-wrap{padding:42px 0}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px}
.content-main,.sidebar-widget,.article-card{background:#fff;border:1px solid var(--ecw-border);border-radius:var(--ecw-radius);padding:25px}
.entry-title{font-size:34px;line-height:1.4;color:var(--ecw-navy);margin:0 0 15px}
.entry-content h2,.entry-content h3{color:var(--ecw-navy);line-height:1.5}
.entry-content h2{font-size:27px}.entry-content h3{font-size:22px}
.entry-content p{margin:0 0 20px}
.sidebar-widget{margin-bottom:18px}
.sidebar-widget h2{font-size:20px;color:var(--ecw-navy);margin:0 0 12px}
.site-footer{background:var(--ecw-navy);color:var(--ecw-light);margin-top:30px}
.footer-main{padding:38px 0;display:grid;grid-template-columns:2fr 1fr 1fr;gap:28px}
.site-footer h2,.site-footer h3{color:#fff;margin:0 0 12px;font-size:19px}
.site-footer p{margin:0;color:var(--ecw-light)}
.site-footer a{color:#fff}
.footer-menu{list-style:none;margin:0;padding:0}
.footer-menu li{margin:5px 0}
.footer-bottom{background:#0B2033;padding:13px 0;text-align:center;font-size:14px;color:var(--ecw-light)}
.pagination{margin-top:25px}
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.pagination a,.pagination span{padding:7px 13px;border-radius:7px;background:#fff;border:1px solid var(--ecw-border)}
@media(max-width:850px){
 .header-inner{min-height:72px;flex-wrap:wrap;padding:12px 0}
 .mobile-menu-toggle{display:block}
 .main-nav{display:none;width:100%}.main-nav.is-open{display:block}
 .main-nav ul{display:block}.main-nav a{padding:9px 5px}
 .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .content-layout{grid-template-columns:1fr}
 .footer-main{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
 body{font-size:16px}
 .container{width:min(100% - 26px,1180px)}
 .hero{padding:44px 0}
 .hero p{font-size:16px}
 .category-grid,.post-grid{grid-template-columns:1fr}
 .category-card{min-height:95px;padding:17px}
 .section{padding:36px 0}
 .section-heading h2{font-size:25px}
 .entry-title{font-size:28px}
 .content-main{padding:18px}
 .footer-main{grid-template-columns:1fr}
}

/* =================================
   ErrorCodeWorld - New Hero Design
================================= */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #102C46 0%, #174C70 55%, #102C46 100%);
    padding: 76px 0 68px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 340px;
    height: 340px;
    top: -190px;
    right: -100px;
    background: rgba(255,255,255,.045);
}

.hero::after {
    width: 260px;
    height: 260px;
    bottom: -170px;
    left: -70px;
    background: rgba(22,132,184,.16);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 49px);
    margin-bottom: 12px;
    letter-spacing: -.5px;
}

.hero h2 {
    font-size: clamp(23px, 3vw, 30px);
    margin-bottom: 16px;
    color: #BDE7FA;
}

.hero p {
    max-width: 720px;
    margin: 0 auto 30px;
    color: #E5F1F8;
    font-size: 18px;
    line-height: 1.9;
}

.hero-search {
    max-width: 780px;
    margin: 0 auto;
}

.hero-search form {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
}

.hero-search label {
    flex: 1;
    min-width: 0;
}

.hero-search input[type="search"] {
    height: 58px;
    border: 0;
    border-radius: 9px;
    padding: 12px 18px;
    background: #fff;
    font-size: 16px;
}

.hero-search input[type="search"]:focus {
    box-shadow: none;
    border: 0;
    outline: 2px solid #BDE7FA;
    outline-offset: -2px;
}

.hero-search input[type="submit"] {
    width: 155px;
    min-width: 155px;
    height: 58px;
    border-radius: 9px;
    background: #1684B8;
    font-size: 16px;
    transition: background .2s ease, transform .2s ease;
}

.hero-search input[type="submit"]:hover {
    background: #0D6F9F;
    transform: translateY(-1px);
}

.hero-examples {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
    color: #D9EAF5;
    font-size: 14px;
}

.hero-example {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 30px;
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* Mobile hero */
@media (max-width: 600px) {
    .hero {
        padding: 48px 0 45px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 23px;
    }

    .hero-search form {
        flex-direction: column;
        padding: 8px;
    }

    .hero-search input[type="search"] {
        height: 52px;
    }

    .hero-search input[type="submit"] {
        width: 100%;
        min-width: 0;
        height: 50px;
    }

    .hero-examples {
        gap: 7px;
        font-size: 13px;
    }
}

/* =================================
   ErrorCodeWorld - Category Cards
================================= */

.category-grid {
    gap: 22px;
}

.category-card {
    position: relative;
    min-height: 132px;
    padding: 23px;
    border: 1px solid #E2EAF0;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 5px 20px rgba(16,44,70,.055);
    transition: transform .25s ease,
                box-shadow .25s ease,
                border-color .25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #1684B8;
    box-shadow: 0 13px 30px rgba(16,44,70,.12);
}

.category-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #EAF5FB;
    color: #1684B8;
    font-size: 30px;
    transition: background .25s ease,
                color .25s ease,
                transform .25s ease;
}

.category-card:hover .category-icon {
    background: #1684B8;
    color: #FFFFFF;
    transform: scale(1.06);
}

.category-card h3 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 5px;
    color: #102C46;
    transition: color .2s ease;
}

.category-card:hover h3 {
    color: #1684B8;
}

.category-card p {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    color: #718096;
}

@media (max-width: 600px) {
    .category-grid {
        gap: 13px;
    }

    .category-card {
        min-height: 105px;
        padding: 17px;
        border-radius: 13px;
    }

    .category-icon {
        width: 53px;
        height: 53px;
        flex-basis: 53px;
        font-size: 25px;
    }

    .category-card h3 {
        font-size: 18px;
    }

    .category-card p {
        font-size: 13px;
    }
}

/* =================================
   ErrorCodeWorld - Latest Articles
================================= */

.latest-section {
    background: #F4F7FA;
    padding: 58px 0;
}

.latest-section .section-heading {
    margin-bottom: 32px;
}

.latest-section .post-grid {
    gap: 24px;
}

.latest-section .post-card {
    border: 1px solid #E2EAF0;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 5px 22px rgba(16,44,70,.055);
    transition: transform .25s ease, box-shadow .25s ease;
}

.latest-section .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(16,44,70,.12);
}

.latest-section .post-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #EAF3F8;
}

.latest-section .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.latest-section .post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.latest-section .post-card-content {
    padding: 21px;
}

.latest-section .post-meta {
    display: inline-block;
    margin-bottom: 10px;
    color: #1684B8;
    font-size: 13px;
    font-weight: 700;
}

.latest-section .post-card h3 {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.latest-section .post-card h3 a {
    color: #102C46;
    transition: color .2s ease;
}

.latest-section .post-card h3 a:hover {
    color: #1684B8;
}

.latest-section .post-card p {
    color: #718096;
    font-size: 15px;
    line-height: 1.9;
}

.latest-section .text-link {
    margin-top: 15px;
    font-size: 15px;
    font-weight: 800;
}

.latest-section .empty-state {
    border-radius: 15px;
    padding: 35px 20px;
}

@media (max-width: 600px) {
    .latest-section {
        padding: 40px 0;
    }

    .latest-section .post-grid {
        gap: 17px;
    }

    .latest-section .post-card-content {
        padding: 17px;
    }

    .latest-section .post-card h3 {
        font-size: 19px;
    }
}

/* Category Archive Pages */
.category-header {
    background: #f4f8fb;
    border-right: 4px solid #1684B8;
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 28px;
}

.category-label {
    display: inline-block;
    color: #1684B8;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-title {
    color: #102C46;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
}

.category-description {
    color: #526477;
    font-size: 16px;
    line-height: 1.9;
}

.category-posts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

/* الأجهزة اللوحية */
@media (max-width: 900px) {
    .category-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* الهواتف */
@media (max-width: 700px) {
    .category-posts {
        grid-template-columns: 1fr;
    }
}

.category-posts .article-card {
    background: #fff;
    border: 1px solid #e7edf2;
    border-radius: 14px;
    overflow: hidden;
    margin: 0;
    transition: transform .25s ease, box-shadow .25s ease;
}

.category-posts .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 44, 70, .09);
}

.category-post-image {
    display: block;
    overflow: hidden;
}

.category-post-image img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.category-post-content {
    padding: 20px;
}

.category-post-content .entry-title {
    font-size: 19px;
    line-height: 1.7;
    margin: 0 0 10px;
}

.category-post-content .entry-title a {
    color: #102C46;
    text-decoration: none;
}

.category-post-content .entry-title a:hover {
    color: #1684B8;
}

.category-post-content .post-meta {
    color: #82909d;
    font-size: 13px;
    margin-bottom: 12px;
}

.category-post-content .entry-content {
    color: #596b7a;
    line-height: 1.8;
}

.category-empty {
    text-align: center;
    background: #f4f8fb;
    border-radius: 14px;
    padding: 45px 20px;
}

.category-empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.category-empty h2 {
    color: #102C46;
    font-size: 22px;
}

.category-empty p {
    color: #647586;
    line-height: 1.9;
}

.category-pagination {
    margin-top: 28px;
}

@media (max-width: 700px) {
    .category-posts {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 23px;
    }

    .category-header {
        padding: 22px 18px;
    }
}

/* =================================
   ErrorCodeWorld Single Article
================================= */

.ecw-single-article {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 15px;
    padding: 28px;
    margin-bottom: 25px;
}

.ecw-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #788898;
    font-size: 13px;
    margin-bottom: 16px;
}

.ecw-article-meta a {
    color: #1684B8;
    text-decoration: none;
}

.ecw-article-title {
    color: #102C46;
    font-size: 30px;
    line-height: 1.6;
    font-weight: 800;
    margin: 0 0 24px;
}

.ecw-featured-image {
    margin-bottom: 28px;
    overflow: hidden;
    border-radius: 13px;
}

.ecw-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

.ecw-article-content {
    color: #34495e;
    font-size: 17px;
    line-height: 2;
}

.ecw-article-content p {
    margin-bottom: 20px;
}

.ecw-article-content h2 {
    color: #102C46;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.6;
    border-right: 4px solid #1684B8;
    padding-right: 13px;
    margin: 38px 0 18px;
}

.ecw-article-content h3 {
    color: #1684B8;
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 14px;
}

.ecw-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.ecw-article-content ul,
.ecw-article-content ol {
    padding-right: 25px;
    margin-bottom: 22px;
}

.ecw-article-content li {
    margin-bottom: 10px;
}

.ecw-article-content blockquote {
    background: #f2f7fa;
    border-right: 4px solid #1684B8;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 25px 0;
    color: #40566a;
}

.ecw-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    overflow-x: auto;
}

.ecw-article-content th {
    background: #102C46;
    color: #fff;
}

.ecw-article-content th,
.ecw-article-content td {
    border: 1px solid #e1e8ee;
    padding: 12px;
    text-align: right;
}

.ecw-toc {
    background: #f3f8fb;
    border: 1px solid #dceaf2;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 25px 0 35px;
}

.ecw-toc h2 {
    color: #102C46;
    font-size: 19px;
    margin: 0 0 14px;
}

.ecw-toc ul {
    margin: 0;
    padding-right: 22px;
}

.ecw-toc li {
    margin-bottom: 9px;
    color: #1684B8;
}

.ecw-toc a {
    color: #40566a;
    text-decoration: none;
}

.ecw-toc a:hover {
    color: #1684B8;
}

.ecw-toc .ecw-toc-sub {
    padding-right: 18px;
    font-size: 14px;
}

.ecw-article-footer {
    background: #f3f8fb;
    border-radius: 12px;
    padding: 22px;
    margin-top: 35px;
    color: #526477;
}

.ecw-article-footer strong {
    color: #102C46;
    font-size: 18px;
}

.ecw-article-footer a {
    color: #1684B8;
    font-weight: 700;
    text-decoration: none;
}

.ecw-post-navigation {
    margin: 25px 0;
}

.ecw-post-navigation a {
    color: #1684B8;
    text-decoration: none;
}

.ecw-related {
    margin: 35px 0;
}

.ecw-related > h2 {
    color: #102C46;
    font-size: 23px;
    border-right: 4px solid #1684B8;
    padding-right: 12px;
    margin-bottom: 20px;
}

.ecw-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ecw-related-card {
    background: #fff;
    border: 1px solid #e7edf2;
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 15px;
}

.ecw-related-image {
    display: block;
    overflow: hidden;
}

.ecw-related-image img {
    width: 100%;
    height: 150px;
    display: block;
    object-fit: cover;
}

.ecw-related-card h3 {
    font-size: 16px;
    line-height: 1.7;
    padding: 0 14px;
    margin: 14px 0;
}

.ecw-related-card h3 a {
    color: #102C46;
    text-decoration: none;
}

.ecw-related-card .text-link {
    margin: 0 14px;
}

.ecw-comments {
    margin: 30px 0;
}

@media (max-width: 700px) {
    .ecw-single-article {
        padding: 18px;
    }

    .ecw-article-title {
        font-size: 23px;
    }

    .ecw-article-content {
        font-size: 16px;
    }

    .ecw-article-content h2 {
        font-size: 21px;
    }

    .ecw-article-content h3 {
        font-size: 18px;
    }

    .ecw-related-grid {
        grid-template-columns: 1fr;
    }

    .ecw-article-meta {
        gap: 10px;
    }
}

/* =========================================
   ErrorCodeWorld - Homepage Design Refinement
   ========================================= */

/* Featured guides and error codes */
.ecw-featured-section,
.ecw-codes-section {
    padding-top: 55px;
    padding-bottom: 55px;
}

.ecw-featured-section {
    background: #F4F7FA;
}

.ecw-codes-section {
    background: #ffffff;
}

.ecw-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ecw-codes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* Article cards */
.ecw-featured-section .post-card,
.ecw-codes-section .post-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5edf3;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(16, 44, 70, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ecw-featured-section .post-card:hover,
.ecw-codes-section .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(16, 44, 70, 0.12);
}

/* Featured images */
.ecw-featured-section .post-thumb,
.ecw-codes-section .post-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eaf1f6;
}

.ecw-featured-section .post-thumb img,
.ecw-codes-section .post-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ecw-featured-section .post-card:hover .post-thumb img,
.ecw-codes-section .post-card:hover .post-thumb img {
    transform: scale(1.04);
}

/* Card content */
.ecw-featured-section .post-card-content,
.ecw-codes-section .post-card-content {
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.ecw-featured-section .post-card-content h3,
.ecw-codes-section .post-card-content h3 {
    margin: 10px 0;
    color: #102C46;
    font-size: 19px;
    line-height: 1.7;
}

.ecw-featured-section .post-card-content h3 a,
.ecw-codes-section .post-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.ecw-featured-section .post-card-content p,
.ecw-codes-section .post-card-content p {
    color: #596b7b;
    font-size: 14px;
    line-height: 1.9;
}

.ecw-featured-section .text-link,
.ecw-codes-section .text-link {
    display: inline-block;
    margin-top: 12px;
    color: #1684B8;
    font-weight: 700;
    text-decoration: none;
}

.ecw-featured-section .text-link:hover,
.ecw-codes-section .text-link:hover {
    color: #102C46;
}

/* Section labels */
.ecw-featured-label {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 20px;
    background: #eaf5fb;
    color: #1684B8;
    font-size: 12px;
    font-weight: 700;
}

/* How the website helps */
.ecw-how-section {
    padding: 60px 0;
    background: #F4F7FA;
}

.ecw-how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ecw-how-card {
    padding: 26px 22px;
    background: #ffffff;
    border: 1px solid #e5edf3;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(16, 44, 70, 0.05);
}

.ecw-how-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #102C46;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.ecw-how-card h3 {
    color: #102C46;
    font-size: 18px;
    margin-bottom: 10px;
}

.ecw-how-card p,
.ecw-how-note {
    color: #596b7b;
    font-size: 14px;
    line-height: 1.9;
}

.ecw-how-note {
    margin-top: 25px;
    padding: 14px 18px;
    border-right: 4px solid #1684B8;
    border-radius: 5px;
    background: #ffffff;
}

/* Tablet */
@media (max-width: 900px) {
    .ecw-featured-grid,
    .ecw-how-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .ecw-featured-section,
    .ecw-codes-section,
    .ecw-how-section {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .ecw-featured-grid,
    .ecw-codes-grid,
    .ecw-how-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ecw-featured-section .post-card-content,
    .ecw-codes-section .post-card-content {
        padding: 18px;
    }

    .ecw-featured-section .post-card-content h3,
    .ecw-codes-section .post-card-content h3 {
        font-size: 17px;
    }

    .ecw-how-card {
        padding: 22px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ecw-featured-section .post-card,
    .ecw-codes-section .post-card,
    .ecw-featured-section .post-thumb img,
    .ecw-codes-section .post-thumb img {
        transition: none;
    }
}