
.category-container {
  margin: 20px auto;
  max-width: 1200px;
  margin-bottom: 100px;

}

.category-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
}
.new-category-box {
  
  border-radius: .75rem;
  box-shadow: 0 10px 20px rgb(0, 0, 0);
  /* transition: transform 0.3s, box-shadow 0.3s; */
  width: 19rem;
  display: flex;
  flex-direction: column;
  height: 28rem;
  justify-content: flex-end;
  position: relative;
  flex-direction: column;
  margin: 0 20px;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.5);
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease-in-out;
  

}


.new-category-title {
  font-size: 26px;
  font-weight: bolder;
  color: #686868;
  margin-bottom: 10px;
  margin-left: 2px;
}

.new-post-list {
  padding: 0;
}

.new-post-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}


.new-post-thumbnail {
  border-radius: 8px;
}

img {
  width: 100%;
  height: 100%;
}

.s1 {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 50%;
  background: #f8b5b5;
  z-index: -1;
  transition: all .7s cubic-bezier(.6, .09, .2, .99);
  border-radius: .75rem .75rem 0 0;
}

.s2 {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 50%;
  background: #f8b5b5;
  z-index: -1;
  transition: all .3s cubic-bezier(.6, .09, .2, .99);
  transition-delay: .16s;
  border-radius: 0 0 .75rem .75rem;
}

/* .new-category-box:hover .s1, .new-category-box:hover .s2 {
  width: 100%;
} */
/* 
.new-category-box:hover img {
  transform: scale(1.1);
} */

.new-post-thumbnail img {
  position: absolute;
  top : 0; 
  left : 0  ; 
  z-index: 0 ;
  width: 100%;
  height: 100%;
  object-fit:cover;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.new-category-box:hover .new-post-thumbnail img {
  transform: scale(1.1);  /* Slight zoom-in effect */
  opacity: 0.3;          /* Transparency on hover */
}




/* .new-post-content {
  display: flex;
  flex-direction: column;
  padding: 15px;
} */
.new-post-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: start;
  /* align-items: center; */
  padding-left: 10px;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for better contrast */
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
}

.new-category-box:hover .new-post-content {
  opacity: 1;
}
.new-post-title, .new-post-excerpt, .section-btn {
  color: #fff; /* White text for visibility over the dark background */
}


.new-post-title {
  font-size: 17px;
  color: #686868;
  margin-bottom: 7px;
  font-weight: 550;
  margin-left: 2px;
}

.new-category-box:hover .new-category-title {
  color: black;
  transition-delay: .16s;
}

.new-category-box:hover .new-post-title {
  color: black;
  transition-delay: .16s;
}

.new-category-box:hover .new-post-excerpt {
  color: black;
  transition-delay: .16s;
}

.new-post-excerpt {
  color: #666;
  margin-bottom: 25px;
  margin-left: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 45px;
}

.new-read-more-link {
  width: 100%;
  padding: 12px 18px;
  background: #2076D9;
  border: #2076D9;
  border-radius: 5px;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.new-read-more-link a {
  text-decoration: none;
  color: #fff;
}

.new-read-more-link:hover {
  background: #0e25cf;
}




/* Responsive Design */
@media (max-width: 768px) {
  .category-row {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .new-category-box {
    width: 300px;

  }

  .category-row {
    flex-direction: column;
  }

  .new-category-title {
    font-size: 24px;
  }

  .new-post-title {
    font-size: 16px;
  }

  .new-post-excerpt {
    font-size: 15px;
  }
}

/* footer */

/* Footer Styles */
#custom-footer {
    background-color: #f8f9fa; /* Light background color */
    padding: 20px 0;
    color: #333; /* Default text color */
}

.footer-container {
    padding: 0 80px;
    margin:  auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    padding: 10px;
    min-width: 250px; /* Minimum width for responsive design */
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #3B3B58; /* Title color */
}

.footer-content {
    font-size: 0.9rem;
}

.footer-description {
    margin: 10px 0;
}

.footer-address, .footer-phone, .footer-email {
    margin: 5px 0;
}

.footer-icon {
    color: #007bff; /* Primary color for icons */
    margin-right: 5px;
}

.footer-email-link {
    color: #3B3B58; /* Email link color */
    text-decoration: none;
}

.footer-email-link:hover {
    text-decoration: underline;
}

.feature-post {
    margin-top: 15px;
}

.post-item {
    margin-bottom: 10px;
}

.post-flex {
    display: flex;
    align-items: center;
}

.post-image {
    width: 80px; /* Fixed width for images */
    height: 80px; /* Fixed height for images */
    object-fit: cover;
    margin-right: 10px;
}

.post-title {
    font-size: 1rem;
    color: #333; /* Title color */
}

.post-date {
    font-size: 0.8rem;
    color: #6c757d; /* Secondary text color */
}

.footer-tags, .footer-social {
    margin-top: 10px;
}

.tags-wrapper, .social-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.footer-tag, .footer-social-link {
    background-color: #e9ecef; /* Light button color */
    border-radius: 5px;
    padding: 5px 10px;
    margin: 5px;
    color: #fff; /* Default text color */
    text-decoration: none;
}

.footer-tag:hover, .footer-social-link:hover {
    background-color: #d5d9db; /* Darker button color on hover */
}


/* Footer */

/* Footer container */
.custom-footer {
  background: transparent ;

  padding: 40px 0;
  color: #333;
}

.custom-footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.custom-footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Footer columns */
.custom-footer .col-3 {
  flex: 0 0 30%; /* Takes up about 30% of width per column */
  padding: 15px;
  min-width: 280px; /* Ensures better minimum size on small screens */
  box-sizing: border-box;
}

/* Footer Titles */
.custom-footer .footer-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: black;
  font-weight: bold;
}

/* About Us content */
.custom-footer p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #6c757d;
}

.custom-footer address {
  font-style: normal;
  margin-bottom: 15px;
  color: #6c757d;
}

.custom-footer i {
  margin-right: 10px;
  color: #007bff;
}

.custom-footer .phone, 
.custom-footer .email {
  margin-bottom: 15px;
}

.custom-footer .email a {
  color: #3B3B58;
  text-decoration: none;
}

.custom-footer .email a:hover {
  text-decoration: underline;
}

/* Feature Post section */
.custom-footer .feature-post {
  margin-top: 20px;
}

.custom-footer .article {
  margin-bottom: 20px;
}

.custom-footer .article .d-flex {
  display: flex;
  align-items: center;
}

.custom-footer .article img {
  width: 90px; /* Larger image for better balance */
  height: 90px;
  object-fit: cover;
  margin-right: 15px; /* Increased spacing between image and text */
  border-radius: 8px;
}

.custom-footer .text-title {
  font-size: 1.1rem; /* Slightly larger text for better readability */
  color: #333;
  text-decoration: none;
}

.custom-footer .text-title:hover {
  text-decoration: underline;
}

.custom-footer .secondary-title {
  font-size: 0.9rem;
  color : black;

}

.custom-footer .display-3 {
  font-size: 0.85rem;
}

/* Tags section */
.custom-footer .tags {
  margin-top: 20px;
}

.custom-footer .tags .nav-link {
  background-color: #e9ecef;
  border-radius: 5px;
  padding: 8px 12px; /* More padding for better button size */
  margin: 5px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}

.custom-footer .tags .nav-link:hover {
  background-color: #d5d9db;
}

/* Social media section */
.custom-footer .social .nav-link {
  padding: 10px;
  font-size: 1.2rem;
  background-color: #e9ecef;
  border-radius: 50%;
  margin: 5px;
  color: #333;
}

.custom-footer .social .nav-link:hover {
  background-color: #d5d9db;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .custom-footer .col-3 {
      flex: 0 0 45%; /* Each column takes up 45% on tablet screens */
  }
}

@media (max-width: 480px) {
  .custom-footer .col-3 {
      flex: 0 0 100%; /* Each column takes up full width on mobile screens */
  }
}
/* Dark mode styling */
[data-theme="dark"] {
  --background-color: #121212;
  --text-color: #e0e0e0;
  --hover-background-color: #f8b5b5; /* Pink background on hover */
  --hover-text-color: #ffffff;
  --hover-border-color: #ffffff;
  --box-shadow-color: rgba(255, 255, 255, 0.7); /* White shadow */
}

/* General dark mode styles */
.category-container {
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Remove background color from text */
.new-category-title, .new-post-title, .new-post-excerpt {
  background-color: transparent; /* Ensure text has no background */
  color: var(--text-color); /* Keep text color */
}


.new-category-box {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Default shadow */
  transition: box-shadow 0.3s ease;
}

/* Hover effects in dark mode */
[data-theme="dark"] .new-category-box:hover {
  background-color: var(--hover-background-color); /* Transparent background */
  color: var(--hover-text-color);
  border: 1px solid var(--hover-border-color); /* Remove the border */
  box-shadow: 0 4px 15px var(--box-shadow-color); /* White shadow on hover */
}

[data-theme="dark"] .new-category-title,
[data-theme="dark"] .new-post-title,
[data-theme="dark"] .new-post-excerpt {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Hover text color transitions */
[data-theme="dark"] .new-category-box:hover .new-category-title,
[data-theme="dark"] .new-category-box:hover .new-post-title,
[data-theme="dark"] .new-category-box:hover .new-post-excerpt {
  color: var(--hover-text-color);
}
.dark .article{
  background-color: none;	  background-color: none;
}
.secondary-title >p{
  padding: 15px 1px;
}	