@font-face {
  font-family: 'Minecraft';
  src: url('../Home/Fonts/Minecraft.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Minecraft', monospace; 
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  color: #ffffff;
  background: #000 url('../Imagies/Fondo Minecraft.jpg') center center / cover no-repeat fixed;
  scroll-behavior: smooth;
  font-family: 'Minecraft', monospace;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

header{
    position:fixed;
    width:100%;
    top:0;
    left:0;
    z-index:1000;
}

.navbar {
    position: relative;
    left: 50%;
    top: 0;
    width: 97%;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: space-around;
    transform: translateX(-50%);
    background-color: #c6c6c6;
    border: 3px solid #000000;
    box-shadow: 
        inset 3px 3px 0px #ffffff, 
        inset -3px -3px 0px #5b5b5b,
        0 10px 30px rgba(0,0,0,0.8);
    padding: 10px;
    display: flex;
    gap: 15px; 
    z-index: 999; 
    -webkit-font-smoothing: none;
}

.logo img {
    height: clamp(40px, 5vw, 60px); 
    z-index: 10;
}

.nav-desktop {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: clamp(10px, 3vw, 60px); 
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
}

.nav-desktop li a {
    text-decoration: none;
    color: #000000; 
    font-family: 'Minecraft', monospace;
    font-size: clamp(12px, 1.5vw, 20px); 
    font-weight: bold;
    display: inline-block;
    background-color: #a0a0a0; 
    padding: clamp(6px, 1vw, 8px) clamp(10px, 2vw, 20px); 
    border: 2px solid #000000; 
    box-shadow: 
        inset 3px 3px 0px #ffffff,   
        inset -3px -3px 0px #555555; 
    cursor: pointer;
    transition: background-color 0s; 
}

.nav-desktop li a:hover {
    background-color: #3ca340; 
    color: #ffffff; 
    box-shadow: 
        inset 3px 3px 0px #5cbf60,   
        inset -3px -3px 0px #276b29; 
    text-shadow: 2px 2px 0px #000000; 
}

@font-face {
  font-family: 'Minecraft';
  src: url('Minecraft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.container {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 20px 40px 20px;
  z-index: 1;
}

.page-title {
  color: #af344f;
  font-size: clamp(1.5rem, 4vw, 2.5rem); 
  text-shadow: 2px 3px 0px #090905;
  margin-bottom: 40px;
  text-align: center;
}

/* ========================================= */
/* DYNAMIC GRID LAYOUT FOR INSTITUTES        */
/* ========================================= */

.institutes-grid {
  column-count: 3; 
  column-gap: 25px; 
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .institutes-grid { column-count: 2; }
}
@media (max-width: 600px) {
  .institutes-grid { column-count: 1; }
}

.institute-card {
  background-color: rgba(139, 139, 139, 0.4); 
  backdrop-filter: blur(8px); 
  -webkit-backdrop-filter: blur(8px);
  border: 3px solid #1a1a1a; 
  box-shadow: 
      inset 4px 4px 0px rgba(255, 255, 255, 0.6), 
      inset -4px -4px 0px rgba(55, 55, 55, 0.8);  
      
  padding: 25px 20px;
  text-align: left;
  
  display: inline-block; 
  width: 100%;
  margin-bottom: 25px; 
  break-inside: avoid; 
  
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  color: #ffffff;
}

.institute-card:hover,
.institute-card:active {
  background-color: rgba(139, 139, 139, 0.6); 
  transform: scale(0.98) translateY(2px); 
  box-shadow: 
      inset 4px 4px 0px rgba(55, 55, 55, 0.8), 
      inset -4px -4px 0px rgba(255, 255, 255, 0.2); 
}

.institute-card h2 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #ffffff;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 2px 2px 0px #222;
}

.institute-card ul {
  list-style: none;
}

.institute-card li {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 1px 1px 0px #222;
  margin-bottom: 8px;
}

.institute-card li::before {
  content: "- ";
  color: #7CFC00; 
}

/* ========================================= */
/* INSTITUTE PHOTOS SECTION                  */
/* ========================================= */

.photos-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 100px 20px;
  z-index: 1;
  position: relative; 
}

.photos-title {
  color: #af344f; 
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 40px;
  text-align: center;
  text-shadow: 2px 3px 0px #090905;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 40px; 
  width: 100%;
  max-width: 1200px; 
  margin: 0 auto;
}

@media (max-width: 800px) {
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.photo-box {
  background-color: rgba(139, 139, 139, 0.4); 
  backdrop-filter: blur(8px); 
  -webkit-backdrop-filter: blur(8px);
  border: 3px solid #1a1a1a; 
  box-shadow: 
      inset 4px 4px 0px rgba(255, 255, 255, 0.6), 
      inset -4px -4px 0px rgba(55, 55, 55, 0.8);  
  padding: 15px; 
  transition: all 0.2s ease-in-out;
}

.photo-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
      inset 4px 4px 0px rgba(55, 55, 55, 0.8), 
      inset -4px -4px 0px rgba(255, 255, 255, 0.2),
      0 10px 20px rgba(0,0,0,0.8); 
}

.photo-box img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border: 2px solid #1a1a1a; 
}

/* ========================================= */
/* FOOTER SETTINGS                           */
/* ========================================= */
.prerna-footer {
    background-color: #000000;
    padding: 60px 20px 0 20px;
    color: #ffffff;
    border-top: 4px solid #333333;
    font-family: 'Minecraft', monospace;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-split {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-contact, .footer-recognized {
    flex: 1;
}

.footer-recognized {
    border-left: 1px solid #444444; 
    padding-left: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-heading {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px #333;
}

.contact-block { margin-bottom: 20px; }
.contact-label { font-weight: bold; font-size: 14px; color: #cccccc; display: block; margin-bottom: 5px; }
.contact-block p { margin: 0; font-size: 15px; line-height: 1.6; color: #dddddd; }

.action-link {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.action-link:hover {
    color: #ffff55; 
    border-bottom: 1px solid #ffff55;
    text-shadow: 0px 0px 8px rgba(255, 255, 85, 0.4);
}

.recognized-img { max-width: 100%; height: auto; object-fit: contain; margin-top: 10px; }

.social-links { display: flex; gap: 15px; margin-top: 25px; }
.mc-social {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #2c2c2c;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #000;
    box-shadow: inset 2px 2px 0px #555, inset -2px -2px 0px #111;
    transition: all 0.1s ease;
}

.mc-social i { font-size: 18px; }
.mc-social:hover {
    background-color: #3c3c3c;
    transform: translateY(2px);
    box-shadow: inset 2px 2px 0px #111, inset -2px -2px 0px #555;
    color: #ffd700;
}

.footer-bottom-bar { text-align: center; border-top: 1px solid #333333; padding: 20px 0; }
.footer-bottom-bar p { margin: 0; font-size: 14px; color: #888888; letter-spacing: 2px; }

@media (max-width: 900px) {
    .footer-split { flex-direction: column; gap: 40px; }
    .footer-recognized { border-left: none; border-top: 1px solid #444444; padding-left: 0; padding-top: 30px; align-items: center; text-align: center; }
    .contact-block, .footer-heading { text-align: center; }
    .social-links { justify-content: center; }
}