/*!
  Author Name: MH RONY.
  GigHub Link: https://github.com/dev-mhrony
  Facebook Link:https://www.facebook.com/dev.mhrony
  Youtube Link: https://www.youtube.com/channel/UChYhUxkwDNialcxj-OFRcDw
  for any PHP, Laravel, Python, Dart, Flutter work contact me at developer.mhrony@gmail.com  
  Visit My Website : developerrony.com
*/

/* ====== Base Styles ====== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900&family=Roboto+Slab:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #2c3e50;
  --secondary-color: #f2546a;
  --accent-color: #3498db;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
}

body {
  padding-top: 54px;
  font-family: 'Nunito', sans-serif;
  background-color: #f7f8f9;
  line-height: 1.6;
  color: #333;
}

@media (min-width: 992px) {
  body {
    padding-top: 56px;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  font-family: 'Roboto Slab', serif;
}

/* ====== Header/Nav ====== */
.navbar-light .navbar-nav .nav-link {
  font-weight: 800;
}

/* ====== Card Styles ====== */
.card, .card-header:first-child {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 25px;
  border: none;
  background-color: white;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  border-radius: 10px 10px 0 0;
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.03);
}

/* ====== Badge Styles ====== */
.badge {
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.8px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 30px;
  position: relative;
  margin-right: 5px;
}

.bg-success {
  background-color: var(--primary-color) !important;
}

.bg-warning {
  background-color: var(--accent-color) !important;
}

/* ====== Link Hover Effects ====== */
a {
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover, h5:hover {
  color: var(--secondary-color) !important;
}

/* ====== Carousel Styles ====== */
.carousel-item {
  height: 65vh;
  min-height: 300px;
  background: no-repeat center center scroll;
  background-size: cover;
}

.owl-carousel .card-img-top {
  height: 350px;
}

/* ====== Post Modules ====== */
.post-module-1 .post-content-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  transition-duration: 0.2s;
  padding-right: 15px;
}

.img-hover-slide {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  min-height: 280px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.post-carausel-2 .img-hover-slide {
  min-height: 310px;
}

.thumb-overlay::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 5px;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.8) 100%);
  transition: all 0.4s ease;
}

.border-radius-15 {
  border-radius: 15px;
  overflow: hidden;
}

.youtube {
  border-radius: 20px;
}

/* ====== Widget Titles ====== */
.widget-title {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--primary-color);
  border-left: 4px solid var(--secondary-color);
  padding-left: 15px;
  margin-bottom: 25px !important;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.widget-title span {
  color: var(--secondary-color);
}

/* ====== Categories Sidebar ====== */
.card-header {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--primary-color) !important;
  padding-left: 0 !important;
  border-bottom: 2px solid var(--light-gray) !important;
  background-color: transparent !important;
}

.list-unstyled li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.list-unstyled li:hover {
  background-color: var(--light-gray);
}

.list-unstyled li a {
  color: #555;
  font-weight: 500;
  display: block;
}

.list-unstyled li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

/* ====== Footer ====== */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 30px 0;
  margin-top: 50px;
  position: relative;
  left: 0;
  right: 0;
}

/* ====== Responsive Design ====== */
@media (max-width: 992px) {
  .col-md-2 {
    display: none;
  }
  
  .col-md-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .card-img-top {
    height: 150px;
  }
  
  .owl-carousel .card-img-top {
    height: 250px;
  }
  
  .widget-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .owl-carousel .card-img-top {
    height: 200px;
  }
}