/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

/* === Layout Containers === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.columns-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.columns-2 > section {
  flex: 1 1 48%;
}

/* === Header === */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ccc;
  padding: 1.2rem 0;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  height: 80px;
  width: auto;
}

.brand-text h1 {
  font-size: 2rem;
  margin: 0;
  color: #03335c;
}

.brand-text p {
  font-size: 1.25rem;
  margin: 0;
  color: #555;
}

.nav-links {
  display: flex;
  gap: 1.85rem;
  font-weight: bold;
  margin-left: auto;
}

.nav-links a {
  color: #004aad;
  text-decoration: none;
}

.nav-links a:hover {
  color: #03335c;
}

/* Hamburger styles (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: auto;
}

/* Hide checkbox */
.menu-toggle {
  display: none;
}

/* === Hero Section === */
.hero-image {
  position: relative;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.65);
  padding: 1.5rem;
  border-radius: 0.5rem;
  max-width: 80%;
  text-align: center;
  z-index: 10;
  color: #fff;
}

.hero-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-text h2,
.hero-text p {
  color: #fff;
}

.btn {
  background-color: #007bff;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

/* === base cards === */
/* Card styling for Services + Why Choose */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);*/
}

.card h3 {
  margin-top: 0;
}

.card ul {
  list-style: none;
  padding-left: 0;
}

/* Remove check mark from all card lists */
.card li::before {
  content: none;
}

/* ✅ Add blue check marks only for .bluechk lists */
.bluechk li {
  list-style: none; /* hide default bullets */
  position: relative;
  padding-left: 1.2rem; /* space for check mark */
}

.bluechk li::before {
  content: "✔";
  color: #007bff; /* your blue */
  position: absolute;
  left: 0;
}

/* === Sections === */
h2,
h3,
h4 {
  margin-bottom: 1rem;
  color: #222;
}

ul {
  list-style: disc inside;
  margin-bottom: 1rem;
}

a {
  color: #004aad;
}

/* Add space between hero and main content */
.columns-2 {
  margin-top: 3rem;
}

.why-choose ul {
  list-style: none;
  padding-left: 0;
}

.why-choose li {
  margin-bottom: 0.5rem;
}

/* === Tech & Testimonials === */
.centered-section {
  text-align: center;
  margin: 3rem auto;
}

.centered-section img {
  border-radius: 0.5rem;
  max-width: 150px;
  margin-bottom: 1rem;
}

.tech-card {
  max-width: 700px;
  /*background: #f9f9f9;*/
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin: 3rem auto;
  /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);*/
}

.tech-profile {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.tech-photo img {
  width: 120px;
  border-radius: 0.5rem;
}

.tech-bio h2 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .tech-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tech-bio {
    text-align: left;
  }

  .tech-card {
    padding: 1.5rem;
  }
}

/* === Testimonials === */
.testimonials {
  margin: 3rem auto;
  text-align: center;
}

.testimonial-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 300px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  flex: 1 1 300px;
}

.testimonial-card .quote {
  font-style: italic;
  margin-bottom: 0.75rem;
}

.testimonial-card .author {
  font-weight: bold;
  font-size: 0.95rem;
  color: #444;
}

@media (max-width: 768px) {
  .testimonial-cards {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-card {
    max-width: 90%;
  }
}

/* === Footer === */
footer {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 1rem;
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
  color: #555;
}

/* === Responsive === */
@media (max-width: 768px) {
  .columns-2 {
    flex-direction: column;
  }
}

.brand-row {
  flex-direction: column;
  align-items: flex-start;
}

.nav-links {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 90%;
  padding: 1rem;
}

@media (max-width: 768px) {
  .brand-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .menu-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}
.nav-links {
  transition: all 0.3s ease-in-out;
}

/* === Template Cards === */
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card-row .card {
  flex: 1 1 45%;
  min-width: 300px;
}

/* Optional: ensure even height */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);*/
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .card-row .card {
    flex: 1 1 100%;
  }
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}
.card-with-photo {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap; /* Makes it responsive */
}

.about-photo {
  max-width: 150px;
  border-radius: 8px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .tech-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tech-bio {
    text-align: left;
  }

  .tech-card {
    padding: 1.5rem;
  }
}
.card-flex {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: nowrap; /* important to prevent wrapping */
}

.about-photo-wrapper {
  flex-shrink: 0;
  max-width: 200px;
}

.about-photo {
  width: 100%;
  border-radius: 8px;
}
.about-text {
  flex: 1;
}

.card-flex .card-text {
  flex: 1;
}

@media (max-width: 600px) {
  .card-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-flex .card-text {
    text-align: left;
  }
}

.card-flex {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
}

.about-photo-wrapper {
  flex-shrink: 0;
}

.about-photo {
  max-width: 160px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-text {
  flex: 1;
}

/* Only stack on small phones */
@media (max-width: 600px) {
  .card-flex {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: left;
  }
}
/* TEST */
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch; /* 🔥 This makes all cards same height */
}

.card-row .card {
  flex: 1 1 45%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes content to top and bottom */
}

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start; /* ⬅️ This is the key! Align top, not center */
}

.card h3 {
  margin-bottom: 0.5rem; /* tighter than default */
}

.card ul,
.card p {
  margin-top: 0.5rem; /* smaller top spacing */
}
.card-flex {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: nowrap; /* important to prevent wrapping */
}
.about-photo-wrapper {
  flex-shrink: 0;
  max-width: 200px;
}

.about-photo {
  width: 100%;
  border-radius: 8px;
}
.about-text {
  flex: 1;
}
.zammad-button {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 0.75em 1.5em;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1em;
  transition: background-color 0.3s ease;
}

.zammad-button:hover {
  background-color: #d62828;
}
#contact-form label {
  font-weight: bold;
  margin-top: 1rem;
  display: block;
  color: #03335c;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f9f9f9;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: #007bff;
  background-color: #fff;
}

#contact-form .btn {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #004aad;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact-form .btn:hover {
  background-color: #03335c;
}
form {
  max-width: 600px;
  margin: auto;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
  width: 100%;
}

.form-group.half {
  flex: 1 1 48%;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  width: 100%;
  padding: 0.85rem;
  font-weight: bold;
  font-size: 1rem;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

#form-message {
  margin-top: 1rem;
  font-weight: bold;
}
#form-message {
  padding: 1rem;
  border-radius: 8px;
}

#form-message.success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

#form-message.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

.columns-2 {
  display: flex;
  align-items: flex-start; /* align both columns at the top */
  gap: 2rem; /* keep some horizontal space between columns */
}

.columns-2 .card {
  margin-top: 0; /* remove any auto top margins from cards */
}

.columns-2 .card h3 {
  margin-bottom: 0.5rem; /* tighten space below heading */
}

.columns-2 .card ul {
  margin-top: 0; /* remove extra space before list */
}

/* Article CSS */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.article-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 1rem;
}

.article-card img.article-thumb {
  width: 100%;
  height: auto;
  display: block;
}

.article-summary {
  color: #444;
  font-size: 0.95rem;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: bold;
  color: #004aad;
  text-decoration: none;
}
.read-more:hover {
  text-decoration: underline;
}

.article-card {
  max-width: 25%; /* takes up a quarter of the container */
  flex: 1 1 25%;
  margin: 1rem;
}

.article-card img {
  max-height: 150px; /* shrink image height */
  object-fit: cover;
}

.article-card h2 {
  font-size: 1rem; /* smaller title */
}

.article-summary {
  font-size: 0.85rem;
  line-height: 1.4;
}
.article-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.post-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.post-wrap {
  padding: 0.5rem 0;
}
.post-title {
  margin: 0.5rem 0 0.25rem;
}
.post-subtitle {
  color: #666;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.post-meta {
  color: #888;
  margin: 0.25rem 0 1rem;
}
.card hr {
  margin: 1rem 0;
}

/* Make article layout skinnier */
.card.post-narrow {
  max-width: 760px; /* tighten overall width */
  margin: 0 auto; /* center it */
  padding: 1.25rem 1.25rem 2rem;
}

/* Typography & spacing */
.post-title {
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* much larger than before */
  line-height: 1.2;
  margin-bottom: 0.5rem;
}


.post-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem); /* slightly larger than default */
  font-weight: 400;
  color: #555; /* softer, secondary tone */
  margin-bottom: 1rem;
}

.post-meta {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 1.5rem; /* more space before image */
}

.post-divider {
  margin: 1rem 0 1.25rem;
}

/* Feature image */
.post-hero {
  margin: 0 0 1.25rem 0;
}
.post-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Body copy */
.post-content {
  line-height: 1.7;
  font-size: 1.02rem;
}
.post-content p {
  margin-bottom: 1.25rem;
}
.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.post-content h3{
  margin-top: 2rem;
  margin-bottom: 0.75rem;
} 
.post-content hr {
  margin: 2rem 0;
}
.post-content {
  line-height: 1.7;
}

/* Back link */
.post-back {
  margin-top: 1.5rem;
}
.post-back a {
  color: #004aad;
  text-decoration: none;
  font-weight: 600;
}
.post-back a:hover {
  text-decoration: underline;
}
