/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background: #0f1c2e;
      color: #fff;
    }

/* Header */
header {
  background-color: #1e2f47;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

nav {
  display: flex;
  flex-wrap: wrap;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00bfff;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem 2rem 4rem 2rem;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}



.hero h1 {
  font-size: 2.5rem;
  margin: 0; /* Remove margin */
  padding: 1rem 1rem 0; /* Top and bottom spacing only */
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: rem; /* Bottom spacing to define section height */
}

/* Features Section */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
  background-color: #16293d;
}

.feature {
  background-color: #223b5c;
  margin: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 300px;
  flex: 1 1 250px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature h3 {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: #1e2f47;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 1rem;
    flex-direction: column;
  }

  nav a {
    margin: 0.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .feature {
    max-width: 100%;
  }
}


/* Social Icons */
.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.social-icons .youtube {
  background-color: #ff0000;
}

.social-icons .facebook {
  background-color: #1877f2;
}

.social-icons .telegram {
  background-color: #0088cc;
}

.social-icons a:hover {
  opacity: 0.8;
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a svg {
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 50%;
}

.social-icons a:hover svg {
  transform: scale(1.1);
  opacity: 0.85;
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
  opacity: 0.85;
}

/* Floating Chat Toggle Button */
#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #223b5c;
  color: #fff;
  padding: 10px 15px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: background 0.3s ease;
}

#chat-toggle:hover {
  background-color: #2e4a6f;
}

/* Chat Panel */
#chat-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  max-height: 400px;
  background-color: #16293d;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
}

/* Chat Header */
.chat-header {
  background-color: #223b5c;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Chat Body */
.chat-body {
  padding: 15px;
  color: #fff;
  font-size: 0.95rem;
  overflow-y: auto;
  height: 300px;
}

.chat-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 300px;
  padding: 15px;
  color: #fff;
  font-size: 0.95rem;
  overflow: hidden;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
}

.chat-input {
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  border-radius: 5px;
  border: none;
  font-size: 0.9rem;
}

.chat-input button {
  padding: 8px 12px;
  background-color: #2e4a6f;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.chat-input button:hover {
  background-color: #3a5b80;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

.user-message {
  align-self: flex-end;
  background-color: #2e4a6f;
  color: #fff;
}

.bot-message {
  align-self: flex-start;
  background-color: #3a5b80;
  color: #fff;
}

.contact-section {
  background-color: #16293d;
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.contact-section h2 {
  margin-bottom: 1rem;
}



.contact-section p a {
  color: #00bfff;
  text-decoration: none;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 1rem auto;
}

.contact-section input,
.contact-section textarea {
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
}

.contact-section button {
  padding: 10px;
  background-color: #2e4a6f;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.contact-section button:hover {
  background-color: #3a5b80;
}

.hero {
  background-image: url('assets/images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}


nav a:hover, button:hover {
  color: #00bfff;
  background-color: #2a3f5f;
  transition: 0.3s ease;
}

#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #00bfff;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

#chat-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  max-height: 400px;
  background: #223b5c;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: all 0.3s ease-in-out;
}

.hero-container {
  position: relative;
  display: inline-block; /* or block, depending on layout */
}

.hero-container img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Black with 50% opacity */
  border-radius: 1px; /* optional */
  z-index: 1;
}

.loading-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 1.2em;
  text-align: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.loading-modal p {
  margin-top: 20px;
}

.spinner {
  margin: 20% auto 10px;
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top: 6px solid #00bfff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.news-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;
  width: 100%;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.news-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 15px;
}

.news-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.news-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.news-snippet {
  font-size: 15px;
  color: #333;
}

.news-full {
  display: none;
  font-size: 15px;
  color: #333;
  margin-top: 10px;
  white-space: pre-wrap;
}

.news-card:hover .news-snippet {
  display: none;
}

.news-card:hover .news-full {
  display: block;
}