html {
  scroll-behavior: smooth;
}


:root {
  --bg-color: #0f0f0f;
  --primary-color: #1db954;
  --text-color: #f1f1f1;
  --card-bg: #1c1c1c;
  --border-color: #333;
}



body.light-mode {
  --bg-color: #f1f1f1;
  --text-color: #0f0f0f;
  --card-bg: #fff;
  --border-color: #ccc;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: all 0.3s ease;
  
}

.order-black-mode{
  display: flex;
  justify-content: center;
  height: 80px;
}

.order-black-mode h1 {
  position: absolute;
}

.order-black-mode button {
  margin-inline-start: auto;
  margin-right: 20px;
  
  
}


.container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 1rem;
}


header {
  background-color: var(--bg-color);
  padding: 0 0 0 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  
}

header h1 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.dropdown {
  display: none;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-color);
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  transition: background 0.3s;
}

nav a:hover {
  background-color: var(--primary-color);
  color: #000;
  border-radius: 3px;
}

.hero {
  width: 100%;
  text-align: center;
  padding: 1.5rem 0;
  margin: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  box-sizing: border-box;
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

#search {
  margin: 1rem 0;
  padding: 0.6rem;
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--card-bg);
  color: var(--text-color);
  font-size: 1rem;
}

#search::placeholder {
  color: var(--text-color);
  opacity: 0.7;
}

.news-section {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

ul {
  margin: 0
}

.news-section h2 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background-color: var(--card-bg);
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.news-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.news-card .news-meta {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 0.6rem;
}

.news-card p {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.news-card a {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.news-card a:hover {
  text-decoration: underline;
}

.contact-section {
  margin: 2rem 0;
}

.contact-section h2 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0077ff;
  outline: none;
}

.contact-form button {
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #0077ff;
  color: ar(--card-bg);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #005bcc;
}

input, textarea {
  padding: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--card-bg);
  color: var(--text-color);
  font-size: 1rem;
}

button {
  padding: 0.7rem;
  border: none;
  background-color: var(--primary-color);
  color: #000;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #17a34a;
}

footer {
  text-align: center;
  padding: 1.5rem 0;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

#theme-toggle {
  
  padding: 0.5rem 1rem;
  background: transparent;
  font-size: 20px;
  color: var(--text-color);
  cursor: pointer;
}

.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}




@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
    margin-top: 20px;
  }
  nav ul {
    display: none;

  }




  .news-grid {
    grid-template-columns: 1fr;
  }
  form {
    max-width: 100%;
  }
}