:root {
  --bg-color: #fff;
  --text-soft: #555;
  --text-color: #123;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: "Poppins", sans-serif; */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  background: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}
.blog-list {
  background-color: var(--bg-color);
}

.blog-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* HEADER SECTION START */

.header {
  max-height: 70dvh;
  height: 60dvh;
  position: relative;
  display: inline-block; /* or block, depending on your layout */
}
.hero {
  display: block;
  width: 100%; /* or specific width */
  height: inherit;
  object-fit: cover;
}

.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 2em;
  text-align: center;
  width: 80%; /* adjust as needed */
  max-width: 600px; /* prevents text from being too wide */
}

/* HEADER SECTION END */

.main-container,
.singleElement {
  max-width: 1366px;
  padding: 0px 50px;
  margin: auto;
}

.allBlogs {
  display: flex;
  gap: 20px;
  padding: 80px 0px;
}

.singlePost {
  width: 33%;
  height: 480px;
  background: #111111;
  transition: all 0.3s ease-in;
}

.singlePost:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.singlePostImage {
  width: 100%;
  height: 60%;
  object-fit: cover;
}
.singlePostDetails {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 40%;
}
.singlePostDetails > span {
  font-size: 18px;
  color: #32ddff;
}
.postTitle {
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  color: #32ddff;
}

.postDesc {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.sContent {
  padding: 50px 0px;
}
.singleElementContent {
  display: flex;
  gap: 30px;
}
.singleLeft {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.singleContentsLeft {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 50px;
}
.singleContentsLeft h1 {
  font-size: 50px;
}
.singleContentsLeft h2 {
  font-size: 28px;
}
.singleContentsLeft p {
  font-size: 24px;
  font-weight: 300;
}
.singleContentsLeft li {
  font-size: 20px;
}
.singleLeftImage {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.singleRight {
  flex: 1;
}
.sideContents {
  position: sticky;
  top: 150px;
  background: linear-gradient(to top, rgb(47, 47, 196), rgb(63, 22, 93));
  padding: 40px;
  border-radius: 10px;
  color: var(--bg-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sideContents h3 {
  font-size: 24px;
  font-weight: 500;
}
.sideContents p {
  font-size: 18px;
  font-weight: 300;
}

.sideContents form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.sideContents form input,
.sideContents form button {
  font-size: 18px;
  padding: 10px;
  border: none;
  border-radius: 8px;
}
.sideContents form input {
  background-color: var(--bg-color);
}
.sideContents form button {
  background-color: #f5dd08;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1536px) {
  .main-container,
  .singleElement {
    max-width: 1366px;
  }
}

@media (max-width: 1366px) {
  .main-container,
  .singleElement {
    max-width: 1280px;
  }
}

@media (max-width: 1280px) {
  .main-container,
  .singleElement {
    max-width: 1024px;
  }
  .allBlogs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .singlePost {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .main-container,
  .singleElement {
    max-width: 768px;
  }
  .singleContentsLeft h1 {
    font-size: 30px;
  }
  .singleRight {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-container,
  .singleElement {
    max-width: 640px;
    padding: 0px 10px;
  }
  .sContent {
    padding: 20px 0px;
  }
  .allBlogs {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }
  .singlePost {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .main-container,
  .singleElement {
    max-width: 475px;
  }
}
