@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,900");

body {
  margin: 0;
  font-family: 'Source Sans Pro', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* Background and overlay same as main site */
#bg {
  background: #348cb2 url("images/bg3.jpg") bottom left repeat-x;
  background-size: cover;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
}

#overlay {
  background-image: url("images/overlay-pattern.png"), url("images/overlay.svg");
  background-position: top left, center center;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  display: none; /* hide the overlay lines for simple layout */
}

/* Header */
#header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  margin-bottom: 2rem;
}

#header h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 900;
  letter-spacing: 1px;
  color: #dff7ff;
}

#header p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
  color: #ccecfa;
}

/* Blog Articles Container */
#blog-articles {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.blog-container {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Individual Blog Post Card */
.blog-post {
  background: linear-gradient(135deg, rgba(52,140,178,0.12), rgba(0,0,0,0.25));
  border: 1px solid rgba(204,236,250,0.2);
  border-radius: 10px;
  padding: 1.8rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.35s ease;
}

.blog-post:hover {
  transform: translateY(-4px);
  border-color: rgba(204,236,250,0.5);
  background: linear-gradient(135deg, rgba(52,140,178,0.2), rgba(0,0,0,0.35));
  box-shadow: 0 12px 35px rgba(52,140,178,0.2);
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.blog-category {
  background: rgba(52,140,178,0.3);
  color: #e6fbff;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.blog-date {
  color: #ccecfa;
  opacity: 0.85;
}

.blog-post h2 {
  font-size: 1.4rem;
  margin: 0.5rem 0 1rem 0;
  color: #fff;
  letter-spacing: 0.5px;
}

.blog-post p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: #dff7ff;
  opacity: 0.9;
}

.read-more {
  display: inline-block;
  color: #ccecfa;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.read-more:hover {
  color: #fff;
  transform: translateX(4px);
}

/* Footer */
#footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(204,236,250,0.1);
}

#footer .copyright {
  font-size: 0.9rem;
  color: #ccecfa;
  opacity: 0.85;
}

/* Music/Portfolio Icon */
.musicIcon {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
}

.musicIcon a {
  color: #dff7ff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.musicIcon a:hover {
  color: #fff;
  transform: scale(1.15);
}

/* Responsive */
@media (max-width: 768px) {
  #header h1 {
    font-size: 1.8rem;
  }

  #header p {
    font-size: 0.95rem;
  }

  .blog-post {
    padding: 1.2rem;
  }

  .blog-post h2 {
    font-size: 1.15rem;
  }

  .blog-post p {
    font-size: 0.9rem;
  }

  .blog-meta {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
}

/* Modal styling - two column layout */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: linear-gradient(135deg, rgba(52,140,178,0.12), rgba(0,0,0,0.3));
  border: 1px solid rgba(204,236,250,0.2);
  border-radius: 10px;
  padding: 2rem;
  max-width: 1100px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: slideIn 0.25s ease;
}

.article-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  column-gap: 2.5rem;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close {
  color: #dff7ff;
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
  top: -15px;
  right: -15px;
}

.close:hover {
  color: #fff;
}

#articleBody h2 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.8rem 0;
  grid-column: 1 / -1;
}

#articleBody h3 {
  font-size: 0.9rem;
  color: #e6fbff;
  margin: 1rem 0 0.4rem 0;
  font-weight: 700;
}

#articleBody p {
  color: #dff7ff;
  line-height: 1.65;
  font-size: 0.82rem;
  margin: 0.5rem 0;
}

#articleBody ul {
  color: #dff7ff;
  line-height: 1.65;
  margin: 0.6rem 0;
  padding-left: 1.2rem;
}

#articleBody ul li {
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

#articleBody strong {
  color: #e6fbff;
  font-weight: 700;
}

/* Responsive: single column on tablets and mobile */
@media (max-width: 968px) {
  .modal-content {
    padding: 1.5rem;
    max-width: 90%;
  }
  
  .article-two-column {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  #articleBody h2 { font-size: 1.1rem; }
  #articleBody h3 { font-size: 0.85rem; }
  #articleBody p { font-size: 0.8rem; }
  #articleBody ul li { font-size: 0.8rem; }
}
