/**
* Template Name: Arsha - v2.2.0 (Modified for RIT Style)
*/

/* --------------------------------------------------------------
# Global Settings & Colors
-------------------------------------------------------------- */
:root {
  /* RIT.ac.in Color Scheme (Dark Navy Blue) */
  --rit-blue: #032E3F;
  --rit-hover: #197B86;
  --text-dark: #333333;
  --bg-light: #f9f9f9;

  /* Retaining your image color for accent elements if needed */
  --image-theme-color: #c08081;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #444;
  background-color: #fff;
  overflow-x: hidden;
  margin: 0;
}

a {
  color: var(--rit-blue);
  transition: 0.3s;
}

a:hover {
  color: var(--rit-hover);
  text-decoration: none;
}

/* --------------------------------------------------------------
# Typography
-------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Open Sans", sans-serif;
  /* Clean Academic Font */
  color: var(--rit-blue) !important;
}

.section-title h2 {
  font-weight: 700;
  text-transform: uppercase;
}

/* --------------------------------------------------------------
# Main Header (Branding)
-------------------------------------------------------------- */
.logo-custom {
  max-height: 100px;
  /* Adjusted for balanced look */
  width: auto;
}

#header-branding {
  background: var(--rit-blue);
  /* Top: 20px | Right: 0 | Bottom: 80px (Big space for overlap) | Left: 0 */
  padding: 20px 0 60px 0;
  border-bottom: none;
  position: relative;
  /* Setup for stacking order */
}

.branding-text h1 {
  margin-top: 20px;
  font-family: "Open Sans", sans-serif;
  font-size: 26px;
  /* Adjusted to match official scale */
  font-weight: 700;
  /* Bold for the College Name */
  text-transform: uppercase;
  margin: 0;
  color: #ffffff !important;
  letter-spacing: 0.5px;
}

.branding-text h2 {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  /* Smaller location text */
  font-weight: 400;
  /* Normal weight (not bold) */
  color: #e0e0e0 !important;
  /* Slightly off-white for hierarchy */
  margin-top: 15px;
  text-transform: none;
  /* RIT often uses Title Case for location, not all caps */
}

/* --------------------------------------------------------------
# Navigation Menu (RIT Style)
-------------------------------------------------------------- */
/* Menu Items */

/* --- Navigation Menu (RIT Exact Style) --- 
.navbar-custom {
  background-color: var(--rit-blue) !important; /* #0D5060 
  border-top: 1px solid rgba(255,255,255,0.1); /* Subtle separator line 
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}*/

.navbar-custom {
  background-color: #ffffff !important;
  width: 90%;

  /* CHANGED: Set top to 0 so it touches the ceiling when scrolling */
  position: sticky;
  top: 0;

  /* Keep the negative margin to pull it into the header initially */
  margin: -46px auto 0px auto;

  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 0 5px;
  position: relative;
  z-index: 1000;
  /* Increased z-index to ensure it stays on top of everything */
}

/* Menu Items */
.navbar-custom .navbar-nav .nav-link {
  color: var(--rit-blue) !important;
  /* Dark Blue Text */
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  padding: 14px 18px !important;
  border-right: 1px solid #eee;
  /* Light Grey separator */
  transition: all 0.3s;
}

/* Remove right border for the last item so it looks clean */
.navbar-custom .navbar-nav .nav-item:last-child .nav-link {
  border-right: none;
}

/* Hover & Active State - Darker background */
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .active>.nav-link {
  background-color: var(--rit-hover);
  /* Darker Teal */
  color: #fff !important;
}

/* --- Dropdown Menu (Solid, No Gap) --- */
.dropdown-menu {
  background-color: var(--rit-blue);
  border: none;
  border-top: 3px solid var(--rit-hover);
  /* Accent line on top */
  border-radius: 0;
  /* Square corners like official site */
  margin-top: 0 !important;
  /* IMPORTANT: Removes the gap to attach perfectly */
  padding: 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  color: #ffffff !important;
  padding: 10px 20px;
  font-size: 12px;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

/* Dropdown Hover - Blue text, gray background (Classic Academic Style) */
.dropdown-item:hover {
  background-color: var(--rit-hover);
  color: var(--rit-blue);
  /* Text turns blue */
  padding-left: 20px;
  /* No movement, keeps it professional */
}

/* Mobile Toggler */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin: 5px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Make submenu appear on hover (Desktop) - Standard RIT Behavior */
@media (min-width: 992px) {
  .nav-item.dropdown:hover>.dropdown-menu {
    display: block;
    animation: none;
    /* RIT site is snappy, usually no slow fade */
  }
}

@media (max-width: 991px) {
  #header-branding {
    padding-bottom: 20px;
    /* Remove extra space on mobile */
  }

  .navbar-custom {
    margin: 10px auto;
    /* Remove negative pull on mobile */
    width: 95%;
  }
}

/* --- Add this to the bottom of style.css --- */

/* This class activates when scrolling down */
.navbar-scrolled {
  position: fixed !important;
  /* Forces it to stay at the top */
  top: 0;
  left: 0;
  width: 100% !important;
  /* Becomes a full rectangle band */
  margin-top: 0 !important;
  /* Removes the negative overlap margin */
  border-radius: 0 !important;
  /* Removes rounded corners */
  z-index: 9999;
  /* Ensures it sits over everything */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  /* Stronger shadow for visibility */
  animation: fadeInDown 0.3s;
  /* Smooth transition */
}

@keyframes fadeInDown {
  from {
    top: -50px;
    opacity: 0;
  }

  to {
    top: 0;
    opacity: 1;
  }
}

/* --- Update 2: Fix News Bar Appearance --- */
.main-news {
  /* CHANGED: Use the variable blue color */
  background: var(--rit-hover) !important;

  /* CHANGED: White text to be visible on the dark blue background */
  color: #ffffff !important;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 400;

  /* CHANGED: Increased padding for better height and visibility */
  padding: 4px 0;
}

/* Optional: Ensure the marquee text inside inherits the white color */
.main-news marquee {
  color: #ffffff !important;
}

/* --------------------------------------------------------------
# Carousel
-------------------------------------------------------------- */
/* --- Optimized Responsive Carousel --- */
.carousel-item {
  height: 70vh;
  /* Standard height for Desktop */
  background-color: #222;
  /* Darker background looks better during transitions */
}

.carousel-item img {
  width: 100%;
  height: 100%;
  /* 'cover' ensures the image fills the area. 
     'object-position: center' keeps the middle of the photo visible */
  object-fit: contain;
  object-position: center;
}

/* Mobile Adjustments (Phones) */
@media (max-width: 768px) {
  .carousel-item {
    height: 50vh;
    /* Smaller height so it doesn't take the whole screen */
    min-height: 250px;
  }
}

/* Extra Small (Tiny Phones) */
@media (max-width: 480px) {
  .carousel-item {
    height: 20vh;
    min-height: 150px;
  }

  .carousel-caption h5 {
    font-size: 12px;
    /* Shrink text so it fits */
    background: rgba(0, 0, 0, 0.5);
    /* Add semi-transparent bg for readability */
    padding: 5px;
  }
}

/* --------------------------------------------------------------
# Vision heading underline
-------------------------------------------------------------- */
.vis-head {
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  /* Smaller location text */
  font-weight: 800;
  /* Normal weight (not bold) */
  color: var(--rit-blue);
  /* Slightly off-white for hierarchy */
  margin-top: 5px;
  margin-bottom: 0px;
  text-transform: none;
  /* RIT often uses Title Case for location, not all caps */
}

/* --------------------------------------------------------------
# Components
-------------------------------------------------------------- */
.icon-box {
  background: #fff;
  padding: 30px;
  border: 1px solid #eee;
  border-radius: 4px;
  transition: 0.3s;
  text-align: center;
  margin-bottom: 20px;
}

.icon-box:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  border-color: var(--rit-blue);
}

.icon-box .dephead {
  margin-top: 15px;
  font-weight: 700;
  color: var(--rit-blue);
}

.table-custom {
  border-color: #ddd;
}

.table-custom th {
  background-color: var(--rit-blue);
  color: white;
  border-color: var(--rit-blue);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  #header-branding {
    text-align: center;
  }

  .logo-custom {
    max-height: 80px;
    margin-bottom: 10px;
  }

  .branding-text h1 {
    font-size: 18px;
  }

  .branding-text h2 {
    font-size: 11px;
  }

  .navbar-custom .navbar-nav .nav-link {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .carousel-item {
    height: 35vh;
  }
}

/* --------------------------------------------------------------
# Additional Custom Styles
-------------------------------------------------------------- */

/* --- Mobile View Fix --- */
@media (max-width: 991px) {
  .navbar-custom {
    /* Remove the 'transparent' forcing and use a standard background 
       when the menu is collapsed to prevent click-through issues */
    background-color: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    width: 95%;
    margin: 10px auto;
    padding: 5px;
  }

  /* Ensure the toggler is always on top */
  .navbar-toggler {
    background-color: var(--rit-blue);
    border: none;
    z-index: 1001;
  }

  /* Style the actual list so it doesn't overlap the button */
  .navbar-collapse {
    background-color: #ffffff;
    padding: 10px;
    border-top: 1px solid #eee;
    margin-top: 5px;
  }
}

/* --- Language Switcher Beautiful Refinement --- */
.lang-switcher {
  font-size: 14px;
  color: #e0e0e0 !important;
  /* Muted white for the pipe '|' */
  font-family: 'Inter', 'Roboto', "Open Sans", sans-serif;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.lang-switcher a {
  color: #e0e0e0 !important;
  text-decoration: none !important;
  /* Removes underline */
  font-weight: 500;
  padding: 0 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Hover State Fix */
#header-branding .lang-switcher a:hover {
  color: var(--rit-hover) !important;
  transform: translateY(-1px);
  /* Subtle lift effect */
  text-decoration: none !important;
  /* Ensures underline stays off on hover */
}

/* Responsive adjustment for beauty */
@media (max-width: 768px) {
  .lang-switcher {
    margin-bottom: 15px;
  }
}

/* ---------------------------------------------
   Approved Programme Section
--------------------------------------------- */

.programme-heading {
  background: var(--rit-blue) !important;
  color: #ffffff !important;
  padding: 14px 25px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Table Styling */
/* --- Enhanced Table Styling --- */
.programme-table {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-family: 'Inter', sans-serif;
  /* Cleaner, more modern font */
  border: none;
}

.programme-table thead th {
  background-color: var(--rit-blue) !important;
  /* Matching your primary theme */
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  padding: 16px;
}

.programme-table tbody td {
  font-size: 15px;
  color: #444;
  padding: 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

/* Specific styling for the 'Intake' column to make it pop */
.programme-table tbody td:last-child {
  font-weight: 700;
  color: var(--rit-hover);
}

.programme-table tbody tr:hover {
  background-color: #f8fdff;
  transition: background-color 0.2s ease;
}

/* --- Fixed Department Image Sizes --- */
.icon-box img {
  width: 100%;
  aspect-ratio: 16 / 10;
  /* Forces all images to the same rectangular shape */
  object-fit: cover;
  /* Crops the image to fill the box without stretching */
  border-radius: 4px;
  /* Optional: matches your icon-box corners */
  margin-bottom: 5px;
}

.icon-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  /* Ensures all boxes in a row are the same height */
}

/* --- Footer Styling to match RIT Blue Theme --- */
#footer {
  background: var(--rit-blue);
  /* Dark Navy Blue Background */
  padding: 0 0 30px 0;
  color: #fff;
  font-size: 14px;
}

#footer .footer-top {
  padding: 20px 0 10px 0;
  background: var(--rit-blue) !important;
  /* Light grey background for the content area */
}

#footer .footer-top .footer-contact h4,
#footer .footer-top .footer-links h4 {
  font-size: 16px;
  font-weight: bold;
  color: #fff !important;
  /* Using the RIT Blue for headings */
  position: relative;
  padding-bottom: 12px;
}

#footer .footer-top .footer-links a {
  color: #fff !important;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

#footer .footer-top .footer-links a:hover {
  color: var(--rit-hover);
  text-decoration: none;
}

#footer .footer-bottom {
  padding-top: 10px;
  padding-bottom: 10px;
  color: #fff !important;
  background: var(--rit-blue) !important;
  /* Matching the Header exactly */
}

#footer .copyright {
  float: center;
}

/* Specific override for footer headings to ensure visibility */
#footer .footer-top .footer-contact h4,
#footer .footer-top .footer-links h4 {
  color: #ffffff !important;
}

/* Mobile-specific override: ensure footer stays rit-blue on small screens */
@media (max-width: 768px) {

  footer#footer,
  #footer,
  #footer .footer-top,
  #footer .footer-bottom,
  #footer .container,
  #footer .container-fluid {
    background: var(--rit-blue) !important;
    background-color: var(--rit-blue) !important;
    color: #fff !important;
  }

  /* If any inner blocks have white backgrounds, force them transparent */
  #footer .container,
  #footer .container * {
    background: transparent !important;
  }
}

/* Ensure programme-heading preserves RIT blue and white text on mobile */
@media (max-width: 768px) {
  .programme-heading {
    background: var(--rit-blue) !important;
    color: #ffffff !important;
    display: inline-block !important;
    padding: 12px 18px !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
  }
}

/* =========================================
   IMPORTED STYLES FROM Klmyn1 (Header/Slider)
   ========================================= */

/* Basic Setup from Klmyn1 */
:root {
  --primary-color: #333;
  --secondary-color: #555;
  --accent-color: #d4a373;
  /* Gold/skin tone compatible with brown */
  --notice-bg: #cc3300;
  /* Dark Brown */
  --notice-text: #ffffff;
  --menu-bg: #ffffff;
  --menu-text: #000000;
  --footer-bg: #222;
  --footer-text: #fff;
  --table-header-bg: #cc3300;
  --table-header-text: #fff;
}

/* Header */
.main-header {
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  /* Ensure it uses full width if container restricts it */
  padding-left: 10px;
  /* Reduce padding to move logo left */
  padding-right: 10px;
}

.container.header-flex {
  /* Override standard container padding if necessary */
  padding-left: 5px;
}

.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: -15px;
  /* Pull logo further left */
}

.main-heading-img {
  max-height: 60px;
  /* Reduced from 80px */
  width: auto;
}

/* Three Layer Animated Menu */
.main-nav {
  margin-left: auto;
}

.menu {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
}

.menu>li {
  position: relative;
  padding: 5px 8px;
  /* Reduced padding further */
}

.menu a {
  text-decoration: none;
  color: var(--menu-text);
  font-weight: 500;
  font-size: 0.75rem;
  /* Reduced font size further */
  transition: color 0.3s;
  display: block;
  white-space: nowrap;
  /* Ensure text and arrow stay on one line */
}

.menu a:hover {
  color: var(--accent-color);
}

/* Submenu L1 */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  width: 250px;
  /* Increased slightly for longer names */
  list-style: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border-top: 3px solid var(--notice-bg);
  padding: 0;
  z-index: 1001;
}

.menu>li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  position: relative;
}

.submenu li a {
  padding: 10px 15px;
  /* Adjusted padding */
  border-bottom: 1px solid #f0f0f0;
  display: block;
  /* changed from flex to block to handle wrapping better */
  color: #333;
  font-size: 0.75rem;
  /* Matching main menu font size */
  white-space: normal;
  /* Allow wrapping */
  line-height: 1.4;
  /* Improve readability for two lines */
}

/* Submenu L2 */
.submenu-level-2 {
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  width: 200px;
  list-style: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  border-top: 3px solid var(--notice-bg);
  padding: 0;
}

.submenu li:hover .submenu-level-2 {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Notice Band */
.notice-band {
  background-color: var(--notice-bg);
  color: var(--notice-text);
  padding: 10px 0;
  text-align: center;
  font-size: 0.95rem;
}

.notice-label {
  font-weight: bold;
  color: #ffd700;
  margin-right: 10px;
}

/* Image Slider */
.slider-container {
  position: relative;
  width: 100%;
  height: 500px;
  background-color: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Slider Controls */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 2;
  transition: background 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
  background: rgba(255, 255, 255, 0.6);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Slider Caption */
.slide-caption {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(51, 00, 00, 0.5);
  padding: 15px 30px;
  border-radius: 5px;
  text-align: center;
  max-width: 80%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.slide-caption h3 {
  color: #fff !important;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 0;
}

/* Language Switcher in New Header */
.header-lang-switcher {
  text-align: right;
  font-size: 0.85rem;
  margin-top: 5px;
}

.header-lang-switcher a {
  color: #555;
  text-decoration: none;
  margin: 0 5px;
  font-weight: 600;
  cursor: pointer;
}

.header-lang-switcher a:hover {
  color: var(--accent-color);
}

/* =========================================
   MOBILE RESPONSIVENESS & FULL WIDTH
   ========================================= */

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary-color);
  margin-left: 20px;
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
    /* Show hamburger on mobile */
    margin-left: auto;
    /* Push to ringht */
    color: #333;
    /* Ensure dark color against white header */
  }

  .main-nav {
    display: none;
    /* Hide default desktop menu */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav.mobile-active {
    display: flex;
    /* Show when active */
  }

  .menu {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }

  .menu>li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .menu a {
    font-size: 1rem;
    /* Larger font for mobile tap */
    white-space: normal;
    /* Allow wrapping */
  }

  /* Submenus on Mobile */
  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    /* Hidden by default, toggled via simple JS or CSS hover fallback */
    border-top: none;
    padding-left: 20px;
    background: #f9f9f9;
    transition: none;
  }

  .menu>li:hover .submenu {
    display: block;
    /* Show on hover/tap */
  }

  /* Adjust Logo for Mobile */
  .logo-container {
    margin-left: 0;
  }

  .header-lang-switcher {
    display: none;
    /* Hide language switcher in header for mobile to save space, or move into menu */
  }

  /* Full width containers adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Specific Mobile (Phone) Styles for Carousel */
@media (max-width: 768px) {
  .slider-container {
    height: 250px;
    /* Reduced height for mobile */
  }

  .slide-caption {
    bottom: 10%;
    padding: 10px 15px;
    max-width: 90%;
    /* Coffee brown with high opacity */
    background: rgba(111, 78, 55, 0.95);
  }

  .slide-caption h3 {
    font-size: 1rem;
    /* Reduced font size */
  }

  .main-heading-img {
    max-height: 40px;
    /* Reduced to 40px for mobile */
    max-width: 75%;
    /* Ensure it doesn't crowd the menu button */
  }
}

/* Modal and Read More Styles */
.t-justify {
  text-align: justify;
}

a[data-toggle="modal"]:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.modal-header {
  background: var(--rit-blue);
  color: #fff;
}

.modal-header .modal-title {
  color: #fff !important;
  width: 100%;
  text-align: center;
}

.modal-header .close {
  color: #fff;
  opacity: 0.8;
}

.modal-header .close:hover {
  opacity: 1;
}

/* Principal Message Box */
.principal-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 15px;
  /* Rounded corners */
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  /* Attempt to fill the column height */
  display: flex;
  flex-direction: column;
}

.principal-img-small {
  max-width: 150px;
  /* Readuced size */
  height: auto;
  border-radius: 50%;
  /* Optional: make it circular or just rounded square? User didn't say circular, just "reduce size". Rounded corners on box requested. I'll keep image square-ish but smaller */
}

.principal-text-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Pushes read more to bottom if there's space, or just flows */
}

/* Programme Table Alignment */
.programme-table th:first-child,
.programme-table td:first-child {
  text-align: left !important;
  /* Override bootstrap text-center */
  padding-left: 15px;
}

/* --------------------------------------------------------------
# EOA Page Styles
-------------------------------------------------------------- */

/* Breadcrumbs Fix */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  /* Remove numbers */
  padding: 0;
  margin: 0;
}

.breadcrumbs ol li+li {
  padding-left: 10px;
}

.breadcrumbs ol li+li::before {
  display: inline-block;
  padding-right: 10px;
  color: #444;
  content: "/";
}

/* Vertical Menu Styling */
.eoa-menu-container {
  background-color: #032E3F !important;
  /* Footer Background Color */
  padding: 15px;
  border-radius: 5px;
}

.eoa-menu-title {
  color: #ffffff !important;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.eoa-link {
  background-color: transparent;
  color: #ffffff !important;
  /* White text */
  font-weight: 500;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  padding: 12px 15px;
}

.eoa-link:hover {
  color: #197B86 !important;
  /* Hover Color */
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  padding-left: 20px;
  /* Slight movement */
}

.eoa-link.active {
  background-color: #197B86 !important;
  /* Active Color */
  color: #ffffff !important;
  border-color: transparent;
  font-weight: 700;
}

/* Icon styling */
.eoa-link i {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.eoa-link:hover i,
.eoa-link.active i {
  color: #ffffff;
}
/* --------------------------------------------------------------
# Department Page Styles
-------------------------------------------------------------- */
.dept-sidebar {
    background-color: var(--rit-blue); /* Match footer color */
    color: #fff;
    min-height: 100vh;
    padding: 0;
}

.dept-menu-item {
    display: block;
    padding: 15px 20px;
    color: #eee;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    font-size: 0.8rem;
}

.dept-menu-item:hover, .dept-menu-item.active {
    background-color: var(--rit-hover);
    color: #fff;
    padding-left: 25px; /* Slide effect */
}

.dept-content {
    padding: 40px;
}

.staff-card {
    border: 1px solid #eee;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.staff-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10%;
    border: 3px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.staff-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.profile-link {
    margin-top: 10px;
    display: inline-block;
    font-size: 0.9rem;
}

