/* styles.css */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Comic Neue", serif;
}

body,
html {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

header {
  background-color: #3c3f56;
  color: white;
  padding: 10px 20px;
  height: 10vh;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

header .logo img {
  display: block;
  height: 80px;
  width: auto;
}

header nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0 10px; /* Adjust padding */
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between; /* Adjust spacing */
  width: 100%; /* Ensure the navbar doesn't overflow */
}

header nav ul li {
  margin-left: 40px;
}

header nav ul li a {
  font-size: 25px;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #2575fc; /* Change color on hover */
}

.hero {
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 60px 20px;
}
.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #ffffff;
}

/*  */
@media (max-width: 768px) {
  .hero .search-bar-container {
    width: 80%; /* Make the search bar take up 80% of the screen width on small screens */
    max-width: none; /* Remove max-width limit on small screens */
  }
}
/* Container styling */
.search-bar-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 20px;
  font-family: Arial, sans-serif;
}

/* Search bar styling */
.search-bar {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  outline: none;
  transition: all 0.3s ease;
}

.search-bar:focus {
  border-color: #4285f4;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

/* Search results dropdown */
.search-results {
  position: absolute;
  top: 120%;
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

/* Individual result items */
.result-item {
  padding: 12px 16px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.result-item:hover {
  background-color: #f1f1f1;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 12px;
  font-size: 14px;
  color: #888;
}

.hero p {
  padding-top: 10px;
  color: #d7cdcd;
  font-family: inherit;
  font-size: 14px;
}
/* Moving Text Effect */
.moving-text {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  color: #fff;
  padding: 10px 0;
  border-radius: 5px;
  margin-top: 20px;
  font-size: 16px;
  font-weight: bold;
}

.moving-text p {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%; /* Start text outside the view */
  animation: scrollText 15s linear infinite;
}

@keyframes scrollText {
  from {
    transform: translateX(100%); /* Start from right */
  }
  to {
    transform: translateX(-100%); /* Move to the left */
  }
}

.categories {
  padding: 10px 20px;
}
.categories h2 {
  text-align: center;
  font-family: "Comic Neue", serif;
  font-weight: 500;
  font-size: 48px;
  text-decoration: underline;
  margin-bottom: 20px;
}
.categories h3 {
  text-align: center;
  font-family: "Comic Neue", serif;
  font-weight: 500;
  font-size: 28px;
}
.category-cards {
  display: flex;
  justify-content: space-between;
  margin: 20px auto;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 1200px;
}
.category-card a {
  color: inherit;
  text-decoration: none;
  text-align: center;
  font-size: 19px;
  font-weight: 450;
  font-family: inherit;
}
.category-card {
  flex: 1 1 calc(20% - 10px);
  padding: 10px 15px;
  background: linear-gradient(to right, #8b4ef7, #5a8efc);
  color: white;
  padding: 20px;
  text-align: center;
  width: 180px;
  border-radius: 10px;
  border: 2px solid black;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.category-card:hover {
  transform: scale(1.05);
  color: #f7e704;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
  .category-cards {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .category-cards {
    flex-direction: column; /* Stack the category cards vertically */
    align-items: center; /* Center the category cards */
  }

  .category-card {
    width: 90%; /* Make cards take up 90% of the container's width */
    max-width: 300px; /* Limit the width to 300px */
  }
}

@media (max-width: 480px) {
  .category-card {
    width: 100%;
    max-width: 100%;
  }
}

.notes {
  padding: 50px 20px;
}

.notes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.note-card {
  background-color: white;
  padding: 20px;
  width: 250px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.subjects h2 {
  text-align: center;
  font-family: "Comic Neue", serif;
  font-weight: 500;
  font-size: 40px;
}

th,
td {
  font-family: inherit;
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #000000;
}

th {
  background-color: #1165ed;
  color: #e7e7e7;
  font-size: 20px;
}

/* Responsive Table */
.subjects {
  max-width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  margin-bottom: 180px;
}

#subjectsTable {
  width: 90%;
  margin: 0 auto;
  border-collapse: collapse;
}

#subjectsTable th,
#subjectsTable td {
  padding: 10px 15px;
  font-family: inherit;
  text-align: left;
  border: 1px solid #000000;
}

#subjectsTable th {
  background-color: #11a6e1;
  font-weight: bold;
}

#subjectsTable td a {
  text-decoration: none;
  color: #2575fc;
}

#subjectsTable td a:hover {
  color: #701bcc;
}

/* Responsive Table for smaller screens */
@media screen and (max-width: 768px) {
  #subjectsTable {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  #subjectsTable th,
  #subjectsTable td {
    display: block;
    text-align: right;
  }

  #subjectsTable td {
    border: none;
    padding: 10px;
    text-align: left;
  }

  #subjectsTable td::before {
    content: attr(data-label);
    font-weight: bold;
    display: inline-block;
    width: 120px;
  }

  #subjectsTable th {
    display: none;
  }
}

/* Flex container for the category cards */
#cse-semesters .category-cards {
  display: flex;
  justify-content: space-around; /* Match the "Branches" section spacing */
  gap: 15px; /* Slightly reduced gap */
  flex-wrap: wrap;
}

/* Flex item for each card */
#cse-semesters .category-card {
  background-color: #4b0076; /* Your existing color */
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  width: 18%; /* Set fixed width for each card */
  min-width: 150px; /* Prevent shrinking too much on small screens */
  max-width: 180px; /* Prevent expanding too much on larger screens */
  transition: background-color 0.3s;
}

/* Style for links inside the category cards */
#cse-semesters .category-card a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  display: block; /* Ensure the link fills the entire card */
  text-align: center;
}

/* Hover effect */
#cse-semesters .category-card:hover {
  background-color: #6a1b9a; /* Adjust hover effect as needed */
}
/* Styling for the Question Papers Redirect Section */
.question-paper-section {
  text-align: center;
  margin: 50px 0;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.question-paper-section h2 {
  font-size: 2.5rem;
  color: #4b0076;
  margin-bottom: 15px;
  font-family: "Arial", sans-serif;
}

.question-paper-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
  font-family: "Arial", sans-serif;
}

.btn-access-questions {
  padding: 15px 30px;
  font-size: 1.3rem;
  color: #fff;
  background-color: #4b0076;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-access-questions:hover {
  background-color: #6a00a2;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-access-questions:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-access-questions:focus {
  outline: none;
}

/* General Section Styling */
#previous-year-questions {
  margin: 20px 0;
  font-family: Arial, sans-serif;
  text-align: center;
}

#previous-year-questions h2 {
  margin-bottom: 15px;
  color: #4b0076;
}
/* Dropdown Styling */
.dropdown-container {
  margin-bottom: 20px;
}

label {
  font-weight: bold;
  margin-right: 5px;
}

select {
  padding: 8px;
  margin: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* Table Styling */
#question-table-container {
  display: none;
  margin: 0 auto;
  overflow-x: auto;
}

#question-table {
  width: 100%;
  border-collapse: collapse;
}

#question-table th,
#question-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

#question-table th {
  background-color: #4b0076;
  color: white;
}

#question-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

#question-table a {
  color: #4b0076;
  text-decoration: none;
}

.floating-arrow {
  position: fixed;
  bottom: 20px; /* Adjust the distance from the bottom */
  right: 20px; /* Adjust the distance from the right */
  background-color: #4b0076; /* Set the background color */
  color: white;
  font-size: 30px;
  width: 60px; /* Set a fixed width */
  height: 60px; /* Set a fixed height */
  border-radius: 50%; /* Makes the button round */
  text-align: center;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000; /* Ensures the button stays above other content */
  transition: background-color 0.3s ease;
  cursor: pointer; /* Change cursor to pointer on hover */
}

.floating-arrow:hover {
  background-color: #6200ea; /* Change color on hover */
}

/* Preparation Section Styling */
.preparation-section {
  background: linear-gradient(
    45deg,
    #0056b3,
    #007bff
  ); /* Slightly warmer blue gradient */
  padding: 70px 20px 50px; /* Added more padding on top */
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

.preparation-section h2 {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #fff;
}

.welcome-note {
  font-size: 18px;
  color: #d1eaff; /* Softer light blue for readability */
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.instructions-container {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 20px;
  padding: 0 20px;
}

.instruction-item {
  background-color: rgba(
    255,
    255,
    255,
    0.1
  ); /* Slightly transparent background for cards */
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex: 1;
  transition: transform 0.3s ease-in-out;
}

.instruction-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.instruction-item h3 {
  font-size: 22px;
  color: #ffd700; /* Gold accent for titles */
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.instruction-item p {
  font-size: 16px;
  color: #fff;
  line-height: 1.5;
}

.instruction-item .icon {
  font-size: 30px;
  margin-right: 10px;
}

.preparation-quotes {
  font-style: italic;
  color: #d1eaff; /* Softer blue for quotes */
  margin-top: 40px;
}

.preparation-quotes h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.preparation-quotes blockquote {
  font-size: 18px;
  color: #00c9ff; /* Light blue for quotes */
  border-left: 4px solid #00c9ff;
  padding-left: 30px;
  margin-bottom: 20px;
  font-family: "Georgia", serif;
  transition: transform 0.3s ease-in-out;
}

.preparation-quotes blockquote:hover {
  transform: scale(1.05);
}
/* Previous Year Question Paper Section */
/* General Section Styling */
#previous-year-questions {
  margin: 20px 0;
  font-family: Arial, sans-serif;
  text-align: center;
  border: solid 2px #4b0076;
  border-radius: 10px;
  padding: 20px;
  background-color: #f4f4f9;
}

#previous-year-questions h2 {
  margin-bottom: 25px;
  color: #4b0076;
  font-size: 2em;
  text-transform: uppercase;
}

.dropdown-container {
  margin-bottom: 20px;
}

label {
  font-weight: bold;
  margin-right: 10px;
  color: #4b0076;
}

select {
  padding: 10px;
  margin: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  background-color: white;
  transition: border-color 0.3s ease;
}

select:focus {
  border-color: #4b0076;
}

#question-table-container {
  display: none;
  margin: 20px auto;
  width: 90%;
  max-width: 1000px;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
}

#question-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
}

#question-table th,
#question-table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 1em;
}

#question-table th {
  background-color: #4b0076;
  color: white;
  font-size: 1.1em;
}

#question-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

#question-table tbody tr:hover {
  background-color: #e0e0e0;
}

#question-table a {
  color: #4b0076;
  text-decoration: none;
  font-weight: bold;
}

#question-table a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  #previous-year-questions {
    padding: 15px;
    margin: 10px 0;
  }

  #previous-year-questions h2 {
    font-size: 1.5em;
  }

  label {
    display: block;
    margin-bottom: 10px;
  }

  select {
    width: 100%;
    margin: 10px 0;
    box-shadow: 2px 2px 4px #000000;
  }

  #question-table-container {
    width: 100%;
    margin-top: 20px;
  }

  #question-table th,
  #question-table td {
    font-size: 0.9em;
    padding: 8px;
  }
}
/* footer */
/* Footer Styling */
footer {
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: #ffffff;
  font-family: "Arial", sans-serif;
  padding: 30px 10px 0;
}

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

/* Logo and About Us */
.footer-section.logo-about {
  flex: 1 1 300px;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 15px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #dcdcdc;
}

/* Quick Links */
.footer-section.quick-links {
  flex: 1 1 200px;
}

.footer-section.quick-links h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #f8b400;
}

.footer-section.quick-links ul {
  list-style: none;
  padding: 0;
}

.footer-section.quick-links li {
  margin: 8px 0;
}

.footer-section.quick-links a {
  text-decoration: none;
  color: #dcdcdc;
  transition: color 0.3s ease;
}

.footer-section.quick-links a:hover {
  color: #f8b400;
}

/* Contact */
.footer-section.contact {
  flex: 1 1 250px;
}

.footer-section.contact h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #f8b400;
}

.footer-section.contact p {
  margin: 5px 0;
}

.footer-section.contact i {
  margin-right: 8px;
  color: #f8b400;
}

/* Newsletter */
.footer-section.newsletter {
  flex: 1 1 300px;
}

.footer-section.newsletter h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #f8b400;
}

.newsletter-form {
  display: flex;
  margin-top: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.newsletter-form button {
  padding: 8px 15px;
  background-color: #f8b400;
  color: #333;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #ffcc33;
}

/* Social Media & Footer Bottom */
.footer-bottom {
  border-top: 1px solid #555;
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
}

.social-icons {
  margin-bottom: 10px;
}

.social-icons a {
  color: #dcdcdc;
  margin: 0 10px;
  font-size: 18px;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #f8b400;
}

.footer-bottom p {
  font-size: 14px;
  color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    border-radius: 5px;
    margin-bottom: 10px;
  }
}

@media (max-width: 800px) {
  header {
    height: auto; /* Allow height to adjust dynamically */
    padding: 20px; /* Add extra padding for better spacing */
    flex-wrap: wrap; /* Allow the header's content to wrap */
  }

  header nav ul {
    display: block; /* Stack items vertically */
    text-align: center; /* Center the items */
    width: 100%; /* Make ul take full width */
  }

  header nav ul li {
    margin: 10px 0; /* Add vertical spacing between items */
  }

  header nav ul li a {
    font-size: 20px; /* Reduce font size for better fit */
  }
}
