/* =====================================================
   ICOGON - GLOBAL NAVBAR + INTERNSHIP APPLICATION PAGE
   Navbar settings preserved
   Application form layout updated
   ===================================================== */


/* =====================================================
   PART 1: GLOBAL NAVBAR - PRESERVE CURRENT SETTINGS
   ===================================================== */

/* 1. SHOW HEADER ON ALL PAGES */
header.transparent-header,
header.transparent-header .tg-header__area,
.tg-header__area {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 99999 !important;
}

/* 2. REMOVE WHITE HEADER STRIP */
header.transparent-header,
header.transparent-header .tg-header__area,
.tg-header__area,
.tg-header__area .tgmenu__wrap,
.tg-header__area .tgmenu__nav,
.tg-header__area .tgmenu__navbar-wrap,
.tg-header__area .tgmenu__wrap > .container {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* 3. HEADER POSITION */
header.transparent-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
}

/* 4. HEADER INNER CONTAINER */
.tg-header__area .tgmenu__wrap > .container {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
}

/* 5. KEEP EVERYTHING IN ONE ROW */
@media (min-width: 992px) {

    .tg-header__area .tgmenu__wrap .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 90px !important;
        margin: 0 !important;
    }

    /* 6. SMALLER LOGO */
    .tg-header__area .tgmenu__logo,
    .tg-header__area .logo {
        flex: 0 0 auto !important;
        margin-right: 18px !important;
    }

    .tg-header__area .tgmenu__logo img,
    .tg-header__area .logo img {
        width: 115px !important;
        max-width: 115px !important;
        height: auto !important;
        max-height: 48px !important;
        object-fit: contain !important;
    }

    /* 7. NAVIGATION IN ONE LINE */
    .tg-header__area .tgmenu__navbar-wrap {
        display: flex !important;
        flex: 1 1 auto !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 0 !important;
    }

    .tg-header__area .tgmenu__main-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 13px !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    .tg-header__area .tgmenu__main-menu > li {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    .tg-header__area .tgmenu__main-menu > li > a {
        font-size: 14px !important;
        padding: 10px 4px !important;
        white-space: nowrap !important;
    }

    /* 8. SCHEDULE A CALL SECTION */
    .tg-header__area .tgmenu__action {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin-left: 15px !important;
        padding: 0 !important;
    }

    .tg-header__area .tgmenu__action .header-btn,
    .tg-header__area .tgmenu__action a {
        white-space: nowrap !important;
    }
}

/* 9. KEEP BUTTON BACKGROUNDS AND LOGO VISIBLE */
.tg-header__area .tgmenu__action a,
.tg-header__area .tgmenu__action button {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 10. HOMEPAGE HEADER HIDE CLASS */
body#page-home.icogon-header-hidden header.transparent-header,
body#page-home.icogon-header-hidden .tg-header__area {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 11. MOBILE RESPONSIVE NAVBAR */
@media (max-width: 991px) {

    header.transparent-header {
        position: absolute !important;
        width: 100% !important;
    }

    .tg-header__area .tgmenu__wrap > .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .tg-header__area .tgmenu__logo img,
    .tg-header__area .logo img {
        width: 110px !important;
        max-width: 110px !important;
    }

    .tg-header__area .tgmenu__main-menu {
        display: none !important;
    }
}


/* =====================================================
   PART 2: GLOBAL NAVBAR HIDE AFTER 40PX SCROLL
   PRESERVE CURRENT WORKING BEHAVIOR
   ===================================================== */

.tg-header__area {
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        max-height 0.3s ease,
        transform 0.3s ease !important;
}

/* Hide navbar after scrolling 40px */
body.icogon-navbar-hidden .tg-header__area {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transform: translateY(-100%) !important;
}

/* Show navbar at the top */
body:not(.icogon-navbar-hidden) .tg-header__area {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-height: 300px !important;
    overflow: visible !important;
    transform: translateY(0) !important;
}


/* =====================================================
   PART 3: APPLICATION FORM PAGE
   PAGE ID: 32
   Heading ABOVE the form
   Form width increased by approximately 20%
   ===================================================== */

/* Main application content area */
body#page-32 .row:has(form) {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Make both content columns full width */
body#page-32 .row:has(form) > [class*="col-"] {
    float: none !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Apply For Internship heading first */
body#page-32 .row:has(form) > [class*="col-"]:first-child {
    order: 1 !important;
    text-align: center !important;
    margin: 0 auto 30px !important;
}

/* Center heading */
body#page-32 .row:has(form) > [class*="col-"]:first-child h1,
body#page-32 .row:has(form) > [class*="col-"]:first-child h2,
body#page-32 .row:has(form) > [class*="col-"]:first-child h3,
body#page-32 .row:has(form) > [class*="col-"]:first-child .title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center description */
body#page-32 .row:has(form) > [class*="col-"]:first-child p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 850px !important;
}

/* Form column comes below heading */
body#page-32 .row:has(form) > [class*="col-"]:last-child {
    order: 2 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* Form card width - approximately 20% larger */
body#page-32 .row:has(form) form,
body#page-32 .row:has(form) .contact-form,
body#page-32 .row:has(form) .contact-form-wrap,
body#page-32 .row:has(form) .contact-form-area {
    display: block !important;
    width: 100% !important;
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Keep form inputs properly sized */
body#page-32 .row:has(form) input,
body#page-32 .row:has(form) select,
body#page-32 .row:has(form) textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Form card spacing */
body#page-32 .row:has(form) form {
    padding: 30px !important;
}

/* =====================================================
   PART 4: APPLICATION FORM - TABLET AND MOBILE
   ===================================================== */

@media (max-width: 991px) {

    body#page-32 .row:has(form) {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    body#page-32 .row:has(form) > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    body#page-32 .row:has(form) form,
    body#page-32 .row:has(form) .contact-form,
    body#page-32 .row:has(form) .contact-form-wrap,
    body#page-32 .row:has(form) .contact-form-area {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 575px) {

    body#page-32 .row:has(form) form {
        padding: 18px !important;
    }

    body#page-32 .row:has(form) > [class*="col-"]:first-child {
        margin-bottom: 20px !important;
    }
}