/* ==========================================================================
   CSS Variables & Tokens (Marian Navy Theme)
   ========================================================================== */
:root {
    --primary-color: #0f2b48;
    --primary-hover: #17385c;
    --secondary-color: #0f2b48;
    --accent-color: #489ad2;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --bg-main: #ffffff;
    --bg-light: #faf8f5;
    --bg-dark: #0b192c;

    --font-primary: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', 'Cinzel', serif;

    --nav-height: 90px;
    --section-padding: 6rem 0;
    --container-width: 1200px;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 15px rgba(15, 43, 72, 0.08);
    --shadow-md: 0 10px 30px rgba(15, 43, 72, 0.12);
    --shadow-lg: 0 20px 40px rgba(15, 43, 72, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: #f7f5ee;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('../images/saint_mary.png?v=3');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.085;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-box {
    background: #ffffff;
    border: 1px solid rgba(15, 43, 72, 0.15);
    border-radius: 24px;
    padding: 4.5rem 3.5rem;
    box-shadow: 0 12px 40px rgba(15, 43, 72, 0.04);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #0f2b48;
}

h1 {
    font-size: 4.5rem;
    color: #0f2b48;
}

h2,
.section-header h2,
#mass-timing h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f2b48;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #0f2b48;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    font-family: var(--font-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #333333;
    line-height: 1.8;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: transparent;
}

.mt-2 {
    margin-top: 2rem;
}

.heading-line {
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.heading-line.center {
    margin: 0 auto 2.5rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    /* Sharper corners for modern look */
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.link-arrow:hover {
    border-bottom: 1px solid var(--primary-color);
    transform: translateX(5px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0f2b48 !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 240px;
    box-shadow: 0 12px 35px rgba(15, 43, 72, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
    z-index: 1001;
    margin-top: 5px;
}

.nav-links .dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.nav-links .dropdown-content a,
.nav-links .dropdown-content a:visited {
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    text-align: left;
    white-space: nowrap;
}

.nav-links .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #489ad2 !important;
    padding-left: 1.8rem;
}

.nav-links .dropdown:hover .dropdown-content {
    display: block;
}

.navbar .btn-outline {
    color: var(--text-light);
    border-color: var(--primary-color);
}

.navbar .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, #071527 0%, #0f2b48 50%, #17385c 100%);
    background-image: none;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-left: 5%;
    overflow: hidden;
}

.hero::before {
    display: none !important;
}

/* Bright overlay instead of dark */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
}

.mt-2 {
    margin-top: 2rem;
}

.heading-line {
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.heading-line.center {
    margin: 0 auto 2.5rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    /* Sharper corners for modern look */
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.link-arrow:hover {
    border-bottom: 1px solid var(--primary-color);
    transform: translateX(5px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(15, 43, 72, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading) !important;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    text-transform: uppercase;
    margin-right: 1.5rem;
    color: #ffffff !important;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.logo span {
    color: #ffffff !important;
    font-weight: 800;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a:not(.btn) {
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: #38bdf8 !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.navbar.scrolled .logo,
.navbar.scrolled .logo span,
.navbar.scrolled .nav-links a:not(.btn) {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.navbar.scrolled .nav-links a:not(.btn):hover {
    color: #489ad2 !important;
    text-shadow: 0 0 10px rgba(72, 154, 210, 0.5);
}

/* Non-scrolled navbar on Homepage (where background is light cream) */
body:not(.subpage) .navbar:not(.scrolled) .logo,
body:not(.subpage) .navbar:not(.scrolled) .logo span {
    color: #0f2b48 !important;
    text-shadow: none;
}

body:not(.subpage) .navbar:not(.scrolled) .nav-links a:not(.btn) {
    color: #0f2b48 !important;
    text-shadow: none;
}

body:not(.subpage) .navbar:not(.scrolled) .nav-links a:not(.btn):hover {
    color: #1e40af !important;
    text-shadow: none;
}

/* Navbar Dropdown styling */
.nav-links .dropdown {
    position: relative;
    display: inline-block;
}

.nav-links .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 36, 59, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    border: 1px solid rgba(72, 154, 210, 0.25);
    padding: 0.75rem 0;
    z-index: 1001;
    margin-top: 5px;
}

.nav-links .dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.nav-links .dropdown-content a,
.nav-links .dropdown-content a:visited,
.navbar .nav-links .dropdown-content a,
body:not(.subpage) .navbar:not(.scrolled) .nav-links .dropdown-content a {
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    text-align: left;
    white-space: nowrap;
}

.nav-links .dropdown-content a:hover,
.navbar .nav-links .dropdown-content a:hover,
body:not(.subpage) .navbar:not(.scrolled) .nav-links .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #489ad2 !important;
    padding-left: 1.8rem;
}

.nav-links .dropdown:hover .dropdown-content {
    display: block;
}

.nav-links .btn-primary,
.navbar .btn-primary {
    background-color: #ffffff !important;
    color: #0f2b48 !important;
    border: 1px solid #ffffff !important;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-links .btn-primary:hover,
.navbar .btn-primary:hover {
    background-color: #489ad2 !important;
    color: #ffffff !important;
    border-color: #489ad2 !important;
    box-shadow: 0 6px 20px rgba(72, 154, 210, 0.5);
}

.navbar .btn-outline {
    color: var(--text-light);
    border-color: #489ad2;
}

.navbar .btn-outline:hover {
    background-color: #489ad2;
    color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-left: 5%;
    overflow: hidden;
}

.hero::before {
    display: none !important;
}

/* Subtle overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.hero-title-white {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #ffffff !important;
    display: block;
    text-align: left;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-title-yellow {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900 !important;
    letter-spacing: 1.5px;
    color: #0f2b48 !important;
    -webkit-text-fill-color: #0f2b48 !important;
    background: none !important;
    display: block;
    text-align: left;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    margin-left: 0;
    margin-top: 0.25rem;
}

.hero-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #489ad2;
    margin-bottom: 3rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.hero-buttons .btn-outline {
    border-color: var(--text-light);
    color: var(--text-light);
}

.hero-buttons .btn-outline:hover {
    background-color: var(--text-light);
    color: #000;
}

/* Subpage Hero Section & Seamless Header Alignment */
.about-hero {
    position: relative;
    min-height: 280px;
    padding-top: 130px !important;
    padding-bottom: 3.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: 0 !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #071527;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7, 21, 39, 0.88), rgba(15, 43, 72, 0.92));
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.about-hero-content h1 {
    color: #ffffff !important;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    -webkit-text-fill-color: #ffffff !important;
}

.about-hero-content p {
    color: #bae6fd;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0;
}

body.subpage main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.subpage .section:first-of-type:not(.about-hero):not(.hero) {
    padding-top: 130px !important;
    margin-top: 0 !important;
}

.section {
    padding: 3rem 0;
    scroll-margin-top: 130px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--primary-color);
    z-index: -1;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   Ministries Section
   ========================================================================== */
.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.ministry-card {
    background: var(--bg-main);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(234, 179, 8, 0.1);
}

.ministry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    transition: transform 0.8s ease;
    filter: grayscale(20%);
}

.ministry-card:hover .card-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.ministry-card:hover .card-overlay {
    opacity: 1;
}

.icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.card-content {
    padding: 2.5rem;
    text-align: center;
}

.card-content h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* ==========================================================================
   Service Times Section
   ========================================================================== */
.service-section {
    background-color: transparent;
    color: var(--text-main);
}

.service-section h2 {
    background: linear-gradient(to bottom, #ffd700 0%, #ca8a04 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.service-box {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-top: none;
}

.service-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.time-slot {
    border-left: 2px solid var(--primary-color);
    padding-left: 1.5rem;
}

.time-slot h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.time-slot p {
    color: var(--text-muted);
    margin: 0;
}

.service-location h3 {
    margin-bottom: 1.5rem;
}

.service-location p {
    color: var(--text-muted);
}

/* ==========================================================================
   News & Events Section (Layered Layout)
   ========================================================================== */
.news-layered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
    /* space for overlapping boxes */
}

.news-layered-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}

.badge-yellow {
    background-color: #ffd700;
    color: #000;
}

.news-content-box {
    position: relative;
    width: 90%;
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem;
    margin-top: -60px;
    /* Pull it up over the image */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    z-index: 3;
}

/* Accent Borders */
.border-yellow {
    border-top: 5px solid #ffd700;
}

.border-gold {
    border-top: 5px solid var(--primary-color);
}

.news-date {
    display: block;
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.news-content-box h3 {
    color: #000;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

.news-content-box p {
    color: #2d2d2d !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.3s;
    display: inline-block;
}

.read-more:hover {
    transform: translateX(5px);
}

/* ==========================================================================
   Gallery Section (Exhibition Grid)
   ========================================================================== */
.gallery-exhibition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding: 1.5rem 0;
}

.exhibition-card {
    background: #ffffff;
    padding: 14px 14px 10px 14px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 0 0 4px #ffffff, 0 0 0 5px rgba(212, 175, 55, 0.15);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}

.exhibition-img-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 2px;
}

.exhibition-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(10%) sepia(15%) brightness(0.95);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.exhibition-card:hover .exhibition-img-wrap img {
    transform: scale(1.08);
    filter: grayscale(0%) sepia(0%) brightness(1);
}

.exhibition-divider {
    font-size: 0.65rem;
    color: rgba(212, 175, 55, 0.8);
    margin-top: 0.85rem;
    text-align: center;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
}

.exhibition-card:hover .exhibition-divider {
    color: #b45309;
    transform: scale(1.2);
}

.exhibition-caption {
    padding: 0.5rem 0.5rem 0.5rem;
    text-align: center;
}

.exhibition-caption span {
    display: block;
    font-family: 'HoboStd', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1c1917;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.exhibition-card:hover .exhibition-caption span {
    color: #b45309;
}

.exhibition-caption::after {
    content: '';
    display: block;
    width: 16px;
    height: 1px;
    background: rgba(212, 175, 55, 0.4);
    margin: 0.6rem auto 0;
    transition: all 0.3s ease;
}

.exhibition-card:hover .exhibition-caption::after {
    width: 36px;
    background: rgba(212, 175, 55, 1);
}

@media (min-width: 769px) {
    .exhibition-card:nth-child(1) {
        transform: translateY(-10px) rotate(-1deg);
    }

    .exhibition-card:nth-child(2) {
        transform: translateY(15px) rotate(1.2deg);
    }

    .exhibition-card:nth-child(3) {
        transform: translateY(-5px) rotate(-0.8deg);
    }

    .exhibition-card:nth-child(4) {
        transform: translateY(20px) rotate(1.5deg);
    }

    .exhibition-card:hover {
        transform: translateY(-15px) rotate(0deg) scale(1.04) !important;
        box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25), 0 0 0 4px #ffffff, 0 0 0 6px rgba(212, 175, 55, 0.6);
        border-color: rgba(212, 175, 55, 0.8);
        z-index: 10;
    }
}

@media (max-width: 992px) {
    .gallery-exhibition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-exhibition-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0.5rem;
    }

    .exhibition-card {
        transform: none !important;
    }

    .exhibition-card:hover {
        transform: translateY(-5px) !important;
    }
}

#about {
    position: relative;
    background-image: url('../images/saint_mary.png?v=3');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 253, 245, 0.78) 50%, rgba(255, 255, 255, 0.88) 100%);
    z-index: 1;
}

#about .container {
    position: relative;
    z-index: 2;
}

#devotion {
    position: relative;
    background-image: url('../images/saint_mary.png?v=3');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

#devotion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 253, 245, 0.78) 50%, rgba(255, 255, 255, 0.88) 100%);
    z-index: 1;
}

#devotion .container {
    position: relative;
    z-index: 2;
}

#events-news {
    position: relative;
    background-image: url('../images/saint_mary.png?v=3');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

#events-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 253, 245, 0.78) 50%, rgba(255, 255, 255, 0.88) 100%);
    z-index: 1;
}

#events-news .container {
    position: relative;
    z-index: 2;
}

#gallery,
#video-gallery {
    position: relative;
    background-image: url('../images/saint_mary.png?v=3');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

#gallery::before,
#video-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 253, 245, 0.78) 50%, rgba(255, 255, 255, 0.88) 100%);
    z-index: 1;
}

#gallery .container,
#video-gallery .container {
    position: relative;
    z-index: 2;
}

#leadership {
    position: relative;
    background-image: url('../images/saint_mary.png?v=3');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

#leadership::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 253, 245, 0.78) 50%, rgba(255, 255, 255, 0.88) 100%);
    z-index: 1;
}

#leadership .container {
    position: relative;
    z-index: 2;
}

#mass-timing {
    position: relative;
    background-image: url('../images/saint_mary.png?v=3');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

#mass-timing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 253, 245, 0.78) 50%, rgba(255, 255, 255, 0.88) 100%);
    z-index: 1;
}

#mass-timing .container {
    position: relative;
    z-index: 2;
}

#location {
    position: relative;
    background-image: url('../images/saint_mary.png?v=3');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

#location::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 253, 245, 0.78) 50%, rgba(255, 255, 255, 0.88) 100%);
    z-index: 1;
}

#location .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Leadership Section
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
    text-align: center;
}

.news-modal-img {
    width: 100%;
    height: auto;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: none;
    max-height: 60vh;
    object-fit: contain;
    background-color: #f1f1f1;
    padding: 1rem;
    box-sizing: border-box;
}

.team-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.team-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.team-card .role {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 5rem 0 0 0;
    border-top: 1px solid rgba(234, 179, 8, 0.2);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.footer-section h3 {
    margin-bottom: 2rem;
    color: var(--text-main);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: var(--bg-light);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(234, 179, 8, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Animations
   ========================================================================== */
/* Keyframes for Hero (Initial Load) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
    opacity: 0;
    will-change: transform, opacity, filter;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
}

/* specific directions */
.reveal-up {
    transform: translateY(80px);
}

.reveal-left {
    transform: translateX(-80px);
}

.reveal-right {
    transform: translateX(80px);
}

.reveal-scale {
    transform: scale(0.9);
}

.reveal-blur {
    filter: blur(15px);
    transform: translateY(40px);
}

/* Delay modifiers for stagger */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {

    .about-grid,
    .service-box {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: unset;
    }

    .hero-title-gradient {
        font-size: 3.5rem;
    }

    .service-box {
        padding: 3rem 2rem;
    }

    .service-times {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   About Subpage Components
   ========================================================================== */
/* About Page Hero */
.about-hero {
    position: relative;
    height: 75vh;
    min-height: 600px;
    background-color: #faf7eb;
    /* Warm cream base to match white and gold theme */
    background-size: 100% 120%;
    /* Fit width exactly to screen width while keeping height stretched to crop bottom text */
    background-repeat: no-repeat;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Golden-white elegant transparency overlay */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(234, 179, 8, 0.4) 100%);
}

.about-hero-content {
    position: relative;
    z-index: 1;
    color: #1c1917;
    /* Dark stone charcoal for readable text on light background */
    max-width: 800px;
    padding: 0 2rem;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1c1917;
    /* Dark stone charcoal */
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.about-hero-content p {
    font-size: 1.2rem;
    color: #b45309;
    /* Dark warm amber/gold for secondary text */
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: #ffffff;
    border: 1px solid rgba(234, 179, 8, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.value-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: var(--text-muted);
}

/* Timeline Section */
.timeline-section {
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0 auto;
    padding: 2rem 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(234, 179, 8, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 2rem 3rem;
    position: relative;
    background: transparent;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: #ffffff;
    border: 4px solid var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition-smooth);
}

.timeline-item:hover::after {
    background-color: var(--primary-color);
    scale: 1.25;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -8px;
}

.timeline-content {
    padding: 2rem;
    background: #ffffff;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(234, 179, 8, 0.1);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(234, 179, 8, 0.3);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.timeline-content p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Scripture CTA Section */
.scripture-cta {
    background: linear-gradient(135deg, #faf6e8 0%, #f7f3e1 100%);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 24px;
    padding: 4.5rem 3rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(234, 179, 8, 0.05);
    margin: 2rem 0;
}

.scripture-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    position: relative;
}

.scripture-ref {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-hover);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

/* Responsive Timeline & About */
@media (max-width: 768px) {
    .about-hero {
        height: 60vh;
        min-height: 480px;
    }

    .about-hero-content h1 {
        font-size: 2.5rem;
    }

    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important;
    }

    .timeline-item.left {
        left: 0;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 23px !important;
        right: auto !important;
    }

    .scripture-text {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Mass Timing Custom Split Layout
   ========================================================================== */
.mass-timing-split-container {
    display: flex;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
    align-items: stretch;
}

.mass-timing-left-img {
    flex: 1 1 350px;
    min-height: 450px;
    position: relative;
}

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

.mass-timing-right-table {
    flex: 1.5 1 500px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #ffffff;
}

.mass-timing-custom-table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    margin: 0;
}

.mass-timing-custom-table th,
.mass-timing-custom-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.05rem;
}

.mass-timing-custom-table th {
    background-color: #f1f5f9;
    color: #1e293b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #cbd5e1;
}

.mass-timing-custom-table td.day-column {
    font-weight: 500;
    color: #334155;
    background-color: #f8fafc;
    border-right: 1px solid #e2e8f0;
    width: 25%;
    text-align: center;
}

.mass-timing-custom-table td.time-column {
    color: #475569;
    text-align: center;
    font-weight: 400;
}

.mass-timing-custom-table tr:nth-child(even) td.time-column {
    background-color: #ffffff;
}

.mass-timing-custom-table tr:nth-child(odd) td.time-column {
    background-color: #f8fafc;
}

.mass-timing-custom-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .mass-timing-split-container {
        flex-direction: column;
    }

    .mass-timing-left-img {
        min-height: 250px;
    }

    .mass-timing-custom-table th,
    .mass-timing-custom-table td {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
}

/* Location Map Styles */
.map-container {
    width: 100%;
    position: relative;
    display: block;
    line-height: 0;
}

.map-container iframe {
    width: 100% !important;
    height: 350px !important;
    border: 0 !important;
    display: block;
}

/* ==========================================================================
   Interactive Calendar Component Styles (White & Gold Accent / Charcoal Theme)
   ========================================================================== */
.calendar-container {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(234, 179, 8, 0.22);
    box-shadow: 0 10px 30px rgba(234, 179, 8, 0.05);
    border-radius: 16px;
    overflow: hidden;
    margin: 2.5rem 0;
    font-family: var(--font-primary);
}

.calendar-header {
    background: #1a1a1a;
    /* Dark charcoal header to match the website footer and sticky navbar */
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 3px solid var(--primary-color);
    /* Elegant Gold border */
}

.calendar-header h3 {
    color: var(--primary-color);
    /* Gold text for header title */
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.calendar-nav-btn {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--primary-color);
    /* Gold navigation arrow buttons */
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fbfbfa;
    text-align: center;
    padding: 1rem 0;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(234, 179, 8, 0.15);
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #ffffff;
}

.calendar-day-cell {
    min-height: 130px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    transition: background 0.2s ease;
}

.calendar-day-cell:hover {
    background: #faf9f6;
}

.calendar-day-cell:nth-child(7n) {
    border-right: none;
}

.calendar-day-number {
    font-size: 1.05rem;
    font-weight: 600;
    color: #64748b;
    align-self: flex-start;
}

.calendar-day-cell.other-month {
    background: #f8fafc;
    opacity: 0.45;
}

.calendar-day-cell.today {
    background: #fffef2;
    /* Soft Gold/Cream highlighted background */
    border: 1.5px solid rgba(234, 179, 8, 0.4);
}

.calendar-day-cell.today .calendar-day-number {
    color: var(--primary-hover);
    /* Gold highlighted today number */
    font-weight: 700;
}

.mass-day-card {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid rgba(234, 179, 8, 0.18);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.04);
    gap: 4px;
}

.mass-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mass-card-times {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.mass-time-badge {
    background: rgba(234, 179, 8, 0.08);
    color: var(--primary-hover);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 20px;
    padding: 0.2rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.mass-time-badge:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.mass-time-badge.novena-badge {
    background: rgba(107, 70, 193, 0.08);
    /* Soft violet/purple background */
    color: #6b46c1;
    /* Deep purple text for Novena */
    border: 1px solid rgba(107, 70, 193, 0.25);
}

.mass-time-badge.novena-badge:hover {
    background: #6b46c1;
    color: #ffffff;
}

@media (max-width: 992px) {
    .calendar-day-cell {
        min-height: 110px;
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .calendar-header {
        padding: 1rem 1.25rem;
    }

    .calendar-header h3 {
        font-size: 1.3rem;
    }

    .calendar-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .calendar-day-cell {
        min-height: 90px;
        padding: 0.4rem;
        gap: 0.3rem;
    }

    .calendar-day-number {
        font-size: 0.9rem;
    }

    .mass-item-card {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }

    .mass-item-label {
        display: none;
        /* Hide label on very small screens to fit the time */
    }

    /* ==========================================================================
   About Us Sub-Sections Styling
   ========================================================================== */
    .about-sub-section {
        padding: 5rem 0;
        border-bottom: 1px solid rgba(234, 179, 8, 0.1);
    }

    .about-sub-section:last-of-type {
        border-bottom: none;
    }

    /* Card grids for sub-sections */
    .about-grid-3 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
        margin-top: 3rem;
    }

    .about-grid-2 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2.5rem;
        margin-top: 3rem;
    }

    /* Custom premium card style */
    .about-card {
        background: #ffffff;
        border: 1px solid rgba(234, 179, 8, 0.15);
        border-radius: 16px;
        padding: 2.5rem 2rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
        transition: var(--transition-smooth);
        position: relative;
        overflow: hidden;
    }

    .about-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, #eab308 0%, #ca8a04 100%);
    }

    .about-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 40px rgba(234, 179, 8, 0.08);
        border-color: rgba(234, 179, 8, 0.35);
    }

    .about-card-icon {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
    }

    .about-card h3 {
        font-size: 1.35rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: var(--text-main);
    }

    .about-card p {
        color: var(--text-muted);
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .about-badge {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        background: rgba(234, 179, 8, 0.08);
        color: var(--primary-hover);
        border-radius: 20px;
        font-size: 0.78rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
    }

    /* Table styling for Council / Administration */
    .about-table-container {
        margin-top: 3rem;
        background: #ffffff;
        border: 1px solid rgba(234, 179, 8, 0.15);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    }

    .about-table {
        width: 100%;
        border-collapse: collapse;
        text-align: left;
    }

    .about-table th,
    .about-table td {
        padding: 1.25rem 2rem;
        border-bottom: 1px solid rgba(234, 179, 8, 0.1);
    }

    .about-table th {
        background: rgba(234, 179, 8, 0.03);
        color: var(--text-main);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.82rem;
        letter-spacing: 1px;
    }

    .about-table tr:last-child td {
        border-bottom: none;
    }

    .about-table tr:hover td {
        background: rgba(234, 179, 8, 0.01);
    }

    .admin-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: rgba(234, 179, 8, 0.1);
        color: var(--primary-hover);
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        border: 1px solid rgba(234, 179, 8, 0.2);
    }

    /* Hero mobile responsive styling */
    .hero {
        background-position: center center;
        background-size: cover;
        justify-content: center;
        text-align: center;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }
}

   / *   N e w s   M o d a l   * /     . n e w s - m o d a l    {
       d i s p l a y :    n o n e ;
       p o s i t i o n :    f i x e d ;
       z - i n d e x :    1 0 0 0 ;
       l e f t :    0 ;
       t o p :    0 ;
       w i d t h :    1 0 0 % ;
       h e i g h t :    1 0 0 % ;
       o v e r f l o w :    a u t o ;
       b a c k g r o u n d - c o l o r :    r g b a ( 0 ,  0 ,  0 ,  0 . 8 ) ;
       a l i g n - i t e m s :    c e n t e r ;
       j u s t i f y - c o n t e n t :    c e n t e r ;
       o p a c i t y :    0 ;
       t r a n s i t i o n :    o p a c i t y   0 . 3 s   e a s e ;
       
}

     . n e w s - m o d a l . s h o w    {
       d i s p l a y :    f l e x ;
       o p a c i t y :    1 ;
       
}

     . n e w s - m o d a l - c o n t e n t    {
       b a c k g r o u n d - c o l o r :    # f f f ;
       b o r d e r - r a d i u s :    2 0 p x ;
       w i d t h :    9 0 % ;
       m a x - w i d t h :    6 0 0 p x ;
       m a x - h e i g h t :    9 0 v h ;
       o v e r f l o w - y :    a u t o ;
       p o s i t i o n :    r e l a t i v e ;
       b o x - s h a d o w :    0   1 0 p x   3 0 p x   r g b a ( 0 ,  0 ,  0 ,  0 . 3 ) ;
       t r a n s f o r m :    s c a l e ( 0 . 9 5 ) ;
       t r a n s i t i o n :    t r a n s f o r m   0 . 3 s   e a s e ;
       
}

     . n e w s - m o d a l . s h o w   . n e w s - m o d a l - c o n t e n t    {
       t r a n s f o r m :    s c a l e ( 1 ) ;
       
}

     . n e w s - m o d a l - c l o s e    {
       p o s i t i o n :    a b s o l u t e ;
       r i g h t :    1 5 p x ;
       t o p :    1 5 p x ;
       f o n t - s i z e :    2 4 p x ;
       c o l o r :    # 3 3 3 ;
       c u r s o r :    p o i n t e r ;
       b a c k g r o u n d :    # e e e ;
       w i d t h :    3 5 p x ;
       h e i g h t :    3 5 p x ;
       b o r d e r - r a d i u s :    5 0 % ;
       d i s p l a y :    f l e x ;
       a l i g n - i t e m s :    c e n t e r ;
       j u s t i f y - c o n t e n t :    c e n t e r ;
       z - i n d e x :    1 0 ;
       t r a n s i t i o n :    b a c k g r o u n d   0 . 3 s ;
       
}

    .calendar-header {
    padding: 1rem 1.25rem;
}

.calendar-header h3 {
    font-size: 1.3rem;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.calendar-day-cell {
    min-height: 90px;
    padding: 0.4rem;
    gap: 0.3rem;
}

.calendar-day-number {
    font-size: 0.9rem;
}

.mass-item-card {
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
}

.mass-item-label {
    display: none;
    /* Hide label on very small screens to fit the time */
}

/* ==========================================================================
   About Us Sub-Sections Styling
   ========================================================================== */
.about-sub-section {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(234, 179, 8, 0.1);
}

.about-sub-section:last-of-type {
    border-bottom: none;
}

/* Card grids for sub-sections */
.about-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.about-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Custom premium card style */
.about-card {
    background: #ffffff;
    border: 1px solid rgba(234, 179, 8, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #eab308 0%, #ca8a04 100%);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.35);
}

.about-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.about-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(234, 179, 8, 0.08);
    color: var(--primary-hover);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Table styling for Council / Administration */
.about-table-container {
    margin-top: 3rem;
    background: #ffffff;
    border: 1px solid rgba(234, 179, 8, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}

.about-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.about-table th,
.about-table td {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(234, 179, 8, 0.1);
}

.about-table th {
    background: rgba(234, 179, 8, 0.03);
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 1px;
}

.about-table tr:last-child td {
    border-bottom: none;
}

.about-table tr:hover td {
    background: rgba(234, 179, 8, 0.01);
}

.admin-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(234, 179, 8, 0.1);
    color: var(--primary-hover);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

/* Hero mobile responsive styling */
@media (max-width: 768px) {
    .hero {
        background-position: center center;
        background-size: cover;
        justify-content: center;
        text-align: center;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }
}

.hero-title-white {
    display: block !important;
    text-align: left !important;
}

.hero-title-yellow {
    display: block !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-top: 0.25rem !important;
}

/* Ensure Hero content stays on the far left side on desktop */
@media (min-width: 769px) {
    .hero {
        justify-content: flex-start !important;
        text-align: left !important;
        padding-left: 5% !important;
    }

    .hero-content {
        margin-left: 0 !important;
        text-align: left !important;
    }
}

/* Website Brand Palette Overrides (Marian Navy #0f2b48) */
.badge-yellow,
.badge-gold,
.badge-latest {
    background-color: #0f2b48 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 43, 72, 0.25) !important;
}

.border-yellow,
.border-gold,
.news-content-box {
    border-top: 5px solid #0f2b48 !important;
}

.section-box {
    border: 1px solid rgba(15, 43, 72, 0.15) !important;
    box-shadow: 0 12px 40px rgba(15, 43, 72, 0.04) !important;
}

.image-wrapper::before {
    border-color: #0f2b48 !important;
}

.heading-line {
    background-color: #0f2b48 !important;
}

.btn-yellow,
.btn-gold {
    background-color: #0f2b48 !important;
    color: #ffffff !important;
    border-color: #0f2b48 !important;
}

.text-gold,
.text-yellow {
    color: #0f2b48 !important;
}

[data-theme="classic-gold"] {
    --primary-color: #0f2b48 !important;
    --accent-color: #489ad2 !important;
}

/* ==========================================================================
   Hero Section White Left / Right Portrait Layout
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: 
        radial-gradient(circle at 12% 35%, rgba(218, 165, 32, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 25% 65%, rgba(72, 154, 210, 0.08) 0%, transparent 45%),
        linear-gradient(135deg, #fdfbf7 0%, #f5f1e6 100%) !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 1.5%;
    overflow: hidden;
}

.hero::before {
    display: none !important;
}

/* Background container for the Mother Mary portrait to allow sizing and masking */
.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: auto 82% !important;
    background-repeat: no-repeat !important;
    background-position: right 5% bottom 10% !important;
    z-index: 1;
    /* Shifted fade to only top/bottom 5% for maximum face clarity and soft blending */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

/* White linear gradient overlay to blend image on the left */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.5) 30%, rgba(255, 255, 255, 0) 55%) !important;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.hero-title-white {
    font-family: 'Cinzel', serif !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    letter-spacing: 6px !important;
    color: #0f2b48 !important;
    display: block !important;
    text-align: left !important;
    text-shadow: none !important;
    margin-bottom: 0.75rem !important;
}

.hero-title-yellow {
    font-family: 'Cinzel', serif !important;
    font-size: 3.0rem !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    color: #0f2b48 !important;
    -webkit-text-fill-color: #0f2b48 !important;
    background: none !important;
    display: block !important;
    text-align: left !important;
    text-shadow: none !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
}

/* Mobile & Tablet Overrides */
@media (max-width: 768px) {
    .hero {
        background: 
            radial-gradient(circle at 50% 25%, rgba(218, 165, 32, 0.08) 0%, transparent 45%),
            radial-gradient(circle at 50% 45%, rgba(72, 154, 210, 0.08) 0%, transparent 45%),
            linear-gradient(to bottom, #fdfbf7 0%, #f5f1e6 100%) !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
        padding-top: 140px !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .hero-bg {
        background-size: 100% auto !important;
        background-position: center bottom !important;
        height: 50% !important;
        top: auto !important;
        bottom: 0 !important;
        right: 0 !important;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 100%);
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.5) 30%, rgba(255, 255, 255, 0) 60%) !important;
        z-index: 2;
    }

    .hero-title-white {
        font-family: 'Cinzel', serif !important;
        font-size: 1.2rem !important;
        letter-spacing: 4px !important;
        color: #0f2b48 !important;
        text-align: center !important;
        text-shadow: none !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-title-yellow {
        font-family: 'Cinzel', serif !important;
        font-size: 2.0rem !important;
        letter-spacing: 1px !important;
        text-align: center !important;
        color: #0f2b48 !important;
        text-shadow: none !important;
        margin-top: 0 !important;
    }
}