/*
 Theme Name:   Cala Cares Child
 Theme URI:    https://wpvessel.com
 Description:  Developed with Generate Press
 Text Domain:	 calacares_child
 Author:       WP Vessel
 Template:     generatepress
 Author URI:   https://wpvessel.com
 Version:      1.0
*/

/* Resources Archive and Topic Pages - Montserrat Font */
.resources-archive,
.resource-topic-page {
    font-family: 'Montserrat', sans-serif !important;
}

.resources-archive *,
.resource-topic-page * {
    font-family: 'Montserrat', sans-serif !important;
}

/* Specific text elements for resources pages */
.resources-archive h1,
.resources-archive h2,
.resources-archive h3,
.resources-archive p,
.resources-archive span,
.resources-archive div,
.resources-archive a,
.resource-topic-page h1,
.resource-topic-page h2,
.resource-topic-page h3,
.resource-topic-page p,
.resource-topic-page span,
.resource-topic-page div,
.resource-topic-page a,
.topic-header-title,
.resource-name,
.resource-description,
.region-info,
.resource-link,
.contact-item,
.section-title,
.back-to-topics {
    font-family: 'Montserrat', sans-serif !important;
}


.team-archive {
    text-align: center;
    padding: 50px 20px;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.team-member {
    text-align: center;
    max-width: 250px;
}

.team-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
	object-position: 50% 15%;
}
.team-member.image-contain .team-image img {
    object-fit: contain;
	background: black;
}

.team-name {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    margin-top: 15px;
    margin-bottom: 0px;
}

.team-title,
.team-role {
    font-size: 16px;
    color: #757575; /* Greyed-out text */
    margin: 0px;
}

.subpages-button-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.subpage-button {
    display: inline-block;
    background-color: #59797d;
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.subpage-button:hover {
    background-color: #f29273;
}



/* Resources Archive Styles - Force Center Alignment */
.resources-archive {
    padding: 50px 20px;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.resources-archive .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
}

.resources-archive h1 {
    font-size: 42px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    text-align: center !important;
    width: 100%;
    display: block;
}

.resources-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    text-align: center !important;
    max-width: 600px;
    width: 100%;
    display: block;
}

/* Resource Topics Grid - Centered Grid System */
.resource-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    justify-items: center;
    align-items: start;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.resource-topic-card {
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.topic-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.topic-link:hover {
    text-decoration: none;
    color: inherit;
}

.topic-image {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.topic-link:hover .topic-image img {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.topic-info {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topic-title {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-align: center;
}

.topic-count {
    font-size: 16px;
    color: #757575;
    margin: 0;
    font-style: italic;
    text-align: center;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.resource-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.resource-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


.resource-content {
    padding: 20px;
}

.resource-title a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.resource-title a:hover {
    color: #59797d;
}

.resource-meta p {
    margin: 5px 0;
    font-size: 14px;
    color: #777;
}

.resource-meta strong {
    color: #333;
}

.resource-meta a {
    color: #59797d;
    text-decoration: none;
}

.resource-meta a:hover {
    text-decoration: underline;
}

/* Single Resource Styles */
.single-resource {
    padding: 50px 20px;
}

.resource-detail {
    max-width: 800px;
    margin: 0 auto;
}

.resource-featured-image {
    margin-bottom: 30px;
}

.resource-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.resource-header {
    margin-bottom: 30px;
    text-align: center;
}

.resource-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.resource-content h2 {
    color: #333;
    font-size: 24px;
    margin: 30px 0 15px 0;
    border-bottom: 2px solid #59797d;
    padding-bottom: 10px;
}

.resource-content h3 {
    color: #333;
    font-size: 18px;
    margin: 20px 0 10px 0;
}

.resource-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.resource-detail-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #59797d;
}

.resource-detail-item p {
    margin: 0;
    color: #333;
}

.resource-contact-link {
    color: #59797d;
    text-decoration: none;
    font-weight: 500;
}

.resource-contact-link:hover {
    text-decoration: underline;
}

.resource-additional-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.resource-additional-content p {
    line-height: 1.6;
    color: #666;
}

.resource-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.back-to-resources {
    display: inline-block;
    background-color: #59797d;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.back-to-resources:hover {
    background-color: #f29273;
}

/* Resource Details Styling */
.resource-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 15px;
}

.resource-type-local {
    background-color: #e3f2fd;
    color: #1976d2;
}

.resource-type-national {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.resource-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.resource-detail-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.resource-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.resource-detail-item h3 {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-detail-item p {
    margin: 0;
    color: #6c757d;
}

.resource-website-link,
.resource-phone-link,
.resource-email-link {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
}

.resource-website-link:hover,
.resource-phone-link:hover,
.resource-email-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.resource-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.resource-social-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.resource-social-link:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

/* Responsive adjustments for resource topics grid */
@media (max-width: 1024px) {
    .resource-topics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 750px;
    }
}

@media (max-width: 768px) {
    .resource-topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 500px;
    }
    
    .topic-image {
        width: 120px;
        height: 120px;
    }
    
    .resources-archive h1 {
        font-size: 2rem;
    }
    
    .resource-type-badge {
        display: block;
        margin: 10px 0 0 0;
        text-align: center;
    }
    
    .resource-details {
        padding: 20px;
    }
    
    .resource-social-links {
        flex-direction: column;
    }
    
    .resource-social-link {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .resource-topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 400px;
    }
    
    .topic-image {
        width: 100px;
        height: 100px;
    }
    
    
    .resources-archive {
        padding: 30px 15px;
    }
}

@media (max-width: 360px) {
    .resource-topics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 250px;
    }
    
    .topic-image {
        width: 120px;
        height: 120px;
    }
    
}

/* Resource Topic Page Styles */
.resource-topic-page {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto 50px;
    position: relative;
}

/* Back to Topics Container */
.back-to-topics-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    margin-top: 20px;
}

.topic-header {
    text-align: center;
    margin: 50px 0 10px 0; /* Add space for the back button */
}

.topic-header-title {
    font-size: 40px;
    font-weight: 600;
    color: #000;
}

.resources-section .section-title {
    text-decoration: underline;
    font-weight: 500;
    color: #000;
    max-width: 75%;
    margin: 60px auto 0;
}

.topic-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.back-to-topics {
    display: inline-block;
    color: #141827;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 16px;
    font-weight: 700;
}

.resources-list {
    max-width: 75%;
    margin: 0 auto;
}

.resource-item {
    background-color: #fff;
    border: none;
    border-radius: 0;
    padding: 30px 0;
    margin: 0;
    box-shadow: none;
    border-bottom: 1px solid #d5d5d5;
    transition: none;
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-item:hover {
    box-shadow: none;
}

.resource-name {
    font-size: 1.5rem;
    color: #000;
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.3;
}

.resource-description {
    color: #141827;
    margin-bottom: 5px;
    line-height: 1.6;
    font-size: 14px;
}

.resource-contact {
    display: flex;
    flex-wrap: wrap;
    border-top: none;
    padding-top: 0;
    margin-top: 15px;
}

.contact-item {
    margin: 8px 8px 8px 0;
    display: flex;
    align-items: center;
}

.resource-link {
    display: inline-block;
    background-color: #F9F8F4;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    transition: background-color 0.2s ease;
    font-weight: 500;
    font-size: 14px;
}

.resource-link:hover {
    text-decoration: underline;
}

.region-info {
    color: #777;
    font-style: italic;
    font-size: 14px;
}

.no-resources {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
}

.error-message h1 {
    color: #333;
    margin-bottom: 15px;
}

.resource-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Tablet and phone screens - responsive fixes */
@media (max-width: 1024px) {
    .resource-text-content {
        text-align: center;
    }

    .resources-section .section-title {
        text-align: center;
    }
}

/* Phone screens - additional responsive fixes */
@media (max-width: 480px) {
    .back-to-topics-container {
        margin: 0;
        left: 0;
    }

    .resource-topic-page {
        padding: 20px 15px;
        max-width: 100%;
        margin: 0 auto 30px;
    }
    
    .resources-section .section-title {
        max-width: 100%;
        margin: 60px 0 0 0;
        text-align: center;
    }
    
    .resources-list {
        max-width: 100%;
        margin: 0;
    }
    
    .resource-description {
        max-width: 100%;
    }
    
    .resource-contact {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-item {
        margin: 5px;
    }
}
body.tax-resource_topic .site-content{
	flex-direction: column;
}