* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-color: #FF4107;
  --brand-light: #FF6B3D;
  --brand-dark: #E63900;
}

/* Light Theme (Default) */
body {
  font-family: 'Noto Sans Bengali', sans-serif;
  line-height: 1.6;
  transition: all 0.3s ease;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-card: #FFFFFF;
  --text-primary: #212529;
  --text-secondary: #6C757D;
  --text-muted: #ADB5BD;
  --border-color: #E9ECEF;
  --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Dark Theme */
body.dark-theme {
  --bg-primary: #0A0A0A;
  --bg-secondary: #1A1A1A;
  --bg-card: #161616;
  --text-primary: #FFFFFF;
  --text-secondary: #B3B3B3;
  --text-muted: #666666;
  --border-color: #2A2A2A;
  --shadow: 0 2px 4px rgba(0,0,0,0.3);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Header */
.header {
  background-color: var(--bg-secondary);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background-color: var(--brand-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: white;
}

.logo-text {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.logo-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover {
  color: var(--brand-color);
}

.nav-icon {
  font-size: 16px;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--brand-color);
  color: var(--brand-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Notice Bar */
.notice-bar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 2rem auto;
  padding: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.scrolling-text {
  color: var(--brand-color);
  font-weight: 500;
  white-space: nowrap;
  animation: scroll 25s linear infinite;
}

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

/* Section */
.section {
  margin: 3rem 0;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-color);
  display: inline-block;
}

/* Unified Grid System */
.grid {
  display: grid;
  gap: 1rem;
  /* Desktop/Laptop: 5 columns */
  grid-template-columns: repeat(5, 1fr);
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
  .grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
  .grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: var(--brand-color);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.tv-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.tv-card:hover {
  border-color: var(--brand-color);
  transform: translateY(-2px);
}

.tv-icon {
  font-size: 40px;
  margin-bottom: 1rem;
  color: var(--brand-color);
}

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-overlay.show {
  display: flex;
}

.popup {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: var(--brand-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup h3 {
  color: var(--brand-color);
  font-size: 20px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.popup p {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-size: 14px;
}

.popup-button {
  background-color: var(--brand-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Noto Sans Bengali', sans-serif;
  transition: background-color 0.2s ease;
}

.popup-button:hover {
  background-color: var(--brand-dark);
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  text-align: center;
}

.footer-section h4 {
  color: var(--brand-color);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-location {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 0.5rem;
}

.footer-contact {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
  }

  .header-right {
      flex-direction: column;
      gap: 1rem;
  }

  .container {
      padding: 0 1rem;
  }

  .popup {
      margin: 1rem;
      padding: 1.5rem;
  }

  .nav-links {
      gap: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-links a {
      font-size: 12px;
  }
  
  .nav-icon {
      font-size: 14px;
  }
}