* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary: #4361ee;
  --secondary: #3a0ca3;
  --accent: #f72585;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #4cc9f0;
  --warning: #ffba08;
  --danger: #e63946;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --mobile-bg: #7209b7;
  --web-bg: #f72585;
  --software-bg: #4cc9f0;
  --design-bg: #ffba08;
}

body {
  background-color: #f5f7ff;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  /* background: linear-gradient(135deg, var(--primary), var(--secondary)); */
  background: white;
  color: white;

  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
}

.logo img {
  margin-right: 10px;
  color: var(--accent);
}
.logo img[src$="HackArambh_logo.jpeg"] {
  width: 180px !important;
  /* filter: drop-shadow(0 0 8px white) drop-shadow(0 0 15px white); */
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  /* color: white; */
  color: #002248;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--accent);
}

.auth-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: #d81159;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(67, 97, 238, 0.8), rgba(58, 12, 163, 0.9)),
    url("assets/img/bg-img.avif")
      center/cover no-repeat;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeIn 1s ease;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  animation: fadeIn 1.5s ease;
}

.cta-button {
  font-size: 1.1rem;
  padding: 15px 40px;
  animation: pulse 2s infinite;
}

/* Competition Categories */
.categories {
  padding: 80px 0;
  background-color: white;
}

.categories-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 25px;
  background: var(--light-gray);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.category-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-10px);
}

.category-header {
  padding: 25px;
  color: white;
  text-align: center;
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.category-body {
  padding: 25px;
  background: white;
}

.category-body h3 {
  margin-bottom: 15px;
  color: var(--secondary);
}

.prize {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 10px 0;
}

.deadline {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.mobile-app {
  background-color: var(--mobile-bg);
}
.web-app {
  background-color: var(--web-bg);
}
.software-dev {
  background-color: var(--software-bg);
}
.design {
  background-color: var(--design-bg);
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--light);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--secondary);
}

/* Timeline Section */
.timeline {
  padding: 80px 0;
  background-color: white;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

/* FAQ Section */
.faq {
  padding: 80px 0;
  background-color: var(--light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 20px;
  background-color: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 20px;
  background-color: white;
  display: none;
  padding-bottom: 0px !important;
}

.faq-active .faq-answer {
  display: block;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 40px;
    padding: 0px !important;
  }

  nav ul {
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 5px 10px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .timeline-container::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  border-top: 1px solid #ccc;
  padding-top: 15px;
  font-size: 14px;
}
.footer-bottom a {
  color: #fff;
  text-decoration: none !important;
}








/* Competition Categories */
.categories {
  padding: 80px 0;
  background-color: white;
}

.categories-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 25px;
  background: var(--light-gray);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
}

/* Grid layout for event cards */
.categories-grid {
  display: flex;
  flex-wrap: wrap;                /* allows wrapping on smaller screens */
  justify-content: flex-start;    /* align cards from left side */
  align-items: stretch;
  gap: 15px;
  width: 100%;
  padding: 10px 0;
  box-sizing: border-box;
}


/* Each card */
.category-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%; /* full consistent height */
  max-width: 380px; /* prevents single card from stretching full width */
  /* margin: 0 auto; centers single card */
}

.category-card:hover {
  transform: translateY(-10px);
}

/* Event title section */
.category-header {
  padding: 25px;
  color: white;
  text-align: center;
  min-height: 150px; /* ensures equal title height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Icon */
.category-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.category-body {
  padding: 20px 25px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 10px;               /* natural spacing between elements */
  align-items: flex-start; /* align content to left naturally */
  justify-content: flex-start; /* no force stretching */
  height: auto;            /* natural height */
}

/* Tagline */
.category-body h3 {
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: 1.1rem;
}

/* Limit description text */
.category-body p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* show 3 lines only */
  -webkit-box-orient: vertical;
  min-height: 70px; /* keeps all cards even */
}

.prize {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 10px 0;
}

.deadline {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* Fix for buttons */
/* .category-body .btn {
  display: inline-block;
  text-align: center;
  padding: 10px 18px;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  transition: background 0.3s;
} */

/* Backgrounds */
.mobile-app {
  background-color: var(--mobile-bg);
}
.web-app {
  background-color: var(--web-bg);
}
.software-dev {
  background-color: var(--software-bg);
}
.design {
  background-color: var(--design-bg);
}



/* Category card */
.category-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  height: 600; /* fixed height */
}

.category-card:hover {
  transform: translateY(-10px);
}

/* Card header */
.category-header {
  padding: 25px;
  color: white;
  text-align: center;
}

.category-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.category-header h2 {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
}

/* Card body */
.category-body {
  padding: 20px 25px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 380px;
}

.category-body h3 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 5px;
}

.event-desc {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 10px;
  flex-grow: 1; /* keeps space balanced */
  overflow: hidden;
}

/* Footer part inside card */
.prize {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  margin: 8px 0;
}

.deadline {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* .event-buttons {
  display: flex;
  gap: 10px;
} */

/* .btn {
  flex: 1;
  text-align: center;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 500;
} */

.login-btn {
  background-color: #4361ee;
}


/*
 * ==========================================================
 * CONSOLIDATED EVENT CARD STYLES (Use this section only)
 * ==========================================================
 */

.categories,
.recent-events {
  padding: 80px 0;
  background-color: white;
}

/* 1. This creates the 3-column grid */
.categories-grid {
  display: grid;
  /* This forces 3 equal-width columns */
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* 2. This makes each card a flex column, which is
      the key to making them all equal height. */
.category-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-10px);
}

/* Card header */
.category-header {
  padding: 25px;
  color: white;
  text-align: center;
}

.category-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.category-header h2 {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
}

/* 3. This is the magic for equal height:
      The card body stretches to fill all available space. */
.category-body {
  padding: 20px 25px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes buttons to the bottom */
  flex: 1; /* This makes the body stretch */
}

.category-body h3 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 5px;
}

.event-desc {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 10px;
  
  /* Truncate text to 3 lines */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 65px; /* Reserve space for 3 lines */
}

/* Footer part inside card */
.prize {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  margin: 8px 0;
}

.deadline {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}


/* Centered "View All" button container */
.view-all-container {
  text-align: center;
  margin-top: 40px;
}

/*
 * 4. This makes the 3-column grid responsive
 */

/* For tablets */
@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* For mobile */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

/* Centered "View All" button container */
.view-all-container {
  text-align: center;
  margin-top: 40px;
}

.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: green;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 2px black;
    z-index: 100;
}

.my-float {
    margin-top: 16px;
}
.fa-brands, .fab {
    font-weight: 400;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands";
}

