/* Blog 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 specific styles */
.blog-post {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post h3 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.blog-post .date {
  color: #7f8c8d;
  font-size: 14px;
  margin-bottom: 15px;
}

.blog-post .excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.blog-post .read-more {
  color: #2c3e50;
  font-weight: 600;
  text-decoration: none;
}

.blog-post .read-more:hover {
  text-decoration: underline;
}

/* Blog sidebar scrollable styles */
.blog-sidebar {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 5px;
  /* Make sidebar scrollable independently */
  max-height: calc(100vh - 200px); /* Viewport height minus header and padding */
  overflow-y: auto;
  position: sticky;
  top: 100px; /* Account for fixed navbar */
  /* Custom scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #95a5a6 #f8f9fa;
}

/* Webkit scrollbar styling for Chrome/Safari */
.blog-sidebar::-webkit-scrollbar {
  width: 8px;
}

.blog-sidebar::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 4px;
}

.blog-sidebar::-webkit-scrollbar-thumb {
  background: #95a5a6;
  border-radius: 4px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
  background: #7f8c8d;
}

.blog-sidebar h4 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.blog-sidebar .category-list {
  list-style: none;
  padding: 0;
}

.blog-sidebar .category-list li {
  margin-bottom: 10px;
}

.blog-sidebar .category-list a {
  color: #555;
  text-decoration: none;
}

.blog-sidebar .category-list a:hover {
  color: #2c3e50;
}

.blog-sidebar .category-list a.active {
  color: #2c3e50;
  font-weight: bold;
  background-color: #ecf0f1;
  padding: 2px 8px;
  border-radius: 3px;
}

.blog-header {
  background-color: #2c3e50;
  color: white;
  padding: 80px 0 40px 0;
  text-align: center;
}

.blog-header h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.blog-header p {
  font-size: 18px;
  opacity: 0.9;
}

/* Form styling */
.blog-sidebar .form-group {
  margin-bottom: 15px;
}

.blog-sidebar .form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
}

.blog-sidebar .btn-primary {
  background-color: #2c3e50;
  border-color: #2c3e50;
}

.blog-sidebar .btn-primary:hover {
  background-color: #34495e;
  border-color: #34495e;
}

/* Responsive adjustments for sidebar scrolling */
@media screen and (max-width: 768px) {
  .blog-sidebar {
    max-height: none;
    position: static;
    overflow-y: visible;
  }
} 