body {
  margin: 0;
  font-family: Arial, sans-serif;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  color: #0b0b0b;
  padding: 1rem;
  z-index: 1000;
}

header nav {
  display: flex;
  justify-content: space-around;
}

header nav a {
  color: #0a0a0a;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
}

header nav a:hover {
  color: #278198;
}

.hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b13a3a;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  background: rgba(0,0,0,0.6);
  padding: 1rem 2rem;
  border-radius: 10px;
}

section {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
}

footer {
  background: #fff;
  color: #bbb;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* ============================
   Resources Page Styles
   ============================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 10px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* 3 fixed columns */
  gap: 20px;
  justify-items: center;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 260px;   /* fixed width */
  height: 350px;  /* square shape */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  text-align: center;
}

.card-body h5.card-title {
  margin-bottom: 4px; /* smaller space below the course title */
}

.card-body p {
  margin: 3px 0;      /* smaller top and bottom margin for the live label */
}

.card-body a.btn {
  margin: 4px 2px 0 0; /* reduce top margin and add horizontal spacing between buttons */
}


.card:hover {
  transform: translateY(-5px);
}

.card iframe {
  width: 100%;
  height: 200px;  /* smaller preview */
  border: none;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: bold;
}

.btn {
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid #00d1b2;
  color: #00d1b2;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
  font-weight: bold;
  font-size: 0.9rem;
}

.btn:hover {
  background: #00d1b2;
  color: white;
}


/* Container spacing */
.col-md-6, .col-lg-4 {
  margin-bottom: 70px;
}

/* Card styling */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* iframe styling */
.card iframe {
  width: 100%;
  height: 200px;
  border: none;
}

/* Card body */
.card-body {
  padding: 20px;
}

/* Card title */
.card-title {
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: #333;
}



/* Button */
.card-body .btn {
  border-radius: 25px;
  margin-top: 4px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.card-body .btn:hover {
  background-color: #22aac6;
  color: #fff;
  border-color: #22aac6;
}

/* Optional: Responsive text alignment */
@media (max-width: 767px) {
  .card-body {
    text-align: center;
  }
}

/* Section styling */
#join-us {
  background-color: #f9f9f9;
  padding: 80px 30px;
}

.section-title {
  font-size: 2rem;
  font-weight: 200;
  color: purple;
}

#join-us p {
  font-size: 1rem;
  color: #555;
}

.row > .col-md-4 {
  padding-left: 15px;
  padding-right: 15px;
}
.vacancy-card {
  margin-bottom: 30px;
}


/* Vacancy card styling */
.vacancy-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vacancy-card:hover {
  transform: translateY(-5px);
  box-shadow: 15px 15px 30px rgba(0,0,0,0.15);
}

.vacancy-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #084a60;
}

.vacancy-desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #333;
}

.vacancy-salary {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 15px;
  color: #198754; /* green for salary/paid */
}

/* Button */
.btn-apply {
  display: inline-block;
  background-color: transparent;
  border: 2px solid #b2d4dd;
  color: #38c0d5;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-apply:hover {
  background-color: #43cddd;
  color: #fff;
}

#Research 
.card-grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card-grid-col {
  flex: 1 1 450px;
  max-width: 450px;
  display: flex;
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 1/1;      /* Always square */
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  width: 350px;   /* Set desired width */
  height: 600px;  /* Set desired height */

}
.card-img-top {
  width: 100%;
  height: 70%;             /* Image takes 60% of square height */
  object-fit: cover;
  display: block;
}
.card-body {
  height: 30%;             /* Body takes remaining 40% */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.7rem;
  text-align: center;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.6rem 0;
}
.card-body .btn {
  margin-top: 0.4rem;
}

/* Responsive: shrink squares on small screens */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.3rem; padding: 0.7rem 0.6rem; }
  header nav { flex-direction: column; gap: 10px; }
  .card { width: 95vw; height: auto; min-height: 350px; }
  .hero { height: 140px; font-size: 1.1rem; }
  section { padding: 1.5rem 1rem; }
}



#Bg image
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 56px; /* adjust if needed */
  background-color: white;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
  padding-top: 56px; /* push content below fixed header */
  margin: 0;
}

.hero {
  background-image: url('images/research-bg.jpg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  height: 250px; /* adjust height as desired */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  font-size: 3.2rem;
  font-weight: 700;
  margin: 0;
}

footer, footer > div {

  padding-left: 2rem; /* or 0/adjust as needed */
  padding-right: 2rem;
  background-color: #fff;
  color: white;
  max-width: 100%; /* override any max-width that reduces width */
}

.publication-list li,
.publication-list li a,
.publication-list li p {
  text-align: left;
}



@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 5px 0 rgba(128, 0, 128, 0.4);
  }
  50% {
    box-shadow: 0 0 15px 5px rgba(128, 0, 128, 0.8);
  }
}

@keyframes scaleBox {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

#quote-box {
  width: 900px;
  height: 100px;
  border: 1px solid white;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  animation: pulseGlow 4s ease-in-out infinite, scaleBox 8s ease-in-out infinite;
}

.quote-text {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  font-size: 18px;
  line-height: 1.4;
  padding: 0 10px;
}

.quote-text.active {
  opacity: 1;
  position: relative;
}

.carousel-item img {
  width: 100%;       /* Makes image take full card width */
  height: 100%;     /* Or whatever fixed height you prefer */
  object-fit: cover; /* Crops without stretching image */
  border-radius: 2px; /* Optional: rounded card corners */
  display: block;
}

.carousel-caption {
  position: absolute;       /* Position absolutely within the parent */
  bottom: 0;                /* Stick to the bottom */
  width: 100%;              /* Take full width of the image container */
  background: rgba(0, 0, 0, 0.2); /* Optional: semi-transparent background for readability */
  color: white;             /* Text color for contrast */
  padding: 2px;            /* Padding around text */
  box-sizing: border-box; 
  font-weight: 100;
  font-size: small;  /* Include padding in width calculation */
}
.carousel-item {
  position: relative;
}
