/*
 *  __                  __
 * /\ \                /\ \
 * \ \ \___   __  __   \_\ \     __
 *  \ \  _ `\/\ \/\ \  /'_` \  /'__`\
 *   \ \ \ \ \ \ \_\ \/\ \_\ \/\  __/
 *    \ \_\ \_\/`____ \ \___,_\ \____\
 *     \/_/\/_/`/___/> \/__,_ /\/____/
 *                /\___/
 *                \/__/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/hyde.
 */


/*
 * Contents
 *
 * Global resets
 * Sidebar
 * Container
 * Reverse layout
 * Themes
 */


/*
 * Global resets
 *
 * Update the foundational and global aspects of the page.
 */

html {
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
}
@media (min-width: 48em) {
  html {
    font-size: 16px;
  }
}
@media (min-width: 58em) {
  html {
    font-size: 18px;
  }
}

.pub-item {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  /* border-left: 4px solid #268bd2; A nice "academic" blue accent */
  border-radius: 0 8px 8px 0;
  transition: background 0.2s ease;
}

.pub-item:hover {
  border: 1px solid rgba(163, 163, 163, 0.1);
  /* border-left: 4px solid #268bd2; A nice "academic" blue accent */
  background: rgba(160, 160, 160, 0.02);
}

.pub-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.pub-authors {
  font-size: 0.95rem;
  color: rgba(32, 32, 32, 0.8);
  margin-bottom: 0.3rem;
}

.pub-venue {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(32, 32, 32, 0.8);
  margin-bottom: 1rem;
}

.btn-pub {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  margin-right: 0.5rem;
  border: 1px solid rgba(32, 32, 32, 0.5);
  border-radius: 4px;
  color: #202020 !important;
  text-decoration: none !important;
}

.btn-pub:hover {
  background: rgba(32, 32, 32, 1.0);
  border-color: #fff;
  color:#fff !important;
}

/* Career Grid Layout */
/* Mobile: 1 column by default */
.career-grid {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 1rem;
  margin-top: 1rem;
}

/* Tablets and PC: Exactly 2 columns */
@media (min-width: 48em) {
  .career-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Optional: Large Monitors */
/* If you want to keep it at 2 columns even on massive screens, 
   the code above handles it. If you want a 3rd column ONLY on 
   huge screens, you'd add a 64em media query here. */

.experience-item {
  position: relative; /* CRITICAL for the whole-card-link to work */
  display: flex;
  flex-direction: column; /* Stacks header and body vertically */
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0rem;
}

.experience-item:hover {
  border: 1px solid rgba(163, 163, 163, 0.1);
  background: rgba(160, 160, 160, 0.02);
}

.experience-header {
  display: flex;
  align-items: center; /* Aligns logo and text vertically */
  gap: 1rem;
  margin-bottom: 1rem; /* Space between header and description */
}

.company-logo img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  object-fit: contain; 
  flex-shrink: 0; /* Prevents the logo from getting squished if title is long */
}

.header-text h4 {
  margin: 0;
  font-size: 1.2rem;
}

.experience-meta {
  font-size: 0.85rem;
  color: rgba(32, 32, 32, 0.8);
}

/* ADD THIS: */
.experience-meta span {
  display: inline-block;
  margin-right: 0.5rem;
}

.experience-body p, ul, ol {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(32, 32, 32, 0.8);
}

/* 1. Create the card with a border */
.post-card {
  position: relative; /* Essential for the stretched link */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.2s ease-in-out;
  background: rgba(255, 255, 255, 0.02);
}

/* 2. Hover effect for the whole card */
.post-card:hover {
  border-color: rgba(148, 148, 148, 0.4);
  background: rgba(185, 185, 185, 0.616);
  /* transform: translateY(-2px); Slight lift effect */
}

/* 3. Make the anchor cover the entire card */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

/* 4. Ensure the Title link looks right */
.post-card .post-title a {
  text-decoration: none;
  color: inherit;
}

/*
 * Sidebar
 *
 * Flexible banner for housing site name, intro, and "footer" content. Starts
 * out above content in mobile and later moves to the side with wider viewports.
 */

.sidebar {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255,255,255,.5);
  background-color: #202020;
}
@media (min-width: 48em) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    text-align: left;
  }
}

/* Sidebar links */
.sidebar a {
  color: #fff;
}

/* About section */
.sidebar-about h1 {
  color: #fff;
  margin-top: 0;
  /* font-family: "Abril Fatface", serif; */
  font-size: 2.5rem;
}

.sidebar-about h2 {
  color: #b4b4b4 !important;
  margin-top: 0;
  font-size: 1.25rem;
  /* font-family: "Abril Fatface", serif; */
  /* font-size: 3.25rem; */
}

/* Mobile Default (Centered) */
.sidebar-about .profile-pic {
  display: block !important;
  width: 200px !important;
  height: 200px !important;
  border-radius: 50% !important;
  border: 3px solid #fff !important;
  object-fit: cover !important;
  object-position: center 30%;
  
  /* This centers the image on mobile */
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1.5rem !important;
}

/* PC / Tablet (Left Aligned) */
@media (min-width: 48em) {
  .sidebar-about .profile-pic {
    /* This pushes the image to the left on desktop */
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.sidebar-about .social-icons {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  /* text-align: center !important; */
}

.sidebar-about .social-icons a {
  color: rgba(255, 255, 255, 0.5) !important; /* Semi-transparent white to match Hyde's vibe */
  font-size: 1.25rem !important;
  margin: 0 0 0 0 !important;
  text-decoration: none !important;
  transition: color 0.2s ease-in-out !important;
}

.sidebar-about .social-icons a:hover {
  color: #fff !important; /* Bright white on hover */
}

/* Sidebar nav */
.sidebar-nav {
  margin-bottom: 1rem;
}
.sidebar-nav-item {
  display: block;
  line-height: 1.75;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: underline;
}
.sidebar-nav-item.active {
  font-weight: bold;
}

.sidebar-footer-item {
  font-size: 0.6rem;
}

/* Sticky sidebar
 *
 * Add the `sidebar-sticky` class to the sidebar's container to affix it the
 * contents to the bottom of the sidebar in tablets and up.
 */

@media (min-width: 48em) {
  .sidebar-sticky {
    position: absolute;
    right:  1rem;
    bottom: 1rem;
    left:   1rem;
  }
}


/* Container
 *
 * Align the contents of the site above the proper threshold with some margin-fu
 * with a 25%-wide `.sidebar`.
 */

.content {
  padding-top:    4rem;
  padding-bottom: 4rem;
}

@media (min-width: 48em) {
  .content {
    max-width: 85%;
    margin-left: 20rem;
    margin-right: 5%;
  }
}

@media (min-width: 64em) {
  .content {
    max-width: 70rem;    /* Allows a much wider view on desktop */
    margin-left: 22rem;
    margin-right: 5rem;
  }
}


/*
 * Reverse layout
 *
 * Flip the orientation of the page by placing the `.sidebar` on the right.
 */

@media (min-width: 48em) {
  .layout-reverse .sidebar {
    left: auto;
    right: 0;
  }
  .layout-reverse .content {
    margin-left: 2rem;
    margin-right: 20rem;
  }
}

@media (min-width: 64em) {
  .layout-reverse .content {
    margin-left: 4rem;
    margin-right: 22rem;
  }
}



/*
 * Themes
 *
 * As of v1.1, Hyde includes optional themes to color the sidebar and links
 * within blog posts. To use, add the class of your choosing to the `body`.
 */

/* Base16 (http://chriskempson.github.io/base16/#default) */

/* Red */
.theme-base-08 .sidebar {
  background-color: #ac4142;
}
.theme-base-08 .content a,
.theme-base-08 .related-posts li a:hover {
  color: #ac4142;
}

/* Orange */
.theme-base-09 .sidebar {
  background-color: #d28445;
}
.theme-base-09 .content a,
.theme-base-09 .related-posts li a:hover {
  color: #d28445;
}

/* Yellow */
.theme-base-0a .sidebar {
  background-color: #f4bf75;
}
.theme-base-0a .content a,
.theme-base-0a .related-posts li a:hover {
  color: #f4bf75;
}

/* Green */
.theme-base-0b .sidebar {
  background-color: #90a959;
}
.theme-base-0b .content a,
.theme-base-0b .related-posts li a:hover {
  color: #90a959;
}

/* Cyan */
.theme-base-0c .sidebar {
  background-color: #75b5aa;
}
.theme-base-0c .content a,
.theme-base-0c .related-posts li a:hover {
  color: #75b5aa;
}

/* Blue */
.theme-base-0d .sidebar {
  background-color: #6a9fb5;
}
.theme-base-0d .content a,
.theme-base-0d .related-posts li a:hover {
  color: #6a9fb5;
}

/* Magenta */
.theme-base-0e .sidebar {
  background-color: #aa759f;
}
.theme-base-0e .content a,
.theme-base-0e .related-posts li a:hover {
  color: #aa759f;
}

/* Brown */
.theme-base-0f .sidebar {
  background-color: #8f5536;
}
.theme-base-0f .content a,
.theme-base-0f .related-posts li a:hover {
  color: #8f5536;
}
