/* =========================
   GLOBAL
========================= */

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  background-color: #ffffff;
  color: navy;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* =========================
   HERO
========================= */




/* =========================
   ABOUT SECTION
========================= */

.content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
}

.content img {
  width: 300px;
  border-radius: 8px;
}

.text {
  max-width: 600px;
}

.text h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.text p {
  line-height: 1.6;
  margin-bottom: 16px;
}

/* =========================
   POST CARD
========================= */

.featured-post {
  display: flex;
  justify-content: center;
}

.post-card {
  width: 360px;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: black;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.post-card img {
  width: 100%;
  display: block;
}

.post-content {
  padding: 16px;
}

.post-content h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.author {
  font-size: 14px;
  color: gray;
}

/* =========================
   POST PAGE
========================= */

.post-page {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 20px;
}

.post-image {
  width: 100%;
  border-radius: 10px;
  margin: 24px 0;
}

.post-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 48px;
  }
}

.posts-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.featured-posts {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

/* Improve card polish */
.post-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.post-content h2 {
  font-size: 18px;
  margin: 0 0 6px 0;
  color: navy;
}

.author {
  font-size: 13px;
  color: #555;
}

/* Mobile responsiveness */
@media (max-width: 900px) {
  .featured-posts {
    flex-direction: column;
    align-items: center;
  }
}

h2 {
  text-align: center;
}

/* EXPERIENCE CARD */
.experience-card {
  max-width: 800px;
  margin: 40px auto;
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: left;
}

/* Section title */
.section-title {
  margin-bottom: 20px;
  font-size: 24px;
  color: navy;
}

/* Each experience row */
.experience-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
}

/* Divider between items */
.experience-item:not(:last-child) {
  border-bottom: 1px solid #eaeaea;
}

/* Company logo */
.company-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

/* Text block */
.experience-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.company {
  font-size: 14px;
  color: #555;
  margin: 2px 0;
}

.date {
  font-size: 13px;
  color: gray;
  margin-bottom: 8px;
}

.description {
  font-size: 17px;
  line-height: 1.5;
  color: #333;
}

/* Mobile */
@media (max-width: 600px) {
  .experience-item {
    flex-direction: column;
  }

  .company-logo {
    width: 40px;
    height: 40px;
  }
}
/* TOP NAVIGATION */
.top-nav {
  position: relative;   /* not absolute anymore */
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 20px 32px;
  background: navy;
  color: navy;
  border-bottom: 1px solid #eee;
}

/* Nav links */
.nav-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: white;  /* visible on white */
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav-link:hover {
  background: rgba(0, 0, 128, 0.08);
}


.site-credit {
  position: fixed;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.7;
}

.credit-logo {
  height: 75px;
  width: auto;
}


/* CONTACT SECTION */
.contact-section {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 32px;
  font-size: 28px;
  color: navy;
}

/* FORM */
.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* INPUTS */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: navy;
  box-shadow: 0 0 0 2px rgba(0, 0, 128, 0.1);
}

/* BUTTON */
.contact-form button {
  margin-top: 8px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  background: navy;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.contact-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}


/* =========================
   TOOLS PAGE
========================= */

.tools-intro {
  text-align: center;
  max-width: 600px;
  margin: 40px auto 60px;
  font-size: 16px;
  color: #444;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

/* Tool cards */
.tool-card {
  background: white;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.14);
}

.tool-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
  color: navy;
}

.tool-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}


/* Make entire hero clickable */
.home-hero {
  text-decoration: none;
  display: block;
}
