/* nav */

.navbar {  
  display: flex;
  align-items: center;
  justify-content: center; /* pushes first logo left, second logo right */
  /* background-color: #2E7D32; */
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a); /* Dark charcoal gradient */

  padding: 10px 20px;
  font-family: 'Segoe UI', sans-serif;
  height: 70px;
  gap: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0 70px; /* centers the nav links between logos */
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #FFD700;
}

.logo img {
  height: 100%;
  width: 100%;
  margin-top: 8px;
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
  }
}



/*endregion  */
.index--section {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* .welcome-section{
  margin-top: 10px;
} */
/* Make Swiper full width and center aligned */
.mySwiper {
  margin-top: 70px;
  width: 100%;
  /* height: 350px; */
  height: calc(45vh - 70px);
  overflow: hidden;
  border-radius: 0 !important;
}

/* Style each slide */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa; /* Light gray or any color you prefer */
}

/* Image inside slides */
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-fit: contain; */
  border-radius: 0 !important;
}

/* Pagination bullets */
.swiper-pagination-bullet {
  background: #999;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #007bff;
}

/* Navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  /* color: #007bff; */
  color: white;
  font-weight: bold;
  transition: transform 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.2);
}



#organizational-unit-data-top {
    width: 100vw;
    height: auto;
    text-align: center;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#organizational-unit-data-top a {
    display: inline-block;
    padding: 1.2rem 1.5rem;
    transition: 500ms ease;
    text-decoration: none;
    color: #4d5765;
    font-size: 12px;
    font-family: "Jost", sans-serif;
    transition: background-color 0.6s ease;
}

#organizational-unit-data-top a.active,
#organizational-unit-data-top a:hover {
    background-color: #4d576547;
}

#organizational-unit-data-background {
    width: 100%;
}

/*
    +------------------------------------------------------------------------------+
    |                                                                              |
    |   +-------------------------------+ +-----+  +-----+                         |
    |   |                               | |     |  |     |                         |
    |   +-------------------------------+ +-----+  +-----+                         |
    |                                                                              |
    +------------------------------------------------------------------------------+
*/
#organizational-unit-data-bottom {
    width: 100vw;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    list-style: none;
}

/*
    +------------------------------------------------------------------------------+
    |             // HERE                                                          |
    |   +-------------------------------+ +-----+  +-----+                         |
    |   |                               | |     |  |     |                         |
    |   +-------------------------------+ +-----+  +-----+                         |
    |                                                                              |
    +------------------------------------------------------------------------------+
*/
#organizational-unit-data-bottom>li {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 10px;
}

/*
    +------------------------------------------------------------------------------+
    |                                                                              |
    |   +-------------------------------+ +-----+  +-----+                         |
    |   |           // HERE             | |     |  |     |                         |
    |   +-------------------------------+ +-----+  +-----+                         |
    |                                                                              |
    +------------------------------------------------------------------------------+
*/
#organizational-unit-data-bottom>li>a {
    text-decoration: none;
    font-weight: bolder;
    color: black;
}

/*
    +------------------------------------------------------------------------------+
    |                                         // HERE                              |
    |   +-------------------------------+ +-----+  +-----+                         |
    |   |                               | |     |  |     |                         |
    |   +-------------------------------+ +-----+  +-----+                         |
    |                                                                              |
    +------------------------------------------------------------------------------+
*/  
#organizational-unit-data-bottom-departments {
    display: flex;
    list-style: none;
    position:relative;
    align-items:center;
}

#organizational-unit-data-bottom-departments > div {
    position: absolute;
    top: 140%;
    z-index: 5;
    background-color: white;
    opacity:0%;
    pointer-events: none;
    transition: 250ms ease;
    display: flex;
    flex-direction: column;
}

#organizational-unit-data-bottom-departments > p{
    font-family: "Poppins";
}

#organizational-unit-data-bottom-departments > div.active{
    opacity:100%;
    pointer-events: all;
}

/*
    +------------------------------------------------------------------------------+
    |                                                                              |
    |   +-------------------------------+ +-----+  +-----+                         |
    |   |                               | | HERE|  | HERE|                         |
    |   +-------------------------------+ +-----+  +-----+                         |
    |                                                                              |
    +------------------------------------------------------------------------------+
*/
#organizational-unit-data-bottom-departments > div >  a {
    font-family: "Jost", sans-serif;
    text-decoration: none;
    padding: 10px 20px;
    color: #4d5765;
      background-color: white;
    display: inline-block;
    white-space:nowrap;
}

#organizational-unit-data-bottom-departments > div >  a:hover {
    color: #000;
}

@media screen and (orientation: portrait) {
    #organizational-unit-data-top {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    #organizational-unit-data-background {
        /* position: absolute; */
        left: 0%;
        width: 210%;
        margin: unset;
        margin-left: -55%;
        /* transform: translateX(-26%); */
        overflow: hidden;
    }

    #organizational-unit-data-bottom {
        text-align: center;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    #organizational-unit-data-bottom-departments {
        gap: 0.5rem;
        flex-direction: column;
        width: 100%;
    }

    #organizational-unit-data-bottom>li {
        width: 100%;
        padding: unset;
    }

    #organizational-unit-data-bottom>li>a {
        padding: unset;
        width: 100%;
    }

    #organizational-unit-data-bottom>li>a,
    #organizational-unit-data-bottom-departments > div >  a {
        background-color: #4d576547;
        color: #2c333d;
        text-decoration: none;
        padding: 1rem;
        width: 100%;
    }
}

@media screen and (orientation: portrait) and (max-width: 250px) {
    #organizational-unit-data-top {
        grid-template-columns: 1fr;
    }

    #organizational-unit-data-top a {
        padding: 0.5rem 1.5rem;
    }
}


/* Responsive design */
@media screen and (max-width: 768px) {
  .swiper {
    max-width: 100%;
  }
}


/* welcome intro */
.welcome-intro-ccj {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a); /* Dark charcoal gradient */
    color: #f5f5f5; /* Light text for contrast */
    text-align: center;
    padding: 60px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 30px;
    /* border-radius: 10px; */
}
.welcome-intro-ccj h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #ffffff; /* Pure white heading */
}
.welcome-intro-ccj p {
    max-width: 800px;
    margin: auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e0e0e0; /* softer gray for readability */
}
@media (max-width: 768px) {
    .welcome-intro-ccj h1 { font-size: 2rem; }
    .welcome-intro-ccj p { font-size: 1rem; }
}

/* vmg wrapper */
.wrp {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
}

/* Academic-style notes */
.wrp .about {
  position: relative;
  width: 80%;
  background: #2e2e2e; /* Dark gray */
  padding: 25px 20px;
  border-radius: 8px;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: rotate(-1.5deg);
  font-family: 'Segoe UI', sans-serif;
  color: #f2f2f2;
}

.wrp .about:nth-child(even) {
  transform: rotate(1.5deg);
  background: #1f1f1f; /* even darker */
}

.wrp .about:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.7);
}

/* Headings */
.about h2 {
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff; /* white heading */
  font-size: 1.5rem;
  border-bottom: 2px solid #555;
  padding-bottom: 8px;
}

/* Paragraphs */
.about p,
.inner p,
.inners p {
  text-align: justify;
  margin-bottom: 15px;
  font-weight: 400;
  font-size: 1rem;
  color: #e0e0e0;
}

/* Inner sticky grid */
.inner-about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.inner,
.inners {
  position: relative;
  background-color: #3a3a3a; /* darker gray */
  padding: 15px;
  border-radius: 8px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  transform: rotate(-1deg);
  color: #f0f0f0;
}

.inner:nth-child(even),
.inners:nth-child(even) {
  background-color: #2b2b2b; /* even darker */
  transform: rotate(1.5deg);
}

.inner:hover,
.inners:hover {
  transform: translateY(-4px) rotate(0deg);
}

/* Section headings */
.inner h3,
.inners h3 {
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.1rem;
  text-decoration: underline;
}

/* Core values section */
.about .para {
  margin-bottom: 30px;
  font-size: 1rem;
  padding-bottom: 6px;
  color: #f0f0f0;
}

/* Pushpin style (muted burgundy on dark) */
.wrp .about::before,
.inner::before,
.inners::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-20deg);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 30% 30%, #5a1a1a, #2a0a0a); /* darker burgundy */
  border-radius: 50%;
  box-shadow:
    inset -2px -2px 5px rgba(255, 255, 255, 0.3),
    inset 1px 1px 5px rgba(0, 0, 0, 0.4),
    0 3px 6px rgba(0, 0, 0, 0.5);
  z-index: 3;
  border: 1px solid #1a0000;
}

.wrp .about::after,
.inner::after,
.inners::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%; 
  transform: translateX(-50%) rotate(-20deg);
  width: 3px;
  height: 12px;
  background: linear-gradient(to bottom, #666, #222);
  border-radius: 1px;
  z-index: 2;
}





/* highlights */

.highlights-section {
  padding: 40px 20px;
  background: linear-gradient(to bottom right, #111111, #222222); /* black gradient */
  font-family: 'Segoe UI', sans-serif;
  color: #f5f5f5; /* light text */
}

.highlights-section h2 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #ffcc00; /* gold highlight */
}

.highlights-section .intro {
  text-align: center;
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  color: #dddddd;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

@media (max-width: 768px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }
}

.highlight-box {
  background: #1e1e1e;
  border-left: 6px solid #ffcc00; /* gold accent */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease; 
}

.highlight-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.highlight-box h3 {
  margin-top: 0;
  color: #ffcc00;
  font-size: 1.3em;
}

.highlight-box p {
  margin: 10px 0 0;
  font-size: 1.05em;
  line-height: 1.6;
  color: #e0e0e0;
}




/* news */

.news-achievements {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  /* padding: 20px; */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  font-family: 'Segoe UI', sans-serif;
}

.news-achievements .column {
  flex: 1 1 45%;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
}

.news-achievements h2 {
  margin-top: 0;
  font-size: 1.5em;
  border-bottom: 1px solid #111111;
  padding-bottom: 8px;
}

.news-achievements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each news item */
.news-achievements li {
  margin: 0;
}

/* Make the whole row a link */
.news-achievements li a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #111111;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-achievements li:last-child a {
  border-bottom: none;
}

/* Hover effects on the entire row */
.news-achievements li a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

/* Thumbnail (fixed size) */
.news-achievements .thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
  border: 2px solid white;
  transition: transform 0.3s ease;
}

/* Image zoom on hover */
.news-achievements li a:hover .thumb {
  transform: scale(1.1);
}


/* Section container */
.faculty-title {
  text-align: center;
  margin-bottom: 30px;
  font-family: 'Segoe UI', sans-serif;
}

.faculty-title h2 {
  font-size: 2.5em;
  color: #cc3300;
  margin-bottom: 10px;
}

.faculty-subtitle {
  font-size: 1.1em;
  color: #444;
  font-style: italic;
  margin-top: 0;
}

#faculty-and-staff {
  padding: 30px 20px;
  /* background: linear-gradient(to right, #fff5e5, #ffe5e5); */
   /* soft orange-red */
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

#faculty-and-staff h2 {
  font-size: 2em;
  /* color: #cc3300; */
  color: #3a3a3a;
  margin-bottom: 30px;
}

/* Grid layout */
#faculty-and-staff-data {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Individual faculty card */
.faculty-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease;
}

.faculty-card:hover {
  transform: translateY(-5px);
}

/* Faculty image */
.faculty-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.faculty-card:hover img {
  transform: scale(1.05);
}

/* Overlay info box */
.faculty-info {
  position: absolute;
  /* bottom: 0; */
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4); 
  color: white;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(100%); /* hidden below */
}

/* Show when the entire card is hovered */
.faculty-card:hover .faculty-info {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* slide up */
  bottom: -40%;
}


/* On hover, darken background slightly */
.faculty-card:hover .faculty-info {
  background: rgba(0, 0, 0, 0.6);
}

.faculty-name {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0 0 5px;
}

.faculty-position {
  font-size: 1em;
  font-style: italic;
  margin: 0;
}

/* Make sure image fits nicely */
.faculty-card img {
  max-height: 320px;
  object-fit: cover;
}

.faculty-desc {
  font-size: 0.95em;
  line-height: 1.4;
}

/* Responsive for smaller devices */
@media screen and (max-width: 600px) {
  #faculty-and-staff h2 {
    font-size: 1.5em;
  }

  .faculty-info {
    padding: 15px 10px;
  }

  .faculty-name {
    font-size: 1.1em;
  }

  .faculty-desc {
    font-size: 0.9em;
  }
}






/* resources */
.resources-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
  padding: 20px;
}

.resource-card {
  border: 2px solid #2c2c2c;
  border-radius: 10px;
  padding: 20px;
  background-color: #fffaf5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.resource-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.resource-card li {
  margin: 8px 0;
  font-size: 1rem;
}

.resource-card a {
  color: #2c2c2c;
  text-decoration: none;
  font-weight: 500;
}

.resource-card a:hover {
  text-decoration: underline;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}




/* programs */

.our-program-section {
    max-width: 1400px; /* Increased width */
    margin: 10px auto;
    /* padding: 30px; */
    font-family: 'Segoe UI', sans-serif;
}

.our-program-title {
    font-size: 2.5rem; /* Bigger title */
    font-weight: bold;
    color: orangered;
    text-align: center;
    /* margin-bottom: 30px; */
    margin: 0 auto;
    border-bottom: 4px solid orangered;
    display: inline-block;
    padding-bottom: 8px;
}

.our-program-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.our-program-item {
    background: #fff8f4;
    border: 1px solid #ffd2b3;
    border-left: 8px solid orangered; /* Thicker left border */
    padding: 20px; /* More padding */
    margin-bottom: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.our-program-item:hover {
    background: #ffe3d3;
    transform: translateY(-3px);
}

/* 🔹 Text styling stays consistent */
.our-program-name {
    font-size: 1.5rem; /* Larger program name */
    font-weight: bold;
    color: #cc3300;
    margin-bottom: 8px;
}

.our-program-definition {
    font-size: 1.1rem; /* Bigger paragraph text */
    color: #333;
    line-height: 1.6;
}

.no-program {
    text-align: center;
    font-style: italic;
    color: #888;
}

/* 🔹 Make entire card clickable */
.our-program-link {
    text-decoration: none;
    color: inherit;
}

.our-program-link:hover .our-program-name {
    text-decoration: underline;
    color: orangered;
}

.short-name {
    font-weight: normal;
    font-size: 1.1rem;
    color: #888;
}

.program-duration,
.entry-requirements {
    font-size: 1rem; /* Slightly bigger */
    color: #555;
    margin: 6px 0;
}

.career-list {
    margin: 6px 0;
    padding-left: 22px;
    font-size: 1rem;
    color: #333;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: orangered;
    font-size: 1rem;
}


/* organizational chart */

.chart-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.chart-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chart-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #ccc;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.chart-image:hover {
    transform: scale(1.02);
}