
body {
    font-family: 'Poppins', sans-serif;
    margin-top: 80px;
    background: #f4f6fb;
    color: #222;
}


/* Header */
.header-bar {
  position: fixed; /* Changed from sticky */
  top: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: top 0.3s ease;
}

.header-hidden {
  top: -100px; /* Pushes header out of view */
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.logo-section {
  display: flex;
  align-items: center;
}

.logo-box {
  width: 50px;
  height: 50px;
  background: #0015FF;   /* your brand blue */
  color: #ffffff;
  display: flex;
  justify-content: center;
  margin-right: 10px;
  align-items: center;
  font-size: 36px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
  font-family: "Inter", sans-serif;
  user-select: none;
}

.logo-box svg {
    width: 60px;
    height: 60px;
    display: block;
    fill: #fff;
}


.logo {
  height: 50px;
  width: 50px;
  border-radius: 10px;
  margin-right: 10px;
}
.site-title {
  font-size: 20px;
  color: #0015ff;
  font-weight: 600;
  margin: 0;
}
.nav-links {
  display: flex;
  gap: 10px;
}
.nav-link {
  padding: 8px 16px;
  background-color: #0015ff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  border: 2px solid #0015ff;
}
.nav-link:hover {
  background-color: white;
  color: #0015ff;
}


/* Page Heading */
.page-title {
    text-align: center;
    font-size: 32px;
    margin: 30px 0;
    font-weight: 700;
}

/* Authors Grid */
.authors-grid {
    max-width: 1000px;
    margin: auto;
    display: grid;
    gap: 15px;
}

/* Base card */
.author-card {
    background: #fff;
    border-radius: 18px;
    padding: 25px 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.author-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* Rainbow Animated Head Badge */
.head-rainbow {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: green;
}

/* Author Image */
.author-img {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 5px 14px rgba(0,0,0,0.15);
    margin-bottom: 15px;
}

/* Name */
.author-name {
    font-size: 24px;
    margin: 5px 0 4px;
    font-weight: 700;
}

/* Role */
.author-role {
    font-size: 15px;
    color: #0015ff;
    font-weight: 600;
}

/* Bio */
.author-bio {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 500px;
}

/* Social Buttons */
.social-icons {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    padding: 8px 16px;
    text-decoration: none;
    font-size: 13px;
    background: #eaf0ff;
    border-radius: 8px;
    color: #0015ff;
    font-weight: 600;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #0015ff;
    color: #fff;
}

/* ============================
   RESPONSIVE LAYOUT SYSTEM
   ============================ */

/* Mobile */
@media (max-width: 650px) {
    .authors-grid {
        grid-template-columns: 1fr;
        margin: 10px;
    }
    .author-card {
        text-align: center;
        align-items: center;
    }
    .author-img {
        margin: auto;
    }
    .head-rainbow {
        right: 10%;
        transform: translateX(50%);
    }
        .social-icons {
        justify-content: center;
    }
    .head-rainbow {
    top: 18px;
    right: 48px;
}

}

/* Tablet */
@media (min-width: 650px) and (max-width: 1024px) {
    .authors-grid {
        grid-template-columns: 1fr 1fr;
        margin: 10px;
    }
    .author-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }    .social-icons {
        justify-content: center;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .authors-grid {
        grid-template-columns: 1fr;
    }
    .author-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 28px;
    }
    .author-img {
        margin-bottom: 0;
    }
}



/* Force vertical scrollbar */
html {
  height: 100%;
  overflow-y: scroll !important;
}

/* Webkit Browsers (Chrome, Edge, Brave, Opera, newer Safari) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #bac6ff;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0015ff;
}

/* Arrows: Only WebKit allows this */
::-webkit-scrollbar-button:single-button {
  display: block;
  background-color: #bec0ff;
  height: 12px;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Up Arrow */
::-webkit-scrollbar-button:single-button:decrement {
  height: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  background-color: transparent;
  background-image: url("../media/up-arrow.png"); /* Replace with correct path */
  /* Make it an up arrow */
}

/* Down Arrow */
::-webkit-scrollbar-button:single-button:increment {
  height: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  background-color: transparent;
  background-image: url("../media/down-arrow.png"); /* Use original image */
}


/* Footer */
.footer {
  background-color: #f0f0f0;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
  width: 100%;  /* Ensure full width */
  box-sizing: border-box;  /* Prevent any overflow */
}
.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100px;
}
.feature-item img {
  width: 40px;
  margin-bottom: 10px;
}

a {
  text-decoration: none;
}
.feature-item {
  display: flex; /* Display type */
  justify-content: center; /* Horizontal alignment */
  align-items: center; /* Vertical alignment */
  flex-direction: column; /* Flexbox layout */
  padding: 1rem; /* Padding for spacing */
  text-align: center; /* Text alignment */
  transition: transform 0.2s ease-in-out; /* Smooth transitions */
}

.feature-item a {
  display: flex; /* Display type */
  flex-direction: column; /* Flexbox layout */
  align-items: center; /* Vertical alignment */
  text-decoration: none;
  color: inherit; /* Text color */
  transition: transform 0.2s ease-in-out; /* Smooth transitions */
}

/* Inline SVG Icon Styling */
.footer-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  color: #0015ff;  /* Icon color (change based on theme) */
  display: block;
}

.feature-item a:hover {
  transform: scale(1.08);
}
.useful-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  font-weight: bold;
  font-size: 16px;
}
.useful-links a {
  text-decoration: none;
  color: #3c00ff;
}
.footer-bar {
  background-color: #fff;
  border-top: 1px solid #DBDBDB;
  padding: 8px;
  color: #000;
  font-weight: 500;
  font-size: 15px;
  position: fixed;  /* Make sure it's at the bottom */
  bottom: 0;  /* Stick to the bottom */
  left: 0;
  width: 100%;  /* Ensure it's full width */
  text-align: center;
  z-index: 1000;
}
a {
  text-decoration: none;
}



/* Sidebar title */
.sidebar-title {
  margin-top: 17px;   /* space below close button */
  margin-bottom: 0px;
  font-size: 20px;
  font-weight: bold;
  text-align: left;
  color: #333;
}

/* Divider line */
.sidebar-divider {
  height: 2px;
  background: #ccc;
  margin: 5px 0 20px;
}
/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 300px;
    height: 100vh; /* full viewport height */
  overflow-y: auto; /* allow scroll if content is longer */

  background: #f5f5f5;
  box-shadow: -2px 0 8px rgba(0,0,0,0.3);
  padding: 0px 20px;
  transition: right 0.3s ease;
  z-index: 9999;
}
.sidebar.open {
  right: 0;
  height: 100vh;
}

/* Sidebar links & buttons */
.sidebar a, .sidebar button:not(.close-btn) {
  display: block;
  margin: 15px 0;   /* consistent spacing */
  padding: 12px;
  text-align: center;
  border-radius: 6px;
  background:  #0015ff;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}
.sidebar a:hover, .sidebar button:not(.close-btn):hover {
  background: #005bb5;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}
/* On mobile, move close button to 10px from top */
@media (max-width: 768px) {
  .close-btn {
    top: 10px;
    right: 15px;
  }
}
/* Default (light mode) */
.dark-mode-card {
  padding: 12px;
  background: #ddd;
  border-radius: 8px;
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000;
}

/* Dark mode version */
body.dark .dark-mode-card {
  background: #333;
  color: #fff;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
}
.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.4s;
}
input:checked + .slider {
  background-color:  #0015ff;
}
input:checked + .slider:before {
  transform: translateX(26px);
}

/* Light / Dark */
body.light { background: #fff; color: #000; }
body.dark { background: #000; color: #fff; }














/* FADE TRANSITION SUPPORT */
body.theme-transition {
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.theme-transition * {
  transition: background-color 0.35s ease, color 0.35s ease;
}




