/* General Reset and Base Styles */
:root {
    --primary: #2d5a2d;
    --primary-dark: #1a3a1a;
    --accent: #6a1b9a;
    --secondary: #BF0A30;
    --gold: #f9e076;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Arial', sans-serif; */
}

/**************
 ** BUILT-IN **
 *************/

/* A */

a.link-as-button {
    display: inline-block;
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

a.link-as-button:hover {
    background: #732d91;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(142, 68, 173, 0.3);
}

a.plain {
    color: white;
    text-decoration: none;
}

/* BODY */

body {
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* BUTTON */

button.top-menu {
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    width: 200px;
    cursor: pointer;
    background-color: var(--primary-dark);
}

button.top-menu:hover {
    background-color: var(--primary);
}

/* DIV */

div.banner-text {
    flex: 1 1 auto;
    text-align: center;
    margin-top: 0;
}

div.banner-text h1 {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

div.dropdown {
    display: inline-block;
    position: relative;
}

div.dropdown:hover .dropdown-content {
    display: block;
}

div.dropdown:hover {
    background-color: #3e8e41;
}

div.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 5px;
    overflow: hidden;
}

div.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

div.dropdown-content a:hover {
    background-color: #ddd;
}

div.grey-bg-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 4rem clamp(1rem, 5vw, 4rem);
    /* fluid horizontal padding */
    background-color: #e0e0e0;
    gap: 2rem;
    margin-top: 0;
    margin-bottom: 3rem;
    height: auto;
    flex-wrap: wrap;
}

div.image-frame {
    width: 100%;
    max-width: 400px;
    height: 450px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

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

div.index-flexbox {
    flex: 1.5;
    text-align: left;
    height: 100%;
}

div.index-flexbox-text {
    text-align: justify;
}

div.index-flexbox-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

div.index-flexbox-text p {
    color: #333;
    margin-bottom: 1rem;
    text-align: justify;
}

div.index-flexbox-image {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

div.index-slides {
    display: none;
}

div.logo-container,
div.bishop-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo-container {
    justify-content: flex-start;
}

.bishop-container {
    justify-content: flex-end;
}

.logo-container img,
.bishop-container img {
    max-height: 100px;
    height: auto;
}

div.main-body {
    margin: 20px
}

div.mission-statement-box:hover {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
}

div.slideshow-container {
    width: 100%;
    position: relative;
    margin: auto;
}

div.top-menu {
    background-color: var(--primary-dark);
}

/* FOOTER */

.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--secondary), var(--accent));
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--gold);
    position: relative;
    padding-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    margin-top: 20px;
}

.footer-partner-logos a {
    display: inline-block;
}

.footer-partner-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(200%);
}

.footer-partner-logos img:hover {
    transform: scale(1.1);
    filter: grayscale(0) brightness(100%);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* FORM */

form {
    padding-left: 30px;
}

/* HEADER */

header.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary);
    padding: 20px 40px;
    height: auto;
    flex-wrap: wrap;
    font-family: "Playfair Display", serif;
}

/* IMG */

img.slideshow {
    width: 100%
}

/* LISTS */

ol,
ul {
    margin-left: 2em;
}

/* P */

p {
    margin-bottom: 0.5em;
}

/* SECTION */

section.text-containers {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    justify-content: center;
    background: #fff;
}

section.text-containers>div {
    flex: 1 1 250px;
    padding: 2rem;
    background: linear-gradient(135deg, #fff, #e8f5e9);
    border: 2px solid #c8e6c9;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

section.text-containers>div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

section.location-map {
    padding-top: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    background: #f8f9fa;
    margin: 2rem 0 0;
}

.location-map h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* TABLE */

table {
    border-collapse: collapse;
    width: 100%;
}

table.tabs {
    border: none;
}

tr {
    background-color: white;
}

tr:nth-child(even) {
    background-color: #dddddd;
}

tr.tabs {
    border: none;
    padding: none;
}

td,
th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

td.tabs {
    border: none;
    padding: none;
    text-align: center;
}

/* TEXTAREA */

textarea {
    width: 500px;
    height: 100px;
}

/* .FADE */

.fade {
    animation-name: fade;
    animation-duration: 2.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* MAP CONTAINER */

.map-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/************
 ** CUSTOM **
 ***********/

helpbox {
    float: right;
    width: 25%;
    border: 5px solid black;
    margin: 20px auto 15px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 10px;
    border-color: orange;
}

/***********************
 ** RESPONSIVE DESIGN **
 **********************/

@media (max-width: 1024px) {
    .banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .logo-eve-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
        box-shadow: none;
        margin-top: 10px;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .banner-text h1 {
        font-size: 1.5rem;
    }
    
    .search-input {
        width: 150px;
    }
    
    .search-input:focus {
        width: 180px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
}