/* Custom styles for post listings */

.posts_listing {
  list-style-type: none;
  padding: 0;
}

.posts_listing > li {
  margin-bottom: 2rem;
}

.posts_listing h2 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.date-header ul {
  list-style-type: none;
  padding-left: 0.5rem;
}

.date-header ul li {
  margin-bottom: 0.25rem;
  margin-left: 0;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
}

.date-header ul li:before {
  content: "•";
  margin-right: 0.5rem;
  color: #333;
}

.date-header ul li a {
  color: #333;
  font-size: 0.95rem;
} 
/* Footer styling */
footer {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.footer-links {
  margin-bottom: 0.5rem;
}

.footer-separator {
  margin: 0 0.5rem;
  color: #888;
}

/* Import Projects Styles */
@import url('./projects.css');

/* Mobile-first responsive design improvements */
* {
    box-sizing: border-box;
}

/* Ensure all content respects viewport width */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    word-wrap: break-word;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Table responsiveness using wrapper approach */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    font-family: inherit;
    font-size: inherit;
}

table tr:hover {
    background: #f7fafc;
}


/* Mobile-specific table styling */
@media (max-width: 768px) {
    .table-responsive {
        margin: 1rem 0; /* Keep centered with content on mobile */
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border: 1px solid #e2e8f0;
        position: relative;
    }
    
    table {
        font-size: 0.85rem;
        min-width: 800px; /* Ensure table maintains readable width and prevents clipping */
        table-layout: auto;
    }
    
    table th,
    table td {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: visible;
    }
    
    /* Ensure first column has enough space */
    table th:first-child,
    table td:first-child {
        padding-left: 20px !important;
        padding-right: 20px !important;
        min-width: 150px !important;
        width: 150px;
    }
    
    /* Specific fix for project content tables */
    .project-content table th:first-child,
    .project-content table td:first-child {
        padding-left: 40px !important;
        padding-right: 24px !important;
        min-width: 160px !important;
        width: 160px !important;
    }
    
    table th {
        background: #2c5282;
        color: white;
        font-size: 0.85rem;
        font-family: inherit;
        text-transform: none;
        letter-spacing: normal;
        font-weight: 600;
    }
}



/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* About page header - text area unchanged */
.about-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.about-title-section {
    /* Text stays exactly as it was */
}

.about-profile-image {
    position: absolute;
    top: -2rem; /* Move higher up */
    left: -370px; /* Way outside the text area on the left */
    z-index: 1;
    display: none; /* Hide image but keep all formatting */
}

.about-profile-image img {
    width: 290px;
    height: 320px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .about-profile-image {
        position: static;
        margin: 1rem auto 0;
    }
    
    .about-profile-image img {
        width: 180px;
        height: 180px;
        clip-path: circle(50%); /* Simple circle on mobile */
    }
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
    #content {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Ensure code blocks don't overflow */
    pre, code {
        overflow-x: auto;
        word-wrap: break-word;
        white-space: pre-wrap;
    }
    
    /* Better mobile navigation */
    #nav {
        padding: 0.5rem 1rem;
    }
    
    #nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    #nav li {
        margin: 0.25rem 0;
    }
}