body {
  background-color: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  scroll-behavior: smooth;
}

header h2 {
  margin-top: 30px;
  font-size: 2.25rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.1;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.05em;
}

header h3 {
  margin: 15px 0;
  color: #dce8f0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
}

header p {
  max-width: 350px;
  color: #8c9dba;
}

#about p {
  white-space: pre-line;
  color: #94a4c0;
  margin-top: -0.7rem;
  margin-bottom: 6rem;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.03em;
}

.container {
  display: flex;
  max-width: 1400px;
  margin-inline: auto;
  width: 100%;
}

header {
  max-width: 49%;
  height: 100vh;
  padding: 2.5rem;
  padding-top: 3.5rem;
  position: fixed;
  left: 1;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header nav ul {
  margin-top: 4em;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

header nav ul li {
  position: relative;
  padding-left: 1.5rem;
}


header nav ul li a {
  text-transform: uppercase;
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #f8fafc;
}

#social-media {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin-top: 2rem;
}

#social-media a {
  display: inline-flex;
  align-items: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.75rem;
  gap: 0.35rem;
  transition: color 0.3s ease;
}

#social-media a:hover {
  color: #f8fafc;
}

#social-media svg {
  width: 24px;
  height: 24px;
}

main {
  margin-left: 46.0%;
  width: 51.0%;
  padding: 3.5rem 2rem;
}

main section {
  margin-bottom: 4rem;
}

main h2 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f8fafc;
  display: block;
}

.tags {
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  background-color: #122b39;
  color: #4fe3b6;
  padding: 0.25rem 0.5rem;
  margin: 0 0.25rem 0.25rem 0;
  border-radius: 1rem;
  font-size: 0.6rem;
}

.card {
  position: relative;
  display: flex;
  gap: 1.5rem;
  max-width: 655px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  margin-bottom: 1.6rem;

  border-radius: 0.5rem;
  z-index: 0;
  overflow: visible;
}

.link-arrow {
  transition: transform 0.3s ease;
  width: 16px;
}

.card:hover .link-arrow {
  transform: translateY(-6px);
  color: #4fe3b6;
}

.load-more {
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.load-arrow {
  transition: transform 0.3s ease;
  width: 16px;
  color: white;
}

.load-more:hover {
  color: #4fe3b6;
}

.load-more:hover .load-arrow {
  transform: translateY(6px);
  color: #4fe3b6;
}

.card-cover {
  width: 150px;
  height: 85px;
  border-radius: 0.2rem;
  border: 2px solid #334155;
  object-fit: cover;
}

.card-cover img {
  border-radius: 0.5rem;
  border: 2px solid #334155;
  object-fit: cover;
}

.card-date {
  width: 130px;
  color: rgb(117, 135, 162);
  font-size: 0.65rem;
  font-weight: 500;
  padding-top: 3px;
}

.card-right {
  flex: 1;
}

.card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #f8fafc;
  display: inline;
}

.card h4 {
  font-size: 0.75rem;
  color: #c7c8c9;
}

.card:hover h3 {
  color: #4fe3b6;
}

.card p{
  color: #94a3b8;
  font-size: 0.775rem;
  margin: 0rem 0 1rem;
  line-height: 1.4;
}

main p strong{
  color: #ffffff;
  font-weight: 500;
}

.try-iy-out {
  margin-top: -0.3rem;
  margin-bottom: 0.6rem;
}

.try-iy-out a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #e8ebef;
  text-decoration: none;
  transition: color 0.3s ease;
}

.try-iy-out a:hover {
  color: #4fe3b6;
}

.try-iy-out svg {
  width: 14px;
  height: 14px;
}

.card:hover h3 {
  color: #4fe3b6;
}

h3.no-hover {
  color: #f8fafc !important;
}

.card:hover h3 {
  color: #4fe3b6;
}

.card:hover .link-arrow {
  transform: translateY(-6px);
  color: #4fe3b6;
}

h3.no-hover {
  color: #f8fafc !important;
}

.link-arrow.no-arrow-hover {
  transform: none !important;
  color: #f8fafc !important;
}

html {
  scroll-behavior: smooth;
}

nav ul li.active a {
  color: #f8fafc;
}

nav ul li::before {
  transition: background-color 0.3s, width 0.3s;
}

header nav ul li {
  padding: 0;
}

header nav ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #f8fafc;
}

.nav-line {
  display: inline-block;
  height: 1px;
  width: 32px;
  background-color: #334155;
  transition: width 0.3s, background-color 0.3s;
}

.nav-item.active .nav-line,
.nav-item a:hover .nav-line {
  width: 60px;
  background-color: #f8fafc;
}

.nav-item.active .nav-text,
.nav-item a:hover .nav-text {
  color: #f8fafc;
}

#about h2 {
  display: none;
  margin-bottom: 0px;
}

@media (min-width: 1025px) and (max-width: 1280px) {
  header h2 {
    font-size: 2rem;
  }

  header h3 {
    font-size: 1rem;
  }

  main h2 {
    font-size: 0.95rem;
  }

  .card {
    margin-bottom: 1.4rem;
  }

  .card p {
    font-size: 0.72rem;
  }

  .tag {
    font-size: 0.55rem;
    padding: 0.2rem 0.45rem;
  }

  main {
    margin-left: 46.0%;
    width: 51.0%;
    padding: 3.5rem 0.3rem;
  }
}

.card {
  flex-direction: row;
  align-items: flex-start;
}

@media (min-width: 1025px) {
  .card-right {
    order: 2;
  }

  .card-left {
    order: 1;
  }

  .card::before {
    content: "";
    position: absolute;
    inset: -0.5rem;
    bottom: 0.35rem;
    border-radius: 0.5rem;
    background-color: rgba(30, 41, 59, 0.6);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: -1;
  }
  
  .card:hover::before {
    opacity: 1;
    transform: scale(1.02);
  }
}

  .card:hover .card-cover {
    border-color: #607188;
  }

  .card:hover .card-cover img {
    border-color: #607188;
  }

@media (min-width: 641px) and (max-width: 1024px) {
  .container {
    flex-direction: column;
  }

  .card-cover {
    width: 200px;
    height: 112.5px;
    border-radius: 0.5rem;
    border: 2px solid #334155;
    object-fit: cover;
  }

  .card::before,
  .card:hover::before {
    opacity: 0 !important;
    transform: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .card p{
    font-size: 0.83rem;
  }

  header {
    position: static;
    max-width: 100%;
    height: auto;
  }

  main {
    margin-left: 0;
    width: 100%;
  }

  header nav {
    display: none;
  }

  #about h2 {
    display: block;
  }

  main h2 {
    text-transform: uppercase;
  }

  .card {
    max-width:max-content
  }

  .card-right {
    order: 2;
  }

  .card-left {
    order: 1;
  }
}

@media (min-width: 1px) and (max-width: 640px) {
  .container {
    flex-direction: column;
  }

  header {
    position: static;
    max-width: 100%;
    height: auto;
  }

  main {
    margin-left: 0;
    width: 100%;
  }

  header nav {
    display: none;
  }

  #about h2 {
    display: block;
  }

  main h2 {
    text-transform: uppercase;
    font-size: 0.85rem;
  }

  .card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .card-left {
    display: flex;
    flex-direction: column;
  }

  .card-cover {
    order: 2;
    width: 200px;
    height: 112.5px;
  }

  .card-cover {
    border-radius: 0.2rem;
    border: 2px solid #334155;
    object-fit: cover;

  }

  .try-iy-out {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
  }

  .tags {
    margin-bottom: 0px;
  }

  .card p{
    font-size: 0.90rem;
    margin-bottom: 0.3rem;
  }

  .try-iy-out a {
    font-size: 0.8rem;
  }

  .card h3 {
    font-size: 0.90rem;
  }

  .card h4 {
    font-size: 0.85rem;
  }

  header h2 {
    font-size: 1.8rem;
  }

  .tag {
    font-size: 0.7rem;
  }

  #about p {
    font-size: 15px;
  }

  header h3 {
    font-size: 1.1rem;
  }

  header p {
    font-size: 0.9rem;
  }
}