/* style/contact.css */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Body background is white */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* Small default padding for desktop, assuming shared.css handles body padding or this is enough */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: none; /* Ensure no CSS filter */
}

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 0;
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    color: #ffffff;
}

.page-contact__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* General Section Styling */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-contact__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-contact__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Background Colors */
.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-contact__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    margin: 10px;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
    background-color: #C30808; /* Registration/Login color as primary for CTA */
    color: #FFFF00; /* Registration/Login font color */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #a80707;
    border-color: #a80707;
}

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
    border-color: #017439;
}

/* Channels Section */
.page-contact__channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding-bottom: 40px;
}

.page-contact__channel-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%; /* Ensure cards have equal height */
}

.page-contact__channel-icon {
    width: 100px; /* Example size */
    height: 100px; /* Example size */
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    max-width: 100%; /* Responsive image */
    height: auto; /* Responsive image */
    filter: none; /* Ensure no CSS filter */
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-contact__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-contact__social-links {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.page-contact__social-btn {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    padding: 8px 15px;
    margin: 0; /* Override general button margin */
}

.page-contact__social-btn:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* Reasons Section */
.page-contact__reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__reason-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #017439;
}

.page-contact__reason-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-contact__reason-list {
    list-style: disc;
    padding-left: 25px;
    color: #555555;
}

.page-contact__reason-list li {
    margin-bottom: 8px;
}

/* Preparation Section */
.page-contact__preparation-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__preparation-list li {
    background-color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #017439;
    font-size: 1.1em;
    color: #333333;
}

.page-contact__preparation-list li strong {
    color: #017439;
}

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.page-contact__faq-question {
    background-color: #f0f0f0;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #e5e5e5;
}

.page-contact__faq-title {
    margin: 0;
    color: #017439;
    font-size: 1.2em;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* For '-' symbol */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to reveal content */
    padding: 15px 25px;
}

.page-contact__faq-answer p {
    margin-bottom: 10px;
}

.page-contact__faq-link {
    color: #017439;
    text-decoration: underline;
}

.page-contact__faq-link:hover {
    color: #005a2d;
}

/* Commitment Section */
.page-contact__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__commitment-list li {
    background-color: #005a2d; /* Darker green for list items in dark section */
    color: #ffffff;
    padding: 15px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 1.1em;
}

.page-contact__commitment-list li strong {
    color: #FFFF00; /* Highlight important text in brand color */
}

.page-contact__commitment-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    filter: none; /* Ensure no CSS filter */
}

/* CTA Section */
.page-contact__cta-section {
    padding: 60px 20px;
    text-align: center;
}

.page-contact__cta-content {
    background-color: #f5f5f5;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-contact__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
    }

    .page-contact__hero-title {
        font-size: 2em;
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }

    .page-contact__text-block {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no CSS filter */
    }
    
    /* Videos responsiveness (if any) */
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0 !important; /* Adjust margin for stacked buttons */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__channel-card {
        padding: 20px;
    }

    .page-contact__card-title {
        font-size: 1.5em;
    }

    .page-contact__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-contact__faq-title {
        font-size: 1em;
    }
    
    .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-contact__hero-content,
    .page-contact__introduction-section,
    .page-contact__channels-section,
    .page-contact__reasons-section,
    .page-contact__preparation-section,
    .page-contact__faq-section,
    .page-contact__commitment-section,
    .page-contact__cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 0;
      padding-right: 0;
    }
}

/* Ensure content area images are not smaller than 200px */
.page-contact__channel-icon,
.page-contact__commitment-image {
  min-width: 200px;
  min-height: 200px;
}
/* Any img directly within .page-contact should adhere to min-width/height */
.page-contact img:not(.page-contact__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure no CSS filter on images */
.page-contact img {
  filter: none;
}