/*
Theme Name: Charlton Road Church
Theme URI: https://charltonroadchurch.org.uk
Author: Charlton Road Church
Author URI: https://charltonroadchurch.org.uk
Description: A modern and clean WordPress theme for Charlton Road Church in Kingstanding, Birmingham. Features responsive design, ministry pages, and integrated contact information.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: charlton-road-church
Tags: church, ministry, religious, responsive, clean, modern
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Header */
header {
    background: #2c3e50;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.logo {
    width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #2c3e50;
    border-radius: 4px;
    overflow: hidden;
}

.logo img,
.logoImg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.header-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    max-width: 100%;
}

.site-logo {
    text-decoration: none;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    display: block;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #f39c12;
}

.main-navigation {
    flex: 1;
    display: flex;
    width: 100%;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}


.main-navigation ul li {
    margin: 0;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    display: block;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #f39c12;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    background: white;
    height: 2px;
    width: 25px;
    position: relative;
    transition: 0.3s;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-toggle span::before {
    top: -8px;
}

.menu-toggle span::after {
    top: 8px;
}

.menu-toggle.open span {
    background: transparent;
}

.menu-toggle.open span::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.open span::after {
    transform: rotate(-45deg);
    top: 0;
}


/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("https://i.postimg.cc/MKcwXV2f/licensed-image.jpg");
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    margin-top: 80px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.hero h1 span {
    color: #f39c12;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #f39c12;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
}

/* Welcome Section */
.welcome {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.welcome-content h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.welcome-content h2 span {
    color: #f39c12;
}

.welcome-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.welcome-image {
    background: #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    overflow: hidden;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Styles */
.carousel-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 28px;
    padding: 15px 18px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 20;
    border-radius: 5px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 10px;
    background: #f8f9fa;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.dot:hover {
    background: #999;
}

.dot.active {
    background: #f39c12;
    width: 14px;
    height: 14px;
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-wrapper {
        height: 300px;
    }

    .carousel-btn {
        padding: 10px 15px;
        font-size: 20px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }
}

/* Service Times */
.service-times {
    background: #f8f9fa;
    padding: 80px 20px;
}

.service-times-content {
    max-width: 1200px;
    margin: 0 auto;
}

.service-times h2 {
    text-align: center;
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 50px;
}

.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.time-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.time-card:hover {
    transform: translateY(-5px);
}

.time-card h3 {
    color: #f39c12;
    font-size: 24px;
    margin-bottom: 15px;
}

.time-card p {
    color: #555;
    font-size: 18px;
}

/* Ministries */
.ministries {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.ministries h2 {
    text-align: center;
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 50px;
}

.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ministry-card {
    background: #2c3e50;
    color: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.ministry-card:hover {
    background: #f39c12;
    transform: translateY(-5px);
}

.ministry-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.ministry-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Events */
.events {
    background: #2c3e50;
    color: white;
    padding: 80px 20px;
}

.events-content {
    max-width: 1200px;
    margin: 0 auto;
}

.events h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.events-list {
    display: grid;
    gap: 20px;
}

.event-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    align-items: center;
}

.event-date {
    background: #f39c12;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.event-date .day {
    font-size: 36px;
    font-weight: bold;
}

.event-info h3 {
    color: #f39c12;
    margin-bottom: 10px;
}

/* Contact */
.contact {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    background: #f39c12;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.map {
    background: #ddd;
    height: 400px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* Footer */
footer {
    background: #1a252f;
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    font-size: 24px;
    transition: color 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: #f39c12;
}

/* Responsive */
@media (max-width: 768px) {

    /* Header responsive */
    header {
        padding: 10px 0;
    }

    .header-container {
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .site-logo {
        margin-bottom: 10px;
    }

    .logo {
        width: 150px;
        height: 50px;
    }

    /* Toggle button visible */
    .menu-toggle {
        display: block;
    }

    /* Menu hidden by default, shown when .open class is added */
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #2c3e50;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        flex-direction: column;
    }

    .main-navigation.open {
        max-height: 500px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .main-navigation ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation ul li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        padding: 15px 20px;
        font-size: 14px;
    }

    /* Navigation menu responsive */
    .nav-menu {
        display: none;
    }

    .welcome,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .event-item {
        grid-template-columns: 1fr;
    }

    .ministries,
    .welcome,
    .contact {
        margin: 40px auto;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .logo {
        width: 120px;
        height: 45px;
    }

    .site-logo {
        margin-bottom: 8px;
    }

    .main-navigation ul {
        gap: 10px;
        padding: 8px 0;
    }

    .main-navigation a {
        font-size: 12px;
        padding: 6px 8px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Leadership section responsive */
.leadership-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
}


/* WordPress specific */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* Vision, Mission & Values Section */
.vision-mission-values {
    margin-top: 60px;
}

.vision-mission-values h2 {
    font-size: 32px;
}

.vision-mission-values h2 span {
    color: #f39c12;
}

/* History Section */
.history {
    margin-top: 60px;
}

.history h2 {
    font-size: 32px;
}

.history h2 span {
    color: #f39c12;
}

/* Leadership Section */
.leadership {
    margin-top: 60px;
}

.leadership h2 {
    font-size: 32px;
}

.leadership h2 span {
    color: #f39c12;
}

/* Contact Section Links */
.contact-info a {
    color: #f39c12;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Contact Form 7 Styles */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Groups */
.wpcf7-form-group {
    margin-bottom: 0;
}

/* Input Fields */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #333;
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form input[type="tel"]::placeholder,
.wpcf7-form input[type="url"]::placeholder,
.wpcf7-form textarea::placeholder {
    color: #999;
}

/* Input Focus */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.15);
}

/* Textarea */
.wpcf7-form textarea {
    resize: vertical;
    min-height: 160px;
    font-family: inherit;
}

/* Labels */
.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
}

/* Submit Button */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
    background-color: #f39c12;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
    background-color: #e08d0e;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(243, 156, 18, 0.4);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Validation Messages */
.wpcf7-form span.wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
    border-color: #e74c3c !important;
}

/* Success Message */
.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Error Messages */
.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Elder Cards - Expandible */
.elder-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: start;
}

.elder-card:hover {
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.2);
    transform: translateY(-5px);
}

.elder-card.active {
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.3);
}

.elder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.elder-header>div {
    flex: 1;
    text-align: left;
}

.elder-info {
    padding: 25px;
}

.elder-toggle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f39c12;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    margin-top: 0;
}

.elder-toggle-arrow:hover {
    background: #e08d0e;
    box-shadow: 0 6px 18px rgba(243, 156, 18, 0.4);
    transform: translateY(-2px);
}

.elder-card.active .elder-toggle-arrow {
    transform: rotate(180deg);
    background: #e08d0e;
}

.elder-details {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.elder-card.active .elder-details {
    display: block;
    opacity: 1;
}



.detail-item {
    text-align: left;
}

.detail-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Spinner Loading */
.wpcf7-spinner {
    border-color: #f39c12;
    border-right-color: transparent;
    margin-left: 8px;
}

/* Checkbox and Radio */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.wpcf7-form input[type="checkbox"]+label,
.wpcf7-form input[type="radio"]+label {
    display: inline;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {

    .wpcf7-form input[type="submit"],
    .wpcf7-form button[type="submit"] {
        width: 100%;
        align-self: stretch;
    }
}