/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

/* Header Styling */
header {
    background: #fff;
    padding: 10px 0;
    /* Removed border-bottom for cleaner look */
}

/* General Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li {
    position: relative; /* Needed for the underline positioning */
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    position: relative; /* Needed for the pseudo-element */
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0px; /* Position the underline just below the text */
    width: 100%;
    height: 2px; /* Thickness of the underline */
    background-color: transparent; /* Start with no underline */
    transition: background-color 0.3s ease, width 0.3s ease;
}

nav ul li a:hover::after {
    background-color: #007acc; /* Underline color on hover */
    width: 100%; /* Ensure the underline spans the full width */
}

nav ul li.active a::after {
    background-color: #007acc; /* Underline color for active section */
    width: 100%; /* Ensure the underline spans the full width */
}

/* Hamburger Menu Icon */
.menu-icon {
    display: none; /* Hide by default */
    font-size: 2rem;
    cursor: pointer;
}

/* Responsive Styles for Mobile */
@media (max-width: 1100px) {
    .menu-icon {
        display: block;
        color: #333;
        text-align: right;
        margin-right: 20px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }

    nav ul.show-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: left;
        margin: 0;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid #eaeaea;
    }
}

/* Main Content Section */
.main-content {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Adjusting Column Widths */
.left-column {
    flex: 1.5; /* Increase the flex value to make the left column wider */
    max-width: 400px; /* Optionally, increase the max-width */
}

.right-column {
    flex: 4; /* Adjust the right column to maintain balance */
}

/* Responsive Columns on Mobile */
@media (max-width: 1100px) {
    .left-column, .right-column {
        max-width: 100%;
        flex: 1;
    }
}

/* Profile Section Styling */
.profile-section,
.section,
.education-section,
.research-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid #007acc; /* Standard border for all sections */
}

.profile-picture {
    padding: 20px 10px 20px 10px; /* Top, Right, Bottom, Left */
}


.profile-picture img {
    width: 90%; /* Ensures it takes up the full width of the container */
    max-width: 400px; /* Adjust to control the maximum size */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Adjust to make corners rounded */
    display: block;
    margin: 0 auto;
    object-fit: cover; /* Ensures the image scales correctly */
    border: 2px solid #0055aa; /* Thin border around the image */
}

/* Profile Details */
.profile-details h1 {
    font-size: 2.0rem;
    color: #007acc;
    text-align: center;
}

.profile-details p {
    margin: 10px 0;
    color: #555;
    text-align: center;
    font-size: 1rem;
}

/* Contact Info & Social Links */
.contact-info,
.social-links {
    text-align: center;
    margin-top: 10px;
}

.contact-info a,
.social-links a {
    color: #007acc;
    text-decoration: none;
    font-weight: bold;
    margin: 0 5px;
}

.contact-info a:hover,
.social-links a:hover {
    text-decoration: underline;
}

/* Styled Quote Section */
.styled-quote {
    font-style: italic;
    font-size: 1.2rem;
    color: #666;
    padding: 15px 20px;
    border-left: 5px solid #007acc;
    background-color: #f9f9f9;
    display: inline-block;
    margin: 15px auto;
    text-align: left;
    font-family: 'Georgia', serif;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    border-radius: 10px;
}

.styled-quote span {
    font-size: 0.9rem;
    font-style: italic;
    color: #333;
    display: block;
    margin-top: 10px;
}

.no-italics {
    font-style: normal;   
}

/* Responsive Styled Quote */
@media (max-width: 1100px) {
    .styled-quote {
        font-size: 1.1rem;
        padding: 10px 15px;
        max-width: 100%;
        border-radius: 8px;
    }

    .styled-quote span {
        font-size: 0.9rem;
    }
}

/* About Me Biography Text */
.section#about-me p {
    font-size: 1rem;
    line-height: 1.4;
}

.profile-details {
    text-align: center;
}

/* Research Interests Section */
.research-section h3 {
    font-size: 1.5rem;
    color: #007acc;
    margin-bottom: 15px;
    text-align: left;
}

.research-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.research-section ul li {
    margin-bottom: 10px;
    color: #555;
}

/* Responsive Research Section */
@media (max-width: 1100px) {
    .research-section h3 {
        font-size: 1.3rem;
    }

    .research-section ul {
        padding-left: 15px;
    }

    .research-section ul li {
        margin-bottom: 8px;
    }
}

/* Education List Styling */
.education-list.no-bullets {
    list-style: none;
    margin-left: 0;
    padding: 0;
    position: relative;
}

.education-list.no-bullets li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 100px;
}

/* Subsection Styling */
.education-list.no-bullets ul {
    margin-top: 5px;
    margin-left: 20px;
    list-style-type: disc; /* Ensure bullets are added here */
}

/* Style for subsection items */
.education-list.no-bullets ul li {
    margin-bottom: 5px;
    list-style: disc; /* Ensure bullet points are visible */
}

/* Link Styling in subsections */
.education-list.no-bullets ul li a {
    color: #007acc;
    text-decoration: none;
}

.education-list.no-bullets ul li a:hover {
    text-decoration: underline;
}


/* Date Styling */
.date-posted {
    position: absolute;
    right: 0;
    top: 0;
    color: #666;
    font-size: .9rem;
    font-style: italic;
}

/* Responsive Date Styling */
@media (max-width: 1100px) {
    .date-posted {
        position: static;
        display: block;
        margin-top: 5px;
        text-align: left;
        font-size: 0.8rem;
    }

    .education-list.no-bullets li {
        padding-right: 0;
    }
}

/* Right Column Sections */
.section h2 {
    font-size: 1.5rem;
    margin-top: 0rem;
    margin-bottom: 1.25rem;
    color: #007acc;
}

/* List Styling in Sections */
.section ul {
    list-style: none;
    padding: 0;
}

.section ul li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 120px;
}

.section ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.section ul li a:hover {
    color: #007acc;
}

/* Responsive Right Column */
@media (max-width: 1100px) {
    .section ul li {
        padding-right: 10px;
    }

    .date-posted {
        position: static;
        text-align: left;
        margin-top: 5px;
        font-size: 0.8rem;
    }
}

/* Show More and View All Buttons */
.show-more {
    background: none;
    color: #007acc;
    border: none;
    padding: 0;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

.view-all a {
    background: none;
    color: #007acc;
    border: none;
    padding: 0;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
}

.show-more:hover, .view-all a:hover {
    text-decoration: underline;
}

/* Show More Container */
.show-more-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

/* Hidden Links */
.hidden-links {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.hidden-links.expanded {
    display: block;
    max-height: 500px;
}

/* Footer Styling */
footer {
    background: #fff;
    padding: 20px 0;
    /* Removed border-top for cleaner look */
    text-align: center;
}

footer p {
    color: #777;
}

/* Fix for mobile responsiveness, particularly between 480px and 1100px */
@media (max-width: 1100px) and (min-width: 480px) {
    .main-content {
        display: block; /* Changing flex-direction to block so sections stack */
    }

    .left-column, 
    .right-column {
        width: 100%; /* Ensure both columns take the full width */
        max-width: 100%; 
        margin-bottom: 20px; /* Ensure space between stacked elements */
    }

    /* Adjust Research and About sections */
    .research-section,
    .section#about-me {
        clear: both; /* Ensure no overlap */
        margin-bottom: 20px;
        width: 100%;
        display: block;
    }
    
    /* Adjust the heights to auto-adjust */
    .right-column {
        height: auto; /* Ensure it adjusts properly to content */
    }

    .section#about-me {
        padding-top: 20px; /* Add padding if needed to separate */
    }
}

@media (max-width: 480px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-column, 
    .right-column {
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* Ensure Research and About sections are properly spaced */
    .research-section,
    .section#about-me {
        width: 100%;
        clear: both;
        margin-bottom: 20px;
        padding: 10px;
    }
    
    /* Other necessary small screen adjustments */
}


/* Blog Post Title Styling */
.post-title {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
}

.post-title a {
    text-decoration: none;
    color: #007acc;
    display: flex;
    align-items: center;
}

.post-title i {
    font-size: 2.0rem;
    margin-left: 1rem;
    vertical-align: middle;
}

/* Author Info */
.author-info {
    margin-bottom: 0.7rem;
}

.name-and-date {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-name {
    font-size: 1.3rem;
    margin: 0;
}

.post-date {
    font-size: 1rem;
    margin: 0;
}

.author-bio {
    font-size: 1rem;
    margin-top: 0.05rem;
}

/* Section Titles */
h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.1rem;
    color: #007acc;
}

/* Paragraphs */
p {
    margin-top: 0.2rem;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Copyright Text */
.copyright {
    font-size: 1rem;
    color: #777;
    text-align: center;
}

/* Improved UI for older screens */
.section,
.profile-section,
.education-section,
.research-section {
    border: 1px solid #007acc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* High contrast styles for older screens */
.high-contrast .section,
.high-contrast .profile-section,
.high-contrast .education-section,
.high-contrast .research-section {
    border: 2px solid #0055aa;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Coming Soon Message Container */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(50vh - 0px);
    padding: 20px;
}

#coming-soon-message {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}