.mainhero {
  width: 100%;
  margin: 0px;
  padding: 0px;
  background-color: #000;
}

/* ===========hero slider css========== */

.hero-slider {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.slides {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1.2s ease;
}


.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.content {
  position: absolute;
  bottom: 20%;
  left: 8%;
  color: #fff;
  max-width: 520px;
  z-index: 2;
}

.content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: #fff;
  color: #000;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #000;
  color: #fff;
}

/* Navigation */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 32px;
  padding: 10px 16px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* Dots */
.dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

/*==================== vertical slider css================= */

.vertical-slider {
  position: relative;
  width: 415px;
  height: 420px;
  overflow: hidden;
  border-radius: 24px;
  background: #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.slider-track {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(.77, 0, .18, 1);
}

.post {
  height: 100%;
  display: grid;
  grid-template-rows: 60% 40%;
  background: #000;
}

.post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


a {
  color: #fff;
}

.post-content {
  padding: 22px;
  color: #fff;
}

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 8px;
}

.post-content h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.post-content p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}

/* Controls */
.controls {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.controls button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  transition: 0.3s;
}

.controls button:hover {
  background: rgba(255, 255, 255, 0.35);
}


/* ================post-grid-section=========================== */

.post-grid-section {
  margin: 40px 0;
}

.post-grid-heading > .col-md-4,
.post-grid-heading > .col-md-6 {
    margin: 0 !important;
    padding: 0 !important;
}

.post-grid-heading h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 700;
}

.post-grid-section a {
  font-size: 13px;
  color: #fff;
}


/* Responsive */
@media (max-width: 1200px) {}

@media (max-width: 992px) {}

@media (max-width: 768px) {
  .post-grid-section a {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .post-grid-section a {
    font-size: 13px;
  }
}

/* =================== post-grid-card ======================= */

.post-grid-card {
  display: flex;
  padding-top: 25px;
  padding-bottom: 25px;
}

.post-grid-card h2 {
  font-size: 18px;
  padding: 10px;
  background-color: #000;
  color: #fff;
  border-radius: 5px;
  font-weight: 700;
  border-left: 5px solid red;
}

.post-grid-card h5 {
  font-size: 15px;
  font-weight: 700;
}

.post-grid-card h5 a {
  color: #000;
}