/* blog.css – St. Martins Branded */
/* Refined July 2025 – Rocky & Martin */

/* ========== Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial;
}

/* ========== Body Layout ========== */
html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #F5F9FC;
  color: #25405B;
  line-height: 1.6;
}

/* ========== Header & Nav ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #25405B;
  color: #F5F9FC;
  padding: 15px 30px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #7CB8EB; /* Primary brand blue */
}

.custom-btn {
  border-radius: 50px;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-color: #25405B;
}

.custom-btn:hover {
  background-color: #25405B;
  color: #fff;
}
/* ========== Sidenav ========== */
.sidenav {
  height: 100%;
  width: 250px;
  position: fixed;
  top: 0;
  left: -250px;
  z-index: 999;
  background-color: #25405B;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
}

.sidenav a {
  padding: 10px 25px;
  font-size: 18px;
  color: #F5F9FC;
  text-decoration: none;
  display: block;
}
.sidenav a:hover {
  background-color: #1a2e3b;
}

/* ========== Main Content ========== */
main {
  flex-grow: 1;
}
#main {
  margin-left: 0;
  transition: margin-left 0.3s;
  padding: 100px 20px 40px 20px;
}

/* ========== Headings ========== */
h1, h2, h3 {
  color: #25405B;
}

/* ========== Blog Preview Cards ========== */
.preview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  position: relative;
  background-color: #F5F9FC;
  border: 1px solid #BCBCD6;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(37, 64, 91, 0.08);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(37, 64, 91, 0.12);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-family: 'Arial';
  font-weight: 700;
  color: #25405B;
}

.card-subtitle {
  font-size: 0.95rem;
  color: #7CB8EB;
  margin-bottom: 0.5rem;
  font-family: Arial;
}

.card-text {
  color: #25405B;
  font-family: Arial;
}

.text-muted.small {
  font-size: 0.8rem;
  color: #BCBCD6;
}

.badge-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #FCF031;
  color: #25405B;
  padding: 0.35em 0.75em;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ========== Blog Post Details ========== */
.blog-post {
  background: #FFFFFF;
  border-left: 5px solid #7CB8EB;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  border-radius: 8px;
}

.blog-post h2 {
  margin-bottom: 5px;
  color: #25405B;
  font-family: Arial;
}

.blog-post h3 {
  font-weight: normal;
  color: #7CB8EB;
  margin-bottom: 10px;
}

.blog-post .date {
  font-size: 0.85em;
  color: #BCBCD6;
  margin-bottom: 10px;
}

.post-body {
  margin-top: 10px;
  white-space: pre-line;
  color: #25405B;
}

/* ========== Buttons ========== */
.btn-outline-primary {
  border-color: #7CB8EB;
  color: #25405B;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #7CB8EB;
  color: white;
}

/* ========== Share Icons ========== */
.share-icons {
  margin-top: 10px;
  font-size: 20px;
}
.share-icons i {
  margin-right: 10px;
  color: #7CB8EB;
  cursor: pointer;
}
.share-icons i:hover {
  color: #25405B;
}

/* ========== Footer ========== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #25405B;
  color: #F5F9FC;
  margin-top: 60px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-direction: column;
    width: 100%;
  }

  #main {
    padding: 120px 20px 40px 20px;
  }
}

.custom-container {
  width: 90%;
  margin: 0 auto;
  padding-top: 4rem;
}
.share-floating {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.4rem 0.6rem;
  border-radius: 0.75rem;
  opacity: 0.2;
  transition: opacity 0.3s ease;
  z-index: 999;
}
.share-floating:hover {
  opacity: 1;
}
.share-floating a span,
.share-top a span {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
}
.share-top a {
  margin-right: 1rem;
  color: #444;
  text-decoration: none;
}
.share-top a:hover {
  text-decoration: underline;
}

/* 🔗 Minimal share buttons */
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 9px;
  border: 1px solid #ccc;
  border-radius: 50%;
  opacity: 0.5;
  transition: all 0.3s ease;
  text-decoration: none;
  background: white;
}
.share-button:hover {
  opacity: 1;
  border-color: #666;
  transform: scale(1.1);
}
.share-button svg {
  width: 24px;
  height: 24px;
  stroke: #333;
}
