/* Force RTE image border style on all images in page content, with high specificity */
.page-content img:not([class*="rte-img-"]),
.page-content .page-content img:not([class*="rte-img-"]),
.page-content .news-article img:not([class*="rte-img-"]),
.page-content .gallery-item img:not([class*="rte-img-"]),
.page-content .officer-image img:not([class*="rte-img-"]) {
    /*border: 3px solid #3498db !important;*/
    border-radius: 12px !important;
    padding: 4px !important;
   /*background: #f8f9fa !important;*/
    box-shadow: 0 2px 8px rgba(52,152,219,0.08) !important;
    max-width: 100% !important;
    vertical-align: middle !important;
    margin: 8px 0 !important;
    /* display and float intentionally left without !important so inline styles for wrap text are respected */
    display: inline-block;
    float: none;
}
/* Rich Text Editor Box Styles */
.rte-box {
    min-width: 150px;
     min-height: 30px;
  width: 100%;
    height: auto;
    box-sizing: border-box;
    display: block;
     margin: 0 auto;
    padding: 8px;
    overflow: visible;
}
.rte-box-content {
    min-width: 100px;
    min-height: 24px;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    display: block;
    background: transparent;
    border: none;
    outline: none;
    overflow: visible;
    word-break: break-word;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-image:url('/uploads/themes/bg_1763382704.jpg');
    
    background-position: center;
    background-attachment: fixed;
   
}

/* Accessibility - Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #4a4a9e;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Accessibility - Enhanced Focus Indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #4a4a9e;
    outline-offset: 2px;
}

/* Mobile First - Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.page-content h1, .page-content p{
    text-align: center;
    margin-bottom: 1rem;
    color: #004;
}


header {
	padding: 1em 0.5em;
	background-image: linear-gradient(0deg, rgba(192, 192, 192, 0.9), rgba(192, 192, 192, 0.8)), url(uploads/themes/stoa-london/st_thomas_becket.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	text-align: center;
    background-color: #155724;
}
.header-title-top{
    color: #2b136b;
    margin: 1ch 0;
    font-size: 0.9em;
    text-transform: uppercase;
    font-weight: bold;
}

@media (min-width: 600px) {
    .header-title-top {
        font-size: 1.7em;
    }
}

@media (min-width: 1024px) {
    .header-title-top {
        font-size: 2.8em;
    }
}


/* Mobile Navigation Toggle Button */
.nav-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 2px;
    min-width: 50px;
    min-height: 50px;
    z-index: 1000;
}

.nav-menu-toggle .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    transition: transform 0.3s ease;
}

.nav-menu-toggle .hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-menu-toggle .menu-text {
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* Hamburger to Cross Animation */
.nav-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.nav-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu-toggle.active .menu-text {
    opacity: 0;
}

/* Mobile First - Navigation */
.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 998;
}

.main-nav.active {
    display: block;
    max-height: 500px;
}

/* Mobile - hide icons, show text only */
@media (max-width: 767px) {
    nav a::before {
        display: none !important;
    }
    
    nav a {
        flex-direction: row !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        min-height: auto !important;
    }
    
    nav ul {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
}

nav ul li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    min-height: 48px;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* Mobile First - Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 1.5rem 0;
}

/* in First - Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Mobile First - Page Header */
.page-header {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Mobile First - Cards */
.row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card, .chapel-card, .officer-card, .dashboard-card {
    background-color: #fff;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover, .chapel-card:hover, .dashboard-card:hover {
    transform: translateY(-5px);
}

.card h3, .chapel-card h2, .dashboard-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.25rem;
}

/* Mobile First - Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    min-height: 44px;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #2ecc71;
}

.btn-primary:hover {
    background-color: #27ae60;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-height: 36px;
}

/* Mobile First - News */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-item, .news-article {
    background-color: #fff;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-item img, .news-article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.news-date, .date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.cookie-settings-trigger {
    margin-top: 1rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cookie-settings-trigger:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.7);
}

.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
}

.cookie-consent__content {
    max-width: 980px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(128, 0, 0, 0.25);
    border-radius: 18px;
    background: rgba(250, 245, 234, 0.98);
    box-shadow: 0 18px 48px rgba(0,0,0,0.22);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent__copy h2 {
    margin-bottom: 0.35rem;
    color: #4d1020;
    font-size: 1.15rem;
}

.cookie-consent__copy p {
    margin: 0;
    color: #3d332d;
}

.cookie-consent__copy a {
    color: #7b2133;
    font-weight: 700;
}

.cookie-consent__copy a:hover {
    text-decoration: none;
}

.cookie-consent__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-consent__button {
    padding: 0.8rem 1.15rem;
    border: 1px solid #7b2133;
    border-radius: 999px;
    background: #7b2133;
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
}

.cookie-consent__button:hover {
    background: #651928;
}

.cookie-consent__button--secondary {
    background: transparent;
    color: #7b2133;
}

.cookie-consent__button--secondary:hover {
    background: rgba(123, 33, 51, 0.08);
}

body.cookie-consent-visible {
    padding-bottom: 12rem;
}

@media (min-width: 768px) {
    .cookie-consent__content {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

    .cookie-consent__copy {
        max-width: 650px;
    }

    .cookie-consent__actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    body.cookie-consent-visible {
        padding-bottom: 8rem;
    }
}

/* Mobile First - Chapels Grid */
.chapels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Mobile First - Login */
.login-box {
    background-color: #d6cab7;
    border: 5px solid #800000;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #00007D;
    font-size: 1.5rem;
}

/* Mobile First - Forms */
.form-container {
    background-color: #d6cab7;
    padding: 1.5rem;
    border: 5px solid #800000;
    border-radius: 8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #3a1407;
    font-weight: bold;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    min-height: 44px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Mobile First - Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile First - Tables */
.documents-table {
    width: 100%;
    background-color: #fff;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

.documents-table th,
.documents-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.documents-table th {
    background-color: #2c3e50;
    color: #fff;
    font-weight: bold;
}

.documents-table tr:hover {
    background-color: #f8f9fa;
}

/* Mobile First - Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-caption {
    padding: 1rem;
}

/* Mobile First - Officers */
.officers-list {
    display: grid;
    gap: 1.5rem;
}

.officer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.officer-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.officer-info .position {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
/* Mobile First - Users Management */
.admin-table {
    width: 100%;
    background-color: #fff;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 0.9rem;
}
.admin-table th {
    background-color: #2c3e50;
    color: #fff;
    font-weight: bold;
    padding: 0.75rem;
    text-align: left;
}
.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
}
.users-table {
    width: 100%;
    background-color: #fff;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 0.9rem;
}


/* Mobile First - Widgets */
.widget-area {
    margin-bottom: 1.5rem;
}

.widget {
    background: #fff;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-title {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.widget-content ul {
    list-style: none;
    padding: 0;
}

.widget-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.widget-content ul li:last-child {
    border-bottom: none;
}

.widget-news-list li a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
}

.widget-news-list li a:hover strong {
    color: #3498db;
}

.widget-news-list li small {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.widget-documents-list li a {
    color: #2c3e50;
    text-decoration: none;
}

.widget-documents-list li a:hover {
    color: #3498db;
}

.doc-category {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: #ecf0f1;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #7f8c8d;
}

.widget-officers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget-officer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.widget-officer-item .officer-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.widget-officer-item .officer-info {
    flex: 1;
}

.widget-officer-item strong {
    display: block;
    color: #2c3e50;
}

.widget-officer-item small {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.widget-chapels-list li a {
    color: #2c3e50;
    text-decoration: none;
}

.widget-chapels-list li a:hover {
    color: #3498db;
}

.widget-contact-info p {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.widget-contact-info strong {
    color: #3498db;
}

.widget-social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: #ecf0f1;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s;
}

.social-link:hover {
    background: #3498db;
    transform: translateY(-3px);
}

/* Mobile First - Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

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

.footer-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-header p {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    flex: 1 1 100%;
}

/* Footer Menu Toggle Button */
.footer-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 2px;
    min-width: 50px;
    min-height: 50px;
}

.footer-menu-toggle .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    transition: transform 0.3s ease;
}

.footer-menu-toggle .hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.footer-menu-toggle .menu-text {
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* Footer Hamburger to Cross Animation */
.footer-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.footer-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.footer-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.footer-menu-toggle.active .menu-text {
    opacity: 0;
}

.footer-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #1a252f;
    border-radius: 4px;
}

.footer-nav.active {
    display: flex;
    max-height: 400px;
    padding: 0.5rem 0;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-nav li:last-child {
    border-bottom: none;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* Mobile First - Footer Widget Areas */
.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-widgets .widget {
    background: transparent;
    box-shadow: none;
    color: #fff;
}

.footer-widgets .widget-title {
    color: #fff;
    border-bottom-color: #3498db;
}

.footer-widgets .widget-content a {
    color: #ecf0f1;
}

.footer-widgets .widget-content a:hover {
    color: #3498db;
}

/* Tablet - 600px and up */
@media (min-width: 600px) {
    .container {
        padding: 0 20px;
    }
    
    .row,
    .news-grid,
    .chapels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Hide footer menu toggle on tablet */
    .footer-menu-toggle {
        display: none;
    }
    
    /* Show footer navigation inline on tablet */
    .footer-nav {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        max-height: none;
        background: transparent;
        padding: 0;
        margin-top: 1rem;
    }
    
    .footer-nav ul {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-nav li {
        border-bottom: none;
    }
    
    .footer-nav a {
        width: auto;
        padding: 0.5rem;
        min-height: auto;
    }
    
    .footer-nav a:hover {
        color: #3498db;
        background: transparent;
    }
}

/* Desktop - 768px and up */
@media (min-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .logo img {
        max-width: 120px;
    }
    
    .main-logo-svg {
        height: 50px;
    }
    
    .main-logo-text {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    /* Hide mobile menu toggle on desktop */
    .nav-menu-toggle {
        display: none;
    }
    
    /* Show navigation inline on desktop */
    .main-nav {
        display: block !important;
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        box-shadow: none;
        overflow: visible;
        max-height: none;
    }
    
    nav ul {
        flex-direction: row;
        gap: 1.5rem;
        width: auto;
    }
    
    nav ul li {
        border-bottom: none;
    }
    
    nav a {
        padding: 0.5rem;
        min-height: auto;
        font-size: 1rem;
    }
    
    nav a:hover {
        color: #3498db;
        background: transparent;
    }
    
    .hero-section {
        padding: 4rem 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .officer-card {
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
    }
    
    .officer-image img {
        width: 150px;
        height: 150px;
    }
    
    .gallery-item:hover {
        transform: scale(1.05);
    }
    
    footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Large Desktop - 1024px and up */
@media (min-width: 1024px) {
    .row,
    .news-grid,
    .chapels-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large - 1200px and up */
@media (min-width: 1200px) {
    .row {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Header */
header {
    background-image: url('../../themes/stoa-london/st_thomas_becket.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #4a4a9e;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(192, 192, 192, 0.85);
    z-index: 1;
}

header .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.logo {
    text-align: center;
    width: 100%;
}

.logo img {
    display: block;
    max-width: 80px;
    height: auto;
    margin: 1rem auto;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #4a4a9e;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo .header-title-top {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.logo .header-title-bottom {
    font-size: 1em;
    margin-top: 1rem;
    font-weight: bold;
}

@media (min-width: 600px) {
    .logo .header-title-bottom {
        font-size: 1.5em;
    }
}

@media (min-width: 1024px) {
    .logo .header-title-bottom {
        font-size: 2.2em;
    }
}


header h1 a {
    color: #4a4a9e;
    text-decoration: none;
}

/* Navigation */
nav {
    background: #1a1a1a;
    width: 100%;
    position: relative;
}

nav > .container {
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

nav li {
    margin: 0;
}

nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 80px;
}

/* Remove icon display */
nav a::before {
    display: none;
}

nav a:hover {
    opacity: 0.8;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Page Header */
.page-header {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}


/* Cards */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card, .chapel-card, .officer-card, .dashboard-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover, .chapel-card:hover, .dashboard-card:hover {
    transform: translateY(-5px);
}

.card h3, .chapel-card h2, .dashboard-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #2ecc71;
}

.btn-primary:hover {
    background-color: #27ae60;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-item, .news-article {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-item img, .news-article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.news-date, .date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Chapels Grid */
.chapels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Login */
.login-box {
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    margin-bottom: 2rem;  
}


/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00007D;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tables */
.documents-table {
    width: 100%;
    background-color: #fff;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.documents-table th,
.documents-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.documents-table th {
    background-color: #2c3e50;
    color: #fff;
    font-weight: bold;
}

.documents-table tr:hover {
    background-color: #f8f9fa;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Rich Text Editor Image Box Styles */

/* Rich Text Editor Image Styles (no container) */
.rte-img-bordered {
    border: 3px solid #3498db;
    border-radius: 12px;
    padding: 4px;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(52,152,219,0.08);
    max-width: 100%;
    vertical-align: middle;
    display: inline-block;
    margin: 8px 0;
}
.rte-img-wrap-left {
    float: left;
    margin-right: 16px;
}
.rte-img-wrap-right {
    float: right;
    margin-left: 16px;
}

.gallery-caption {
    padding: 1rem;
}

/* Officers */
.officers-list {
    display: grid;
    gap: 2rem;
}

.officer-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
}

.officer-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.officer-info .position {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Widgets */
.widget-area {
    margin-bottom: 2rem;
}

.widget {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-title {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.widget-content ul {
    list-style: none;
    padding: 0;
}

.widget-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.widget-content ul li:last-child {
    border-bottom: none;
}

.widget-news-list li a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
}

.widget-news-list li a:hover strong {
    color: #3498db;
}

.widget-news-list li small {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.widget-documents-list li a {
    color: #2c3e50;
    text-decoration: none;
}

.widget-documents-list li a:hover {
    color: #3498db;
}

.doc-category {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: #ecf0f1;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #7f8c8d;
}

.widget-officers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget-officer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.widget-officer-item .officer-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.widget-officer-item .officer-info {
    flex: 1;
}

.widget-officer-item strong {
    display: block;
    color: #2c3e50;
}

.widget-officer-item small {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.widget-chapels-list li a {
    color: #2c3e50;
    text-decoration: none;
}

.widget-chapels-list li a:hover {
    color: #3498db;
}

.widget-contact-info p {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.widget-contact-info strong {
    color: #3498db;
}

.widget-social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #ecf0f1;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s;
}

.social-link:hover {
    background: #3498db;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.footer-nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #3498db;
}

/* Footer Widget Areas */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widgets .widget {
    background: transparent;
    box-shadow: none;
    color: #fff;
}

.footer-widgets .widget-title {
    color: #fff;
    border-bottom-color: #3498db;
}

.footer-widgets .widget-content a {
    color: #ecf0f1;
}

.footer-widgets .widget-content a:hover {
    color: #3498db;
}

/* Page Content Spacing */
.page-content{
     border: 0.25rem solid #333;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    min-height: 400px;
    background-color: #deb887;
    padding: 0.625rem;
    border-radius: 30px;
    box-shadow: 10px 5px 5px rgb(0 0 0 / 70%);
}

@media (min-width: 900px) {
    .page-content {
        padding: 4rem;
    }
}


/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .officer-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .officer-image img {
        margin: 0 auto;
    }
}
