
/* -------------------- Base Styles -------------------- */

/* -------------------- Fix for Page Overflow -------------------- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Ensure all elements respect box-sizing */
*, *::before, *::after {
  box-sizing: inherit;
}


body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}




/* Grid Layout */
.categories-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
    margin-top: 50px;
}

/* Category Cards */
.category-card {
    background: #FFF5F7;
    color: #333;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: scale(1.02);
}

/* Category Icons */
.category-icon {
    width: 90px;  /* Increased size */
    height: 90px;
    margin-right: 20px;  /* Space between icon and text */
}

/* Category Content */
.category-content {
    flex: 1;  /* Takes remaining space */
}

/* Category Heading */
.category-content h2 {
    color: #444;
    font-size: 22px;
    margin-bottom: 5px;
}

/* Category Description */
.category-content p {
    font-size: 14px;
    margin: 5px 0 10px;
}

/* Tag Buttons */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-btn {
    text-decoration: none;
    background: linear-gradient(to right, #8C4A32, #4A403A); /* Brand and Button Colors */
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.tag-btn:hover {
    background: linear-gradient(to right, #4A403A, #520101); /* Button & Hover Colors */
    transform: scale(1.05);
}





/* Navbar */
.navbar {
    background-color:  #2A2B2D;
    display: flex;
    width: 100%;
    max-width: 1520px;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    height: 90px;
    box-shadow: 0 2px 5px rgba(42, 43, 45, 0.1);
    margin: 0 auto;
}

.navbar-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.navbar-title {
    font-size: 32px;
    font-weight: bold;
    color:  #FFF5F7;
    flex-grow: 1;
    text-align: center;
}

.footer {
    background-color:  #2A2B2D;
    text-align: center;
    padding: 15px;
    width: 100%;
    margin-top: 40px;
    color: #FFF5F7;
    font-size: 16px;
    font-weight: bold;
}

/* Logo Styling */
.logo-container {
    width: 60px;
    height: 60px;
    background-color: #FFF5F7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 50px;
    font-weight: 600;
    color:  #2A2B2D;
    font-family: 'Times New Roman';
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}






/* --- Custom Animated Back Button --- */
.back-button {
  display: block;
  position: absolute;
  top: 120px;
  left: 20px;
  width: 56px;
  height: 56px;
  margin: 0;
  overflow: hidden;
  outline: none;
  background-color: transparent;
  cursor: pointer;
  border: 0;
}

.back-button:before,
.back-button:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 7px;
}

.back-button:before {
  border: 4px solid #4A403A;
  transition: opacity 0.4s ease-in-out, transform 0.5s ease-in-out;
}

.back-button:after {
  border: 4px solid #2A2B2D;
  transform: scale(1.3);
  transition: opacity 0.4s ease-in-out, transform 0.5s ease-in-out;
  opacity: 0;
}

.back-button:hover:before {
  opacity: 0;
  transform: scale(0.7);
}

.back-button:hover:after {
  opacity: 1;
  transform: scale(1);
}

.button-box {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.button-elem {
  display: block;
  width: 20px;
  height: 20px;
  margin: 17px 18px 0 18px;
  transform: rotate(180deg);
  fill: #4A403A;
}

.back-button:hover .button-box {
  transition: 0.4s;
  transform: translateX(-56px);
}
  /* Responsive Styling */



  /* -------------------- Mobile View Styling -------------------- */
@media (max-width: 768px) {
   /* General body adjustments */
  body {
    padding: 0;
    margin: 0;
    font-size: 15px;
  }

  /* Navbar */
  .navbar {
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 10px;
    align-items: flex-start;
  }

  .logo-container {
    width: 45px;
    height: 45px;
    margin-left: 0;
  }

  .logo-text {
    font-size: 30px;
  }

  .navbar-title {
    font-size: 20px;
    text-align: center;
    margin-top: 8px;
    width: 100%;
  }

  .back-button {
    top: 85px;
    left: 10px;
    width: 48px;
    height: 48px;
  }

  .back-button:before,
  .back-button:after {
    inset: 6px;
    border-width: 3px;
  }

  .button-box {
    top: 0;
    left: 0;
  }

  .button-elem {
    width: 16px;
    height: 16px;
    margin: 15px;
  }

  .button-box {
    transform: scale(0.8);
  }

  .categories-container {
    grid-template-columns: 1fr;
    padding: 15px 10px;
    margin-top: 70px;
    gap: 15px;
  }

  .category-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 10px;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .category-content h2 {
    font-size: 18px;
  }

  .category-content p {
    font-size: 13px;
  }

  .tags {
    gap: 6px;
  }

  .tag-btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  .footer {
    font-size: 14px;
    padding: 10px;
  }
}

