/*
Theme Name: Animation
Theme URI: http://example.com/
Author: Your Name
Author URI: http://example.com/
Description: A custom WordPress theme with animations.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: animation
*/


.bg-light {
  background-color: #f8f9fa !important;
}
.mb-6 { margin-bottom: 5rem !important; }
.mt-6 { margin-top: 5rem !important; }

/* Featured Post */
.featured-img {
  transition: transform 0.5s ease;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}
.featured-post:hover .featured-img {
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .featured-img { min-height: 250px; }
}

/* Cards */
.post-card {
  transition: all 0.3s ease;
  background: #fff;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}
.thumbnail-wrapper {
  overflow: hidden;
  height: 200px;
}
.thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.thumbnail-wrapper:hover img {
  transform: scale(1.1);
}
.img-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(0,0,0,0.1) 100%);
  opacity: 0; transition: opacity 0.3s ease;
}
.thumbnail-wrapper:hover .img-overlay {
  opacity: 1;
}

/* Pagination */
.pagination {
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.page-numbers {
  display: flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  margin: 0 5px;
  border-radius: 50% !important;
  text-decoration: none;
  font-weight: 500;
  color: #495057;
  transition: all 0.3s ease;
}
.page-numbers.current,
.page-numbers:hover {
  background: #0d6efd;
  color: #fff;
}

/* Animation */
.blog-post { opacity: 0; animation: fadeInUp 0.6s forwards; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Filter buttons */
[data-filter].active {
  background: #0d6efd;
  color: #fff !important;
  border-color: #0d6efd !important;
}

/* Remove unwanted underline globally */
a {
  text-decoration: none !important;
  color: inherit;
}

/* Navbar links */
.navbar nav a {
  text-decoration: none !important;
  color: #222;
  font-weight: 500;
  transition: color .25s;
}
.navbar nav a:hover {
  color: var(--primary);
  text-decoration: none !important;
}

/* Buttons */
.btn {
  text-decoration: none !important;
}

/* Blog category tags */
a[rel="category tag"] {
  text-decoration: none !important;
  color: #dc3545 !important;   
  font-weight: 600;
}
a[rel="category tag"]:hover {
  text-decoration: none !important;
  color: #0d6efd !important;  
}

/* Blog post titles */
#blog-grid .post-card .card-body h3 a {
  text-decoration: none !important;
  color: #212529 !important;
  font-weight: 600;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}
#blog-grid .post-card .card-body h3 a:hover {
  color: #0d6efd !important;
  text-decoration: underline !important; 
}
