:root {
    --tgik-ink: #111827;
    --tgik-muted: #5d6675;
    --tgik-red: #c8232c;
    --tgik-red-dark: #8f1219;
    --tgik-gold: #f5b51b;
    --tgik-night: #090d16;
    --tgik-surface: #ffffff;
    --tgik-soft: #f3f5f8;
    --tgik-border: #dfe3e8;
    --tgik-shadow: 0 14px 38px rgba(9, 13, 22, .1);
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--tgik-soft);
    color: var(--tgik-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}
a { color: var(--tgik-red-dark); text-underline-offset: .18em; }
a:hover { color: var(--tgik-red); }
img { max-width: 100%; height: auto; }

.site-header { position: sticky !important; top: 0; z-index: 1040; width: 100%; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0; box-shadow: 0 5px 24px rgba(0,0,0,.2); }
.site-header .navbar { min-height: 64px; padding-top: .35rem; padding-bottom: .35rem; background: linear-gradient(105deg, var(--tgik-night), #182131); }
.site-header .container-xl { width: min(calc(100% - 2rem), 1180px); max-width: 1180px !important; padding-right: 0; padding-left: 0; }
.site-header .navbar-brand { flex-shrink: 0; }
.site-header nav { position: static !important; width: auto !important; }
.site-header nav ul,
.site-header .navbar-nav { margin-top: 0 !important; margin-bottom: 0 !important; }
.site-header nav ul li { margin-bottom: 0 !important; }
.site-header .navbar-brand { margin-top: 0 !important; }
.navbar-brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: .01em; }
.brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--tgik-gold); border-radius: 50%; color: var(--tgik-gold); font-size: .9rem; }
.site-header .nav-link { margin: .15rem; padding: .55rem .7rem !important; border-radius: .4rem; color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 650; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.site-header .nav-link.active { box-shadow: inset 0 -2px 0 var(--tgik-gold); }

/* Keep legacy headers on the same visible brand mark until their navigation is migrated. */
body > header:not(.site-header) .logo img { display: none !important; }
body > header:not(.site-header) .logo {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
}
body > header:not(.site-header) .logo::before {
    content: "GK";
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--tgik-gold);
    border-radius: 50%;
    color: var(--tgik-gold);
    font-size: .9rem;
    font-weight: 800;
}
body > header:not(.site-header) .logo::after { content: "The Great Indian Khali"; }
body > header:not(.site-header) {
    position: sticky;
    top: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none !important;
    min-height: 76px;
    margin: 0 !important;
    padding: 0 max(1rem, calc((100vw - 1180px) / 2));
    overflow: visible;
    box-sizing: border-box;
    background: linear-gradient(105deg, var(--tgik-night), #182131);
    box-shadow: 0 5px 24px rgba(0,0,0,.2);
}
body > header:not(.site-header) .logo { margin: 0 2rem 0 0; padding: 1rem 0; }
body > header:not(.site-header) nav { position: static; flex: 1 1 auto; width: auto; }
body > header:not(.site-header) nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem; margin: 0; padding: 0; list-style: none; }
body > header:not(.site-header) nav ul li { display: block; margin: 0; }
body > header:not(.site-header) nav ul li a { display: block; padding: .55rem .7rem; border-radius: .4rem; color: rgba(255,255,255,.84); font-size: .9rem; font-weight: 650; text-decoration: none; }
body > header:not(.site-header) nav ul li a:hover { background: rgba(255,255,255,.1); color: #fff; }
body > header:not(.site-header) .footer { display: none; }
body > header:not(.site-header) #menu_icon, body > header:not(.site-header) .close_menu { display: none; }

/* Compatibility layer for the existing page markup. */
body > .site-header { display: block !important; }
.main { width: 100% !important; min-height: 0; height: auto !important; padding-left: 0 !important; background: transparent !important; }
section.main, .main-content { max-width: 1180px !important; margin: 2rem auto !important; padding: 0 1rem !important; }
body.home-page section.main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; width: min(calc(100% - 2rem), 1180px) !important; margin: 1.25rem auto !important; padding: 0 !important; overflow: hidden; }
body.home-page section.main #switcher, body.home-page section.main > .work_title { grid-column: 1 / -1; }
body.home-page section.main > .work { order: 1; }
body.home-page section.main #switcher { order: 2; }
body.home-page section.main > .work_title { order: 3; }
.quiz-list-page section.main,
.wrestler-list-page section.main { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.quiz-list-page section.main #switcher,
.wrestler-list-page section.main #switcher { grid-column: 1 / -1; }
.quiz-list-page .main .work,
.wrestler-list-page .main .work { min-height: 105px; aspect-ratio: 16 / 7; }
.quiz-list-page .work .caption .work_title,
.wrestler-list-page .work .caption .work_title { padding: .6rem .85rem; }
.quiz-list-page .main .work .caption h1,
.wrestler-list-page .main .work .caption h1 { padding: .2rem 0 !important; font-size: .95rem !important; line-height: 1.25; }
.main .work { width: auto !important; height: auto !important; float: none !important; min-height: 105px; aspect-ratio: 16 / 7; border-radius: .8rem; box-shadow: var(--tgik-shadow); background: var(--tgik-surface); }
.main .work .media { width: 100%; height: 100% !important; min-height: 0; object-fit: cover; }
.main .work .caption { background: linear-gradient(180deg, rgba(9,13,22,.12), rgba(9,13,22,.94)) !important; opacity: 1 !important; }
.work .caption .work_title { top: auto !important; bottom: 0; margin: 0 !important; padding: 1rem; }
.main .work .caption h1 { margin: 0 !important; padding: .5rem 0 !important; color: #fff !important; border: 0 !important; font-family: inherit !important; font-size: 1.05rem !important; font-weight: 750; }

/* Profile article cards use a short, compact banner rather than the tall
   portfolio ratio used by listing pages. */
.profile-page .main #switcher .work {
    height: 180px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
}

.main-content { display: grid !important; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.blogtab { width: auto !important; min-width: 0; margin-left: 0 !important; }
.sidetab { width: auto !important; }
.sidetab .title, .blog-wrap { border: 1px solid var(--tgik-border) !important; border-radius: .8rem; background: #fff; overflow: hidden; box-shadow: 0 5px 18px rgba(9,13,22,.05); }
.sidetab .title { margin-bottom: 1rem !important; padding-bottom: .7rem; }
.sidetab .title:last-child { padding-bottom: 1rem !important; }
.sidetab .title h3, .yellow-bar-title { background: linear-gradient(105deg, var(--tgik-red-dark), var(--tgik-red)) !important; color: #fff !important; border-radius: .7rem .7rem 0 0 !important; padding: .7rem 1rem !important; }
.sidetab .title h3 { font-size: 1rem !important; }
.sidetab .title h3:after { display: none !important; }
.main-content .menu { display: flex; flex-wrap: wrap; gap: .1rem; border-radius: .7rem !important; background: var(--tgik-night) !important; padding: .35rem .5rem !important; }
.main-content .sub-menu .menu-anchor { padding: .65rem .75rem !important; color: #fff !important; font-weight: 650; }
.yellow-bar-title { margin-top: 1rem !important; }
.yellow-bar-title:empty { display: none; }
.blog-wrap { margin: 1rem 0 !important; padding: 1.25rem; }
.blogs h3 { color: var(--tgik-ink) !important; border-bottom-color: var(--tgik-gold) !important; font-size: 1.05rem !important; }
.blog-wrap img { border-radius: .55rem; }
.part2 .container { max-width: none; padding: 0; }
.part2 .row { margin: 1rem -.5rem !important; }
.thumbnail { height: 100%; padding: .55rem; border: 1px solid var(--tgik-border); border-radius: .75rem; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.thumbnail:hover { transform: translateY(-3px); box-shadow: var(--tgik-shadow); }
.thumbnail a { display: block; color: var(--tgik-ink); text-decoration: none; }
.thumbnail img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .5rem; box-shadow: none !important; }
.video-player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .65rem; background: #000; }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.site-footer { background: var(--tgik-night); color: #cbd2dc; }
.site-footer hr { border-color: rgba(255,255,255,.16); }
.footer-brand { color: #fff; font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .9rem; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { color: var(--tgik-gold); }
.back-to-top { display: none; position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--tgik-red); color: #fff; box-shadow: var(--tgik-shadow); font-size: 1.4rem; }
.back-to-top.is-visible { display: block; }
#myBtn { display: none !important; }

@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding-top: .75rem; }
    body.home-page section.main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-content { grid-template-columns: 1fr; }
    .blogtab { order: 1; }
    .sidetab { order: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 767.98px) {
    body.home-page section.main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
}
@media (max-width: 575.98px) {
    .navbar-brand span:last-child { font-size: 1rem; }
    body.home-page section.main { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .75rem !important; }
    .sidetab { grid-template-columns: 1fr; }
    .main-content .menu { display: flex !important; position: static !important; width: auto !important; }
    .menu-icon, .menu-btn { display: none !important; }
    .blog-wrap { padding: 1rem; }
    .quiz-list-page section.main,
    .wrestler-list-page section.main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .quiz-list-page .main .work,
    .wrestler-list-page .main .work,
    .main .work { min-height: 82px; aspect-ratio: 3 / 2; }
    .profile-page .main #switcher .work {
        height: 130px !important;
    }
}
