/********** Fonts Styling **********/

@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/********** Overall Page Styling **********/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
:root {
  --primary-color: #000002;
  --primary-accent-color: #00bfff;
  --secondary-accent-color: #b88917;
  --background-color: #eaeaea;
  --background-color2: #0e0e0e;
  --black-tint1: #363636;
  --black-tint2: #6d6d6d;
  --black-tint3: #a3a3a3;
  --black-tint4: #c3c3c3;
  --white-color: #ffffff;
  --box-shadow: 0 0px 4px #181818, 1px 4px 5px #111111;
  --box-shadow2: 1px 1px 2px #ffd900, 1px 1px 4px #ffd900;
  --box-shadow3: 0 0 5px #00bfff77, 0 0 7px #00bfff77;
}
body {
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--primary-color);
  font-family: "lato";
}
h2 {
  color: var(--white-color);
  font-family: "poppins";
  text-align: center;
  font-size: 2.5rem;
  font-weight: 400;
  margin: 2rem 0;
}
.btn {
  all: unset;
  color: var(--primary-accent-color);
  font-family: "lato";
  font-size: 0.9rem;
  background: linear-gradient(
    90deg,
    rgba(44, 44, 44, 1) 0%,
    rgba(0, 0, 2, 1) 100%
  );
  border-radius: 1rem;
  padding: 0.4rem 1.4rem;
  box-shadow: var(--box-shadow3);
  cursor: pointer;
  transition: background-color 0.5s linear;

  &:hover {
    background: linear-gradient(
      45deg,
      rgba(0, 0, 2, 1) 0%,
      rgba(44, 44, 44, 1) 50%,
      rgba(0, 0, 2, 1) 100%
    );
  }
  &:hover i {
    transform: translateX(4px);
  }
}

/*************** Loader CSS *****************/

.modern-loader {
  position: fixed;
  inset: 0;
  background-color: #0e0e0e92;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.3s ease;
}
.modern-loader.hidden {
  display: none;
}
.brightness-spinner i {
  font-size: 50px;
  color: #ffffff;
  animation: rotateIcon 3s linear infinite;
  opacity: 0.9;
}
@keyframes rotateIcon {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*************** Toaster Section *****************/

.toast-container {
  position: fixed;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.toast-container.top-right { top: 20px; right: 20px; align-items: flex-end; }
.toast-container.top-left  { top: 20px; left: 20px; align-items: flex-start; }
.toast-container.bottom-right { bottom: 20px; right: 20px; align-items: flex-end; }
.toast-container.bottom-left  { bottom: 20px; left: 20px; align-items: flex-start; }
.toast-container.center {top: 0; left: 50%; transform: translateX(-50%); align-items: center;}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--background-color2);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  min-width: 250px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--primary-accent-color);
  color: var(--white-color);
  font-family: "lato";
  position: relative;
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
}
.toast-success { border-left: 5px solid #4CAF50; }
.toast-error   { border-left: 5px solid #F44336; }
.toast-warning { border-left: 5px solid #FF9800; }
.toast-info    { border-left: 5px solid var(--primary-accent-color); }
.toast-icon { font-size: 1.2rem; }
.toast-message { flex: 1; }
.toast-close {
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  color: var(--black-tint2);
}
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: var(--secondary-accent-color);
  animation-name: progress;
  animation-timing-function: linear;
}
.toast-success .toast-progress { background-color: #4CAF50; }
.toast-error .toast-progress   { background-color: #F44336; }
.toast-warning .toast-progress { background-color: #FF9800; }
.toast-info .toast-progress    { background-color: var(--primary-accent-color); }
@keyframes progress {
  from { width: 100%; }
  to   { width: 0%; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/*************** Navbar Section *****************/

.mobile_nav {
  padding: 0.4rem 1rem;
  display: none;
}
.mobile_nav img {
  width: 5rem;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.2rem 3rem;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background-color: #0e0e0ea2;
  border-bottom: 1px solid var(--black-tint1);
}
.social_icons {
  display: flex;
  align-items: center;
}
.social_icons a {
  text-decoration: none;
  color: var(--white-color);
  margin: 0 0.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}
.social_icons a:hover {
  transform: scale(1.2);
}
.social_icons i {
  font-size: 1rem;
  color: var(--primary-accent-color);
  cursor: pointer;
}
.logo img {
  width: 5rem;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.navlinks i {
  margin-right: 0.5rem;
}
.navlinks img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--box-shadow3);
  position: relative;
}
.profile_popup {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--background-color2);
  border: 1px solid var(--black-tint1);
  padding: 2rem 1rem;
  width: 18vw;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 4rem 0 0 0;
  transition: all 0.5s linear;
  display: none;
}
.profile_popup button {
  all: unset;
  margin: 1rem 0 0.5rem 0;
  color: var(--primary-accent-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.5s linear;

  &:hover {
    color: var(--black-tint4);
  }
}
.navbar2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}
.searchbar {
  display: flex;
  align-items: center;
  background-color: var(--black-tint1);
  padding: 0.4rem 1.2rem;
  border-radius: 1rem;
}
.searchbar input {
  all: unset;
  width: 100%;
  font-size: 0.8rem;
  padding: 0.2rem;
  padding-right: 6rem;
  color: var(--white-color);
}
.searchbar i {
  color: var(--white-color);
}
.navlinks2 {
  display: flex;
  align-items: center;
  margin-left: 2rem;
}
.navlinks2 a {
  text-decoration: none;
  color: var(--white-color);
  padding: 0 1rem;
  font-family: "lato";
  font-weight: 300;
  cursor: pointer;
  transition: color 0.4s linear;

  &:hover {
    text-decoration: underline;
    color: var(--primary-accent-color);
  }
}
.menu-toggle {
  font-size: 1.4rem;
  display: none;
  cursor: pointer;
}

/*************** Hero Section *****************/

main {
  width: 90vw;
  margin: 0 auto;
}
.left_carousel,
.right_carousel {
  all: unset;
  position: absolute;
  border: 1px solid var(--black-tint1);
  padding: 0.5rem 0.6rem;
  border-radius: 50%;
  top: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent-color);
  font-size: 0.7rem;
  cursor: pointer;
  transition: background-color 0.4s linear;

  &:hover {
    background-color: var(--black-tint1);
  }
}
.left_carousel {
  right: 10%;
}
.right_carousel {
  right: 7%;
}
.hero {
  width: 100%;
  height: 90vh;
  position: relative;
}
.hero .hero_image {
  width: 95vw;
  margin: 0 auto;
  height: 90vh;
}
.hero .hero_image img {
  width: 100%;
  height: 100%;
  object-position: center;
}
.hero_content img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28vw;
}
.hero_content h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white-color);
  font-size: 12rem;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
}
.hero_content h1.animate {
  animation: typing 2.5s steps(7, end) forwards;
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 55rem;
  }
}
.hero_content p {
  position: absolute;
  top: 70%;
  left: 42%;
  transform: translate(-30%, -50%);
  color: var(--black-tint3);
  font-size: 1rem;
  letter-spacing: 0.2rem;
}
.hero_content .explore_btn {
  position: absolute;
  top: 78%;
  right: 10%;
  transform: translate(-30%, -50%);
}
.explore_btn i {
  transform: rotate(-45deg);
  margin-left: 0.3rem;
}
.hero_content .write_blog {
  position: absolute;
  top: 78%;
  left: 20%;
  transform: translate(-20%, -50%);
}
.write_blog i {
  margin-right: 0.7rem;
}
.current_img {
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}
.fade-out {
  opacity: 0;
}

/*************** All Blogs Categories *****************/

.blogs_category {
  margin: 6rem 0;
}
.categories {
  width: 50%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem;
}
.categories a {
  text-decoration: none;
  color: var(--white-color);
  background-color: var(--black-tint1);
  font-weight: 300;
  padding: 0.3rem 1rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: color 0.5s linear;

  &:hover {
    color: var(--primary-accent-color);
  }
}
.categorySelect i {
  margin-right: 0.2rem;
  font-size: 0.8rem;
}
.categorySelect.active-tab {
  background-color: var(--black-tint1);
  color: var(--primary-accent-color);
}
.categorySelect.active-tab i {
  color: var(--primary-accent-color);
}

/*************** Latest Blogs Section *****************/

.cards_container {
  margin: 4rem 0;
}
.cards_container .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
}
.latest_container {
  margin: 3rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  justify-content: center;
  gap: 2rem 0.6rem;
}
.latest_card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  background-color: #0e0e0e92;
  border: 1px solid var(--black-tint1);
  color: var(--black-tint4);
  border-radius: 1rem;
  padding: 1rem 2rem;
  transition: all 0.5s ease-in-out;
  cursor: pointer;
  overflow: hidden;
  transition: all 1s linear;

  &:hover {
    transform: translateY(-6px);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.latest_card .card_date {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.latest_card .card_date span{
  font-size: 0.8rem;
}
.latest_card .cat {
  background-color: var(--background-color);
  color: var(--primary-accent-color);
  padding: 0.3rem 1rem;
  border-radius: 1rem;
  margin-left: 1rem;
}
.latest_card .card_title {
  font-size: 1.6rem;
  color: var(--black-tint4);
  font-family: "Poppins";
  padding: 0.5rem 0;
}
.latest_card .card_desc {
  font-family: "lato";
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.5rem 0;
}
.latest_card .card_image {
  width: 30vw;
  height: 25vh;
}
.latest_card .card_image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(--black-tint4);
  margin: 0.4rem 0;
}
.latest_card .card_link {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.latest_card .blog_info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.latest_card .author-image {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}
.latest_card .author-name {
  font-size: 0.8rem;
}
.latest_card .blog_btn {
  all: unset;
  color: var(--white-color);
  background-color: var(--black-tint1);
  padding: 0.4rem 1.2rem;
  font-family: "lato";
  font-size: 0.8rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: color 0.5s linear;

  &:hover {
    color: var(--primary-accent-color);
  }
}
.latest_card .card_image,
.latest_card .card_link,
.latest_card .card_date .cat {
  display: none;
}
.latest_card.active {
  background-color: #0e0e0e;
  border: 1px solid var(--secondary-accent-color);
  box-shadow: var(--box-shadow);
  grid-column: span 2;
  grid-row: span 1;
}
.latest_card.active .card_image,
.latest_card.active .card_link,
.latest_card.active .card_date .cat {
  display: flex;
}
.latest_container.shrink .latest_card:not(.active) {
  grid-column: span 1;
  grid-row: span 1;
}

/*************** About Section *****************/

.about_section {
  margin: 5rem 0;
  background-color: var(--background-color2);
  box-shadow: var(--box-shadow3);
  padding: 1rem 3rem;
  border-radius: 1rem;
}
.about_blog {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  height: 80vh;
  gap: 4rem;
  margin: 4rem 0;
  color: var(--white-color);
}
.about_left {
  border: 1px solid var(--black-tint1);
  padding: 1rem;
  border-radius: 1rem;
}
.about_blog h3 {
  color: var(--black-tint3);
  font-family: "poppins";
  margin: 0.8rem 0;
}
.about_left p {
  font-family: "lato";
  color: var(--black-tint4);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1rem;
}
.about-centre {
  justify-self: center;
  align-self: center;
  width: 30vw;
  height: 60vh;
  background-color: var(--black-tint4);
  box-shadow: var(--box-shadow2);
  border-radius: 50%;
}
.about-centre img {
  width: 30vw;
  height: 80vh;
  object-fit: contain;
  object-position: center;
}
.about_right h4 {
  text-decoration: underline;
  color: var(--secondary-accent-color);
}
.about_right img {
  margin: 1rem 0;
}
.about_right small {
  font-size: 0.8rem;
  font-family: "lato";
  color: var(--black-tint3);
}

/*************** Newsletter Section *****************/

.newsletter {
  margin: 5rem 0;
  border: 1px solid var(--secondary-accent-color);
  box-shadow: var(--box-shadow);
  border-radius: 1rem;
  padding: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
}
.newsletter_image {
  width: 25vw;
  height: 50vh;
  border-radius: 50%;
  background-color: var(--black-tint4);
  box-shadow: var(--box-shadow3);
}
.newsletter_image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.newsletter h3 {
  color: var(--black-tint4);
  font-size: 2rem;
  margin-bottom: 3rem;
}
.news_form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.news_form p {
  color: var(--black-tint3);
}
.news_form input {
  all: unset;
  width: 100%;
  border: 1px solid var(--black-tint2);
  border-radius: 1rem;
  padding: 0.4rem 0 0.6rem 0.4rem;
}
.news_form button {
  text-align: center;
}

/*************** Badges Section *****************/

.badges_info {
  color: var(--black-tint4);
  width: 60vw;
  text-align: center;
}
.badges {
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.badge_display img {
  width: 80vw;
  height: 60vh;
  object-fit: contain;
  margin: 0 auto;
}

/*************** Footer Section *****************/

footer {
  background-image: url("../images/backgrounds/pattern.png");
  padding: 2rem 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rem;
}
footer h3 {
  font-size: 1.5rem;
  color: var(--white-color);
  font-style: italic;
  color: var(--white-color);
  margin: 0.5rem 0;
}
.sub_footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  color: var(--black-tint4);
}
.sub_footer img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
}
.creater_socials a{
  text-decoration: none;
}
.creater_socials i{
  color: var(--primary-accent-color);
  margin-right: 0.2rem;
  cursor: pointer;

  &:hover{
    color: var(--white-color);
  }
}
.sub_footer2 blockquote {
  width: 40vw;
  font-style: italic;
  border-left: 4px solid var(--secondary-accent-color);
  padding-left: 1rem;
  color: var(--black-tint4);
  font-size: 1.2rem;
  transform: translateY(20px);
  animation: fadeInQuote 1.2s ease-out forwards;
}
@keyframes fadeInQuote {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.footer_link{
  margin: 1rem;
  display: flex;
  gap: 0.8rem;
}
.footer_link a{
  text-decoration: underline;
  color: var(--white-color);
  cursor: pointer;

  &:hover{
    color: var(--primary-accent-color);
  }
}





/* ============ RESPONSIVE STYLING ============ */

/* Medium Screens (Tablets, small laptops) */
@media (max-width: 992px) {
  .navbar {
    padding: 0.5rem 2rem;
  }

  .navlinks {
    gap: 0.6rem;
  }

  .navlinks img {
    width: 2rem;
    height: 2rem;
  }

  .profile_popup {
    width: 28vw;
  }

  .navbar2 {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem 0;
  }

  .searchbar input {
    padding-right: 3rem;
  }

  .navlinks2 {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navlinks2 a {
    padding: 0.5rem;
  }
}

/* Small Screens (Phones) */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 1.2rem;
  }

  .mobile_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: var(--white-color);
  }

  .navlinks {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 3.5rem;
    right: 1rem;
    background: var(--background-color2);
    border: 1px solid var(--black-tint1);
    border-radius: 1rem;
    padding: 1rem;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
  }

  .navlinks.active {
    display: flex;
  }

  .navlinks button,
  .navlinks img {
    margin: 0.4rem 0;
  }

  .profile_popup {
    width: 70vw;
    right: 50%;
    transform: translateX(50%);
  }

  .navbar2 {
    flex-direction: column;
    padding: 0.5rem 1rem;
  }

  .searchbar {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .navlinks2 {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0;
  }

  .navlinks2 a {
    padding: 0.3rem;
  }
}


/* -------- Responsive Hero Section -------- */

@media (max-width: 1200px) {
  .hero_content h1 {
    font-size: 8rem;
  }

  .hero_content img {
    width: 32vw;
  }

  .hero_content p {
    font-size: 0.9rem;
    top: 70%;
    left: 45%;
  }

  .hero_content .write_blog,
  .hero_content .explore_btn {
    top: 80%;
  }
}

@media (max-width: 992px) {
  .hero {
    height: 80vh;
  }

  .hero .hero_image {
    height: 80vh;
    width: 100vw;
  }

  .hero_content h1 {
    font-size: 6rem;
  }

  .hero_content img {
    width: 40vw;
  }

  .hero_content p {
    top: 72%;
    left: 45%;
    font-size: 0.9rem;
  }

  .hero_content .write_blog,
  .hero_content .explore_btn {
    top: 82%;
  }

  .left_carousel {
    right: 12%;
  }

  .right_carousel {
    right: 6%;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }

  .hero .hero_image {
    height: 70vh;
  }

  .hero_content h1 {
    font-size: 4rem;
  }

  .hero_content img {
    width: 50vw;
  }

  .hero_content p {
    font-size: 0.8rem;
    top: 72%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .hero_content .write_blog,
  .hero_content .explore_btn {
    top: 85%;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .left_carousel,
  .right_carousel {
    top: 20%;
    font-size: 0.6rem;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 60vh;
  }

  .hero .hero_image {
    height: 60vh;
  }

  .hero_content h1 {
    font-size: 3rem;
    white-space: normal;
    text-align: center;
  }

  .hero_content img {
    width: 60vw;
  }

  .hero_content p {
    font-size: 0.75rem;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .hero_content .write_blog,
  .hero_content .explore_btn {
    top: 88%;
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }

  .left_carousel,
  .right_carousel {
    top: 25%;
    padding: 0.4rem;
  }
}

@media (max-width: 400px) {
  .hero_content h1 {
    font-size: 2rem;
  }

  .hero_content img {
    width: 70vw;
  }

  .hero_content p {
    font-size: 0.7rem;
  }

  .hero_content .write_blog,
  .hero_content .explore_btn {
    font-size: 0.7rem;
    top: 90%;
    padding: 0.2rem 0.5rem;
  }
}
/* -------- Responsive Blogs Categories Section -------- */

@media (max-width: 992px) {
  .categories {
    width: 70%;
    gap: 0.5rem;
    padding: 1rem;
  }

  .categories a {
    padding: 0.3rem 0.9rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .categories {
    width: 90%;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }

  .categories a {
    padding: 0.25rem 0.8rem;
    font-size: 0.9rem;
  }

  .categorySelect i {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .blogs_category {
    margin: 4rem 0;
  }

  .categories {
    width: 100%;
    padding: 0.5rem;
    gap: 0.4rem;
    justify-content: flex-start;
  }

  .categories a {
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 0.8rem;
  }

  .categorySelect i {
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .categories a {
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}


/* ----------------- Responsive: Cards Container ----------------- */

@media (max-width: 1200px) {
  .latest_container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }
  .latest_card .card_image {
    width: 40vw;
    height: 20vh;
  }
}

@media (max-width: 992px) {
  .latest_container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.6rem;
  }

  .latest_card .card_title {
    font-size: 1.4rem;
  }

  .latest_card .card_desc {
    font-size: 0.85rem;
  }

  .latest_card .card_image {
    width: 45vw;
    height: 20vh;
  }
}

@media (max-width: 768px) {
  .cards_container .head {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .latest_container {
    grid-template-columns: 1fr;
    gap: 1.5rem 0;
  }

  .latest_card {
    padding: 1rem;
  }

  .latest_card .card_image {
    width: 100%;
    height: 25vh;
  }
}

@media (max-width: 576px) {
  .latest_card .card_title {
    font-size: 1.2rem;
  }

  .latest_card .card_desc {
    font-size: 0.8rem;
  }

  .latest_card .card_image {
    height: 20vh;
  }

  .latest_card .blog_btn {
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
  }
}


/* ----------------- Responsive: About Section ----------------- */

@media (max-width: 1200px) {
  .about-centre {
    width: 25vw;
    height: 50vh;
  }

  .about-centre img {
    width: 25vw;
    height: 60vh;
  }
}

@media (max-width: 992px) {
  .about_blog {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
  }

  .about-centre {
    display: none; /* Optional: hide image on medium screens */
  }
}

@media (max-width: 768px) {
  .about_blog {
    grid-template-columns: 1fr;
    height: auto;
    gap: 2rem;
  }

  .about_section {
    padding: 1rem 1.5rem;
  }

  .about_left,
  .about_right {
    text-align: center;
  }

  .about-centre {
    display: block;
    width: 60vw;
    height: 40vh;
    margin: 0 auto;
    border-radius: 50%;
  }

  .about-centre img {
    width: 60vw;
    height: 50vh;
  }
}

@media (max-width: 576px) {
  .about_section {
    padding: 1rem;
    margin: 3rem 0;
  }

  .about_blog h3 {
    font-size: 1.2rem;
  }

  .about_left p {
    font-size: 0.8rem;
    line-height: 1.2rem;
  }

  .about_right h4 {
    font-size: 1rem;
  }

  .about_right small {
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  .about_blog {
    gap: 1.5rem;
  }

  .about-centre img {
    width: 70vw;
    height: auto;
  }

  .latest_card .card_title {
    font-size: 1.1rem;
  }

  .latest_card .card_desc {
    font-size: 0.75rem;
  }

  .latest_card .blog_btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }
}


/* Tablet Devices */
@media screen and (max-width: 992px) {
  /* Newsletter */
  .newsletter {
    flex-direction: column;
    gap: 4rem;
    padding: 3rem 2rem;
  }

  .newsletter_image {
    width: 50vw;
    height: 40vh;
  }

  .newsletter h3 {
    font-size: 1.6rem;
    text-align: center;
  }

  .news_form {
    width: 100%;
  }

  /* Badges */
  .badges_info {
    width: 80vw;
    font-size: 0.95rem;
  }

  .badge_display img {
    width: 90vw;
    height: auto;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 4rem;
    padding: 2rem 3rem;
    text-align: center;
  }

  .sub_footer2 blockquote {
    width: 80vw;
    font-size: 1rem;
    padding-left: 0.8rem;
  }

  .footer_link {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Mobile Devices */
@media screen and (max-width: 576px) {
  /* Newsletter */
  .newsletter {
    padding: 2rem 1rem;
  }

  .newsletter_image {
    width: 70vw;
    height: 35vh;
  }

  .newsletter h3 {
    font-size: 1.4rem;
  }

  .news_form input {
    font-size: 0.9rem;
  }

  .news_form button {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }

  /* Badges */
  .badges_info {
    width: 95vw;
    font-size: 0.9rem;
  }

  .badge_display img {
    width: 100%;
    height: auto;
  }

  /* Footer */
  footer {
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .sub_footer img {
    width: 4.5rem;
    height: 4.5rem;
  }

  .sub_footer2 blockquote {
    width: 90vw;
    font-size: 0.9rem;
  }

  .footer_link a {
    font-size: 0.85rem;
  }
}
