/* About Widget CSS */

/* Scoped Root Variables */
.ccs-about-wrapper {
    --ccs-blue-50: #eff6ff;
    --ccs-blue-100: #dbeafe;
    --ccs-blue-200: #bfdbfe;
    --ccs-blue-300: #93c5fd;
    --ccs-blue-400: #60a5fa;
    --ccs-blue-500: #3b82f6;
    --ccs-blue-600: #2563eb;
    --ccs-blue-700: #1d4ed8;
    --ccs-blue-800: #1e3a8a;
    --ccs-gray-50: #f9fafb;
    --ccs-gray-200: #e5e7eb;
    --ccs-gray-700: #374151;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 100%;
}

/* Hero Section */
.ccs-about-hero {
    padding: 8rem 1rem 5rem;
    background: linear-gradient(to bottom right, var(--ccs-blue-800), var(--ccs-blue-700));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ccs-about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.3), transparent 70%);
    animation: ccsPulse 3s ease-in-out infinite;
}

@keyframes ccsPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.ccs-hero-content {
    max-width: 48rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ccs-hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--ccs-blue-300);
    display: inline-block;
}

.ccs-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.ccs-hero-divider {
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--ccs-blue-400), var(--ccs-blue-300));
    margin: 0 auto 1.5rem;
}

.ccs-hero-description {
    font-size: 1.25rem;
    color: var(--ccs-blue-100);
    line-height: 1.75;
}

@media (min-width: 768px) {
    .ccs-hero-title {
        font-size: 3.5rem;
    }
}

/* Mission Section */
.ccs-mission-section {
    padding: 5rem 1rem;
    background: white;
}

.ccs-container {
    max-width: 1280px;
    margin: 0 auto;
}

.ccs-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ccs-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ccs-blue-800);
    margin-bottom: 1rem;
}

.ccs-section-divider {
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--ccs-blue-600), var(--ccs-blue-400));
    margin: 0 auto;
}

@media (min-width: 768px) {
    .ccs-section-title {
        font-size: 3rem;
    }
}

.ccs-mission-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) {
    .ccs-mission-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ccs-mission-card {
    background: linear-gradient(to bottom right, var(--ccs-blue-50), var(--ccs-blue-100));
    border-radius: 1rem;
    padding: 2.5rem;
    border: 2px solid var(--ccs-blue-200);
    transition: all 0.3s ease;
}

.ccs-mission-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.2);
    border-color: var(--ccs-blue-600);
}

.ccs-mission-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to bottom right, var(--ccs-blue-600), var(--ccs-blue-700));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ccs-mission-icon i,
.ccs-mission-icon svg {
    font-size: 2rem;
    color: white;
    fill: white;
    width: 2rem;
    height: 2rem;
}

.ccs-mission-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ccs-blue-800);
    margin-bottom: 1rem;
}

.ccs-mission-text {
    color: var(--ccs-gray-700);
    line-height: 1.75;
}

/* Values Section */
.ccs-values-section {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom right, var(--ccs-blue-50), var(--ccs-blue-100));
}

.ccs-values-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .ccs-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ccs-value-item {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--ccs-gray-200);
    transition: all 0.3s ease;
}

.ccs-value-item:hover {
    transform: translateX(0.5rem);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.ccs-value-number {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(to bottom right, var(--ccs-blue-600), var(--ccs-blue-700));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ccs-value-content {
    flex: 1;
}

.ccs-value-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ccs-blue-800);
    margin-bottom: 0.5rem;
}

.ccs-value-text {
    color: var(--ccs-gray-700);
    line-height: 1.625;
}

/* Beliefs Section */
.ccs-beliefs-section {
    padding: 5rem 1rem;
    background: white;
}

.ccs-beliefs-content {
    max-width: 64rem;
    margin: 0 auto;
}

.ccs-beliefs-intro {
    font-size: 1.125rem;
    color: var(--ccs-gray-700);
    line-height: 1.875;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.ccs-beliefs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ccs-beliefs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ccs-belief-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--ccs-blue-50);
    border-radius: 0.75rem;
    border-left: 4px solid var(--ccs-blue-500);
    transition: transform 0.2s;
}

.ccs-belief-item:hover {
    transform: translateX(5px);
    background: var(--ccs-blue-100);
}

.ccs-belief-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ccs-blue-600);
    font-size: 1rem;
}

.ccs-belief-text {
    color: var(--ccs-gray-700);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Team Section */
.ccs-team-section {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom, var(--ccs-gray-50), #ffffff);
}

.ccs-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

/* On large screens, we might want 2 columns if we have many members, 
   but for "Pastors", usually a wide card is better. 
   User specifically asked for side-by-side image/text which implies a wide card. 
   Let's stick to 1 column grid so the card can be wide. 
*/

.ccs-team-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--ccs-gray-200);
    /* Mobile: Stacked (default) */
    display: flex;
    flex-direction: column;
}

.ccs-team-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.2);
}

.ccs-team-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    /* Mobile aspect ratio */
    overflow: hidden;
    background: linear-gradient(to bottom right, var(--ccs-blue-50), var(--ccs-blue-100));
}

.ccs-team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ccs-team-content-wrapper {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tablet/Desktop: Side by Side */
@media (min-width: 768px) {
    .ccs-team-card {
        flex-direction: row;
        align-items: stretch;
        /* Stretch image to match height */
    }

    .ccs-team-image-wrapper {
        width: 40%;
        /* Image takes 40% width */
        max-width: 400px;
        aspect-ratio: auto;
        /* Let flex stretch handle height */
        flex-shrink: 0;
    }

    .ccs-team-content-wrapper {
        padding: 3rem 2.5rem;
        /* More breathing room */
    }
}

.ccs-team-name {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--ccs-blue-800);
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
}

.ccs-team-role {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ccs-blue-600);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ccs-team-bio {
    color: var(--ccs-gray-700);
    line-height: 1.75;
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
}

.ccs-team-contact {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ccs-gray-200);
}

.ccs-contact-btn {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--ccs-blue-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ccs-blue-600);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ccs-contact-btn:hover {
    background: var(--ccs-blue-600);
    color: white;
    transform: scale(1.1);
}

.ccs-contact-btn i,
.ccs-contact-btn svg {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
}

/* Gallery Section */
.ccs-gallery-section {
    padding: 5rem 1rem;
    background: white;
}

.ccs-gallery-grid {
    column-count: 2;
    column-gap: 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .ccs-gallery-grid {
        column-count: 3;
    }
}

@media (min-width: 1024px) {
    .ccs-gallery-grid {
        column-count: 5;
    }
}

.ccs-gallery-link {
    text-decoration: none;
    display: inline-block;
    /* Essential for Masonry flow */
    width: 100%;
}

.ccs-gallery-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
    /* Vertical gap */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    /* Removed aspect-ratio to show full image */
    backface-visibility: hidden;
    /* Fix for chrome render glitch in columns */
}

.ccs-gallery-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.ccs-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.6);
    /* Blue overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ccs-gallery-overlay i,
.ccs-gallery-overlay svg {
    color: white;
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

/* Hover Effects */
.ccs-gallery-item:hover .ccs-gallery-img {
    transform: scale(1.1);
}

.ccs-gallery-item:hover .ccs-gallery-overlay {
    opacity: 1;
}

.ccs-gallery-item:hover .ccs-gallery-overlay i,
.ccs-gallery-item:hover .ccs-gallery-overlay svg {
    transform: scale(1);
}

/* CTA Section */
.ccs-cta-section {
    padding: 5rem 1rem;
    background: white;
}

.ccs-cta-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(to bottom right, var(--ccs-blue-600), var(--ccs-blue-700));
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    color: white;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.4);
}

.ccs-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ccs-cta-text {
    font-size: 1.125rem;
    color: var(--ccs-blue-100);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.ccs-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .ccs-cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.ccs-cta-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.ccs-cta-btn-primary {
    background: white;
    color: var(--ccs-blue-800);
}

.ccs-cta-btn-primary:hover {
    background: var(--ccs-blue-50);
    transform: scale(1.05);
}

.ccs-cta-btn i,
.ccs-cta-btn svg {
    width: 1.125em;
    height: 1.125em;
}