/* 
 * Custom Styles for the Sustainability Page
 */ 

/* General Card Styling */
.page-id-4069 .card,
.page-id-4069 .impact-item,
.page-id-4069 .content-section[style*="background"],
.page-id-4069 .durability-points > div {
    border-radius: 0 !important; /* Square corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    transition: box-shadow 0.3s ease-in-out;
}

.page-id-4069 .card:hover,
.page-id-4069 .impact-item:hover,
.page-id-4069 .content-section[style*="background"]:hover,
.page-id-4069 .durability-points > div:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
}


/* 1. Hero Section - Reduce top margin */
.page-id-4069 .hero-section,
.page-id-4069 .page-content > .container:first-child,
.page-id-4069 .elementor-section:first-child {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* 2. Reduce spacing after "Every Product Tells a Story" section */
.page-id-4069 .content-section:has(h2:contains("Every Product Tells a Story")),
.page-id-4069 h2:contains("Every Product Tells a Story") + *,
.page-id-4069 .elementor-widget:has(.elementor-heading-title:contains("Every Product")) {
    margin-bottom: 30px !important;
}

/* Alternative selector for "Every Product Tells a Story" section */
.page-id-4069 [style*="margin-bottom: 60px"]:has(h2:contains("Every Product")) {
    margin-bottom: 30px !important;
}

/* 3. Trail Partners Section Styling */
/* Change brown headers to green in trail partners section */
.page-id-4069 h3:contains("Tiger Mountain Partnership"),
.page-id-4069 h3:contains("Duthie Hill Partnership"),
.page-id-4069 h3:contains("Capitol Forest Partnership"),
.page-id-4069 .trail-partner h3,
.page-id-4069 .partnership h3 {
    color: #28a745 !important;
}

/* Trail Partner Icons */
.page-id-4069 .trail-partners .partnership-item,
.page-id-4069 .trail-partner-item {
    position: relative;
    text-align: center;
}

/* Mountain Icon for Tiger Mountain */
.page-id-4069 h3:contains("Tiger Mountain")::before,
.page-id-4069 .tiger-mountain::before {
    content: "⛰️";
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Tree Icon for Duthie Hill */
.page-id-4069 h3:contains("Duthie Hill")::before,
.page-id-4069 .duthie-hill::before {
    content: "🌲";
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Leaf Icon for Capitol Forest */
.page-id-4069 h3:contains("Capitol Forest")::before,
.page-id-4069 .capitol-forest::before {
    content: "🍃";
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Alternative approach using CSS-only icons if emojis aren't preferred */
.page-id-4069 .icon-mountain::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M14 6l-4.22 5.63 1.25 1.67L14 9.33 19 16H5l4.46-5.94L11 11.67 14 6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.page-id-4069 .icon-tree::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M12 2L8 8h2v2H8l4 6 4-6h-2V8h2l-4-6z'/%3E%3Cpath d='M11 16h2v6h-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.page-id-4069 .icon-leaf::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M17 8C8 10 5.9 16.17 3.82 21.34l1.06.54C6.16 17.4 7.96 12.81 12 10.5c2.5 3.5 5.5 6.5 9 7.5l.5-1c-3.5-1-6.5-4-9-7.5C15.5 8.5 17 8 17 8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 4. Consistent styling for all content sections */
.page-id-4069 .content-section,
.page-id-4069 .elementor-section {
    border-radius: 0 !important;
}

/* Ensure all text content in trail partners section is properly styled */
.page-id-4069 .trail-partners p,
.page-id-4069 .partnership-description {
    color: #495057;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-id-4069 .hero-section,
    .page-id-4069 .page-content > .container:first-child {
        padding-top: 10px !important;
    }
    
    .page-id-4069 h3:contains("Tiger Mountain")::before,
    .page-id-4069 h3:contains("Duthie Hill")::before,
    .page-id-4069 h3:contains("Capitol Forest")::before,
    .page-id-4069 .tiger-mountain::before,
    .page-id-4069 .duthie-hill::before,
    .page-id-4069 .capitol-forest::before {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
}

/* Sustainability Page Specific Styling - Black Line MTB */

/* 1. Hero Section - Style the hero text addition properly */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-section .hero-text-addition {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

/* Add dark overlay to hero for better text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* 2. Reduce spacing at top of page */
.page-content {
    margin-top: -20px;
}

.container {
    margin-top: 0;
}

/* 3. Reduce spacing after "Every Product Tells a Story" section */
.content-section:first-of-type {
    margin-bottom: 30px !important;
}

/* Override inline styles for first content section */
div[style*="margin-bottom: 60px"]:first-of-type {
    margin-bottom: 30px !important;
}

/* 4. Trail Partners Section - Green headers and add icons */

/* Change the card header to green */
.card-header.bg-primary {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.card-header.bg-primary h2,
.card-header.bg-primary .card-title {
    color: #ffffff !important;
}

/* Style the trail partner headings in green */
.bg-light.rounded h4.h5 {
    color: #28a745 !important;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Add icons before each trail partner section */
.bg-light.rounded {
    position: relative;
    padding-top: 80px !important;
}

/* Mountain icon for Tiger Mountain (first item) */
.row .col-md-4:nth-child(1) .bg-light.rounded::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M14 6l-4.22 5.63 1.25 1.67L14 9.33 19 16H5l4.46-5.94L11 11.67 14 6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Tree icon for Duthie Hill (second item) */
.row .col-md-4:nth-child(2) .bg-light.rounded::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M12 2L8 8h2v2H8l4 6 4-6h-2V8h2l-4-6z'/%3E%3Cpath d='M11 16h2v6h-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Leaf icon for Capitol Forest (third item) */
.row .col-md-4:nth-child(3) .bg-light.rounded::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M17 8C8 10 5.9 16.17 3.82 21.34l1.06.54C6.16 17.4 7.96 12.81 12 10.5c2.5 3.5 5.5 6.5 9 7.5l.5-1c-3.5-1-6.5-4-9-7.5C15.5 8.5 17 8 17 8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 5. Square corners and drop shadows for all cards */
.impact-item,
.card,
.content-section[style*="background"],
.bg-light.rounded,
.durability-points > div {
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.impact-item:hover,
.card:hover,
.content-section[style*="background"]:hover,
.bg-light.rounded:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15) !important;
    transition: box-shadow 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .hero-text-addition {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .bg-light.rounded {
        padding-top: 70px !important;
    }
    
    .row .col-md-4:nth-child(1) .bg-light.rounded::before,
    .row .col-md-4:nth-child(2) .bg-light.rounded::before,
    .row .col-md-4:nth-child(3) .bg-light.rounded::before {
        width: 40px;
        height: 40px;
        top: 12px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .hero-text-addition {
        font-size: 1rem;
    }
    
    .page-content {
        margin-top: -10px;
    }
}