/* 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: 1320px; /* 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: 1320px;
    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;
}



/* -----------------------------------------------------------
   FIX FOR DARK MODE HEADINGS & TITLES
   ----------------------------------------------------------- */

/* 1. Main Article Title */
[data-bs-theme="dark"] .article-title {
    color: #ffffff !important; /* Pure white for maximum impact */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Subtle shadow to lift it off the dark bg */
}

/* 2. Headings inside the article text (h2, h3, h4...) */
[data-bs-theme="dark"] #first-part h1, 
[data-bs-theme="dark"] #first-part h2, 
[data-bs-theme="dark"] #first-part h3, 
[data-bs-theme="dark"] #first-part h4,
[data-bs-theme="dark"] #full-content h1, 
[data-bs-theme="dark"] #full-content h2, 
[data-bs-theme="dark"] #full-content h3, 
[data-bs-theme="dark"] #full-content h4 {
    color: #f8f9fa !important; /* Almost white (Bootstrap 'light') */
    margin-top: 1.5rem; /* Ensure spacing in dark mode so it doesn't look cramped */
    font-weight: 600;
}

/* 3. Section Headers (Recommended Articles, Comments, etc.) */
[data-bs-theme="dark"] h3, 
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] .alert-heading {
    color: #e9ecef !important; /* Very light gray */
}

/* 4. "Key Highlights" Box Specific Fix */
[data-bs-theme="dark"] .highlight-block .alert {
    background-color: #2c3034; /* Dark slate background */
    border: 1px solid #373b3e;
    color: #ffda6a !important; /* RESTORED: Soft Gold/Yellow text */
}

/* Ensure the "Key Highlights" Title matches the yellow text */
[data-bs-theme="dark"] .highlight-block .alert-heading {
    color: #ffda6a !important;
    font-weight: bold;
}

/* Optional: Make the horizontal line (hr) inside the alert visible/yellowish */
[data-bs-theme="dark"] .highlight-block hr {
    border-top-color: rgba(255, 218, 106, 0.3);
}

/* -----------------------------------------------------------
   FIX FOR DARK MODE TEXT READABILITY
   ----------------------------------------------------------- */

/* 1. Target the specific divs your JS creates */
[data-bs-theme="dark"] #first-part, 
[data-bs-theme="dark"] #full-content,
[data-bs-theme="dark"] .article-content {
    color: #e2e3e5 !important; /* Almost white (gray-200) - Easy on eyes */
    font-size: 1.05rem; /* Optional: Slight bump for readability */
    line-height: 1.7;   /* Improves reading flow */
}

/* 2. Target paragraphs specifically (in case WYSIWYG adds styles) */
[data-bs-theme="dark"] #first-part p, 
[data-bs-theme="dark"] #full-content p {
    color: #e2e3e5 !important; 
}

/* 3. Fix the Links inside the article (make them lighter blue) */
[data-bs-theme="dark"] #first-part a, 
[data-bs-theme="dark"] #full-content a {
    color: #6ea8fe !important; /* Bootstrap's cyan-300 */
    text-decoration: underline;
    text-decoration-color: rgba(110, 168, 254, 0.5);
}

/* 4. Fix List Items (bullets/numbers) */
[data-bs-theme="dark"] #first-part li, 
[data-bs-theme="dark"] #full-content li {
    color: #e2e3e5 !important;
}