/* Public Website - Diocesan Management System */

:root {
    --dio-primary: #102a43;
    --dio-accent: #c4a35a;
    --dio-dark: #0b1c2c;
    --dio-ink: #1b2838;
    --dio-muted: #5c6b7a;
    --dio-paper: #f3efe6;
    --dio-gold-soft: rgba(196, 163, 90, 0.22);
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dio-ink);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #faf8f4;
}

body.public-home {
    background: #f7f4ee;
}

.main-content {
    flex: 1 0 auto;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
}

.public-nav-logo {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.public-nav-cross {
    font-size: 1.35rem;
    color: var(--dio-accent);
}

.public-nav-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.public-nav .nav-link {
    font-weight: 500;
    font-size: 0.92rem;
}

.nav-link.active {
    color: var(--dio-accent) !important;
    font-weight: 600;
}

.nav-link:hover {
    color: rgba(255,255,255,0.9) !important;
}

.public-nav-login {
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--dio-accent);
    color: #1a1408;
    border: 0;
}

.public-nav-login:hover,
.public-nav-login:focus {
    background: #d4b56e;
    color: #1a1408;
}

.public-nav-home {
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.public-nav-home .navbar-brand,
.public-nav-home .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
}

.public-nav-home .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.public-nav-home .navbar-toggler-icon {
    filter: invert(1) brightness(1.4);
}

.public-nav-home.is-scrolled {
    background: rgba(11, 28, 44, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(8, 18, 28, 0.28);
}

.public-nav-home:not(.is-scrolled) .public-nav-login {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.public-nav-home:not(.is-scrolled) .public-nav-login:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

/* Hero Carousel - full window width, any image size */
.hero-carousel {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    height: 100%;
    position: relative;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel .hero-slide-img {
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-carousel .carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem;
    text-align: left;
}

.hero-carousel .carousel-caption h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
}

.hero-carousel .carousel-caption p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.hero-placeholder {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

/* Sections */
.section-title {
    font-weight: 700;
    color: var(--dio-primary);
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--dio-accent);
    margin-top: 0.5rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Deanery cards */
.deanery-card {
    border-left: 4px solid var(--dio-accent);
}

/* News/Events */
.news-card .card-img-top {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.event-date-badge {
    width: 60px;
    text-align: center;
    background: var(--dio-primary);
    color: #fff;
    border-radius: 8px;
    padding: 0.5rem;
}

.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 0.75rem;
}

/* Contact */
.contact-info-card {
    background: var(--dio-primary);
    color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
}

.contact-info-card i {
    font-size: 1.05rem;
    opacity: 0.9;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-info-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.contact-info-value {
    padding-left: 1.5rem;
    font-size: 0.98rem;
    line-height: 1.45;
    word-break: break-word;
}

.contact-info-value a {
    text-decoration: none;
}

.contact-info-value a:hover,
.contact-info-value a:focus {
    text-decoration: underline;
}

.map-container {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.footer {
    flex-shrink: 0;
    color: var(--footer-fg, #fff);
}

.footer-title,
.footer-copy,
.footer-muted {
    color: var(--footer-fg, #fff);
}

.footer-muted,
.footer-copy {
    color: var(--footer-muted, rgba(255, 255, 255, 0.9));
}

.footer-links li + li {
    margin-top: 0.35rem;
}

.footer-links-horizontal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links-horizontal .footer-link {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.85rem 0.15rem 0;
    white-space: nowrap;
}

.footer-links-horizontal .footer-link:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 0.85em;
    margin-left: 0.85rem;
    background: var(--footer-border, rgba(255, 255, 255, 0.35));
}

.footer-link {
    color: var(--footer-muted, rgba(255, 255, 255, 0.9));
    text-decoration: none;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--footer-fg, #fff);
    text-decoration: underline;
}

.footer-rule {
    border: 0;
    border-top: 1px solid var(--footer-border, rgba(255, 255, 255, 0.35));
    opacity: 1;
}

.footer-dropdown-btn {
    color: var(--footer-fg, #fff);
    border-color: var(--footer-border, rgba(255, 255, 255, 0.35));
    background: transparent;
}

.footer-dropdown-btn:hover,
.footer-dropdown-btn:focus,
.footer-dropdown-btn:active {
    color: var(--footer-fg, #fff);
    border-color: var(--footer-fg, #fff);
    background: transparent;
}

.footer-heading-logo {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border: 1px solid var(--footer-border, rgba(255, 255, 255, 0.35));
    background: rgba(255, 255, 255, 0.08);
}

/* Homepage */
.home-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
    margin-top: -4.5rem;
}

.home-hero-media {
    position: absolute;
    inset: 0;
    background-image: var(--home-hero-image);
    background-size: cover;
    background-position: center 35%;
    transform: scale(1.04);
    animation: homeHeroDrift 28s ease-in-out infinite alternate;
}

.home-hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 18, 28, 0.55) 0%, rgba(8, 18, 28, 0.28) 38%, rgba(8, 18, 28, 0.78) 100%),
        radial-gradient(ellipse at 20% 20%, rgba(196, 163, 90, 0.18), transparent 45%);
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 2.5rem));
    margin: 0 auto 5.5rem;
    padding: 0 0.25rem;
    animation: homeHeroRise 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 6vw, 4.1rem);
    font-weight: 600;
    line-height: 1.05;
    margin: 0 0 0.85rem;
    letter-spacing: 0.01em;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.home-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3.2vw, 2.15rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.25;
    margin: 0 0 0.85rem;
    max-width: 18ch;
    color: rgba(255, 248, 235, 0.96);
}

.home-hero-lead {
    font-size: clamp(0.98rem, 1.6vw, 1.12rem);
    line-height: 1.55;
    max-width: 36rem;
    margin: 0 0 1.6rem;
    color: rgba(255, 255, 255, 0.86);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-btn:hover {
    transform: translateY(-2px);
}

.home-btn-primary {
    background: var(--dio-accent);
    color: #1a1408;
}

.home-btn-primary:hover {
    background: #d4b56e;
    color: #1a1408;
}

.home-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.home-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.home-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    z-index: 2;
    width: 28px;
    height: 44px;
    margin-left: -14px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.home-hero-scroll span {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    animation: homeScrollPulse 1.6s ease-in-out infinite;
}

.home-section {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.home-section-head {
    max-width: 38rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.home-section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.65rem);
    font-weight: 600;
    color: var(--dio-primary);
    margin: 0 0 0.7rem;
}

.home-section-head p {
    margin: 0;
    color: var(--dio-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.home-life {
    background:
        radial-gradient(circle at top right, var(--dio-gold-soft), transparent 42%),
        linear-gradient(180deg, #f7f4ee 0%, #efe9dc 100%);
}

.home-life-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
}

.home-life-item {
    padding: 0.35rem 0.25rem;
}

.home-life-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(16, 42, 67, 0.08);
    color: var(--dio-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.home-life-item h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    margin: 0 0 0.45rem;
    color: var(--dio-primary);
}

.home-life-item p {
    margin: 0;
    color: var(--dio-muted);
    line-height: 1.6;
}

.home-presence {
    position: relative;
    overflow: hidden;
    color: #f8f5ff;
    background:
        radial-gradient(circle at 12% 18%, rgba(196, 181, 253, 0.45), transparent 42%),
        radial-gradient(circle at 88% 78%, rgba(167, 139, 250, 0.38), transparent 46%),
        linear-gradient(145deg, #4c1d95 0%, #6d28d9 48%, #5b21b6 100%);
}

.home-presence::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 40%, rgba(76, 29, 149, 0.25)),
        linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 55%);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    pointer-events: none;
}

.home-presence > .container {
    position: relative;
    z-index: 1;
}

.home-presence-wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.home-presence-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.55rem);
    font-weight: 600;
    margin: 0 0 0.9rem;
}

.home-presence-copy > p {
    color: rgba(248, 245, 255, 0.86);
    line-height: 1.65;
    margin: 0 0 1.2rem;
}

.home-presence-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
}

.home-presence-list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.65rem;
    color: rgba(248, 245, 255, 0.9);
}

.home-presence-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: rgba(237, 233, 254, 0.95);
    box-shadow: 0 0 12px rgba(196, 181, 253, 0.7);
}

.home-presence-panel {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    padding: 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 18px 40px rgba(49, 10, 101, 0.28);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    overflow: hidden;
}

.home-presence-glow {
    position: absolute;
    inset: auto auto -20% -10%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 180, 254, 0.45), transparent 70%);
    pointer-events: none;
}

.home-presence-panel blockquote {
    position: relative;
    z-index: 1;
    margin: 0;
}

.home-presence-panel blockquote p {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    font-style: italic;
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

.home-presence-panel cite {
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ede9fe;
}

.home-serve {
    background: #faf8f4;
}

.home-serve-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.home-serve-link {
    display: block;
    padding: 1.35rem 1.2rem 1.45rem;
    text-decoration: none;
    color: inherit;
    border-top: 2px solid var(--dio-accent);
    background: transparent;
    transition: background 0.25s ease, transform 0.25s ease;
}

.home-serve-link:hover {
    background: rgba(16, 42, 67, 0.04);
    transform: translateY(-3px);
    color: inherit;
}

.home-serve-kicker {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dio-accent);
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.home-serve-link strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dio-primary);
    margin-bottom: 0.45rem;
}

.home-serve-link span:last-child {
    display: block;
    color: var(--dio-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.home-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 80% 18%, rgba(216, 180, 254, 0.42), transparent 42%),
        radial-gradient(circle at 18% 86%, rgba(167, 139, 250, 0.35), transparent 48%),
        linear-gradient(125deg, #5b21b6 0%, #7c3aed 45%, #4c1d95 100%);
}

.home-cta::before {
    content: '';
    position: absolute;
    inset: 12% 8%;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 20px 50px rgba(49, 10, 101, 0.28);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    pointer-events: none;
}

.home-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}

.home-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.4vw, 2.5rem);
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.home-cta p {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.home-cta .home-hero-actions {
    justify-content: center;
}

.home-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.home-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes homeHeroDrift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes homeHeroRise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

@keyframes homeScrollPulse {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

@media (max-width: 991.98px) {
    .home-life-grid,
    .home-serve-rail,
    .home-presence-wrap {
        grid-template-columns: 1fr;
    }

    .home-hero-inner {
        margin-bottom: 4.5rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero {
        margin-top: -3.75rem;
    }

    .public-nav-name {
        max-width: 11rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-media,
    .home-hero-inner,
    .home-hero-scroll span,
    .home-reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1;
        transform: none;
    }
}

.home-welcome {
    padding: 4rem 0;
}

.home-welcome-image {
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.home-news-events {
    padding: 4rem 0;
    padding-bottom: 5rem;
}

.home-news-events .card {
    border-radius: 12px;
    overflow: hidden;
}

.home-news-events .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.home-news-events .news-card .card-img-top {
    height: 140px;
    object-fit: cover;
}

/* About Page */
.about-page-header {
    background: linear-gradient(135deg, var(--dio-primary) 0%, var(--dio-dark) 100%);
    color: #fff;
    padding: 3rem 0;
    margin-bottom: 0;
}

/* Shared About / Contact hero with system logo banner */
.public-page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: clamp(220px, 38vw, 340px);
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 45%, #102a43 100%);
}

.public-page-hero-media {
    position: absolute;
    inset: 0;
    background-image: var(--public-hero-image, none);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.public-page-hero.has-banner .public-page-hero-media {
    filter: saturate(1.05);
}

.public-page-hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(16, 10, 40, 0.78), rgba(76, 29, 149, 0.55) 55%, rgba(16, 42, 67, 0.72)),
        radial-gradient(circle at 85% 20%, rgba(216, 180, 254, 0.28), transparent 42%);
}

.public-page-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.35rem;
    flex-wrap: wrap;
    width: 100%;
    padding: 2.75rem 0.75rem 2.5rem;
}

.public-page-hero-logo {
    width: clamp(4.5rem, 12vw, 6.5rem);
    height: clamp(4.5rem, 12vw, 6.5rem);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.public-page-hero-copy {
    flex: 1 1 16rem;
    min-width: 0;
}

.public-page-hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 0.55rem;
    font-weight: 600;
}

.public-page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.55rem;
    letter-spacing: -0.01em;
}

.public-page-hero-lead {
    margin: 0;
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.02rem;
    line-height: 1.55;
}

.about-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.about-page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
    letter-spacing: -0.02em;
}

.about-page-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin: 0;
}

.about-content {
    padding-top: 3rem;
}

/* Privacy Policy */
.privacy-content {
    max-width: 52rem;
}

.privacy-intro {
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.privacy-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.privacy-trust-item {
    padding: 1rem 0.85rem;
    border-top: 2px solid var(--dio-accent);
    background: rgba(16, 42, 67, 0.03);
}

.privacy-trust-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--dio-primary);
    margin-bottom: 0.35rem;
}

.privacy-trust-item span {
    display: block;
    color: var(--dio-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--dio-primary);
    margin: 0 0 0.75rem;
}

.privacy-section p,
.privacy-section li {
    color: #334155;
    line-height: 1.65;
}

.privacy-section ul {
    padding-left: 1.2rem;
    margin-bottom: 0.85rem;
}

.privacy-section li + li {
    margin-top: 0.35rem;
}

.privacy-contact-box {
    padding: 1.35rem 1.25rem;
    border: 1px solid rgba(16, 42, 67, 0.12);
    background: linear-gradient(160deg, rgba(76, 29, 149, 0.06), rgba(16, 42, 67, 0.03));
}

@media (max-width: 991.98px) {
    .privacy-trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .privacy-trust-strip {
        grid-template-columns: 1fr;
    }
}

.reg-stepper {
    list-style: none;
    display: flex;
    gap: 0.35rem;
    padding: 0;
    margin: 0 0 1.75rem;
    counter-reset: none;
}
.reg-stepper-item {
    flex: 1;
    position: relative;
    min-width: 0;
}
.reg-stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.05rem;
    left: calc(50% + 1.15rem);
    right: calc(-50% + 1.15rem);
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.reg-stepper-item.is-done:not(:last-child)::after,
.reg-stepper-item.is-active:not(:last-child)::after {
    background: var(--dio-primary, #2c3e50);
}
.reg-stepper-btn {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 1;
}
.reg-stepper-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.reg-stepper-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.25;
}
.reg-stepper-item.is-active .reg-stepper-num {
    border-color: var(--dio-primary, #2c3e50);
    background: var(--dio-primary, #2c3e50);
    color: #fff;
}
.reg-stepper-item.is-active .reg-stepper-label {
    color: #0f172a;
}
.reg-stepper-item.is-done .reg-stepper-num {
    border-color: var(--dio-primary, #2c3e50);
    background: var(--dio-primary, #2c3e50);
    color: #fff;
}
.reg-stepper-item.is-done .reg-stepper-label {
    color: #334155;
}
@media (max-width: 575.98px) {
    .reg-stepper-label {
        font-size: 0.68rem;
    }
    .reg-stepper-item:not(:last-child)::after {
        display: none;
    }
}

.registration-hero {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 45%), linear-gradient(135deg, #1f2d3f 0%, #162032 100%);
}

.registration-hero .badge {
    letter-spacing: .08em;
}

.registration-hero-summary {
    min-height: 168px;
}

.plan-cycle-option {
    display: block;
    cursor: pointer;
    margin: 0;
    position: relative;
}
.plan-cycle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.plan-cycle-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    min-height: 4.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 1rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.plan-cycle-check {
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}
.plan-cycle-icon-on {
    display: none;
}
.plan-cycle-title {
    display: block;
    font-weight: 700;
    color: #0f172a;
}
.plan-cycle-option input:checked + .plan-cycle-card {
    border-color: var(--dio-primary, #2c3e50);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--dio-primary, #2c3e50) 18%, transparent);
    background: color-mix(in srgb, var(--dio-primary, #2c3e50) 6%, #fff);
}
.plan-cycle-option input:checked + .plan-cycle-card .plan-cycle-icon-off {
    display: none;
}
.plan-cycle-option input:checked + .plan-cycle-card .plan-cycle-icon-on {
    display: inline-block;
    color: var(--dio-primary, #2c3e50);
}
.plan-cycle-option input:focus-visible + .plan-cycle-card {
    outline: 2px solid var(--dio-primary, #2c3e50);
    outline-offset: 2px;
}
.border-dashed {
    border-style: dashed !important;
}

.pricing-preview-card {
    border-color: rgba(0,0,0,0.08);
}

.price-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.price-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dio-primary);
}

.pricing-summary-card {
    background: rgba(255,255,255,0.95);
}

.about-image-placeholder {
    min-height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,0.16);
    background: linear-gradient(135deg, rgba(201,162,39,0.95), rgba(44,62,80,0.98));
    display: grid;
    place-items: center;
    color: #fff;
}

.about-image-placeholder .display-6 {
    font-weight: 700;
}

.about-feature-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.about-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.about-intro .about-text {
    max-width: 60ch;
}

.about-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.about-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.about-card-mission .about-card-icon {
    background: rgba(44, 62, 80, 0.1);
    color: var(--dio-primary);
}

.about-card-vision .about-card-icon {
    background: rgba(201, 162, 39, 0.15);
    color: var(--dio-accent);
}

.about-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dio-primary);
    margin-bottom: 0.75rem;
}

.about-card-text {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.about-bishop-section {
    margin-top: 2rem;
}

.about-bishop-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--dio-primary) 0%, var(--dio-dark) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.2);
}

.about-bishop-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.about-bishop-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin: 0 0 0.25rem;
}

.about-bishop-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.about-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--dio-primary);
}

@media (max-width: 768px) {
    .about-page-header {
        padding: 2rem 0;
    }

    .about-bishop-card {
        flex-direction: column;
        text-align: center;
    }

    .about-intro .about-text {
        max-width: none;
    }
}

/* News Detail Page */
.news-detail-header {
    background: linear-gradient(135deg, var(--dio-primary) 0%, var(--dio-dark) 100%);
    color: #fff;
    padding: 1.5rem 0;
}

.news-detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.news-detail-hero {
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.news-detail-hero-img {
    width: 100%;
    max-height: 380px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.news-detail-content {
    background: #fff;
}

.news-detail-article {
    max-width: 720px;
    margin: 0 auto;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-detail-date {
    font-size: 0.9rem;
    color: var(--dio-primary);
    font-weight: 500;
}

.news-detail-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--dio-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.news-detail-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.news-detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.news-detail-body p {
    margin-bottom: 1rem;
}

.news-detail-footer .border-top {
    border-color: rgba(0,0,0,0.08) !important;
}

/* Deanery Detail Page */
.deanery-detail-header {
    background: linear-gradient(135deg, var(--dio-primary) 0%, var(--dio-dark) 100%);
    color: #fff;
    padding: 1.5rem 0;
}

.deanery-detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

.deanery-detail-hero {
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.deanery-detail-hero-img {
    width: 100%;
    max-height: 380px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.deanery-detail-content {
    background: #fff;
}

.deanery-detail-article {
    max-width: 800px;
    margin: 0 auto;
}

.deanery-detail-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--dio-primary);
    margin-bottom: 0.5rem;
}

.deanery-detail-location {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.deanery-detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.deanery-detail-parishes {
    font-size: 1rem;
    color: var(--dio-primary);
    margin-top: 1rem;
}

.deanery-parishes-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dio-primary);
    margin-bottom: 1rem;
}

.deanery-detail-footer .border-top {
    border-color: rgba(0,0,0,0.08) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-carousel .carousel-caption {
        padding: 1rem;
    }
}
