/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ensure body always at least viewport height */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Content Area (main wrapper) */
main {
  flex: 1; /* pushes footer to bottom if content is short */
  padding: 20px; /* optional: spacing */
}

/* Header */
header { 
    background: #6a0dad; 
    color: #fff; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 24px; 
    position: relative; 
    z-index: 1000; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Logo */
.logo a { 
    font-size: 1.6rem; 
    font-weight: 700; 
    color: #fff; 
    text-decoration: none; 
    letter-spacing: 0.5px;
}

/* Desktop Navigation (default) */
nav { 
    display: flex; 
    gap: 14px; 
}
nav a { 
    color: #fff !important;
    font-weight: 500; 
    padding: 8px 12px; 
    border-radius: 6px; 
    transition: all 0.3s ease; 
    text-decoration: none; 
}
nav a:hover { 
    background: #fff; 
    color: #6a0dad !important; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Hamburger (hidden by default on desktop) */
.hamburger { 
    display: none; 
    flex-direction: column; 
    cursor: pointer; 
    gap: 5px; 
}
.hamburger div { 
    width: 26px; 
    height: 3px; 
    background: #fff; 
    border-radius: 2px;
}

/* Mobile + Tablet View */
@media (max-width: 768px) {
    nav {
        position: absolute; 
        top: 64px; 
        left: 0; 
        right: 0;
        background: #6a0dad; 
        flex-direction: column; 
        display: none; 
        text-align: center;
        padding: 16px 0;
        z-index: 9999;
        width: 100%;
    }
    nav.show { display: flex; }
    .hamburger { display: flex; }
    nav a {
        padding: 12px 0;
        font-size: 1.1rem;
        width: 100%;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    header { padding: 8px 16px; }
    .logo a { font-size: 1.4rem; }
}

/* Accessibility */
header a:visited { color: #fff !important; }

/* Button styling (if using elsewhere) */
#toggle-btn {
    background-color: #0d6efd;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#toggle-btn:hover {
    background-color: #0056b3;
}


.footer {
  background: #6a0dad; /* simple solid color for performance */
  color: #fff;
  padding: 30px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h2 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #f7c948;
}

.footer-section p,
.footer-section a {
  color: #ddd;
  text-decoration: none;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 6px;
}

.footer-section ul li a:hover {
  color: #f7c948;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #ccc;
}

/* Mobile Footer */
.footer-mobile {
  display: none;
  text-align: center;
  padding: 15px 10px;
  font-size: 13px;
}

.footer-mobile .footer-links {
  margin-top: 10px;
}

.footer-mobile .footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
}

.footer-mobile .footer-links a:hover {
  color: #f7c948;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-desktop { display: none; }
  .footer-mobile { display: block; }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
  }
}