﻿/* ── Desktop nav layout (only above Webflow's 991px collapse breakpoint) ── */
@media screen and (min-width: 992px) {
  /* Center nav links between logo and right edge */
  .container-2.w-container {
    display: flex;
    align-items: center;
  }
  .logo-block.w-nav-brand {
    float: none;
    flex-shrink: 0;
  }
  .nav-menu.w-nav-menu {
    float: none !important;
    flex: 1;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }
  .nav-menu.w-nav-menu > .w-nav-link,
  .nav-menu.w-nav-menu > .w-dropdown {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .menu-button.w-nav-button {
    margin-left: auto;
  }

  /* Align dropdown nav items vertically with plain nav links */
  .nav-link.dropdown-toggle {
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    align-items: center;
    height: 75px;
  }
  .nav-link.menu-text {
    display: flex !important;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    height: 75px;
  }
  .nav-link.dropdown-toggle .w-icon-dropdown-toggle {
    position: static;
    margin: 0 0 0 4px;
    top: auto;
    bottom: auto;
  }
}

/* Form link expired state */
.form-link-expired {
  background-color: #9e9e9e !important;
  border-color: #9e9e9e !important;
  color: #fff !important;
  cursor: not-allowed !important;
  pointer-events: none;
  font-style: italic;
  opacity: 0.85;
}

/* FAQs Page */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #e0d5c0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #1a3a5c;
}

.faq-trigger:hover {
  background: #faf7f0;
}

.faq-cross {
  font-size: 1.3rem;
  color: #8b6914;
  flex-shrink: 0;
  line-height: 1;
}

.faq-question-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.faq-chevron {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #8b6914;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer-wrap {
  max-height: 400px;
}

.faq-answer {
  padding: 0 24px 20px 52px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.faq-answer a,
.faq-answer-wrap a {
  color: #8b6914;
  text-decoration: underline;
}

.faq-answer-wrap p {
  padding: 0 24px 20px 52px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* Our Institute Page */
#institute-para-1,
#institute-para-2 {
  color: #555;
  font-weight: 400;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  color: #8b6914;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-body {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Faculty Page */
.page-title {
  margin-bottom: 48px;
}

.faculty-section {
  margin-bottom: 48px;
}

.faculty-section-title {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid #8b6914;
}

.faculty-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faculty-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.faculty-grid {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.faculty-card {
  flex-shrink: 0;
  width: calc(100% - 0px);
}

@media (min-width: 600px) {
  .faculty-card {
    width: calc(50% - 12px);
  }
}

@media (min-width: 992px) {
  .faculty-card {
    width: calc(25% - 18px);
  }
}

.faculty-slider-btn {
  flex-shrink: 0;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: inherit;
}

.faculty-slider-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.faculty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  max-width: 220px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-width: none;
}

.faculty-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.faculty-card.visible:hover {
  transform: translateY(0) scale(1.10);
  transition-delay: 0s;
  cursor: pointer;
}

.faculty-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.faculty-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
  white-space: nowrap;
}

.faculty-credentials {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

.faculty-role {
  font-size: 0.8rem;
  font-style: italic;
  color: #8b6914;
  margin: 0;
}

.faculty-name a {
  text-decoration: underline;
}

/* Mobile Nav Font Sizes */
@media screen and (max-width: 991px) {
  .menu-text {
    font-size: 22px;
  }

  .dropdown-link {
    font-size: 18px;
  }
}

/* Admissions Page */
.admission-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.admission-card-item {
  background: #fff;
  border: 1px solid #e0d5c0;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.admission-card-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 16px;
  margin-top: 0;
}

.admission-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3a5c;
  margin-top: 24px;
  margin-bottom: 10px;
}

.admission-list {
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
}

.admission-list li {
  margin-bottom: 8px;
}

.admission-note {
  font-style: italic;
  color: #8b6914;
  font-size: 0.95rem;
  margin-top: 16px;
  padding: 12px 16px;
  background: #faf7f0;
  border-left: 3px solid #8b6914;
  border-radius: 4px;
}

.admission-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.admissions-loading {
  padding: 40px;
  text-align: center;
  color: #aaa;
}

.admissions-loading-icon {
  font-size: 1.5rem;
}

.admission-card-rtl .admission-list {
  padding-left: 0;
  padding-right: 24px;
}

.admission-card-rtl .admission-card-heading,
.admission-card-rtl .admission-subheading,
.admission-card-rtl p,
.admission-card-rtl .admission-note {
  text-align: right;
}

/* Theological Studies Diploma Page */
.program-intro-list {
  margin: 24px 0 0;
  color: #555;
  line-height: 1.8;
  padding-left: 24px;
}

.program-intro-list li {
  margin-bottom: 6px;
}

.degree-planner {
  margin-top: 48px;
}

.degree-planner-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a3a5c;
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid #8b6914;
}

.year-block {
  margin-bottom: 40px;
}

.year-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: #1a3a5c;
  padding: 10px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.semester-block {
  margin-bottom: 24px;
  padding-left: 16px;
}

.semester-title {
  font-size: 1rem;
  font-weight: 700;
  color: #8b6914;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0d5c0;
}

.course-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.course-card {
  background: #fff;
  border: 1px solid #e0d5c0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.course-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0 0 10px;
}

.course-meta {
  font-size: 0.88rem;
  color: #666;
  margin: 4px 0;
  display: flex;
  gap: 6px;
}

.course-meta-label {
  font-weight: 600;
  color: #555;
  flex-shrink: 0;
}

.program-apply {
  text-align: center;
  margin-top: 40px;
}

.program-buttons {
  margin-top: 24px;
}

/* Degree Planner Vertical Tabs */
.planner-vtabs {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.planner-vtab-list {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 130px;
  border-right: 2px solid #e0d5c0;
  margin-right: 32px;
}

.planner-vtab-btn {
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: #888;
  background: none;
  border: none;
  border-right: 3px solid transparent;
  margin-right: -2px;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.planner-vtab-btn:hover {
  color: #1a3a5c;
  background: #faf7f0;
}

.planner-vtab-btn.active {
  color: #1a3a5c;
  border-right-color: #8b6914;
  background: #faf7f0;
}

.planner-vtab-panels {
  flex: 1;
  min-width: 0;
}

.planner-vtab-panel {
  display: none;
}

.planner-vtab-panel.active {
  display: block;
}

@media (max-width: 600px) {
  .planner-vtabs {
    flex-direction: column;
  }

  .planner-vtab-list {
    flex-direction: row;
    width: 100%;
    border-right: none;
    border-bottom: 2px solid #e0d5c0;
    margin-right: 0;
    margin-bottom: 24px;
  }

  .planner-vtab-btn {
    border-right: none;
    border-bottom: 3px solid transparent;
    margin-right: 0;
    margin-bottom: -2px;
  }

  .planner-vtab-btn.active {
    border-right-color: transparent;
    border-bottom-color: #8b6914;
  }
}

/* RTL (Arabic) vertical tabs: mirror the divider/indicator to the left side */
[dir="rtl"] .planner-vtab-list {
  border-right: none;
  border-left: 2px solid #e0d5c0;
  margin-right: 0;
  margin-left: 32px;
}

[dir="rtl"] .planner-vtab-btn {
  text-align: right;
  border-right: none;
  border-left: 3px solid transparent;
  margin-right: 0;
  margin-left: -2px;
}

[dir="rtl"] .planner-vtab-btn.active {
  border-left-color: #8b6914;
}

@media (max-width: 600px) {
  [dir="rtl"] .planner-vtab-list {
    border-left: none;
    border-bottom: 2px solid #e0d5c0;
    margin-left: 0;
    margin-bottom: 24px;
  }

  [dir="rtl"] .planner-vtab-btn {
    border-left: none;
    border-bottom: 3px solid transparent;
    margin-left: 0;
    margin-bottom: -2px;
  }

  [dir="rtl"] .planner-vtab-btn.active {
    border-left-color: transparent;
    border-bottom-color: #8b6914;
  }
}

/* Degree Planner Tabs */
.planner-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0d5c0;
  margin-bottom: 32px;
}

.planner-tab-btn {
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 700;
  color: #888;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.planner-tab-btn:hover {
  color: #1a3a5c;
}

.planner-tab-btn.active {
  color: #1a3a5c;
  border-bottom-color: #8b6914;
}

.planner-tab-panel {
  display: none;
}

.planner-tab-panel.active {
  display: block;
}

.btn-form-expired {
  display: inline-block;
  background-color: #a0a0a0 !important;
  color: #fff !important;
  border-radius: 30px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  cursor: not-allowed !important;
  pointer-events: none;
  text-decoration: none;
  border: none;
  box-shadow: none !important;
}

.coming-soon-badge {
  display: inline-block;
  background-color: #e0d5c0;
  color: #8b6914;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
}

.planner-loading-msg {
  padding: 20px;
  text-align: center;
  color: #8b6914;
}

.planner-coming-soon {
  padding: 16px;
  text-align: center;
  color: #8b6914;
}

.planner-error-msg {
  padding: 16px;
  text-align: center;
  color: #e74c3c;
}

/* Inaugural Slider */
.inaugural-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.slider-viewport {
  overflow: hidden;
  width: 100%;
}

@media (min-width: 992px) {
  .slider-viewport {
    width: 50%;
  }
}

.slider-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 3px solid transparent;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.slide.active {
  border-color: #8b6914;
}

.slide .subheading-large-2 {
  text-align: center;
}

.slide img.image-cover,
.slide video {
  max-height: 360px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .slide img.image-cover,
  .slide video {
    max-height: 580px;
  }
}

.slider-btn {
  flex-shrink: 0;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  color: inherit;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.slider-dot.active {
  background: rgba(0, 0, 0, 0.65);
}

/* ── Degrees nav dropdown ──────────────────────────────────────────────────── */
.dropdown-dept-label {
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b6914;
  border-top: 1px solid #e0d5c0;
  margin-top: 4px;
  pointer-events: none;
}
.dropdown-dept-label:first-child {
  border-top: none;
  margin-top: 0;
}
.dropdown-link.is-coming-soon {
  opacity: 0.55;
  pointer-events: none;
}
.coming-soon-badge {
  font-size: 10px;
  background: #e0d5c0;
  color: #1a3a5c;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── Degrees dropdown width & indent ──────────────────────────────────────── */
@media (min-width: 992px) {
  .dropdown-list.degrees.w-dropdown-list {
    width: auto !important;
    min-width: 300px !important;
    max-width: 360px !important;
  }
  .dropdown-list.degrees .dropdown-link {
    padding-left: 28px !important;
  }
}

/* ── Degrees two-level nav ─────────────────────────────────────────────────── */
.dept-nav-item { display:flex !important; justify-content:space-between; align-items:center; }
.dept-nav-arrow { font-size:16px; color:#8b6914; margin-left:8px; }
.degrees-back-btn { display:flex !important; align-items:center; gap:6px; color:#8b6914 !important; font-size:12px !important; border-bottom:1px solid #e0d5c0; margin-bottom:4px; }
.back-arrow { font-size:16px; }

/* ── Degrees flyout sub-menu ───────────────────────────────────────────────── */
.dropdown-list.degrees.w-dropdown-list {
  overflow: visible !important;
}
.dept-nav-wrapper {
  position: relative;
}
.dept-nav-item {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}
.dept-nav-arrow {
  margin-left: 12px;
  font-size: 14px;
  color: #8b6914;
  transition: transform 0.15s;
}

/* ── Desktop: flyout to the right ── */
@media (min-width: 992px) {
  .dept-flyout {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.12);
    border: 1px solid #e0d5c0;
    border-radius: 4px;
    z-index: 9999;
  }
  .dept-nav-wrapper:hover .dept-flyout {
    display: block;
  }
  .dept-nav-wrapper:hover .dept-nav-item {
    background: #f5f0e8;
  }
  .dept-nav-wrapper:hover .dept-nav-arrow {
    transform: rotate(90deg);
  }
}

/* ── Mobile: accordion below ── */
@media (max-width: 991px) {
  .dept-flyout {
    display: none;
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    border-left: 3px solid #e0d5c0;
    margin-left: 16px;
  }
  .dept-flyout--open {
    display: block !important;
  }
  .dept-nav-item.dept-active .dept-nav-arrow {
    transform: rotate(90deg);
  }
}

.dept-program-link {
  white-space: nowrap;
}

/* ── Mobile: let long dropdown labels wrap instead of clipping ──────────────── */
@media (max-width: 991px) {
  .dropdown-list.degrees.w-dropdown-list {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
  }
  .dept-nav-item,
  .dept-program-link,
  .dropdown-link {
    white-space: normal !important;
    word-break: break-word;
  }
}

/* Program description: match the styling of static pages where classes are on <p> directly */
#prog-description p {
  font-size: 17px;
  font-weight: 400;
  line-height: 27px;
  color: var(--theo-black);
}

/* ── Mobile navbar: restore the ornate background image (matches desktop) ──────
   Webflow's mobile rule forces `background: transparent !important` on the
   fixed navbar at <=767px, which stripped the Background3_Upper.png pattern on
   phones. Re-assert the same background the desktop navbar uses. */
@media screen and (max-width: 767px) {
  .navbar.w-nav {
    background-color: #f6efe6 !important;
    background-image:
      linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)),
      url('/images/Background3_Upper.png') !important;
    background-size: 100% !important;
  }
}
