/* =========================================
   WIDEN PENSCRATCH SITE
   ========================================= */

.site {
    max-width: 1400px !important;
    width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* =========================================
   PENSCRATCH - WIDER LAYOUT
   ========================================= */

/* Main white website container */
.site {
    width: 92% !important;
    max-width: 1150px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* Header */
.site-header {
    width: 100%;
}


/* Branding / header image */
.site-branding {
    width: 100%;
    max-width: none !important;
}


/* Main content */
.site-content {
    width: 100%;
    max-width: none;
}


/* Footer */
.site-footer {
    width: 100%;
    max-width: none;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media screen and (max-width: 768px) {

    .site {
        width: 100% !important;
        max-width: none !important;
    }

}



/* =========================================================
   MASS TIMES
   Desktop : 4 columns
   Tablet  : 2 columns
   Mobile  : 1 column
   ========================================================= */


/* MAIN SECTION */

.mass-times-section {
    box-sizing: border-box;
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
}


/* SECTION HEADINGS */

.mass-times-section > h2 {
    margin-top: 0;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.25;
}

.mass-times-section .weekday-heading {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    text-align: center;
    line-height: 1.25;
}


/* =========================================================
   GRID
   ========================================================= */

.mass-times-grid {
    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

    width: 100% !important;
    max-width: 1150px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    column-gap: 0 !important;
    row-gap: 0 !important;
}


/* Reset WordPress Columns */

.mass-times-grid > .wp-block-column {
    box-sizing: border-box;

    width: auto !important;
    min-width: 0 !important;

    flex: none !important;

    margin: 0 !important;

    display: flex;
}


/* =========================================================
   INDIVIDUAL MASS TIME
   ========================================================= */

.mass-time-card {
    box-sizing: border-box;

    width: 100%;
    min-height: 240px;

    padding: 25px 25px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    border: 0;
    border-radius: 0;
}


/* =========================================================
   DIVIDERS
   ========================================================= */

/* Vertical separators */

.mass-times-grid > .wp-block-column:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.12);
}


/* =========================================================
   DAY + TIME
   ========================================================= */

.mass-time-card h3 {
    margin: 0 0 22px !important;

    font-size: 1.25rem;
    line-height: 1.35;

    text-align: center;
}


/* =========================================================
   CHURCH NAME
   ========================================================= */

.mass-time-card .mass-venue {
    margin: 0 0 5px !important;

    font-size: 1.0rem;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   LOCATION
   ========================================================= */

.mass-time-card .mass-location {
    margin: 0 !important;

    font-size: 1rem;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   NOTES
   ========================================================= */

.mass-time-card .mass-note {
    margin: 18px 0 0 !important;

    font-size: 0.95rem;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   TABLET
   2 COLUMNS
   ========================================================= */

@media screen and (max-width: 900px) {

    .mass-times-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 700px !important;
    }


    /* Remove desktop separators */

    .mass-times-grid > .wp-block-column {
        border-right: 0 !important;
    }


    /* Vertical separator */
    
    .mass-times-grid > .wp-block-column:nth-child(odd) {
        border-right: 1px solid rgba(0, 0, 0, 0.12) !important;
    }


    /* Horizontal separator */

    .mass-times-grid > .wp-block-column:nth-child(-n+2) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    }


    .mass-time-card {
        min-height: 230px;
        padding: 25px;
    }

}


/* =========================================================
   MOBILE
   1 COLUMN
   ========================================================= */

@media screen and (max-width: 600px) {

    .mass-times-section {
        padding-left: 15px;
        padding-right: 15px;
    }


    .mass-times-grid {
        grid-template-columns: 1fr !important;

        width: 100% !important;
        max-width: 100% !important;
    }


    .mass-times-grid > .wp-block-column {
        border-right: 0 !important;

        border-bottom:
            1px solid rgba(0, 0, 0, 0.12) !important;
    }


    .mass-times-grid > .wp-block-column:last-child {
        border-bottom: 0 !important;
    }


    .mass-time-card {
        min-height: auto;
        padding: 25px 15px;
    }


    .mass-time-card h3 {
        margin-bottom: 15px !important;
        font-size: 1.2rem;
    }


    .mass-time-card .mass-note {
        margin-top: 14px !important;
    }


    .mass-times-section > h2 {
        margin-bottom: 25px;
    }


    .mass-times-section .weekday-heading {
        margin-top: 50px !important;
        margin-bottom: 25px !important;
    }

}


.site-footer {
    display: none;
}

.site-branding {
	position: relative;
/* Desktop header image */
	background-image: url('https://staroftheseachurch.org.au/wp-content/uploads/2026/10/cropped-st-mary-star-of-the-sea-and-corpus-christi-churches.png');
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	box-sizing: border-box;
}

/* Dark blue transparent overlay for readability */
.site-branding::before {
	content: "";
	position: absolute;
	background: rgba(0, 35, 60, 0.25);
	z-index: 0;
}

/* Keep title above overlay */
.site-title,
.site-description {
	position: relative;
	z-index: 1;
}

/* Site title */
.site-title {
	margin: 0 0 12px;
	line-height: 1.15;
}

.site-title a {
	color: #ffffff !important;
	font-weight: 500;
	text-shadow: 0 2px 7px rgba(0, 0, 0, 0.7);
}

/* Site description */
.site-description {
	color: #f5f5f5 !important;
	margin: 0;
	font-weight: 400;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

@media screen and (max-width: 768px) {
	.site-branding {
		min-height: 240px;
		padding: 35px 25px;
	}
	
	.site-title {
		font-size: 32px !important;
	}
	
	.site-description {
		font-size: 17px !important;
	}
}

@media screen and (max-width: 600px) {
	.site-branding {
		background-image: url('https://staroftheseachurch.org.au/wp-content/uploads/2026/10/mobile-st-mary-star-of-the-sea-and-corpus-christi-churches.png');
		background-size: contain;
		background-position: center center;
		min-height: 100px;
		padding: 10px 20px;
	}
	
	.site-branding::before {
		background: rgba(0, 35, 60, 0.32);
	}
	
	.site-title {
		font-size: 27px !important;
		line-height: 1.15;
		margin: 0 0 12px;
	}
	
	.site-title a {
		font-size: inherit !important;
	}
	
	.site-description {
		font-size: 16px !important;
		line-height: 1.35;
		margin: 0;
	}
}

@media screen and (max-width: 400px) {
	.site-branding {
		min-height: 100px;
		padding: 25px 15px;
	}
	
	.site-title {
		font-size: 24px !important;
	}
	
	.site-description {
		font-size: 15px !important;
	}
}

/* ==================================================
   GLOBAL PARISH FOOTER
   ================================================== */

.parish-global-footer {
    background: #1f2933;
    color: #ffffff;

    margin-top: 60px;
    padding: 50px 30px 0;

    box-sizing: border-box;
}


/* ==================================================
   MAIN LAYOUT - 3 COLUMNS
   ================================================== */

.parish-footer-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

    display: grid;

    /* Church | Contact | Social */
    grid-template-columns: 2fr 1.5fr 1fr;

    gap: 60px;
    align-items: start;
}


/* ==================================================
   HEADINGS
   ================================================== */

.parish-global-footer h3 {
    color: #ffffff;

    margin-top: 0;
    margin-bottom: 18px;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}


/* ==================================================
   COLUMN 1
   CHURCH / LOCATION
   ================================================== */

.parish-footer-info {
    display: flex;
    flex-direction: column;
}


/* ==================================================
   CHURCH LOCATIONS
   ================================================== */

.parish-location {
    margin-bottom: 24px;
}

.parish-location:last-child {
    margin-bottom: 0;
}


/* Church name */

.parish-global-footer .parish-location h4 {
    color: #ffffff;

    margin: 0 0 8px 0;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* ==================================================
   COLUMN 2
   CONTACT US
   ================================================== */

.parish-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


/* ==================================================
   LOCATION / PHONE / EMAIL
   ================================================== */

.footer-contact-item {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    width: fit-content;

    color: #ffffff;
    text-decoration: none;

    font-size: 15px;
    line-height: 1.6;

    transition:
        opacity 0.2s ease,
        color 0.2s ease;
}


/* Contact icons */

.footer-contact-item svg {
    width: 21px;
    height: 21px;

    min-width: 21px;
    flex-shrink: 0;

    margin-top: 2px;

    fill: currentColor;
}


/* ==================================================
   ALL FOOTER LINKS
   ================================================== */

.parish-global-footer a {
    color: #ffffff;
    text-decoration: none;
}


/* Prevent visited links changing colour */

.parish-global-footer a:visited {
    color: #ffffff;
}


/* Contact link hover */

.footer-contact-item:hover,
.footer-contact-item:focus {
    color: #ffffff;
    opacity: 0.7;
    text-decoration: none;
}


/* ==================================================
   COLUMN 3
   FOLLOW US
   ================================================== */

.parish-footer-social {
    display: flex;
    align-items: center;
    align-content: flex-start;

    gap: 12px;

    flex-wrap: wrap;
}


/* Follow Us heading */

.parish-footer-social h3 {
    width: 100%;

    margin-top: 0;
    margin-bottom: 6px;
}


/* ==================================================
   SOCIAL BUTTONS
   ================================================== */

.parish-footer-social a,
.parish-footer-social a:visited {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    box-sizing: border-box;

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* Social icons */

.parish-footer-social svg {
    display: block;

    width: 21px;
    height: 21px;

    fill: currentColor;
}


/* Social button hover */

.parish-footer-social a:hover,
.parish-footer-social a:focus {
    background-color: #ffffff;
    color: #1f2933;

    border-color: #ffffff;

    text-decoration: none;

    transform: translateY(-2px);
}


/* ==================================================
   COPYRIGHT
   ================================================== */

.parish-footer-bottom {
    width: 100%;
    max-width: 1100px;

    margin: 40px auto 0;
    padding: 20px 0;

    box-sizing: border-box;

    border-top: 1px solid rgba(255, 255, 255, 0.2);

    color: rgba(255, 255, 255, 0.7);

    font-size: 13px;
    line-height: 1.5;

    text-align: center;
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 900px) {

    .parish-footer-inner {
        grid-template-columns: 1.6fr 1.4fr 0.8fr;
        gap: 35px;
    }

}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 768px) {

    .parish-global-footer {
        margin-top: 40px;

        padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }


    /* 3 columns become 1 column */

    .parish-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }


    /* Headings */

    .parish-global-footer h3 {
        margin-bottom: 15px;

        font-size: 17px;
    }


    /* Contact */

    .parish-footer-contact {
        gap: 10px;
    }


    .footer-contact-item {
        font-size: 15px;
    }


    /* Social */

    .parish-footer-social {
        gap: 12px;
    }


    .parish-footer-social h3 {
        margin-bottom: 5px;
    }


    .parish-footer-social a,
    .parish-footer-social a:visited {
        width: 40px;
        height: 40px;
    }


    .parish-footer-social svg {
        width: 20px;
        height: 20px;
    }


    /* Copyright */

    .parish-footer-bottom {
        margin-top: 35px;
        padding: 18px 0;

        font-size: 12px;
    }

}


/* ==================================================
   SMALL MOBILE
   ================================================== */

@media (max-width: 400px) {

    .parish-global-footer {
        padding-left: 16px;
        padding-right: 16px;
    }


    .footer-contact-item {
        gap: 10px;
    }


    .footer-contact-item svg {
        width: 19px;
        height: 19px;

        min-width: 19px;
    }

}