* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth !important;
  
}

body {
  font-family: 'Roboto', sans-serif !important;
  scroll-behavior: smooth !important;
}

/* Navbar Styling */
.custom-navbar {
  max-width: 80%;
  margin: auto;
  border-radius: 50px;
 
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.shadow {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar-toggler {
  transition: transform 0.3s ease;
  outline: none;
  background: none;
  
}

.navbar-toggler-icon {
  filter: brightness(0.5);
}

/* Search Form Styling */
.search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 0;
}

.search-input {
  width: 200px;
  border-radius: 25px;
  transition: width 0.3s ease;
}
.search-input:focus {
  width: 250px;
}

.search-btn {
  border: none;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-self: center;
}

/* Auth Buttons */
.auth-buttons .login-btn, .auth-buttons .signup-btn {
  border-radius: 25px;
  transition: transform 0.3s ease;
}
.auth-buttons .login-btn:hover, .auth-buttons .signup-btn:hover {
  transform: scale(1.05);
}

/* Toggle Collapse Styling */
.collapse {
  transition: height 0.3s ease, opacity 0.3s ease;
}

.navbar-collapse {
  background-color: transparent; 
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  filter: brightness(0.7);
}

/* Responsive Styling */
@media (max-width: 991px) {
  .navbar-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .search-input {
    width: 10px;
  }
  .auth-buttons .login-btn, .auth-buttons .signup-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 767px) {
  .auth-buttons .login-btn, .auth-buttons .signup-btn {
    font-size: 1rem; /* Smaller font size */
    padding: 0.3rem 0.5rem; /* Compact padding */
    border-radius: 12px; /* Adjusted border radius */
    width: fit-content !important; /* Ensure buttons don't stretch */
  }
  
  .search-input {
    width: 10px; /* Narrower search bar */
  }

  .custom-navbar {
    max-width: 90%; /* Reduced navbar width */
    margin: auto;
    border-radius: 25px; /* Smaller border radius for consistency */
  }
  .search-btn {
   
    margin-top: 10px !important;
  }
 
}



/* Button Styling for Navbar */
.login-btn, .logout-btn {
  border-radius: 25px;
  transition: transform 0.3s ease;
}
.login-btn:hover, .logout-btn:hover {
  transform: scale(1.05);
}

/* Breadcrumb Styling */
.breadcrumb-container {
  padding: 1rem;
  background-color: #f9f9f9;
  animation: fadeIn 1s ease-in-out 0.5s;
}

.breadcrumb {
  margin-bottom: 0;
  background: transparent;
}

/* Carousel Styling */
/* Improved Carousel Styling */
.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  transition: all 0.5s ease-in-out;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.carousel-image {
  height: 70vh;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-caption .responsive-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 0;
  opacity: 0;
  animation: slideInUp 1s 0.3s forwards;
}

.carousel-caption .responsive-description {
  font-size: clamp(1rem, 3vw, 1.5rem);
  max-width: 80%;
  opacity: 0;
  animation: slideInUp 1s 0.6s forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-image {
    height: 50vh;
  }

  .carousel-caption {
    padding: 0.5rem;
  }

  .carousel-caption .responsive-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-caption .responsive-description {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 40px; 
    height: 40px;
  }
  .carousel-control-prev,
  .carousel-control-next {
    width: 10%; /* Expand clickable area for easier navigation on smaller devices */
  }
}

@media (max-width: 480px) {
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 30px; /* Even smaller for very small screens */
    height: 30px;
    background-size: 60%; /* Adjust icon size */
  }
}

 
/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Toggle Animation */
.collapse {
  transition: height 0.3s ease;
}

/* Additional Media Queries for Responsive Design */
@media (max-width: 991px) {
  .navbar-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .search-input {
    width: 200px;
  }
}

@media (max-width: 767px) {
  .search-input {
    width: 150px;
  }
  .login-btn, .logout-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* Responsive Design Adjustments */
@media (max-width: 991px) {
  .custom-navbar .navbar-brand {
    font-size: 1.3rem;
  }

  .breadcrumb-container {
    padding: 0.75rem;
  }

  /* Align buttons center and stack vertically on smaller screens */
  .collapse .btn {
    width: 100%;
    max-width: 200px;
    margin-bottom: 8px;
  }
}



/* Blog Card Styling */
.blog-card {
  border-radius: 25px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  
}

.blog-card:hover {
  transform: scale(1.02);
}

.blog-card .card-img-top {
  
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.blog-card .card-body {
  padding: 20px;
}

.blog-card .card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.blog-card .card-text {
  font-size: 0.9rem;
  color: #555;
}

.badge {
  font-size: 0.8rem;
  padding: 0.5em 1em;
}

/* Loader Styling */

/* Parent container for positioning */
.blog-section {
  position: relative;
  min-height: 300px; /* Prevent layout shifts while loading */
}

/* Loader container */
.loader-container {
  position: absolute; /* Overlay the blog section */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9); /* Subtle overlay */
  z-index: 1050;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease; /* Smooth fade-out */
  visibility: visible;
}

/* Hide loader with smooth transition */
.loader-container.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Modern spinner animation */
.spinner {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 50px;
}
.spinner div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 40px;
  height: 40px;
  margin: 5px;
  border: 5px solid #000000; /* Spinner color */
  border-radius: 50%;
  animation: spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #0c0c0c transparent transparent transparent;
}
.spinner div:nth-child(1) {
  animation-delay: 0.45s;
}
.spinner div:nth-child(2) {
  animation-delay: -0.3s;
}
.spinner div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



/* Like and Comment Buttons */
.like-btn, .comment-btn {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #555;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  
}

.like-btn i, .comment-btn i {
  margin-right: 5px;
}

.like-btn:hover, .comment-btn:hover {
  color: #007bff;
}

.read-more-btn {
  font-size: 0.9rem;
  padding: 0.5em 1em;
  border-radius: 25px;
}

/* Pagination Styling */
.pagination-container{
  display: flex;
  justify-content: center;
  
  
}
.pagination-container .pagination .page-item .page-link {
  color: #007bff;
  
  background-color: transparent;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.pagination-container .pagination .page-item.active .page-link {
  background-color: #007bff;
  color: white;
}

.pagination-container .pagination .page-item .page-link:hover {
  color: white;
  background-color: #007bff;
}

/* Footer Styling */

.footer {
  background-color: rgb(0, 0, 0);
  color: #f8f9fa;
}

.btn-custom {
  background-color: #007bff;
  border-color: #007bff;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-custom:hover {
  background-color: #0056b3;
}

#newsletter {
  max-width: 100%;
  padding: 8px;
  font-size: 0.9rem;
  border-radius: 25px;
  
}




/* Responsive adjustments */
@media (min-width: 768px) {
  #newsletter {
    max-width: 300px;
  }
  .center-it {
    margin-left: auto;
  
  }
}

@media (max-width: 767px) {
  .center-it {
    text-align: center;
  }
  .footer .row {
    margin: 0;
  }
}

/* Custom Popup Styling */
.custom-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 5px;
  color: white;
  font-weight: 500;
  z-index: 4000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
}

.custom-popup.show {
  opacity: 1;
  transform: translateX(0);
}

.success-popup {
  background-color: #28a745;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.error-popup {
  background-color: #dc3545;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}
/* Skeleton Loader Styles */
.skeleton-loader {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

.skeleton-card {
  width: calc(33.333% - 1rem);
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  padding: 1rem;
  box-sizing: border-box;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-image {
  width: 100%;
  height: 150px;
  background: #d0d0d0;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.skeleton-text {
  width: 100%;
  height: 20px;
  background: #d0d0d0;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-text.short {
  width: 60%;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@media (max-width: 768px) {
  .skeleton-card {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  .skeleton-card {
    width: 100%;
  }
}