/* Blog Post Styles - Separated from content */

/* Import base styles from main website */
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css');
@import url('https://fonts.googleapis.com/css?family=Montserrat');
@import url('https://fonts.googleapis.com/css?family=Lato');

/* Prevent overscrolling/bounce effect */
html, body {
  overscroll-behavior: none;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
}

/* Base typography */
h2 {
  font-size: 24px;
  text-transform: uppercase;
  color: #303030;
  font-weight: 600;
  margin-bottom: 5px;
}

h4 {
  font-size: 19px;
  line-height: 1.375em;
  color: #303030;
  font-weight: 400;
  margin-bottom: 15px;
}

.mark, mark {
  padding: .2em;
  background-color: #F0F8FF;
}

.h4-small {
  font-size: 14px;
  line-height: 1.375em;
  color: #303030;
  font-weight: 400;
  margin-bottom: 10px;
}

/* Layout containers */
.container-fluid {
  padding: 60px 50px;
}

.bg-grey {
  background-color: #f6f6f6;
}

/* Navigation */
.navbar {
  margin-bottom: 0;
  background-color: #2c3e50;
  z-index: 9999;
  border: 0;
  font-size: 12px !important;
  line-height: 1.42857143 !important;
  letter-spacing: 4px;
  border-radius: 0;
  font-family: Montserrat, sans-serif;
}

.navbar li a, .navbar .navbar-brand {
  color: #fff !important;
}

.navbar-nav li a:hover, .navbar-nav li.active a {
  color: #2c3e50 !important;
  background-color: #fff !important;
}

.navbar-default .navbar-toggle {
  border-color: transparent;
  color: #fff !important;
}

/* Footer */
footer .glyphicon {
  font-size: 20px;
  margin-bottom: 20px;
  color: #2c3e50;
}

footer {
  background-color: #2c3e50;
}

/* Animations */
.slideanim {visibility:hidden;}
.slide {
  animation-name: slide;
  -webkit-animation-name: slide;
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
  visibility: visible;
}

@keyframes slide {
  0% {
    opacity: 0;
    -webkit-transform: translateY(70%);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0%);
  }
}

@-webkit-keyframes slide {
  0% {
    opacity: 0;
    -webkit-transform: translateY(70%);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0%);
  }
}

/* Responsive design */
@media screen and (max-width: 768px) {
  .col-sm-4 {
    text-align: center;
    margin: 25px 0;
  }
  .btn-lg {
    width: 100%;
    margin-bottom: 35px;
  }
}

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

/* Blog post specific styles */
.blog-post-header {
  background-color: #2c3e50;
  color: white;
  padding: 80px 0 40px 0;
  text-align: center;
}

.blog-post-header h1 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-post-header .date {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.blog-post-header .author {
  font-size: 14px;
  opacity: 0.8;
}

.blog-post-content {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}

.blog-post-content h2 {
  font-size: 32px;
  color: #2c3e50;
  margin: 40px 0 20px 0;
  text-transform: none;
}

.blog-post-content h3 {
  font-size: 24px;
  color: #2c3e50;
  margin: 30px 0 15px 0;
}

.blog-post-content p {
  margin-bottom: 20px;
}

.blog-post-content blockquote {
  border-left: 4px solid #2c3e50;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #555;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  margin: 30px 0;
  border-radius: 5px;
}

.blog-post-content code {
  background-color: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.blog-post-content pre {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 20px 0;
}

.blog-post-content ul, .blog-post-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.blog-post-content li {
  margin-bottom: 8px;
}

/* Blog Post Navigation */
.blog-post-navigation {
  margin: 50px 0;
  padding: 25px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* When only one navigation link is visible, right-justify it */
.blog-post-navigation.single-nav {
  justify-content: flex-end;
}

.blog-post-navigation.single-nav .nav-link {
  max-width: 300px;
}

.blog-post-navigation .nav-link {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background-color: #f8f9fa;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid #e9ecef;
  max-width: 48%;
  min-height: 50px;
}

.blog-post-navigation .nav-link:hover {
  background-color: #2c3e50;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(44, 62, 80, 0.15);
  border-color: #2c3e50;
}

.blog-post-navigation .prev {
  text-align: left;
  justify-content: flex-start;
}

.blog-post-navigation .next {
  text-align: right;
  justify-content: flex-end;
}

.blog-post-navigation .nav-link .nav-label {
  font-size: 12px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.blog-post-navigation .nav-link .nav-title {
  font-weight: 600;
  line-height: 1.3;
}

/* Hide navigation links when they shouldn't be visible */
.blog-post-navigation .nav-link[style*="display: none"] {
  display: none !important;
}

/* Responsive navigation */
@media screen and (max-width: 768px) {
  .blog-post-navigation {
    flex-direction: column;
    gap: 10px;
  }
  
  .blog-post-navigation .nav-link {
    max-width: 100%;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  
  .blog-post-navigation .prev,
  .blog-post-navigation .next {
    justify-content: center;
    text-align: center;
  }
}

/* See More Blog Posts Button */
.see-more-posts {
  text-align: center;
  margin: 60px 0 40px 0;
  padding: 40px 0;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.see-more-posts h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 28px;
}

.see-more-posts p {
  color: #555;
  margin-bottom: 30px;
  font-size: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.see-more-posts .btn {
  background-color: #2c3e50;
  color: white;
  border: 2px solid #2c3e50;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.see-more-posts .btn:hover {
  background-color: #34495e;
  border-color: #34495e;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(44, 62, 80, 0.2);
}

.blog-post-tags {
  margin: 30px 0;
}

.blog-post-tags .tag {
  display: inline-block;
  background-color: #ecf0f1;
  color: #2c3e50;
  padding: 5px 12px;
  border-radius: 20px;
  margin: 5px;
  text-decoration: none;
  font-size: 14px;
}

.blog-post-tags .tag:hover {
  background-color: #2c3e50;
  color: white;
  text-decoration: none;
} 