* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f9f9f9;
  color: #333;
}

/* BLOG-SPECIFIC STYLING */
.blog-content-section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0 20px 0;
  background: transparent;
  display: block;
}

#Blog-Context {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1em;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  word-break: break-word;
  overflow-wrap: anywhere;
}

#Blog-Context h1 {
  text-align: center;
  color: #222;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  font-size: 2em;
}

#Blog-Context h2 {
  color: #222;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  font-size: 1.25em;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3em;
}

#Blog-Context p { margin-bottom: 1em; text-align: left; }
#Blog-Context ul { padding-left: 1.2em; margin-bottom: 1em; list-style-type: disc; }
#Blog-Context li { margin-bottom: 0.75em; }
#Blog-Context a { word-break: break-all; overflow-wrap: anywhere; color: #1666ba; text-decoration: underline; }

/* Author Info Styling */
.blog-author-info {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0.5em auto 1.5em auto; max-width: 700px; width: 100%; padding: 0 1em;
  font-size: 15px; color: #555; gap: 0.3em; text-align: center;
}
.blog-author-info .author-logo { width: 50px !important; height: 50px !important; border-radius: 50%; object-fit: cover; box-shadow: 0 0 4px rgba(0,0,0,0.1); display: block; }
.blog-author-info .author-meta { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.blog-author-info .author-name { font-weight: bold; color: #333; font-size: 1rem; }
.blog-author-info .publish-date { font-size: 0.93rem; color: #AAA; font-style: italic; opacity: 0.8; margin-top: 0.25em; }

/* Backlink */
.blog-backlink { margin: 2.5em auto 0 auto; text-align: center; font-size: 1.08em; color: #444; max-width: 90%; }
.blog-backlink a {
  display: inline-block; margin-top: 0.5em; padding: 9px 22px; color: #ffff00 !important; background: #080400;
  border-radius: 24px; font-weight: bold; font-size: 1.04em; text-decoration: none; transition: background 0.18s; border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08); letter-spacing: 0.03em;
}
.blog-backlink a:visited { color: #ffff00 !important; background: #080400; }
.blog-backlink a:hover, .blog-backlink a:active, .blog-backlink a:focus { background: #d87305; color: #fff !important; text-decoration: underline; }

/* MOBILE */
@media (max-width: 768px) {
  .blog-content-section { max-width: 100%; width: 100%; padding: 0 2vw 10px 2vw; }
  #Blog-Context { max-width: 100%; width: 100%; margin: 0; padding: 0 3vw; font-size: 16px; }
  .blog-author-info { max-width: 100%; width: 100%; padding: 0 3vw; }
  #Blog-Context h1 { font-size: 1.3em; }
  #Blog-Context h2 { font-size: 1.1em; }
  .blog-author-info .author-logo { margin-bottom: 8px; }
  .blog-backlink { font-size: 1em; max-width: 98%; }
  .blog-backlink a { padding: 9px 16px; font-size: 1em; }
}

/* NAV */
.navbar {
  width: 100%; background-color: #080400; color: #f5c400;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; position: fixed; top: 0; z-index: 10;
}
.logo { font-size: 1.5em; }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; justify-content: space-between; height: 20px; }
.hamburger span { display: block; width: 25px; height: 3px; background: #f5c400; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: #f5c400; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }

/* HEADER & HERO IMAGE (updated to use <img>) */
header {
  position: relative;
  width: 100%;
  padding-top: 60px;                  /* space for fixed navbar */
  overflow: visible;                     /* prevent overlay overflow */
  background: #000;                   /* letterbox color if any space shows */
}

/* ensure the entire image is always visible, no cropping */
.hero-img {
  display: block;
  width: 100%;
  height: auto;                       /* maintains aspect ratio */
  /* no max-height to avoid cutting off on laptops */
  object-fit: contain;                /* keep full image visible */
  object-position: center;
  margin: 0 auto;
}

/* centered overlay content */
.header-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  pointer-events: none;               /* clicks pass through to links below if any */
}

.header-overlay p {
  max-width: 900px;
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0,0,0,0.65);
  pointer-events: auto;               /* allow text selection */
}

/* Prominent phone in nav */
.nav-call-cta{
  margin-left: 1rem;
  padding: .45rem .8rem;
  border-radius: 8px;
  background:#f5c400; /* KNK yellow */
  color:#000; text-decoration:none; font-weight:700;
  display:inline-flex; align-items:center; gap:.4rem;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
}
.nav-call-cta:hover{ background:#000; color:#fff; }



/* CTA */
.cta-button {
  display: inline-block; margin-top: 15px; padding: 10px 20px; color: #f5c400; background-color: #fff;
  text-decoration: none; border-radius: 5px;
}

/* SECTIONS */
.services-section { width: 100%; max-width: 800px; padding: 40px 20px; text-align: center; }
.services { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-around; }
.service { flex: 1 1 250px; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); padding: 20px; overflow: hidden; position: relative; }
.service img { width: 100%; height: auto; object-fit: cover; margin-bottom: 10px; }
.service h3, .service p { margin: 10px; color: #333; }

.services-list { max-width: 800px; margin: auto; padding: 20px; text-align: left; }
.services-list h2 { font-size: 2em; text-align: center; color: #333; }
.services-list ul { list-style-type: none; padding: 0; }
.services-list li { display: flex; align-items: center; font-size: 1.2em; padding: 10px 0; border-bottom: 1px solid #ddd; }
.services-list .icon { font-size: 1.5em; color: #d80000; margin-right: 10px; }

.abouts-section { width: 100%; max-width: 800px; padding: 40px 20px; text-align: center; }
.abouts { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-around; }
.about { flex: 1 1 250px; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); padding: 20px; overflow: hidden; position: relative; }
.about img { width: 100%; height: auto; object-fit: cover; margin-bottom: 10px; }
.about h3, .about p { margin: 10px; color: #333; }

.contact-section { text-align: center; padding: 30px; padding-bottom: 0; background-color: #f9f9f9; margin-top: 20px; }
.contact-section h2 { font-size: 2em; color: #000; margin-bottom: 10px; }
.contact-section p { font-size: 1.2em; color: #333; margin-bottom: 20px; }
.call-button, .call-button2 {
  display: inline-block; padding: 15px 30px; font-size: 1.2em; color: #f5c400; background-color: #080400;
  text-decoration: none; border-radius: 8px; font-weight: bold;
}
.call-button2 { padding: 15px 15px; }
.call-button:hover, .call-button2:hover { background-color: #821c0e; }

.socials-section, .contacts-section { width: 100%; max-width: 800px; padding: 40px 20px; text-align: center; }
.socials, .contacts { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-around; }
.social, .contact { flex: 1 1 250px; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); padding: 20px; overflow: hidden; position: relative; }
.socials img, .contacts img { height: auto; margin-bottom: 10px; }
.social h3, .service p { margin: 10px; color: #333; }

.contacts-list, .socials-list { max-width: 800px; margin: auto; padding: 20px; text-align: left; }
.contacts-list h2, .socials-list h2 { font-size: 2em; text-align: center; color: #333; }
.contacts-list ul, .socials-list ul { list-style-type: none; padding: 0; }
.contacts-list li, .socials-list li { display: flex; align-items: center; font-size: 1.2em; padding: 10px 0; border-bottom: 1px solid #ddd; }
.contacts-list .icon, .socials-list .icon { font-size: 1.5em; color: #d80000; margin-right: 1px; }

.styled-hr { border: none; border-top: 2px solid #ccc; width: 80%; margin: 20px auto; max-width: 600px; }

footer {
  width: 100%; padding: 20px; background-color: #080400; color: #fff; text-align: center; margin-top: auto;
}
.footer-content { display: flex; flex-direction: column; align-items: center; }
.footer-links { margin-top: 5px; }
.footer-links a { color: #f5c400; text-decoration: none; margin: 0 5px; }
footer a { color: #f5c400; text-decoration: none; }
footer a:visited { color: #f5c400; }
footer a:hover { color: #f5c400; }
footer a:active { color: #f5c400; }

/* Mobile styles */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 60px; right: 20px; flex-direction: column; gap: 15px;
    background: rgba(0,0,0,0.9); padding: 15px; border-radius: 5px;
  }
  .nav-links a { color: #f5c400; font-size: 1.2em; padding: 8px 0; text-align: center; }
  .nav-links.open { display: flex; }
  .services { flex-direction: column; }
  .service { flex: 1 1 100%; padding: 15px; }
}


/* Hero wrapper to avoid clipping and let header grow with the image */
.hero-wrap {
  position: relative;
  width: 100%;
}

/* overlay sits on top but header height is driven by the image */
.hero-wrap .header-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  pointer-events: none;
}



/* === KNK Services Pretty Styling (scoped) === */
.svc-pretty { max-width: 1100px; }

.svc-pretty .services {
  gap: 28px;
}

.svc-pretty .service {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.svc-pretty .service:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.12);
}

.svc-pretty .service img {
  border-radius: 10px;
}

.svc-pretty .service h2,
.svc-pretty .service h3,
.svc-pretty .service h4 {
  margin: 4px 6px 0 6px;
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  color: #111;
}

.svc-pretty .service p {
  margin: 4px 6px 6px 6px;
  color: #4a4a4a;
  line-height: 1.5;
  font-size: 0.99rem;
}

/* List as responsive cards */
.svc-pretty .services-list {
  width: 100%;
  padding: 8px 6px 14px 6px;
}

.svc-pretty .services-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.svc-pretty .services-list li {
  border: none;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.svc-pretty .services-list li .icon {
  font-size: 1.2rem;
  color: #f5c400; /* KNK yellow */
  width: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Optional CTA (if added later) */
.svc-pretty .svc-cta {
  display: flex;
  justify-content: center;
  padding: 8px 0 14px;
}
.svc-pretty .svc-cta .cta-button {
  background: #f5c400;
  color: #000;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.svc-pretty .svc-cta .cta-button:hover {
  background: #111;
  color: #fff;
  transform: translateY(-1px);
}

/* Tidy headings inside the section wrapper */
.svc-pretty > h1, 
.svc-pretty > h2, 
.svc-pretty > h3 {
  margin-bottom: 8px;
}

/* Mobile tuning */
@media (max-width: 768px) {
  .svc-pretty { padding-left: 10px; padding-right: 10px; }
  .svc-pretty .service { gap: 10px; }
  .svc-pretty .services-list ul { grid-template-columns: 1fr; }
}


/* === Patch: Fix spacing so card lists sit right after text (no big gaps) === */
.svc-pretty .service {
  display: flex !important;
  flex-direction: column !important;
  /* remove grid rows that caused bottom alignment */
  grid-template-rows: unset !important;
}

.svc-pretty .service p { margin-bottom: 12px; }
.svc-pretty .services-list { margin-top: 4px; }


/* Intro text styling below hero H1 */
.intro-text {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: center;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}


@media (max-width: 480px) {
  .intro-text {
    font-size: 0.95rem;
    padding: 0 12px;
  }
  .intro-text p {
    margin-bottom: 0.9rem;
  }
}

/* Mobile bottom dock call button */
.mobile-call-dock{
  position:fixed; left:0; right:0; bottom:0; z-index:9999;
  display:none; justify-content:center; align-items:center;
  background:#f5c400; color:#000; font-weight:800;
  padding:.9rem 1rem; text-decoration:none;
  box-shadow:0 -4px 18px rgba(0,0,0,.15);
}
@media (max-width:768px){
  .mobile-call-dock{ display:flex; }
  body{ padding-bottom:72px; } /* prevent overlap with page content */
}
.mobile-call-dock:hover{ background:#000; color:#fff; }


@media (max-width: 768px) {
  
}

#services .intro-text {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  #services .intro-text {
    font-size: 1rem;
  }
}

#services .service {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

#services .service:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
