/* ruleset.css */

/* Remove this if already present in styles.css */
/*
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*/

/* Ensure html and body take full height */
html,
body {
  height: 100%;
  font-family: "Roboto", sans-serif;
  background-color: #0d1117; /* Ensure body has a consistent background */
}

/* Ruleset Section Styles */
.ruleset-section {
  /* Removed flex: 1; as main-content handles flex */
  padding: 30px 15px; /* Reduced padding for less empty space */
  background-color: #121212; /* Slightly darker grey-black */
  color: #f0f0f0; /* Light grey for text */
}

/* Section Title */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px; /* Reduced margin for tighter spacing */
  text-align: center; /* Centered */
  color: #f0f0f0;
}

/* Rules Content */
.rules-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: justify; /* Justified text alignment */
  color: #f0f0f0;
}

.rules-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.rules-content ul li {
  margin: 10px 0;
}

.rules-content a {
  color: #86a3d2;
  text-decoration: none;
  transition: color 0.3s;
}

.rules-content a:hover {
  color: #4285f4;
}

/* Submissions Diagram */
.submissions-diagram {
  margin-top: 20px;
  text-align: center; /* Center the diagram image */
}

.diagram-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px; /* Space below image */
}

/* FAQ Section Styles */
.faq-section {
  /* Removed flex: 1; as main-content handles flex */
  padding: 30px 15px; /* Reduced padding for less empty space */
  background-color: #121212; /* Consistent dark background */
  color: #f0f0f0; /* Light grey for text */
}

.faq-section .section-title {
  font-size: 2.5rem;
  margin-bottom: 20px; /* Reduced margin for tighter spacing */
  text-align: center; /* Centered */
  color: #f0f0f0;
}

.faq-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: justify; /* Justified text alignment */
  color: #f0f0f0;
}

/* Weight Class Tool Link */
#weight-class-tool {
  color: #86a3d2;
  text-decoration: underline;
  cursor: pointer;
}

#weight-class-tool:hover {
  color: #4285f4;
}

/* Footer Styles */
.footer {
  background-color: #000000; /* Black background */
  color: #f0f0f0; /* Light grey text */
  width: 100%;
  padding: 20px 0;
  border-top: 2px solid #333333; /* Optional: Add a subtle top border */
  margin-top: auto; /* Pushes the footer to the bottom */

  /* Flexbox properties for footer content */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Removed position: relative; */
}

/* Footer Content */
.footer-content {
  max-width: 1200px; /* Adjust as per your design */
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
  text-align: center; /* Center text */
}

.footer-text p {
  margin-bottom: 5px;
}

.footer-text a {
  color: #86a3d2;
  text-decoration: none;
}

.footer-text a:hover {
  color: #4285f4;
}

.social-icons {
  display: flex;
  justify-content: center; /* Center the social icons */
  margin-top: 10px;
}

.social-icons a {
  color: #f0f0f0;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #86a3d2;
}

/* Main Content Wrapper (Option 1) */
.main-content {
  flex: 1; /* Allows this container to take up remaining space */
  display: flex;
  flex-direction: column;
  gap: 20px; /* Adds space between sections */
}

/* Responsive Styles for Ruleset Page */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .accordion-button {
    font-size: 1rem;
    padding: 10px;
    text-align: center; /* Centered text */
  }

  .accordion-body {
    padding: 15px;
  }

  .diagram-image {
    width: 100%;
    height: auto;
  }

  .faq-content,
  .rules-content {
    padding: 0 10px;
  }

  /* Ensure footer sticks to bottom on small screens */
  .wrapper {
    min-height: 100vh;
  }
}

@media (max-width: 480px) {
  .tile,
  .partner-tile,
  .conveyor-item {
    width: calc(100% - 40px);
  }

  .cta {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .footer-content {
    padding: 0 10px;
  }

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

/* Accordion Specific Styles */
.accordion {
  width: 100%;
}

.accordion-item {
  margin-bottom: 10px;
}

.accordion-header {
  margin-bottom: 5px;
}

.accordion-button {
  background-color: var(--color-accordion-bg-collapsed);
  color: var(--color-accordion-text);
  border: none;
  padding: 15px;
  font-size: 1.2rem;
  text-align: left;
  width: 100%;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 5px;
}

.accordion-button:not(.collapsed) {
  background-color: var(--color-accordion-bg-expanded);
  color: var(--color-accordion-text-expanded);
}

.accordion-body {
  background-color: var(
    --color-accordion-bg-expanded
  ); /* Different shade of grey */
  color: var(--color-light-grey);
  padding: 20px;
  text-align: justify;
  border-radius: 0 0 5px 5px;
  transition: background-color 0.3s ease;
}

/* Smooth transition for accordion */
.accordion-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-collapse.show {
  max-height: 1000px; /* Adjust based on content */
}
