
            
            body { font-family: 'Inter', sans-serif; }
            
            .gradient-bg {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            }
            
            .card-hover {
                transition: all 0.3s ease;
            }
            
            .card-hover:hover {
                transform: translateY(-8px);
                box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            }
            
            .btn-primary {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                transition: all 0.3s ease;
            }
            
            .btn-primary:hover {
                transform: translateY(-2px);
                box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
            }
            
            .floating {
                animation: float 6s ease-in-out infinite;
            }
            
            @keyframes float {
                0%, 100% { transform: translateY(0px); }
                50% { transform: translateY(-20px); }
            }
            
            .fade-in {
                animation: fadeIn 0.8s ease-out;
            }
            
            @keyframes fadeIn {
                from { opacity: 0; transform: translateY(30px); }
                to { opacity: 1; transform: translateY(0); }
            }
    /* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button */
.dropbtn {
  background-color: transparent;
  color: #6b46c1; /* purple */
  font-weight: bold;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 16px;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 140px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 1;
  overflow: hidden;
}

/* Dropdown content links */
.dropdown-content a {
  color: red;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

/* Hover effect */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}

#user-dropdown {
  transition: all 0.2s ease-in-out;
}
.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}
.rotate-180 {
  transform: rotate(180deg);
}

#arrow-icon{
   height: 16px;
   width: 16px  ;
}.topics-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 cards per row */
  gap: 30px;
  padding: 0 24px;
}

.topic-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 320px; /* taller cards */
  background: linear-gradient(to bottom right, #ffffff, #f3f4f6);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  color: #4f46e5;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .topics-gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablets */
  }
}

@media (max-width: 640px) {
  .topics-gallery {
    grid-template-columns: 1fr; /* 1 card per row on mobile */
  }
}

/* Hover effect */
.topic-tile:hover {
  transform: translateY(-6px) scale(1.04);
  background: #ede9fe;
}

/* Typography adjustments */
.topic-tile .emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

.topic-tile h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.topic-tile p {
  font-size: 1rem;
  color: #555;
}

  .loader {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #554cb5; /* purple */
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
