:root {
    --iitk-blue: #002349;
    --iitk-gold: #e2b347;
    --light-gold: #f5e8c7;
    --light-text: #ffffff;
    --dark-text: #1a202c;
    --subtle-gray: #f9f9f9;
    --sidebar-bg: #f1f5f9;
    --image-block-bg: #e6eef6;
    --image-caption-color: #4a5568;
    --border-color: #d1d5db;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html, body {
    font-family: sans-serif;
    background: var(--subtle-gray);
    color: var(--dark-text);
    min-height: 100vh;
  }
  
  .container {
    width: 90%;
    max-width: 1350px;
    margin: 0 auto;
    margin-bottom: 40px;
  }
  
  .institute-header {
    background: rgba(226, 229, 233, 1);
    padding: 2.5rem 0 2rem 0;
    text-align: center;
    margin: 0 0 2rem 0;
    border-radius: 0.5rem;
  }
  
  .institute-header h1 {
    font-size: 2.2rem;
    color: var(--iitk-blue);
    font-weight: 800;
    letter-spacing: 1px;
  }
  
  .institute-header h1::after {
    content: "";
    display: block;
    width: 130px;
    height: 5px;
    background-color: var(--iitk-gold);
    margin: 2px auto 0;
    border-radius: 4px;
  }
  
  .institute-subtitle {
    color: var(--iitk-blue);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
  }
  
  .main-flex {
    display: flex;
    gap: 3.25rem;
    flex-wrap: wrap;
  }
  
  aside {
    flex: 1 1 220px;
    max-width: 250px;
    min-width: 210px;
  }
  
  .sidebar {
    background: var(--image-block-bg);
    border-radius: 18px;
    box-shadow: 0 6px 32px 0 rgba(0,35,73,0.10), 0 1.5px 0 var(--iitk-blue) inset;
    padding: 1rem 0.8rem;
    position: sticky;
    top: 80px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
    border-left: 7px solid var(--iitk-blue);
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 210px;
    max-width: 290px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    font-size: 0.9rem;
  }
  
  .sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 0.1rem;
    letter-spacing: 0.8px;
    color: var(--iitk-blue);
    font-weight: 700;
    border-bottom: 3px solid var(--iitk-gold);
    padding-bottom: 0.3rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  
  .sidebar ul {
    list-style: none;
    width: 100%;
    padding-top: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0;
  }
  
  .sidebar ul li {
    width: 100%;
  }
  
  .sidebar ul a {
    display: block;
    width: 100%;
    padding: 0.5em 0.8em;
    background: rgba(226,179,71,0.06);
    color: var(--iitk-blue);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 15px;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 4px rgba(0,35,73,0.04);
    border: 1.5px solid transparent;
  }
  
  .sidebar ul a:hover,
  .sidebar ul a:focus {
    background: linear-gradient(90deg, var(--iitk-gold) 60%, var(--light-gold) 100%);
    color: var(--iitk-blue);
    border: 1.5px solid var(--iitk-gold);
    box-shadow: 0 4px 18px 0 rgba(226,179,71,0.13);
    transform: scale(1.02) translateX(3px);
    outline: none;
  }
  
  .news-list {
    flex: 3 1 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
    margin-top: 10px;
  }
  
  .news-card {
    background: var(--light-text);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transition: box-shadow 0.2s, border-left 0.2s, background 0.2s;
    min-width: 0;
  }
  
  .news-card:hover {
    border-left: 1px solid var(--iitk-gold);
    background: linear-gradient(120deg, var(--light-gold) 0%, var(--light-text) 100%);
    box-shadow: 0 8px 32px rgba(0, 35, 73, 0.12);
  }
  
  .news-card h2 {
    font-size: 1.3rem;
    color: var(--iitk-blue);
    font-weight: 700;
    margin-bottom: 0.3rem;
  }
  
  .news-meta {
    font-size: 1rem;
    color: var(--iitk-gold);
    margin-bottom: 1rem;
    margin-top: 0.2rem;
    font-style: italic;
    font-weight: 600;
  }
  
  .news-card p {
    font-size: 1.06rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.2rem;
  }
  
  .news-card strong {
    color: var(--iitk-gold);
    font-weight: 700;
  }
  
  .news-img-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
    background: var(--image-block-bg);
    border-radius: 12px;
    padding: 1rem 0.5rem;
  }
  
  .news-img-gallery img {
    width: 48%;
    max-width: none;
    flex: 0 1 48%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    background: var(--light-gold);
    object-fit: cover;
    border: 2px solid var(--iitk-blue);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s, transform 0.4s, border-color 0.3s, box-shadow 0.3s;
  }
  
  .news-img-gallery img.loaded {
    opacity: 1;
    transform: scale(1);
  }
  
  .news-img-gallery img:hover {
    border-color: var(--iitk-gold);
    transform: scale(1.04) rotate(-1deg);
    box-shadow: 0 8px 32px rgba(226,179,71,0.25);
    z-index: 2;
  }
  
  @media (max-width: 900px) {
    .news-img-gallery img {
      width: 48%;
      flex: 0 1 48%;
    }
  }
  
  @media (max-width: 600px) {
    .news-img-gallery {
      flex-direction: column;
      gap: 1rem;
    }
    .news-img-gallery img {
      width: 100%;
      flex: 0 1 100%;
      max-width: 100%;
      aspect-ratio: 16/9;
    }
    .news-card {
      padding: 1.2rem 0.8rem;
    }
  }
  
  @media (max-width: 1024px) {
    .main-flex {
      flex-direction: column;
    }
    aside {
      max-width: 100%;
      margin-bottom: 2rem;
    }
  }
  