:root {
    --primary-blue: #1A237E;
    --primary-gold: #FBC02D;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

.bg-primary-blue {
    background-color: var(--primary-blue);
}

.bg-primary-gold {
    background-color: var(--primary-gold);
}

.text-primary-blue {
    color: var(--primary-blue);
}

.text-primary-gold {
    color: var(--primary-gold);
}

.border-primary-blue {
    border-color: var(--primary-blue);
}

.border-primary-gold {
    border-color: var(--primary-gold);
}

.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/main image.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, rgba(26, 35, 126, 0.7), rgba(251, 192, 45, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-blue);
}

.btn-secondary {
    background-color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--primary-gold);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-blue);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.footer {
    background-color: var(--primary-blue);
    color: white;
}

/* For the mobile menu toggle */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Sermon filter buttons */
.filter-btn.active {
    background-color: var(--primary-blue);
    color: white;
}

/* Styling for the service times box */
.service-times-box {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

/* About page section styling */
.about-section {
    background-color: #f8f9fa;
}

.verse-highlight {
    background-color: rgba(251, 192, 45, 0.2);
    border-left: 4px solid var(--primary-gold);
}

/* Ministry page styling */
.ministry-card {
    border-top: 4px solid var(--primary-gold);
}

/* Events styling */
.event-date {
    border-radius: 8px;
    background-color: var(--primary-blue);
}

/* For sermon thumbnails */
.sermon-thumbnail {
    position: relative;
}

.sermon-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 126, 0.3);
    transition: all 0.3s ease;
}

.sermon-thumbnail:hover::before {
    background: rgba(26, 35, 126, 0.1);
}

.sermon-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.sermon-thumbnail:hover .sermon-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Page transitions */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #111966;
}

/* Add Team Directory Styles */
.team-card {
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.team-detail-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.ministry-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ministry-detail-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.event-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.event-detail-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.form-message {
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    display: block;
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #ef4444;
}