@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
  margin: 0;
  font-family: 'Roboto', sans-serif; /* Apply Roboto font to the entire body */
  color: #333;
  background-color: #ffffff;
  padding: 0;
  overflow-x: hidden;
}

h3 
{
 color:maroon ;
}

.homepage .grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100vh;
}
.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* Stack text elements vertically */
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.tile:hover img {
  transform: scale(1.05);
}
.tile a {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block; /* Ensure anchor takes up the whole area */
  text-indent: 0; /* Remove the text indent */
  z-index: 2; /* Ensure the link is above the overlay */
}

/* Color overlay */
.tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.251); /* Semi-transparent black overlay */
  z-index: 1;
}

.tile-text {
  position: absolute;
  color: white;
  font-size: 26px;
  font-weight: bold;
  padding: 15px;
  text-align: center;
  max-width: 90%;
  z-index: 2; /* Ensure text is above the overlay */
}
.tile-subtext {
  position: absolute;
  color: white;
  font-size: 18px;
  padding: 10px;
  text-align: center;
  max-width: 90%;
  z-index: 2; /* Ensure text is above the overlay */
  top: 50%; /* Adjust position to be just below the main text */
}
.navbar {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
}

.hamburger {
  font-size: 28px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  z-index: 1002; /* Ensure it's above other elements */
}

a {
  text-decoration: none;
  color: inherit; 
} 

/*a:hover {
  background-color: #e0e0e0; 

}*/
.analysis-list {
  padding: 1px 15px;
  margin-right: 40px;
  margin-left: 10px;
  margin-top: 10px;
  border-left: 3px solid rgb(99, 99, 99);
  border-radius: 5px;
  background-color: #fafafa;
}

/* Responsive tweak */
@media (max-width: 1024px) {
  .analysis-list,
  .explore-list {
    padding-right: 20px;
  }
}

.analysis-list li {
  font-size: 16px;
  margin-bottom: 11px;
  line-height: 1.5;
}

.explore-list {
  background-color: #fffcfcf2;
  padding: 15px 20px;
  border-bottom: 2px solid maroon;
  margin-top: 15px;
  border-left: 2px solid maroon;
  border-radius: 5px;
}

.explore-list ul {
  padding-left: 20px;
}

.explore-list li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
  list-style-type: disc;
  text-align: left;
}

.explore-list li::marker {
  color: maroon;
}



/* Side menu style */
.side-menu {
  height: 100%; /* Full height of the screen */
  width: 320px; /* Set the width to 320px */
  position: fixed;
  top: 0;
  left: -320px; /* Initially off-screen, adjusted to match the new width */
  background-color: #414141; /* Dark background */
  overflow-x: hidden; /* Hide any horizontal overflow */
  transition: 0.4s ease; /* Smooth transition */
  padding-top: 90px; /* Add padding from the top */
  z-index: 1000; /* Make sure it stays on top */
  display: flex;
  flex-direction: column;
}

.side-menu a {
  padding: 12px 24px;
  margin-left: 12px;
  text-decoration: none;
  font-size: 20px;
  color: #f1f1f1;
  display: block;
  transition: 0.3s;
}

.side-menu a:hover {
  background-color: #575757;
}

.side-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  z-index: 1001; /* Ensure it's above other elements */
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3); /* semi-transparent */
  z-index: 900;
  display: none;
  transition: opacity 0.3s ease;
}

.grid.blurred {
  filter: blur(3px);
  transition: filter 0.3s ease;
}

.photo-chess {
  max-width: 1000px; /* or any width you prefer */
  margin: 0 auto;
  padding: 0 1rem; /* optional for side spacing */
}

/* Container for all content */
.about-container {
  margin: 60px auto;
  max-width: 1050px;
  padding: 30px;
  text-align: justify;
}

/* About Text Styling */
.about-text {
  margin-bottom: 30px;
}

.about-text h1 {
  font-size: 30px;
  color: #333;
  font-weight: bold;
}

.about-text h4 {
  font-size: 18px;
  color: #555;
  font-weight: 600;
  margin-top: 30px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.5;
  color: #444;
  margin-bottom: 16px;
}

.about-text ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* Chessboard-style alternating layout (image-text) */
.alternate-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px; /* Increased spacing for separation */
  padding: 10px 0px;
  /*background-color: #f9f9f9;  Light background color for sections */
  border-radius: 10px; /* Rounded corners for a soft look */
}


.image-left, .image-right {
  width: 48%; /* Adjusting width to make sure text and images fit well */
}

.image-left img, .image-right img {
  width: 100%; /* Ensure image spans the full container width */
  height: 300px; /* Fixed height for uniformity */
  object-fit: cover; /* Ensures images don't stretch/distort */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition on hover */
}

.image-left img:hover, .image-right img:hover {
  transform: scale(1.05); /* Slight zoom effect when hovered */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.image-caption {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

.text-left, .text-right {
  width: 48%;
  height: 300px; /* fixed height matching image */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center content if needed */
}

.text-left {
  border-left: 2px solid #ccc;
  padding-left: 15px;
}

.text-right {
  border-right: 2px solid #ccc;
  padding-right: 15px;
}

.text-left h4, .text-right h4 {
  font-size: 22px;
  font-weight: bold;
  margin-top: 0;
  color: #333;
}

.text-left p, .text-right p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* Responsiveness for mobile */
@media (max-width: 768px) {
  .alternate-section {
    flex-direction: column; /* Stack the sections vertically */
    align-items: center; /* Center content when stacked */
  }

  .image-left, .image-right, .text-left, .text-right {
    width: 100%; /* Make all sections full-width */
    text-align: center; /* Center-align text when stacked */
  }

  .text-left h4, .text-right h4 {
    font-size: 20px; /* Smaller heading on mobile */
  }

  .text-left p, .text-right p {
    font-size: 14px; /* Slightly smaller font for mobile */
  }
}
.header-left .site-title a
{
  text-decoration: none;
  color:darkred;
  font-style: italic;
}

.header-left .site-title a:hover
{
  color: #555;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: block;
  min-height: 100vh;
  width:100%;
}
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 55px; /* Set header height */
  background-color: #f3f3f3; /* Light background color */
  border-bottom: 1px solid darkred; /* Light border for separation */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-sizing: border-box; /* Ensures padding is included in width */
  z-index: 1100; /* Makes sure it stays on top of other content */
  white-space: nowrap; /* Prevent wrapping of the text */
  overflow: hidden; /* Prevent overflow */
}

/* Site title styling */
.site-title {
  font-size: 18px;
  font-weight: 600;
  color: darkred; /* Dark color for text */
  white-space: nowrap; /* Prevent wrapping of the title */
  overflow: hidden;
  text-overflow: ellipsis; /* Add ellipsis if text overflows */
}

/* Navigation links (for desktop) */
.header-nav a {
  margin: 0 12px;
  color: #990000;
  font-weight: 500;
  font-size: 16px;
}

.header-nav a:hover {
  color: #555;
  text-decoration: underline;
}

/* Hamburger menu - only visible on mobile */
.mobile-only {
  display: none;
}

/* Desktop-only elements */
.desktop-only {
  display: flex;
}

/* Media query for screens wider than 768px (desktop) */
@media (min-width: 768px) {
  /* Desktop navigation links become visible */
  .desktop-only {
    display: flex;
  }

  /* Mobile elements are hidden */
  .mobile-only {
    display: none;
  }

  /* Adjust navbar items alignment on desktop */
  .header-nav {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }

  .header-nav a {
    margin-left: 20px; /* Space between nav items */
  }
}

/* Optional: Add some space in the mobile version to prevent it from looking too cramped */
@media (max-width: 767px) {
  .main-header {
    padding: 0 15px; /* Reduced padding on mobile */
  }

  .site-title {
    font-size: 16px; /* Slightly smaller title on mobile */
  }

  .header-nav a {
    font-size: 14px; /* Slightly smaller text on mobile */
  }
}
/* resources 3 sections */
.resources-content {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

.resource-section {
  margin-bottom: 60px;
  padding: 30px;
  background-color: #fff;
  border-left: 6px solid #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.resource-section:hover {
  transform: translateY(-4px);
}

.resource-section h2 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #222;
}

.resource-section p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.main-footer {
  background-color: #f8f8f8;
  border-top: 1px solid #ccc;
  padding: 25px 0;
  font-size: 14px;
  color: #666;
}
.main-footer a {
  color: inherit;
  text-decoration: underline;
}

.main-footer a:hover {
  color: #000;
}

.footer-content {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.footer-text {
  flex: 2;
  max-width: 66.66%;
  padding-left: 8px;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-text p {
  margin: 0;
  white-space: normal; /* Allow wrapping naturally */
}

.footer-note {
  color: #888;
  font-size: 12px;
  margin-top: 10px;
}

.footer-images {
  flex: 1;
  max-width: 33.33%;
  padding-left: 8px;
  padding-right: 8px;
  display: flex;
  flex-direction: row; /* Change from column to row */
  gap: 15px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 15px;
}

.footer-images img {
  max-height: 50px;
  width: auto;
  display: block;
}

.accordion {
  margin-top: 20px;
}

.accordion-title {
  background: #ededed6d;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 15px;
  border-left: 4px solid maroon;
  border-bottom: 1px solid darkred;
  border-radius: 6px ;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  display: flex;
}

.title-text {
  text-align: left;
  margin-right: auto;
  font-family: "Courier New", Courier;
  font-weight: 400;
  color: #000;
}
.accordion-title:hover {
  background-color: #e0e0e0;
}

.accordion-content {
  display: none;
  padding: 10px 0;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-title .arrow {
  transition: transform 0.3s ease;
}

.accordion-item.active .arrow {
  transform: rotate(90deg);
}

.accordion-content p {
  font-size: 15px;
  color: #555;
  padding-left: 15px;
  padding-right: 15px;
}

.accordion-item {
  margin-bottom: 15px;
}

.toggle {
  font-size: 20px; /* Size of the plus/minus symbol */
  margin-left: 10px;
  color: darkred;
}

.accordion-item.active .toggle {
  font-size: 20px;
}

 
/* RESOURCES MENU TABS */

.tabs-section {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

/* Tabs container */
.tabs-buttons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  text-align: left;
}

/* Individual buttons — styled but not renamed */
.tab-button {
  background-color: #eee;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: 
    background-color 0.3s ease, 
    color 0.3s ease, 
    transform 0.2s ease;
}

/* Hover effect */
.tab-button:hover {
  background-color: #ddd;
  color: maroon;
  transform: translateY(-1px);
}

/* Active tab */
.tab-button.active {
  background-color: maroon;
  color: white;
  box-shadow: 0 4px 10px rgba(128, 0, 0, 0.2);
}

/* Content spacing */
.tabs-content {
  margin-top: 20px;
}

/* Tab pane behavior — controlled by JS */
.tab-pane {
  display: none;
  text-align: left;
}

.tab-pane.active {
  display: block;
}

/* Responsive (optional) */
@media (max-width: 600px) {
  .tabs-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .tab-button {
    width: 100%;
    text-align: left;
  }
}

.about-text h1, .about-text h2 {
  font-size: 28px;
  color: #222;
  margin-top: 20px;
  margin-bottom: 10px;
}
.about-text h3, .about-text h2 {
  border-bottom: 2px solid #ddd;
  padding-bottom: 6px;
}

.about-text a {
  color: darkred;
  text-decoration: none;
}

.about-text a:hover {
    text-decoration: underline;
    color: #555;
}
.intro-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.intro-block {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
}

.intro-block img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.intro-block h3 {
  margin: 15px 0 10px;
  font-size: 18px;
  color: maroon;
}

.intro-block p {
  padding: 0 15px 20px;
  font-size: 15px;
  color: #555;
}
pre {
  background: #f5f5f5;
  padding: 10px;
  overflow-x: auto;
  font-size: 14px;
  border-left: 4px solid maroon;
}
.geDiagramContainer svg {
  padding-top: 40px !important;  /* Adjust the margin or padding */
}
#ontology a {
  color: maroon;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#ontology a:hover {
  color: darkred;
  text-decoration: none;
}

#ontology a:visited {
  color: #660033;
}

.text-justify code {
  font-family: 'Courier New', Courier;
  color:rgb(97, 97, 97) ;
}

.text-justify {
  font-family: 'Roboto', sans-serif;
  line-height: 1.4em;
}
.text-justify a:hover {
  color: darkred;
}

.team-section {
  font-family: 'Roboto', sans-serif;
  margin-top: 2rem;
}

.team-member {
  border-left: 4px solid darkred;
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.team-member h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: darkred;
}

.team-member .role {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.25rem;
  color: #444;
}

.team-member .description {
  font-size: 0.875rem;
  color: #555;
  margin-top: 0.25rem;
}

.team-collab {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  border-top: 1px solid #ccc;
  padding-top: 1rem;
}

.team-collab a {
  color: #000000d2;
  text-decoration: none;
}

.team-collab a:hover {
  text-decoration: underline;
}

.profile-link {
  margin-left: 0.5rem;
  color: #555;
  font-size: 0.85rem;
}

.profile-link:hover {
  color: #b30000;
}

.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
  max-width: 100%;
}

.related-articles,
.upcoming-events {
  flex: 1 1 45%;
  background: white;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 0.5em;
  border-radius: 12px;
  box-shadow: 0 24px 20px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  border-top: solid 2px darkred;
}

.related-articles h4,
.upcoming-events h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  font-family: 'Courier New', Courier, monospace;
  color: darkred;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-articles h4 i,
.upcoming-events h4 i {
  font-size: 1.1rem;
  color: darkred;
}

.related-articles ul,
.upcoming-events ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles li a,
.upcoming-events li a {
  text-decoration: none;
  color: #444;
  transition: color 0.2s ease;
}

.related-articles li a:hover,
.upcoming-events li a:hover {
  text-decoration: underline;
  color: darkred;
}

.related-articles li,
.upcoming-events li {
  margin-bottom: 1.2rem;
  line-height: 1.5;
  font-size: 14px;
}

.upcoming-events li strong {
  color: #222;
}

.ref-link {
    color: rgb(165, 48, 48);
    text-decoration: underline;
    cursor: pointer;
}

.references {
    font-family: Georgia, serif;
    line-height: 1.6;
    margin-top: 2em;
    border-top: 1px solid #ccc;
    padding-top: 1em;
}

.references p {
    margin: 0.5em 0;
    text-indent: -1.5em;
    padding-left: 1.5em;
    font-size: 14px;
    color: #9c9c9c;
}

.references a {
    color: #9c9c9c;
    text-decoration: none;
}

.references a:hover {
    text-decoration: underline;
    color: darkred;
}

.onto-access {
    font-family: "Roboto";
    margin-top: 2em;
    border-top: 1px solid #ccc;
    padding-top: 1em;
}

.onto-access p {
    font-size: 16px;
    color: #555;
    line-height: 1.4em;
    text-align: justify;
}

.onto-access p a {
  color: darkred !important;        /* Override maroon */
  text-decoration: none !important; /* Remove underline */
}

.onto-access p a:hover,
.onto-access p a:focus {
  color: #555 !important;        /* Slightly darker on hover */
  text-decoration: underline !important;
}


.case-study-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 15px;
  margin: 30px 0;
}

.case-tile {
  position: relative;
  height: 250px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  max-width: 250px;
}

.case-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.4s ease;
}

.case-tile:hover {
  transform: scale(1.02);
}

.case-tile:hover .case-overlay {
  opacity: 0; /* Hide the overlay on hover */
}

.case-tile:hover .case-bg {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

.case-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(70, 70, 70, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255, 255, 255);
  font-family: "Courier New", Courier, monospace;
  font-size: 20px;
  text-align: center;
  border-radius: 5px;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.case-title {
  position: relative;
  width: 100%;
  padding: 0 10px;
  margin: 0;
  font-weight: 600;
  font-size: 24px;
}

.case-accordion {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.6s ease;
}

.case-accordion.active {
  max-height: 2000px; /* adjust as needed */
  opacity: 1;
  margin-top: 20px;
}

.case-accordion-content {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 10px 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: 'Roboto', sans-serif;
  color: #333;
  /* Remove max-width and centering */
  width: 100%;
  margin: 10px 0;
  box-sizing: border-box;
}

.case-accordion-content p {
  margin-bottom: 16px;
  text-align: justify;
  font-size: 15px;
  line-height: 1.6;
}

.case-accordion-content code {
  background-color: #f0f0f0;
  color: #2c3e50;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.95em;
}

.case-accordion-content i {
  font-style: italic;
  color: #555;
}

.case-accordion.active .case-accordion-content {
  max-height: 2000px; /* or enough to show your content */
  opacity: 1;
  margin-top: 20px;
}

.toggle-graph {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 10px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.toggle-graph:hover {
  background-color: #555;
}

#thesaurus code {
  background-color: #f0f0f0;
  color: #2c3e50;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.95em;
}

#thesaurus li {
  line-height: 1.7;
}

#ontology code {
  background-color: #f0f0f0;
  color: #2c3e50;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.95em;
}

.citation {
  padding: 1px 15px;
  margin-right: 40px;
  margin-left: 10px;
  margin-top: 10px;
  border-left: 3px solid rgb(99, 99, 99);
  border-radius: 5px;
  background-color: #fafafa;
}