/* Basic Reset */
@import url('https://fonts.googleapis.com/css2?family=Literata&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body
body {
    font-family: 'Literata', 'Helvetica Neue', Arial, sans-serif;

    line-height: 1.6;
} */



/* Header */
header {
    background-color: #003366; /* Dark blue for trust */
    color: #fff;
    padding: 2px 0;
}

.navbar {
    max-width: 1200px; /* Centered container */
    margin: 0 auto; /* Center horizontally */
    padding: 0 15px; /* Padding for small screens */
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffcc00; /* Yellow for revolution */
    text-transform: uppercase;
}

.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-link {
    color: #fff;
    margin: 0 14px; /* Spacing between menu items */
    font-weight: 500;
    position: relative; /* Position for the animation effect */
    display: inline-block; /* Ensures the link has space around it */
    overflow: hidden; /* Hide the animation overflow */
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #ffcc00; /* Yellow underline */
    transform: translateX(-50%) scaleX(0); /* Initial state (hidden) */
    transform-origin: bottom right;
    transition: transform 0.3s ease; /* Animation for underline */
}

.navbar-nav .nav-link:hover::before {
    transform: translateX(-50%) scaleX(1); /* Animation state (visible) */
}

.navbar-nav .nav-link:hover {
    color: #ffcc00; /* Hover effect with yellow */
    transition: color 0.3s;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-color: #ffcc00; /* Yellow for toggler icon */
    border-radius: 4px;
}

.navbar-toggler-icon::before {
    content: '\2630'; /* Unicode for hamburger icon */
    font-size: 1.5rem;
    color: #003366; /* Dark blue for better contrast */
    display: block;
    text-align: center;
    line-height: 1.5;
}

.dropdown-menu {
    background-color: #003366; /* Match with header */
    border: none;
    width: max-content;
}

.dropdown-item {
    color: #fff;
}

.dropdown-item:hover {
    background-color: #ffcc00; /* Hover color for dropdown items */
    color: #003366;
}

.logout-form button {
    background-color: #ff4d4d; /* Red for emphasis */
    color: #fff;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 4%;
}

.logout-form button:hover {
    background-color: #e60000; /* Darker red on hover */
    transition: background-color 0.3s;
}




/* Category css*/
.scroll-container {
           position: relative;
           overflow: hidden;
           width: 100%;
           border: none; /* Ensure no border */
       }

       .category-scroll {
           display: flex;
           overflow-x: auto;
           white-space: nowrap;
           padding: 10px 0;
           -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
       }
/* drk and white theme category button fix  start -------------------------------------------------------------------------------- */

/* Category scroll container styles */
.category-scroll {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
}

/* Default category item styling */
.category-item {
  display: inline-block;
  margin: 0 10px;
  padding: 5px;
  background: #f8f9fa; /* Light background for light theme */
  border-radius: 5px; /* Optional: rounded corners */
  font-size: 14px; /* Adjust font size */
  color: #333; /* Dark text for light background */
  text-align: center;
}

/* Hover effect for category items */
.category-item:hover {

  color: #007bff; /* White text on hover */
}

/* Links inside category items */
.category-item a {
  text-decoration: none; /* Remove underline from links */
  color: inherit; /* Match link color with the parent */
  font-weight: 500; /* Bold text */
}

/* Hover effect for links inside category items */
.category-item a:hover {
  color: #007bff; /* White text color for links on hover */
}

/* Dark theme styling */
[data-bs-theme="dark"] .category-item {
  background-color: #343a40; /* Dark background for dark theme */
  color: #f8f9fa; /* Light text for dark background */
}

/* Hover effect for category items in dark theme */
[data-bs-theme="dark"] .category-item:hover {
  /* background-color: #007bff; /* Light blue background on hover in dark theme */ */
  color: #007bff; /* White text on hover in dark theme */
}
/* drk and white theme category button fix  start  */




       .scroll-button {
           position: absolute;
           top: 50%;
           transform: translateY(-50%);
           /* background: rgba(255, 255, 255, 0.7); */
           border: none;
           border-radius: 50%;
           cursor: pointer;
           width: 40px;
           height: 40px;
           display: flex;
           align-items: center;
           justify-content: center;
           box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
           z-index: 10;
       }

       .scroll-button-left {
           left: 10px;
       }

       .scroll-button-right {
           right: 10px;
       }

       .scroll-button svg {
           width: 20px;
           height: 20px;
       }

       .scroll-container::-webkit-scrollbar {
           height: 8px;
       }

       .scroll-container::-webkit-scrollbar-thumb {
           background-color: #888;
           border-radius: 4px;
       }

       .scroll-container::-webkit-scrollbar-thumb:hover {
           background-color: #555;
       }

       /* Always visible button styles */
       .scroll-button.hidden {
           opacity: 0;
           pointer-events: none;
       }

       .scroll-button.visible {
           opacity: 1;
           pointer-events: auto;
       }

/* Main Content */
main {
    padding: 1% 2% 4%; /* Default for mobile and tablets */
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    /* background: #fff; */
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

/* For laptops and desktops (larger screens) */
@media (min-width: 1200px) {
    main {
        padding: 1% 1% 4%; /* Adjusted padding for larger screens */
    }
}



/* Footer */
footer {
    background-color: #003366; /* Dark blue */
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
        margin-top: 10px;
    }


}

@media (max-width: 768px) {
    .navbar {
        padding: 0 7px; /* Less padding on small screens */
    }

    .navbar-toggler-icon {
        background-color: #ffcc00; /* Yellow for toggler icon */
        color: #003366; /* Dark blue for better contrast */
    }

    .dropdown-menu {
        position: static; /* Dropdowns below toggler */
        border-radius: 0;
    }
}



button#themeToggle.btn.btn-outline-secondary, button#themeToggle.btn.btn-outline-light
{
  display: inline-block;
  padding: 6px 12px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  background-image: none;

}


div.col-md-6.footer-links.mb-3.mb-md-0{
  font-size: small;
}
