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

.container{
    width: 100%;
    height: 100vh;
    background: #808080;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper{
    width: 80%;
    height: 80%;
}

.swiper-slide img{
    width: 100%;
}

.swiper .swiper-button-prev, .swiper .swiper-button-next{
    color: #ffffff;
}

.swiper .swiper-pagination-bullet-active {
    background: #ffffff;
}


/* custom */


.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

.certificate {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: white;
    padding: 10px;
    /* position: relative; */
}

.certificate img {
    width: 100%;
    height: 200px;
    border-radius: 5px; 
}

.certificate h3 {
    font-size: 1.1rem;
    margin: 10px 0 0;
    color: #333;
    text-transform: none;
}

.certificate a {
    text-decoration: none;
    color: inherit;
    display: block;
    border: none;
}

.certificate-with-popup {
  position: relative;
  overflow: visible;      /* allow popup to overflow outside the card */
  z-index: 5;             /* keep card above other content if needed */
}

/* temporarily bring this card + popup above others */
.certificate-with-popup:hover {
    z-index: 50;
    transition: background-color 0.2s ease; /* smooth effect */
}

.certificate:hover {
    background-color: #e0f7fa; /* change main certificate background */
}

.sub-certs-popup {
    display: none;
    position: absolute;
    width: 70vw;
    padding: 15px 15px 20px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 20;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    background: #d0ebf7;
    overflow: visible;
    top: 100%;
    box-sizing: border-box;
    max-height: 80vh;     /* avoid going off screen vertically */
    overflow-y: auto;     /* allow internal scroll if content tall */

}
.certificate,
.sub-cert {
    cursor: pointer; /* show hand cursor */
}

.sub-certs-popup .sub-cert {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sub-certs-popup .sub-cert h4 {
    font-size: 0.7rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    word-break: break-word;      /* wrap long titles */
}

.sub-certs-popup .sub-cert img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.2s;
    cursor: pointer;
}

/* Show popup on hover */
.certificate-with-popup:hover .sub-certs-popup {
    display: grid;
}


.sub-certs-popup .sub-cert:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Center the paragraph inside each article */
.posts article p {
    text-align: center;
    margin: 0 auto;
}

.posts h2 {
    text-transform: none !important;
}

/* experinece */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Section Titles */
.experience h2 {
    text-align: center;
    padding: 20px;
    background-color: #021f69d8;
    /* #021f69 */
    color: white;
    margin: 0;
    border-radius: 8px 8px 0 0;
}

/* Sections */
.experience {
    /* max-width: 800px; */
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
} 

/* Job and Project Styling */
.job {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* Headings inside jobs and projects */
.job h3 {
    color: #135099;
    margin: 0;
    text-transform: none !important;
}

/* Date Formatting */
.job .date {
    /* display: block; */
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* List Styling */
.job ul {
    padding-left: 20px;
}

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

.job-list {
    margin: 0
}

.job h3 span.company {
    color: #000000; /* Company color (gold/yellow) */
    font-weight: normal;
}


/* main about me  */

/* Profile Image Styles */
.profile-image {
    position: absolute;
    top: -10px;
    right: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 30px;

  } 
  
  .profile-image img {
    width: 100%;
    height: 100%;
  }
  
  .bio-text {
    line-height: 1.6;
    font-size: 16px;
    color: #333;
    margin-top: 20px;
  }
  
  .main-heading {
    margin: 0;
    padding-bottom: 10px;
    font-size: 50px !important;
    text-transform: none;
  }
  
  .sub-heading {
    margin: 0;
    padding-bottom: 10px;
  }
  


  /* Projects */

  .project-skills{
    color: gray;
    font-size: 13px;
    margin: 10px !important;
  }