/* Font + Body */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


body {
  font-family: 'Inter', sans-serif;
  background-color: #fdfdfd;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid #ddd;
  background-color: white;
}
.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.profile-pic {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  border: 2px solid #333;
  margin-right: 10px;
}

.name-link {
  font-weight: 600;
  font-size: 1.25rem;
  color: #000;
  text-decoration: none;
}

.name-link:hover {
  color: maroon;
}

.designation {
  font-size: 0.85rem;
  color: #555;
}

.nav-link {
  font-weight: 500;
  color: #001f3f;
  padding-right: 2rem;
}

.nav-link:hover {
  /* color: white; 
  background-color: maroon; */
  border-bottom: 2px solid maroon;
}

.nav-link.active {
  border-bottom: 2px solid maroon;
  /* color: white; 
  background-color: maroon; */
}
.nav-tabs .nav-link {
  width: 100%;
  font-weight: 500;
  font-size: 1.1rem;
  color: #000000 !important; /* Maroon */
  opacity: 0.6;
  background: #f8f9fa;
  border: 1px solid #000000;
  /* border-radius: 0.75rem 0.75rem 0 0; */
  margin-right: 0.5rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nav-tabs .nav-link.active {
  /* background: #800000; */
  border: 1px solid rgba(128, 0, 0, .8);
  background: rgba(128, 0, 0, .8);
  color: #fff !important;
  opacity: 1;
  /* box-shadow: 0 4px 12px rgba(128,0,0,0.08); */
}

.nav-tabs {
  border-bottom: none;
}

.nav-tabs .nav-item {
  width: 50%;
  padding-left:1%;
  padding-right:1%;
}

.nav-tabs .nav-link:hover:not(.active) {
  /* background: #ffeaea; */
  color: #800000 !important;
  border-color: #800000;
  /* box-shadow: 0 2px 8px rgba(128,0,0,0.06); */
}
/* .nav-link.active:hover {
color: white;
} */

/* Sticky Footer */
.footer {
  border-top: 1px solid #ddd;
  background-color: white;
  margin-top: auto;
}

footer a {
  /* color: black; */
}

footer .btn {
  color: black;
  border-color: black;
}

footer .btn:hover {
  color: white;
  border-color: black;
  background-color: black;
}

footer a:hover {
  color: maroon;
}

/* Headings */
h1, h2, h3, h4 {
  font-weight: 600;
  color: #222;
}

p {
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #004080;
}

a:hover {
  color: maroon;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .profile-pic {
    height: 50px;
    width: 50px;
    margin-right: 8px;
  }
  
  .name-link {
    font-size: 1rem;
  }
  
  .designation {
    font-size: 0.75rem;
  }
}

/* Navbar Header */
/* .navbar {
background-color: #b3d1f0 !important;
} */

/* Footer */
footer {
  background-color: #a7a4a3 !important;
}
/* Masonry Photo Gallery */
.masonry-gallery {
  column-count: 3;
  column-gap: 1rem;
}

.masonry-gallery figure {
  margin: 0;
  break-inside: avoid;
}

.masonry-gallery img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.masonry-gallery img:hover {
  transform: scale(1.03);
  cursor: pointer;
}

.masonry-gallery figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.25rem;
}

/* Responsive Columns */
@media (max-width: 768px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .masonry-gallery {
    column-count: 1;
  }
}
pre {
  font-size: 0.75rem;
  white-space: pre-wrap;
}
.cv-iframe {
  width: 100%;
}

@media (min-width: 992px) {
  .cv-iframe {
    width: 70%;
  }
}

footer h6 {
  font-weight: bold;
}
/* 
.card-img-top {
object-fit: cover;
height: 350px;
transition: transform 0.3s ease;
}

.card-img-container {
position: relative;
overflow: hidden;
}


.card-img-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
top: 0;
background: rgba(0, 0, 0, 0.5);
opacity: 0;
transition: opacity 0.3s ease;
}

.card-img-container:hover .card-img-top {
transform: scale(1.05);
}

.card-img-container:hover .card-img-overlay {
opacity: 1;
} */

.card-img-container {
  position: relative;
}

.card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  /* width: 100%;
  height: 100%; */
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.05); /* semi-transparent for readability */
  z-index: 2;
  border-radius: 2.5rem;
  /* Remove any :hover logic from previous CSS */
}

.card-img-top {
  display: block;
  /* width: 100%; */
  /* height: auto; */
  height: 300px;
  width: auto;

  /* border-radius: 2.5rem; */
}
/* .hero {
background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
url('images/your_photo.jpeg') center/cover no-repeat;
color: white;
} */
.card {
  border: 1px solid #000;
  /* height: 100px; */
}

.card .blockquote {
  font-size: 0.98rem;
  font-style: italic;
  color: #e0e0e0;
  border-left: 3px solid #6b0000;
  margin-left: 0;
  padding-left: 1rem;
  background: none;
}
.card .blockquote p {
  margin-bottom: 0.5rem;
}
.card .blockquote:last-child p {
  margin-bottom: 0;
}

.card-title {
  color: #800;
  /* font-family: 'Segoe UI', sans-serif; */
  /* font-variant: small-caps; */
  /* border: #800000 1px solid; */
  font-weight: 400;
}

.card-body a {
  color: #800;
  border: #800000 1px solid;
  font-weight: 600;
}

.card-body a:hover {
  color: rgb(255, 255, 255);
  border: #800000 1px solid;
  background: #800000;
}

.profile-btn-icon2 {
  filter: grayscale(1);
  transition: filter 0.2s;
}
.profile-btn2:hover .profile-btn-icon {
  /* Maroon color filter for SVG icons */
  filter: invert(13%) sepia(99%) saturate(7476%) hue-rotate(340deg) brightness(80%) contrast(110%);
}


.profile-btn-icon {
  filter: grayscale(1);
  transition: filter 0.2s;
}
.btn-outline-secondary.profile-btn:hover .profile-btn-icon {
  filter: grayscale(0) brightness(0) invert(1);
}

.row {
  padding-bottom: 2%;
}