/* General Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0; 
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar Styles */
.navbar {
  background: #00796b;
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
}

/* Sections Styles */
.section {
  padding: 3rem 1rem;
}

.home h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.home p {
  font-size: 1.1rem;
}

/* Ask Section */
.ask textarea {
  width: 100%;
  height: 100px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.ask button {
  padding: 0.75rem 1.5rem;
  background: #00796b;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.ask button:hover {
  background: #005a4f;
}

/* Footer Styles */
footer {
  background: #eceff1;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

footer a {
  color: #007bff;
  text-decoration: none;
  margin: 0 0.5rem;
}
footer a:hover {
  text-decoration: underline;
  color: #88aae9;
}

/* Header Styles */
header {
  background: #ffffff;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* Filter Section */
.filter-section {
  background: #ffffff;
  padding: 15px;
  margin: 10px;
  margin-top: 0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-section h2 {
  margin-top: 0;
}

.filter-section select,
.filter-section button {
  display: block;
  margin: 0.5rem 0;
  padding: 0.5rem;
  width: 100%;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 10px;
}

/* Class Cards Styles */
.class-section {
  margin-top: 20px;
}

.class-card {
  background: #eaf7ff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 5px;
  border-radius: 6px;
  font-weight: bold;
}

.faq-arrow {
  transition: transform 0.3s ease;
}

.class-card.open .faq-arrow {
  transform: rotate(180deg);
}

.card-content {
  background: #ffffff;
  padding: 10px 15px;
  margin-bottom: 15px;
  border-left: 4px solid #3b82f6;
  display: none;
  border-radius: 0 0 6px 6px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  header h1,
  .heading {
    font-size: 1.2rem;
    padding: 0.75rem;
  }

  .subheading {
    font-size: 0.95rem;
  }

  .ask button {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .content-box::before {
    font-size: 4rem;
  }

  .home h1 {
    font-size: 2rem;
  }

  .home p {
    font-size: 1rem;
  }
}

/* Recently Updates Section */
.section.updates {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
}

h2 {
  text-align: left;
  color: #333;
  margin-bottom: 20px;
}

#updates-list {
  height: 200px;
  overflow: hidden;
  position: relative;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  background: #f9f9f9;
}

.update-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.update-info {
  flex: 1;
}

.update-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.update-text {
  font-weight: bold;
  color: #333;
}

.update-actions a {
  text-decoration: none;
  color: #00796b;
  margin-left: 10px;
  font-size: 14px;
}

.update-actions a.download {
  color: #d32f2f;
}

@keyframes scrollUpdates {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.scrolling {
  display: flex;
  flex-direction: column;
  animation: scrollUpdates 20s linear infinite;
}

/* Notification Bar Styles */
.notification-bar {
  background-color: #f9f9f9;
  color: #333;
  padding: 10px 20px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.notification-bar span {
  display: inline-block;
  padding-left: 100%;
  animation: slideText 20s linear infinite;
}

@keyframes slideText {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* About Us Section */
.section.questions {
  background-color: #f5f5f5;
  padding: 40px 20px;
  text-align: center;
}

.section.questions h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 28px;
}

.about-text {
  color: #444;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  color: #00796b;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #004d40;
  text-decoration: underline;
}
