* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
}

/*Light mode*/
/*Desktop view*/
:root {
  --text-color: #0a0101;
  --primary-bg: #f5f5f5;
  --secondary-bg: #cd3c3c;
  --font-family-1: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-family-2: Cochin, Georgia, Times, "Times New Roman", serif;
  --gradient: linear-gradient(145deg, cyan 40%, #ff99ff);
}

html {
  color-scheme: light dark;
  forced-color-adjust: none;
}

body {
  line-height: 1.5;
  color: var(--text-color);
  font-family: var(--font-family-1);
  background: #f5f5f5;
  text-align: left;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  left: 1.5rem;
  /* border: 0.2px #420042 solid; */
  border-radius: 30px;
  backdrop-filter: blur(7px);
  z-index: 4;
}

.leftside i {
  display: none;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 5rem;
  border-radius: 50%;
}

.logo h1 {
  color: var(--text-color);
  font-size: 3rem;
  font-weight: 700;
}

.shtlinks {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.7rem;
}

.shtlinks a {
  letter-spacing: 1px;
  font-size: 1.2rem;
  font-weight: 550;
  font-family: var(--font-family-1);
  color: #420042;
}

.shtlinks a:hover {
  border-bottom: 2px #6a3338 solid;
  opacity: 0.85;
}

.subsection {
  display: none;
  color: #420042;
  flex-direction: column;
  position: absolute;
  top: 3.4rem;
  right: inherit;
  background: #f5f5f5;
  padding: 0.7rem 1.6rem;
  border-radius: 9px;
  box-shadow: 2px 2px 8px #42004250;
  margin-top: 0.5rem;
  gap: 0.6rem;
}

nav button {
  color: #420042;
  font-size: 1.6rem;
  font-weight: 700;
  outline: none;
  border: 1.2px #420042 solid;
  background: linear-gradient(145deg, cyan 40%, #ff99ff);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

nav button:hover {
  border: none;
  color: #ffffff;
  background: linear-gradient(
    145deg,
    hsl(0, 59%, 41%),
    var(--secondary-bg) 50%,
    darkgoldenrod
  );
  padding: 8px 14px;
}

#menu {
  display: none;
}

/* Header Section */
header {
  padding: 10rem 2rem 12rem 0;
  background: var(--gradient);
}

.header-text h1 {
  font-size: 3rem;
  letter-spacing: 0.5px;
  font-weight: 800;
  text-align: center;
}

.header-text p {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0rem 0rem 0 1rem;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.post {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  z-index: 1;
}

.post:hover {
  transform: translateY(-5px);
}

.post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-content h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  font-weight: 700;
}

.post-content p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  color: var(--text-color);
  background: var(--gradient);
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1.3rem;
  transition: all 0.35s ease-in-out;
}

.read-more:hover {
  opacity: 0.8;
}

/* Footer Section */
footer {
  color: #ffffff;
  background: linear-gradient(
    to bottom,
    var(--primary-bg),
    hsl(0, 59%, 36%) 85%
  );
  padding: 10rem 5rem 2rem;
}

.links {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

footer h4 {
  color: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
}

footer a {
  color: inherit;
  opacity: 0.85;
  font-size: 1rem;
  font-weight: 550;
}

footer a:hover {
  text-decoration: underline;
}

footer .sect {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer p {
  font-size: 1.6rem;
  margin-top: 1.5rem;
  text-align: center;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.socials i {
  font-size: 1.7rem;
  color: var(--primary-bg);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  border: 2.5px var(--primary-bg) solid;
  border-radius: 7px;
  padding: 5px 8px;
}

@media (max-width: 1210px) {
  nav {
    top: 2rem;
    left: 0.5rem;
    right: 0.5rem;
    padding: 1rem 0.5rem;
    border: 1px #fff solid;
  }

  .leftside {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .leftside i {
    display: inline;
    font-size: 22px;
    background: #00000030;
    border: none;
    border-radius: 50%;
    padding: 7px 8px;
    transition: all 0.3s ease-in-out;
  }

  .leftside i:active {
    background: #00000050;
  }

  nav button {
    border: 1px #fff solid;
  }

  nav button span:nth-child(1) {
    display: none;
  }

  nav button span:nth-child(2) {
    display: inline;
  }

  .logo img {
    width: 2.5rem;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .shtlinks {
    display: none;
  }

  nav button {
    font-weight: 600;
    font-size: 1.3rem;
  }

  #menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    backdrop-filter: blur(7px);
    z-index: 4;
    padding: 0;
  }

  #content {
    border: 1px #fff solid;
    border-radius: 11px;
    width: 98vw;
    height: 85vh;
    overflow-y: scroll;
    background: linear-gradient(45deg, #87ceeb, var(--primary-bg));
    padding-right: 3.5rem;
    position: relative;
  }

  #content p {
    position: absolute;
    top: 0rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 600;
    width: 4rem;
    padding-left: 1rem;
    color: var(--secondary-bg);
  }

  .top-ul {
    margin-top: 7rem;
  }

  #menu ul {
    margin-left: 1.9rem;
    list-style: none;
  }

  #menu ul ul {
    display: none;
    margin-left: 1rem;
  }

  #menu a li {
    background: hsl(0, 59%, 80%);
  }

  #menu li {
    color: var(--text-color);
    font-weight: 550;
    font-size: 1.4rem;
    padding: 7px 7px 3px;
    background: hsl(0, 59%, 90%);
    border-radius: 11px;
    margin-top: 0.3rem;
    border-bottom: 1.7px #cd3c3c solid;
  }

  .caret {
    display: inline-block;
    width: 0;
    height: 0;
  }

  .caret-up {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #420042;
  }

  .caret-down {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #420042;
  }

  footer {
    padding: 8rem 1rem 1rem;
  }

  .links {
    overflow-x: hidden;
    flex-wrap: wrap;
  }

  .sect {
    margin-bottom: 2rem;
  }

  /* .sect:nth-child(5) h4 {
    display: none;
  } */

  .socials {
    gap: 1.2rem;
  }

  .socials i {
    font-size: 22px;
  }

  footer h4 {
    margin-bottom: 1rem;
  }

  footer p {
    font-size: 1.3rem;
  }

  footer p strong {
    font-weight: 500;
  }
}
