/* Updated CSS for better typography and readability */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #FAFAFA;
    color: #333; /* Default text color */
    line-height: 1.6; /* Improved line spacing */
}

h4 {
    font-size: 1.8rem; /* Larger heading size */
    font-weight: 500; /* Medium weight for headings */
    color: #C41230; /* Primary color for headings */
    margin-bottom: 1.5rem; /* Spacing below headings */
}

p {
    font-size: 1.1rem; /* Slightly larger paragraph text */
    color: #555; /* Dark gray for better readability */
    margin-bottom: 1rem; /* Spacing below paragraphs */
}

.container {
    margin-top: 0px;
}

.sections {
    margin-bottom: 35px;
    scroll-margin-top: 80px;
}

.card {
    padding: 5px;
    border-radius: 8px; /* Rounded corners for cards */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.card .card-action {
    padding: 5px 24px;
}

.card .card-content {
    padding: 12px;
}

nav {
    background-color: #C41230;
}

/* Ensure sidenav takes full height on mobile */
.sidenav {
    height: 100%;
    padding: 20px;
}

/* Style for mobile menu items */
.sidenav li {
    padding: 10px 0;
}

.sidenav a {
    font-size: 1.1rem;
    color: #C41230;
}

.sidenav a:hover {
    color: #C41230;
}

/* Hide the sidenav trigger on desktop */
@media only screen and (min-width: 992px) {
    .sidenav-trigger {
        display: none !important;
    }
}

/* Show the trigger on mobile */
@media only screen and (max-width: 991px) {
    .sidenav-trigger {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        font-size: 1.8rem !important;
    }

    .bio-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .bio-right {
      flex: none;
      width: 100%;
    }
  
    .bio-left img {
      width: 160px;
      height: 160px;
    }
  
    .bio-right p, .bio-right address {
      text-align: left;
      padding: 0 10px;
    }
}
  

footer {
    background-color: #C41230;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

.bio-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bio-left {
    text-align: center;
}

.bio-left img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.bio-right {
    flex: 1;
}

.social-links a {
    margin: 0 5px;
    color: #95b382; /* Primary color for social icons */
    transition: color 0.3s ease; /* Smooth hover effect */
}

.social-links a:hover {
    color: #FFC107; /* Yellow for hover effect */
}

#email a {
    color: #64ffda;
    text-decoration: none;
}

#email a:hover {
    text-decoration: underline;
}
  

.table-responsive {
    overflow-x: auto; /* Make tables responsive */
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 8px;
    border-bottom: 1px solid #ddd; /* Light border for table rows */
}

.table th {
    font-weight: 500; /* Medium weight for table headers */
    color: #C41230; /* Primary color for headers */
}

.video-container {
    position: relative;
    padding-bottom: 30%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 600px; /* limit max width */
    margin: 20px auto; /* center horizontally */
    border-radius: 12px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.collection {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.collection .collection-item {
    background-color: transparent;
    border-bottom: 1px solid #ddd; /* Light border for list items */
    padding: 10px; /* Spacing for list items */
}

.venue{
    color: #b26e63;
}

.chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    background-color: white;
    border: 1px solid #b5a2a5;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0 9px;
}

.chip:hover {
    background-color: #c76676;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
}

.award .card-year-badge {
    background-color: white;
    font-size: x-large;
    padding-right: 0px;
}

.publication-title{
    color: black;
    font-weight: 400;
}
.chip-tag{
    padding-left: 12px;
}

.footer{
    color: #fff;
}


/* Achievements Grid Layout */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Vertical Card Styles */
.achievement-card-vertical {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.achievement-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.achievement-card-vertical:hover .card-image-container img {
    transform: scale(1.05);
}

.card-year-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #C41230;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h5 {
    margin: 0 0 10px 0;
    color: #C41230;
    font-size: 1.2rem;
    font-weight: 500;
}

.card-content p {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

.publication-card {
    border-left: 3px solid #C41230;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-image-container {
        height: 220px;
    }
}

.fixed-card {
    height: 215px;
    overflow: hidden;
    border-top: 3px solid #C41230; 
}
  
 .truncate-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.detailed-text {
    font-size: 0.95em;
}

.activator{
    cursor: pointer;
    color: #C41230;
}
  
  