/* =========================================================
   ROOT
========================================================= */

:root {

    --primary: #123b63;
    --primary-dark: #0b2947;
    --primary-light: #1d557f;

    --blue-soft: #eaf3fa;
    --blue-lighter: #f5f9fc;

    --gold: #c9a44c;
    --gold-light: #e3c878;

    --white: #ffffff;
    --black: #101820;

    --text: #333d47;
    --text-light: #68737e;

    --border: #dbe5ed;

    --shadow: 0 12px 35px rgba(18, 59, 99, 0.12);

    --transition: 0.3s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.7;

    width: 100%;
    max-width: 100%;
    min-height: 100%;

    margin: 0;
    padding: 0;

    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
    image-rendering: auto;
}

section {
    width: 100%;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    max-width: 100%;

    z-index: 1000;

    background: rgba(11, 41, 71, 0.97);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-container {
    width: 100%;

    max-width: 1400px;

    margin: auto;

    padding: 12px 5%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 13px;

    flex-shrink: 0;
}

.site-logo {
    width: 54px;
    height: 54px;

    object-fit: contain;

    border-radius: 50%;

    background: white;

    padding: 3px;
}

.logo-text h1 {
    color: white;

    font-family: 'Playfair Display', serif;

    font-size: 18px;

    line-height: 1.2;
}

.logo-text span {
    color: var(--gold-light);

    font-size: 10px;

    letter-spacing: 1px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar {
    display: flex;

    align-items: center;

    gap: 5px;
}

.navbar > a,
.nav-dropdown-btn {
    color: white;

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    padding: 10px 12px;

    border: none;

    background: transparent;

    cursor: pointer;

    transition: var(--transition);
}

.navbar > a:hover,
.nav-dropdown-btn:hover {
    color: var(--gold-light);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn i {
    margin-left: 5px;

    font-size: 9px;
}

.dropdown-content {
    position: absolute;

    top: calc(100% + 8px);

    left: 0;

    min-width: 190px;

    background: white;

    border-radius: 8px;

    box-shadow: var(--shadow);

    padding: 8px;

    opacity: 0;

    visibility: hidden;

    transform: translateY(8px);

    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.dropdown-content a {
    display: block;

    padding: 9px 12px;

    font-size: 12px;

    color: var(--text);

    border-radius: 5px;
}

.dropdown-content a:hover {
    background: var(--blue-soft);

    color: var(--primary);
}

.menu-toggle {
    display: none;

    border: none;

    background: transparent;

    color: white;

    font-size: 22px;

    cursor: pointer;
}


/* =========================================================
   HERO
   FULL-WIDTH FIX
========================================================= */

.hero {
    position: relative;

    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;

    height: 100vh;
    min-height: 650px;

    margin: 0;

    left: 50%;
    right: 50%;

    margin-left: -50vw;
    margin-right: -50vw;

    background:
        linear-gradient(
            90deg,
            rgba(8, 35, 60, 0.88),
            rgba(18, 59, 99, 0.52)
        ),
        url("images/hero.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    display: flex;

    align-items: center;

    overflow: hidden;

    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;
}

.hero-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 1400px;

    margin: auto;

    padding: 0 8%;

    color: white;

    box-sizing: border-box;
}

.hero-small {
    color: var(--gold-light);

    font-size: 13px;

    letter-spacing: 4px;

    font-weight: 700;

    margin-bottom: 15px;
}

.hero h2 {
    font-family: 'Playfair Display', serif;

    font-size: clamp(48px, 7vw, 88px);

    line-height: 1.05;

    margin-bottom: 25px;
}

.hero h2 span {
    color: var(--gold-light);
}

.hero-content > p:not(.hero-small) {
    font-size: 17px;

    margin-bottom: 30px;

    opacity: 0.9;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-btn,
.secondary-btn {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 12px 22px;

    border-radius: 5px;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.7px;

    transition: var(--transition);
}

.primary-btn {
    background: var(--gold);

    color: white;
}

.primary-btn:hover {
    background: var(--gold-light);

    transform: translateY(-2px);
}

.secondary-btn {
    background: var(--primary);

    color: white;
}

.secondary-btn:hover {
    background: var(--primary-light);

    transform: translateY(-2px);
}


/* =========================================================
   COMMON
========================================================= */

.section {
    width: 100%;

    padding: 100px 7%;
}

.section-heading {
    text-align: center;

    max-width: 750px;

    margin: 0 auto 55px;
}

.section-heading > span,
.section-label {
    display: block;

    color: var(--gold);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;

    margin-bottom: 9px;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;

    font-size: clamp(34px, 4vw, 48px);

    color: var(--primary);

    line-height: 1.2;
}

.section-heading p {
    margin-top: 15px;

    color: var(--text-light);

    font-size: 14px;
}

.heading-line,
.gold-line {
    width: 55px;

    height: 3px;

    background: var(--gold);

    margin: 18px auto 0;
}

.gold-line {
    margin: 15px 0 25px;
}


/* =========================================================
   VOICE SECTIONS
========================================================= */

.voice-section {
    width: 100%;

    padding: 95px 7%;

    background: var(--blue-lighter);
}

.voice-section:nth-of-type(even) {
    background: white;
}

.section-container {
    width: 100%;

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    align-items: center;

    gap: 80px;
}

.voice-image {
    display: flex;

    justify-content: center;
}

.voice-image img {
    width: 390px;

    height: 440px;

    object-fit: cover;

    border-radius: 8px;

    box-shadow: 0 18px 45px rgba(18,59,99,0.18);

    backface-visibility: hidden;

    transform: translateZ(0);
}

.voice-content h2 {
    font-family: 'Playfair Display', serif;

    color: var(--primary);

    font-size: 42px;

    line-height: 1.2;

    margin-bottom: 5px;
}

.voice-content h3 {
    font-family: 'Playfair Display', serif;

    color: var(--primary);

    font-size: 25px;

    margin-bottom: 4px;
}

.designation {
    color: var(--gold);

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 4px;
}

.voice-content p:not(.designation) {
    color: var(--text-light);

    font-size: 14px;

    margin-bottom: 15px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    background: white;
}

.about-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.about-grid-four {
    grid-template-columns: repeat(4, 1fr);
}

.about-card {
    text-align: center;

    padding: 40px 25px;

    border: 1px solid var(--border);

    border-radius: 9px;

    transition: var(--transition);

    background: white;
}

.about-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow);

    border-color: transparent;
}

.about-link-card {
    cursor: pointer;
}

.icon-box {
    width: 62px;

    height: 62px;

    margin: auto auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--blue-soft);

    color: var(--primary);

    font-size: 22px;
}

.about-card h3 {
    color: var(--primary);

    margin-bottom: 10px;
}

.about-card p {
    color: var(--text-light);

    font-size: 13px;
}

.card-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 17px;

    color: var(--gold);

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   REXCO + ADVISORS
========================================================= */

.rexco-section {
    background: white;
}

.advisors-section {
    background: var(--blue-lighter);
}

.rexco-grid{
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: 25px;
}
.advisors-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 25px;
}

.rexco-card,
.advisor-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 9px;

    overflow: hidden;

    cursor: pointer;

    transition: var(--transition);

    text-align: center;
}

.rexco-card:hover,
.advisor-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--shadow);

    border-color: transparent;
}

.rexco-photo,
.advisor-photo {
    width: fit-content;

    height: fit-content;

    object-fit: cover;

    aspect-ratio: 4 / 5;
}

.rexco-info,
.advisor-info {
    padding: 18px 12px;
}

.rexco-info h3,
.advisor-info h3 {
    font-family: 'Playfair Display', serif;

    color: var(--primary);

    font-size: 17px;

    margin-bottom: 5px;
}

.rexco-info p,
.advisor-info p {
    color: var(--gold);

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    line-height: 1.5;
}

.rexco-info small,
.advisor-info small {
    display: block;

    color: var(--text-light);

    margin-top: 5px;

    font-size: 11px;
}


/* =========================================================
   DIOCESES
========================================================= */

.dioceses-section {
    background: var(--blue-lighter);
}

.dioceses-grid {
    max-width: 1200px;

    margin: auto;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 20px;
}

.diocese-card {
    flex: 0 0 calc((100% - 80px) / 5);

    min-height: 150px;

    padding: 25px 15px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: white;

    cursor: pointer;

    text-align: center;

    transition: var(--transition);
}

.diocese-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow);

    border-color: var(--gold);
}

.diocese-card i {
    color: var(--gold);

    font-size: 25px;

    margin-bottom: 12px;
}

.diocese-card h3 {
    color: var(--primary);

    font-family: 'Playfair Display', serif;

    font-size: 18px;
}

.diocese-card span {
    display: block;

    color: var(--text-light);

    font-size: 10px;

    margin-top: 5px;
}


/* =========================================================
   EVENTS
========================================================= */

.events-section {
    background: white;
}

.events-grid {
    max-width: 1050px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.event-card {
    display: flex;

    gap: 25px;

    padding: 30px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: white;

    box-shadow: 0 5px 20px rgba(18,59,99,0.05);
}

.event-date {
    min-width: 70px;

    height: 80px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background: var(--primary);

    color: white;

    border-radius: 7px;
}

.event-date span {
    font-size: 28px;

    font-weight: 700;

    line-height: 1;
}

.event-date small {
    color: var(--gold-light);

    font-weight: 700;
}

.event-tag {
    color: var(--gold);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;
}

.event-content h3 {
    font-family: 'Playfair Display', serif;

    color: var(--primary);

    font-size: 24px;
}

.event-content p {
    color: var(--text-light);

    font-size: 12px;

    margin: 8px 0 18px;
}


/* =========================================================
   PAST EVENTS
========================================================= */

.past-events-section {
    background: var(--blue-lighter);
}

.past-events-grid {
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.simple-event-card {
    padding: 35px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 9px;

    text-align: center;
}

.simple-event-card i {
    font-size: 30px;

    color: var(--gold);

    margin-bottom: 15px;
}

.simple-event-card h3 {
    color: var(--primary);

    font-family: 'Playfair Display', serif;
}

.simple-event-card p {
    color: var(--text-light);

    font-size: 13px;
}


/* =========================================================
   MINISTRIES
========================================================= */

.ministries-section {
    background: white;
}

.ministries-grid {
    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 18px;
}

.ministries-grid-four {
    grid-template-columns: repeat(5, 1fr);
}

.ministry-card {
    border: 1px solid var(--border);

    background: white;

    padding: 30px 15px;

    border-radius: 9px;

    cursor: pointer;

    transition: var(--transition);

    text-align: center;
}

.ministry-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow);

    border-color: transparent;
}

.ministry-icon {
    width: 55px;

    height: 55px;

    border-radius: 50%;

    background: var(--blue-soft);

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    margin: auto auto 15px;

    font-size: 20px;
}

.ministry-card h3 {
    color: var(--primary);

    font-family: 'Playfair Display', serif;

    font-size: 18px;
}

.ministry-card p {
    color: var(--text-light);

    font-size: 10px;

    margin-top: 5px;
}


/* =========================================================
   MEDIA
========================================================= */

.media-section {
    background: var(--blue-lighter);
}

.media-grid {
    max-width: 800px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.media-card {
    padding: 40px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 9px;

    text-align: center;

    transition: var(--transition);
}

.media-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow);
}

.media-card i {
    font-size: 35px;

    color: var(--gold);

    margin-bottom: 15px;
}

.media-card h3 {
    color: var(--primary);

    font-family: 'Playfair Display', serif;
}

.media-card p {
    color: var(--text-light);

    font-size: 13px;
}


/* =========================================================
   RESOURCES
========================================================= */

.resources-section {
    background: white;
}

.resources-grid {
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.resources-grid-three {
    grid-template-columns: repeat(3, 1fr);
}

.resource-card {
    padding: 30px 15px;

    border: 1px solid var(--border);

    border-radius: 9px;

    text-align: center;

    background: white;

    transition: var(--transition);
}

.resource-link-card {
    cursor: pointer;
}

.resource-link-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow);

    border-color: transparent;
}

.resource-card i {
    color: var(--gold);

    font-size: 27px;

    margin-bottom: 12px;
}

.resource-card h3 {
    color: var(--primary);

    font-size: 16px;
}

.resource-card p {
    color: var(--text-light);

    font-size: 11px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    background: var(--primary);

    color: white;
}

.contact-section .section-heading h2 {
    color: white;
}

.contact-section .section-heading > span {
    color: var(--gold-light);
}

.contact-grid {
    max-width: 950px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.contact-item {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 25px;

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 8px;
}

.contact-item > i {
    color: var(--gold-light);

    font-size: 20px;

    margin-top: 5px;
}

.contact-item h3 {
    font-size: 14px;

    margin-bottom: 3px;
}

.contact-item p,
.contact-item a {
    color: rgba(255,255,255,0.72);

    font-size: 11px;
}

.contact-item a:hover {
    color: var(--gold-light);
}

.social-links {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 45px;
}

.social-links a {
    width: 42px;

    height: 42px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(255,255,255,0.25);

    color: white;

    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);

    border-color: var(--gold);

    transform: translateY(-3px);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;

    background: #071d32;

    color: white;

    padding: 30px 7%;
}

.footer-content {
    max-width: 1200px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.footer-logo {
    display: flex;

    align-items: center;

    gap: 12px;
}

.footer-logo img {
    width: 42px;

    height: 42px;

    object-fit: contain;

    background: white;

    border-radius: 50%;
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;

    font-size: 15px;
}

.footer-logo p {
    color: var(--gold-light);

    font-size: 9px;
}

.copyright {
    color: rgba(255,255,255,0.5);

    font-size: 10px;
}


/* =========================================================
   MODALS
========================================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(4, 20, 35, 0.78);

    backdrop-filter: blur(6px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;

    visibility: visible;
}

.modal-box {
    width: min(800px, 95vw);

    max-height: 90vh;

    overflow-y: auto;

    position: relative;

    background: white;

    border-radius: 10px;

    box-shadow: 0 25px 70px rgba(0,0,0,0.3);

    transform: translateY(15px) scale(0.98);

    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 5;

    width: 36px;
    height: 36px;

    border: none;

    border-radius: 50%;

    background: rgba(18,59,99,0.08);

    color: var(--primary);

    cursor: pointer;

    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);

    color: white;
}


/* =========================================================
   PROFILE MODAL
========================================================= */

.profile-modal {
    display: grid;

    grid-template-columns: 260px 1fr;

    gap: 35px;

    padding: 40px;
}

.profile-modal-image img {
    width: 240px;

    height: 300px;

    object-fit: cover;

    border-radius: 8px;
}

.profile-modal-info h2 {
    font-family: 'Playfair Display', serif;

    color: var(--primary);

    font-size: 30px;

    margin-bottom: 5px;
}

.profile-designation {
    color: var(--gold);

    font-weight: 700;

    font-size: 12px;
}

.profile-diocese {
    color: var(--text-light);

    font-size: 12px;

    margin-bottom: 20px;
}

.profile-modal-info p {
    color: var(--text-light);

    font-size: 13px;
}


/* =========================================================
   DIOCESE POPUP
========================================================= */

.diocese-modal {
    padding: 38px;
}

.diocese-director {
    display: flex;

    align-items: center;

    gap: 25px;

    padding-bottom: 28px;

    margin-bottom: 28px;

    border-bottom: 1px solid var(--border);
}

.diocese-director-image img {
    width: 125px;

    height: 125px;

    min-width: 125px;

    object-fit: cover;

    border-radius: 50%;

    border: 4px solid var(--blue-soft);

    box-shadow: 0 8px 25px rgba(18,59,99,0.15);
}

.diocese-director-info h2 {
    font-family: 'Playfair Display', serif;

    color: var(--primary);

    font-size: 28px;
}

.diocese-director-info h3 {
    color: var(--gold);

    font-size: 13px;
}

.diocese-director-info p {
    color: var(--text-light);

    font-size: 12px;
}

.diocese-events {
    display: grid;

    grid-template-columns: 1fr auto 1fr;

    gap: 25px;

    align-items: stretch;
}

.event-divider {
    width: 1px;

    background: var(--border);

    min-height: 180px;
}

.diocese-event-column h3 {
    color: var(--primary);

    font-family: 'Playfair Display', serif;

    font-size: 21px;

    margin-bottom: 15px;
}

.diocese-event-column ul {
    list-style: none;
}

.diocese-event-column li {
    padding: 9px 0;

    border-bottom: 1px solid var(--border);

    color: var(--text-light);

    font-size: 12px;
}

.registration-link {
    display: inline-block;

    margin-top: 15px;

    padding: 8px 14px;

    background: var(--primary);

    color: white;

    border-radius: 4px;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;
}


/* =========================================================
   MOVEMENT MODAL
========================================================= */

.movement-modal {
    padding: 40px;
}

.movement-modal h2 {
    font-family: 'Playfair Display', serif;

    color: var(--primary);

    font-size: 32px;
}

.movement-subtitle {
    color: var(--gold);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;
}

.movement-modal > p {
    color: var(--text-light);

    font-size: 13px;

    margin: 20px 0;
}

.movement-images {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}

.movement-images img {
    width: 100%;

    height: 150px;

    object-fit: cover;

    border-radius: 6px;
    flex-shrink: 0;
}


/* =========================================================
   INTERNAL PAGES
========================================================= */

.internal-page {
    min-height: 100vh;

    padding-top: 120px;

    background: var(--blue-lighter);
}

.internal-hero {
    max-width: 1150px;

    margin: auto;

    padding: 65px 7% 45px;

    text-align: center;
}

.internal-hero h1 {
    font-family: 'Playfair Display', serif;

    color: var(--primary);

    font-size: clamp(38px, 6vw, 58px);
}

.internal-hero p {
    max-width: 720px;

    margin: 12px auto 0;

    color: var(--text-light);

    font-size: 14px;
}

.internal-content {
    max-width: 1050px;

    margin: auto;

    padding: 0 5% 90px;
}

.content-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 35px;

    margin-bottom: 22px;

    box-shadow: 0 5px 20px rgba(18,59,99,0.05);
}

.content-card h2 {
    font-family: 'Playfair Display', serif;

    color: var(--primary);

    margin-bottom: 12px;
}

.content-card h3 {
    color: var(--primary);

    margin-bottom: 8px;
}

.content-card p {
    color: var(--text-light);

    font-size: 14px;

    margin-bottom: 12px;
}

.content-card blockquote {
    padding: 18px 20px;

    margin: 15px 0;

    border-left: 4px solid var(--gold);

    background: var(--blue-lighter);

    color: var(--primary);

    font-family: 'Playfair Display', serif;
}

.share-button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 15px;

    padding: 9px 15px;

    border: none;

    border-radius: 5px;

    background: var(--primary);

    color: white;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;
}

.share-button:hover {
    background: var(--primary-light);
}

.page-back {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 25px;
}

.news-meta {
    color: var(--gold);

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 8px;
}


/* =========================================================
   STABLE IMAGES
========================================================= */

.stable-image,
.rexco-photo,
.advisor-photo,
.movement-images img,
.diocese-director-image img {
    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;

    transform: translateZ(0);

    -webkit-transform: translateZ(0);

    contain: paint;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1150px) {

    .navbar {
        gap: 0;
    }

    .navbar > a,
    .nav-dropdown-btn {
        padding: 9px 7px;

        font-size: 10px;
    }

    .rexco-grid,
    .advisors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }

    .ministries-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid-three {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================================================
   RESPONSIVE - MOBILE NAVIGATION
========================================================= */

@media (max-width: 900px) {

    .header-container {
        width: 100%;

        max-width: 100%;

        padding: 10px 5%;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        align-items: stretch;

        background: var(--primary-dark);

        padding: 10px 5%;
    }

    .navbar.active {
        display: flex;
    }

    .navbar > a,
    .nav-dropdown-btn {
        width: 100%;

        text-align: left;

        padding: 12px 5px;
    }

    .dropdown-content {
        position: static;

        opacity: 1;

        visibility: visible;

        transform: none;

        display: none;

        box-shadow: none;

        background: rgba(255,255,255,0.05);
    }

    .nav-dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        color: white;
    }


    /* HERO FULL-WIDTH MOBILE FIX */

    .hero {
        width: 100vw;

        min-width: 100vw;

        max-width: 100vw;

        left: 50%;

        right: 50%;

        margin-left: -50vw;

        margin-right: -50vw;

        overflow: hidden;
    }

    .hero-content {
        width: 100%;

        max-width: 100%;

        margin: 0;

        padding-left: 6%;

        padding-right: 6%;
    }


    .section-container {
        grid-template-columns: 1fr;

        gap: 45px;

        text-align: center;
    }

    .voice-content {
        order: 2;
    }

    .voice-image {
        order: 1;
    }

    .gold-line {
        margin-left: auto;

        margin-right: auto;
    }

    .events-grid,
    .past-events-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid-three {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;

        text-align: center;
    }
}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 700px) {

    .logo-text h1 {
        font-size: 14px;
    }

    .logo-text span {
        font-size: 8px;
    }

    .site-logo {
        width: 45px;

        height: 45px;
    }

    .hero {
        width: 100vw;

        max-width: 100vw;

        min-width: 100vw;

        min-height: 100svh;

        height: 100svh;

        left: 50%;

        margin-left: -50vw;

        margin-right: -50vw;

        background-size: cover;

        background-position: center;
    }

    .hero-content {
        width: 100%;

        max-width: 100%;

        padding-left: 6%;

        padding-right: 6%;
    }

    .hero h2 {
        font-size: 45px;
    }

    .section {
        padding: 70px 5%;
    }

    .voice-section {
        padding: 70px 5%;
    }

    .voice-image img {
        width: 290px;

        height: 340px;
    }

    .rexco-grid,
    .advisors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid-four {
        grid-template-columns: 1fr;
    }

    .diocese-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .ministries-grid-four {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-modal {
        grid-template-columns: 1fr;

        text-align: center;

        padding: 35px 25px;
    }

    .profile-modal-image {
        display: flex;

        justify-content: center;
    }

    .diocese-director {
        flex-direction: column;

        text-align: center;
    }

    .diocese-events {
        grid-template-columns: 1fr;
    }

    .event-divider {
        width: 100%;

        height: 1px;

        min-height: 1px;
    }

    .movement-images {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   RESPONSIVE - VERY SMALL PHONES
========================================================= */

@media (max-width: 450px) {

    .rexco-grid,
    .advisors-grid,
    .ministries-grid-four,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .diocese-card {
        flex: 0 0 100%;
    }

    .event-card {
        flex-direction: column;

        align-items: flex-start;
    }
}
.event-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.event-image {
    width: 160px;
    height: 160px;

    object-fit: contain;
    object-position: center;

    border-radius: 8px;

    flex-shrink: 0;
}

.event-info {
    flex: 1;
    text-align: left;
}
@media (max-width: 700px) {

    .event-horizontal {
        gap: 14px;
    }

    .event-image {
        width: 110px;
        height: 110px;
    }

}
@media (max-width: 700px) {

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
        width: 100%;
    }

    .contact-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-item div {
        min-width: 0;
    }

    .contact-item p,
    .contact-item a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

}
/* =========================================================
   SEARCH
========================================================= */

.search-toggle {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: transparent;

    color: white;
    font-size: 15px;

    cursor: pointer;

    border-radius: 50%;

    transition: var(--transition);
}

.search-toggle:hover {
    color: var(--gold-light);
    background: rgba(255,255,255,0.08);
}


/* OVERLAY */

.site-search-overlay {
    position: fixed;
    inset: 0;

    background: rgba(11, 41, 71, 0.82);

    backdrop-filter: blur(8px);

    z-index: 99999;

    display: none;

    align-items: flex-start;
    justify-content: center;

    padding: 100px 20px 30px;
}

.site-search-overlay.active {
    display: flex;
}


/* SEARCH WINDOW */

.site-search-box {
    position: relative;

    width: 100%;
    max-width: 650px;

    background: white;

    border-radius: 12px;

    padding: 30px;

    box-shadow: var(--shadow);
}

.site-search-box h2 {
    font-family: 'Playfair Display', serif;

    color: var(--primary);

    font-size: 30px;

    margin-bottom: 20px;
}


/* CLOSE */

.site-search-close {
    position: absolute;

    top: 18px;
    right: 20px;

    border: none;
    background: transparent;

    color: var(--primary);

    font-size: 20px;

    cursor: pointer;
}

.site-search-close:hover {
    color: var(--gold);
}


/* INPUT */

.site-search-input-box {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 0 15px;

    border: 1px solid var(--border);

    border-radius: 7px;
}

.site-search-input-box i {
    color: var(--gold);
}

.site-search-input-box input {
    width: 100%;

    padding: 14px 0;

    border: none;
    outline: none;

    background: transparent;

    font-family: 'Montserrat', sans-serif;

    font-size: 14px;

    color: var(--text);
}


/* RESULTS */

.site-search-results {
    margin-top: 15px;

    max-height: 400px;

    overflow-y: auto;
}

.site-search-results > p {
    text-align: center;

    color: var(--text-light);

    font-size: 13px;

    padding: 20px;
}

.site-search-result {
    display: block;

    padding: 14px 12px;

    border-bottom: 1px solid var(--border);

    cursor: pointer;

    transition: var(--transition);
}

.site-search-result:hover {
    background: var(--blue-soft);
}

.site-search-result strong {
    display: block;

    color: var(--primary);

    font-size: 14px;

    margin-bottom: 3px;
}

.site-search-result span {
    color: var(--text-light);

    font-size: 11px;
}


/* MOBILE */

@media (max-width: 900px) {

    .search-toggle {
        width: 100%;
        justify-content: flex-start;

        padding: 10px 12px;

        border-radius: 5px;
    }

    .site-search-overlay {
        padding-top: 70px;
    }

    .site-search-box {
        padding: 25px 20px;
    }

}
/* =========================================================
   BACK TO TOP BUTTON
========================================================= */

.back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid var(--gold);
    border-radius: 50%;

    background: var(--primary);
    color: white;

    font-size: 17px;

    cursor: pointer;

    z-index: 9999;

    /* Hidden initially */
    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    box-shadow: 0 6px 20px rgba(18, 59, 99, 0.25);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}


/* Show button after scrolling */

.back-to-top.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* Hover */

.back-to-top:hover {
    background: var(--gold);
    color: white;

    transform: translateY(-3px);
}


/* Arrow */

.back-to-top i {
    pointer-events: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .back-to-top {
        width: 42px;
        height: 42px;

        right: 16px;
        bottom: 16px;

        font-size: 14px;
    }

}