/* TechHunar - Global styles */

:root {
    --th-navy: #0F172A;
    --th-blue: #1E3A8A;
    --th-orange: #F97316;
    --th-orange-dark: #EA580C;
    --th-slate-50: #F8FAFC;
    --th-slate-100: #F1F5F9;

    --bs-primary: #1E3A8A;
    --bs-primary-rgb: 30, 58, 138;
    --bs-link-color: #1E3A8A;
    --bs-link-hover-color: #EA580C;
    --bs-body-color: #1E293B;
    --bs-body-bg: #FFFFFF;
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--th-navy);
    font-weight: 700;
}

/* Primary button = Deep Tech Blue */
.btn-primary {
    --bs-btn-bg: #1E3A8A;
    --bs-btn-border-color: #1E3A8A;
    --bs-btn-hover-bg: #0F172A;
    --bs-btn-hover-border-color: #0F172A;
    --bs-btn-active-bg: #0F172A;
    --bs-btn-active-border-color: #0F172A;
    --bs-btn-disabled-bg: #1E3A8A;
    --bs-btn-disabled-border-color: #1E3A8A;
}

/* Accent button = Orange (sirf CTA aur important actions ke liye) */
.btn-accent {
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: #F97316;
    --bs-btn-border-color: #F97316;
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: #EA580C;
    --bs-btn-hover-border-color: #EA580C;
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: #EA580C;
    --bs-btn-active-border-color: #EA580C;
    --bs-btn-disabled-color: #FFFFFF;
    --bs-btn-disabled-bg: #F97316;
    --bs-btn-disabled-border-color: #F97316;
}


/* Header */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    overflow-x: clip;
}

.th-header {
    display: contents;
}
.th-topbar {
    background: var(--th-navy);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.th-topbar .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.th-topbar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.th-topbar a:hover {
    color: var(--th-orange);
}
.th-topbar-info {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}
.th-topbar-info svg {
    width: 14px;
    height: 14px;
    margin-right: 0.45rem;
    vertical-align: -2px;
    color: var(--th-orange);
}
.th-topbar-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.th-topbar-social svg {
    width: 15px;
    height: 15px;
}

.th-navbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.3s ease;
}
.th-header.is-scrolled .th-navbar {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.th-logo {
    display: block;
    height: 60px;
    width: auto;
}
.th-navbar .nav-link {
    position: relative;
    padding: 0.6rem 0.8rem;
    color: var(--th-navy);
    font-weight: 600;
}
.th-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.25rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1E3A8A, #F97316);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.th-navbar .nav-link:hover,
.th-navbar .nav-link:focus {
    color: var(--th-blue);
}
.th-navbar .nav-link:hover::after,
.th-navbar .nav-link.active::after {
    transform: scaleX(1);
}
.th-navbar .nav-link.active {
    color: var(--th-orange-dark);
}
.th-call {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    animation: th-pulse 2.8s infinite;
}
.th-call svg {
    width: 18px;
    height: 18px;
}
@keyframes th-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
    70%  { box-shadow: 0 0 0 12px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}
.th-accent {
    color: var(--th-orange);
}
@media (max-width: 1199.98px) {
    .th-navbar {
        background: #FFFFFF;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .th-offcanvas {
        max-width: 85vw;
    }
    .th-navbar .nav-link {
        padding: 0.9rem 0;
        font-size: 1.05rem;
        border-bottom: 1px solid #E2E8F0;
    }
    .th-navbar .nav-link::after {
        display: none;
    }
    .th-call {
        justify-content: center;
        width: 100%;
        margin-top: 1.2rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .th-call { animation: none; }
}

/* Footer */
.th-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0F172A 0%, #0A1020 100%);
    color: rgba(255, 255, 255, 0.72);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #1E3A8A, #F97316) 1;
}
.th-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at top, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at top, #000 20%, transparent 75%);
}
.th-footer::after {
    content: "";
    position: absolute;
    top: -160px;
    right: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: #F97316;
    filter: blur(110px);
    opacity: 0.18;
    pointer-events: none;
}
.th-footer > div {
    position: relative;
    z-index: 1;
}
.th-footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.th-footer a:hover {
    color: var(--th-orange);
}
.th-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.th-footer-brand img {
    width: 52px;
    height: 52px;
    padding: 4px;
    border-radius: 14px;
    background: #FFFFFF;
}
.th-footer .th-footer-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
}
.th-footer-brand-name small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--th-orange);
}
.th-footer-title {
    position: relative;
    margin-bottom: 1.4rem;
    padding-bottom: 0.7rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #FFFFFF;
}
.th-footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #F97316, #FBBF24);
}
.th-footer-links li {
    margin-bottom: 0.55rem;
}
.th-footer-links a:hover {
    padding-left: 0.35rem;
}
.th-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}
.th-footer-contact svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    color: var(--th-orange);
}
.th-footer-social {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.2rem;
}
.th-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.th-footer-social a:hover {
    background: var(--th-orange);
    border-color: var(--th-orange);
    color: #FFFFFF;
    transform: translateY(-3px);
}
.th-footer-social svg {
    width: 20px;
    height: 20px;
}
.th-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}
.th-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
}

/* Back to top */
.th-totop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--th-orange);
    color: #FFFFFF;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}
.th-totop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.th-totop:hover {
    background: var(--th-orange-dark);
    color: #FFFFFF;
}
.th-totop svg {
    width: 22px;
    height: 22px;
}

/* Error pages */
.th-error {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
}
.th-error::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.th-error .container {
    position: relative;
    z-index: 1;
}
.th-error-code {
    font-size: clamp(5rem, 16vw, 9rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, #F97316, #FBBF24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.th-error h1 {
    margin: 1rem 0 0.6rem;
    color: #FFFFFF;
}
.th-error p {
    max-width: 32rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}



/* Inner page hero */
.th-page-hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
}
.th-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.th-page-hero::after {
    content: "";
    position: absolute;
    top: -150px;
    right: -100px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: #F97316;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
}
.th-page-hero .container {
    position: relative;
    z-index: 1;
}
.th-page-hero h1 {
    margin: 0.6rem 0 0.8rem;
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: #FFFFFF;
}
.th-page-hero p {
    max-width: 38rem;
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
}
.th-breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}
.th-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
.th-breadcrumb a:hover {
    color: var(--th-orange);
}

/* Bullet list */
.th-list {
    margin: 0 0 1.2rem;
    padding: 0;
    list-style: none;
}
.th-list li {
    position: relative;
    margin-bottom: 0.55rem;
    padding-left: 1.6rem;
}
.th-list li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316, #FBBF24);
}


/* Legal / long text pages */
.th-prose {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #334155;
}
.th-prose h2 {
    margin: 2.2rem 0 0.8rem;
    font-size: 1.4rem;
}
.th-prose h2:first-child {
    margin-top: 0;
}
.th-prose p,
.th-prose ul {
    margin-bottom: 1rem;
}
.th-prose ul {
    padding-left: 1.3rem;
}
.th-prose li {
    margin-bottom: 0.4rem;
}
.th-prose a {
    color: var(--th-blue);
}
.th-prose a:hover {
    color: var(--th-orange-dark);
}


/* Illustrated card banners */
.th-art {
    position: relative;
    overflow: hidden;
    aspect-ratio: 400 / 220;
    margin-bottom: 1.2rem;
    border-radius: 14px;
}
.th-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
}
.th-art svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}
.th-card:hover .th-art svg {
    transform: scale(1.03);
}
.th-art-blue   { background: linear-gradient(135deg, #1E3A8A, #2563EB); }
.th-art-navy   { background: linear-gradient(135deg, #0F172A, #1E3A8A); }
.th-art-orange { background: linear-gradient(135deg, #EA580C, #F97316); }
.th-art-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 220;
    margin-bottom: 1.2rem;
    border-radius: 14px;
    object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
    .th-art svg { transition: none; }
    .th-card:hover .th-art svg { transform: none; }
}


/* Mega menu */
.th-mega-head {
    display: flex;
    align-items: center;
}
.th-mega-toggle {
    display: none;
}
.th-mega-inner {
    padding-top: 1.8rem;
    padding-bottom: 1.4rem;
}
.th-mega-cols {
    display: grid;
    gap: 1.5rem 2rem;
}
.th-mega-cols-courses {
    grid-template-columns: repeat(4, 1fr);
}
.th-mega-cols-services {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem 1.5rem;
}
.th-mega-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, #1E3A8A, #2563EB);
    color: #FFFFFF;
}
.th-mega-ico svg {
    width: 20px;
    height: 20px;
}
.th-mega-cat {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #E2E8F0;
    font-weight: 700;
    line-height: 1.3;
    color: var(--th-navy);
    text-decoration: none;
}
.th-mega-cat:hover {
    color: var(--th-orange-dark);
}
.th-mega-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.th-mega-col li a {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.th-mega-col li a:hover {
    padding-left: 0.35rem;
    color: var(--th-orange-dark);
}
.th-mega-svc {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.th-mega-svc:hover {
    background: #F1F5F9;
}
.th-mega-svc .th-mega-ico {
    background: linear-gradient(135deg, #F97316, #EA580C);
}
.th-mega-svc strong {
    display: block;
    line-height: 1.3;
    color: var(--th-navy);
}
.th-mega-svc small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #64748B;
}
.th-mega-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    margin-top: 1.4rem;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    background: #F1F5F9;
    font-size: 0.92rem;
    color: #475569;
}
.th-mega-foot a {
    font-weight: 700;
    color: var(--th-blue);
    text-decoration: none;
}
.th-mega-foot a:hover {
    color: var(--th-orange-dark);
}

@media (min-width: 1200px) {
    .th-mega-item {
        position: static;
    }
    .th-mega-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        margin-left: -0.5rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--th-navy);
    }
    .th-mega-toggle svg {
        width: 14px;
        height: 14px;
        transition: transform 0.25s ease;
    }
    .th-mega-item:hover .th-mega-toggle svg,
    .th-mega-item:focus-within .th-mega-toggle svg,
    .th-mega-item.is-open .th-mega-toggle svg {
        transform: rotate(180deg);
    }
    .th-mega {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 5;
        background: #FFFFFF;
        border-top: 1px solid #E2E8F0;
        box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }
    .th-mega::before {
        content: "";
        position: absolute;
        top: -20px;
        left: 0;
        right: 0;
        height: 20px;
    }
    .th-mega-item:hover > .th-mega,
    .th-mega-item:focus-within > .th-mega,
    .th-mega-item.is-open > .th-mega {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

@media (max-width: 1199.98px) {
    .th-mega-head {
        align-items: stretch;
    }
    .th-mega-head .nav-link {
        flex: 1 1 auto;
    }
    .th-mega-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 48px;
        border: 0;
        border-bottom: 1px solid #E2E8F0;
        background: transparent;
        color: var(--th-navy);
    }
    .th-mega-toggle svg {
        width: 18px;
        height: 18px;
        transition: transform 0.25s ease;
    }
    .th-mega-item.is-open .th-mega-toggle svg {
        transform: rotate(180deg);
    }
    .th-mega {
        display: none;
        padding: 0.8rem 0 0.4rem 0.6rem;
    }
    .th-mega-item.is-open > .th-mega {
        display: block;
    }
    .th-mega-inner {
        max-width: none;
        padding: 0;
    }
    .th-mega-cols-courses,
    .th-mega-cols-services {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .th-mega-foot {
        margin-top: 0.8rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .th-mega,
    .th-mega-toggle svg {
        transition: none;
    }
}