/* Android Gid homepage redesign layer */
.is-home {
    background: #f3f7f4;
}

.is-home .site-main {
    padding-top: 0;
}

.hero-home {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 44px 0 28px;
    background:
        linear-gradient(90deg, rgba(10, 29, 31, 0.92) 0%, rgba(10, 29, 31, 0.72) 42%, rgba(10, 29, 31, 0.18) 100%),
        url("/static/img/home/android-diagnostic-hero.jpg") center / cover no-repeat;
    color: #fff;
    border-bottom: 0;
    text-align: left;
}

.hero-home::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(243, 247, 244, 0), #f3f7f4);
    pointer-events: none;
}

.hero-home .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
    gap: 28px;
    align-items: end;
    min-height: 628px;
}

.home-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 11px;
    border: 1px solid rgba(148, 237, 224, 0.42);
    background: rgba(13, 148, 136, 0.16);
    color: #bff7ee;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-home h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.3rem, 5.5vw, 5.2rem);
    line-height: 0.98;
    font-weight: 850;
    letter-spacing: 0;
}

.hero-home h1 span {
    color: #f0b45b;
}

.hero-desc {
    max-width: 650px;
    margin: 0 0 26px;
    color: #d7eee9;
    font-size: 1.08rem;
    line-height: 1.65;
}

.search-hero {
    max-width: 650px;
    margin: 0 0 18px;
    position: relative;
    z-index: 20;
}

.search-hero input {
    width: 100%;
    height: 58px;
    padding: 0 18px 0 50px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #102322;
    font: 600 1rem var(--font-body);
    outline: none;
    box-shadow: 0 20px 46px rgba(2, 18, 17, 0.28);
}

.search-hero input:focus {
    border-color: #f0b45b;
    box-shadow: 0 0 0 4px rgba(240, 180, 91, 0.24), 0 20px 46px rgba(2, 18, 17, 0.28);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d9488;
    font-size: 1.1rem;
}

.hero-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    overflow-y: auto;
    max-height: 380px;
    border: 1px solid #d9e5e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(8, 28, 26, 0.24);
    z-index: 50;
}

.sd-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    color: #193735;
    border-bottom: 1px solid #edf2ef;
}

.sd-item:hover,
.sd-item.sd-active {
    background: #eefaf7;
}

.sd-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e8f7f4;
}

.sd-info {
    min-width: 0;
}

.sd-title,
.sd-slug {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-title {
    color: #173331;
    font-size: 0.92rem;
    font-weight: 700;
}

.sd-slug,
.sd-empty {
    color: #697974;
    font-size: 0.78rem;
}

.sd-empty {
    padding: 18px;
    text-align: center;
}

.hero-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
}

.hero-quick a,
.console-card,
.station-card,
.category-card,
.article-home-card,
.recent-card {
    border-radius: 8px;
}

.hero-quick a {
    min-height: 76px;
    padding: 12px;
    color: #e8fbf6;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-quick strong,
.hero-quick span {
    display: block;
}

.hero-quick strong {
    margin-bottom: 3px;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.25;
}

.hero-quick span {
    color: #a9d9d1;
    font-size: 0.75rem;
    line-height: 1.35;
}

.hero-console {
    padding: 18px;
    color: #e9fbf8;
    background: rgba(7, 24, 25, 0.72);
    border: 1px solid rgba(166, 232, 219, 0.25);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.console-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #95d8cf;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.signal-list {
    display: grid;
    gap: 10px;
}

.signal-list a {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    color: #f6fffd;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.signal-list b,
.signal-list a > span:not(.signal-dot),
.signal-list a > span:not(.signal-dot) span {
    display: block;
}

.signal-list b {
    font-size: 0.9rem;
    line-height: 1.25;
}

.signal-list a > span:not(.signal-dot) span {
    color: #abcfc9;
    font-size: 0.76rem;
    line-height: 1.35;
}

.signal-list .signal-dot {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0b45b;
    color: #142524;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.home-section {
    padding: 42px 0;
    opacity: 1;
    transform: none;
}

.home-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: #142524;
    font-size: 1.55rem;
    line-height: 1.2;
}

.home-section-title span {
    color: var(--primary);
}

.home-section-subtitle {
    max-width: 680px;
    margin: 0 0 22px;
    color: #5c706b;
    font-size: 0.96rem;
}

.console-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
}

.featured-card {
    display: grid;
    min-height: 100%;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, #0f2e31, #123b3a 56%, #7c4b19);
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
}

.featured-card:hover,
.article-home-card:hover,
.recent-card:hover,
.category-card:hover,
.station-card:hover {
    transform: translateY(-3px);
}

.featured-badge {
    width: fit-content;
    margin-bottom: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(240, 180, 91, 0.18);
    color: #ffd38f;
    font-size: 0.74rem;
    font-weight: 800;
}

.featured-title {
    max-width: 700px;
    margin-bottom: 12px;
    font-size: clamp(1.45rem, 3vw, 2.5rem);
    font-weight: 830;
    line-height: 1.08;
}

.featured-desc {
    max-width: 690px;
    color: #c5dfdb;
    line-height: 1.6;
}

.featured-cta {
    margin-top: 22px;
    color: #ffcf82;
    font-weight: 800;
}

.featured-visual {
    display: none;
}

.console-side {
    display: grid;
    gap: 12px;
}

.console-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #dfe9e4;
    box-shadow: var(--shadow-sm);
}

.console-card b {
    display: block;
    margin-bottom: 6px;
    color: #132d2b;
    font-size: 1rem;
}

.console-card span {
    color: #667a75;
    font-size: 0.88rem;
    line-height: 1.45;
}

.visual-stations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.station-card {
    overflow: hidden;
    color: #142524;
    background: #fff;
    border: 1px solid #dfe9e4;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.station-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1.45;
    object-fit: cover;
}

.station-card div {
    padding: 16px;
}

.station-card h3 {
    margin: 0 0 7px;
    color: #142524;
    font-size: 1.02rem;
    line-height: 1.25;
}

.station-card p {
    margin: 0;
    color: #64746f;
    font-size: 0.87rem;
    line-height: 1.48;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.category-card {
    min-height: 138px;
    padding: 14px;
    color: #183735;
    background: #fff;
    border: 1px solid #dfe9e4;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card::before {
    display: none;
}

.category-card:nth-child(1),
.category-card:nth-child(10) {
    grid-column: span 2;
}

.category-card:nth-child(2),
.category-card:nth-child(4),
.category-card:nth-child(6) {
    background: #102f31;
    color: #fff;
    border-color: #102f31;
}

.category-card:hover {
    border-color: #0d9488;
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.12);
}

.category-icon {
    display: block;
    margin-bottom: 12px;
    font-size: 1.7rem;
}

.category-name {
    margin-bottom: 7px;
    font-weight: 800;
    line-height: 1.25;
}

.category-count {
    color: inherit;
    opacity: 0.72;
    font-size: 0.78rem;
    line-height: 1.35;
}

.recent-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.recent-card,
.article-home-card {
    background: #fff;
    border: 1px solid #dfe9e4;
    color: #193735;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.recent-card {
    flex: 0 0 280px;
    padding: 16px;
}

.recent-badge,
.article-home-tag {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #87520c;
    background: #fff1d9;
    font-size: 0.68rem;
    font-weight: 800;
}

.recent-title,
.article-home-title {
    color: #193735;
    font-weight: 800;
    line-height: 1.35;
}

.recent-cat {
    display: inline-flex;
    margin-top: 12px;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 700;
}

.articles-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.article-home-card {
    display: flex;
    min-height: 170px;
    padding: 18px;
    flex-direction: column;
}

.article-home-desc {
    margin-top: 8px;
    color: #667a75;
    font-size: 0.86rem;
    line-height: 1.5;
    flex: 1;
}

.article-home-tag {
    margin: 14px 0 0;
    color: #0f766e;
    background: #e8f7f4;
}

.refresh-row {
    margin-top: 24px;
    text-align: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #0d9488;
    border-radius: 8px;
    background: #fff;
    color: #0f766e;
    font: 800 0.9rem var(--font-body);
    cursor: pointer;
}

.btn-outline:hover {
    background: #0d9488;
    color: #fff;
}

.info-note {
    padding: 22px;
    color: #29423f;
    background: #e8f7f4;
    border: 1px solid #cbece5;
    border-radius: 8px;
    line-height: 1.65;
}

.cta-banner {
    padding: 30px;
    color: #fff;
    background: linear-gradient(135deg, #102f31, #173f3c 58%, #8b5b1e);
    border-radius: 8px;
}

.cta-banner h2 {
    max-width: 720px;
    margin: 0 0 8px;
    font-size: 1.55rem;
    line-height: 1.2;
}

.cta-banner p {
    max-width: 760px;
    margin: 0;
    color: #d2e9e4;
}

@media (max-width: 980px) {
    .hero-home {
        min-height: auto;
        padding: 36px 0 28px;
    }

    .hero-home .container,
    .console-grid,
    .visual-stations {
        grid-template-columns: 1fr;
    }

    .hero-home .container {
        min-height: auto;
    }

    .hero-console {
        max-width: 520px;
    }

    .categories-grid,
    .articles-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card:nth-child(1),
    .category-card:nth-child(10) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .is-home .mobile-menu-btn {
        display: block;
    }

    .is-home .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 12px 20px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(28, 25, 23, 0.06);
    }

    .is-home .main-nav.open {
        display: flex;
    }
}

@media (max-width: 680px) {
    .hero-home {
        padding: 28px 0 18px;
    }

    .hero-home h1 {
        font-size: 2.25rem;
    }

    .hero-desc {
        font-size: 0.98rem;
    }

    .hero-quick,
    .categories-grid,
    .articles-home-grid {
        grid-template-columns: 1fr;
    }

    .hero-quick a {
        min-height: auto;
    }

    .home-section {
        padding: 30px 0;
    }
}
