* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  text-decoration: none;
  box-sizing: border-box;
  list-style: none;
}

:root {
  --color-primary: #6c63ff;
  --color-success: #00bf8e;
  --color-warning: #f7c94b;
  --color-danger: #f75842;
  --color-white: #ffff;
  --color-light: rgba (255, 255, 255, 0.7);
  --color-black: #000;
  --color-bg: #1f2641;
  --color-bg1: #2e3267;
  --color-bg2: #424890;
  --container-width-1g: 84%;
  --container-width-md: 90%;
  --container-width-sm: 94%;
  --transition: all 400ms ease;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.7;
  color: var(--color-white);
  background: var(--color-bg);
}

a {
  text-decoration-line: none;
}

.container {
  width: var(--container-width-1g);
  margin: 0 auto;
}

section {
  padding: 6rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 4rem;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.2;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.3rem;
}

a {
  color: var(--color-white);
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.btn {
  display: inline-block;
  background: var(--color-danger);
  color: var(--color-white);
  padding: 1rem 2rem;
  border: 1px solid transparent;
  font-weight: 500;
  transform: var(--transition);
}

.btn:hover {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-primary {
  background-color: var(--color-danger);
  color: var(--color-white);
}

/* navbar  */
nav {
  background: transparent;
  width: 100vw;
  height: 5rem;
  position: fixed;
  top: 0;
  z-index: 11;
}

.nav__container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav button {
  display: none;
}

.nav_menu {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.nav_menu a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav_menu a:hover {
  color: var(--color-bg2);
}

/* js navbar */

.window-scroll {
  background: var(--color-primary);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.blog-header {
  background: var(--color-bg1); /* Use existing theme color */
  color: var(--color-white);
  padding: 2.5rem 0;
  text-align: center;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Darker shadow for dark theme */
  margin-bottom: 1.5rem; /* Reduced from 2.5rem to 1.5rem */
  margin-bottom: 1.5rem;
}

.blog-header h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  margin-top: 2rem;
  letter-spacing: -0.06em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-header p {
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.95;
}

.blog-post {
  background: var(
    --color-bg2
  ); /* Slightly lighter background for the article */
  color: var(--color-white); /* Ensure text is white */
  padding: 3.5rem;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /* More prominent shadow */
  line-height: 1.8;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
  margin-top: 1.5rem; /* Reduced from 2.5rem to 1.5rem */
}

.blog-post p {
  margin-bottom: 1.6rem;
  font-size: 1.15rem;
  color: var(--color-light); /* Use a lighter white for paragraph text */
}

.blog-post h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary); /* Use primary theme color for headings */
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 4px solid var(--color-primary); /* Border using primary color */
  padding-bottom: 0.8rem;
}

.blog-post h3 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}

.blog-post ul {
  list-style-type: disc;
  margin-left: 2.5rem;
  margin-bottom: 1.8rem;
  color: var(--color-light);
}

.blog-post ul li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.blog-post ol {
  /* Added styling for ordered lists */
  list-style-type: decimal;
  margin-left: 2.5rem;
  margin-bottom: 1.8rem;
  color: var(--color-light);
}

.blog-post ol li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.blog-post a {
  color: var(
    --color-success
  ); /* Use success color for links, or another accent */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-post a:hover {
  color: var(--color-warning); /* Change color on hover */
  text-decoration: underline;
}

/* Image Styling for blog posts */
.blog-post img {
  max-width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
  margin: 2.5rem auto; /* Center images with more vertical spacing */
  border-radius: 15px; /* More rounded corners for images */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* More prominent shadow for depth in dark theme */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: contain; /* Ensures the entire image is visible without cropping */
}

.blog-post img:hover {
  transform: scale(1.02); /* Slightly more pronounced zoom on hover */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Add these rules to your existing styles.css */

/* Footer Styling */
footer {
  background: var(
    --color-bg1
  ); /* Use the main background color for the footer */
  color: var(--color-light); /* Use lighter white for footer text */
  padding: 4rem 0 2rem; /* Adjusted padding for the new layout */
  margin-top: 4rem; /* More space above the footer */
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
  border-top-left-radius: 20px; /* Rounded top corners */
  border-top-right-radius: 20px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2); /* Shadow for footer */
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__top {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer__contact-item {
  text-align: center;
  flex: 1;
  min-width: 200px; /* Ensure items don't get too small */
}

.footer__contact-item i {
  font-size: 1.8rem;
  color: var(--color-warning); /* Orange icon color from image */
  margin-bottom: 0.5rem;
}

.footer__contact-item h4 {
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 0.3rem;
}

.footer__contact-item p {
  font-size: 0.9rem;
  color: var(--color-light);
  margin-bottom: 0; /* Remove default paragraph margin */
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.footer__main {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__about {
  flex: 2; /* Takes more space */
  min-width: 280px;
}

.footer__logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer__logo h3 {
  font-size: 1.8rem;
  color: var(--color-warning); /* Orange for logo text */
  margin: 0;
}

.footer__logo p {
  font-size: 1rem;
  color: var(--color-light);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer__about p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer__about h4 {
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer__socials a:hover {
  background: var(--color-primary); /* Use primary color on hover */
  color: var(--color-white);
  transform: translateY(-5px);
}

.footer__links,
.footer__subscribe {
  flex: 1;
  min-width: 220px;
}

.footer__links h4,
.footer__subscribe h4 {
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--color-warning); /* Orange underline */
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links ul li {
  margin-bottom: 0.8rem;
}

.footer__links ul li a {
  color: var(--color-light);
  transition: var(--transition);
}

.footer__links ul li a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer__subscribe p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer__subscribe form {
  display: flex;
  gap: 0.5rem;
}

.footer__subscribe input[type="email"] {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  font-size: 0.9rem;
}

.footer__subscribe input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer__subscribe button {
  background: var(--color-danger); /* Orange button color from image */
  color: var(--color-white);
  padding: 0.8rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.footer__subscribe button:hover {
  background: var(--color-warning); /* Slightly different orange on hover */
}

.footer__copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Adjustments for Footer */
@media (max-width: 768px) {
  footer {
    padding: 2.5rem 0 1.5rem;
  }
  .footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__contact-item {
    min-width: unset;
    width: 100%;
  }
  .footer__main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__about,
  .footer__links,
  .footer__subscribe {
    min-width: unset;
    width: 100%;
  }
  .footer__logo {
    justify-content: center;
  }
  .footer__socials {
    justify-content: center;
  }
  .footer__links ul {
    padding-left: 0;
  }
  .footer__links ul li {
    text-align: center;
  }
  .footer__subscribe form {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 2rem 0 1rem;
  }
}

/* Responsive Adjustments for Blog */

/* meida queries */
@media screen and (max-width: 1024px) {
  .container {
    width: var(--container-width-md);
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  h3 {
    font-size: 1.4rem;
  }
  h4 {
    font-size: 1.2rem;
  }

  /* navbar */

  nav button {
    display: inline-block;
    background: transparent;
    font-size: 1.8rem;
    color: var(--color-white);
    cursor: pointer;
  }

  nav button#close-menu-btn {
    display: none;
  }

  .nav_menu {
    position: fixed;
    top: 5rem;
    right: 5%;
    height: fit-content;
    width: 18rem;
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .nav_menu li {
    width: 100%;
    height: 5.8rem;
    animation: animateNavItem is linear forwards;
    transform-origin: top right;
  }

  .nav_menu li:nth-child(2) {
    animation-delay: 200ms;
  }
  .nav_menu li:nth-child(3) {
    animation-delay: 300ms;
  }
  .nav_menu li:nth-child(4) {
    animation-delay: 400ms;
  }

  @keyframes animateNavItem {
    0% {
      transform: rotate(-90deg) rotateX(90 deg) scale(0.1);
    }
    100% {
      transform: rotateZ(0) rotateX(0) scale(1);
      opacity: 1;
    }
  }

  .nav_menu li a {
    background: var(--color-primary);
    box-shadow: -4rem 6rem 10rem rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
  }

  .nav_menu li a:hover {
    background: var(--color-bg2);
    color: var(--color-white);
  }

  .blog-header h1 {
    font-size: 2.5rem;
  }
  .blog-header p {
    font-size: 1.2rem;
  }
  .blog-post {
    padding: 2rem;
    border-radius: 20px;
    margin-top: 1rem; /* Adjusted for responsiveness */
  }
  .blog-post h2 {
    font-size: 2.2rem;
    padding-bottom: 0.6rem;
  }
  .blog-post h3 {
    font-size: 1.8rem;
  }
  .blog-post p,
  .blog-post ul li,
  .blog-post ol li {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
  }
  .blog-post ul,
  .blog-post ol {
    margin-left: 2rem;
  }
  .blog-post img {
    margin: 2rem auto;
  }
}

@media (max-width: 480px) {
  .blog-header h1 {
    font-size: 2rem;
  }
  .blog-header p {
    font-size: 1rem;
  }
  .blog-post {
    padding: 1.2rem;
    margin-top: 0.8rem; /* Adjusted for responsiveness */
  }
  .blog-post h2 {
    font-size: 1.8rem;
  }
  .blog-post h3 {
    font-size: 1.5rem;
  }
  .blog-post p,
  .blog-post ul li,
  .blog-post ol li {
    font-size: 0.95rem;
  }
  .blog-post ul,
  .blog-post ol {
    margin-left: 1.5rem;
  }
  .blog-post img {
    margin: 1.5rem auto;
  }
}
