/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: #333;
  line-height: 1.6;
  background-color: #ffffff;
  overflow-x: hidden; 
}

/* Top Bar */
.top-bar {
  background-color: #051a35;
  color: #ffffff;
  padding: 1px 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  z-index: 1003;
  transition: top 0.3s ease;
  font-size: smaller;
}

.top-bar .contact-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar .contact-info i {
  margin-right: 0.5rem;
}

.top-bar .contact-info a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 1rem;
  white-space: nowrap;
}

.top-bar .contact-info a:hover {
  text-decoration: underline;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  
}

.top-bar .social-icons {
  display: flex;
  align-items: center;
}

.top-bar .social-icons a {
  color: #ffffff;
  margin: 0 2px;
  font-size: 0.8rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.top-bar .social-icons a:hover {
  transform: scale(1.2);
  color: #e5c700;
}

/* Language Switcher */
.language-switcher {
  position: relative;
  display: inline-block;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: transparent;
  color: #ffffff;
  padding: 0.5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: bold;
  gap: 5px;
}

.dropbtn .flag-icon {
  width: 20px;
  height: auto;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 2000;
  right: 0;
  border-radius: 5px;
}

.dropdown-content a {
  color: #051a35;
  padding: 10px 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: #e0e0e0;
}

.dropdown-content .flag-icon {
  width: 20px;
  height: auto;
  margin-right: 8px;
}

.language-switcher:hover .dropdown-content {
  display: block;
}

/* Navbar (Header) */
.navbar {
  background-color: #082b5a;
  color: #ffffff;
  padding: 0.5rem;
  display: flex;
  justify-content:space-around;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 38px;
  z-index: 1001;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background-color: rgba(8, 43, 90, 0.95);
  padding: 0.8rem 1rem;
}

@media (min-width: 769px) {
  .navbar.scrolled {
    top: 0;
  }
}

.logo img {
  height: 50px;
  width: auto;
  transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
  height: 40px;
}

.title h1 {
  font-size: 1.5rem;
  font-family: 'Chopsic', Arial, sans-serif;
  transition: font-size 0.3s ease;
}

.navbar.scrolled .title h1 {
  font-size: 1.3rem;
}

@font-face {
  font-family: 'Chopsic';
  src: url('supercharge.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Main Navigation */
nav ul {
  list-style: none;
  display: flex;
  
  gap: 1.5rem;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1004;
}

nav a:hover {
  background-color: rgba(255,255,255,0.2);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #e5c700;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
nav .dropdown {
  position: relative;
}

nav .dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border-radius: 5px;
  top: 100%;
  left: 0;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

nav .dropdown-content a {
  color: #051a35;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  z-index: 1006;
  transition: background-color 0.2s;
}

nav .dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #051a35;
}

nav .dropdown:hover .dropdown-content {
  display: block;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* When menu is open (active) */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Top Bar and Navbar */
@media (max-width: 768px) {
  .top-bar {
    justify-content: flex-end;
    padding: 0.5rem;
    z-index: 2500;
  }

  .top-bar .contact-info {
    display: none;
  }

  .top-bar-right {
    gap: 0.5rem;
  }

  .navbar {
    flex-direction: column;
    position: relative;
    padding: 1rem;
    top: 0px;
    z-index: 2002;
  }

 .title h1 {
  font-size: 1.3rem;
  font-family: 'Chopsic', Arial, sans-serif;
  text-align: center;
  transition: font-size 0.3s ease;
}

  .navbar.scrolled {
    position: relative;
    top: 0;
  }

  .logo, .title {
    margin-bottom: 0.1rem;
  }

  .logo {
    display:flex;
    justify-content: center;
    align-items: center;

  }

  nav {
    width: 100%;
  }

  nav ul {
    position: fixed;
    top: 0px;
    left: -310px;
    width: 300px;
    height: 100vh;
    background: #082c5af3;
    flex-direction: column;
    gap: 0;
    display: flex;
    animation: none;
    padding: 2rem 0 0 0;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    z-index: 2001;
    transition: left 0.4s cubic-bezier(.77,0,.18,1);
    overflow-y: auto;    /* Make nav menu scrollable */
    overscroll-behavior:unset; /* Prevent body scroll when at menu edge */
  }

  nav ul.show {
    left: 0;
    
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav .dropdown.active > a {
    color: #e5c700;
    background-color: rgba(255,255,255,0.1);
  }

  nav .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: rgba(0,0,0,0.2);
    display: none !important;
    animation: none !important;
    border-radius: 0;

    animation: none;
    border-radius: 0;
    padding: 0; /* Remove inherited padding */
    margin: 0;  /* Remove any margin */
    top: 0;     /* Align to top of parent */
  }

  nav .dropdown-content a {
    color: #ffffff;
    padding: 1rem 2rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
  }

  nav .dropdown-content a:hover {
    background-color: rgba(255,255,255,0.1);
    border-left: 3px solid #e5c700;
    padding-left: 2.5rem;
  }

  nav .dropdown.active .dropdown-content {
    display: block !important;
  }

  nav .dropdown > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
  }

  nav .dropdown.active > a::after {
    transform: rotate(180deg);
  }

  .hamburger {
    display: flex;
    margin-left: auto; /* Pushes hamburger to the far right */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 2001;
  }

   body.menu-open {
    overflow: hidden;
  }

.slideshow-container {
    margin-top: 0 !important; /* Adjust if needed for new navbar height */
  }


}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  margin-top: 70px;
  z-index: 990;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 36px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.slide.active {
  opacity: 1;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  color: #ffffff;
  font-weight: bold;
  font-size: 24px;
  transition: background-color 0.3s ease;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.7);
}

.slide-indicators {
  text-align: center;
  padding: 15px;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 10;
}

.indicator {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 7px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator:hover {
  transform: scale(1.2);
}

.indicator.active {
  background-color: #ffffff;
  transform: scale(1.2);
}

/* Body Styles */
.main-container {
  max-width: 1120px;
  margin: 3rem auto;
  padding: 0 2rem;
  text-align: center;
}

.main-container h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.who-we-are {
  max-width: 1200px;
  margin: 20px auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

p {
  text-align: justify;
  color: #555;
  line-height: 1.6;
}

.products {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1240px;
  margin: 20px auto;
  padding: 20px;
}

.product {
  flex: 1 1 calc(50% - 20px);
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.product:hover {
  transform: scale(1.05);
}

.product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.product p {
  font-style: italic;
  color: #333;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #074ca7;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #051a35;
}

/* Featured Articles */
.featured-articles {
  max-width: 1240px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.featured-articles h2 {
  text-align: center;
  color: #333;
}

.featured-articles hr {
  border: 0;
  height: 1px;
  background: #0257c7;
  margin: 20px 0;
}

.articles-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.article {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 0.5px solid #0257c7;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article img {
  max-width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.article h3 {
  margin: 15px 0;
  color: #074ca7;
}

.article .date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 10px;
}

.article p {
  flex-grow: 1;
  margin-bottom: 10px;
}

/* Footer Styles */
footer {
  background-color: #082b5a;
  color: #ffffff;
  padding: 20px 0;
  margin-top: 20px;
  position:relative;
  z-index: 1000;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
  text-align: left;
}

.footer-column {
  flex: 1;
  margin: 0 10px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #e5c700;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #e5c700;
}

.footer-column form {
  display: flex;
  flex-direction: column;
}

.footer-column input,
.footer-column textarea {
  margin-bottom: 10px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
}

.footer-column button {
  padding: 10px;
  background-color: #e5c700;
  color: #082b5a;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-column button:hover {
  background-color: #faa329;
}

.copyright {
  margin-top: 20px;
  font-size: 14px;
  color: #e5c700;
  text-align: center;
  background-color: #051a35;
  padding: 10px;
}

/* Chat Button and Window */
.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #082b5a;
  color: #e5c700;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 3001;
}

.chat-button:hover {
  background-color: #051a35;
}

.chat-button i {
  font-size: 24px;
}

.chat-window {
 position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 3000;
  overflow: hidden; /* Prevent content from expanding the window */
}

.chat-header {
  background-color: #082b5a;
  color: #fff;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-body {
  display: flex;
  flex-direction: column;
  height: 350px;
}

/* Chat content area - will contain messages and input */
#chat-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  }

.chat-messages div {
  margin-bottom: 10px;
  padding: 8px;
  background-color: #f0f0f0;
  border-radius: 5px;
}

.chat-input-container {
  padding: 10px;
  border-top: 1px solid #eee;
  background: #f9f9f9;
  flex-shrink: 0; /* Prevent shrinking */
}

#chat-input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 8px 15px;
  resize: none; /* Prevent manual resizing */
  max-height: 100px; /* Maximum height before scrolling */
  overflow-y: auto; /* Add scroll if content exceeds max height */
}

.send-button {
  background-color: #082b5a;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.send-button:hover {
  background-color: #051a35;
}

.close-chat {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

#chat-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2502;
}

#chat-form input {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
}

#chat-form button {
  background-color: #082b5a;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
}

#chat-form button:hover {
  background-color: #051a35;
}

/* Message styling */
.message {
  padding: 8px 12px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
  line-height: 1.4;
}

.user-message {
  background-color: #e3f2fd;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.bot-message {
  background-color: #f1f1f1;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}



/* Typing Animation */
.mission-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.typing-container {
  font-size: 1.2em;
  line-height: 1.6;
  color: #333;
  padding: 10px;
  text-align: justify;
  font-style: italic;
}

.cursor {
  display: inline-block;
  margin-left: 3px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Responsive Adjustments for Articles */
@media (max-width: 900px) {
  .articles-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .articles-container {
    grid-template-columns: 1fr;
  }
}

/* Responsive Adjustments for Other Sections */
@media (max-width: 768px) {

  .main-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 4px;
  text-align: center;

  }
  .products {
    flex-direction: column;
    padding: 0 0;
  }
.products, .advertisements {
  
  margin: 0 auto;
  padding: 0 0;
  }
  .product {
    flex: 1 1 100%;
    margin: 10px 0;
  }

  .footer-row {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }
}
/* Featured Articles */
.featured-articles {
  max-width: 1240px;
  margin: 30px auto;
  padding: 5px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);


}

.social-icons {
  display: flex;
  gap: 30px;
}

.social-icons a {
  color: white;
  font-size: 24px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #e5c700;
}

.map-container {
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.map-container iframe {
  width: 100%;
  min-height: 250px;
  border: 0;
  display: block;
}

.footer-column p {
  color: #f1f1f1;
  font-size: 14px;
  padding-top: 5px;
  font-weight:normal;
  margin-bottom: 10px;
}

.products, .advertisements {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  max-width: 1065px;
  margin: 0 auto;
  padding: 5px;
}

.product, .advertisement {
  flex: 1 1 calc(50% - 40px);
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0);
  text-align: center;
  border-radius: 0px;
  overflow: hidden;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.product:hover {
  transform: scale(1.05);
}

.product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0px;
}

.product p {
  font-style: italic;
  text-align: justify;
  color: #333;
}

.advertisement {
  background-color: #38fffd;
  color: #333;
}


/* Side Ads Styles */
.side-ad {
  position: fixed;
 
 
  z-index: 989;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  /* Optional: fade in */
  opacity: 0.95;
}

.left-ad {
  left: 0;
}

.right-ad {
  right: 0;
  top: 70px;
}

.ad-content {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 10px;
  width: 140px;
  height: 750px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1000;
}

@media (max-width: 1200px) {
  .side-ad {
    display: none;
  }
}

.featured-image {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  overflow: hidden;
  margin-top: 70px; /* Adjust if needed for your header height */
  margin-bottom: 2rem;
  z-index: 1000;
}

.featured-image img {
  width: 100%;
  height: 300px; /* Adjust height as needed */
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .featured-image {
    margin-top: 0; /* Remove top margin on smaller screens */
  }
}


.product-business-flex {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
}

.product-business-flex img {
  width: 260px;
  height: 250px;
  object-fit: cover;
  
  flex-shrink: 0;
}

.product-business-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .product-business-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .product-business-flex img {
    width: 100%;
    height: 180px;
    margin-bottom: 10px;
     border-radius: 10px;
  }
  .product-business-text {
    width: 100%;
  }
}

.main-container ul,
.main-container ol {
  text-align: justify;
  margin-left: 1.5em;
}