/* Custom styles for the redesigned website */

/* Post layout integration styles */
.container {
  margin-top: 0; /* Override if needed */
}

/* Ensure Bootstrap classes work with modern navbar */
.jumbotron {
  margin-top: 0;
}

.sticky-top-offset {
  top: 80px; /* Adjust for modern navbar height */
}

/* Author link styling */
.author-link {
  text-decoration: none;
  color: inherit;
}

.author-link:hover {
  text-decoration: none;
  color: #007bff;
}

/* Image size control for blog posts */
.post-image-container img {
  max-height: 300px;
  width: auto;
  object-fit: cover;
}

/* About page styles */
.about-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  color: #333;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #007bff;
}

/* Recent activity section */
.recent-activity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Button styles */
.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #0056b3;
  text-decoration: none;
}

/* Blog post cards */
.post {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.post-image {
  margin: -1.5rem -1.5rem 1.5rem;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: auto;
}

.meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.categories a {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: #e9ecef;
  border-radius: 4px;
  margin-right: 0.5rem;
  color: #495057;
  text-decoration: none;
}

.categories a:hover {
  background: #dee2e6;
  text-decoration: none;
}

/* Research and Software pages */
.publication, .project {
  border-left: 4px solid #007bff;
  padding-left: 1rem;
  margin-bottom: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .recent-activity {
    grid-template-columns: 1fr;
  }
  
  .profile-image {
    width: 150px;
    height: 150px;
  }
}

/* About Page Two-Column Layout */
.about-page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.about-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 100px;
    text-align: center;
    padding: 2rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-sidebar .profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.about-sidebar .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-sidebar .social-links a {
    font-size: 1.4rem;
    color: #555;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 0.5rem;
}

.about-sidebar .social-links a:hover {
    color: #007bff;
    transform: translateY(-2px);
    text-decoration: none;
}

.about-main-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.about-content {
    max-width: none;
}

.about-content h1 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.about-content .tagline {
    color: #6c757d;
    font-weight: 400;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.cta-buttons .btn {
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background-color: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.cta-buttons .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    text-decoration: none;
}

.cta-buttons .btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.cta-buttons .btn-secondary:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

@media (max-width: 992px) {
    .about-page-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .about-sidebar {
        flex: none;
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-sidebar .profile-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .about-page-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        text-align: center;
    }
}

