  * {
       margin: 0;

            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }
        :root {
            --color-primary: #800000;
            --color-primary-dark: #600000;
            --color-background: #f8f9fa;
            --color-text: #333;
            --color-text-light: #fff;
            --color-link: #1a0dab;
            --color-border: #dfe1e5;
        }
      
        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            background-color: #f5f5f5;
            padding-top: 60px;
        }
        .header {
    background-color: #800000;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: fixed;
    width: 100%;
    top: 0;

    z-index: 1000;
        }
    h1 {
    color: maroon;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

        .header-left {
            display: flex;
            gap:20px;
            align-items: center;
         
        }
        .header-logo {
            width: auto;
            height: 30px;
            margin-right: 10px;
        }
        .header-title {
            font-size: 24px;
            font-weight: bold;

        }
        .logo {
            cursor: pointer;
            width: auto;
            height: 30px;
          
            overflow: hidden;
        }
   
        .container {
            display: flex;
            flex: 1;
            transition: all 0.3s ease;
        }
        
        .main-content {
            flex: 1;
            padding: 2rem;
            transition: margin-left 0.3s ease;
        }
       

        /* Grid for categories */
        .grid {
            display: grid;
            gap: 24px;
        }

        @media (min-width: 768px) {
            .grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
    .categories-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-card {
    background: linear-gradient(135deg, #b53232ff, maroon);
    color: white;
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(75, 0, 130, 0.3);
  
}

.category-card:hover i {
    transform: scale(1.15);
}


       .other-researches {
    margin-top: 2rem;

  
}

.other-researches h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: maroon;
    margin-bottom: 1.5rem;
    text-align: left;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.keyword-tag {
    display: inline-block;
    background: #b53232ff;
    color: white;
    border: 2px solid maroon;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.keyword-tag:hover {
    background: maroon;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(75, 0, 130, 0.3);
}


.login-button {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    border: none;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: auto; /* Keep login button pushed to the right */
   
}


.login-button:hover {
    background-color: #0056b3;
}


.toggle-sidebar {
            background: none;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
        }


.sidebar {
            background-color: var(--color-primary-dark);
            color: var(--color-text-light);
            width: 250px;
            position: fixed;
            top: 60px; /* Start the sidebar below the header */
            left: -250px; /* Initially hidden off-screen */
            height: calc(100vh - 60px); /* Full height, minus the header height */
            padding: 20px;
            box-sizing: border-box;
            z-index: 900;
            transition: left 0.3s ease; /* Smooth animation for sliding */
            overflow-y: auto; /* Allow scrolling if content is taller than the viewport */
        }
        .sidebar.active {
            left: 0; /* Bring the sidebar into view when active */
        }
        .sidebar a {
            display: block;
            padding: 10px;
            color: var(--color-text-light);
            text-decoration: none;
            margin-bottom: 10px;
            border-radius: 4px;
        }
        .sidebar a:hover {
            background-color: var(--color-primary);
        }

  .subtypes-section {
  transition: all 0.3s ease;
  margin-top: 2rem;
  border-top: 2px solid maroon;
  padding-top: 1.5rem;
}

.subtypes-section.hidden {
  opacity: 0;
  transform: scaleY(0);
  height: 0;
  overflow: hidden;
}

.subtypes-section.visible {
  opacity: 1;
  transform: scaleY(1);
  height: auto;
}


.subtypes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.subtype-card {
  background: #fff;
  border: 2px solid maroon;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.subtype-card h4 {
  margin-bottom: 0.4rem;
  color: maroon;
  font-size: 1.05rem;
}

.subtype-card p {
  font-size: 0.9rem;
  color: #333;
  opacity: 0.85;
}

.subtype-card:hover {
  background: #fff3f3;
  transform: translateY(-4px);
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%;

}
}.subtype-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
    max-width: 800px;
    line-height: 1.5;
}
