/* General body styling */
body {
    font-family: 'Roboto', sans-serif; /* Clean and modern font */
    background-color: #f4f4f4; /* Light background color */
    color: #333;
    margin: 10px auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes full height of the screen */
}

/* Header styling */
header {
    background-color: #003366; /* Navy blue header */
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header {
    background-color: #003366; /* Navy blue header */
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); /* Keep the text shadow for contrast */
    text-align: center;
    background-color: #003366; /* Navy blue header */
    color: #FFF; /* White text color */
    animation: fadeInScale 1.5s ease-out; /* Apply animation */
}
/* Define the fadeInScale animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


header nav ul {
   list-style: none;
   padding: 1rem 2rem;
   margin: 0;
   text-align: center;
   background-color: #002855; /* Navy */
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
   gap: 1rem;
   border-radius: 12px;
   box-shadow: 0 4px 12px rgb(0 40 90 / 0.25);
   margin-bottom: 2rem;
   max-width: 960px;
   margin-left: auto;
   margin-right: auto;
    
}

header nav ul li {
    display: inline-block;
    margin-right: 30px;
    position: relative; /* Added position for dropdown */
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

header nav ul li a:hover {
    text-decoration: underline;
    color: #ffcc00; /* Yellow */
    background-color: #001f4d;
    outline-offset: 3px;
    outline: 3px solid #ffcc00;
}

header nav ul li a.active {
    font-weight: bold;
}

/* Style for the Resources dropdown */
nav ul li {
    position: relative;
}

nav ul li .sub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f1f1f1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    list-style: none;
    margin: 0;
    width: 200px;
    z-index: 10; /* Ensure the sub-nav is above the hero section */
}

nav ul li:hover .sub-nav {
    display: block;
}

nav ul li .sub-nav li {
    padding: 8px 20px;
}

nav ul li .sub-nav li a {
    color: #333;
    text-decoration: none;
    display: block;
}

nav ul li .sub-nav li a:hover {
    background-color: #d32f2f;
}

.sub-nav.show {
    display: block !important;
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
#research-center-logo {
    position: relative;
    top: 0;
    left: 0;
    height: 120px;
    margin-bottom: 10px;
    max-width: 100%;
}
#uni-logo {
    position: relative;
    top: 0;
    left: 0;
    height: 100px;
    margin-left: 20px; /* Adjust the space as needed */
    margin-bottom: 10px;
    max-width: 100%;
}

@media (max-width: 768px) {
    #research-center-logo {
        height: 80px;
    }
}

@media (max-width: 480px) {
    #research-center-logo {
        height: 60px;
    }
}

/* Social Media Links Styling */
.social-links a {
    padding: 0.2rem 0.2rem;
    margin: 0 5px;
    display: inline-block;
    background-color: white;
}

.social-links img {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* Hero Section */
#hero {
    background-image: url('assets/images/icons/hero-background.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    position: relative;
    z-index: 0; /* Ensure the hero section doesn't block navigation */
}

/* Optional: Add overlay to enhance text visibility */
#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 0; /* Place overlay behind content */
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1; /* Ensure content stays on top of the overlay */
    max-width: 800px;
    text-align: center;
    color: white;
    opacity: 0; /* Initially hidden */
    animation: fadeInUp 1.5s ease-out forwards; /* Apply fade-in with upward slide */
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards; /* Delay for heading */
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards; /* Delay for paragraph */
}

.hero-content .btn-primary {
    background-color: #003366; /* Navy button color */
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.2rem;
    text-decoration: none;
    margin-top: 30px;
    display: inline-block;
    transition: background-color 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards; /* Delay for button */
}

.hero-content .btn-primary:hover {
    background-color: #0057b8; /* Lighter blue on hover */
}

/* Animation for fade-in and upward sliding */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
nav ul.active {
    display: block;
    z-index: 15; /* Ensure the mobile menu is visible */
}

@media (max-width: 768px) {
    nav ul {
        display: none; /* Hide menu by default on mobile */
    }

    nav ul.active {
        display: block;
    }
}


/* About Us Section Styles */
#about-us {
    padding: 60px 20px;
    background-color: #f0f4f8; /* Light background for contrast */
    opacity: 0; /* Initially hidden */
    animation: fadeInUp 1s ease-out forwards; /* Apply animation */
}

#about-us h2 {
    font-size: 2.5rem;
    text-align: center;
    color: white; /* White color */
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); /* Keep the text shadow for contrast */
    text-align: center;/* Align text to the center */
    background-color: #003366; /* Navy Blue Color */
    padding: 10px; /* Optional: Add some padding to make the background appear more spacious around the text */
    border-radius: 5px; /* Optional: Rounded corners for a more modern look */
    animation: fadeInScale 1.5s ease-out forwards; /* Apply animation with 'forwards' to retain the final state */
}

/* Define the fadeInScale animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Aim, Mission, Objectives Section Styles */
.aim, .mission, .objectives {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    padding: 30px;
    margin-bottom: 30px;
    opacity: 0; /* Initially hidden */
    animation: fadeInUp 1s ease-out forwards; /* Apply animation */
    transition: all 0.3s ease-in-out; /* Smooth hover effect */
}

/* Hover Effect for Sections */
.aim:hover, .mission:hover, .objectives:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Elevate the card on hover */
}

/* Add a slight delay for each section to create a staggered effect */
.aim {
    animation-delay: 0.3s;
}

.mission {
    animation-delay: 0.6s;
}

.objectives {
    animation-delay: 0.9s;
}

/* Define the slide-up and fade-in effect */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Start with a slight downward position */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End at the original position */
    }
}

/* Style for Heading (Aim, Mission, Objectives,...) */
h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); /* Keep the text shadow for contrast */
    text-align: left; /* Align text to the left */
    background-color: #fff5b3; /* Light gray background */
    color: #003366; /* Dark blue text color */
    padding: 10px; /* Optional: Add some padding to make the background appear more spacious around the text */
    border-radius: 5px; /* Optional: Rounded corners for a more modern look */
    animation: fadeInScale 1.5s ease-out forwards; /* Apply animation with 'forwards' to retain the final state */
}

/* Define the fadeInScale animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Style for Paragraphs */
.aim p, .mission p, .objectives p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555; /* Slightly dark grey for text */
    margin-bottom: 20px;
}

/* Style for Objectives List */
.objectives ul {
    list-style-type: disc;
    margin-left: 20px;
    font-size: 1.1rem;
}

.objectives li {
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.6;
}

/* Button Styling (if needed for any future buttons) */
.btn-primary {
    background-color: #003366;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0057b8; /* Lighter blue on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    #about-us {
        padding: 40px 15px;
    }
    .aim, .mission, .objectives {
        padding: 20px;
    }
    #about-us h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.6rem;
    }
    .vision p, .mission p, .objectives p {
        font-size: 1rem;
    }
}

/* Introduction Section */
#introduction {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
    opacity: 0; /* Initial opacity for fade-in */
    animation: fadeIn 2s ease-in-out forwards; /* Fade-in animation */
}

#introduction .content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

#introduction h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #003366;
    opacity: 0; /* Initially hidden */
    animation: slideUp 1.5s ease-in-out 0.5s forwards; /* Slide-up animation with delay */
}

#introduction p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.8;
    opacity: 0; /* Initially hidden */
    animation: fadeInUp 2s ease-in-out 1s forwards; /* Fade-in-up animation with delay */
}

/* Fade-in animation for the entire section */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Slide-up animation for the heading */
@keyframes slideUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fade-in-up animation for the paragraphs */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styling for smaller screens */
@media (max-width: 768px) {
    #introduction h2 {
        font-size: 28px;
    }

    #introduction p {
        font-size: 16px;
    }
}



/* Links */
a {
    color: #003366;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
button {
    background-color: #003366;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #002244;
}

/* Contact Info Styling */
/* Style for the Contact Information Section */
.contact-info {
    background-color: #ffffff; /* White background for contrast */
    border-radius: 8px; /* Rounded corners for a soft appearance */
    padding: 25px 20px; /* Adding padding for spacing */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    margin-bottom: 30px; /* Space below the section */
}
.contact-info h3 {
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); /* Keep the text shadow for contrast */
    text-align: center;
    background-color: #003366; /* Navy blue header */
    color: #FFF; /* White text color */
    animation: fadeInScale 1.5s ease-out; /* Apply animation */
}
/* Define the fadeInScale animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.contact-info ul {
  list-style-type: none;
  padding: 0;
  text-align: center;
}

.contact-info li {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.contact-info strong {
  color: black; 
}

.contact-info a {
  color: black;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #003366; /* Navy Blue on hover */
}

/* Location Styling */
.location h3 {
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); /* Keep the text shadow for contrast */
    text-align: center;
    background-color: #d32f2f;
    color: #FFF; /* White text color */
    animation: fadeInScale 1.5s ease-out; /* Apply animation */
}
/* Define the fadeInScale animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.location p {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #666;
  text-align: center;
}

/* Location Card Styling */
.location-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 40px;
}

.location-card strong {
  font-size: 1.5em;
  display: block;
  margin-bottom: 10px;
  color: #003366; /* Navy Blue */
}

.location-card p {
  font-size: 1.1em;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.google-map {
  margin-bottom: 20px;
}

.google-map iframe {
  width: 100%;
  height: 300px;
  border-radius: 8px;
}

.view-map-button {
  display: inline-block;
  background-color: #003366; /* Navy Blue */
  color: #fff;
  padding: 10px 20px;
  font-size: 1em;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
}

.view-map-button:hover {
  background-color: #457b9d; /* Lighter Navy Blue on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  h2 {
    font-size: 2em;
  }

  .contact-info ul {
    padding-left: 20px;
  }

  .location-card {
    margin: 20px 0;
  }

  .google-map iframe {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .contact-info li {
    font-size: 1em;
  }

  .view-map-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
  }

  h2 {
    font-size: 1.8em;
  }

  .locations p {
    font-size: 1em;
  }
}

/* Team Section Styles */
#team {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

#team h2 {
  text-align: center;
  font-size: 28px;
  color: #003366;
  margin-bottom: 20px;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.team-member {
  background-color: white;
  width: 280px;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.team-member img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.team-member h3 {
  font-size: 20px;
  color: #003366;
  margin-top: 10px;
}

.team-member .role {
  font-size: 16px;
  color: #777;
  margin-bottom: 10px;
}

.team-member .bio {
  font-size: 14px;
  color: #333;
}

.team-member:hover {
  transform: translateY(-10px);
}

/* Publications Section Styles */
#recent-publications {
  padding: 50px 20px;
  background-color: #f7f7f7; /* Lighter background color for a clean look */
}

#recent-publications h2 {
  font-size: 32px;
  color: #003366;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700; /* Make the title bolder */
  text-transform: uppercase; /* Make the title stand out more */
}

#recent-publications p {
  font-size: 18px;
  color: #555;
  text-align: center;
  margin-bottom: 40px;
}

#recent-publications ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* List Item Styling */
#recent-publications ul li {
  background-color: #ffffff;
  width: 80%;
  max-width: 600px;
  padding: 20px;
  margin: 15px 0;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Soft, rounded shadow */
  transition: transform 0.3s, box-shadow 0.3s ease; /* Smooth hover transition */
  text-align: center; /* Center the text inside each list item */
}

#recent-publications ul li a {
  text-decoration: none;
  font-size: 20px;
  color: #003366;
  font-weight: 600;
  display: inline-block;
  padding: 10px 20px;
  background-color: #f1f1f1; /* Light gray background for the link button */
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#recent-publications ul li a:hover {
  background-color: #005e8e; /* Dark blue on hover */
  color: #fff; /* White text on hover */
  text-decoration: none; /* Remove underline on hover */
}

/* Hover Effect for List Item */
#recent-publications ul li:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* Enhanced shadow for hover */
}

/* Responsive Styles */
@media (max-width: 768px) {
  #recent-publications h2 {
    font-size: 28px;
  }

  #recent-publications p {
    font-size: 16px;
  }

  #recent-publications ul li {
    width: 90%; /* Wider list items on smaller screens */
    padding: 15px;
  }

  #recent-publications ul li a {
    font-size: 18px; /* Smaller font size for links */
  }
}

@media (max-width: 480px) {
  #recent-publications h2 {
    font-size: 24px; /* Adjust heading size on mobile */
  }

  #recent-publications p {
    font-size: 14px; /* Smaller text for mobile devices */
  }

  #recent-publications ul li {
    width: 100%; /* Full-width list items on mobile */
  }

  #recent-publications ul li a {
    font-size: 16px; /* Adjust link font size for mobile */
  }
}

/* CSS for Enhanced Download Button */
  .download-button {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
  }

  .download-button .button-text {
    margin-right: 10px;
  }

  .download-icon {
    font-size: 20px;
  }

  .download-button:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
  }

  .download-button:active {
    background-color: #004085;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
  }

  .download-button:focus {
    outline: 3px solid #0056b3;
  }

  /* Responsive design for smaller screens */
  @media (max-width: 600px) {
    .download-button {
      flex-direction: column;
      align-items: flex-start;
    }
    .download-button .button-text {
      margin-right: 0;
      margin-bottom: 5px;
    }
  }

/* Newsletters Section Styling */
#newsletters {
  max-width: 960px;
  margin: 2em auto;
  padding: 2em;
  background-color: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Segoe UI', sans-serif;
}

/* Section Title */
#newsletters h2 {
  font-size: 2em;
  color: #2c3e50;
  margin-bottom: 0.5em;
}

/* Intro Paragraph */
#newsletters > p {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 1.5em;
}

/* List of Newsletters */
#newsletters ul {
  list-style: none;
  padding-left: 0;
}

#newsletters li {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1em;
  margin-bottom: 1.2em;
  transition: background-color 0.3s, box-shadow 0.3s;
}

#newsletters li:hover {
  background-color: #eef6ff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Download Button */
#newsletters .download-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background-color: #003366;
  color: white;
  padding: 0.6em 1em;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s;
}

#newsletters .download-button:hover {
  background-color: #0056b3;
}

/* Button Text and Icon */
#newsletters .button-text {
  margin-right: 0.5em;
}

#newsletters .download-icon {
  font-size: 1.2em;
}


/* Gallery Section */
#picture-album {
  margin: 40px auto;
  padding: 20px;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#picture-album h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 10px;
}

#picture-album p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

/* Image Gallery Styling */
.picture-album-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.picture-album-images img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.picture-album-images img:hover {
  transform: scale(1.05);
}

/* Mobile Responsive Styling */
@media (max-width: 768px) {
  #picture-album h2 {
    font-size: 1.5rem;
  }

  #picture-album p {
    font-size: 0.9rem;
  }
}

/* Video Gallery Styling */
#videos {
  margin: 40px auto; /* Centering the gallery */
  padding: 20px; /* Adding padding inside the container */
  text-align: center; /* Centering text */
  background-color: #f9f9f9; /* Light background */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  max-width: 1200px; /* Max width for large screens */
}

/* Video Section Heading */
#videos h2 {
  font-size: 2rem; /* Larger font for title */
  color: #333; /* Dark text for better visibility */
  margin-bottom: 10px; /* Spacing below the heading */
}

/* Paragraph under the Heading */
#videos p {
  font-size: 1rem; /* Standard size for description */
  color: #666; /* Slightly lighter text color */
  margin-bottom: 20px; /* Space between the description and the video items */
}

/* Flexbox Layout for Video Items */
.recent-videos {
  display: flex; /* Flexbox for responsive layout */
  flex-wrap: wrap; /* Allow items to wrap onto new lines */
  justify-content: center; /* Center items */
  gap: 20px; /* Space between video items */
}

/* Individual Video Card */
.video-item {
  width: 100%; /* Full width for small screens */
  max-width: 360px; /* Limit the size for larger screens */
  background-color: white; /* White background for the card */
  padding: 15px; /* Padding inside each card */
  border-radius: 10px; /* Rounded corners for the card */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Shadow for depth */
  text-align: center; /* Center content in the card */
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth transition for hover effect */
}

/* Hover Effect on Video Cards */
.video-item:hover {
  transform: translateY(-5px); /* Lift the card slightly */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* Enhance the shadow */
}

/* Styling for Videos */
.video-item video {
  width: 100%; /* Make video take full width of the card */
  height: auto; /* Maintain aspect ratio */
  border-radius: 8px; /* Rounded corners for videos */
  outline: none; /* Remove any outline on focus */
}

/* Caption or Description Under Each Video */
.video-item p {
  margin-top: 10px; /* Space above the description */
  font-size: 0.95em; /* Slightly smaller text */
  color: #555; /* Lighter color for description */
}

/* Mobile Styles */
@media (max-width: 768px) {
  #videos {
    padding: 15px; /* Less padding on smaller screens */
  }

  #videos h2 {
    font-size: 1.6rem; /* Slightly smaller title for smaller screens */
  }

  #videos p {
    font-size: 0.95rem; /* Smaller text for better fit */
  }

  .video-item {
    padding: 10px; /* Less padding in the cards */
    max-width: 100%; /* Make each video card full-width */
  }

  .video-item p {
    font-size: 0.9em; /* Smaller text for mobile */
  }

  .recent-videos {
    flex-direction: column; /* Stack the video items vertically on small screens */
    align-items: center; /* Center them */
  }
}

/* Styles for Very Small Screens (Phones) */
@media (max-width: 480px) {
  #videos h2 {
    font-size: 1.4rem; /* Smaller title */
  }

  #videos p {
    font-size: 0.9rem; /* Smaller description text */
  }

  footer {
    font-size: 0.9rem; /* Slightly smaller footer text */
    padding: 15px; /* Padding for the footer */
  }
}

/* News Section Container */
#news.container {
  max-width: 900px;
  margin: 40px auto 60px;
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  font-family: 'Roboto', sans-serif;
  color: #002b5c;
}

/* Section Title */
#news h2 {
  text-align: center;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 12px;
  color: #002b5c;
}

/* Section Intro Paragraph */
#news p {
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 30px;
  color: #444;
}

/* Each News Item Box */
.news-item {
  border: 1px solid #ccc;
  background-color: #f9fbff;
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 25px;
  box-sizing: border-box;
}

/* News Item Title */
.news-item h3 {
  margin: 0 0 10px;
}

/* Link for News Title */
.news-item h3 a {
  color: #002b5c;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

/* PDF icon styling */
.news-item h3 a i.fa-file-pdf {
  color: #d9534f;
  font-size: 1.4rem;
}

/* Hover effect on news links */
.news-item h3 a:hover {
  text-decoration: underline;
  color: #004080;
}

/* News description paragraph */
.news-item p {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 12px;
  color: #222;
}



/* Opportunities Section Styling */
#opportunity {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

/* Hover effect for container */
#opportunity:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

 /* Section Heading */
#opportunity h2 {
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); /* Keep the text shadow for contrast */
    text-align: center;
    background-color: #ffcc00;
    color: #FFF; /* White text color */
    animation: fadeInScale 1.5s ease-out; /* Apply animation */
}
/* Define the fadeInScale animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* Paragraph Styling */
#opportunity p {
   font-size: 1.1rem;
   color: #333; /* Dark gray for easy reading */
   margin-bottom: 20px;
}
/* Email Link Styling */
#opportunity a {
    color: #0066cc; /* Lighter Navy Blue */
    text-decoration: none;
    font-weight: bold;
}

#opportunity a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
#opportunity h2 {
   font-size: 2rem;
}

#opportunity {
   padding: 20px;
}

#opportunity p {
   font-size: 1rem;
 }
}

/* Projects Section */
#projects {
  padding: 60px 20px;
  background-color: #f4f7fa;
}

/* Section Title */
#projects .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: left;
  color: #002b5c; /* Navy Blue */
  margin-bottom: 50px;
  letter-spacing: 1px;
}

/* Outcome-Based Education Intro */
.obe-intro {
  background-color: #e6f0ff;
  border-left: 6px solid #002b5c;
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.obe-intro h3 {
  color: #002b5c;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* Project Card Layout */
.project-card {
  background-color: #ffffff;
  border-left: 5px solid #002b5c;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 60px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  font-size: 1.6rem;
  color: #003366;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
}

.project-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 15px;
}

.project-card ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.project-card ul li {
  color: #444;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Responsive Image Grid for Projects */
.project-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

/* Individual Images */
.project-image-grid img {
  width: 100%;
  height: 250px; /* Set a fixed height for uniformity */
  object-fit: cover; /* Ensures the image covers the space without stretching */
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

/* Image helper */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Layout */
@media (max-width: 768px) {
  #projects {
    padding: 40px 15px;
  }

  .project-card {
    padding: 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .project-card h3,
  .obe-intro h3 {
    font-size: 1.5rem;
  }

  .project-card p,
  .project-card ul {
    font-size: 0.95rem;
  }

  .project-image-grid {
    grid-template-columns: 1fr;
  }
}


/* Footer */
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 15px 0;
    position: relative;
    width: 100%;
    margin-top: auto;
}

footer a {
    text-decoration: none;
    color: #ffcc00;
}

footer a:hover {
    color: #d32f2f;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        margin: 10px 0;
    }
}




/* Construction Section Styles */
.construction-section {
  background-color: #f9f9f9;
  color: #ffffff;           /* White text for contrast */
  text-align: center;
  padding: 60px 20px;
  font-family: Arial, sans-serif;
  position: relative;
}

.construction-section .gear {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  background: url('../images/icons/gear-icon.png') no-repeat center;
  background-size: contain;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.construction-section h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #003366;
}

.construction-section p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  color: #3b4c68;
}

.construction-section b {
  color: #003366; /* Emphasized text still in white for consistency */
}

/* Simple spinning animation for gear icon */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
