/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff6b35;
  --secondary-color: #f7931e;
  --dark-bg: #1a1a2e;
  --darker-bg: #0f0f1e;
  --light-bg: #16213e;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #b0b0b0;
  --border-color: #2a2a3e;
  --accent-color: #ffd700;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.main-header {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-logo {
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 107, 53, 0.1);
}

.nav-link:hover::after {
  width: 80%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* Main Content */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(22, 33, 62, 0.5);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  text-align: center;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: var(--secondary-color);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

ul {
  margin: 1rem 0 1rem 2rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Banner Styles */
.banner-section {
  margin: 2rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.banner-section a {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.main-banner {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: var(--transition);
}

.banner-section a:hover .main-banner {
  transform: scale(1.02);
}

/* Content with Sidebar */
.difficulty-section {
  position: relative;
  overflow: hidden;
}

.sidebar-banner {
  width: 300px;
  float: right;
  margin: 0 0 1.5rem 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  shape-outside: margin-box;
}

.sidebar-banner a {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.side-banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.sidebar-banner a:hover .side-banner-img {
  transform: scale(1.05);
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(15, 15, 30, 0.5);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

thead {
  background: var(--primary-color);
}

th {
  padding: 1rem;
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

tbody tr:hover {
  background: rgba(255, 107, 53, 0.1);
}

tbody tr:last-child {
  border-bottom: none;
}

td {
  padding: 1rem;
  color: var(--text-secondary);
}

/* FAQ Accordion Styles */
.faq-accordion {
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 15, 30, 0.5);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  gap: 1rem;
}

.faq-question:hover {
  background: rgba(255, 107, 53, 0.05);
}

.faq-question h3 {
  margin: 0;
  flex: 1;
  font-size: 1.25rem;
  color: var(--text-primary);
  border: none;
  padding: 0;
  font-weight: 600;
}

.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--text-primary);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--secondary-color);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 1.5rem;
}

.faq-answer.active {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  margin: 0;
  padding-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Footer Styles */
.main-footer {
  background: var(--darker-bg);
  border-top: 2px solid var(--border-color);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo-section {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  max-width: 200px;
  height: auto;
  opacity: 0.9;
  transition: var(--transition);
}

.footer-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-column-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-nav {
  list-style: none;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-copyright {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 968px) {
  .sidebar-banner {
    width: 100%;
    max-width: 400px;
    float: none;
    margin: 1rem auto;
    display: block;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-logo-section {
    justify-content: center;
  }

  .footer-logo {
    margin: 0 auto;
  }

  .footer-column-title {
    text-align: center;
  }

  .footer-nav {
    text-align: center;
  }

  .footer-link {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--border-color);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .header-nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
  }

  main {
    padding: 1rem;
  }

  section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1rem;
  }

  .faq-question {
    padding: 1.25rem;
  }

  .faq-question h3 {
    font-size: 1.1rem;
  }

  .faq-icon {
    width: 28px;
    height: 28px;
    font-size: 1.3rem;
  }

  .faq-answer {
    padding: 0 1.25rem;
  }

  .faq-answer.active {
    padding: 0 1.25rem 1.25rem;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-logo-section {
    justify-content: center;
  }

  .footer-logo {
    margin: 0 auto;
  }

  .footer-column-title {
    text-align: center;
  }

  .footer-nav {
    text-align: center;
  }

  .footer-link {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 40px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 1rem;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Smooth Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--text-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.scroll-to-top.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* Bottom CTA Banner */
.bottom-cta-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.bottom-cta-banner.visible {
  transform: translateY(0);
}

.bottom-cta-text {
  flex: 1;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bottom-cta-button {
  flex-shrink: 0;
  padding: 0.875rem 2rem;
  background: var(--text-primary);
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bottom-cta-button:hover {
  background: var(--accent-color);
  color: var(--darker-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.bottom-cta-button:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }

  .bottom-cta-banner {
    padding: 0.875rem 1rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .bottom-cta-text {
    font-size: 0.95rem;
  }

  .bottom-cta-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

