/* ==========================================================================
   Feedback / Contact page  (feedback/form.jsp)
   ========================================================================== */

.locationBar {
    display: none;
}

#page_content {
    background-image: url(../image/home/new-icreate-imgs/bck_4.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: clamp(20px, 4vh, 48px) 0 0;
}

.wrap {
    width: 80%;
    background-color: #ffffff00;
    text-align: left;
    display: inline-block;
}

/* Glass card */
.contactWrapper {
    margin: 0 auto 24px;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(24px, 4vw, 48px) clamp(24px, 5vw, 64px);
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.55);
    box-shadow: -6px 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    line-height: 1.8;
}

.contactWrapper.secondary {
    opacity: 0.82;
    border-top: 1.5px dashed rgba(255, 255, 255, 0.25);
}

/* Section headings */
.contact-section-title {
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Body text */
.contactInfo {
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    line-height: 1.8;
}

.contactInstitute {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
}

.contactLabel {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
}

.contactCordinator {
    font-size: 16px;
}

/* Links */
.contactWrapper a {
    color: rgb(255, 230, 207);
    text-decoration: underline;
}

.contactWrapper a:hover {
    color: rgb(236, 160, 88);
}

/* CTI logo */
.contactLogo {
    height: 120px;
    width: auto;
    margin-bottom: 12px;
    opacity: 0.88;
}

/* Divider between sub-sections */
.contact-inner-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 18px 0;
}

/* --------------------------------------------------------------------------
   Logos: Ministry of Education (YPAITHA) + EduTV, on white cards so the dark
   blue / black artwork stays readable on the dark glass box
   -------------------------------------------------------------------------- */
.contact-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 54px;
    margin: 6px 0 18px;
}

.contact-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.contact-logo-img {
    display: block;
    height: 64px;
    width: auto;
    max-width: 100%;
}

.contact-logo-img--edutv {
    height: 72px;
}

.contact-logo-img--cti {
    height: 80px;
}

a.contact-logo-card {
    text-decoration: none;
    transition: box-shadow 0.2s;
}
a.contact-logo-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   1st box (.edutv-wrapper): two rows, each logo next to its own text
     row 1: [Ministry logo] | Ministry / department text
     row 2: [EduTV logo]    | contact people
   Children sit directly in the grid (logo, text, logo, text), so both texts
   share one column and line up; both logo cards take the same width.
   -------------------------------------------------------------------------- */
.edutv-wrapper {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: clamp(20px, 3vw, 40px);
    row-gap: clamp(18px, 2.5vw, 28px);
    align-items: center;                        /* logo vertically centred on its text */
}

.edutv-wrapper > .contact-row-logo {
    justify-self: start;                      /* equal-width cards, logo centred inside */
}

.edutv-wrapper > .contact-row-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   2nd box (.cti-wrapper): logo on the left spanning all text rows
   -------------------------------------------------------------------------- */
.cti-wrapper {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

.cti-wrapper > .contact-logos {
    grid-column: 1;
    grid-row: 1 / span 10;
    flex-direction: column;
    align-items: flex-start;
    margin: 4px 0 0;
}

.cti-wrapper > :not(.contact-logos) {
    grid-column: 2;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Narrow screens: one column - each logo goes above its own text */
@media (max-width: 760px) {
    .edutv-wrapper {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 10px;
    }
    .edutv-wrapper > .contact-row-logo {
        justify-self: start;
    }
    .edutv-wrapper > .contact-row-logo:not(:first-child) {
        margin-top: 18px;                       /* separate row 2 from row 1 */
    }

    .cti-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
    .cti-wrapper > .contact-logos {
        grid-row: auto;
        flex-direction: row;
        margin: 6px 0 18px;
    }
    .cti-wrapper > :not(.contact-logos) {
        grid-column: 1;
    }
}

@media (max-width: 600px) {
    .contact-logo-img        { height: 48px; }
    .contact-logo-img--edutv { height: 56px; }
    .contact-logo-img--cti   { height: 60px; }
}

/* --------------------------------------------------------------------------
   Font sizes: 1st box larger (text 18px / titles 22px),
               2nd box (.secondary) smaller (text 14px / titles 16px)
   -------------------------------------------------------------------------- */
.contactWrapper:not(.secondary) {
    font-size: 18px;
}
.contactWrapper:not(.secondary) .contact-section-title {
    font-size: 33px;
    font-weight: 400;
    text-align: center;
}
.contactWrapper:not(.secondary) .contactInfo,
.contactWrapper:not(.secondary) .contactInstitute,
.contactWrapper:not(.secondary) .contactLabel {
    font-size: 20px;
    font-weight: 400;
}

/* Helpdesk e-mail: larger, centered, envelope icon in front */
.contact-helpdesk-mail {
    margin: 16px 0 4px;
    text-align: center;
    font-size: 26px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.contact-helpdesk-mail a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.contact-helpdesk-mail .fa-envelope {
    font-size: 0.95em;
}
@media (max-width: 600px) {
    .contact-helpdesk-mail { font-size: 20px; }
    .contact-helpdesk-mail a { gap: 8px; }
}

.contactWrapper.secondary {
    font-size: 14px;
    line-height: 1.7;
}
.contactWrapper.secondary .contact-section-title {
    font-size: 16px;
    font-weight: 400;

}
.contactWrapper.secondary .contactInfo,
.contactWrapper.secondary .contactInstitute,
.contactWrapper.secondary .contactLabel,
.contactWrapper.secondary .contactCordinator {
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
}
