/* style/contact.css */

/* Base styling for the contact page */
.page-contact {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
    background-color: #ffffff;
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-contact__hero-section {
    background-color: #003366; /* Main brand color for hero background */
    color: #ffffff; /* Light text for dark background */
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-contact__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFCC00; /* Auxiliary color for emphasis */
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.15em;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* General Buttons */
.page-contact__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease, color 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

.page-contact__btn--primary {
    background-color: #FFCC00; /* Auxiliary color for primary action */
    color: #003366; /* Dark text for light button */
    border: 2px solid #FFCC00;
}

.page-contact__btn--primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    transform: translateY(-2px);
}

.page-contact__btn--secondary {
    background-color: transparent;
    color: #FFCC00; /* Auxiliary color for secondary action text */
    border: 2px solid #FFCC00;
}

.page-contact__btn--secondary:hover {
    background-color: #FFCC00;
    color: #003366;
    transform: translateY(-2px);
}

.page-contact__btn--small {
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 6px;
}

/* Section Titles and Intros */
.page-contact__section-title {
    font-size: 2.5em;
    color: #003366; /* Main brand color for section titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Channels Section */
.page-contact__channels-section,
.page-contact__inquiry-topics-section,
.page-contact__commitment-section,
.page-contact__feedback-section,
.page-contact__app-download-section,
.page-contact__register-now-section {
    padding: 60px 0;
}

.page-contact__channels-section {
    background-color: #ffffff;
}

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

.page-contact__channel-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #FFCC00; /* Accent border */
}

.page-contact__channel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-contact__channel-icon {
    width: 200px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    max-width: 100%;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

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

.page-contact__card-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1; /* Ensures cards have consistent height */
}

.page-contact__email-link {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__email-link:hover {
    text-decoration: underline;
    color: #FFCC00;
}

/* Inquiry Topics Section */
.page-contact__inquiry-topics-section {
    background-color: #f0f5f9; /* Lighter shade of blue for contrast */
}

.page-contact__topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-contact__topic-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    padding: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #003366;
    display: flex;
    flex-direction: column;
}

.page-contact__topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__topic-card .page-contact__card-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-contact__topic-card .page-contact__card-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-contact__link-text {
    color: #CC0000; /* Accent color for links */
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.page-contact__link-text:hover {
    text-decoration: underline;
    color: #ff3333;
}

/* Commitment Section */
.page-contact__commitment-section {
    background-color: #003366;
    color: #ffffff;
}

.page-contact__commitment-section .page-contact__section-title {
    color: #FFCC00;
}

.page-contact__commitment-section .page-contact__section-intro {
    color: #e0e0e0;
}

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

.page-contact__commitment-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-contact__commitment-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__commitment-icon {
    width: 250px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    max-width: 100%;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-contact__commitment-item .page-contact__card-title {
    color: #FFCC00;
    font-size: 1.6em;
}

.page-contact__commitment-item .page-contact__card-description {
    color: #cccccc;
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__commitment-item .page-contact__link-text {
    color: #FFCC00;
}

.page-contact__commitment-item .page-contact__link-text:hover {
    color: #ffffff;
}

/* Feedback, App Download, Register Sections - similar styling */
.page-contact__feedback-section,
.page-contact__app-download-section,
.page-contact__register-now-section {
    text-align: center;
    padding: 70px 0;
    background-color: #f8f8f8;
}

.page-contact__app-download-section {
    background-color: #e6eef5; /* A subtle light blue */
}

.page-contact__register-now-section {
    background-color: #FFCC00; /* Accent color for a strong CTA */
    color: #003366;
}

.page-contact__register-now-section .page-contact__section-title {
    color: #003366;
}

.page-contact__register-now-section .page-contact__section-intro {
    color: #333333;
    margin-bottom: 40px;
}

.page-contact__register-now-section .page-contact__btn--primary {
    background-color: #003366;
    color: #FFCC00;
    border-color: #003366;
}

.page-contact__register-now-section .page-contact__btn--primary:hover {
    background-color: #002244;
    border-color: #002244;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }

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

@media (max-width: 768px) {
    .page-contact {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-contact__hero-section {
        padding: 60px 15px;
    }

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

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

    .page-contact__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__btn {
        width: 100%;
        max-width: 300px;
    }

    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-contact__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-contact__channel-grid,
    .page-contact__topics-grid,
    .page-contact__commitment-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-contact__channel-card,
    .page-contact__topic-card,
    .page-contact__commitment-item {
        padding: 20px;
    }

    /* Ensure all content images are responsive and don't overflow */
    .page-contact__hero-section img,
    .page-contact__channel-icon,
    .page-contact__commitment-icon,
    .page-contact__container img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size for content images */
        min-height: 200px;
        object-fit: cover;
    }
    
    /* General image rule to prevent smaller sizes */
    .page-contact img {
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }

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

/* Ensure no filter is used on images */
.page-contact img {
    filter: none !important; /* Strictly prohibit any filter effects */
}

/* Ensure specific image dimensions are not overridden to be smaller than 200px */
.page-contact__channel-icon[width="300"][height="225"],
.page-contact__commitment-icon[width="400"][height="267"] {
    width: auto; /* Allow auto scaling */
    height: auto; /* Allow auto scaling */
    max-width: 100%; /* Ensure responsiveness */
    min-width: 200px; /* Maintain minimum width */
    min-height: 200px; /* Maintain minimum height */
    object-fit: cover;
}