﻿@import url("https://fonts.googleapis.com/css2?family=Gloock&family=Montserrat:wght@100;200;400;500;600;700;800;900&family=Palanquin+Dark:wght@600&display=swap");

/*
 * This stylesheet defines the overall look and feel for the recreated
 * homepage. It is based on the layout of the source site but uses
 * our own images and simplified markup. Minor adjustments have been
 * made to update image paths and ensure the site works within the
 * recreated directory structure. See index.html for usage.
 */

* {
  margin: 0;
  padding: 0;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 99;
}

.fadeOut {
  animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

body {
  background-color: #ededed;
  padding-top: 64px;
}

.floating-nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 999;
  pointer-events: none;
  padding: 0 20px;
}

.floating-nav__container {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

.floating-nav__link {
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  color: rgba(17, 24, 39, 0.6);
  padding: 6px 14px;
  border-radius: 9999px;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-nav__link:hover {
  color: #111111;
  background-color: rgba(17, 24, 39, 0.08);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.floating-nav__link--active {
  color: #111111;
  background-color: rgba(17, 24, 39, 0.1);
}

.news-section {
  margin-top: 36px;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.news-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.news-section__header h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #111111;
}

.news-section__subhead {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.55);
}

.news-list-wrapper {
  position: relative;
  max-height: 360px;
  overflow-y: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-item {
  position: relative;
  padding-left: 24px;
}

.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

.news-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0));
}

.news-item__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(17, 24, 39, 0.6);
  margin-bottom: 6px;
}

.news-item__summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(17, 24, 39, 0.7);
  line-height: 1.6;
}

.news-item__separator {
  color: rgba(17, 24, 39, 0.35);
  font-weight: 600;
}

.news-item__text {
  display: inline;
}

.news-highlight {
  color: #4f46e5;
  font-weight: 600;
}

.news-section__fallback {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(17, 24, 39, 0.55);
  text-align: center;
}

@media (max-width: 768px) {
  .news-section {
    padding: 18px;
  }

  .news-list {
    padding: 16px 18px;
  }
}

@media screen and (max-width: 540px) {
  .floating-nav__container {
    gap: 2px;
    padding: 6px;
  }

  .floating-nav__link {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

.wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 10px auto;
  text-align: center;
}

.row {
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
}

#window {
  /* Use our custom banner image instead of the IISc photo */
  background: url(../image/banner.png);
  background-size: cover;
  background-attachment: fixed;
  height: 25vh;
  max-height: 200px;
  background-position: bottom center;
  margin: 25px 0;
  min-height: 100px;
  opacity: 0.4;
  width: 100%;
}

.col {
  position: relative;
  width: 50%;
  float: left;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.photo > img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.photo {
  padding-top: 50%;
  overflow: hidden;
}

.col:nth-child(2) {
  padding: 50px 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

@media screen and (max-width: 930px) {
  .col {
    font-size: 0.8em;
  }
}

@media screen and (max-width: 745px) {
  .col {
    font-size: 0.7em;
  }
}

@media screen and (max-width: 665px) {
  .row {
    flex-direction: column;
  }
  .col {
    width: 100% !important;
    font-size: 1em;
  }
  .photo {
    padding-top: 100%;
  }
}

@media screen and (max-width: 435px) {
  .col {
    font-size: 0.8em;
  }
}

h1 {
  font-family: "Gloock", serif;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

h2 {
  margin-bottom: 10px;
}

h3 {
  font-weight: 400;
  font-family: "Gloock", serif;
}

#social {
  margin-top: 30px;
}
#social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
#social img {
  width: 30px;
  height: 30px;
  margin: 0 4px;
  display: block;
}
#social img:hover {
  opacity: 0.8;
}

#cta {
  margin-top: 10px;
}
#cta a {
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Montserrat";
  color: #000;
  letter-spacing: 2px;
  font-size: 14px;
  width: 115px;
  display: inline-block;
  border: 1px solid;
  border-radius: 10px;
  padding: 2px 2px;
  margin: 4px;
}
#cta a:hover {
  opacity: 0.8;
  border-color: rgba(0, 0, 0, 0.8);
}

.statement,
.statement p,
.statement p * {
  font-family: "Montserrat", sans-serif;
  margin-top: 30px;
  position: relative;
  text-align: justify;
  font-size: 16px;
  line-height: 1.6;
}

.statement.quote::before {
  content: "\201C";
  font-family: "Palanquin Dark", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 50px;
  position: absolute;
  top: -26px;
  left: 0;
}

.statement > :first-child {
  margin-top: 0;
}

.statement a {
  text-decoration: none;
  color: #3F51B5;
}

.statement h1 {
  font-family: "Gloock", serif;
  font-size: 2em;
  font-weight: 600;
}

.statement h3 {
  margin-top: 20px;
  margin-bottom: 5px;
  border-bottom: 1px solid #000;
  padding-bottom: 6px;
}

.statement h4 {
  margin-top: 15px;
  margin-bottom: 5px;
  padding-bottom: 2px;
  border-bottom: 2px dashed rgb(99, 99, 99);
  color: rgb(99, 99, 99);
}

.statement ul {
  padding-left: 15px;
}
.statement details summary {
  font-weight: 600;
}
.statement details > *:not(summary) {
  margin-left: 20px;
}
.statement details {
  margin: 10px 0;
}
.statement img.full {
  width: 100%;
  display: block;
  margin: 5px 0;
}

span.new {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  background-color: #ff0;
  color: #f00;
  border-radius: 10px;
  padding: 2px 5px;
  font-size: 10px;
  text-transform: uppercase;
  box-sizing: border-box;
  margin: 0 2px;
  vertical-align: middle;
  display: inline-block;
}
span.new::before {
  content: "New!";
}

#footer {
  font-size: 10px;
  color: #bdbdbd;
  padding: 50px 0 10px 0;
}


