html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
}

/* Header */
header {
  background: #1e1e1e;
  padding: 20px 0;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

nav {
  background: #252525;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 15px 0;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
  background-color: #ff1a1a;
  color: white;
}

/* Sections */
section {
    padding: 40px;
    max-width: 100vw;
    margin: 40px auto;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    text-align: center;
}
h1 {
    font-size: 2em;
    color: #ff0000;
    margin-bottom: 10px;
}
h2 {
    font-size: 1.8em;
    color: #ff0000;
    margin-bottom: 20px;
}

.office-bearer {
    color: red;
    font-weight: bold;
    font-size: 1.5em;
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.card-container-OB{
  display: flex;
  alighn-items: center;
  justify-content: center;
  /*grid-template-columns: repeat(4, 1fr);*/
  gap: 30px;
  max-width: 100vw;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.card-container-faculty-representatives {
  display: flex;
  gap: 30px;
  max-width: 100vw;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}


.card.faculty-rep .candidate-img {
  max-width: 12vw;
}

/* Card Style */
.card {
    background: #252525;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    width: 20vw;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.candidate-img {
    width: 100%;
    max-width: 15vw;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.502);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: rgb(0, 0, 0);
    padding: 20px;
    border-radius: 8px;
    max-width: 80vw;
    margin: 10% auto;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}


.meetings-section {
  padding: 2rem;
}

.meeting-updates {
  margin-bottom: 2rem;
}

.meeting-post {
  background: #f2f2f2;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}


.project-tabs .tabs {
  display: flex;
  list-style: none;
  padding: 0;
  border-bottom: 2px solid #ccc;
}

.project-tabs .tabs li {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.project-tabs .tabs li.active {
  border-bottom: 3px solid #007bff;
  font-weight: bold;
}

.tab-content {
  display: none;
  margin-top: 1rem;
}

.tab-content.active {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-card {
  width: 250px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Loading indicator */
.loading {
  color: #aaaaaa;
  text-align: center;
  padding: 2rem;
  font-style: italic;
}

.error {
  color: #ff6b6b;
  text-align: center;
  padding: 2rem;
  font-weight: bold;
}

/* Scrollable vertical area */
.scroll-vertical {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 1rem;
  border-radius: 8px;
}

/* Scrollable horizontal area */
.scroll-horizontal {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
}

/* Faculty Tabs Styling */
.faculty-tabs .A-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #333;
}

.tab {
  padding: 0.6rem 1.2rem;
  background-color: #252525;
  color: #e0e0e0;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.tab::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ff0000;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab:hover {
  background-color: #333;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

.tab:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.tab.active {
  background-color: #ff0000;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.tab.active::before {
  transform: scaleX(1);
  background: white;
}

/* ===================== */
/* Meeting Posts Styling */
/* ===================== */
.meeting-updates {
  margin: 2rem 0;
}

.meeting-post {
  background: #252525;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
  border-left: 4px solid #ff0000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meeting-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.1);
}

.meeting-post h4 {
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.meeting-post h4::before {
  content: "📅 ";
}

.post-date {
  color: #aaaaaa;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

.post-category {
  display: inline-block;
  background: #ff0000;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.post-content {
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.post-image {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 1rem;
  border: 1px solid #444;
}

.post-body{
color: #e0e0e0;
  line-height: 1.6;
  font-size: 1rem;
  overflow: break-word;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  flex-grow: 1; /* Takes available space */
    word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: left;
}

/* ====================== */
/* Achievements Styling */
/* ====================== */
.achievements-list {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0;
  margin-top: 2rem;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.achievements-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.achievement-card {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 1rem;
  margin: 0.5rem;
  width: 300px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.15);
  border-color: #ff4444;
}

/* Header with trophy icon */
.achievement-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.achievement-icon {
  color: #FFD700;
  font-size: 1.5rem;
}

.achievement-card h3 {
  color: #ffffff;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  
}



.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.1);
}

.achievement-card h4 {
  font-size: 0.9rem;
  font-weight: normal;
  color: #aaa;
  margin: 0.2rem 0 0.8rem;
}

.achievement-card p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.4;
}

.achievement-image-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #444;
  margin-bottom: 10px;
}

/* Content styling */
.achievement-content {
  color: #e0e0e0;
  line-height: 1.6;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Limit to 5 lines */
  -webkit-box-orient: vertical;
  flex-grow: 1; /* Takes available space */
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Achievement image container */
.achievement-image {
  margin: 0.5rem 0;
  text-align: center;
  max-height: 150px; /* Reduced from 200px */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333; /* Fallback background */
  border-radius: 8px;
}

/* Achievement image styling */
.achievement-image img {
  max-width: 25%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #444;
  transition: all 0.3s ease;
  object-fit: contain;
}

/* PDF link button */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ff0000;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  margin-top: auto; /* Pushes to bottom */
  transition: background 0.2s ease;
  width: fit-content;
}

.pdf-link:hover {
  background: #e60000;
}

.post-card div, .achievement-card div {
  white-space: pre-line;
}

.contact-section {
  padding: 4rem 2rem;
  background: #121212;
  color: #fff;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-section p {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 1rem;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ff1a1a;
}

.contact-button {
  background: #ff1a1a;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-button:hover {
  background: #e60000;
}


/* Under Construction */
.under-construction {
    text-align: center;
    font-size: 1.2em;
    color: #ffcc00;
    font-style: italic;
}
.corner-login-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: none;
  border: none;
  padding: 0;
  opacity: 0.2;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s, transform 0.3s;
  border-radius: 50%;
}

.corner-login-btn img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.corner-login-btn:hover {
  opacity: 0.6;
  transform: scale(1.05);
}
/* Responsive Design */
@media screen and (max-width: 1024px) {
    section {
        max-width: 90vw;
    }

    .card {
        width: 50vw;
    }

    .candidate-img {
        max-width: 30vw;
    }
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}

@media screen and (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
  }

  nav ul.show {
    display: flex;
  }

    .card {
        width: 90vw;
    }

    .candidate-img {
        max-width: 60vw;
    }
    .modal-content {
        width: 95%;
        padding: 15px;
    }
      .meeting-post {
    padding: 1.2rem;
  }
  
  .achievements-list {
    grid-template-columns: 1fr;
  }
  
  .achievement-card {
    padding: 1.2rem;
  }
  .faculty-tabs .A-tabs {
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    .faculty-tabs .A-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    -ms-overflow-style: none; /* IE/Edge */
  }
  
  .faculty-tabs .A-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  
  .tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    flex: 0 0 auto;
  }
}

@media screen and (max-width: 480px) {
  .meeting-post h4 {
    font-size: 1.1rem;
  }
  
  .achievement-card h3 {
    font-size: 1.1rem;
  }

}



@media screen and (max-width: 480px) {
    header {
        font-size: 1.2em;
        padding: 15px;
    }

    section {
        padding: 20px;
    }

    h2 {
        font-size: 1.5em;
    }

    .card {
        width: 90vw;
    }

    .candidate-img {
        max-width: 60vw;
    }
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}

/* Animation for tab switching */
@keyframes tabActive {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

.tab.active {
  animation: tabActive 0.5s ease-out;
}