html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

body {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: normal;
  line-height: 23px;
  color: #3b033f;
  background: #fff;
}

strong {
  font-weight: bold;
}

sup {
  font-size: large;
}

header {
  background-color: #5b2c83;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  flex-wrap: wrap;
  height: 100px;
}

.institution {
  margin-left: 100px;
  font-family: "Open Sans", sans-serif;
  font-size: 30px;
}

.institution p {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  margin-top: 5px;
}

.admission-info {
  margin-right: 100px;
  color: #f6c90e;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* --- Main Navigation Bar --- */
.main-navigation {
  background-color: #5b2c83;
  width: 100%;
  z-index: 1000;
  position: relative;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.nav-toggle {
  display: none; /* Hidden on desktop */
}

.nav-links {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav-menu {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 15px 18px;
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

.dropdown-toggle .fa-angle-down {
  margin-left: 5px;
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: #ffffff;
  padding: 0;
  list-style: none;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  border: 1px solid #ddd;
  z-index: 1001;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: #333333;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.dropdown-content li a:hover {
  background-color: #7ab700;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.page_title3 {
  position: relative;
  width: 100%;
  padding: 20px 0;
  border-top: 2px solid #eee;
  border-bottom: 1px solid #eee;
  background-color: #f4f4f4;
  box-sizing: border-box;
}

.page_title3 h1 {
  margin: 0;
  font-weight: 300;
  color: #672d87;
  text-transform: none;
  font-size: 35px;
}

.page_title3 .pagenation {
  font-size: 12px;
}

.title {
  left: 0;
  font-family: "Roboto", sans-serif;
  font-size: 35px;
  font-weight: bold;
  color: #333;
  margin: 20px 0;
}

.container1 {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.pagenation a {
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  color: #7ab700;
}

.main-content-wrapper {
  display: flex;
  margin-top: 20px;
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

@media (max-width: 1200px) {
  .container1 {
    padding: 0 15px;
  }
  .main-content-wrapper {
    padding: 0 15px;
  }
}

.sidebar {
  width: 100%;
  border-right: none;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}
.content-area {
  width: 100%;
  margin-left: 0;
}
.slideshow-container {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .institution {
    margin-left: 0;
    font-size: 24px;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .institution p {
    font-size: 12px;
  }
  .admission-info {
    margin-right: 0;
    margin-top: 5px;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  .nav-container {
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
    color: white;
    border: none;
    font-size: 24px;
    border-radius: 4px;
    padding: 10px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #5b2c83;
  }

  .nav-links.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
  }

  .nav-link {
    text-align: left;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    background-color: #4a236a;
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown.active .fa-angle-down {
    transform: rotate(180deg);
  }

  .page_title3 h1 {
    font-size: 28px;
    text-align: center;
  }
  .pagenation {
    text-align: center;
    margin-top: 10px;
  }
  .container1 {
    margin-left: auto;
    margin-right: auto;
  }

  .slideshow-container {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (max-width: 576px) {
  .institution {
    font-size: 22px;
  }
  .admission-info {
    font-size: 0.7rem;
  }
  .nav-link {
    font-size: 16px;
  }
  .page_title3 h1 {
    font-size: 24px;
  }
  .sidebar a {
    padding: 8px 10px;
    font-size: 13px;
  }
  .content-area h2 {
    font-size: 1.5em;
  }
  .content-area .description {
    font-size: 1em;
  }
  .slideshow-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-thumbnail {
    height: 90px;
  }
}
.event-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  width: 100%;
  max-width: 1400px;
  margin: 20px auto 50px auto;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
/*.event-container h1 {
  color: #3b033f;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}*/
.one h1,h2
{
    color: #3b033f;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}
.event-list-item {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  min-height: 150px;

}

.event-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}
.event-list-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #5b2c83;
  margin-bottom: 10px;
  line-height: 1.4;
}



.event-list-item p {
  font-size: 0.95rem;
  color: #666;
}
.event-list-item .date {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.85rem;
  color: #888;
  text-align: right;
}

.section-title {
  color: #3b033f;
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 25px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

body.modal-open > *:not(.modal):not(script) {
  filter: blur(5px) brightness(0.8);
  transition: filter 0.3s ease-in-out;
}

/* Make the default black backdrop transparent to see the blurred page */
.modal-backdrop.in {
  opacity: 0.2;
  background-color: #000;
}

/* --- Modal Positioning --- */
.modal-dialog {
  margin-top: 5vh; /* Position modal near the top of the viewport */
  margin-bottom: 5vh;
}

/* --- Modal Content Styling --- */

.modal-content {
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  border: none;
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  padding: 15px 25px;
}

.modal-header .modal-title {
  color: #3b033f;
  font-weight: 600;
  font-size: 1.5rem;
}

.modal-header .close {
  font-size: 2.2rem;
  font-weight: 300;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  margin-top: -2px;
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-body {
  padding: 20px 30px;
  max-height: calc(100vh - 210px); /* Calculate max height for scrollability */
  overflow-y: auto;
}

/* Carousel Image Styling */
#carouselInner .item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #f0f0f0;
}

/* Meta Info (Category & Date) */
.event-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5px;
  margin-top: 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  color: #555;
}

#eventCategory {
  font-weight: 600;
  color: #5b2c83;
  font-size: 1rem;
}

#eventDate {
  font-style: italic;
  color: #777;
  font-size: 0.9rem;
}

/* Description Styling */
.event-description {
  margin-top: 20px;
}

.event-description p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.modal-footer {
  text-align: center;
  border-top: 1px solid #e9ecef;
  padding: 15px;
}

@media (max-width: 1200px) {
  .event-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}


#imageModal .item { text-align: center; }

#imageModal .carousel-inner {
  position: relative;
  background: linear-gradient(to right, rgba(0,0,0,0.4), transparent 20%, transparent 80%, rgba(0,0,0,0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

#imageModal .carousel-inner img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}
/*
.event-list-item {
    display: flex;
    flex-direction: column;
    height: 100%; 
}
/*
/*
.event-list-item img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
*/
/*
.event-card-body {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}*/


