@charset "UTF-8";

/*
Theme Name: KASESE DIOCESE
Theme URI:
Author: Noreen Rugambwa
Author URI: https://wordpress.ug/
Description: The Catholic Diocese of Kasese
Text Domain: kasese
*/

/*
 * GLOBAL STYLES
*/
body {
	margin: 0;
    overflow-x: hidden;
}
.kaseseheader.elementor-section{
    position: absolute;
    top: 40px;
}
.kasese .number-percentage{
    color: transparent;
    -webkit-text-stroke: 2px #000000;
}
.ekit-double-btn svg{
	transform: rotate(45deg);
}
/*Custom slider*/
.custom-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slide-item::before {
    content: '';
    position: absolute;
    inset: 0; 
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.65) 10%,   
        rgba(0, 0, 0, 0.0) 60%   
    );

    transition: all 0.3s ease; 
}
.slide-image, .slide-item{
    position: relative;
}

.slide-image img{
	height:520px;
	object-fit: cover;
	width: 100%;
}
.slide-content {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 5;
    width: 80%;
    max-width: 700px;
}

/* Text styles */
.slider-title {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 10px;
}

.slider-description {
    font-size: 18px;
    line-height: 1.5;
}

/* Swiper Navigation Arrows Styling */
.custom-slider .swiper-button-prev,
.custom-slider .swiper-button-next {
    width: 48px;
    height: 48px;
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.25); 
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    color: #ed1d2b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.25s ease-in-out;
    font-size: 18px;
}

.custom-slider .swiper-button-prev svg,
.custom-slider .swiper-button-next svg{
    width: 25px;
    height: 25px;
}

.elementskit-post-image-card .elementskit-entry-header .elementskit-entry-thumb>img{
	height: 235px;
	object-fit: cover;
}
.elementskit-post-image-card{
	height: 390px;
}
.kasefooter{
	position: absolute;
	top: -88px;
}

.parishes-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 30px; 
}

.parishes-grid .parish-card {
    background: #f4f3f1;
    padding: 30px;
    border-radius: 0;
    position: relative;
    border-bottom: 4px solid #ED1D2B;
    transition: all .25s ease-in-out;
    box-sizing: border-box;
}
.parish-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


.parish-col-2 .parish-card-link { width: calc(50% - 30px); }
.parish-col-3 .parish-card-link { width: calc(33.333% - 30px); }
.parish-col-4 .parish-card-link { width: calc(25% - 30px); }


.parish-card:hover {
    background: #efeeec;
}

.parish-card h4 {
    margin: 0 0 16px 0;
    font-size: 24px;
    color: #000;
}

.parish-row {
    margin-bottom: 8px;
    font-size: 15px;
    color: #1a1a1a;
    display: flex;
    gap: 12px;
}

.parish-label {
    font-weight: 700;
}

.parish-meta {
    color: #333;
}

.parish-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 18px;
}

@media(max-width: 900px){
    .parishes-grid .parish-card-link { width: 100% !important; }
}


/* READ MORE link — teal + arrow */
.parish-readmore {
    margin-top: 18px;
    display: inline-block;
    color: #ED1D2B;
    font-weight: 600;
    letter-spacing: .3px;
    text-decoration: none;
}

.parish-readmore:hover {
    text-decoration: underline;
}

/* Bottom notch */
.parish-card:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 10px solid #ED1D2B;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}
.priests-directory-wrapper {
    width: 100%;
    margin-top: 20px;
}

.priests-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#priestSearch,
#priestFilter {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%;
    max-width: 300px;
}

.priests-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.priests-table thead {
    background: #ed1d2b;
    color: #fff;
}

.priests-table th,
.priests-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.priests-table tbody tr:hover {
    background: #f9f9f9;
}

.tag {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

/* AUTO COLOR ROLES */
.role-parish-priest { background: #0a7cff; }
.role-curate { background: #28a745; }
.role-seminarian { background: #ff9800; }
.role-deacon { background: #673ab7; }
.role-diocesan-officer { background: #e91e63; }

/* fallback */
.tag[class*="role-"] {
    background: #444;
}


/* Wrapper */
.ds-wrapper {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    max-width: 1000px;
    margin: auto;
}

/* Top Card */
.ds-top {
    position: relative;
    margin-bottom: 60px;
	display: flex;
	justify-content: center;
}

/* Horizontal line from bishop to multiple */
.ds-top::after {
    content: "";
    width: 81.5%;
    height: 3px;
    background: #ED1D2B;
    position: absolute;
    left: 52%;
    top: 114%;
    transform: translateX(-50%);
}

/* Vertical drop line from bishop */
.ds-top::before {
    content: "";
    width: 3px;
    height: 32px;
    background: #ED1D2B;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
}

/* Second Row Container */
.ds-second-row {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 in one row */
    gap: 40px;
    justify-items: center;
}

/* Each card gets a small vertical line upward */
.ds-second-row .ds-card {
    position: relative;
}

.ds-second-row .ds-card::before {
    content: "";
    width: 3px;
    height: 40px;
    background: #ED1D2B;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.ds-card {
    background: #F6ECAEB0;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 220px;
    transition: 0.3s ease;
}

/* Photo Styling */
.ds-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid #ED1D2B;
}

/* Titles */
.ds-card h3,
.ds-card h4 {
    margin: 5px 0;
    font-weight: 600;
    color: #333;
}

.ds-card p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .ds-second-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ds-second-row {
        grid-template-columns: 1fr;
    }

    .ds-card {
        width: 80%;
    }
}

/* Wrapper */
d.dcw-wrapper {
    text-align: center;
    margin: 40px auto;
    max-width: 1200px;
}

/* Header */
.dcw-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #222;
}

/* Grid */
.dcw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
    margin-top: 20px;
}

/* Cards */
.dcw-card {
    background:#ed1d2b08;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0px 4px 14px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    border: 1px solid #ed1d2b;
    position: relative;
}

.dcw-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 10px 22px rgba(0,0,0,0.12);
}

/* Roles */
.dcw-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ed1d2b;
    margin-bottom: 8px;
}

/* Names */
.dcw-card p {
    font-size: 18px;
    color: #555;
}

/* Responsive */
@media (max-width: 1024px) {
    .dcw-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dcw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dcw-card::after {
        left: 0%!important; 
        top: 100%!important; 
        transform: rotate(90deg)!important;
    }
}

@media (max-width: 480px) {
    .dcw-grid {
        grid-template-columns: 1fr;
    }
    .dcw-card::after {
        left: 0%!important; 
        top: 100%!important; 
        transform: rotate(90deg)!important;
    }
}

.dcw-card:not(:nth-child(4n))::after {
    content: "\f061"; 
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900; 
    position: absolute;
    right: -31px; 
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #ed1d2b;
    transition: color 0.3s ease;
}

/*Single parish page*/

.single-parishes {
    color: #333;
    background: #f9f9f9;
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Hero */
.hero-section {
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 10;
    padding: 0 20px;
    animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:not(.secondary) {
    background: #ed1d2b;
    color: #fff;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: #F6ECAE;
    color: #333;
    border-color: #F6ECAE;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: -80px;
    padding: 0 20px 50px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: 5px solid #ed1d2b;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

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

.card h3 {
    color: #ed1d2b;
    margin: 0px;
}
.card p{
    margin: 0px;
}
/* Schedule Grid */
.schedule-section {
    margin: 40px 0 50px;
    opacity: 1; 
    transform: translateY(0); 
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.schedule-item {
    background: #fff;
    border-radius: 10px;
    padding: 10px 20px 20px 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.schedule-item.primary {
    background: #ed1d2b;
    color: #fff;
}


.schedule-item h4 {
    margin: 0px 0px 15px 0px;
}
.schedule-item p{
    margin: 0px;
}
/* Parish Content */
.parish-content {
    margin: 50px 0;
    line-height: 1.8;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
}
.parish-contents{
    display: flex;
    gap: 50px;
}
/* Priest Card */
.priest-section {
    padding: 50px 20px;
    opacity: 0;
    transform: translateY(20px);
}

.priest-section h2 {
    text-align: center;
    font-family: 40px;
    font-size: 2rem;
    margin-bottom: 40px;
}

.priest-card {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 30px;
    transition: transform 0.3s;
}

.priest-card:hover {
    transform: translateY(-5px);
}

.priest-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #F6ECAE;
}

.priest-info h3 {
    font-family: 20px;
    font-size: 1.5rem;
    margin:0px;
}

.priest-title {
    font-style: italic;
    color: #ed1d2b;
    margin: 0px;
}

.priest-bio, .priest-email a {
    margin-top: 8px;
    color: #333;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeInUp 0.7s ease forwards;
}

/* Delay for staggered effect */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.schedule-item { animation-delay: 0.3s; }
.parish-content { animation-delay: 0.4s; }
.priest-section { animation-delay: 0.5s; }

/* Responsive */
@media(max-width:768px){
    .priest-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
}

.event-style-posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.event-style-post {
    display: grid;
    grid-template-columns: 120px 1fr 350px;
    align-items: stretch;
    background:#F3F3F3;
    padding: 20px;
    border-bottom: 4px solid #299F38;
    position: relative;
}

.event-date-box {
    background: #fff;
    text-align: center;
    padding: 25px 10px;
    border-right: 1px solid #ddd;
    height: fit-content;
}

.event-date-box .day {
    font-size: 42px;
    color: #299F38;
    font-weight: bold;
    line-height: 1;
}

.event-date-box .month {
    font-size: 22px;
    margin-top: 5px;
    color: #299F38;
}

.event-date-box .time {
    margin-top: 20px;
    font-size: 16px;
    color: #000;
}

.event-content {
    padding: 0 30px;
}

.event-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #111;
    margin-bottom: 20px;
}

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

.event-read-more {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    color: #ed1d2b;
    position: relative;
}

.event-read-more::after {
    content: "";
    width: 100%;
    height: 4px;
    background: #ed1d2b;
    position: absolute;
    left: 0;
    bottom: -10px;
}

.event-read-more::before {
    content: "";
    width: 15px;
    height: 15px;
    background: #ed1d2b;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    bottom: -17px;
}

.diocese-projects-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 0px 20px 20px 20px;
}

.project-content h3 {
    color: #000;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.status-text {
    font-weight: 500;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-indicator {
    height: 100%;
    background: #F6ECAE;
}

.ongoing-project .progress-bar {
    display: none;
}

.ongoing-project .status-text {
    color: #299F38;
}

.cta-link {
    padding: 12px;
    text-align: center;
    background: #ed1d2b;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    transition: .3s;
}

.cta-link:hover {
    background: #F6ECAE;
    color: #000;
}
