/*
Theme Name: Firstpresbyterian
Theme URI: https://dreamcowebsites.com/
Author: Dreamcowebsites
Author URI: https://dreamcowebsites.com/
Description: Do justice, love mercy, and walk humbly with your God
Requires at least: 5.9
Tested up to: 6.2
Requires PHP: 5.6
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dana

*/

/* Global Styles */
:root {
    --primary: #517425;
    --secondary: #8D9753;
    --accent: #EC8A33;
    --light: #D9D9D9;
    --dark: #1E1E1E;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

:root {
  --primary: #00808B; /* Teal */
  --secondary: #06693A; /* Dark Green */
  --accent: #ED5D3B; /* Orange-Red */
  --light-gray: #F5F5F5; /* Light Gray */
  --primary-text: #222222; /* Dark Text */
  --text-inverse: #ffffff; /* White Text */
  --dark-gray: #222222; /* Dark Gray */
  --icon-color: #00808B; /* Teal */
  --white: #ffffff; /* White */
  --background: #f9f9f9; /* Very Light Gray, added for consistency */
  --tertiary: #6c5f82; /* Tertiary color for the footer and other elements */
  --brand-color: #2C5FB2; /* Accent blue from the logo */
  
}

/* Body: white background with a subtle light pattern */
body {
  background: var(--white) url('assets/light-pattern.png') repeat;
  font-family: 'Myriad Pro', sans-serif;
  color: var(--primary-text);
}

/* Headers use Champagne & Limousines; fallback to Myriad Pro */
h1, h2, .nav-link, .btn {
  font-family: 'Champagne & Limousines', 'Myriad Pro', sans-serif;
  text-transform: uppercase;
  font-weight: bold !important;
}

/* Navbar */
.navbar {
  background-color: var(--white);
  padding: 1rem 0;
  height: 56px;
}

.navbar .nav-item a {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 8px 16px !important;
}
.navbar a.nav-link:hover, .navbar a.nav-link:active{
  color:var(--accent);
}

.h56 {
  height: 56px;
}

.navbar-brand img {
  height: 120px;
  background: var(--white);
  z-index: 1;
  position: relative;
  padding: 8px 24px;
  border-radius: 20px;
  top: 32px;
}

/* HERO SECTION: Full background video with gradient overlay */
.hero {
  position: relative;
  height: 95vh;
  overflow: hidden;
  background: var(--dark-gray);
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Gradient overlay: blue to black */
  background: linear-gradient(45deg, rgba(6, 21, 45, 0.7), rgba(0, 0, 0, 0.7));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  color: var(--text-inverse);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--text-inverse);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.scroll-down:hover {
  opacity: 1;
}

/* Button styling */
.btn-brand {
  background-color: var(--primary);
  color: var(--white) !important;
  border: none;
}

.btn-brand:hover {
  background-color: #00666F;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  border: none;
}

.btn-secondary:hover {
  background-color: #05542E;
}

.banner {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--dark-gray);
}
.banner img {
  width: 100% !important;
}

/* Section styling: white backgrounds with dark text */
.section {
  background-color: var(--white);
  padding: 5rem 0;
}

/* Section titles with decorative underline */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px;
  background-color: var(--accent);
}

.our-community {
  background: linear-gradient(270deg, #EEEEEE 0%, #FFFFFF 100%);
  padding: 5rem 0;
}

/* Content images: remove rotation and reduce brightness */
.content-img {
  max-width: 100%;
  border-radius: 5px;
  filter: brightness(0.9);
}

/* JOIN COMMUNITY SECTION: Background image with overlay text */
.join-community {
  position: relative;
  background: var(--primary);
  color: var(--text-inverse);
  padding: 5rem 0;
}

.join-community .container {
  position: relative;
  z-index: 2;
}

/* About Us */
#vision-values {
  padding: 5rem 0;
}

#vision-values img {
  height: 244px;
  width: 100%;
  border-radius: 0px !important;
}

#worship-times {
  background: var(--primary);
  padding: 5rem 0;
}

.info-item {
  background: var(--white);
  color: var(--primary-text);
  padding: 16px;
  gap: 16px;
  height: 100%;
  align-items: center;
}

#vision-values i, #worship-times i {
  color: var(--primary);
  font-size: 32px;
}

#worship-times .section-title {
  color: var(--text-inverse);
}

#about-links {
  padding-bottom: 3.5rem;
  padding-top: 5rem;
}

#about-links .card {
  border: none;
  overflow: hidden;
  border-radius: 10px;
}

#about-links .card-img-top {
  height: 200px;
  object-fit: cover;
}

#about-links .card-img-overlay {
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
  color: white;
  padding: 8rem 1rem 0 1rem;
}

#about-links h5 {
  font-size: 1.2rem;
}

#about-links .btn-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#about-links .btn-circle i {
  font-size: 1.2rem;
}

.card-img-overlay a:hover {
  background: var(--primary);
}

/* FOOTER */
footer {
  background-color: var(--dark-gray);
  color: var(--text-inverse);
  padding: 40px 0;
}

footer ul li, footer a {
  color: var(--text-inverse);
  text-decoration: none;
  font-size: 14px;
}
footer ul li:first-child {
  display: inline-flex;
}

footer a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.footer-social-icons {
  text-align: right;
}

.footer-social-icons a {
  display: inline-block;
  margin: 0 10px;
  width: 40px;
  height: 40px;
  background-color: #444;
  color: var(--text-inverse);
  border-radius: 50%;
  text-align: center;
  line-height: 43px;
  transition: background-color 0.3s;
  font-size: 1.25rem;
}

.footer-social-icons a:hover {
  background-color: var(--primary);
}

.footer-top {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-bottom {
  padding-top: 20px;
  text-align: left;
  font-size: 0.9rem;
}

.footer-col {
  margin-bottom: 20px;
}

/* Dropdown menu styling */
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* Featured Member Styling */
.featured-member {
    background: var(--light-gray);
}

.featured-member h3 {
    font-size: 1.75rem;
}

.featured-member p {
    font-size: 0.95rem;
}

/* Team Grid Styling */
#staff-grid .card {
    border: none;
}

#staff-grid .card:hover {
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

#staff-grid img {
    object-fit: cover;
}

.toggle-bio {
    font-size: 0.9rem;
}

/* Collapse Animation */
.collapse:not(.show) {
    display: none;
}

#church-history img {
    max-height: 300px;
    object-fit: cover;
  object-position:top;
  width:100%;
}

/* What Is Presbyterian Page Styles */
#core-beliefs .bi {
    font-size: 32px !important;
  color:var(--primary) !important;
}

#core-beliefs h3 {
    margin-top: 15px;
}







/* Timeline styling */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--white);
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* Hero Section Styles */
.hero-serving {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    color: white;
    text-align: center;
}

.btn-serve-cta {
    transition: transform 0.3s ease;
}

.btn-serve-cta:hover {
    transform: translateY(5px);
}

/* Section Styling */
.section-label {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Image Mosaic */
.image-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
}

.mosaic-item {
    overflow: hidden;
    border-radius: 8px;
}

.mosaic-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Ministry Cards */
.ministry-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ministry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ministry-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    background: rgba(0,128,139,0.8);
    color: white;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-link i {
    opacity: 0;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary);
}

.btn-link:hover i {
    opacity: 1;
    margin-left: 10px;
}

/* Serving Page */
.page-template-tpl-serving .btn-link {
    display: none;
}

/* Parallax Section */
.parallax-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.6);
}

.content-box {
    position: relative;
    z-index: 2;
}

.scripture-quote {
    position: relative;
    padding-left: 40px;
    font-style: italic;
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.scripture-quote i {
    position: absolute;
    left: 10px;
    top: 0;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Pillars */
.pillar-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pillar-icon i {
    font-size: 2rem;
    color: white;
}

/* Tabs */
.initiative-tabs {
    border-bottom: none;
    justify-content: center;
    margin-bottom: 30px;
}

.initiative-tabs .nav-link {
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--primary-text);
    transition: all 0.3s ease;
}

.initiative-tabs .nav-link.active {
    background-color: var(--accent);
    color: white;
}

.initiative-content {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Scripture Cards */
.scripture-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scripture-card {
    width: 250px;
    height: 180px;
    perspective: 1000px;
    cursor: pointer;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.6s ease;
}

.card-front {
    background: white;
}

.card-front i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.card-back {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.scripture-card:hover .card-front {
    transform: rotateY(180deg);
}

.scripture-card:hover .card-back {
    transform: rotateY(0);
}

/* Commitment Items */
.commitment-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.commitment-item:hover {
    transform: translateX(10px);
}

.commitment-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
}

/* Rights Reminder */
.rights-reminder {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.rights-reminder li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.rights-reminder i {
    margin-right: 10px;
}
/* Serving Page Enhancements */
.ministry-card {
    transition: transform 0.3s ease;
    border: none;
}

.ministry-card:hover {
    transform: translateY(-5px);
}

.ministry-card .card-header {
    background: var(--primary);
    color: white;
    border-bottom: 3px solid var(--accent);
}
.ministry-card .card-body {
    padding: 20px;
}

/* Using ID selector with prioritized classes for gathering-grid */
#gathering-grid {
    padding: 2rem 0;
    background-color: var(--light-gray);
}

/* Equal height for image and content columns using ID and class combination */
#gathering-grid .ministry-card .row {
    display: flex;
    align-items: stretch;
}

#gathering-grid .ministry-card img {
    height: 100%;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

#gathering-grid .ministry-card.height-control {
    min-height: 300px; /* Adjust as needed */
}

#gathering-grid .ministry-card:last-child img {
   
}

#gathering-grid .ministry-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#gathering-grid .ministry-card.prioritized {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 128, 139, 0.1);
}

.list-group-item {
    border-color: rgba(0,0,0,0.1);
}

.bg-primary .card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.bg-primary .card:hover {
    background: rgba(255,255,255,0.2);
}

.bg-brand {
    background: var(--primary);
  color:#fff;
}
#community-initiatives .btn-brand, #immigration-commitment .btn-brand {
    display: none;
}

/* Events Page Styles */
.calendar-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.calendar-container iframe {
    width: 100%;
    border-radius: 8px;
}

.event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.event-date {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 8px 16px;
    border-radius: 4px;
}

.event-month {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.event-day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

#featured-events .card-title {
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

#featured-events .card-text {
    margin-bottom: 0.5rem;
}

#featured-events i {
    margin-right: 5px;
}

/*----Giving Page----*/

.quote-container {
    position: relative;
    border-left: 4px solid var(--primary);
    margin: 0 auto 2rem;
}

.quote-symbol {
    position: absolute;
    top: 0px;
    left: 20px;
    padding: 0 10px;
    opacity: 0.8;
}

.quote-container blockquote p {
    font-weight: 500;
    color: #333;
}

.quote-container .blockquote-footer {
    font-weight: 500;
    padding: 20px 0 0 0;
    color: var(--primary);
    background: transparent !important;
}

/* Contact Page Styles */
.contact-details h5 {
    color: var(--primary);
    font-weight: 600;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
}

#contactForm .form-control{
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

#contactForm .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 128, 139, 0.25);
}

#contactForm label, .gform_wrapper label {
    font-weight: 500;
    margin-bottom: 5px;
}

#map-section .card {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#map-section .card:hover {
    transform: translateY(-5px);
}

#map-section h4 {
    font-size: 1.25rem;
}
/* Contact Page Styles with Gravity Forms Support */
.contact-details h5 {
    color: var(--primary);
    font-weight: 600;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
}

/* Gravity Forms Styling */
.gform_wrapper {
    margin-bottom: 20px;
}

.gform_body .gfield {
    margin-bottom: 20px;
}

.gform-field-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-text);
	font-size: 16px;
}

.gform-field-label--type-sub {
    font-size: 0.9rem;
    font-weight: 400;
}

.ginput_container input[type="text"],
.ginput_container input[type="email"],
.ginput_container input[type="tel"],
.ginput_container textarea {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    width: 100%;
}

.ginput_container input[type="text"]:focus,
.ginput_container input[type="email"]:focus,
.ginput_container input[type="tel"]:focus,
.ginput_container textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 128, 139, 0.25);
    outline: none;
}

.gfield_required {
    color: var(--accent);
    margin-left: 4px;
}

.gfield_required_text {
    font-size: 0.8rem;
}

.gform-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.gform-grid-col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 1;
}

.gfield--width-half {
    width: 50%;
    float: left;
    clear: none;
	padding:0 15px 0 0;
}
div#field_1_4 {
    padding-left: 15px;
    padding-right: 0;
}

.gform_footer {
    margin-top: 20px;
}

.gform_button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.gform_button:hover {
    background-color: #00666F;
}

#map-section .card {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#map-section .card:hover {
    transform: translateY(-5px);
}

#map-section h4 {
    font-size: 1.25rem;
}




/* Responsive Adjustments */
@media (max-width: 768px) {
    .image-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 150px);
    }
    
    .scripture-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .parallax-background {
        background-attachment: scroll;
    }
	 .gfield--width-half {
        width: 100%;
        float: none;
    }
	
}


@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 15px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar {
    height: auto;
  }

  .navbar-collapse li {
    background: #fff;
    z-index: 1;
  }
	.menu-item-has-children > a {
    padding: 8px 15px;
}
	.nav-item {
    padding: 8px 0;
}
}

