:root {
  --main-color: #38b6ff;
}

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

html {
  scroll-padding-top: 80px; /* adjust based on your navbar height */
  scroll-behavior: smooth;
}

body {
  font-family: "system-ui", Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  padding-top: 80px;
}

.filter_headings {
  margin-bottom: 1em;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo img {
  max-width: 150px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-item a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-item a:hover {
  color: #7ed957;
}

.nav-item a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--main-color);
  transition: width 0.3s ease;
}

.nav-item a:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 10px;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background: var(--main-color);
  color: white;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-container {
  position: relative;
}

.search-icon,
.close-icon,
.hamburger,
.close-hamburger {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: #333;
  width: 30px;
  height: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon:hover,
.close-icon:hover,
.hamburger:hover,
.close-hamburger:hover {
  background: rgba(255, 107, 53, 0.1);
  color: var(--main-color);
}

.search-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 20px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
}

.search-overlay.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.search-overlay .mtop {
  margin-top: 0;
  display: none;
}

.search-overlay .social_container {
  max-width: 1200px;
  margin: auto;
}

.hamburger,
.close-hamburger {
  display: none;
}

.close-icon {
  display: none;
}

/* Blink animation */
@keyframes blinkBorder {
  0%,
  100% {
    border-color: red;
  }
  50% {
    border-color: transparent;
  }
}

.blink-red {
  animation: blinkBorder 0.6s ease-in-out 5; /* 5 blinks in 3 seconds */
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1px 0;
  }

  .dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .dropdown-arrow {
    transform: rotate(-90deg);
  }

  .dropdown.active .dropdown-arrow {
    transform: rotate(0deg);
  }

  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 107, 53, 0.1);
    margin: 10px 0;
    border-radius: 12px;
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .hamburger,
  .close-hamburger {
    display: block;
  }

  .close-hamburger {
    display: none;
  }

  .search-overlay {
    top: 70px;
    padding: 15px;
  }

  .search-bar {
    padding: 10px 15px;
    gap: 2px;
  }

  .search-bar input {
    font-size: 16px;
  }

  .nav-container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 20px;
  }

  .search-overlay {
    padding: 10px;
  }
}

.content {
  max-width: 1290px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  padding: 20px;
  box-sizing: border-box;
}

/* Main section and sidebar */
.main-section {
  flex: 2;
  min-width: 300px;
}

.main-section h1 {
  font-size: 1.5em;
  color: var(--main-color);
  margin-bottom: 20px;
}

.sidebar-section {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
    padding: 10px;
  }

  .main-section,
  .sidebar-section {
    width: 100%;
  }
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.card h2 {
  color: var(--main-color);
  margin-bottom: 15px;
}
.footer_container {
  background-color: #f0f4f7;
  padding: 30px 15px;
  color: #1a1a1a;
}

.footer_inner {
  max-width: 1290px;
  margin: 0 auto;
}

.footer_flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 1em;
}

/* Social */
.footer_social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
}
.footer_social a {
  color: #1a1a1a;
  font-size: 18px;
  text-decoration: none;
}
.footer_social a:hover {
  color: var(--main-color);
}

.footer_top_links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}

.footer_top_links a {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer_top_links a:hover {
  color: var(--main-color);
}

.footer_title {
  font-weight: bold;
  margin-bottom: 10px;
}

/* Lists */
.footer_list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.footer_list li {
  font-size: 14px;
  margin-bottom: 6px;
}

.footer_list li a {
  text-decoration: none;
  color: #000;
}

.footer_list li a:hover {
  color: var(--main-color);
}

/* About */
.footer_about {
  font-size: 14px;
  line-height: 1.6;
}

/* Bottom */
.footer_bottom {
  text-align: center;
  font-size: 14px;
  color: #333;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .footer_flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

.sidebar_heading {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--main-color);
}

.mtop {
  margin-top: 1,5em;
}

.main_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.show_list {
  display: block;
  border: 1px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: transform 0.2s ease;
}

.show_list:hover {
  transform: translateY(-4px);
  border: 1px solid var(--main-color);
}

.show_list img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.show_list div {
  padding: 8px 12px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 768px) {
  .main_list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.ch_container_404 {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  background-color: #f9f9f9;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.ch_content_404 {
  max-width: 500px;
  width: 100%;
}

.ch_code_404 {
  font-size: 120px;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 20px;
}

.ch_message_404 {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.ch_desc_404 {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.ch_button_404 {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--main-color);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.ch_button_404:hover {
  background-color: #000;
}

.social_container {
  padding: 10px;
  max-width: 100%;
}

.social_buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social_btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  text-decoration: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  flex: 1 1 calc(50% - 10px);
  justify-content: center;
  transition: background 0.3s;
}

.wp {
  background-color: #075e54;
}

.fb {
  background-color: #1877f2;
}

.tw {
  background-color: #1da1f2;
}

.cp {
  background-color: #777517;
}

.social_btn:hover {
  background-color: var(--main-color);
}

@media (min-width: 600px) {
  .social_btn {
    flex: 1 1 calc(25% - 10px);
  }
}

.faq_container {
  margin: 20px auto;
}

.faq_title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
}

.faq_item {
  border: 1px solid #eee;
  background: #f9f9f9;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq_question {
  padding: 14px 16px;
  font-weight: 600;
  background-color: #f3f4f6;
  color: #111;
  cursor: pointer;
  position: relative;
}

.faq_question::after {
  content: "-";
  position: absolute;
  right: 20px;
  font-size: 18px;
  font-weight: bold;
}

.faq_item.collapsed .faq_question::after {
  content: "+";
}

.faq_answer {
  padding: 14px 16px;
  background-color: #fff;
  color: #444;
  border-top: 1px solid #eee;
  display: none;
}

.faq_answer.show {
  display: block;
}

/* Headings */

.page_content h2,
.page_content h3,
.page_content h4,
.page_content h5,
.page_content h6 {
  margin-top: 1.5em; /* Space above headings */
  margin-bottom: 0.8em; /* Space below headings */
  font-weight: bold; /* Make headings bold */
  line-height: 1.2; /* Tighter line-height for headings */
  color: #1a1a1a; /* Even darker color for headings */
}

.page_content h1 {
  font-size: 1.5em; /* Larger font size for H1 */
}

.page_content h2 {
  font-size: 1.3em; /* Slightly smaller for H2 */
}

.page_content h3 {
  font-size: 1.2em; /* And so on... */
}

.page_content h4 {
  font-size: 1em;
}

.page_content h5 {
  font-size: 0.9em;
}

.page_content h6 {
  font-size: 0.8em;
  color: #555; /* Lighter color for H6 */
}

/* Paragraphs */
.page_content p {
  margin-bottom: 1em; /* Space below paragraphs */
  font-size: 1em; /* Base font size for paragraphs */
}

/* Lists */
.page_content ul,
.page_content ol {
  margin-bottom: 1em; /* Space below lists */
  padding-left: 20px; /* Indent list items */
}

.page_content li {
  margin-bottom: 0.5em; /* Space between list items */
}

/* Links */
.page_content a {
  color: var(--main-color); /* A common blue for links */
  text-decoration: none; /* Remove underline by default */
}

.page_content a:hover {
  text-decoration: underline; /* Add underline on hover */
  color: #00ff55; /* Slightly darker blue on hover */
}

/* Responsive adjustments for smaller screens (mobile-first approach) */

/* For screens smaller than 600px (typical phone portrait) */
@media (max-width: 600px) {
  .page_content h1 {
    font-size: 1.8em; /* Adjust H1 size for smaller screens */
  }

  .page_content h2 {
    font-size: 1.5em;
  }

  .page_content h3 {
    font-size: 1.2em;
  }

  .page_content p {
    font-size: 0.95em;
  }
}

/* For screens between 601px and 900px (typical phone landscape to tablet portrait) */
@media (min-width: 601px) and (max-width: 900px) {
  .page_content h1 {
    font-size: 2.2em;
  }
}

.widget-scroll {
  max-height: 400px;
  overflow-y: auto;
  position: relative;
  padding-top: 1px; /* Push content below hidden top arrow */
  padding-bottom: 1px; /* Push content above hidden bottom arrow */
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

/* WebKit scrollbar */
.widget-scroll::-webkit-scrollbar {
  width: 4px;
}

/* Hide scroll arrows (Chrome) using negative margins */
.widget-scroll::-webkit-scrollbar-button {
  height: 0;
  width: 0;
  display: block;
  margin: -100px 0; /* pushes it out of visible area */
}

/* Track and thumb */
.widget-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.widget-scroll::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

/* UL > LI Styling */
.widget-scroll ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget-scroll ul li {
  border-bottom: 1px solid #eee;
}
.widget-scroll ul li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  border-radius: 10px;
  font-weight: 600;
}
.widget-scroll ul li a:hover {
  color: var(--main-color);
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .widget-scroll ul li a {
    font-size: 15px;
    padding: 12px;
  }
}

.breadcrumb_box {
  background-color: #eee;
  margin-top: -10px;
}

/* Style the list */
ul.breadcrumb {
  max-width: 1290px;
  margin: 0 auto;
  padding: 10px 16px;
  list-style: none;
}

/* Display list items side by side */
ul.breadcrumb li {
  display: inline;
  font-size: 18px;
}

/* Add a slash symbol (/) before/behind each list item */
ul.breadcrumb li + li:before {
  padding: 8px;
  color: black;
  content: "/\00a0";
}

/* Add a color to all links inside the list */
ul.breadcrumb li a {
  color: var(--main-color);
  text-decoration: none;
}

/* Add a color on mouse-over */
ul.breadcrumb li a:hover {
  color: #01447e;
  text-decoration: underline;
}

.sidebar {
  position: sticky;
  top: 80px; /* Adjust based on your navbar height */

  width: 100%;
}

.blog_img2 img,
.slide_box img {
  object-fit: cover;
}
.blog_img2 img {
  width: 100%;
  height: 210px;
  border-radius: 5px;
}
.blog_img2 {
  position: relative;
}
.blog_img2_title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}
.blog_img2_bg {
  background-color: rgba(0, 0, 0, 0.6);
  margin-bottom: 5px;
  padding: 5px 10px;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 0px 0px 5px 5px;
}
.isblogurl {
  display: block;
  text-decoration: none;
  color: var(--main-color);
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e8e8e8;
}

.isblogurl:hover {
  color: #000;
}

.isbloglink {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blog_img2 a {
  color: #fff;
}

.blog_img2 {
  overflow: hidden;
}

.blog__links {
  color: #ff0090;
  text-decoration: none;
}

.blog_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.blog_link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--main-color);
  border-radius: 10px;
  overflow: hidden;
  color: #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
}

.blog_link:hover {
  transform: translateY(-4px);
  background-color: #f2f2f2;
}

.blog_link img {
  aspect-ratio: 1 / 1;
  width: 100px;
  object-fit: cover;
}
.blog_title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 5px;
}

.sides {
  display: flex;
  flex-wrap: wrap;
}

.side1,
.side2 {
  flex: 0 0 50%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .side1,
  .side2 {
    flex: 0 0 100%;
  }
}

.blogsides {
  display: flex;
  flex-wrap: wrap;
}

.blogside1 {
  flex: 0 0 40%;
}

.blogside2 {
  flex: 0 0 60%;
  padding: 10px;
}

@media (max-width: 768px) {
  .blogside1,
  .blogside2 {
    flex: 0 0 100%;
  }

  .blog_list {
    grid-template-columns: 1fr;
  }
}

.boxs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px; /* Optional spacing between boxes */
  max-width: 1250px; /* Optional max width */
  margin: 1em auto; /* Center the boxes */
}

/* On screens wider than 768px, show 2 boxes per row */
@media (min-width: 768px) {
  .boxs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.s-wrapper {
  border-radius: 10px;
  overflow: hidden;
}

.s {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;

  height: 100%;
}

.s1 {
  flex: 0 0 40%;
  text-align: center;
  padding: 10px;
}

.s1 img {
  width: 100%;
  height: auto;
}

.s2 {
  flex: 0 0 55%;
  padding: 1em;
  text-align: center;
}

.s2 .big-bold {
  font-size: 24px;
  font-weight: bold;
}

.s2 .small {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.s2 .button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: 10px;
}
.s2 .button:hover {
  background-color: #f4f4f4;
}

.bg1 {
  background-image: linear-gradient(
    109.6deg,
    rgba(209, 0, 116, 1) 11.2%,
    rgba(110, 44, 107, 1) 91.1%
  );
  color: #fff;
}

.bg2 {
  background-image: radial-gradient(
    circle 602px at 2.1% 5.1%,
    rgba(233, 0, 120, 1) 0%,
    rgba(0, 0, 0, 1) 90.1%
  );
  color: #fff;
}

.bg3 {
  background-image: linear-gradient(
    90deg,
    rgba(115, 218, 210, 1) 0%,
    rgba(154, 198, 25, 1) 100%
  );
  color: #fff;
}

.bg4 {
  background: linear-gradient(
    90deg,
    rgba(244, 152, 192, 1) 0%,
    rgba(66, 139, 227, 1) 85%
  );
  color: #fff;
}

.bg5 {
  background: linear-gradient(
    325deg,
    rgba(1, 29, 29, 1) 5%,
    rgba(164, 9, 203, 1) 100%
  );
  color: #fff;
}

.bg6 {
  background: linear-gradient(
    45deg,
    rgba(25, 0, 255, 1) 0%,
    rgba(203, 9, 9, 1) 100%
  );
  color: #fff;
}

.bg7 {
  background: linear-gradient(
    29deg,
    rgba(236, 196, 109, 1) 19%,
    rgba(75, 84, 203, 1) 100%
  );
  color: #fff;
}

.quote-container {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  border-radius: 20px;
  padding: 30px;
  margin: 30px auto;
  max-width: 600px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  color: #333;
  font-family: "Segoe UI", sans-serif;
  overflow: hidden;
}

.quote-icon {
  font-size: 130px;
  color: rgba(48, 48, 48, 0.11);
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: Georgia, serif;
  z-index: 0;
}

.quote-text {
  font-size: 1.3rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin: 0;
}

.quote-author {
  text-align: right;
  margin-top: 20px;
  font-weight: bold;
  font-size: 1rem;
  color: #444;
  z-index: 1;
  position: relative;
}

@media (max-width: 768px) {
  .s1,
  .s2 {
    flex: 0 0 100%;
  }

  .quote-container {
    margin: 30px 10px;
  }
}
