html {
    width: 100%;
    height: 100%;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    /* Base font size for better scaling */
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    /* Ensures padding doesn't affect width */
}

header {
    position: relative;
    padding: 20px;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;

}

body {
    font-family: Arial, Verdana, sans-serif;
    color: #000000;
    text-align: center;
    background-color: #F07D00;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.topnav {
    margin: 0;
    overflow: hidden;
    background-color: #f26522;;
    width: 100%;
}

.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 1rem;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav a.navlistright {
    float: right;
    background-color: orange;
    color: white;
}

.ECMS {
    clear: both;
    color: #f26522;
    text-align: center;
  
    padding: 1rem;



}
.Design,
.About,
.accordion .IndustrialPartner,
.accordion .academicStaff {
    color: #F07D00;
    font-size: 1.5rem;
    text-align: left;
    margin: 0 8%;
}

h2 {
    font-size: 1.5rem;
    color: white;
}

h3 {
    font-size: 1.1rem;
    color: white;
}

li {
    display: inline-block;
    /* padding: 5px; */
    padding: 8px 15px;
    text-decoration: none;
    background: #fff;
    -webkit-border-image: 2px;
    border-image: 2px;
    border: 1px solid;
    margin-right: -1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;

}

.logo {
    width: 80px;
    height: auto;

    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.logo img {
    width: 85%;
    height: auto;
    object-fit: contain;
    display: block;

    margin: 0 auto;
}

.accordion-collapse {
    margin: 0 3%;

}


.profiles-grid {
    clear: both;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 100%;

    padding: 0.5rem 0.5rem 0.5rem 0.5rem;

}

.profile-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.9rem;
}

.profile-card .name {
    margin: 0.3rem 0;
    color: #333;
    font-size: 0.9rem;
}

.profile-card .title {
    color: #666;
    margin: 0.3rem 0;
    font-size: 0.85rem;
}

.profile-card .research-field {
    color: #666;
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.profile-card .email a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.85rem;
}

.profile-card .link a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.85rem;
}

.profile-card .email a:hover {
    text-decoration: underline;
}

.accordion-header {
    margin-top: 0px;
    color: white;
    padding: 0px;

}
.Design,
.About,
.accordion .IndustrialPartner,
.accordion .academicStaff{
   margin: 0 4%;
}
.accordion p,
.accordion-item {
    margin: 0 4%;
    padding: 0;
    background-color: white;
    text-align: center;
}
/* Remove Bootstrap accordion border */
.accordion {
    --bs-accordion-border-width: 0;
    border-width: 0 !important;
    border: none !important;
}
.container-fluid{
   margin: 0 5%;
   padding: 1.25rem 0 6.25rem 0;
}

.accordion {
    padding: 1.25rem 0 6.25rem 0;
    background-color: white;
    margin: 0 5%;
    min-height: calc(100vh - 6.25rem - 2rem); /* 6.25rem bottom padding + 2rem footer height */
}

.accordion-button {
    margin-top: 0.5rem;
    text-align: center;
    background-color: #F07D00;
    color: white !important;
    cursor: pointer;
    position: relative;
    box-shadow: none !important;
    width: 100%;
}

.accordion-button:hover {
    cursor: default;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, 0.125) !important;
}

.accordion-button:is(.collapsed) {
    background-color: #F07D00 !important;
    /* Darker shade of the same orange */

    color: white !important;
    /* box-shadow: inset 0 -1px 0 rgba(0,0,0,.125) !important; */
}

.accordion-button:not(.collapsed) {
    background-color: #D06C00;
    /* Darker shade of the same orange */

    color: white !important;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125) !important;
   
}
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F07D00' stroke='%23F07D00' stroke-width='1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
   transform: scale(1.2) rotate(180deg) ;

}

.accordion .intro-text {

    font-size: 0.9rem;
    color: #333;
    text-align: left;
}

.accordion-button::after {
    text-align: center;
    background-color: white;
    color: #F07D00;
    cursor: pointer;
    border-radius: 20px;
   
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F07D00' stroke='%23F07D00' stroke-width='1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: 1em;
    background-position: center;
    background-repeat: no-repeat;
    /* filter: drop-shadow(0 0 2px #D06C00); */
    transform: scale(1.2); 
}

/* Responsive scaling for accordion button icon */
@media screen and (max-width: 768px){
    .accordion-button::after {
        background-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    .accordion-button::after {
        background-size: 0.8em;
        background-position: center;
        transform: scale(0.8);
    }
}




.logo-error {
    color: red;
    font-size: 14px;
}





.menu-icon {
    display: none;
    /* Hide menu icon by default */
}

.header h2,
.header h3 {
    margin: 0;
    text-align: center;
    margin-top: 8px;
}

footer {
    /* position: fixed; */
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: black;
    color: white;
    text-align: center;
    padding: 1rem 0rem;
    font-family: HeliaCore-Book, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    /* z-index: 100; */
}
/* Adjust the .container-fluid specifically within the footer */

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md {
    flex: 1;
    min-width: 200px;
    padding: 0 10px;
    margin-bottom: 1rem;
    margin-left: 5%;
    margin-right:3.5%;

}

.block .footerTitle {

    color: #5f727a;
    line-height: 1.2;
    font-family: HeliaCore-Medium, Arial, Helvetica, sans-serif;
}


.col-md .block p a {
    color: white; /* This will make the link text white */
    text-decoration: underline; 
}
a {
    cursor: pointer;
}
.col-md .block p a:hover,
.col-md .block p a:focus {
    text-decoration: underline; 
}



.block p {
    font-size: 17px;
    color: white;
    text-align: left;
    line-height: 1.2;
 
}

.col-md .block {
    margin-top: 1vw;
    width: fit-content;
    margin-left: 9.2%;
}

.footerLogo {
    width: 100px;
    height: auto;
    max-width: 100%
}


/* Responsive Footer Styles */

.ind-card {
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

}
.ind-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    background: white;
    border-radius: 4px;
}

.industrialPartner-grid {
    clear: both;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 100%;
    margin-bottom: 1.25rem;
    padding: 0 1rem;
}



.modal {
    display: none;
    position: fixed;
    padding: 2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    max-height: 90vh;
    overflow: auto;
    background-color:black;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Modal Content (image) */
.modal-content {
    margin: 0 auto;
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* Caption of Modal Image */
#caption {
    margin: 1rem auto 0;
    display: block;
    width: 100%;
    text-align: center;
    color: #333;
    font-size: 1.1rem;
    padding: 0.6rem 0;
}

/* Add Animation */
.modal-content,
#caption {
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 2.5rem;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.headerPage-About{

    background-color: #F07D00;
    color: white;
    text-align: center;

    padding: 1rem;
    width: 100%;
    margin: 0 auto;
}



.content-container-About,
.content-container {
    padding: 1.25rem 0 6.25rem 0;
    background-color: white;
    margin: 0 5%;
    min-height: calc(100vh - 6.25rem - 2rem);
}


 .primaryContent-About
 {
    margin: 8%;
    padding: 0;
    background-color: white;
    text-align: center;
 }
 .Coordinator{
        margin: 0 4%;
            color: #F07D00;
    font-size: 1.5rem;
    text-align: left;

 }
.primaryContent{
    margin: 0 4%;
    padding: 0;
    background-color: white;
    text-align: center;
}

.primaryContent h1 {
    color: black;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.primaryContent h3 {
    color: black;
    font-size: 1.2rem;
    margin-top: 0.6rem;
    margin-bottom: 0.3rem;
    text-align: left;
}

.primaryContent p {
    /* margin-bottom: 15px; */
    line-height: 1.5;
    text-align: left;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.primaryContent a {
    color: #007bff;
    text-decoration: none;
    margin-left: 0.3rem;
}

.Project-Design-Info .intro-text{
    margin: 0 8%;
    font-size: 0.9rem;
    color: #333;
    text-align: left;
}
.Project-Design-Info {
        padding: 1.25rem 0 6.25rem 0;
        background-color: white;
        margin: 0 5%;
        min-height: calc(100vh - 6.25rem - 2rem);

    }

    .prompt-container {
        max-width: 1000px;
        margin: 20px auto;
        padding: 0 1rem;
    }

    /* Responsive adjustments for prompt container */


    @media screen and (max-width: 480px) {
        .prompt-container {
            margin: 10px auto;
            padding: 0 0.5rem;
            max-width: 98%;
        }
    }

    /* Responsive adjustments for prompt container */
    @media screen and (max-width: 768px) {
        .prompt-container {
            margin: 0 4%;
            padding: 0 0.2rem;
        }
    }



    @media screen and (min-width: 1200px) {
        .prompt-container {
            max-width: 1000px;
            margin: 30px auto;
        }
        
    }

    .gemini-info {
        background-color: #f0f8ff;
        border-left: 4px solid #4285F4;
        padding: 10px 15px;
        margin-bottom: 20px;
        border-radius: 4px;
    }

    .prompt-box {
        display: flex;
        flex-direction: column;
        padding: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        background-color: #f9f9f9;
        margin-bottom: 20px;
    }

    label {
        margin-bottom: 8px;
        font-weight: bold;
        color: #333;
    }

    textarea {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        resize: vertical;
        margin-bottom: 10px;
        min-height: 100px;
        font-size: 16px;
    }

    .button-container {
        display: flex;
        justify-content: space-between;
    }

    .submit-btn {
        padding: 10px 20px;
        background-color: #F07D00;
        /* Google blue */
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
    }

    .clear-btn {
        padding: 10px 20px;
        background-color: #f1f1f1;
        color: #333;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
    }

    .submit-btn:hover {
        background-color: #F07D00;
        /* Darker blue */
    }

    .clear-btn:hover {
        background-color: #e6e6e6;
    }
    .RD-profiles-grid {
    clear: both;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 100%;
    /* margin: 0 auto; */
    margin-bottom: 1.25rem;
    padding: 0 1rem;

}
    .RD-profile-card {
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    }
    .RD-profile-card img {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 0.9rem;
    }
    .RD-profile-card .name {
        margin: 0.3rem 0;
        color: #333;            
        font-size: 0.9rem;
    }
    .RD-profile-card .title {
        color: #666;
        margin: 0.3rem 0;
        font-size: 0.85rem;
    }
    .RD-profile-card .research-field {
        color: #666;
        margin: 0.3rem 0;
        font-size: 0.85rem;
    }
    .RD-profile-card .email  {
        color: #0066cc;
        text-decoration: none;
        font-size: 0.85rem;
    }
    .RD-profile-card .link  {
        color: #0066cc;
        text-decoration: none;
        font-size: 0.85rem;
    }
    .RD-profile-card .explanation  {
         margin: 0.3rem 0;
        color: #333;            
        font-size: 0.85rem;
    }
   
    .result-container {
        margin-top: 15px;
        padding: 15px;
        border-radius: 8px;
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .ai-response {
        padding: 12px 15px;
        margin-bottom: 10px;
        border-radius: 8px;
        background-color: #f9f9f9;
        border-left: 4px solid #4285F4;
    }

    .loading-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 20px 0;
        flex-direction: column;
    }

    .spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #4285F4;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        animation: spin 1s linear infinite;
        margin-bottom: 10px;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* Code block styling for responses */
    pre {
        background-color: #f5f5f5;
        padding: 10px;
        border-radius: 4px;
        overflow-x: auto;

    }

/* 100% Image Width on Smaller Screens */
/* Responsive adjustments for logo */
@media screen and (max-width: 992px) {
    html {
        font-size: 15px;
    }

    .logo {
        width: 70px;
        max-width: 70px;
    }
    .industrialPartner-grid,
    .profiles-grid,
    .description-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .Coordinator,
    .primaryContent-About,
    .primaryContent {
        width: 90%;
    }

    .accordion-button {
        width: 85%;
        max-width: 70%;
        font-size: 95%;
    }
}


@media screen and (max-width: 480px) {
    .logo {
        width: 15%;
        max-width: 50px;
        max-height: 45px;
    }
        .accordion-button::after {
        transform: scale(0.8);
    }

    .accordion-button:not(.collapsed)::after {
        transform: scale(0.8) rotate(180deg); /* Adjusted for small screens */
    }
    .Project-Design-Info .intro-text{
    margin: 0 4%;
}
}
/* Responsive styles for accordion button */


@media screen and (max-width: 768px) and (max-width: 820px) {
    html {

        font-size: 14px;
    }

    .topnav {
        justify-items: left;
    }

    .topnav .navigation a {
        display: none;
        /* Hide menu items by default */
    }

    .navigation.responsive a {
        display: block;
        /* /* Show menu items when responsive class is adde */
        text-align: left;
        padding: 10px;
        width: 100%;
    }  

    .menu-icon {
        display: block;
        align-self: left;
        cursor: pointer;
        padding: 0px;
        float:right;
        color: white;
        text-align: center;
        width: 50vw;
        font-size: 2.5rem;
    }

    .accordion-button {
        width: 100%;
        max-width: 100%;
        font-size: 90%;
        padding: 8px;
        height: auto;
        min-height: 40px;
    }

    .modal-content {
        width: 100%;

    }

    .logo {
        width: 60px;
        top: 5px;
        right: 5px;
    }
    .industrialPartner-grid,
    .profiles-grid,
    .description-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .row {
        flex-direction: column;
    }

    .modal {
        width: 90%;
        padding: 1rem;
    }
    .Coordinator,
    .primaryContent-About,
    .primaryContent {
        width: 80%;
        padding: 0 1.5rem 0 1.5rem;
    }

}
@media screen  and (max-width: 820px) {
    html {

        font-size: 14px;
    }

    .topnav {
        justify-items: left;

    }

    .topnav .navigation a {
        display: none;
        /* Hide menu items by default */
    }

    .navigation.responsive a {
        display: block;
        /* /* Show menu items when responsive class is adde */
        text-align: left;
        padding: 10px;
        width: 100%;
    }  

    .menu-icon {
        display: block;
        align-self: left;
        cursor: pointer;
        padding: 0px;
        float:right;
        color: white;
        text-align: center;
        width: 50vw;
        font-size: 2.5rem;
    }

    .accordion-button {
        width: 100%;
        max-width: 100%;
        font-size: 90%;
        padding: 8px;
        height: auto;
        min-height: 40px;
    }

    .modal-content {
        width: 100%;

    }

    .logo {
        width: 60px;
        top: 5px;
        right: 5px;
    }
    .industrialPartner-grid,
    .profiles-grid,
    .description-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .row {
        flex-direction: column;
    }

    .modal {
        width: 90%;
        padding: 1rem;
    }
    .Coordinator,
    .primaryContent-About,
    .primaryContent {
        width: 80%;
        padding: 0 1.5rem 0 1.5rem;
    }

}
/* Medium screens */
@media screen and (max-width: 992px) {
    .accordion-button {
        width: 95%;
        max-width: 95%;
        font-size: 95%;
        padding: 10px;
    }
}

/* Small screens */
@media screen and (max-width: 768px) and (max-width: 820px) {
    .accordion-button {
        width: 100%;
        max-width: 100%;
        font-size: 90%;
        padding: 8px;
        text-align: left;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    .accordion-button {
        width: 100%;
        max-width: 100%;
        font-size: 85%;
        padding: 6px;
    }
    
    .accordion-button::after {
        transform: scale(0.8);
    }
}




@media screen and (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .logo {
        width: 50px;
    }
    .industrialPartner-grid,
    .profiles-grid,
    .description-grid {
        grid-template-columns: 1fr;
    }

    .profile-card,
    .ind-card {
        padding: 0.8rem;
    }

    .profile-card img {
        width: 120px;
        height: 120px;
    }

    .modal {
        width: 95%;
    }

    .close {
        top: 10px;
        right: 20px;
        font-size: 2rem;
    }
    .primaryContent-About,
    .primaryContent {
        width: 80%;
        padding:0 1.5rem;
    }

    .footerLogo {
        width: 80px;
    }
}
@media screen and (max-width: 992px) {
    .col-md .block {
        margin-left: 0;
        text-align: left;
    }
    
    .footerLogo {
        width: 90px;
    }
}

@media screen and (max-width: 768px)  {
    .col-md {
        min-width: 200px;
    }
    
    .block .footerTitle {
        font-size: 1rem;
        text-align: left;
    }
    
    .block p {
        font-size: 0.8em;
        text-align: left;
    }
    
    #contact {
        font-size: 0.9em;
        text-align: left;
    }
}

@media screen and (max-width: 820px)  {
    .col-md {
        min-width: 200px;
    }
    
    .block .footerTitle {
        font-size: 1rem;
        text-align: left;
    }
    
    .block p {
        font-size: 0.8em;
        text-align: left;
    }
    
    #contact {
        font-size: 0.9em;
        text-align: left;
    }
}
@media screen and (max-width: 480px) {
    .col-md {
        min-width: 100%;
    }
    
    .col-md .block {
        margin-left: 0;
        margin-right: auto;
        text-align: left;
    }
    
    .footerLogo {
        width: 80px;
        margin-left: 0;
    }
    
    .block .footerTitle {
        font-size: 0.9rem;
        text-align: left;
    }
    
    .block p {
        font-size: 0.75em;
        text-align: left;
    }
}
/* Responsive for big screen
/* Large screen enhancements */
@media screen and (min-width: 1428px) {
    html {
        font-size: 18px;
    }
   
    
    .profiles-grid,
    .industrialPartner-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    }
    
    .profile-card {
        padding: 1.5rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .profile-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .profile-card img {
        width: 180px;
        height: 180px;
    }
    .content-container-About,
    .Project-Design-Info,
    .content-container,
    .accordion {
        max-width: 1368px;
        margin: 0 auto;
        padding: 2rem 0 8rem 0;
    }
    .primaryContent-About{
        margin: 8%;
    }
    .Design,
    .About,
    .accordion .IndustrialPartner,
    .accordion .academicStaff {
        margin: 0 8%;
    }
    .Coordinator,
    .primaryContent,
    .Project-Design-Info p,
    .accordion p,
    .accordion-item {
        margin: 0 8%;
    }
    
 
    footer .container-fluid {
        max-width: 1368px; /* Match accordion's max-width */
               margin: 0 auto;


    }

    footer .row {
        justify-content: space-around;
    }
    
    .footerLogo {
        width: 120px;
    }
    
   
    
    .modal-content {
        max-width: 800px;
    }
    
    .modal {
        max-width: 900px;
    }
}

/* Extra large screens */
@media screen and (min-width: 1600px) {
    html {
        font-size: 20px;
    }
    
    .profiles-grid,
    .industrialPartner-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .profile-card img {
        width: 200px;
        height: 200px;
    }
    

}
/* General style for all social icons */
.socialIcon {
    background-image: url(https://www.aut.ac.nz/__data/assets/file/0010/99019/icons.svg);
    background-size: 50px 742px;
    background-repeat: no-repeat;
    background-position: 0 0;
    display: block;
    text-indent: -9999px;
    float: left;
    margin-right: 24px;
    width: 34px;
    height: 40px;
    filter: brightness(0) invert(1); /* Add this line to make black icons white */
}

/* Specific icons */
.socialIcon.facebookLink {
    background-position: 0 -140px;
    width: 22px;
}

.socialIcon.linkedinLink {
    background-position: 0 -192px;
}
.socialIcon.tiktokLink {
    background-image: url(https://www.aut.ac.nz/__data/assets/image/0010/881668/tik-tok-white.png);
    background-size: 100%;
    background-position: -1px 3px;
}

.socialIcon.douyinLink {
    background-image: url(https://www.aut.ac.nz/__data/assets/file/0010/881641/Douyin_logo-white.svg);
    background-size: 100%;
    background-position: -1px 3px;
    width: 75px;
}
.socialIcon.youtubeLink {
    background-position: 0 -292px;
}
.socialIcon.instagramLink {
    background-position: 0 -346px;
}
.socialIcon.weChatLink {
    background-image: url(https://www.aut.ac.nz/__data/assets/file/0007/386476/wechat.svg);
    background-size: 100%;
    background-position: -1px 3px;
}
.socialIcon.weiBoLink {
    background-image: url(https://www.aut.ac.nz/__data/assets/file/0003/652629/weibo.svg);
    background-size: 100%;
    background-position: -1px 3px;
}
.socialIcon.redBadgeLink {
    background-image: url(https://www.aut.ac.nz/__data/assets/image/0008/996371/redbadge-logo.png);
    background-size: 100%;
    background-position: -1px 3px;
}

.shielded-logo img {
    height: 34px;
    width: 40px;
}
.clearfix a, .clearfix a:hover, .clearfix a:focus, .clearfix a:active {
    color: #fff;
    text-decoration: underline;
}
.clearfix a{
    background-color: transparent;
}

footer p {
    color: #fff;
}
p {
    font-family: HeliaCore-Light, Arial, Helvetica, sans-serif;
    font-size: inherit;
    font-weight: 400;
    margin: 0 0 10px;
    line-height: 1.2;
    color: inherit;
}

div {
    display: block;
    unicode-bidi: isolate;
}
footer .block {
    margin-bottom: 24px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    gap: 0;
}

.col-md-5 {
    margin-left: 0;

}

#contact {
    margin-left: 0;
    padding-left: 15px;
}

#autlogo {
    order: -1;
    margin-left: 0; 
}

/* Responsive Styles for Footer */
@media (min-width: 1200px) {
    .row {
        margin: 0 -90px;
    }
    
    .col-md-5 {
        width: 41.66666667%;
        margin-left: 0;
    }
       .col-md-6 {
        width: 41.66666667%;
        margin-left: 0;
    }
}

@media (min-width: 768px) and (max-width:820px)and (max-width: 1199px) {
    .row {
        margin: 0 -30px;
    }
    
    #contact {
        margin-left: 0px;
        padding-left: 30px;
    }
    
    .socialIcon {
        margin-right: 16px;
        width: 28px;
        height: 32px;
    }
    
    .socialIcon.douyinLink {
        width: 60px;
    }
}
@media (max-width: 820px) {
    .row {
        flex-direction: column;
        margin: 0 -10px;
    }
    
    .col-md, .col-md-5 {
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
        text-align: left;
    }
    
    #contact {
        margin-left: 0;
        padding-left: 10px;
        text-align: left;
    }
    
    .socialIcon {
        float: left;
        display: block;
        margin: 0 8px 10px 0;
        width: 24px;
        height: 28px;
    }
    
    .socialIcon.douyinLink {
        width: 50px;
    }
    
    footer .block {
        text-align: left;
        margin: 0 0 20px 0;
    }
    
    .clearfix {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .row {
        flex-direction: column;
        margin: 0 -10px;
    }
    
    .col-md, .col-md-5 {
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
        text-align: left;
    }
    
    #contact {
        margin-left: 0;
        padding-left: 10px;
        text-align: left;
    }
    
    .socialIcon {
        float: left;
        display: block;
        margin: 0 8px 10px 0;
        width: 24px;
        height: 28px;
    }
    
    .socialIcon.douyinLink {
        width: 50px;
    }
    
    footer .block {
        text-align: left;
        margin: 0 0 20px 0;
    }
    
    .clearfix {
        text-align: left;
    }
}

@media (max-width: 480px) {

    
    .socialIcon {
        margin: 0 4px 8px 4px;
        width: 20px;
        height: 24px;
    }
    
    .socialIcon.douyinLink {
        width: 40px;
    }
    
    footer .block p {
        font-size: 0.8rem;
    }
    
    #contact {
        padding-left: 5px;
    }
        .col-md {
        min-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 1rem;
    }
}
 .footerBottom {
    background-color: black;

}

.footerBottom .mainEntry {
    font-family: HeliaCore-Medium, Arial, Helvetica, sans-serif;
    line-height: 1.2;
    padding: 0 15px;
    color: black;
    text-align: left;
    margin-left: 0;
    font-size: 0.8rem;
}
footer .footerBottom .supportEntry {
    font-family: HeliaCore-Book, Arial, Helvetica, sans-serif;
    line-height: 1.2;

    text-transform: uppercase;
    padding: 0 15px;
    text-align: left;
    margin-left: 0;
    color: black;
      font-size: 0.8rem;
}
@media screen and (min-width: 414px) {
    footer .footerBottom .mainEntry {
        margin-left: 0px;
        padding-left: 15px;
        font-size: 0.8rem;
    }
    footer .footerBottom .supportEntry {
        margin-left: 0;
        padding-left: 15px;
        font-size: 0.8rem;
    }
}

@media screen and (min-width: 1200px) {
    footer .footerBottom .mainEntry {
        padding-left: 9%;
    }
    footer .footerBottom .supportEntry {
        padding-left: 9%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1199px) and (max-width: 820px) {
    footer .footerBottom .mainEntry {
        padding-left: 30px;
          font-size: 0.8rem;
    }
    footer .footerBottom .supportEntry {
        padding-left: 30px;
          font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px) and (max-width: 820px) {
    footer .footerBottom .mainEntry {
        margin-left: 0;
        padding-left: 30px;
          font-size: 0.8rem;
    }
    footer .footerBottom .supportEntry {
        margin-left: 0;
        padding-left: 30px;
        font-size: 0.8rem;
    }
    
    footer .row {
        width: 95%;
    }
}
@media screen and (max-width: 820px) {
    footer .footerBottom .mainEntry {
        margin-left: 0;
        padding-left: 5px;
          font-size: 0.8rem;
    }
    footer .footerBottom .supportEntry {
        margin-left: 0;
        padding-left: 5px;
        font-size: 0.8rem;
    }
    
    footer .row {
        width: 95%;
    }
}

@media screen and (max-width: 480px) {
    footer .footerBottom .mainEntry {
        padding-left: 5px;
    }
    footer .footerBottom .supportEntry {
        padding-left: 5px;
    }
}

ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
    margin-top: 0;
    margin-bottom: 10px;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 10px;
}

footer .footerBottom ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footerBottom ul li:first-child {
    padding-left: 0;
    background-color: black;
}

footer .footerBottom ul li {
    display: inline-block;
    padding: 0 10px 0 0;
    background-color: black;
}

footer .footerBottom ul a {
    text-decoration: none;
    color: #fff;
}

a:focus, a:link, a:active {
    outline: 0 none;
}
a:link {
    outline: 0;
}
footer a, footer a:hover, footer a:focus, footer a:active {
    color: #fff;
    text-decoration: underline;
}
a {
    cursor: pointer;
}
footer .footerBottom ul li.lastChild {
    border-right: 0;
}
    /* list-style: none;
    padding: 0;
    margin: 0;
} */

footer .footerBottom ul li:first-child {
    padding-left: 0;
    background-color: black;
}

footer .footerBottom ul li {
    display: inline-block;
    padding: 0 10px 0 0;
    background-color: black;
}

footer .footerBottom ul a {
    text-decoration: none;
    color: #fff;
}

a:focus, a:link, a:active {
    outline: 0 none;
}
a:link {
    outline: 0;
}
footer a, footer a:hover, footer a:focus, footer a:active {
    color: #fff;
    text-decoration: underline;
}
a {
    cursor: pointer;
}
footer .footerBottom ul li.lastChild {
    border-right: 0;
}




@media screen and (min-width: 1200px) {

    .topnav-container {
        max-width: 1368px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 1199px) {
    .topnav-container {
        max-width: 100%;
        margin: 4%;
    }
}

@media screen and (max-width: 768px)  {
    .topnav-container {
        width: 100%;
        padding: 0;
    }
}
@media screen and  (max-width: 820px) {
    .topnav-container {
        width: 100%;
        padding: 0;
    }
}

@media screen and (max-width: 480px) {
    .topnav-container {
        width: 100%;
        padding: 0;
        overflow: hidden;
    }
}

.headerLogo.inside_nz_logo {
    background-image: url(https://www.aut.ac.nz/__data/assets/file/0007/651742/AUT-logo-tab-maori-web-version-only.svg);
    width: 124px;
    height: 135px;
    background-position: bottom;
    background-size: 100% auto;
    background-repeat: no-repeat;
}

/* Responsive styles for inside_nz_logo */
@media screen and (max-width: 768px)  {
    .headerLogo.inside_nz_logo {
        width: 90px;
        height: 98px;
    }
}
@media screen and (max-width: 820px)  {
    .headerLogo.inside_nz_logo {
        
        width: 90px;
        height: 98px;
        margin-left:1%;
    }
}


@media screen and (max-width: 480px) {
    .headerLogo.inside_nz_logo {
        width: 60px;
        height: 65px;
    }
}

header, nav {
    display: block;
}

nav {
    display: block;
    unicode-bidi: isolate;
    margin-left: 10%;
}

.headerLogo {
    display: block;
    position: absolute;
    z-index: 14;
    width: 68px;
    height: 80px;
    top: 0;
    background-image: url(https://www.aut.ac.nz/__data/assets/file/0020/144272/AUT-Logo.svg);
    background-size: 100% auto;
    text-indent: -9999px;
    background-repeat: no-repeat;
}

@media screen and (min-width: 1320px) {
    body .header {
        height: 50px;
        display: block;
    }
}



@media screen and (max-width: 768px) {
    body .header {
        height: auto;
        padding: 28px;
    }
}
@media screen and (max-width: 820px) {
    body .header {
        height: auto;
        padding: 28px;
    }
}

@media screen and (max-width: 480px) {
    .header {
        height: auto;
        padding: 28px;
    }
}

.topHeader {
    display: none;
    background-size: auto 100%;
}

@media screen and (max-width: 768px) {
    .topHeader {
        display: block;
        height: auto;
        background-size: contain;
    }
}
@media screen and (max-width: 820px) {
    .topHeader {
        display: block;
        height: auto;
        background-size: contain;
    }
}
/* Responsive footer */
footer {
    padding: clamp(0.5rem, 2vw, 1rem) 0;
}

.col-md {
    padding: 0 clamp(5px, 2vw, 15px);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    margin-left: clamp(2%, 5vw, 5%);
    margin-right: clamp(2%, 3.5vw, 3.5%);
}

/* .col-md .block {
    margin-left: clamp(0%, 9.2vw, 9.2%);
} */

.footerLogo {
    width: clamp(60px, 15vw, 120px);
}
