/* ==========================
   GENERAL STYLES
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #fafafa;
  margin: 0;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 100vw;
  margin: auto;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================
   HERO SECTION
========================== */
.hero-section {
  width: 100vw; 
  height: 40vh; 
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  margin: auto;
}

.hero-section .services-bg {
  width: 100vw;
  max-height: 40vh;
  padding: 40px 20px;
}

/* ==========================
   HEADER
========================== */
header {
  text-align: center;
  margin-bottom: 20px;
  max-height: 70vh;
}

header img {
  width: 100%;
  height: 35vh;
  object-fit: cover;
  border-radius: 8px;
}

/* ==========================
   NAVIGATION
========================== */
nav {
  background: #333;
  color: #fff;
  padding: 10px 20px;
}

nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav .logo {
  font-size: 1.2em;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  transition: background 0.3s ease;
}

nav ul li a:hover {
  background: #575757;
  border-radius: 4px;
}

.menu-toggle {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
}
hr {
  margin: 1.5em 0;
}
/* ==========================
   RESPONSIVE NAVIGATION
========================== */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    width: 100%;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ==========================
   CARD GRID SECTION
========================== */
.card-grid {
  width: 80vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.card {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.thumbnail {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.icon-fallback {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px; /* Adjust as needed */
  width: 100px; /* Adjust as needed */
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.fas.fa-image::before {
  content: "\f03e";  /* Unicode for the image icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}


/* ==========================
   RESPONSIVE CARD GRID
========================== */
@media (max-width: 1024px) {
  .card-grid {
    width: 90vw;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid {
    width: 90vw;
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ==========================
   BLOG & SERVICES SECTIONS
========================== */
.blog-hero-section-details {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  min-height: 300px;
}

.hero-section {
  background: url('/static/images/services_bg.webp') no-repeat center center;
  background-size: cover;
  height: 56vh;
}

.services-bg {
  background-color: rgba(0, 0, 0, 0.2);
}

/* ==========================
   TEXT & UTILITIES
========================== */
h1, h2, h3 {
  margin-top: 1.2em;
}

.lead {
  font-weight: 600;
}

.authorized-warning {
  color: red;
  font-style: italic;
}

code, pre {
  background: #f4f4f4;
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
}

ul, ol {
  margin-left: 20px;
}
     /* Main container for sidebar + content */
     .mainbody {
      display: flex;
      min-height: calc(100vh - 60px); /* subtract nav height */
    }
    /* Sidebar navigation */
    .wget-nav {
      flex: 0 0 20%;
      background: #f0f0f0;
      padding: 1em;
      box-sizing: border-box;
    }
    .wget-nav h2 {
      font-size: 1.2em;
    }
    .wget-nav ul {
      list-style: none;
      padding-left: 0;
    }
    .wget-nav li {
      margin-bottom: 0.5em;
    }
    .wget-nav a {
      text-decoration: none;
      color: #333;
      cursor: pointer;
    }
    /* Main content area */
    .main-content {
      flex: 1;
      padding: 2em;
      box-sizing: border-box;
    }
/* ==========================
   FOOTER SECTION
========================== */
.footer-copyright {
  background-color: rgba(0, 0, 0, 0.3);
}

.footer-link {
  color: #ddd;
  text-decoration: none;
}

.social-facebook { background-color: #3b5998; }
.social-twitter { background-color: #55acee; }
.social-google { background-color: #dd4b39; }
.social-instagram { background-color: #ac2bac; }
.social-linkedin { background-color: #0082ca; }
.social-github { background-color: #333333; }

@media (max-width: 600px) {
  .section {
    width: 95vw; /* Increase width on smaller screens */
  }
  .mainbody {
    flex-direction: column;
  }
  .wget-nav {
    flex: none;
    width: 100%;
  }
  .main-content {
    width: 100%;
  }
}
.section {
  width: 75vw; /* Default width for larger screens */
  margin: auto;
}
/* ==========================
   CONTACT PAGE
========================== */
/* Contact Hero Section */
.contact-hero {
  background: url('/static/images/contact_hero.webp') no-repeat center center;
  background-size: cover;
  background-color: #1a1a1a;
  padding: 80px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: auto;
}

/* Heading */
.contact-hero h2 {
  font-size: 2.5rem;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.contact-hero p {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 30px;
}

/* Form Styles */
#contact-form {
  /* min-width: 80%; */
  max-width: 750px;
  background-color: #292929;
  padding: 30px;
  border-radius: 3px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: auto;
}

/* Input and Textarea */
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #1f1f1f;
  color: #f0f0f0;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #4caf50;
  outline: none;
}

/* Submit Button */
#submit-button {
  padding: 12px;
  font-size: 1rem;
  background-color: #4caf50;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

#submit-button:hover {
  background-color: #45a049;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .contact-hero h2 {
      font-size: 2rem;
  }

  #contact-form {
      padding: 20px;
  }
}