/* =============================================
   HIMACHALGOVT — TECHNOLOGY (TechCrunch-style)
   Prefix: hgt- | Brand cyan: #00adee / #009fda
   ============================================= */

.hgt-tech-page #page,
.hgt-tech-page #content,
.hgt-tech-page .inside-page-header,
.hgt-tech-page .site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hgt-tech-wrap {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(to top, #ffffff 0%, #ffffff 68%, #f8fcff 100%);
    color: #050505;
    width: 100%;
}

/* ── Brand bar ── */
.hgt-brand-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #00adee;
    padding: 10px 24px;
}

.hgt-brand-logo {
    background: #050505;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 7px;
    letter-spacing: -0.5px;
}

.hgt-brand-name {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* ── Hero grid ── */
.hgt-hero-grid {
    display: grid;
    grid-template-columns: 1fr 340px 260px;
    gap: 2px;
    background: #e5e5e5;
    max-width: 100%;
}

.hgt-hero-main {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.hgt-hero-main-img {
    min-height: 420px;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.hgt-hero-main:hover .hgt-hero-main-img {
    transform: scale(1.02);
}

.hgt-hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.hgt-hero-main-title {
    margin: 8px 0 6px;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hgt-hero-main-meta {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.hgt-hero-mid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hgt-hero-mid-card {
    flex: 1;
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.hgt-hero-mid-img {
    min-height: 209px;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.hgt-hero-mid-card:hover .hgt-hero-mid-img {
    transform: scale(1.03);
}

.hgt-hero-mid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 65%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
}

.hgt-hero-mid-title {
    margin: 6px 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.hgt-hero-mid-meta {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.hgt-hero-side {
    background: #fff;
    padding: 20px 18px;
    border-left: 1px solid #e5e5e5;
}

.hgt-side-head {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 800;
    color: #050505;
}

.hgt-side-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.hgt-side-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 14px;
}

.hgt-side-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    background: #00adee;
}

.hgt-side-list a {
    font-size: 13px;
    font-weight: 600;
    color: #050505;
    text-decoration: none;
    line-height: 1.35;
}

.hgt-side-list a:hover {
    color: #00adee;
}

.hgt-side-promo {
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    padding: 14px;
    font-size: 12px;
}

.hgt-side-promo strong {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.hgt-side-promo p {
    margin: 0 0 10px;
    color: #666;
    line-height: 1.45;
}

.hgt-side-promo a {
    color: #00adee;
    font-weight: 700;
    text-decoration: none;
}

/* ── Category label ── */
.hgt-cat-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #00adee;
    text-transform: uppercase;
}

.hgt-cat-light {
    color: rgba(255,255,255,0.9);
}

/* ── Section headers ── */
.hgt-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.hgt-section-name {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #00adee;
    letter-spacing: -0.3px;
}

.hgt-section-name-lg {
    font-size: 28px;
}

.hgt-see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1.5px solid #050505;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #050505;
    text-decoration: none;
    transition: all 0.18s;
}

.hgt-see-more-btn:hover {
    background: #050505;
    color: #fff;
}

/* ── Latest News ── */
.hgt-latest-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.hgt-latest-list {
    display: flex;
    flex-direction: column;
}

.hgt-latest-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e5e5;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.hgt-latest-item:hover {
    background: #fafafa;
}

.hgt-latest-item:hover .hgt-latest-title {
    color: #00adee;
}

.hgt-latest-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
    background: #eee;
}

.hgt-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hgt-latest-body {
    flex: 1;
    min-width: 0;
}

.hgt-latest-title {
    margin: 6px 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #050505;
    transition: color 0.15s;
}

.hgt-latest-meta {
    margin: 0;
    font-size: 13px;
    color: #767676;
}

.hgt-latest-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hgt-side-box {
    border: 1px solid #e5e5e5;
    padding: 18px;
    background: #fff;
}

.hgt-side-box-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: #00adee;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.hgt-side-box h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
}

.hgt-side-box p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.hgt-side-cta {
    display: inline-block;
    background: #00adee;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 16px;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.hgt-side-recent ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hgt-side-recent li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hgt-side-recent a {
    font-size: 13px;
    font-weight: 600;
    color: #050505;
    text-decoration: none;
}

.hgt-side-recent a:hover {
    color: #00adee;
}

/* ── Topic sections (AI, Startups, etc.) ── */
.hgt-topic-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.hgt-sec-ai .hgt-section-name-lg { color: #00adee; }
.hgt-sec-startups .hgt-section-name-lg { color: #00adee; }
.hgt-sec-security .hgt-section-name-lg { color: #00adee; }
.hgt-sec-venture {
    background: #d4ff00;
    max-width: 100%;
    padding-left: calc((100% - 1200px) / 2 + 24px);
    padding-right: calc((100% - 1200px) / 2 + 24px);
}
.hgt-sec-venture .hgt-section-name-lg { color: #050505; }
.hgt-sec-venture .hgt-see-more-btn { border-color: #050505; }
.hgt-sec-apps .hgt-section-name-lg { color: #00adee; }

.hgt-topic-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: auto auto;
    gap: 2px;
    background: #e5e5e5;
}

.hgt-topic-feat {
    grid-row: span 2;
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.hgt-topic-feat-img {
    height: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

.hgt-topic-feat:hover .hgt-topic-feat-img {
    transform: scale(1.02);
}

.hgt-topic-feat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.hgt-topic-feat-title {
    margin: 8px 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.hgt-topic-feat-meta {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.hgt-topic-second {
    display: block;
    text-decoration: none;
    background: #fff;
    color: inherit;
}

.hgt-topic-second-img {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.hgt-topic-second-body {
    padding: 16px 18px;
}

.hgt-topic-second-title {
    margin: 6px 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #050505;
}

.hgt-topic-second:hover .hgt-topic-second-title {
    color: #00adee;
}

.hgt-topic-second-meta {
    margin: 0;
    font-size: 13px;
    color: #767676;
}

.hgt-topic-snips {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: #e5e5e5;
}

.hgt-topic-snip {
    display: block;
    background: #fff;
    padding: 18px 16px;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid #e5e5e5;
}

.hgt-topic-snip h4 {
    margin: 8px 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #050505;
}

.hgt-topic-snip:hover h4 {
    color: #00adee;
}

.hgt-topic-snip p {
    margin: 0;
    font-size: 12px;
    color: #767676;
}

.hgt-topic-promo {
    background: #1a1a1a;
    color: #fff;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hgt-topic-promo strong {
    font-size: 15px;
    margin-bottom: 6px;
}

.hgt-topic-promo p {
    margin: 0 0 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.45;
}

.hgt-topic-promo a {
    color: #00adee;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

/* ── Empty / pagination ── */
.hgt-empty-state {
    text-align: center;
    padding: 60px 24px;
    color: #666;
}

.hgt-empty-state h2 {
    margin: 0 0 8px;
    color: #050505;
}

.hgt-pagination {
    margin-top: 24px;
    text-align: center;
}

.hgt-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    border: 1px solid #e5e5e5;
    font-size: 13px;
    font-weight: 600;
    color: #050505;
    text-decoration: none;
}

.hgt-pagination .page-numbers.current,
.hgt-pagination .page-numbers:hover {
    background: #00adee;
    border-color: #00adee;
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .hgt-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hgt-hero-side {
        grid-column: span 2;
        border-left: none;
        border-top: 1px solid #e5e5e5;
    }
    .hgt-topic-snips {
        grid-template-columns: repeat(2, 1fr);
    }
    .hgt-sec-venture {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 768px) {
    .hgt-hero-grid {
        grid-template-columns: 1fr;
    }
    .hgt-hero-side {
        grid-column: span 1;
    }
    .hgt-latest-wrap {
        grid-template-columns: 1fr;
    }
    .hgt-topic-grid {
        grid-template-columns: 1fr;
    }
    .hgt-topic-feat {
        grid-row: span 1;
        min-height: 240px;
    }
    .hgt-topic-snips {
        grid-template-columns: 1fr;
    }
    .hgt-latest-thumb {
        width: 90px;
        height: 68px;
    }
    .hgt-latest-title {
        font-size: 15px;
    }
}
