/* Common Menu Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #ecf0f1;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fc;
--nav-gradient-start: #FC466B;
--nav-gradient-end: #3F5EFB;
    --sidebar-bg: #2c3e50;
    --sidebar-header: #1a2530;
    --sidebar-hover: #3498db;
    --sidebar-active: #e74c3c;
}

/* Top Navigation Bar Styles */
nav.navbar {
    background: linear-gradient(135deg, var(--nav-gradient-start), var(--nav-gradient-end));
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] nav.navbar {
    background: linear-gradient(135deg, #343a40, #212529);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.navbar-brand:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link {
    font-weight: 700;
    padding: 0.8rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    color: yellow;
}

.nav-link:hover {
    background: violet;
    color: yellow;
    transform: translateY(-2px);
}

/* Underline Animation */
.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 6px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
    left: 0;
}

/* Dropdown Enhancements */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: fadeInDown 0.3s;
    background: linear-gradient(135deg, #ffe259, #ffa751);
    backdrop-filter: blur(8px);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    margin: 0.2rem 0;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, #4e73df, #224abe);
    color: white !important;
    transform: translateX(2px);
}

/* Dark mode dropdown */
[data-bs-theme="dark"] .dropdown-menu {
    background: orange;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background: linear-gradient(90deg, #29c9ff, #005377);
    color: white !important;
}

/* Hover dropdown functionality for desktop */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    
    .navbar-nav .dropdown-menu {
        margin-top: 0;
    }
}

/* Enhanced Mobile Dropdown Styles */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        display: block !important;
    }

    .navbar-nav .dropdown-menu.show {
        max-height: 500px;
        padding: 0.5rem 0;
        background-color: rgba(0,0,0,0.05);
    }

    .dropdown-item {
        padding: 0.5rem 1.5rem !important;
        color: var(--text-color) !important;
    }

    .dropdown-item:hover {
        background-color: rgba(0,0,0,0.1) !important;
    }

    .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }

    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    /* Special dropdown colors for mobile */
    .tech-dropdown, .gk-dropdown {
        background: var(--bg-color);
    }
    
    .gk-dropdown .dropdown-item {
        color: var(--text-color) !important;
    }
}

/* Left Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    color: #ffffff;
    padding: 20px 0;
    height: 100%;
    position: sticky;
    top: 0;
    overflow-y: auto;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.sidebar-header {
    padding: 15px 20px;
    background-color: var(--sidebar-header);
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid var(--sidebar-hover);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
}

.sidebar-header p {
    margin: 5px 0 0;
    color: #ecf0f1;
    font-size: 0.9rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 8px 15px;
    transform: translateX(0);
    transition: transform 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
}

.sidebar-nav li:hover {
    transform: translateX(5px);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 15px;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-size: 1.0rem;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.sidebar-nav a:hover::before {
    left: 100%;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(52, 152, 219, 0.15);
    color: white;
    border-left: 4px solid var(--sidebar-hover);
}

.sidebar-nav a.active {
    background: rgba(231, 76, 60, 0.15);
    border-left: 4px solid var(--sidebar-active);
    color: #fff;
    font-weight: 500;
}

.sidebar-nav a i {
    width: 22px;
    text-align: center;
    margin-right: 12px;
    font-size: 1rem;
    transition: transform 0.3s;
}

.sidebar-nav a:hover i {
    transform: scale(1.2);
}

/* External links section */
.external-links {
    margin-top: 30px;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.external-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 10px;
}

.external-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.external-links li {
    margin: 8px 0;
}

.external-links a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
    border-radius: 4px;
}

.external-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 3px solid var(--accent-color);
}

.external-links a i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Theme toggle */
.theme-toggle {
    cursor: pointer;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Brand logo animations */
#brandLogo {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Logo image inside top-left navbar brand (used by some topmenubar variants) */
.brand-logo-img {
    height: 52px;
    width: auto;
    max-height: 52px; /* prevents overflow/cropping */
    display: block;
    border-radius: 12px;
    object-fit: contain;
}

#brandLogo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

#brandLogo:hover::before {
    left: 100%;
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 0.8rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    transform-origin: center;
    transition: all 0.3s ease;
}

.logo-text {
    display: inline-block;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    background: linear-gradient(135deg, #7B2CBF 0%, #FF00FF 50%, #3C096C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    text-shadow: 0 0 8px rgba(123, 44, 191, 0.5);
    animation: flashAnimation 4s infinite alternate, gradientFlow 6s linear infinite;
}

@keyframes flashAnimation {
    0%, 100% { opacity: 0.9; }
    25% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 1; }
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

.logo-sub {
    font-size: 1.2rem;
    color: #a6e3ff;
    font-weight: 600;
    display: block;
    letter-spacing: 1px;
    animation: subTextFloat 3s infinite ease-in-out;
}

@keyframes subTextFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

#brandLogo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
    color: #ffde7d;
    text-shadow: 0 0 15px rgba(255,222,125,0.7);
}

/* Responsive styles */
@media (max-width: 992px) {
    .sidebar {
        width: 100%;
        position: relative;
        margin-bottom: 20px;
        max-height: 400px;
        overflow-y: auto;
    }
    
    .page-wrapper {
        flex-direction: column;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Dropdown arrow animation */
.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown-toggle.expanded::after {
    transform: rotate(180deg);
}

/* Keyframes for dropdown animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PREVIOUS NEXT BUTTONS CODE */
.content-navigation {
    background: linear-gradient(to right, #f8f9fc, #ffffff);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-prev, .btn-next {
    min-width: 150px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-prev:hover, .btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-prev:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-next:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}


/* Left Sidebar Submenu Styles */
.sidebar-heading {
    padding: 10px 20px;
    margin: 15px 0 5px 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-submenu {
    position: relative;
}

.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.submenu-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.6);
}

.submenu-arrow.rotated {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 10px;
    margin: 0;
    list-style: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
}

.submenu.expanded {
    max-height: 500px;
}

.submenu li {
    margin: 0;
    border-radius: 0;
}

.submenu a {
    padding-left: 40px !important;
    font-size: 0.95rem;
    border-left: 0 !important;
    position: relative;
}

.submenu a::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.submenu a:hover::before {
    background: var(--sidebar-hover);
}

.submenu a:hover {
    background: rgba(52, 152, 219, 0.1);
    color: white;
}

.submenu a.active {
    background: rgba(231, 76, 60, 0.1);
    color: #fff;
    font-weight: 500;
}

.submenu a.active::before {
    background: var(--sidebar-active);
}

.sidebar-badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Responsive styles for sidebar */
@media (max-width: 992px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 3px 0 15px rgba(0,0,0,0.2);
    }
    
    .sidebar.collapsed {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* Animation for submenu items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.submenu li {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.submenu li:nth-child(1) { animation-delay: 0.05s; }
.submenu li:nth-child(2) { animation-delay: 0.1s; }
.submenu li:nth-child(3) { animation-delay: 0.15s; }
.submenu li:nth-child(4) { animation-delay: 0.2s; }
.submenu li:nth-child(5) { animation-delay: 0.25s; }

/* Footer styles */
.site-footer {
  background: linear-gradient(135deg, #1A2980, #26D0CE);
    color: white;
    padding: 25px 0;
    margin-top: 40px;
    width: 100%;
    flex-shrink: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffde7d;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 20px 0;
    }
    
    .footer-links a {
        display: block;
        margin: 5px 0;
    }
}





  /* Footer stays at the bottom of the page */
  .footer-section {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-top: auto;
    text-align: center;
    background: #0ea5ff;
    color: white;
    padding: 12px 0;
    font-size: 0.9rem;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  }

  /* Ensure layout allows footer to stick to bottom */
  html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  body > .layout {
    flex: 1 0 auto;
  }

  #dynamic-footer {
    flex-shrink: 0;
  }

/* --- GK breadcrumb trail (polished, matches nav gradient) --- */
nav[aria-label="breadcrumb"] {
  display: block;
  margin-top: 0.15rem;
}

nav[aria-label="breadcrumb"] .breadcrumb {
  --bs-breadcrumb-margin-bottom: 0;
  list-style: none;
  margin-bottom: 0;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, rgba(252, 70, 107, 0.08), rgba(63, 94, 251, 0.12));
  border: 1px solid rgba(63, 94, 251, 0.2);
  border-radius: 999px;
  box-shadow:
    0 4px 18px rgba(63, 94, 251, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  animation: gkBreadcrumbIn 0.5s ease forwards;
}

@keyframes gkBreadcrumbIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav[aria-label="breadcrumb"] .breadcrumb-item {
  font-size: 0.93rem;
  letter-spacing: 0.02em;
}

nav[aria-label="breadcrumb"] .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  float: left;
  padding-right: 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: rgba(63, 94, 251, 0.55);
}

nav[aria-label="breadcrumb"] .breadcrumb-item:first-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

nav[aria-label="breadcrumb"] .breadcrumb-item:first-child a::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f015";
  font-size: 0.88em;
  color: #3f5efb;
  opacity: 0.95;
}

nav[aria-label="breadcrumb"] .breadcrumb-item a {
  color: #3451d1;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.4rem;
  padding: 0.12rem 0.4rem;
  margin: -0.12rem -0.4rem;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

nav[aria-label="breadcrumb"] .breadcrumb-item a:hover {
  color: #c12a5a;
  background: rgba(252, 70, 107, 0.12);
  box-shadow: 0 0 0 1px rgba(252, 70, 107, 0.15);
}

nav[aria-label="breadcrumb"] .breadcrumb-item.active {
  color: #1e293b;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  margin-left: 0.05rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, rgba(252, 70, 107, 0.14), rgba(63, 94, 251, 0.14));
  box-shadow: inset 0 0 0 1px rgba(63, 94, 251, 0.12);
}

[data-bs-theme="dark"] nav[aria-label="breadcrumb"] .breadcrumb {
  background: linear-gradient(135deg, rgba(52, 58, 64, 0.65), rgba(33, 37, 41, 0.85));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] nav[aria-label="breadcrumb"] .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(147, 197, 253, 0.45);
}

[data-bs-theme="dark"] nav[aria-label="breadcrumb"] .breadcrumb-item:first-child a::before {
  color: #93c5fd;
}

[data-bs-theme="dark"] nav[aria-label="breadcrumb"] .breadcrumb-item a {
  color: #93c5fd;
}

[data-bs-theme="dark"] nav[aria-label="breadcrumb"] .breadcrumb-item a:hover {
  color: #fecdd3;
  background: rgba(252, 70, 107, 0.18);
  box-shadow: 0 0 0 1px rgba(252, 70, 107, 0.25);
}

[data-bs-theme="dark"] nav[aria-label="breadcrumb"] .breadcrumb-item.active {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (max-width: 576px) {
  nav[aria-label="breadcrumb"] .breadcrumb {
    padding: 0.55rem 0.95rem;
    border-radius: 1rem;
    font-size: 0.86rem;
  }

  nav[aria-label="breadcrumb"] .breadcrumb-item + .breadcrumb-item::before {
    padding-right: 0.4rem;
    font-size: 1rem;
  }
}

/* --- GK entrance motion (replaces Animate.css; uses Bootstrap-like 0.15s–0.2s easing where nested) --- */
@media (prefers-reduced-motion: no-preference) {
  .gk-fade-in {
    animation: gkFadeIn 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  .gk-fade-in-down {
    animation: gkFadeInDown 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  .gk-fade-in-up {
    animation: gkFadeInUp 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  .gk-fade-in-start {
    animation: gkFadeInStart 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  .gk-fade-in-end {
    animation: gkFadeInEnd 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  .gk-zoom-in {
    animation: gkZoomIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
  .gk-delay-1 {
    animation-delay: 1s;
  }
  .gk-delay-2 {
    animation-delay: 2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gk-fade-in,
  .gk-fade-in-down,
  .gk-fade-in-up,
  .gk-fade-in-start,
  .gk-fade-in-end,
  .gk-zoom-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes gkFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gkFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gkFadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gkFadeInStart {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gkFadeInEnd {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gkZoomIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Cross-links between GK pages (same-folder relative URLs) */
.gk-related-nav {
  font-size: 0.9rem;
  line-height: 1.5;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
[data-bs-theme="dark"] .gk-related-nav {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.gk-related-nav a {
  text-decoration: none;
  font-weight: 500;
}
.gk-related-nav a:hover {
  text-decoration: underline;
}
.gk-related-nav .gk-related-sep {
  color: rgba(108, 117, 125, 0.9);
  margin: 0 0.35rem;
  user-select: none;
}

/* SEO summary blocks placed near the top of GK pages */
.gk-top-seo {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.10), rgba(255, 193, 7, 0.12));
  border: 1px solid rgba(52, 152, 219, 0.18);
  border-left: 5px solid #3498db;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  color: #334155;
}
.gk-top-seo p {
  margin-bottom: 0.65rem;
}
.gk-top-seo .gk-top-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.gk-top-seo .gk-top-seo-links a {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(52, 152, 219, 0.18);
  border-radius: 999px;
  color: #0f4c81;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
}
.gk-top-seo .gk-top-seo-links a:hover {
  background: #3498db;
  color: #fff;
}
[data-bs-theme="dark"] .gk-top-seo {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.16), rgba(255, 193, 7, 0.10));
  border-color: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}
[data-bs-theme="dark"] .gk-top-seo .gk-top-seo-links a {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #bfdbfe;
}

/* Logo subtle hover — replaces Animate.css pulse on navbar brand when JS adds class */
.gk-brand-emphasis {
  transition: transform 0.2s ease, filter 0.2s ease;
}
.gk-brand-emphasis:hover {
  transform: scale(1.03);
  filter: brightness(1.08);
}