/* Styles by cruzbytes */

:root{
  --primary-color:#811a17; --primary-color-hover:#B82020;
  --secondary-color:#0F254B; --secondary-color-hover:#315D9B; --accent-gold:#c9a44e;
  --shadow-sm: 0 6px 18px rgba(10,10,10,0.06);
}

body{
  /*font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial; */
  color:var(--neutral-900); margin:0; 
  background:#fff; 
  -webkit-font-smoothing:antialiased;
}
body {
  font-family: 'Inter', sans-serif !important;
  line-height: 1.7;
  font-size: 16.5px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Libre Baskerville', serif;
  letter-spacing: -0.02em;
}

/* Header */
.site-header {
  position:fixed;
  top:0;
  left: 0;
  right: 0;
  background:#F7F2E9;
  z-index:60;
  border-bottom:1px solid var(--gray-100);
}

.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:88px
}

.logo img{ 
  width: auto;
  height:85px;
  object-fit: contain;
}

.logo .logo_title img {
  height: 65px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav ul.primary-menu {
	display:flex;
	gap:28px;
	align-items:center;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.nav a {
  color:#222;
  text-decoration:none;
  font-weight:400;
}

.nav a:hover, 
a:hover {
	color: var(--primary-color-hover);
}

.header-cta{ 
  display:flex;
  gap:12px;
  align-items:center
}

.header-cta a {
  cursor: pointer;
}

.hamburger {
  display:none;
  border:0;
  background:transparent;
  font-size:22px;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
}

.hamburger span {
  display: block;
  height: 2px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
  width: 18px;
}

.hamburger.active span:first-child {
  transform: rotate(45deg) translate(6px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  visibility: hidden;
}
.hamburger.active span:last-child {
  transform: rotate(-45deg) translate(2px, -1px);
}

.link_inherit {
  color: inherit;
  text-decoration: none;
}

.bg-sandal {
  background: #F7F2E9;
}

.long_txt p {
  text-align: justify;
}

.long_txt p:last-child {
  margin-bottom: 0px;
}

/* Hide mega menu initially */

.primary-menu li.menu-item-has-children {
  position: relative;
}

.primary-menu > li > a {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Default arrow for any menu item with children */
.primary-menu li.menu-item-has-children > a,
.primary-menu li.has-mega > a {
    position: relative;
    padding-right: 14px;
}

/* Arrow icon using pseudo-element */
.primary-menu li.menu-item-has-children > a:before,
.primary-menu li.has-mega > a:before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .25s ease;
}

/* Rotate arrow when mega is open */
.primary-menu li.menu-item-has-children.active > a:before,
.primary-menu li.has-mega.active > a:before,
.primary-menu li.menu-item-has-children.active_mob a:before {
    transform: translateY(-40%) rotate(-135deg);
}

.has-mega.active .mega-arrow {
    transform: rotate(-135deg);
}

/* Mega panel */
.mega-menu, .primary-menu li.menu-item-has-children > .sub-menu {
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  background: #fff;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  /*pointer-events: none;*/
  transition:
      opacity .3s ease,
      transform .3s ease,
      visibility 0s .3s;
}

.primary-menu li.menu-item-has-children > .sub-menu {
  width: max-content;
  min-width: 200px;
  padding: 5px 5px;
  top: 50px;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  /*gap: 15px;*/
  left: 0;
  /*transform: translate(-50%, 0px);*/
}

/* Show panel */

.primary-menu li.menu-item-has-children > .sub-menu li {
  padding: 8px 15px;
}

/* 3–6 column auto grid */
.mega-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 35px;
}

.mega-tabs,
.minsnavTab {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.mega-tab {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mega-tab:not(.active):hover {
  border-color: var(--primary-color-hover);
  color: var(--primary-color-hover);
}

.mega-tab.active {
  background: #0057a3;
  color: #fff;
  border-color: #0057a3;
}

.mega-tab.active:hover {
  color: white;
}

.mega-col.santal-missions {
  order: -2;
}
.mega-col.education {
  order: -1;
}
.mega-col.art-culture {
  order: 1;
}

/* Column styling */
.mega-col h4 {
  font-size: 17px;
  font-weight: 700;
  /*color: #3939cc !important;*/
  margin-bottom: 12px;
}

.mega-col h4 a {
  color: #3939cc !important;
  font-weight: 700;
}

.mega-col h4 a:after {
  background: #3939cc;
}

.mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-col ul li {
    margin-bottom: 6px;
}

.mega-col ul li a, 
.primary-menu li.menu-item-has-children > .sub-menu li a {
  text-decoration: none;
  color: #444;
  font-size: 15px;
  transition: 0.2s ease;
  /*text-transform: capitalize;*/
}

.mega-col ul li a:hover {
  color: var(--primary-color);
}

.container-inner {
  max-width: 80%;
  margin: auto;
}

.no-p-mb p {
  margin-bottom: 0px !important;
}

/* Header */

.viewAllBtn {
  padding-top: 40px;
}

.viewAllBtn a {
  min-width: 150px;
  display: block;
  text-align: center;
  width: max-content;
  margin: auto;
}

.text_link a, 
.primary-menu > li > a,
.sub-menu > li > a {
	position: relative;
}

.text_link a:after, 
.primary-menu > li > a:after,
.sub-menu > li > a:after {
	content: "";
	background: var(--primary-color-hover);
	width: 0;
	height: 2px;
	position: absolute;
	left: 0;
	bottom: -7px;
	transition: 0.3s;
}

.text_link a:hover:after, 
.primary-menu > li > a:hover:after,
.sub-menu > li > a:hover:after {
	width: 100%;
	opacity: 1;
	transition: .3s ease-in-out;
}

.cardTransY:hover {
	transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.page-main {
	padding-top: 80px;
	padding-bottom: 50px;
}

/* Home page styles start */

/* HERO SECTION */
.hero-section {
  position: relative;
  height: 75vh;
  width: 100%;
  overflow: hidden;
  margin-top: 80px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* Slider wrapper */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
}

/* Gold spiritual glow */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 65%, rgba(203,162,75,0.25), transparent 60%);
  z-index: 1;
}

.hero-content h1 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  color: #0F254B;
  margin: 10px 0px;
  margin-top: 0px;
}

.hero-content p {
  margin-top: 12px;
  font-size: 18px;
  color: #333;
}

/* Buttons */
.hero-buttons {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.cj_btn {
  transition: .3s ease-in-out;
}

.cj_btn:hover {
  transform: translateY(-3px);
}

.btn_primary {
  background: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.2s;
}

.btn_primary:hover {
  background: var(--primary-color-hover);
  color: white;
}

.btn_secondary {
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 30px;
  color: #0F254B;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
}

a.btn_primary, a.btn_secondary {
  text-decoration: none;
}

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 3;
  display: flex;
  gap: 20px;
}

.slider-controls span {
  font-size: 36px;
  cursor: pointer;
  color: white;
  text-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: 0.2s;
}

.slider-controls span:hover {
  transform: scale(1.15);
}


/* Hero Content Box (original) */
.hero-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgb(234 234 234 / 55%);
  padding: 30px;
  width: 480px;
  border-radius: 16px;
  color: #fff;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 2;
}

/* Collapsed state */
.hero-content.collapsed {
  /*width: 360px;*/
  padding: 14px 18px;
  /*height: 56px;*/
  /*margin-top: 10px;*/
}

.hero-content .toggleCont	{
	max-height: 500px; /* enough height */
	overflow: hidden;
	opacity: 1;
	transition: max-height 0.5s ease, opacity 0.4s ease;
}

.toggleCont.hidden {
	max-height: 0;
	opacity: 0;
}

/* Hide content when collapsed */
/*.hero-content.collapsed h1,*/
/*.hero-content.collapsed p,
.hero-content.collapsed .hero-buttons {*/
.hero-content.collapsed .toggleCont	{
  display: none;
}

/* Minimize/Expand Toggle Button */
.minimize-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgb(30 30 30 / 49%);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.minimize-toggle:before {
  content: "−";
  color: #fff;
  font-size: 22px;
  text-align: center;
  display: block;
  height: 28px;
}

.hero-content.collapsed .minimize-toggle:before {
  content: "+";
}

.hero-section .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* About section styles start */

.jesuits-section {
    position: relative;
    padding: 120px 0;
    /*background: #f4f4f8;*/
    background: linear-gradient(135deg, #f9f4ef 0%, #fff 40%, #f3ede6 100%);
    overflow: hidden;
}

.jesuits-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    background: url('../images/jesuits.png') no-repeat center;
    background-size: contain;
    opacity: 0.06;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(1px);
}

/* Section Layout */
.jesuits-wrapper {
    display: flex;
    /*align-items: center;*/
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    max-width: 80%;
    margin: auto;
}

.jesuits-image {
  flex: 0 0 auto;
  width: 25%;
}

/* Image Styling */
.jesuits-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  /*padding: 30px;*/
}

/* Content Area */
.jesuits-content {
  flex: 1;
  min-width: 300px;
}

/* Decorative Title */
.jesuits-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.jesuit-line,
.jesuits-content h1:before {
  content: '';
  width: 45px;
  height: 3px;
  background: #c70000;
  border-radius: 2px;
}

.jesuits-title,
.jesuits-content h1 {
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #222;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0px;
}

/* Text */
.jesuits-description,
.jesuits-content .content_wrap p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    text-align: justify;
    margin-bottom: 10px;
}

.jesuits-content .content_wrap a {
  width: max-content;
  display: block;
  background: var(--primary-color);
  color: #fff;
  padding: 14px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.2s;
  font-size: 16px;
  text-decoration: none;
  margin-left: auto;
  line-height: 1;
}

.jesuits-content .content_wrap a:hover {
  transform: translateY(-3px);
  background: #a10000;
}

/* CTA Button */
.jesuits-btn {
  /*padding: 12px 26px;
  background: #c70000;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;*/
  float: right;
}

.jesuits-btn:hover {
    background: #a10000;
}

/* About section styles end */

/* mission section */

/* Main Section */
.mvv-section {
  padding: 80px 0;
  /*background: #f8f9fb;*/
  background: #F7F2E9;
}

/* Grid Layout */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.about_mv .mvv-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.about_mv .mvv-grid .mvv-item {
  flex: 0 0 48%;
}

/* Item Card */
.mvv-item {
    padding: 40px 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
    border: 1px solid #e8e8e8;
}

.mvv-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

/* Hexagon Icon */
.mvv-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 25px;
    position: relative;
}

.mvv-icon:before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 60px;
}

.mvv-icon img {
    width: 55px;
    height: 55px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Text */
.mvv-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.mvv-item p {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

/* Fade Animation */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* mission section */

/* provincial message section */

/* alt design */

/* Section Wrapper */
.provincial-message-section {
  padding: 80px 0;
  background: #faf7f3;
}

.pm-wrapper {
  max-width: 1300px;
  margin: auto;
  display: flex;
  gap: 50px;
}

/* Sticky Image Column */
.pm-image-col {
  flex: 1;
  max-width: 30%;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.pm-image-box {
  position: relative;
  width: 70%;
  margin: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.1);
}

.pm-image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.pm-watermark {
  position: absolute;
  inset: 0;
  background: url('assets/jesuits.png') center/50% no-repeat;
  opacity: 0.08;
}

.pm-info {
  margin-top: 25px;
  text-align: center;
}

.pm-info h3 {
  font-size: 26px;
  margin-bottom: 5px;
  margin-top: 0px;
  font-weight: 700;
  color: var(--primary-color);
}

.pm-info p {
  font-size: 16px;
  color: #444;
}

.pm-text-col {
  flex: 1.6;
  color: #222;
  position: relative;
}

.pm-quote-icon {
  font-size: 5rem;
  line-height: 1;
  color: #d64545;
  position: absolute;
  top: -10px;
  left: -40px;
  opacity: 0.15;
  font-family: serif;
}

.pm-quote-icon.end {
  bottom: -40px;
  right: 0px;
  top: auto;
  left: auto;
}

.pm-pullquote, blockquote, .ajs-content blockquote {
  margin: 30px 0 !important;
  padding: 20px 30px;
  background: #ffffff;
  border-left: 4px solid var(--primary-color);
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

blockquote p {
  margin-bottom: 0px !important;
}

/* Text Paragraphs */
.pm-text-col p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.pm-text-col .desc {
  position: relative;
  text-align: justify;
}

.pm-text-col .desc strong {
  margin-bottom: 10px;
  display: block;
}

.vscrl_wrapper {
  margin: 0 auto;
  padding: 0;
  /*width: 45em;*/
  /*height: 10em;*/
  /*background-color: #3E3E3E;*/
  /*box-shadow: 7px 5px 4px rgba(0,0,0,0.5);*/
}

.vscrl_box {
  margin: 1em auto;
  padding: 2em;
  width: 80%;
  height: auto;
  position: relative;
  overflow: hidden;
  /*top: 1em;*/
  /*background-color: #FFF;*/
  box-shadow: 7px 5px 4px rgba(0,0,0,0.5);
  /*border: 1px solid black;*/
  border-radius: 2px;
}

.vscroll {
  position: absolute;
}

.vscroll li{
  list-style: circle;
}

.provincial-programs {
  margin-top: 2.5rem;
  position: relative;
}

.provincial-programs .mainTitle {
  font-size: 16px;
  /*position: absolute;
  top: 0px;
  left: 0;
  right: 0;
  z-index: 9;*/
  background: white;
  margin: auto;
  max-width: 80%;
  padding: 5px 10px;
  border-radius: 50px;
  text-align: center;
  background: var(--primary-color);
  color: white;
}

.programs-scroll-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
  border-left: 3px solid #7a1f1f; /* accent */
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: #F7F2E9;
}

.programs-scroll {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.program-item {
  font-size: 0.95rem;
  line-height: 1.6;
}

.program-date {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: #7a1f1f;
  margin-bottom: 0.25rem;
}


/* provincial message section */

/* ministries section */

.ministries-section {
  padding: 80px 0;
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--primary-color);
}

.section-subtitle {
  display: block;
  font-size: 16px;
  color: #666;
  margin-top: 5px;
}

.ministries-grid {
  margin-top: 60px;
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.ministry-card {
  background: #faf7f3;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: 0.3s ease;
  border: 1px solid rgba(138, 27, 20, 0.08);
}

/* CARD WITH IMAGE */
.has-image .mc-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.has-image .mc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.has-image:hover .mc-image img {
  transform: scale(1.06);
}

.has-image .mc-content {
  padding: 30px;
}

/* CARD WITHOUT IMAGE (Text Only Style) */
.no-image {
  padding: 35px;
  background: linear-gradient(145deg, #ffffff, #b33a331c);
  border-left: 4px solid #b33a33;
}

.no-image .mc-content {
  padding: 0;
}

/* Typography */
.mc-content h3 {
  font-size: 20px;
  color: #8c1c13;
  margin-bottom: 12px;
  margin-top: 0px;
  font-weight: 600;
}

.mc-content p {
  font-size: 16px;
  line-height: 26px;
  margin-bottom: 14px;
  color: #444;
}

.mc-location {
  font-size: 14px;
  font-weight: 600;
  color: #8c1c13;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/*.homeMinis .ministry-card:before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: -100%;
  background: #b33a33;
  border-radius: 12px;
  transition: .4s ease-in-out;
  z-index: -1;
}

.homeMinis .ministry-card:hover:before {
  left: 0;
}

.homeMinis .ministry-card .mc-content {
  transition: .3s ease-in-out;
}

.homeMinis .ministry-card:hover .mc-content {
  color: white;
} */

/* ministries section */

/* News and events section */

.news-events-section {
  padding: 80px 0;
  background: #faf7f3;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

/*.section-heading h2 {
  font-size: 38px;
  color: #6a120e;
  margin-bottom: 10px;
}*/

.section-heading p {
  font-size: 16px;
  color: #555;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 40px;
}

.news-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(138, 27, 20, 0.12);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.news-thumb {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: 0.35s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.08);
}

/* NO-IMAGE STYLE */
.no-image {
  padding: 30px;
  background: linear-gradient(145deg, #ffffff, #f2efea);
}

/* CONTENT */
.news-content {
  padding: 25px;
}

.news-date {
  background: #8c1c13;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 5px 10px;
  color: white;
}

.news-content h3 {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 12px;
  margin-top: 0px;
  font-weight: 700;
  color: var(--primary-color);
}

.news-content p {
  font-size: 16px;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.4;
}

/* READ MORE */
.news-readmore {
  color: #8c1c13;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: 0.3s;
}

.news-readmore:hover {
  color: #b52d23;
}

article.event, 
article.post {
  max-width: 60%;
  margin: auto;
  text-align: justify;
}

article.event img,
article.post img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* News and events section */

/* Locations section */

.where-we-are {
  padding: 80px 0;
}

.location-container {
  display: grid;
  grid-template-columns: 380px auto;
  gap: 30px;
}

.location-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  max-height: 620px;
  overflow-y: auto;
}

.location-card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 0 14px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: 0.2s ease;
  border-left: 4px solid transparent;
}

.location-card.active {
  border-left: 4px solid #C12222;
  background: #fff7f7;
}

.location-card:hover {
  transform: translateX(4px);
}

#jesuitMap {
  height: 580px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

/* --- Marker Styles --- */

.jesuit-marker .marker-pin {
  width: 26px;
  height: 26px;
  background: #C12222;
  border: 3px solid white;
  border-radius: 50% 50% 50% 0;
  /*transform: rotate(-45deg);*/
  position: relative;
  left: 8px;
  top: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.25);
}

.jesuit-marker.hover .marker-pin {
  transform: scale(1.4);
}

/* Popup */
.leaflet-popup-content {
  margin: 8px !important;
  font-size: 15px;
  line-height: 1.4;
}

.marker-popup strong {
  font-size: 16px;
  color: #222;
}

.marker-popup span {
  color: #555;
  font-size: 14px;
}

.places-map-section {
    padding: 40px 0;
}

#global-ministry-map {
    width: 100%;
    height: 80vh;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-popup {
    font-size: 14px;
    line-height: 1.4;
}

.map-popup a {
  display: inline-block;
  margin-top: 6px;
  color: var(--primary-color) !important;
  font-weight: 600;
  text-decoration: none;
}

.where-we-are-layout {
  /*display: grid;*/
  /*grid-template-columns: 360px 1fr;*/
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.where-we-are-sidebar {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
  flex: 0 0 auto;
  width: 27%;
}

.where-we-are-map {
  flex: 0 0 auto;
  width: 70%;
}

.ministry-item {
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  margin-bottom: 10px;
  background: #fff;
}

.ministry-item:hover,
.ministry-item.active {
  background: #f0f6ff;
  border-color: #0057a3;
}

.ministry-item h4 {
  margin: 0;
  font-size: 20px;
}

.ministry-item p {
  color: #666;
  margin-top: 10px;
  margin-bottom: 0px;
}

.where-we-are-map #global-ministry-map {
  height: 70vh;
  border-radius: 20px;
  z-index: 9;
}

/* Locations section */

/* Team section */

.team-section {
  padding: 80px 0px;
  background: #F7F2E9;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.team-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 15px;
  background: #eee;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0 3px;
  color: #1d1d1d;
}

.team-role {
  font-size: 14px;
  color: #666;
}

/* Team section */

/* CTA section */

/* CTA with background image */
.cta-section-img {
  position: relative;
  /*background-image: url('../images/50-years-cj.jpeg');*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 20px;
  /*margin-top: 60px;*/
  display: flex;
  justify-content: center;
  text-align: center;
  /*border-radius: 12px;*/
  overflow: hidden;
}

.cta-section-img.imgFocus {
  padding: 50px 20px;
  min-height: 500px;
  align-items: flex-end;
}

/* Overlay blend */
.cta-section-img:not(.imgFocus) .cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      rgba(15, 26, 51, 0.75),   /* deep Jesuit blue tone */
      rgba(15, 26, 51, 0.75)
  );
  mix-blend-mode: multiply; 
  z-index: 1;
}

/* Content */
.cta-img-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #fff;
}

.cta-img-inner h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-img-inner p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.95;
}

/* Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta-btn-primary {
  background: #ffcc47;
  color: #000;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.cta-btn-primary:hover {
  background: #ffd876;
}

.cta-btn-outline {
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.cta-btn-outline:hover {
  background: #fff;
  color: #000;
}

/* CTA section */

/* Footer section */

.provCuriaSec {
  /*background-color: #1c398e;*/
  /*padding: 60px 0px;*/
  padding-bottom: 50px;
}

.provCuriaGrid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.provCuriaCard {
  padding: 30px;
  border: none;
  background-color: #fff;
  flex: 1;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgb(0 0 0 / 8%);
}

.provCuriaCard h4 {
  margin-bottom: 20px;
  color: #3939cc !important;
}

.provCuriaCard i {
  border: 2px solid #b33a33;
  color: #b33a33;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 55px;
  border-radius: 50%;
}

.provCuriaCard p:not(:last-child) {
  margin-bottom: 5px;
}

.provCuriaCard p:last-child {
  margin-bottom: 0px;
}

.provCuriaCard a, 
.provCuriaCard span {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.provCuriaCard a:hover {
  color: var(--secondary-color);
}

.footer {
  background: #0f1a33;
  /*color: #fff;*/
  padding-top: 60px;
  /*margin-top: 80px;*/
}

/* Newsletter Section */
.footer-top {
  /*text-align: center;*/
  margin-bottom: 40px;
  /*padding-bottom: 50px;*/
  padding: 30px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: 50px;
  border: none;
  outline: none;
  font-size: 16px;
}

.newsletter-form button {
  padding: 14px 28px;
  border-radius: 50px;
  background: #ffcc47;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.newsletter-form button:hover {
  background: #ffd876;
}

/* Home page styles end */

/* About page styles start */

.inner-header-floating {
  position: relative;
  width: 100%;
  height: 390px;
  margin-bottom: 80px;
  margin-top: 80px;
}

.ihf-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ihf-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  min-height: 400px;
}

.ihf-content-box {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;  /* 50–60% recommended */
  background: #fff;
  backdrop-filter: blur(8px);
  padding: 30px 40px;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
  z-index: 5;
  animation: ihfFadeUp .6s ease-out both;
}

.ihf-title {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 700;
  color: #222;
  text-align: center;
  /*text-transform: capitalize;*/
}

.ihf-breadcrumb {
  font-size: 15px;
  color: #000;
  text-align: center;
}

.ihf-breadcrumb a {
  color: rgb(128 26 23);
  text-decoration: none;
  font-weight: 500;
}

.ihf-breadcrumb span {
  margin: 0 6px;
  color: #aaa;
}

.inner-header-bg {
  background-color: #821a17;
  min-height: 390px;
  display: flex;
  align-items: center;
  margin-top: 80px;
}

.inner-header-bg .ihf-content-box {
  bottom: 0;
  left: 0;
  transform: none;
  margin: auto;
}

/* Page header styles */

/* About the jesuits section styles */

.about-jesuits-section {
    padding: 80px 0;
    background: #ffffff;
}

.ajs-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    /*display: grid;*/
    /*grid-template-columns: 6px 1fr 0.9fr;*/
    /*gap: 40px;*/
    /*align-items: center;*/
}

.ajs-left-accent {
    background: var(--theme-color, #1d5b79);
    border-radius: 4px;
}

.ajs-content h2 {
    font-size: 34px;
    margin-bottom: 20px;
    color: #1d1d1d;
}

.ajs-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
}

.ajs-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}


/* About the jesuits section styles */

/* History section styles */

.history-section {
    padding: 80px 0;
    background: #ffffff;
}

.historyInfo ul {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.historyInfo ul li {
  position: relative;
  color: #444;
  line-height: 1.6;
  padding-left: 20px;
  margin-bottom: 10px;
}

.historyInfo ul li:before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c9a44e;
  margin-top: 6px;
  flex-shrink: 0;
  position: absolute;
  left: 0;
  top: 3px;
}

.year, .historyInfo ul li strong {
  font-size: 1.2rem;
  font-weight: bold;
  color: #c9a44e;
  display: block;
}

.historyInfo p strong, 
.milestones .entry-content p strong,
.milestones .entry-content div strong {
  color: var(--primary-color);
  font-size: 20px;
  /*margin-bottom: 10px;*/
  display: inline-block;
}

.milestones .entry-content div strong {
  flex: 0 0 auto;
}

.milestones .entry-content > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
	flex-direction: column;
}

/* History section styles */

/* About page styles end */

/* Ministry page styles start */

.minisContSec {
  padding-top: 100px;
  padding-bottom: 80px;
}

.minisDesc p {
  text-align: justify;
}

.minisDesc ul {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.minisDesc ul li {
  position: relative;
  padding-left: 35px;
  padding-bottom: 20px;
}

.minisDesc ul li:before {
  content: '';
  background-image: url(../images/tick_icon.svg);
  background-position: center;
  background-size: contain;
  width: 22px;
  height: 24px;
  position: absolute;
  display: block;
  left: 0;
}

.minisFloatBox {
  background-color: #1c398e;
  position: absolute;
  bottom: -30px;
  left: -20px;
  padding: 32px;
  border-radius: 12px;
  max-width: 50%;
  box-shadow: 0 10px 30px rgb(28 57 143 / 45%);
}

.ministryImg {
  width: 100%;
  height: 100%;
}

.sticky_col {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.ministryImg img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.minisFloatBox .shortTitle {
  font-size: 13px;
  color: white;
}

.minisFloatBox .mainTitle {
  font-size: 16px;
  line-height: 1.4;
  color: white;
  margin: 10px 0px;
}

.minisStatSec {
  background-color: #1c398e;
  padding-top: 70px;
  padding-bottom: 70px;
}

.mStatList {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 80%;
  margin: auto;
  flex-wrap: wrap;
  gap: 30px 0px;
}

.mStatItem {
  flex: 0 0 25%;
}

.mStatList .mStatItem i {
  color: aliceblue;
  font-size: 20px;
  margin: auto;
  text-align: center;
  display: block;
  padding-bottom: 20px;
}

.mStatList .mStatItem .statValue {
  color: white;
  text-align: center;
  font-size: 34px;
}

.mStatList .mStatItem .statLabel {
  color: white;
  font-size: 16px;
  text-align: center;
  margin-bottom: 0px;
}

.focus-area-grid {
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.focus-area-card {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  flex: 1 0 23%;
}

.focus-area-card:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 
              0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.focus-area-card-icon i {
  color: #b33a33;
  margin-bottom: 1rem;
  font-size: 20px;
}

.focus-area-card h3 {
  margin-bottom: 0.75rem;
  font-size: 20px;
}

.focus-area-card-description {
  color: #4b5563; /* gray-600 */
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.focus-area-card-description a {
  color: var(--primary-color);
  text-decoration: none;
}
.focus-area-card-description.minisDesc ul li {
  padding-left: 25px;
  padding-bottom: 10px;
}

.focus-area-card-description.minisDesc ul li:before {
  width: 15px;
  height: 15px;
  top: 5px;
}

.contact_info .minis_cont {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact_info .minis_cont.minis_adrs {
  align-items: flex-start;
}

.contact_info .minis_cont i {
  flex: 0 0 30px;
  text-align: center;
  background: var(--primary-color-hover);
  height: 30px;
  /*border: 2px solid var(--primary-color-hover);*/
  border-radius: 50px;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contact_info .focus-area-card-description {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.minisGalSec {
  padding-top: 80px;
  padding-bottom: 60px;
}

.galleryList {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
}

.galleryList .galleryItem {
  overflow: hidden;
  border-radius: 12px;
}

.galleryItem img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;  
}

.galleryList .galleryItem:nth-child(3n + 1) {
    grid-column: span 2;
    height: 320px;
}

.galleryList .galleryItem:nth-child(3n + 2),
.galleryList .galleryItem:nth-child(3n + 3) {
    height: 320px;
}

.galleryList .galleryItem:nth-child(6n + 4) {
    grid-column: 3 / span 2;
}

.galleryList .galleryItem:nth-child(6n + 5) {
    grid-column: 1;
    grid-row: 2;
}

.galleryList .galleryItem:nth-child(6n + 6) {
    grid-column: 2;
    grid-row: 2;
}

.imgsArea.galleryList .galleryItem:nth-child(3n + 1) {
    grid-column: auto; 
}

.imgsArea.galleryList .galleryItem:nth-child(6n + 4) {
    grid-column: auto;
}

.imgsArea.galleryList .galleryItem:nth-child(6n + 5) {
    grid-column: auto;
    grid-row: auto;
}

.imgsArea.galleryList .galleryItem:nth-child(6n + 6) {
    grid-column: auto;
    grid-row: auto;
}

.gal_link {
  justify-content: center;
}

.gal_link a {
  width: 12%;
  text-align: center;
}

.related-ministry-sec {
  padding: 80px 0;
  background: #f9f9f9;
}

.related-ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 80%;
    margin: auto;
}

.related-ministry-card {
    display: block;
    padding: 22px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    transition: all .25s ease;
    text-decoration: none;
}

.next-card {
  text-align: right;
}

.related-ministry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

.ministry-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.6;
    margin-bottom: 8px;
}

.ministry-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ministry-cat span {
    display: inline-block;
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-right: 6px;
    margin-top: 6px;
}

/* Ministry page styles end */

/* Page template styles start */

.content-image-sec, .publication-grid-sec {
  padding-top: 90px;
  padding-bottom: 60px;
}

.ci-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
}

.ci-image img {
  border-radius: 18px;
  width: 100%;
}

/* Page template styles end */

/* Newsletter page styles start */

.single-publication .publication-viewer,
.pub-current-year, 
.term-password-protect {
  padding-top: 60px;
  padding-bottom: 40px;
}

.publication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.publication-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  transition: all .25s ease;
  text-decoration: none;
  /*display: flex;
  align-items: center;*/
}

.publication-card:hover {
  transform: translateY(-6px);
}

.publication-card h3 {
  color: var(--primary-color);
  font-size: 20px;
  text-align: center;
}

.pub-thumb {
  /*width: 50%;*/
}

.pub-thumb img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: top;
}

.pub-previous-years {
  padding-bottom: 50px;
}

.year-archive-list {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

/*.year-archive-list li {
  list-style: none;
}*/

.year-archive-list li a {
  background: var(--primary-color);
  color: white;
  padding: 10px 20px;
  display: block;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: .3s ease-in-out;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.year-archive-list li a:hover {
  transform: translateY(-5px);
  box-shadow: none;
}

.pub-content {
  padding: 16px;
}

.pub-iframe {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: 12px;
}

.taxonomy-title {
  font-size: 36px;
  margin-bottom: 12px;
}

.taxonomy-desc {
    font-size: 18px;
    opacity: 0.8;
}

.term-password-protect {
  padding-bottom: 80px;
}

.term-password-form input[type="password"] {
    flex: 1;
    padding: 9px 18px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-size: 16px;
    border: 1px solid #ccc;
}
.term-password-form button {
    padding: 14px 28px;
    border-radius: 50px;
    background: #ffcc47;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.publication-reader {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

#flipbook {
    width: 900px;
    height: 580px;
    background: #d9d2c5;
    box-shadow: 0 30px 70px rgba(0,0,0,.35);
}

#flipbook .page {
    background: #fff;
    box-shadow: inset 0 0 20px rgba(0,0,0,.15);
}

#flipbook canvas {
    width: 100%;
    height: 100%;
}

.clear_pub {
  position: absolute;
  right: 0;
  top: 0;
}

/* Newsletter page styles end */

/* Provincial curia page styles start */

.curia-intro, .section-padding {
  padding: 80px 0px;
}

.curia-intro-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.curia-intro .section-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.curia-intro .section-desc {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
}

.founder-sec {
  background: #F7F2E9;
  padding: 80px 0px;
}

.founder-img img {
  width: 400px;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
}

.founder-sec .floatingImg {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 80px;
  height: auto;
  padding: 0;
}

.founder-sec .floatingImg img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.founder-info-col {
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0px 60px;
}

.founder-info-col .founder-info {
  padding: 20px 25px;
  text-align: justify; 
}

.founder-info .mainTitle {
  font-size: 24px;
  color: var(--primary-color);
  padding-bottom: 12px;
  font-weight: 600;
}

.curia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.curia-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.curia-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.curia-photo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  margin-bottom: 16px;
}

.curia-card h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.curia-card .designation {
  font-size: 14px;
  color: var(--primary-color-hover);
}

.curia-sections .curia-section:nth-child(even) {
  background-color: #faf7f3;
}

.curia-sections .curia-section:nth-child(odd) {
  background-color: #f8f9fa;
}

.curia-sections .curia-section:nth-child(even) .curia-member {
  flex-direction: row;
  width: 33%;
}

.curia-sections .curia-section:nth-child(even) .curia-photo {
  flex: 0 0 auto;
}

.curia-members {
  display: flex;
  /*align-items: center;*/
  justify-content: center;
  /*flex-wrap: wrap;*/
  gap: 15px;
}

.curia-members .curia-member {
  /*max-width: 20%;
  flex: 1 0 20%;*/
  display: flex;
  flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 20px;
    border-right: 3px solid var(--primary-color);
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    width: 25%;
    text-align: center;
}

.off_members {
  flex-wrap: wrap;
}

.off_member {
  flex: 0 0 auto;
  width: 32%;
}

/* Provincial curia page styles start */

/* Donation page styles start */

.donation-intro .section-desc, 
.short_cont {
  max-width: 820px;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: #555;
}

.donation-intro .section-desc h2,
.donation-intro .section-desc h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.donation-options {
  background: #faf7f3;
}

.donation-grid {
  display: flex;
  /*grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));*/
  gap: 32px;
  justify-content: center;
}

.donation-card {
  background: #fff;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  flex: 0 0 auto;
  max-width: 33.3%;
}
.donation-card .don_info {
  font-weight: bold;
}

.donation-card h3 {
  margin-bottom: 12px;
  color: var(--primary-color-hover);
}

.donbank_grid {
  margin-top: 40px;
}

.donbank_grid .bank-card {
  max-width: 50%;
  margin: auto;
}

.donbank_grid .bank-card li {
  margin-bottom: 5px; 
}

.donbank_grid .bank-card h3 {
  margin-bottom: 15px;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.bank-card {
  background: #fafafa;
  padding: 32px;
  border-left: 4px solid #8b0000;
}

.bank-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0px;
  margin-left: 10px;
}

.bank-card li {
  margin-bottom: 10px;
  font-size: 16px;
}

.donation-contact {
  color: #fff;
}

.contact-card {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}

.contact-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-card p {
  margin: 4px 0;
  color: rgba(255,255,255,0.85);
}

.donation-faq .faq-list {
  max-width: 820px;
  margin: 40px auto 0;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  font-size: 17px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: #f7f7f7;
}

.faq-icon {
  width: 14px;
  height: 14px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: #8b0000;
  transition: transform .3s ease;
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
  transform: scaleY(0);
}

.faq-item.active .faq-question {
  background: #ffcc47;
}

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

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer p {
  padding: 20px 24px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* Donation page styles end */

/* Become a jesuit page styles start */

.baj_contact .contact_info a {
  color: var(--primary-color);
  text-decoration: none;
}

.baj_contact .curia-member {
  flex-direction: row;
  text-align: left;
  width: auto;
}

.joinus_form {
  max-width: 70%;
  margin: auto;
}

.joinus_form .form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.joinus_form .form-row .form-col {
  flex: 1 0 auto; 
}

.joinus_form .form-full>* {
  width: 100%;
}

.joinus_form .form-row input,
.joinus_form .form-row textarea {
  background: white;
  border: 1px solid #000;
  padding: 10px 10px;
  border-radius: 50px;
  width: 100%;
}

.joinus_form .form-row textarea {
  max-height: 100px;
  border-radius: 10px;
  width: 100%;
}

.joinus_form .form-submit p {
  margin: auto;
}
.joinus_form .form-row p {
  margin-bottom: 30px;
}

.joinus_form .form-submit .wpcf7-spinner {
  position: absolute;
}

.joinus_form .form-row .wpcf7-submit {
  background: var(--primary-color);
  color: #fff;
  padding: 15px 20px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  transition: 0.2s;
  width: 200px;
}

.joinus_form .form-row .wpcf7-submit:hover {
  background: var(--primary-color-hover);
  color: white;
  transform: translateY(-3px);
}

.wpcf7-not-valid-tip {
  position: absolute;
  font-size: 12px !important;
}

.wpcf7-response-output {
  margin-top: 0px !important;
}

.zonal_cord_item {
  padding: 30px 0px;
}

.zonal_cord_item.single_cord {
  width: 50%;
  float: left;
}

.zonal_cord_item .section-title {
  padding-bottom: 30px;
  font-size: 24px;
}

/* Become a jesuit page styles end */

/* Contact page styles start */

.official-card {
  background: #fff;
  padding: 20px;
  border-left: 4px solid #8b0000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform .3s ease;
  display: flex;
  justify-content: space-between;
  position: relative;
  height: 100%;
}

.official-card:hover {
  transform: translateY(-4px);
}

.dir-left {
  flex: 0 0 25%;
}

.dir-right {
  flex: 0 0 75%;
  padding-left: 15px;
}

.dir-photo img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.dir-role {
  color: var(--primary-color);
  font-size: 20px;
}

.dir_info {
  /*position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);*/
  opacity: 0;
  visibility: hidden;
  transition: .3s ease-in-out;
  padding-top: 10px;
}

.official-card:hover .dir_info {
  opacity: 1;
  visibility: visible;
  transform: translateY(-2px);
}

.dir_info .dir-contact {
  display: flex;
  gap: 6px;
  /*flex-direction: column;*/
}

.dir_info a {
  text-decoration: none;
  color: white;
}

.dir_info i {
  background-color: var(--primary-color);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  /*border-radius: 50px;*/
}

.dir-name {
  font-size: 18px;
}

.gap-t-20 {
  gap: 20px 0px;
}

/* Contact page styles end */

/* Gallery page styles start */

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.tab-btn {
  padding: 15px 24px;
  border: none;
  background: var(--primary-color);
  cursor: pointer;
  font-size: 0.9rem;
  color: white;
}

.tab-btn.active {
  background: #ffcc47;
  color: #000;
}

/* Panels */
.gallery-tab-panel {
  display: none;
}

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

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  transition: .3s ease-in-out;
}

.gallery-tabs-content .gallery-grid {
  gap: 40px 18px;
}

.gallery-item {
  display: flex;
  text-align: center;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  transition: transform .4s ease;
  border-radius: 12px;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery_title {
  position: relative;
  width: 70%;
  margin-top: 20px;
}

.gallery_title:hover {
  /*transform: translateX(-50%); !important;*/
}

/* Gallery page styles end */

/* Flyers page styles start */

.pdf-shelf-grid .df-app, 
.recent_depart .df-app {
  padding-bottom: 20px;
  height: 100% !important;
}

.df-bg {
  background-color: transparent !important;
}

.pdf-bookshelf {
  padding: 80px 0;
  background: #F7F2E9;
}

.pdf-shelf-grid {
  display: flex;
  /*grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));*/
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.pdf-book-card {
  text-align: center;
  text-decoration: none;
  background: var(--primary-color);
  flex: 1 0 18%;;
}

.pdf-open {
  text-decoration: none;
}

.pdf-cover {
  position: relative;
  /*border-radius: 12px;*/
  overflow: hidden;
  /*box-shadow: 0 15px 40px rgba(0,0,0,.2);*/
  transition: transform .3s ease, box-shadow .3s ease;
}

.pdf-cover img {
  width: 100%;
  display: block;
  height: 280px;
  object-fit: cover;
  object-position: top;
}

.pdf-book-card:hover .pdf-cover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
}

.pdf-title {
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0px;
  color: white;
}

/* Hide embedded viewers */
.pdf-hidden-viewer {
  display: none;
}

.pdf-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  z-index: 9999;
}

.pdf-lightbox-inner {
  position: relative;
  width: 90%;
  height: 90%;
  margin: auto;
  background: #111;
  border-radius: 16px;
  padding: 20px;
}

.pdf-lightbox iframe,
.pdf-lightbox canvas {
  height: 100% !important;
}

.pdf-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  z-index: 99;
}

/* Flyers page styles end */

/* Jubilarian page styles start */

.jubilarian-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #faf8f5, #ffffff);
}

.jubilarian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.jubilarian-card {
    text-align: center;
    padding: 20px 15px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    transition: transform .3s ease;
    flex: 0 0 47%;
}

.jubilarian-card:hover {
    transform: translateY(-6px);
}

.jubilarian-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #d4af37;
}

.jubilarian-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jubilarian-year {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 1px;
  color: #8b0000;
  margin-bottom: 6px;
}

.jubilarian-name {
  font-size: 22px;
  font-weight: 600;
  margin: 6px 0;
}

.jubilarian-occasion {
  font-size: 15px;
  color: #555;
}

.jubilee-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 50px;
  position: relative;
}

/* LEFT PANEL */
.jubilee-meta {
  position: sticky;
  top: 140px;
  text-align: right;
  padding-top: 25px;
}

.jubilee-number {
  font-size: 72px;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.jubilee-meta h2 {
  font-size: 28px;
  margin: 10px 0 6px;
}

.jubilee-meta p {
  font-size: 14px;
  color: #666;
}

/* RIGHT PANEL */
.jubilee-priests {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 25px 15px;
  flex-wrap: wrap;
}

/* COLOR THEMES */
.jubilee-row.gold .jubilee-number { color: #d4af37; }
.jubilee-row.silver .jubilee-number { color: #b5b5b5; }
.jubilee-row.ruby .jubilee-number { color: #9b111e; }

.jubilee-meta::before {
    content: attr(data-year);
    position: absolute;
    left: 0px;
    top: 20px;
    font-size: 140px;
    font-weight: 800;
    color: rgba(0,0,0,0.05);
    z-index: 0;
    pointer-events: none;
}

.jubilee-meta::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0px;
    width: 12px;
    height: 60px;
    background: currentColor;
}

.jubilee-row.gold { color: #d4af37; }
.jubilee-row.silver { color: #b5b5b5; }
.jubilee-row.ruby { color: #9b111e; }

/* Jubilarian page styles end */

/* Common page styles start */

.common_content h2, 
.common_content h3, 
.common_content h4 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Common page styles end */

/* Jesuit Life page styles start */

.embed_video {
  padding-top: 50px;
}

.embed_video iframe {
  width: 75%;
  height: 70vh;
  display: block;
  margin: auto;
  border-radius: 20px;
}

/* Jesuit Life page styles end */

/* Jesuit formation page styles start */

.formation_main .short_cont h3,
.bangla_main .short_cont h2,
.bangla_main .short_cont h1,
.long_txt h2,
.long_txt h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.formation-section {
  background: #f6f7f8;
}

.formation-header {
  max-width: 680px;
  margin-bottom: 70px;
}

.formation-header h2 {
  font-size: 42px;
  margin-bottom: 12px;
}

.formation-header p {
  font-size: 17px;
  color: #555;
}

/* FLOW */
.formation-flow {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* STEP */
.formation-step {
  /*display: flex;
  gap: 40px;*/
  position: relative;
  max-width: 75%;
  margin: auto;
}

/* LEFT MARKER */
.step-marker {
  flex: 0 0 80px;
  position: relative;
  padding-left: 50px;
  margin-bottom: 20px;
}

.step-marker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 50px;
  height: 2px;
  background: #b22824;
}

.step-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent, #b10021);
  color: #fff;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

/* CONTENT */
.step-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  padding: 36px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,.06);
}

.step-text h3 {
  font-size: 26px;
  margin-bottom: 6px;
}

.step-years {
  display: inline-block;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--accent, #b10021);
  margin-bottom: 14px;
}

.step-text p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

/* IMAGE */
.step-image img {
  width: 100%;
  height: 100%;
  max-height: 290px;
  object-fit: cover;
  border-radius: 14px;
}

/* ALTERNATE LAYOUT */
/*.formation-step:nth-child(even) .step-content {
  grid-template-columns: .9fr 1.1fr;
}*/

.formation-step:nth-child(even) .step-image {
  order: -1;
}

/* Jesuit formation page styles end */

/* Legacy page styles start */

.poster_images {
  padding-bottom: 40px !important;
}

.poster_gallery .poster_image {
  width: 80%;
  height: 80vh;
  margin: auto;
  border-radius: 20px;
}

.poster_gallery .poster_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.poster_images .swiper-pagination {
  bottom: 0 !important;
}

.poster_images .swiper-pagination .swiper-pagination-bullet {
  background: var(--primary-color);
}

/* Legacy page styles end */

/* Podcast page styles start */

.podcastSec {
  padding-bottom: 70px;
}

.podcast_list {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.podcast_item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  flex: 0 0 auto;
  width: 48%;
}

.podcast_item .podcast_video iframe {
  border-top-right-radius: 14px;
  border-top-left-radius: 14px;
  width: 100%;
}

.podcast_item .podcast_info {
  padding: 30px 20px;
}

.podcast_title {
  color: var(--primary-color);
}

/* Podcast page styles end */

/* Spirituality page styles start */

.spirit-sec .row:nth-child(even) .spirit_img {
  /*order: 2;*/
  padding-right: 0px;
}

.spirit-sec .row:nth-child(odd) .spirit_img {
  padding-left: 0px;
}

/* Spirituality page styles end */

/* Provice Members page styles start */

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 12px;
}

.member-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  background: white;
  transition: .3s ease-in-out;
}

.member-card:hover {
  background: var(--primary-color);
}
/*.member-card:before {
  content: '';
  background: var(--primary-color);
  width: 100%;
  height: 0px;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 12px;
  opacity: 0;
  transition: .3s ease-in-out;
  z-index: -1;
}

.member-card:hover:before {
  opacity: 1;
  height: 100%;
}*/

/*.member-grid .member-card:nth-child(-n+4) {
  order: 1;
}*/

.member-photo {
  /*border-radius: 50%;*/
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

.member-photo img {
  width: 100%;
  aspect-ratio: 4 / 4;
  object-fit: cover;
  /*border-radius: 50%;*/
  object-position: top;
}

.member-name {
  margin-top: 15px;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
}

.member-card:hover .member-name {
  color: white;
}

.pagination {
  display: flex;
  justify-content: center;
  list-style: none; /* remove list bullets */
  padding: 0px;
  padding-top: 30px;
}

.pagination .page-numbers {
  display: block; /* let links fill the list item */
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid gray;
  color: black;
  margin: 0 4px;
  border-radius: 5px; /* add rounded borders */
  transition: .3s ease-in-out;
}

.pagination .page-numbers.current, 
.pagination .page-numbers:hover  {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Provice Members page styles end */

/* Global jesuits page styles start */

.wwja-sections {
  background-color: #faf7f3;
}

.wwj_list {
  display: flex;
  /*align-items: center;*/
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.wwj_item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
  width: 24%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: .3s ease-in-out;
}

.wwj_item:hover {
  transform: translateY(-3px);
}

.wwj_item:hover .wwj-photo img {
  transform: scale(1.05);
}

.wwj-photo {
  display: flex;
  justify-content: center;
  padding: 20px;
  align-items: center;
}

.wwj-photo img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  transition: .3s ease-in-out;
}

.wwj-info {
  padding: 10px;
  background: #F7F2E9;
}

.wwj-info a {
  text-decoration: none;
  color: var(--primary-color);
  text-align: center;
}

.genvid_embed {
  margin: auto;
  display: block;
  width: 50%;
}

.genvid_embed iframe {
  border-radius: 12px;
}

.sjPage {
  background: #f7f3e9;
}

/* Departed members page styles start */

.dmember_list.swiper {
  /*display: flex;*/
  /*align-items: center;*/
  /*justify-content: center;*/
  /*gap: 20px;*/
  padding: 20px 10px;
}

.dmember_item {
  /*flex: 0 0 auto;*/
  /*max-width: 32%;*/
  display: flex;
  align-items: center;
  border-left: 0px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffd4d4, #f2efea);
  box-shadow: none;
}

.dmember_prof {
  flex: 1 0 35%;
}

.dmember_prof img {
  border-radius: 16px;
}

.dmember_cont {
  /*flex: 0 0 70%;*/
  padding-left: 15px;
}

.dmember_cont p, 
.dmember_prof p {
  font-size: 14px;
}

.dmember_cta a {
  font-size: 12px;
  display: block;
  text-align: center;
}

.memorial-table {
  background: #f6f5f2;
  padding: 80px 20px;
  font-family: "Georgia", serif;
}

.memorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

.memorial-cell {
  background: #F7F2E9;
  padding: 20px 18px;
  border-radius: 10px;
  border: 1px solid #e3e3e3;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.memorial-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.memorial-cell h3 {
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 6px;
  color: var(--primary-color);
}

.memorial-cell ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.memorial-cell li {
  font-size: 16px;
  padding: 6px 0;
  display: flex;
  /*justify-content: space-between;*/
  border-bottom: 1px dashed #b6b6b6;
  gap: 12px;
}

.memorial-cell li:last-child {
  border-bottom: none;
}

.memorial-cell span {
  color: #3939cc;
}

/*.memorial-cell b {
  width: 25px;
}*/

.memorial-cell span:first-child {
  width: 20px;
}
.memorial-cell span:last-child {
  margin-left: auto;
}

/* Highlight for current year */
.memorial-cell li.recent {
  background: #fff6d8;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Departed members page styels end */

/* Blogs page styles start */

.blogs-main {
  background: #faf7f3;
}

.blogs_grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.blog_item {
  flex: 0 0 auto;
  max-width: 32%;
}

/* Blogs page styles end */

/* 404 page styles start */

.not-found {
  padding-top: 120px;
  padding-bottom: 120px;
}

.not-found .page-title {
  font-size: 6rem;
  text-align: center;
  color: var(--primary-color);
  margin-top: 0px;
  margin-bottom: 50px;
}

.not-found .page-content p {
  font-size: 20px;
  text-align: center;
}

.not-found .page-content .cta a {
  width: max-content;
  margin: auto;
}

/* 404 page styles end */

/* Footer Columns */

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  /*max-width: 1300px;*/
  margin: auto;
  padding: 0 20px 50px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ddd;
  text-decoration: none;
  transition: 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-logo img {
  width: 240px;
}

.footer-about {
  margin-top: 15px;
  opacity: 0.8;
}

.contact li {
  color: #ccc;
  margin-bottom: 8px;
}

/* Bottom Strip */
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  opacity: 0.7;
}

.foot_bottom {
  justify-content: space-between;
}

.site_counter {
  display: flex;
  align-items: center;
  color: white;
  gap: 10px;
}

.footer-bottom a {
  color: #ffcc47;
  text-decoration: none;
}

/* Footer section */

/* Responsive design start */

@media (max-width: 1281px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .wwj_item {
    width: 23%;
  }
  .jesuits-wrapper {
    max-width: 90%;
  }
  .minisDesc {
    padding-right: 0px;
  }
  .mega-inner {
    gap: 20px;
  }
  .mega-menu {
    padding: 15px;
  }
  .mega-col ul li a, 
  .primary-menu li.menu-item-has-children > .sub-menu li a {
    font-size: 14px;
  }
  .cta-section-img.imgFocus {
    min-height: 430px;
  }
}

@media (min-width: 992px) {
  
  .primary-menu li.menu-item-has-children > .sub-menu li:hover {
    background: #f8f9fb;
  }

  .mega-menu.active, .primary-menu li.menu-item-has-children.active > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /*pointer-events: auto;*/
    transition: opacity .3s ease, transform .3s ease;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }

  /* Spirituality page styles start */

  .spirit-sec .spirit_img {
    flex: 0 0 auto;
    width: 33.3%;
  }

  .spirit-sec .spirit_info_col {
    flex: 0 0 auto;
    width: 66.6%;
  }

  .spirit-sec .row:nth-child(even) .spirit_img {
    order: 2; 
  }

  /* Spirituality page styles end */
}

@media (max-width: 991px) {

  .hamburger {
    display: flex;
  }

  #nav {
    /*display: none;*/
  }

  .main-nav {
    position: fixed;
    top: 88px;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #f6f2e8;
    transition: 0.5s ease;
    overflow-y: auto;
    z-index: 9;
    padding: 40px 20px !important;
  }

  .main-nav.nav ul.primary-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .primary-menu li.menu-item-has-children > a, 
  .primary-menu li.has-mega > a {
    width: 100%;
    display: block;
  }

  /*.main-nav.nav ul.primary-menu .sub-menu {
    height: 0px;
  }*/
  .main-nav.nav ul.primary-menu .sub-menu.submenu_open,
  .mega-menu.active {
    margin-top: 10px;
    height: 100%;
    opacity: 1;
    visibility: visible;
  }

  .mega-menu {
    top: 0;
    left: 100%;
    transition: .5s ease-in-out;
    z-index: 999;
    /*pointer-events: auto;*/
    margin-top: 0px !important;
    display: none;
  }

  .mega-menu.active {
    left: 0;
    display: block;
  }

  .minis_close {
    position: absolute;
    right: 20px;
    top: 10px;
  }

  .main-nav.nav ul.primary-menu .sub-menu {
    box-shadow: none;
    background: transparent;
    transition: .4s ease-in-out;
    position: relative;
    top: 0;
    left: 0;
    height: 0;
    max-height: 500px;
    padding: 0;
  }

  .primary-menu li.menu-item-has-children,
  .primary-menu li.has-mega {
    width: 100%;
  }

  .main-nav.nav_open {
    right: 0;
  }

  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /*.logo img {
    height: 65px;
  }*/

  .header-cta a {
    display: none;
  }

  .curia-intro, 
  .section-padding, 
  .provincial-message-section {
    padding: 60px 0px;
  }

  .jesuits-section {
    padding: 70px 0px;
  }

  .jesuits-wrapper,
  .related-ministry-grid,
  .joinus_form,
  .blog_item,
  article.event, 
  article.post {
    max-width: 100%;
  }

  .jesuits-image,
  .curia-sections .curia-section:nth-child(even) .curia-member,
  .curia-members .curia-member,
  .off_member, 
  .genvid_embed, 
  .podcast_item,
  .where-we-are-map,
  .where-we-are-sidebar { 
    width: 100%;
  }

  .jesuits-title, .jesuits-content h1 {
    font-size: 28px; 
  }

  .jesuits-description, .jesuits-content .content_wrap p {
    font-size: 16px; 
  }

  .pm-image-col {
    max-width: 100%;
    position: relative;
    top: 0;
  }

  .imgCol {
    padding-left: 0px !important;
    padding-right: 0px !important;
    order: -1;
  }

  .imgCol img {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }

  .founder-info-col {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
  }

  .formation-step .step-image {
    order: -1;
  }

  .step_btn a {
    display: block;
    width: max-content;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-form button {
    width: 100%;
  }

  .mvv-grid {
    grid-template-columns: 1fr;
  }

  .about_mv .mvv-grid .mvv-item {
    flex: 0 0 100%;
  }

  .provCuriaGrid, 
  .focus-area-grid,
  .mStatList,
  .curia-sections .curia-section:nth-child(even) .curia-member,
  .newsletter-form,
  .pm-wrapper, 
  .curia-members,
  .joinus_form .form-row {
    flex-direction: column;
  }

  .mStatList {
    gap: 50px;
    max-width: 100%;
  }

  .memorial-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .dmember_item {
    flex-direction: column;
    gap: 20px;
  }

  .gallery-grid { 
    grid-template-columns: repeat(3, 1fr); 
  }

  .formation-step {
    max-width: 95%;
  }

  .formation-flow {
    gap: 30px;
  }

  .where-we-are-layout {
    flex-direction: column-reverse;
  }

  .sticky_col {
    margin-top: 30px !important;
  }

  .gal_link a {
    width: auto;
  }

  .off_link a {
    display: block;
    width: max-content;
  }

  .pdf-book-card {
    flex: 1 0 100%;
  }

  .joinus_form .form-row {
    gap: 0px;
  }

  .joinus_form .form-row p {
    margin-bottom: 20px;
  }

  .wwj_item {
    width: 47%;
  }

  .foot_bottom {
    flex-direction: column;
    gap: 30px;
  }
	.newsletter .entry-content {
		max-width: 90% !important; 
	}

}

@media (max-width: 768px) {
  /*.inner-header-floating, .inner-header-bg {
      height: 280px;
  }*/

  .container-inner {
    max-width: 90%; 
  }

  .container-inner > .row {
    width: 100%;
    margin: auto;
  }

  .ihf-content-box {
    width: 90%;
    padding: 18px 22px;
    bottom: -60px;
  }

  .ihf-title {
    font-size: 26px;
  }

  .galleryList {
    grid-template-columns: repeat(2, 1fr);
  }

  .galleryList .galleryItem:nth-child(3n + 1) {
    grid-column: span 2;
  }

  .section-title { 
    font-size: 30px; 
  }

  .ministries-grid { 
    gap: 25px; 
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .formation-step,
  .baj_contact .curia-member {
    flex-direction: column;
  }

  .step-marker {
    display: none;
  }

  .step-content {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .jubilee-row {
    grid-template-columns: 1fr;
  }

  .jubilarian-card {
    flex: 0 0 100%;
  }

  .jubilee-meta {
    position: relative;
    /*text-align: left;*/
    top: 0;
    border-left: none;
    padding-left: 0;
  }

  .jubilee-meta::before {
    /*display: none;*/
  }

  .gallery-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }

  .baj_contact .curia-member {
    text-align: center;
  }

  .zonal_cord_item.single_cord {
    width: 100%;
    float: none;
  }
}

@media (max-width: 570px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-btn-primary,
  .cta-btn-outline {
    width: 100%;
  }

  .cta-img-inner h2 {
    font-size: 28px;
  }

  .galleryList {
    grid-template-columns: 1fr;
  }

  .galleryList .galleryItem:nth-child(3n + 1) {
    grid-column: span 1;
  }

  .gallery-grid { 
    grid-template-columns: 1fr; 
  }
}

@media (max-width: 380px) {
  .main-nav {
    padding: 24px 20px !important;
  }
}

/* Responsive design end */
