/**
 * @file
 * Subtheme specific CSS.
 */
.field--name-field-media-video-file video {
  width: 100%;
  object-fit: cover;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 1rem 0 2rem 0;
}

.stats-card {
  /* padding: 25px;
  border-radius: 12px;*/
  /*border: 2px solid #3ea76a;
  text-align: center;*/
  background: #fff;

  text-align: center;
  border: solid 1px #4caf50;
  padding: 2rem 1rem;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.1019607843);

  border-radius: 25px;
}
.stats-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stats-value {
  font-size: 32px;
  font-weight: 700;
  color: #a58255;
}

.stats-label {
  font-size: 16px;
  color: #444;
  margin-top: 8px;
}

.stats-section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #007367;
}
/*user:create new_admin --mail="email@example.com" --password="Pass@123"*/
/*.landingpage_label em{
   display:none;
}*/
.landingpage_label .node__content {
    margin-top: 0px !important;
}
.hero-video-background {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: #000;
}

.hero-video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1;
  object-fit: cover;
}

  .hero-video-background video {
    height: 100%;
  }

  .hero-video-content {
    position: absolute;
    z-index: 2;
    color: white;
    text-align: center;
    padding-top: 150px;
    top: 0;
    display: none;
  }

  /*home page program finder start*/
  .landingpage_label .block-views-blockprograme-finder-block-1 {
    background-color: #007367 !important;
    padding: 2rem 2rem;
    color: #fcfcfc;
  }
  .landingpage_label .block-views-blockprograme-finder-block-1 h2 {
    margin-bottom: 24px;
    margin-left: 287px;
    color: #fcfcfc;
  }
  .home-program-finder .js-form-item {
    margin-right: 15px;
    margin-bottom: 10px;
  }
  .home-program-finder .js-form-submit {
    background: #fcfcfc;
    border: 0;
    outline: 0;
    color: #007367;
    padding: 11px 23px;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.2;
    transition: 0.3s ease;
  }

  .home-program-finder .js-form-submit:hover {
    color: #fff;
    background: #a58255;
    transition: 0.3s ease;
  }

  .home-program-finder {
    color: #fcfcfc;
    box-sizing: border-box;
    max-width: 1309px;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
  }

  /*
home page descipline styling*/

  .landingpage_label .block-views-blockdisciplines-view-block-1 h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0;
    color: #007367;
    padding: 20px;
    margin-left: 294px;
  }

  .home-descipline-section {
    padding: 2rem;
  }
  .home-descipline-section .views-field-name .field-content {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    justify-content: left;
    align-items: start;
    display: flex;
    position: absolute;
    top: 225px;
    left: 15px;
  }
  .home-descipline-section .views-field-nid {
    font-size: 0.75rem;
    margin: 0;

    display: flex;
    justify-content: left;
    align-items: center;
    line-height: 1.2;
    margin-bottom: 5px;
    color: #fff;
    position: absolute;
    top: 205px;
    margin-left: 15px;
  }

  .home-descipline-section .field--type-image img {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  /*program finder page*/
  .custom-program-finder .views-view-responsive-grid__item img {
    border-radius: 20px;
  }

  .custom-program-finder .views-field-title a {
    font-family: "FormaDJRDisplay Medium";
    font-size: var(--fs-16);
    line-height: 1.4;
    color: #303630;
    margin-bottom: 4px;
    font-weight: var(--fw-500);
    letter-spacing: 5%;
  }
  .custom-program-finder .views-field-field-school a,
  .custom-program-finder .views-field-field-desciplines a,
  .custom-program-finder .views-field-field-program-level a {
    color: #303630;
    padding: 3px;
  }

  /* Accordion / details styling */
  .leadership-accordion {
    border: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
  }

  /* Summary header */
  .leadership-accordion > summary.leadership-category {
    list-style: none;
    margin: 0;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Remove default triangle on some browsers */
  .leadership-accordion > summary::-webkit-details-marker {
    display: none;
  }

  /* Add a simple indicator (you can replace with icon) */
  .leadership-accordion > summary::after {
    content: "+";
    font-weight: 700;
    margin-left: 12px;
  }
  .leadership-accordion[open] > summary::after {
    content: "−";
  }

  /* Content area */
  .leadership-wrapper {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
  }

  /* Left/right responsive layout */
  .leadership-left {
    flex: 1 1 60%;
  }
  .leadership-right {
    flex: 0 0 36%;
  }

  .leader-image img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Small screen adjust */
  @media (max-width: 700px) {
    .leadership-wrapper {
      flex-direction: column;
    }
    .leadership-right {
      order: -1;
    } /* show image first on small screens if you want */
  }

  /* --- 1. The Trigger Button (Bottom Right) --- */
  .filter-toggle-btn {
    position: relative;
    bottom: 30px;
    right: 30px;
    background-color: #004d40; /* Dark Green */
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 90; /* High enough to be on top */
    font-size: 16px;
  }

  .field--name-field-button {
    clear: both;
  }

/* SEARCH FILTERS  */

/* =========================================
   1. MODAL BASE STYLES (Hidden by default)
   ========================================= */
#filter-modal-overlay {
  display: none; /* Hidden */
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999; /* High Z-index */
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* =========================================
   2. ACTIVE STATE (The Fix)
   ========================================= */
/* We use the class 'filter-popup-active' to match your latest JavaScript.
   We use !important to force it open even if Drupal AJAX tries to hide it. */
body.filter-popup-active #filter-modal-overlay {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Also support the old class just in case JS cache is holding onto it */
body.filter-modal-open #filter-modal-overlay {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* =========================================
   3. MODAL CONTENT BOX
   ========================================= */
.filter-modal-content {
  background: #fff;
  padding: 30px;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 100000;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.close-modal {
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
}

/* =========================================
   4. SEARCH BAR & INPUT STYLES
   ========================================= */
.search-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.search-input-group {
  flex-grow: 1;
  position: relative;
  border-bottom: 2px solid #00665c;
  display: flex;
  align-items: center;
  max-width: 300px;
}

/* Hide the label */
.search-input-group label {
  display: none;
}

/* Input Field */
.search-input-group input[name="combine"] {
  width: 100%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1.2rem;
  padding: 10px 0;
  color: #333;
  outline: none;
}

/* Search Icon */
.search-submit-icon {
  background: none;
  border: none;
  color: #00665c;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 10px;
  margin-left: auto;
}

/* Filter Button */
.btn-filter-trigger {
  background-color: #004d40;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 45px;
}

/* Helper for nesting */
.search-input-group .form-item {
  margin-bottom: 0;
  display: flex;
  width: 100%;
}


/*faculty page starting*/
/* Responsive grid container */
.faculty-row .views-view-responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 16px;
}
.faculty-row .views-view-responsive-grid__item{
   display: flex;
  align-items: flex-start;
  flex: 1 1 calc(20% - 1rem);
  max-width: calc(20% - .5rem);
  min-width: 200px;
}

/* Card container */
.faculty-row .views-view-responsive-grid__item-inner {
  border: none;
  text-align: left;
  transition: transform .3s;
  cursor: default;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.faculty-row .views-view-responsive-grid__item-inner img:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Faculty photo */
.faculty-row .views-view-responsive-grid__item-inner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 12px;
}


/* Faculty name */
.faculty-row .views-view-responsive-grid__item-inner .views-field-title a {
    font-size: .9rem;
  color: #007367;
  font-weight: 700;
  margin-bottom: .4rem;
  text-decoration: none;
}

.faculty-row .views-view-responsive-grid__item-inner .views-field-title a:hover {
  text-decoration: underline;
}

/* Role, campus, school, department */
.faculty-row .views-view-responsive-grid__item-inner .views-field {
 

  font-family: "Forma DJR Display Regular";
  color: #303630;
  font-size: 14px;
  font-weight: 400 !important;
}

/* Department emphasized */
.faculty-row .views-view-responsive-grid__item-inner .views-field-field-department {
  font-weight: 600;
  color: #1a1a1a;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .faculty-row .views-view-responsive-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .faculty-row .views-view-responsive-grid__item-inner img {
    width: 120px;
    height: 120px;
  }
}

/*faculty page ending*/


/*events block start
*/
.eventsblcok .nav .nav-item button.active {
  background-color: transparent;
  color: var(--bs-danger) !important;
}
.eventsblcok .nav .nav-item button.active::after {
  content: "";
  border-bottom: 4px solid var(--bs-danger);
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -1px;
  border-radius: 5px 5px 0 0;
}
.eventsblcok .tileinnerbox {
  width: 100%;
  display: inline-block;
  margin-top: 40px;
}
.eventsblcok .event-card{
    background: url('https://www.gitam.edu/themes/gitam/assets/images/curve-bg.svg') no-repeat;

  background-size: auto;
  position: relative;
  padding: 16px 20px 25px 20px;
  width: calc(33.3333333333% - 16px);
  background-size: contain;
  margin: 0 16px 0 0;

  float: left;
  height: 262px;
}
 .eventsblcok .event-card .date-box {
  position: absolute;
  top: 7px;
  left: 0;
  padding: 10px 15px;
}
.eventsblcok .event-card .organizer {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 28px;
  text-align: right;
  color: #004740;
  display: flex;
  align-items: center;
  align-content: center;
  flex-direction: row;
  justify-content: flex-end;
}

.eventsblcok .event-card .organizer span {
  margin-right: 6px;
}
.eventsblcok .event-card h3 {
  font-size: 21px;
  color: #004740;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.eventsblcok .event-card .description {
  margin-top: 10px;
  color: #004740;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}
.eventsblcok .event-card .location {
  font-size: 1em;
  color: #004740;
  display: flex;
  margin-top: 10px;
}
.eventsblcok .event-card .location span {
  margin-right: 6px;
}
.eventsblcok .event-card img {
  width: 18px;
  height: 18px;
}
.eventsblcok .event-card .viewdetails {
  margin-top: 10px;
  font-size: 14px;
  background: #007367;
  padding: 9px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
}
.eventsblcok .event-card .register-link {
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 25px;
  position: absolute;
  bottom: 15px;
  right: 35px;
  font-weight: 800;
  font-size: 14px;
}
.eventsblcok .links {
  color: #007367;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: .1s ease-in;
 
  width: fit-content;
  margin-top: 1.5rem;
  font-weight: 500;
  font-family: "FormaDJRDisplay Medium" !important;


}
.eventsblcok .arrowup {
  background: url('https://www.gitam.edu/themes/gitam/assets/images/arrow-icon.svg') no-repeat;
  transition: .4s ease;
  width: 18px;
  height: 18px;
}



/* tabs css  */
/* --- Container --- */
.tab-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 30px;
  font-family: 'Segoe UI', sans-serif; /* Adjust to your site font */
}

/* --- Tab Navigation --- */
.tab-links {
  border-bottom: 2px solid #f1f1f1;
  background-color: #ffffff;
}

.tab-links ul {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  display: flex;
  gap: 30px; /* Spacing between tabs */
}

.tab-links li {
  margin: 0;
  padding: 0;
  position: relative;
}

.tab-links a.tab-trigger {
  display: block;
  text-decoration: none;
  padding: 20px 5px;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  transition: color 0.3s ease;
  position: relative;
}

/* Hover Effect */
.tab-links a.tab-trigger:hover {
  color: #0056b3; /* Primary Blue */
}

/* --- Active State (The Magic) --- */
.tab-links li.active a.tab-trigger {
  color: #0056b3;
}

/* Animated Underline for Active Tab */
.tab-links li.active::after {
  content: '';
  position: absolute;
  bottom: -2px; /* Pulls it down to overlap the container border */
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #0056b3;
  border-radius: 3px 3px 0 0;
}

/* --- Tab Content Area --- */
.tab-group {
  padding: 30px;
  background-color: #fafafa;
  min-height: 200px;
}

/* Functional CSS (Required) */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Wrapper Spacing --- */
.event-item {
  margin-bottom: 30px;
}

/* --- Card Container --- */
.event-card {
  display: flex;
  background: #ffffff;
  border: 1px solid #e0e0e0; /* Subtle border */
  border-radius: 8px; /* Soft corners */
  overflow: hidden; /* Keeps image inside rounded corners */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect: Lift card slightly */
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}

/* --- Image Section (Left) --- */
.event-image {
  flex: 0 0 35%; /* Takes up 35% of the width */
  max-width: 350px; /* Limit max width */
  min-height: 200px; /* Ensure height if image loads slowly */
  position: relative;
}

/* Ensure Drupal images fill the space */
.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops image cleanly to fill area */
  display: block;
}

/* --- Details Section (Right) --- */
.event-details {
  flex: 1; /* Takes remaining space */
  padding: 25px;
  display: flex;
  flex-direction: column; /* Stack content vertically */
}

/* Title */
.event-details h3 {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  color: #2c3e50;
  font-weight: 700;
  line-height: 1.3;
}

/* Meta Info (Venue & Date) */
.event-details .venue,
.event-details .date {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 5px 0;
  display: flex;
  align-items: center;
}

/* Optional: Add pseudo-icons before venue/date */
.event-details .venue::before {
  content: "📍 ";
  margin-right: 6px;
}
.event-details .date::before {
  content: "📅 ";
  margin-right: 6px;
}

/* Description */
.event-details .description {
  margin-top: 15px;
  margin-bottom: 20px;
  color: #444;
  line-height: 1.6;
  font-size: 1rem;
}

/* --- Contact Section --- */
.contact-info {
  margin-top: auto; /* Pushes this to the bottom of the card */
  padding-top: 15px;
  border-top: 1px dashed #ddd; /* Separator line */
  font-size: 0.9rem;
  color: #555;
}

.contact-info strong {
  color: #333;
}

.contact-info a {
  color: #0056b3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #003d80;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
  .event-card {
    flex-direction: column; /* Stack vertically on phones */
  }

  .event-image {
    flex: 0 0 auto; /* Reset width */
    max-width: 100%;
    height: 200px; /* Fixed height for mobile banner look */
  }

  .event-details {
    padding: 20px;
  }
}