/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #007bff;
  --text-color: #333;
  --background-color: #f4f4f4;
  --navbar-bg: rgba(0, 0, 0, 0.5);
  --transition-speed: 0.3s;
  --spacing-unit: 1rem;
}

body, html {
  font-family: Helvetica;
  height: 100%;
  margin-bottom: 100px; /* Add space at the bottom if needed */
  color: var(--text-color);
  line-height: 1.6;
}

/* Responsive Typography */
html {
  font-size: 16px;
}

@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

/* Hero Overlay Title */
.overlay h1 {
  color: #f4f4f4;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  transition: text-shadow var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

.overlay h1:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1),
               0 0 20px rgba(255, 255, 255, 0.2),
               0 0 30px rgba(255, 255, 255, 0.3);
  transform: scale(1.01);
}

/* Navbar */
header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  background-color: var(--navbar-bg);
  padding: calc(var(--spacing-unit) * 0.625) calc(var(--spacing-unit) * 1.25);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: clamp(50px, 5vw, 70px);
  margin-left: calc(var(--spacing-unit) * 0.625);
  margin-right: calc(var(--spacing-unit) * 6.25);
}

.logo span {
  font-size: 1.25rem;
  color: white;
  font-weight: bold;
  line-height: 1;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: calc(var(--spacing-unit) * 1.875);
  font-size: 1rem;
  transition: opacity var(--transition-speed) ease;
}

nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Responsive Navigation */
@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: calc(var(--spacing-unit) * 0.5);
  }

  nav {
    flex-direction: column;
    width: 100%;
  }

  nav a {
    margin: calc(var(--spacing-unit) * 0.5) 0;
    width: 100%;
    text-align: center;
  }

  .logo {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
  }

  .logo img {
    margin-right: 0;
  }
}

/* Hero Section */
.hero {
  background: url('Assets/bg.jpg') no-repeat center center/cover;
  min-height: 85vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 40px;
  border-radius: 10px;
}

/* Extra Content Placeholder */
.extra-content {
  background-color: #f4f4f4;
  padding: 50px;
  text-align: center;
  font-size: 20px;
}

.extra-content p {
  color: #333;
  line-height: 1.5;
}

/* Research Section */
.research-abstracts {
  padding: 50px;
  background-color: #f4f4f4;
  text-align: center;
}

.research-abstracts h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #333;
}

.abstracts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
  padding: 20px;
  background-color: #f4f4f4;
}

.abstract-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.abstract-card h3 {
  font-size: 24px;
  color: #333;
}

.abstract-card p {
  font-size: 16px;
  color: #666;
}

.read-more {
  font-size: 18px;
  color: #007bff;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* Action and Basic Research Section */
.action-research-section {
  padding: 50px;
  background-color: #f9f9f9;
  text-align: center;
}

.action-research-section h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.action-research-section p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Research Projects Grid */
.research-projects {
  padding: 50px;
  background-color: #f9f9f9;
  text-align: center;
}

.research-projects h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.project-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  font-size: 24px;
  color: #333;
}

.project-card p {
  font-size: 16px;
  color: #666;
}

/* About Page Section */
.about-section {
  padding: 100px 40px;
  background-color: #f9f9f9;
  text-align: justify;
}

.about-section h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.about-section p {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
  font-weight: bold;
  text-align: center;
  max-width: 1000px;
  margin: 20px auto;   /* spacing between paragraphs only */
  padding: 0 10px;     /* light left/right breathing room */
}

/* ✅ Updated Footer Styling to match first screenshot */
/* Footer Styling */
footer {
  background-color: #eaeaea;  /* Changed to a more minimal light gray background */
  color: #000000;                /* Darker text color for better contrast */
  padding: 0px;         /* Reduced padding to make the footer more compact */
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  margin-top: 0;
  padding-top: 30px;
  padding-bottom: 30px;
}

/* Footer content container */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/* Footer logo styling */
.footer-logo {
  width: 170px;  /* Increased size for better visibility */
  height: auto;
  flex-shrink: 0; /* Prevent logo from shrinking */
  margin-right: 50px; /* Add some space to the right of the logo */
}

/* Footer paragraph styling */
footer p {
  flex: 1;
  font-size: 18px;
  font-family: Helvetica;
  line-height: 2.0;
  text-align: justify;
  color: #333;    /* Darker text color for readability */
  margin: 0;
  padding-left: 10px; /* Reduced padding to avoid too much space */
}

/* Adjust spacing for the footer on smaller screens */
@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;  /* Stack the items vertically on smaller screens */
    align-items: center;     /* Center the content */
    text-align: center;      /* Center the text */
  }

  .footer-logo {
    margin-bottom: 20px;  /* Space below the logo when stacked */
  }
}


/* Optional: force dark footer in some pages */ 

/*Index HTML FOOTER IS HERE*/
.documents + footer {
  background-color: #eaeaea !important;
  margin-top: 0;
  padding-top: 30px;
  padding-bottom: 30px;
}

/* Logo + Navbar tweaks */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Divider */
.section-divider {
  height: 5px;
  background-color: black;
  background: #f4f4f4;
  padding: 20px 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.section-divider::before {
  content: "";
  display: block;
  width: 95%;
  height: 6px;
  background-color: rgb(34, 0, 255);
  border-radius: 5px;
}

/* Background color fix */
body {
  background-color: #f4f4f4;
}

/* Uiverse Card Animation */
.parent {
  width: 300px;
  padding: 20px;
  perspective: 1000px;
}

.card {
  padding-top: 50px;
  border: 3px solid rgb(255, 255, 255);
  transform-style: preserve-3d;
  background: linear-gradient(135deg,#0000 18.75%,#f3f3f3 0 31.25%,#0000 0),
      repeating-linear-gradient(45deg,#f3f3f3 -6.25% 6.25%,#ffffff 0 18.75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 0;
  background-color: #f0f0f0;
  width: 100%;
  box-shadow: rgba(142, 142, 142, 0.3) 0px 30px 30px -10px;
  transition: all 0.5s ease-in-out;
}

.card:hover {
  transform: rotateY(10deg) rotateX(5deg);
  box-shadow: rgba(100, 100, 100, 0.4) 0px 40px 40px -10px;
}

.content-box {
  background: #4169E1;
  padding: 60px 25px 25px 25px;
  transform-style: preserve-3d;
}

.content-box .card-title {
  display: inline-block;
  color: white;
  font-size: 25px;
  font-weight: 900;
  transform: translate3d(0px, 0px, 50px);
}

.content-box .card-title:hover {
  transform: translate3d(0px, 0px, 60px);
}

.content-box .card-content {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #f2f2f2;
  transform: translate3d(0px, 0px, 30px);
}

.content-box .card-content:hover {
  transform: translate3d(0px, 0px, 60px);
}

.content-box .see-more {
  cursor: pointer;
  margin-top: 1rem;
  display: inline-block;
  font-weight: 900;
  font-size: 9px;
  text-transform: uppercase;
  color: rgb(1, 2, 3);
  background: #eaeaea;
  padding: 0.5rem 0.7rem;
  transform: translate3d(0px, 0px, 20px);
}

.content-box .see-more:hover {
  transform: translate3d(0px, 0px, 60px);
}

.date-box {
  position: absolute;
  top: 30px;
  right: 30px;
  height: 60px;
  width: 60px;
  background: white;
  border: 1px solid rgb(7, 185, 255);
  padding: 10px;
  transform: translate3d(0px, 0px, 80px);
  box-shadow: rgba(100, 100, 111, 0.2) 0px 17px 10px -10px;
}

.date-box span {
  display: block;
  text-align: center;
}

.date-box .month {
  color: rgb(4, 193, 250);
  font-size: 9px;
  font-weight: 700;
}

.date-box .date {
  font-size: 20px;
  font-weight: 900;
  color: rgb(4, 193, 250);
}

.rights {
  background-color: #0930bd; /* or match your footer like #9e9b9b */
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 15px 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.3px;
}

/* ✅ BURGER DROPDOWN CONTAINER - ALIGNED WITH NAVBAR */
.burger-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 30px;
  z-index: 9999;
  height: 100%;
}

/* ✅ MINIMAL STYLISH BURGER ICON */
.burger-icon {
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
  transition: all 0.3s ease;
}

.burger-icon div {
  width: 18px;
  height: 2px;
  background-color: white;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: left center;
}

/* Subtle hover effect */
.burger-icon:hover div {
  width: 22px;
}

/* Middle line slightly shorter for style */
.burger-icon div:nth-child(2) {
  width: 14px;
}

.burger-icon:hover div:nth-child(2) {
  width: 18px;
}

/* ✅ YEAR DROPDOWN */
.dropdown-menu-vertical {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  z-index: 999;
  width: 180px;
  list-style: none;
  box-sizing: border-box;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Improved hover behavior with delay to prevent accidental closing */
.burger-dropdown:hover .dropdown-menu-vertical,
.dropdown-menu-vertical:hover,
.dropdown-menu-vertical:focus-within,
.dropdown-menu-vertical.active {
  display: block;
}

/* ✅ YEAR ITEMS */
.dropdown-menu-vertical li {
  position: relative;
  width: 100%;
  list-style: none;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dropdown-menu-vertical li a {
  display: block;
  width: 100%;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  box-sizing: border-box;
  transition: color 0.2s ease;
}

/* Enhanced hover effects with scale animation */
.dropdown-menu-vertical li:hover {
  background-color: #eaeaea;
  transform: scale(1.02);
}

.dropdown-menu-vertical li:hover > a {
  background-color: transparent;
  color: #007bff; /* Blue color to indicate selection */
}

/* ✅ MONTH SUBMENU - POSITIONED NEXT TO YEAR MENU */
.submenu-below {
  display: none;
  position: absolute;
  top: 0;
  left: -182px; /* Position to the left of the year menu */
  width: 180px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  list-style: none;
  padding: 0;
  box-sizing: border-box;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Show submenu on hover with better persistence */
.dropdown-menu-vertical li:hover > .submenu-below,
.submenu-below:hover,
.submenu-below:focus-within {
  display: block;
}

/* Add visual connection between menus */
.dropdown-menu-vertical li:hover::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #eaeaea;
  z-index: 1001;
}

.submenu-below li {
  width: 100%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.submenu-below li a {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  box-sizing: border-box;
  background-color: transparent;
  transition: color 0.2s ease;
}

/* Enhanced hover effects for submenu items */
.submenu-below li:hover {
  background-color: #eaeaea;
  transform: scale(1.02);
}

.submenu-below li:hover > a {
  background-color: transparent;
  color: #007bff; /* Blue color to indicate selection */
}

/* Visual highlight for active selections */
.dropdown-menu-vertical li.active,
.submenu-below li.active {
  background-color: #f0f7ff;
  border-left: 3px solid #007bff;
}

.dropdown-menu-vertical li.active > a,
.submenu-below li.active > a {
  color: #007bff;
  font-weight: 600;
}

/* Replaces burger icon with text label */
.dropdown-label,
.about-animation {
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 0px 0px;
  transition: all 0.3s ease; /* This makes both color and scale transition smoothly */
}

.dropdown-label:hover,
.about-animation:hover {
  color: #007bff; /* Blue on hover */
  transform: scale(1.1); /* Slightly scale the text when hovered */
}




#enrollmentChart {
  width: 100%;          /* Ensures the chart takes up 100% of the available width */
  max-width: 400px;     /* Maximum width to keep the chart from growing too large */
  height: 300px;        /* Set a fixed height or let it adjust based on width */
  margin: 0 auto;       /* Centers the chart horizontally */
}


img {
  filter: brightness(1.1) contrast(1.2);
}






