/*
Theme Name: afpop Connect
Theme URI: https://example.com/
Author: Harry
Description: Custom theme for afpop Connect platform
Version: 1.0
*/

/* --------------------------------------------------------------
   1. RESET & BASE
-------------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --------------------------------------------------------------
   2. COLOUR SYSTEM
-------------------------------------------------------------- */

:root {
    --connect-blue: #1976D2;
    --connect-green: #2E7D32;
    --connect-orange: #F57C00;

    --connect-light-grey: #f2f2f2;
    --connect-border: #dddddd;
}

/* --------------------------------------------------------------
   3. HEADER & NAVIGATION
-------------------------------------------------------------- */

.connect-header {
    background: var(--connect-blue);
    padding: 15px 0;
    color: #fff;
}

.connect-header__inner {
    display: flex;
    align-items: center;
}

.connect-logo {
    margin-right: auto;
}

.connect-logo img {
    height: 50px;
}

.connect-nav__menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.connect-nav__menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.connect-login__button {
    background: #fff;
    color: var(--connect-blue);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* --------------------------------------------------------------
   4. HERO BANNER
-------------------------------------------------------------- */

.connect-hero {
    position: relative;
    height: 500px;
    padding: 0;
    overflow: hidden;
    z-index: 1;
}

.connect-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.connect-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 118, 210, 0.55);
}

.connect-hero__content {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
}

.connect-hero__title {
    font-size: 64px;
    font-weight: bold;
    letter-spacing: 2px;
}

.connect-hero__subtitle {
    font-size: 20px;
    margin-top: 10px;
}

/* --------------------------------------------------------------
   4B. ENTRY PAGE HERO
-------------------------------------------------------------- */

.ce-entry-hero {
    margin-top: 10px;
    height: 400px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.ce-entry-hero .connect-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ce-entry-hero .connect-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.ce-entry-hero .connect-hero__content {
    position: absolute;
    top: 120px;
    left: 60px;
    transform: none;
    text-align: left;
    color: #fff;
    z-index: 3;
}

.ce-entry-hero .connect-hero__title {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0;
}

/* --------------------------------------------------------------
   5. ENTRY BUTTONS
-------------------------------------------------------------- */

.connect-entry-buttons {
    margin: -250px auto 60px auto;
    position: relative;
    z-index: 10;
}

.connect-entry-buttons__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.connect-entry-button {
    padding: 30px;
    border-radius: 8px;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.connect-entry-button:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.connect-entry-button--business {
    background: linear-gradient(135deg, var(--connect-blue) 50%, #1a6fd8 100%);
}

.connect-entry-button--community {
    background: linear-gradient(135deg, var(--connect-green) 50%, #2fbf6e 100%);
}

.connect-entry-button--eachother {
    background: linear-gradient(135deg, var(--connect-orange) 50%, #ff8a3d 100%);
}

.connect-entry-button__title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
}

.connect-entry-button__text {
    margin-bottom: 20px;
    text-align: center;
}

.connect-entry-button__icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    position: relative;
    overflow: visible;
}

.connect-entry-button__icon-circle img {
    width: 150px;
    height: 150px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.connect-entry-button__action {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 1px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.connect-entry-button__action:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.connect-entry-button--business .connect-entry-button__action {
    background: #0d47a1;
}

.connect-entry-button--community .connect-entry-button__action {
    background: #1e8f4f;
}

.connect-entry-button--eachother .connect-entry-button__action {
    background: #cc5f00;
}

/* --------------------------------------------------------------
   5B. ABOUT SECTION — UNIQUE HEADING BAR
-------------------------------------------------------------- */

.ce-section--about .ce-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-top: 10px;
}

.ce-section--about .ce-section__line-left,
.ce-section--about .ce-section__line-right {
    height: 2px;
}

.ce-section--about .ce-section__line-left {
    width: 40px;
    flex-shrink: 0;
}

.ce-section--about .ce-section__line-right {
    flex-grow: 1;
}

.ce-section--about .ce-section__title-text {
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
}

/* COMMUNITY (GREEN) */
.ce-entry--community .ce-section--about .ce-section__line-left,
.ce-entry--community .ce-section--about .ce-section__line-right {
    background: var(--connect-green);
}

.ce-entry--community .ce-section--about .ce-section__title-text {
    color: var(--connect-green);
}

/* BUSINESS (BLUE) */
.ce-entry--business .ce-section--about .ce-section__line-left,
.ce-entry--business .ce-section--about .ce-section__line-right {
    background: var(--connect-blue);
}

.ce-entry--business .ce-section--about .ce-section__title-text {
    color: var(--connect-blue);
}
/* --------------------------------------------------------------
   5C. ABOUT SECTION — BODY TEXT STYLING
-------------------------------------------------------------- */

.ce-section--about .ce-section__content {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

/* Paragraph spacing */
.ce-section--about .ce-section__content p {
    margin-bottom: 1.4em; /* gives a clean blank line */
}

/* Bold + italic */
.ce-section--about .ce-section__content strong {
    font-weight: 600;
}

.ce-section--about .ce-section__content em {
    font-style: italic;
}

/* Lists */
.ce-section--about .ce-section__content ul,
.ce-section--about .ce-section__content ol {
    margin: 1em 0 1em 2em;
}

/* Links */
.ce-section--about .ce-section__content a {
    color: var(--connect-blue);
    text-decoration: underline;
}


/* --------------------------------------------------------------
   5D. CONTACT INFORMATION BLOCK
-------------------------------------------------------------- */

.ce-block-contact {
    margin: 40px 0;
    padding: 25px 30px;
    background: var(--connect-light-grey);
    border: 1px solid var(--connect-border);
    border-radius: 6px;
}

.ce-block-contact h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid var(--connect-border);
    padding-bottom: 6px;
}

.ce-block-contact .ce-contact-item {
    margin-bottom: 12px;
    font-size: 18px;
    color: #444;
}

.ce-block-contact .ce-contact-item strong {
    display: inline-block;
    width: 110px;
    color: #222;
}

.ce-block-contact a {
    color: var(--connect-blue);
    text-decoration: none;
    font-weight: bold;
}

.ce-block-contact a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------
   6. FEATURED LISTINGS PLACEHOLDER
-------------------------------------------------------------- */

.connect-featured {
    margin: 60px auto;
}

.connect-section-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.connect-featured__placeholder {
    background: var(--connect-light-grey);
    padding: 40px;
    border: 2px dashed var(--connect-border);
    text-align: center;
    color: #666;
}

/* --------------------------------------------------------------
   7. SPONSORS PLACEHOLDER
-------------------------------------------------------------- */

.connect-sponsors {
    margin: 60px auto;
}

.connect-sponsors__placeholder {
    background: var(--connect-light-grey);
    padding: 40px;
    border: 2px dashed var(--connect-border);
    text-align: center;
    color: #666;
}

/* --------------------------------------------------------------
   8. FOOTER
-------------------------------------------------------------- */

footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

/* --------------------------------------------------------------
   9. RESPONSIVE
-------------------------------------------------------------- */

@media (max-width: 600px) and (max-device-width: 600px) and (orientation: portrait) {


    /* ENTRY BUTTONS */
    .connect-entry-buttons__grid {
        grid-template-columns: 1fr;
    }

    /* HERO */
    .connect-hero {
        height: 350px;
    }

    .connect-hero__title {
        font-size: 48px;
    }

    /* ENTRY PAGE HERO */
    .ce-entry-hero {
        height: 300px;
    }

    .ce-entry-hero .connect-hero__title {
        font-size: 36px;
    }

    .ce-entry-hero .connect-hero__content {
        top: 90px;
        left: 30px;
    }

    /* ABOUT SECTION */
    .ce-section__title {
        font-size: 22px;
    }

    .ce-section__content {
        font-size: 16px;
    }

    /* CONTACT BLOCK */
    .ce-block-contact {
        padding: 20px;
    }

    .ce-block-contact h3 {
        font-size: 20px;
    }

    .ce-block-contact .ce-contact-item {
        font-size: 16px;
    }

    .ce-block-contact .ce-contact-item strong {
        width: 90px;
    }
}

/* ============================================================
   FINAL MOBILE OVERRIDE — MOBILE BUTTON LAYOUT (CLEAN + CORRECT)
   ============================================================ */
@media (max-width: 600px) and (max-device-width: 600px) and (orientation: portrait) {
    .connect-entry-buttons {
        margin: -60px auto 40px auto !important;
    }

    .connect-entry-buttons__grid {
        display: block !important;
    }

    .connect-entry-button {
        width: 100% !important;
        padding: 12px !important;
        border-radius: 10px !important;
        margin-bottom: 16px !important;
        display: block !important;
    }

    .connect-entry-button__inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important; /* ⭐ FIXED: center text vertically */
        gap: 14px !important;
        width: 100% !important;
    }

    .connect-entry-button__icon-circle {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
        margin-top: 4px !important;
        position: relative !important;
    }

    .connect-entry-button__icon-circle img {
        width: 64px !important;
        height: 64px !important;
        top: 50% !important;
        left: 50% !important;
        position: absolute !important;
        transform: translate(-50%, -50%) !important;
    }

    .connect-entry-button__content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .connect-entry-button__title {
        font-size: 18px !important;
        line-height: 1.2 !important;
        margin: 0 0 4px 0 !important;
        text-align: center !important;
    }

    .connect-entry-button__text {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .connect-entry-button__action {
        width: 100% !important;
        display: block !important;
        padding: 1px 1px !important;
        text-align: center !important;
        font-size: 14px !important;
        margin-top: 6px !important;
    }
}

/* ============================================================
   HERO OVERLAY FIX — CLIP OVERLAY TO HERO HEIGHT
   ============================================================ */
@media (max-width: 600px) and (max-device-width: 600px) and (orientation: portrait) {
    .connect-hero {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .connect-hero__image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        display: block !important;
    }

    .connect-hero__overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        pointer-events: none !important;
    }
}

/* ============================================================
   DISABLE ALL ANIMATION, TRANSITION, TRANSFORM ON MOBILE
   (EXCEPT ICON CENTERING)
   ============================================================ */
@media (max-width: 600px) and (max-device-width: 600px) and (orientation: portrait) {
    .connect-entry-button,
    .connect-entry-button *,
    .connect-entry-button__action,
    .connect-entry-button__action * {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .connect-entry-button__icon-circle img {
        transform: translate(-50%, -50%) !important;
    }
}
